@douyinfe/semi-ui 2.53.1 → 2.53.3-alpha.0
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 +4 -5
- 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/cjs/anchor/index.d.ts +1 -1
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- package/lib/cjs/button/Button.d.ts +1 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +2 -2
- package/lib/cjs/form/field.d.ts +2 -2
- package/lib/cjs/input/index.d.ts +1 -1
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- package/lib/cjs/modal/confirm.d.ts +8 -8
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/item.d.ts +1 -1
- package/lib/cjs/resizeObserver/index.js +3 -2
- package/lib/cjs/switch/index.d.ts +1 -1
- package/lib/cjs/table/Table.d.ts +2 -2
- package/lib/cjs/table/index.d.ts +1 -1
- package/lib/cjs/tagInput/index.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.d.ts +1 -1
- package/lib/cjs/timePicker/index.d.ts +1 -1
- package/lib/cjs/typography/title.d.ts +2 -2
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/autoComplete/index.d.ts +1 -1
- package/lib/es/button/Button.d.ts +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/index.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +2 -2
- package/lib/es/form/field.d.ts +2 -2
- package/lib/es/input/index.d.ts +1 -1
- package/lib/es/input/inputGroup.d.ts +1 -1
- package/lib/es/modal/confirm.d.ts +8 -8
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/item.d.ts +1 -1
- package/lib/es/resizeObserver/index.js +3 -2
- package/lib/es/switch/index.d.ts +1 -1
- package/lib/es/table/Table.d.ts +2 -2
- package/lib/es/table/index.d.ts +1 -1
- package/lib/es/tagInput/index.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.d.ts +1 -1
- package/lib/es/timePicker/index.d.ts +1 -1
- package/lib/es/typography/title.d.ts +2 -2
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -22737,8 +22737,9 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22737
22737
|
}
|
|
22738
22738
|
};
|
|
22739
22739
|
this.handleResizeEventTriggered = entries => {
|
|
22740
|
+
var _a, _b, _c, _d;
|
|
22740
22741
|
if (this.props.observerProperty === ObserverProperty.All) {
|
|
22741
|
-
this.props.onResize(entries);
|
|
22742
|
+
(_b = (_a = this.props).onResize) === null || _b === void 0 ? void 0 : _b.call(_a, entries);
|
|
22742
22743
|
} else {
|
|
22743
22744
|
const finalEntries = [];
|
|
22744
22745
|
for (const entry of entries) {
|
|
@@ -22753,7 +22754,7 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
22753
22754
|
}
|
|
22754
22755
|
}
|
|
22755
22756
|
if (finalEntries.length > 0) {
|
|
22756
|
-
this.props.onResize(finalEntries);
|
|
22757
|
+
(_d = (_c = this.props).onResize) === null || _d === void 0 ? void 0 : _d.call(_c, finalEntries);
|
|
22757
22758
|
}
|
|
22758
22759
|
}
|
|
22759
22760
|
};
|
|
@@ -78681,7 +78682,7 @@ class TableFoundation extends foundation {
|
|
|
78681
78682
|
if (defaultExpandAllRows || expandAllRows) {
|
|
78682
78683
|
this._addNoDuplicatedItemsToArr(expandedRowKeys, this.getAllRowKeys(dataSource), groups && isMap_default()(groups) && groups.size ? Array.from(groups.keys()) : []);
|
|
78683
78684
|
} else if (defaultExpandAllGroupRows || expandAllGroupRows) {
|
|
78684
|
-
this._addNoDuplicatedItemsToArr(expandedRowKeys, groups && isMap_default()(groups) && groups.size ? Array.from(groups.keys()) : []);
|
|
78685
|
+
this._addNoDuplicatedItemsToArr(expandedRowKeys, propExpandedRowKeys, groups && isMap_default()(groups) && groups.size ? Array.from(groups.keys()) : []);
|
|
78685
78686
|
} else if (Array.isArray(defaultExpandedRowKeys) && defaultExpandedRowKeys.length) {
|
|
78686
78687
|
this._addNoDuplicatedItemsToArr(expandedRowKeys, defaultExpandedRowKeys);
|
|
78687
78688
|
} else if (Array.isArray(propExpandedRowKeys) && propExpandedRowKeys.length) {
|
|
@@ -78967,8 +78968,6 @@ class TableFoundation extends foundation {
|
|
|
78967
78968
|
}
|
|
78968
78969
|
/**
|
|
78969
78970
|
* Add non-repeating elements to the array itself
|
|
78970
|
-
* @param {Array} srcArr
|
|
78971
|
-
* @param {Object} objArrs
|
|
78972
78971
|
*/
|
|
78973
78972
|
_addNoDuplicatedItemsToArr() {
|
|
78974
78973
|
let srcArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|