@douyinfe/semi-ui 2.0.9-alpha.3 → 2.0.9-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/semi-ui.js +8 -8
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/radio/radio.d.ts +1 -1
- package/lib/es/radio/radioGroup.d.ts +1 -1
- package/lib/es/scrollList/scrollItem.d.ts +4 -3
- package/lib/es/scrollList/scrollItem.js +8 -8
- package/lib/es/table/Table.d.ts +1 -1
- package/lib/es/tabs/TabBar.d.ts +1 -1
- package/package.json +2 -2
package/dist/umd/semi-ui.js
CHANGED
|
@@ -55785,14 +55785,6 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
|
|
|
55785
55785
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
55786
55786
|
super(props);
|
|
55787
55787
|
_this = this;
|
|
55788
|
-
this.throttledAdjustList = lodash_es_throttle((e, nearestNode) => {
|
|
55789
|
-
this.foundation.adjustInfiniteList(this.list, this.wrapper, nearestNode);
|
|
55790
|
-
}, scrollItem_msPerFrame);
|
|
55791
|
-
this.debouncedSelect = lodash_es_debounce((e, nearestNode) => {
|
|
55792
|
-
this._cacheSelectedNode(nearestNode);
|
|
55793
|
-
|
|
55794
|
-
this.foundation.selectNode(nearestNode, this.list);
|
|
55795
|
-
}, scrollItem_msPerFrame * 5);
|
|
55796
55788
|
|
|
55797
55789
|
this._cacheNode = (name, node) => name && node && Object.prototype.hasOwnProperty.call(this, name) && (this[name] = node);
|
|
55798
55790
|
|
|
@@ -56158,6 +56150,14 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
|
|
|
56158
56150
|
this.scrollAnimation = null; // cache if select action comes from outside
|
|
56159
56151
|
|
|
56160
56152
|
this.foundation = new itemFoundation_ItemFoundation(this.adapter);
|
|
56153
|
+
this.throttledAdjustList = lodash_es_throttle((e, nearestNode) => {
|
|
56154
|
+
this.foundation.adjustInfiniteList(this.list, this.wrapper, nearestNode);
|
|
56155
|
+
}, scrollItem_msPerFrame);
|
|
56156
|
+
this.debouncedSelect = lodash_es_debounce((e, nearestNode) => {
|
|
56157
|
+
this._cacheSelectedNode(nearestNode);
|
|
56158
|
+
|
|
56159
|
+
this.foundation.selectNode(nearestNode, this.list);
|
|
56160
|
+
}, scrollItem_msPerFrame * 5);
|
|
56161
56161
|
}
|
|
56162
56162
|
|
|
56163
56163
|
get adapter() {
|