perf: update propssymbol

pull/2777/head
tanjinzhou 2020-08-27 18:34:23 +08:00
parent 29d681ff52
commit 2b1e972803
8 changed files with 8 additions and 8 deletions

View File

@ -252,7 +252,7 @@ const Select = {
class: cls,
ref: 'vcSelect',
};
return <VcSelect {...selectProps} __propsSymbol__={Symbol()} />;
return <VcSelect {...selectProps} __propsSymbol__={[]} />;
},
};

View File

@ -57,7 +57,7 @@ export default {
...lazy,
};
children = (
<Lazyload {...lazyProps} _propsSymbol={Symbol()}>
<Lazyload {...lazyProps} _propsSymbol={[]}>
{listItem}
</Lazyload>
);

View File

@ -195,7 +195,7 @@ const TreeSelect = {
<VcTreeSelect
{...VcTreeSelectProps}
vSlots={omit(this.$slots, ['default'])}
__propsSymbol__={Symbol()}
__propsSymbol__={[]}
/>
);
},

View File

@ -219,6 +219,6 @@ export default {
if (treeData) {
vcTreeProps.treeData = treeData;
}
return <VcTree {...vcTreeProps} __propsSymbol__={Symbol()} />;
return <VcTree {...vcTreeProps} __propsSymbol__={[]} />;
},
};

View File

@ -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__={[]} />;
},
};

View File

@ -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 (

View File

@ -73,7 +73,7 @@ const SinglePopup = {
renderSearch: this._renderSearch,
}}
ref={this.popupRef}
__propsSymbol__={Symbol()}
__propsSymbol__={[]}
/>
);
},

View File

@ -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} />;