Skip to content

Commit 2b1e972

Browse files
committed
perf: update propssymbol
1 parent 29d681f commit 2b1e972

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

components/select/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const Select = {
252252
class: cls,
253253
ref: 'vcSelect',
254254
};
255-
return <VcSelect {...selectProps} __propsSymbol__={Symbol()} />;
255+
return <VcSelect {...selectProps} __propsSymbol__={[]} />;
256256
},
257257
};
258258

components/transfer/ListItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default {
5757
...lazy,
5858
};
5959
children = (
60-
<Lazyload {...lazyProps} _propsSymbol={Symbol()}>
60+
<Lazyload {...lazyProps} _propsSymbol={[]}>
6161
{listItem}
6262
</Lazyload>
6363
);

components/tree-select/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const TreeSelect = {
195195
<VcTreeSelect
196196
{...VcTreeSelectProps}
197197
vSlots={omit(this.$slots, ['default'])}
198-
__propsSymbol__={Symbol()}
198+
__propsSymbol__={[]}
199199
/>
200200
);
201201
},

components/tree/Tree.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,6 @@ export default {
219219
if (treeData) {
220220
vcTreeProps.treeData = treeData;
221221
}
222-
return <VcTree {...vcTreeProps} __propsSymbol__={Symbol()} />;
222+
return <VcTree {...vcTreeProps} __propsSymbol__={[]} />;
223223
},
224224
};

components/vc-slick/src/slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,6 @@ export default {
193193
children: newChildren,
194194
ref: this.innerSliderRefHandler,
195195
};
196-
return <InnerSlider {...sliderProps} vSlots={this.$slots} __propsSymbol__={Symbol()} />;
196+
return <InnerSlider {...sliderProps} vSlots={this.$slots} __propsSymbol__={[]} />;
197197
},
198198
};

components/vc-tree-select/src/Base/BasePopup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ const BasePopup = {
270270
onExpand: this.onTreeExpand,
271271
onLoad: this.onLoad,
272272
};
273-
$tree = <Tree {...treeAllProps} ref={this.treeRef} __propsSymbol__={Symbol()} />;
273+
$tree = <Tree {...treeAllProps} ref={this.treeRef} __propsSymbol__={[]} />;
274274
}
275275

276276
return (

components/vc-tree-select/src/Popup/SinglePopup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const SinglePopup = {
7373
renderSearch: this._renderSearch,
7474
}}
7575
ref={this.popupRef}
76-
__propsSymbol__={Symbol()}
76+
__propsSymbol__={[]}
7777
/>
7878
);
7979
},

components/vc-tree-select/src/Select.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ const Select = {
10911091
};
10921092

10931093
const Popup = isMultiple ? MultiplePopup : SinglePopup;
1094-
const $popup = <Popup {...popupProps} __propsSymbol__={Symbol()} />;
1094+
const $popup = <Popup {...popupProps} __propsSymbol__={[]} />;
10951095

10961096
const Selector = isMultiple ? MultipleSelector : SingleSelector;
10971097
const $selector = <Selector {...passProps} ref={this.selectorRef} />;

0 commit comments

Comments
 (0)