@douyinfe/semi-ui 2.45.0-beta.0 → 2.45.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 +6 -6
- 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/select/index.js +3 -3
- package/lib/cjs/tree/index.js +1 -1
- package/lib/cjs/treeSelect/index.js +1 -1
- package/lib/es/select/index.js +3 -3
- package/lib/es/tree/index.js +1 -1
- package/lib/es/treeSelect/index.js +1 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -71383,9 +71383,8 @@ class Select extends BaseComponent {
|
|
|
71383
71383
|
const {
|
|
71384
71384
|
maxTagCount
|
|
71385
71385
|
} = this.props;
|
|
71386
|
-
const
|
|
71387
|
-
|
|
71388
|
-
if (items.length > 1 && overflowItemCount !== newOverFlowItemCount) {
|
|
71386
|
+
const newOverFlowItemCount = selections.size - maxTagCount > 0 ? selections.size - maxTagCount + items.length - 1 : items.length - 1;
|
|
71387
|
+
if (overflowItemCount !== newOverFlowItemCount) {
|
|
71389
71388
|
this.foundation.updateOverflowItemCount(selections.size, newOverFlowItemCount);
|
|
71390
71389
|
}
|
|
71391
71390
|
}
|
|
@@ -71398,6 +71397,7 @@ class Select extends BaseComponent {
|
|
|
71398
71397
|
className: `${select_prefixcls}-content-wrapper-collapse`
|
|
71399
71398
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(overflowList_0, {
|
|
71400
71399
|
items: normalTags,
|
|
71400
|
+
key: String(selections.length),
|
|
71401
71401
|
overflowRenderer: overflowItems => this.renderOverflow(overflowItems, length - 1),
|
|
71402
71402
|
onOverflow: overflowItems => this.handleOverflow(overflowItems),
|
|
71403
71403
|
visibleItemRenderer: (item, index) => this.renderTag(item, index)
|
|
@@ -78241,7 +78241,7 @@ function mergeQueries(query) {
|
|
|
78241
78241
|
* @param {Object[]} newColumns
|
|
78242
78242
|
*/
|
|
78243
78243
|
function withResizeWidth(columns, newColumns) {
|
|
78244
|
-
const _newColumns =
|
|
78244
|
+
const _newColumns = [...newColumns];
|
|
78245
78245
|
for (const column of columns) {
|
|
78246
78246
|
if (!isNullOrUndefined(column.width)) {
|
|
78247
78247
|
const currentColumn = column.key;
|
|
@@ -89065,7 +89065,7 @@ class Tree extends BaseComponent {
|
|
|
89065
89065
|
if (props.value) {
|
|
89066
89066
|
checkedKeyValues = findKeysForValues(normalizeValue(props.value, withObject) || [], valueEntities, isMultiple);
|
|
89067
89067
|
} else {
|
|
89068
|
-
checkedKeyValues = updateKeys(prevState.checkedKeys, keyEntities);
|
|
89068
|
+
checkedKeyValues = updateKeys(props.checkRelation === 'related' ? prevState.checkedKeys : prevState.realCheckedKeys, keyEntities);
|
|
89069
89069
|
}
|
|
89070
89070
|
}
|
|
89071
89071
|
if (checkedKeyValues) {
|
|
@@ -91169,7 +91169,7 @@ class TreeSelect extends BaseComponent {
|
|
|
91169
91169
|
if (props.value) {
|
|
91170
91170
|
checkedKeyValues = findKeysForValues(normalizeValue(props.value, withObject) || [], valueEntities, isMultiple);
|
|
91171
91171
|
} else {
|
|
91172
|
-
checkedKeyValues = updateKeys(prevState.checkedKeys, keyEntities);
|
|
91172
|
+
checkedKeyValues = updateKeys(props.checkRelation === 'related' ? prevState.checkedKeys : prevState.realCheckedKeys, keyEntities);
|
|
91173
91173
|
}
|
|
91174
91174
|
}
|
|
91175
91175
|
if (checkedKeyValues) {
|