perf: update propssymbol
parent
29d681ff52
commit
2b1e972803
|
@ -252,7 +252,7 @@ const Select = {
|
|||
class: cls,
|
||||
ref: 'vcSelect',
|
||||
};
|
||||
return <VcSelect {...selectProps} __propsSymbol__={Symbol()} />;
|
||||
return <VcSelect {...selectProps} __propsSymbol__={[]} />;
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ export default {
|
|||
...lazy,
|
||||
};
|
||||
children = (
|
||||
<Lazyload {...lazyProps} _propsSymbol={Symbol()}>
|
||||
<Lazyload {...lazyProps} _propsSymbol={[]}>
|
||||
{listItem}
|
||||
</Lazyload>
|
||||
);
|
||||
|
|
|
@ -195,7 +195,7 @@ const TreeSelect = {
|
|||
<VcTreeSelect
|
||||
{...VcTreeSelectProps}
|
||||
vSlots={omit(this.$slots, ['default'])}
|
||||
__propsSymbol__={Symbol()}
|
||||
__propsSymbol__={[]}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
|
|
@ -219,6 +219,6 @@ export default {
|
|||
if (treeData) {
|
||||
vcTreeProps.treeData = treeData;
|
||||
}
|
||||
return <VcTree {...vcTreeProps} __propsSymbol__={Symbol()} />;
|
||||
return <VcTree {...vcTreeProps} __propsSymbol__={[]} />;
|
||||
},
|
||||
};
|
||||
|
|
|
@ -193,6 +193,6 @@ export default {
|
|||
children: newChildren,
|
||||
ref: this.innerSliderRefHandler,
|
||||
};
|
||||
return <InnerSlider {...sliderProps} vSlots={this.$slots} __propsSymbol__={Symbol()} />;
|
||||
return <InnerSlider {...sliderProps} vSlots={this.$slots} __propsSymbol__={[]} />;
|
||||
},
|
||||
};
|
||||
|
|
|
@ -270,7 +270,7 @@ const BasePopup = {
|
|||
onExpand: this.onTreeExpand,
|
||||
onLoad: this.onLoad,
|
||||
};
|
||||
$tree = <Tree {...treeAllProps} ref={this.treeRef} __propsSymbol__={Symbol()} />;
|
||||
$tree = <Tree {...treeAllProps} ref={this.treeRef} __propsSymbol__={[]} />;
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
@ -73,7 +73,7 @@ const SinglePopup = {
|
|||
renderSearch: this._renderSearch,
|
||||
}}
|
||||
ref={this.popupRef}
|
||||
__propsSymbol__={Symbol()}
|
||||
__propsSymbol__={[]}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
|
|
@ -1091,7 +1091,7 @@ const Select = {
|
|||
};
|
||||
|
||||
const Popup = isMultiple ? MultiplePopup : SinglePopup;
|
||||
const $popup = <Popup {...popupProps} __propsSymbol__={Symbol()} />;
|
||||
const $popup = <Popup {...popupProps} __propsSymbol__={[]} />;
|
||||
|
||||
const Selector = isMultiple ? MultipleSelector : SingleSelector;
|
||||
const $selector = <Selector {...passProps} ref={this.selectorRef} />;
|
||||
|
|
Loading…
Reference in New Issue