fix: tree-select throw error when use slot title
parent
60aeec7033
commit
1152e8cd71
|
@ -64,7 +64,7 @@ const SingleSelector = {
|
||||||
if (selectorValueList.length && !this.mirrorSearchValue) {
|
if (selectorValueList.length && !this.mirrorSearchValue) {
|
||||||
const { label, value } = selectorValueList[0];
|
const { label, value } = selectorValueList[0];
|
||||||
selectedValueNodes.push(
|
selectedValueNodes.push(
|
||||||
<span key="value" title={toTitle(label)} class={`${prefixCls}-selection-item`}>
|
<span key={value} title={toTitle(label)} class={`${prefixCls}-selection-item`}>
|
||||||
{label || value}
|
{label || value}
|
||||||
</span>,
|
</span>,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue