@douyinfe/semi-ui 2.25.1 → 2.26.0-beta.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/css/semi.css +19 -12
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +107 -33
- 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/table/Table.js +2 -0
- package/lib/cjs/tag/index.js +2 -2
- package/lib/cjs/tagInput/index.js +5 -6
- package/lib/cjs/treeSelect/index.d.ts +2 -1
- package/lib/cjs/treeSelect/index.js +21 -13
- package/lib/cjs/typography/util.js +4 -0
- package/lib/es/table/Table.js +2 -0
- package/lib/es/tag/index.js +2 -2
- package/lib/es/tagInput/index.js +5 -6
- package/lib/es/treeSelect/index.d.ts +2 -1
- package/lib/es/treeSelect/index.js +19 -13
- package/lib/es/typography/util.js +4 -0
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -19114,7 +19114,7 @@ class foundation_Tooltip extends foundation {
|
|
|
19114
19114
|
}
|
|
19115
19115
|
|
|
19116
19116
|
if (shouldReverseLeftSide && widthIsBigger) {
|
|
19117
|
-
position = this._adjustPos(position
|
|
19117
|
+
position = this._adjustPos(position);
|
|
19118
19118
|
}
|
|
19119
19119
|
|
|
19120
19120
|
if (isWidthOverFlow && (isViewXEnoughSideHalf || isContainerXEnoughSideHalf)) {
|
|
@@ -24156,6 +24156,10 @@ const getRenderText = function (originEle, rows) {
|
|
|
24156
24156
|
let ellipsisPos // eslint-disable-next-line max-params
|
|
24157
24157
|
= arguments.length > 6 ? arguments[6] : undefined;
|
|
24158
24158
|
|
|
24159
|
+
if (content.length === 0) {
|
|
24160
|
+
return '';
|
|
24161
|
+
}
|
|
24162
|
+
|
|
24159
24163
|
if (!ellipsisContainer) {
|
|
24160
24164
|
ellipsisContainer = document.createElement('div');
|
|
24161
24165
|
ellipsisContainer.setAttribute('aria-hidden', 'true');
|
|
@@ -38288,6 +38292,9 @@ function findKeysForValues(valueList, valueEntities) {
|
|
|
38288
38292
|
valueList.forEach(val => {
|
|
38289
38293
|
if (val in valueEntities) {
|
|
38290
38294
|
res.push(valueEntities[val]);
|
|
38295
|
+
} else {
|
|
38296
|
+
// if val not in valueEntities, then value push to keys array
|
|
38297
|
+
val && res.push(val);
|
|
38291
38298
|
}
|
|
38292
38299
|
});
|
|
38293
38300
|
return res;
|
|
@@ -38557,15 +38564,22 @@ function normalizedArr(val) {
|
|
|
38557
38564
|
} else {
|
|
38558
38565
|
return val;
|
|
38559
38566
|
}
|
|
38560
|
-
}
|
|
38567
|
+
} // flag is used to determine whether to return when the key does not belong to the keys in keyEntities
|
|
38568
|
+
// export function normalizeKeyList(keyList: any, keyEntities: KeyEntities, leafOnly = false) {
|
|
38569
|
+
|
|
38561
38570
|
function normalizeKeyList(keyList, keyEntities) {
|
|
38562
38571
|
let leafOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
38572
|
+
let flag = arguments.length > 3 ? arguments[3] : undefined;
|
|
38563
38573
|
const res = [];
|
|
38564
38574
|
const keyListSet = new Set(keyList);
|
|
38565
38575
|
|
|
38566
38576
|
if (!leafOnly) {
|
|
38567
38577
|
keyList.forEach(key => {
|
|
38568
38578
|
if (!keyEntities[key]) {
|
|
38579
|
+
if (flag) {
|
|
38580
|
+
res.push(key);
|
|
38581
|
+
}
|
|
38582
|
+
|
|
38569
38583
|
return;
|
|
38570
38584
|
}
|
|
38571
38585
|
|
|
@@ -38583,6 +38597,11 @@ function normalizeKeyList(keyList, keyEntities) {
|
|
|
38583
38597
|
keyList.forEach(key => {
|
|
38584
38598
|
if (keyEntities[key] && !treeUtil_isValid(keyEntities[key].children)) {
|
|
38585
38599
|
res.push(key);
|
|
38600
|
+
} // when key is not in keyEntities, if flag is true, key should be push in res
|
|
38601
|
+
|
|
38602
|
+
|
|
38603
|
+
if (!keyEntities[key] && flag) {
|
|
38604
|
+
res.push(key);
|
|
38586
38605
|
}
|
|
38587
38606
|
});
|
|
38588
38607
|
}
|
|
@@ -38699,7 +38718,7 @@ function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedK
|
|
|
38699
38718
|
}
|
|
38700
38719
|
};
|
|
38701
38720
|
|
|
38702
|
-
calcCurrLevel(nodeItem);
|
|
38721
|
+
nodeItem && calcCurrLevel(nodeItem);
|
|
38703
38722
|
return {
|
|
38704
38723
|
checkedKeys,
|
|
38705
38724
|
halfCheckedKeys
|
|
@@ -41293,9 +41312,9 @@ class tag_Tag extends external_root_React_commonjs2_react_commonjs_react_amd_rea
|
|
|
41293
41312
|
})) : null;
|
|
41294
41313
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", Object.assign({
|
|
41295
41314
|
"aria-label": this.props['aria-label'] || isString_default()(children) ? "".concat(closable ? 'Closable ' : '', "Tag: ").concat(children) : ''
|
|
41296
|
-
}, wrapProps), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
41315
|
+
}, wrapProps), avatarSrc ? this.renderAvatar() : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
41297
41316
|
className: "".concat(tag_prefixCls, "-content")
|
|
41298
|
-
},
|
|
41317
|
+
}, children), closeIcon);
|
|
41299
41318
|
}
|
|
41300
41319
|
|
|
41301
41320
|
}
|
|
@@ -43555,16 +43574,14 @@ function sortableElement(WrappedComponent) {
|
|
|
43555
43574
|
|
|
43556
43575
|
|
|
43557
43576
|
|
|
43577
|
+
const tagInput_prefixCls = tagInput_constants_cssClasses.PREFIX;
|
|
43558
43578
|
const SortableItem = sortableElement(props => props.item);
|
|
43559
43579
|
const SortableList = sortableContainer(_ref => {
|
|
43560
43580
|
let {
|
|
43561
43581
|
items
|
|
43562
43582
|
} = _ref;
|
|
43563
43583
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
43564
|
-
|
|
43565
|
-
display: 'flex',
|
|
43566
|
-
flexFlow: 'row wrap'
|
|
43567
|
-
}
|
|
43584
|
+
className: "".concat(tagInput_prefixCls, "-sortable-list")
|
|
43568
43585
|
}, items.map((item, index) =>
|
|
43569
43586
|
/*#__PURE__*/
|
|
43570
43587
|
// @ts-ignore skip SortableItem type check
|
|
@@ -43574,7 +43591,6 @@ const SortableList = sortableContainer(_ref => {
|
|
|
43574
43591
|
item: item.item
|
|
43575
43592
|
})));
|
|
43576
43593
|
});
|
|
43577
|
-
const tagInput_prefixCls = tagInput_constants_cssClasses.PREFIX;
|
|
43578
43594
|
|
|
43579
43595
|
class tagInput_TagInput extends baseComponent_BaseComponent {
|
|
43580
43596
|
constructor(props) {
|
|
@@ -43680,13 +43696,15 @@ class tagInput_TagInput extends baseComponent_BaseComponent {
|
|
|
43680
43696
|
key: elementKey,
|
|
43681
43697
|
visible: true,
|
|
43682
43698
|
"aria-label": "".concat(!disabled ? 'Closable ' : '', "Tag: ").concat(value)
|
|
43699
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
43700
|
+
className: "".concat(tagInput_prefixCls, "-tag-content-wrapper")
|
|
43683
43701
|
}, showIconHandler && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(DragHandle, null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(paragraph_Paragraph, {
|
|
43684
43702
|
className: typoCls,
|
|
43685
43703
|
ellipsis: {
|
|
43686
43704
|
showTooltip: showContentTooltip,
|
|
43687
43705
|
rows: 1
|
|
43688
43706
|
}
|
|
43689
|
-
}, value));
|
|
43707
|
+
}, value)));
|
|
43690
43708
|
}
|
|
43691
43709
|
});
|
|
43692
43710
|
};
|
|
@@ -80229,11 +80247,12 @@ function warnIfNoDataIndex(column) {
|
|
|
80229
80247
|
const {
|
|
80230
80248
|
filters,
|
|
80231
80249
|
sorter,
|
|
80232
|
-
dataIndex
|
|
80250
|
+
dataIndex,
|
|
80251
|
+
onFilter
|
|
80233
80252
|
} = column;
|
|
80234
80253
|
const logger = new utils_Logger('[@douyinfe/semi-ui Table]');
|
|
80235
80254
|
|
|
80236
|
-
if ((Array.isArray(filters) || isFunction_default()(sorter)) && isNullOrUndefined(dataIndex)) {
|
|
80255
|
+
if ((Array.isArray(filters) || isFunction_default()(onFilter) || isFunction_default()(sorter)) && isNullOrUndefined(dataIndex)) {
|
|
80237
80256
|
logger.warn("The column with sorter or filter must pass the 'dataIndex' prop");
|
|
80238
80257
|
}
|
|
80239
80258
|
}
|
|
@@ -80488,9 +80507,10 @@ class foundation_TableFoundation extends foundation {
|
|
|
80488
80507
|
const {
|
|
80489
80508
|
defaultFilteredValue,
|
|
80490
80509
|
filteredValue,
|
|
80491
|
-
|
|
80510
|
+
onFilter
|
|
80492
80511
|
} = column;
|
|
80493
|
-
|
|
80512
|
+
|
|
80513
|
+
const hasFilter = isFunction_default()(onFilter);
|
|
80494
80514
|
|
|
80495
80515
|
if (hasFilter && isUndefined_default()(filteredValue)) {
|
|
80496
80516
|
if (Array.isArray(defaultFilteredValue) && defaultFilteredValue.length) {
|
|
@@ -80608,7 +80628,7 @@ class foundation_TableFoundation extends foundation {
|
|
|
80608
80628
|
* When initializing we should use `defaultFilteredValue`, after clicking we should use `filteredValue`
|
|
80609
80629
|
*/
|
|
80610
80630
|
const currentFilteredValue = query.filteredValue ? query.filteredValue : query.defaultFilteredValue;
|
|
80611
|
-
return isFunction_default()(query.onFilter) && Array.isArray(
|
|
80631
|
+
return isFunction_default()(query.onFilter) && Array.isArray(currentFilteredValue) && currentFilteredValue.length;
|
|
80612
80632
|
}));
|
|
80613
80633
|
const sortedDataSource = this.sortDataSource(filteredDataSource, queries.filter(query => query && isFunction_default()(query.sorter)));
|
|
80614
80634
|
return sortedDataSource;
|
|
@@ -86250,6 +86270,8 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
86250
86270
|
if (this.props.defaultExpandAllRows && handledProps.groups && handledProps.groups.size || this.props.expandAllRows || this.props.expandAllGroupRows) {
|
|
86251
86271
|
this.foundation.initExpandedRowKeys(handledProps);
|
|
86252
86272
|
}
|
|
86273
|
+
|
|
86274
|
+
states.pagination = handledProps.pagination;
|
|
86253
86275
|
} // Centrally update paging related state
|
|
86254
86276
|
|
|
86255
86277
|
|
|
@@ -92604,6 +92626,46 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
92604
92626
|
return Boolean(inputValue) && showFilteredOnly;
|
|
92605
92627
|
}
|
|
92606
92628
|
|
|
92629
|
+
findDataForValue(findValue) {
|
|
92630
|
+
const {
|
|
92631
|
+
value,
|
|
92632
|
+
defaultValue
|
|
92633
|
+
} = this.getProps();
|
|
92634
|
+
let valueArr = [];
|
|
92635
|
+
|
|
92636
|
+
if (value) {
|
|
92637
|
+
valueArr = Array.isArray(value) ? value : [value];
|
|
92638
|
+
} else if (defaultValue) {
|
|
92639
|
+
valueArr = Array.isArray(defaultValue) ? defaultValue : [defaultValue];
|
|
92640
|
+
}
|
|
92641
|
+
|
|
92642
|
+
return valueArr.find(item => {
|
|
92643
|
+
return item.value === findValue || item.key === findValue;
|
|
92644
|
+
});
|
|
92645
|
+
}
|
|
92646
|
+
|
|
92647
|
+
constructDataForValue(value) {
|
|
92648
|
+
const {
|
|
92649
|
+
treeNodeLabelProp
|
|
92650
|
+
} = this.getProps();
|
|
92651
|
+
return {
|
|
92652
|
+
key: value,
|
|
92653
|
+
[treeNodeLabelProp]: value
|
|
92654
|
+
};
|
|
92655
|
+
}
|
|
92656
|
+
|
|
92657
|
+
getDataForKeyNotInKeyEntities(value) {
|
|
92658
|
+
const {
|
|
92659
|
+
onChangeWithObject
|
|
92660
|
+
} = this.getProps();
|
|
92661
|
+
|
|
92662
|
+
if (onChangeWithObject) {
|
|
92663
|
+
return this.findDataForValue(value);
|
|
92664
|
+
} else {
|
|
92665
|
+
return this.constructDataForValue(value);
|
|
92666
|
+
}
|
|
92667
|
+
}
|
|
92668
|
+
|
|
92607
92669
|
getCopyFromState(items) {
|
|
92608
92670
|
const res = {};
|
|
92609
92671
|
normalizedArr(items).forEach(key => {
|
|
@@ -92730,12 +92792,12 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
92730
92792
|
let keyList = [];
|
|
92731
92793
|
|
|
92732
92794
|
if (checkRelation === 'related') {
|
|
92733
|
-
keyList = normalizeKeyList(key, keyEntities, leafOnly);
|
|
92795
|
+
keyList = normalizeKeyList(key, keyEntities, leafOnly, true);
|
|
92734
92796
|
} else if (checkRelation === 'unRelated') {
|
|
92735
92797
|
keyList = key;
|
|
92736
92798
|
}
|
|
92737
92799
|
|
|
92738
|
-
const nodes = keyList.map(
|
|
92800
|
+
const nodes = keyList.map(key => keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key));
|
|
92739
92801
|
|
|
92740
92802
|
if (this.getProp('onChangeWithObject')) {
|
|
92741
92803
|
this._adapter.notifyChangeWithObject(nodes, e);
|
|
@@ -92909,7 +92971,7 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
92909
92971
|
disabledKeys,
|
|
92910
92972
|
realCheckedKeys
|
|
92911
92973
|
} = this.getStates();
|
|
92912
|
-
const item = keyEntities[eventKey].data;
|
|
92974
|
+
const item = keyEntities[eventKey] && keyEntities[eventKey].data.key === eventKey ? keyEntities[eventKey].data : this.getDataForKeyNotInKeyEntities(eventKey);
|
|
92913
92975
|
|
|
92914
92976
|
if (item.disabled || disableStrictly && disabledKeys.has(eventKey)) {
|
|
92915
92977
|
return;
|
|
@@ -93332,7 +93394,13 @@ class foundation_TreeSelectFoundation extends foundation {
|
|
|
93332
93394
|
keyEntities
|
|
93333
93395
|
} = this.getStates();
|
|
93334
93396
|
const renderSelectedItem = isFunction_default()(propRenderSelectedItem) ? propRenderSelectedItem : item => get_default()(item, treeNodeLabelProp, null);
|
|
93335
|
-
|
|
93397
|
+
let item;
|
|
93398
|
+
|
|
93399
|
+
if (selectedKeys.length) {
|
|
93400
|
+
const key = selectedKeys[0];
|
|
93401
|
+
item = keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key);
|
|
93402
|
+
}
|
|
93403
|
+
|
|
93336
93404
|
const renderText = item && treeNodeLabelProp in item ? renderSelectedItem(item) : null;
|
|
93337
93405
|
return renderText;
|
|
93338
93406
|
}
|
|
@@ -93399,6 +93467,8 @@ var treeSelect = __webpack_require__("uw59");
|
|
|
93399
93467
|
|
|
93400
93468
|
|
|
93401
93469
|
|
|
93470
|
+
|
|
93471
|
+
|
|
93402
93472
|
|
|
93403
93473
|
|
|
93404
93474
|
|
|
@@ -93471,6 +93541,10 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93471
93541
|
this.handleClick = e => {
|
|
93472
93542
|
this.foundation.handleClick(e);
|
|
93473
93543
|
};
|
|
93544
|
+
|
|
93545
|
+
this.getDataForKeyNotInKeyEntities = key => {
|
|
93546
|
+
return this.foundation.getDataForKeyNotInKeyEntities(key);
|
|
93547
|
+
};
|
|
93474
93548
|
/* istanbul ignore next */
|
|
93475
93549
|
|
|
93476
93550
|
|
|
@@ -93541,15 +93615,15 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93541
93615
|
let renderKeys = [];
|
|
93542
93616
|
|
|
93543
93617
|
if (checkRelation === 'related') {
|
|
93544
|
-
renderKeys = normalizeKeyList([...checkedKeys], keyEntities, leafOnly);
|
|
93618
|
+
renderKeys = normalizeKeyList([...checkedKeys], keyEntities, leafOnly, true);
|
|
93545
93619
|
} else if (checkRelation === 'unRelated' && Object.keys(keyEntities).length > 0) {
|
|
93546
93620
|
renderKeys = [...realCheckedKeys];
|
|
93547
93621
|
}
|
|
93548
93622
|
|
|
93549
93623
|
const tagList = []; // eslint-disable-next-line @typescript-eslint/no-shadow
|
|
93550
93624
|
|
|
93551
|
-
renderKeys.forEach(key => {
|
|
93552
|
-
const item = keyEntities[key].data;
|
|
93625
|
+
renderKeys.forEach((key, index) => {
|
|
93626
|
+
const item = keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key);
|
|
93553
93627
|
|
|
93554
93628
|
const onClose = (tagContent, e) => {
|
|
93555
93629
|
if (e && typeof e.preventDefault === 'function') {
|
|
@@ -93563,12 +93637,12 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93563
93637
|
const {
|
|
93564
93638
|
content,
|
|
93565
93639
|
isRenderInTag
|
|
93566
|
-
} = treeNodeLabelProp in item
|
|
93567
|
-
index
|
|
93640
|
+
} = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
|
|
93641
|
+
index,
|
|
93568
93642
|
onClose
|
|
93569
93643
|
}) : null;
|
|
93570
93644
|
|
|
93571
|
-
if (
|
|
93645
|
+
if (isNull_default()(content) || isUndefined_default()(content)) {
|
|
93572
93646
|
return;
|
|
93573
93647
|
}
|
|
93574
93648
|
|
|
@@ -93578,7 +93652,7 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93578
93652
|
color: 'white',
|
|
93579
93653
|
visible: true,
|
|
93580
93654
|
onClose,
|
|
93581
|
-
key,
|
|
93655
|
+
key: "tag-".concat(key, "-").concat(index),
|
|
93582
93656
|
size: size === 'small' ? 'small' : 'large'
|
|
93583
93657
|
};
|
|
93584
93658
|
|
|
@@ -93791,7 +93865,7 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93791
93865
|
["".concat(treeSelect_prefixcls, "-with-suffix")]: suffix,
|
|
93792
93866
|
["".concat(treeSelect_prefixcls, "-with-suffix")]: suffix
|
|
93793
93867
|
}, className);
|
|
93794
|
-
const triggerRenderKeys = multiple ? normalizeKeyList([...checkedKeys], keyEntities, leafOnly) : selectedKeys;
|
|
93868
|
+
const triggerRenderKeys = multiple ? normalizeKeyList([...checkedKeys], keyEntities, leafOnly, true) : selectedKeys;
|
|
93795
93869
|
const inner = useCustomTrigger ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(trigger_0, {
|
|
93796
93870
|
inputValue: inputValue,
|
|
93797
93871
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
@@ -93855,8 +93929,8 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93855
93929
|
renderSelectedItem: propRenderSelectedItem,
|
|
93856
93930
|
treeNodeLabelProp
|
|
93857
93931
|
} = this.props;
|
|
93858
|
-
const keyList = normalizeKeyList([key], keyEntities, leafOnly);
|
|
93859
|
-
const nodes = keyList.map(i => keyEntities[
|
|
93932
|
+
const keyList = normalizeKeyList([key], keyEntities, leafOnly, true);
|
|
93933
|
+
const nodes = keyList.map(i => keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key));
|
|
93860
93934
|
const value = getValueOrKey(nodes);
|
|
93861
93935
|
const tagCls = classnames_default()("".concat(treeSelect_prefixcls, "-selection-tag"), {
|
|
93862
93936
|
["".concat(treeSelect_prefixcls, "-selection-tag-disabled")]: disabled
|
|
@@ -93889,7 +93963,7 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93889
93963
|
const {
|
|
93890
93964
|
content,
|
|
93891
93965
|
isRenderInTag
|
|
93892
|
-
} = treeNodeLabelProp in item
|
|
93966
|
+
} = item && treeNodeLabelProp in item ? renderSelectedItem(item, {
|
|
93893
93967
|
index: idx,
|
|
93894
93968
|
onClose
|
|
93895
93969
|
}) : null;
|
|
@@ -93927,7 +94001,7 @@ class treeSelect_TreeSelect extends baseComponent_BaseComponent {
|
|
|
93927
94001
|
let keyList = [];
|
|
93928
94002
|
|
|
93929
94003
|
if (checkRelation === 'related') {
|
|
93930
|
-
keyList = normalizeKeyList(checkedKeys, keyEntities, leafOnly);
|
|
94004
|
+
keyList = normalizeKeyList(checkedKeys, keyEntities, leafOnly, true);
|
|
93931
94005
|
} else if (checkRelation === 'unRelated') {
|
|
93932
94006
|
keyList = [...realCheckedKeys];
|
|
93933
94007
|
} // auto focus search input divide into two parts
|
|
@@ -94652,7 +94726,7 @@ treeSelect_TreeSelect.propTypes = {
|
|
|
94652
94726
|
arrowIcon: prop_types_default.a.node,
|
|
94653
94727
|
clearIcon: prop_types_default.a.node,
|
|
94654
94728
|
defaultOpen: prop_types_default.a.bool,
|
|
94655
|
-
defaultValue: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.array]),
|
|
94729
|
+
defaultValue: prop_types_default.a.oneOfType([prop_types_default.a.string, prop_types_default.a.array, prop_types_default.a.object]),
|
|
94656
94730
|
defaultExpandAll: prop_types_default.a.bool,
|
|
94657
94731
|
defaultExpandedKeys: prop_types_default.a.array,
|
|
94658
94732
|
expandAll: prop_types_default.a.bool,
|