@kne/super-select 0.1.32 → 0.1.33
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/README.md +1146 -368
- package/dist/index.css +22 -6
- package/dist/index.css.map +1 -1
- package/dist/index.js +32 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +15 -3
package/dist/index.css
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
._d8lGc {
|
|
2
|
-
--line-height:
|
|
2
|
+
--line-height: 32px;
|
|
3
|
+
--font-size: 14px;
|
|
4
|
+
--padding-x: 11px;
|
|
3
5
|
background-color: #fff;
|
|
4
|
-
font-size: var(--font-size
|
|
6
|
+
font-size: var(--font-size);
|
|
5
7
|
border: 1px solid var(--font-color-grey-3);
|
|
6
|
-
border-radius: var(--radius-default,
|
|
8
|
+
border-radius: var(--radius-default, 6px);
|
|
7
9
|
cursor: pointer;
|
|
8
10
|
min-width: 150px;
|
|
9
11
|
position: relative;
|
|
10
|
-
padding: 0
|
|
12
|
+
padding: 0 var(--padding-x);
|
|
11
13
|
align-items: flex-start;
|
|
12
14
|
}
|
|
13
15
|
._d8lGc .ant-tag {
|
|
@@ -32,9 +34,13 @@
|
|
|
32
34
|
}
|
|
33
35
|
._d8lGc._T8ZX8 {
|
|
34
36
|
--line-height: 40px;
|
|
37
|
+
--font-size: 16px;
|
|
38
|
+
--padding-x: 11px;
|
|
35
39
|
}
|
|
36
40
|
._d8lGc._1B72H {
|
|
37
41
|
--line-height: 24px;
|
|
42
|
+
--font-size: 14px;
|
|
43
|
+
--padding-x: 7px;
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
._NQoX9 {
|
|
@@ -78,11 +84,17 @@
|
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
._4Pw75 {
|
|
81
|
-
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
height: var(--line-height);
|
|
90
|
+
margin-right: 8px;
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
._Wd4pE {
|
|
85
|
-
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
height: var(--line-height);
|
|
97
|
+
margin-left: 8px;
|
|
86
98
|
}
|
|
87
99
|
._prlgN .ant-checkbox + span {
|
|
88
100
|
padding-inline-end: 0;
|
|
@@ -317,6 +329,10 @@
|
|
|
317
329
|
}
|
|
318
330
|
._IZN7r .ant-tree-node-content-wrapper {
|
|
319
331
|
flex: 1;
|
|
332
|
+
padding: 0 4px;
|
|
333
|
+
}
|
|
334
|
+
._IZN7r .ant-tree-switcher {
|
|
335
|
+
margin-right: 0;
|
|
320
336
|
}
|
|
321
337
|
|
|
322
338
|
._AYi0i {
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,
|
|
1
|
+
{"version":3,"sources":["style.module.scss"],"names":[],"mappings":"AAAA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;EACjB,sBAAsB;EACtB,2BAA2B;EAC3B,0CAA0C;EAC1C,yCAAyC;EACzC,eAAe;EACf,gBAAgB;EAChB,kBAAkB;EAClB,2BAA2B;EAC3B,uBAAuB;AACzB;AACA;EACE,kCAAkC;AACpC;AACA;EACE,kCAAkC;AACpC;AACA;EACE,kCAAkC;EAClC,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,aAAa;AACf;AACA;EACE,eAAe;AACjB;AACA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;EAChB,8BAA8B;EAC9B,mBAAmB;EACnB,uBAAuB;EACvB,OAAO;AACT;AACA;EACE,qBAAqB;AACvB;;AAEA;EACE,+BAA+B;EAC/B,eAAe;EACf,+BAA+B;AACjC;;AAEA;EACE,+BAA+B;AACjC;;AAEA;EACE,gBAAgB;EAChB,2BAA2B;EAC3B,mBAAmB;AACrB;;AAEA;EACE,oHAAoH;EACpH,2BAA2B;EAC3B,yCAAyC;EACzC,gBAAgB;AAClB;AACA;EACE,UAAU;AACZ;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,0BAA0B;EAC1B,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,0BAA0B;EAC1B,gBAAgB;AAClB;AAjGA;EACE,qBAAqB;AACvB;AACA;EACE,+BAA+B;AACjC;AALA;EACE,iBAAiB;AACnB;;AAEA;EACE,sBAAsB;AACxB;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,iBAAiB;EACjB,OAAO;AACT;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;AAClB;AA/BA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,kCAAkC;EAClC,mBAAmB;AACrB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,4BAA4B;EAC5B,mBAAmB;EACnB,eAAe;EACf,4BAA4B;EAC5B,kBAAkB;EAClB,2CAA2C;AAC7C;AACA;EACE,kCAAkC;AACpC;AACA;EACE,kCAAkC;AACpC;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;;EAEE,uBAAuB;AACzB;AACA;EACE,+BAA+B;AACjC;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;;AAEA;EACE,8CAA8C;AAChD;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,8CAA8C;AAChD;AAhGA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,cAAc;EACd,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,yBAAyB;EACzB,yCAAyC;EACzC,gBAAgB;AAClB;AACA;EACE,gCAAgC;AAClC;;AAEA;EACE,YAAY;AACd;AACA;EACE,cAAc;AAChB;AACA;EACE,UAAU;AACZ;AACA;EACE,kCAAkC;AACpC;;AAEA;EACE,aAAa;EACb,oBAAoB;AACtB;;AAEA;EACE,cAAc;EACd,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,aAAa;AACf;AACA;EACE,YAAY;AACd;AACA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;AAzEA;EACE,iBAAiB;EACjB,aAAa;EACb,sBAAsB;AACxB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kCAAkC;EAClC,mBAAmB;AACrB;AACA;EACE,+BAA+B;AACjC;AACA;EACE,oBAAoB;AACtB;AACA;EACE,WAAW;AACb;AACA;EACE,OAAO;EACP,cAAc;AAChB;AACA;EACE,eAAe;AACjB;;AAEA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,eAAe;EACf,4BAA4B;EAC5B,kBAAkB;EAClB,2CAA2C;AAC7C;AACA;EACE,kCAAkC;AACpC;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,+BAA+B;EAC/B,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,iBAAiB;AACnB;AACA;;EAEE,uBAAuB;AACzB;AACA;EACE,+BAA+B;AACjC;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,cAAc;AAChB;;AAEA;EACE,8CAA8C;AAChD;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,8CAA8C;AAChD","file":"index.css","sourcesContent":[".list {\n max-height: 300px;\n padding: 10px;\n box-sizing: border-box;\n}\n.list:not(.is-popup) {\n max-height: 400px;\n}\n\n.default-list.is-selected-all {\n background: var(--bg-color-grey-3);\n cursor: not-allowed;\n}\n.default-list.is-selected-all :global(.select-tree-item-label) {\n color: var(--font-color-grey-2);\n}\n.default-list.is-selected-all .default-list-item {\n pointer-events: none;\n}\n.default-list :global .ant-tree-treenode {\n width: 100%;\n}\n.default-list :global .ant-tree-node-content-wrapper {\n flex: 1;\n padding: 0 4px;\n}\n.default-list :global .ant-tree-switcher {\n margin-right: 0;\n}\n\n.default-list-item {\n padding: 0 !important;\n border-bottom: none;\n cursor: pointer;\n transition: background 300ms;\n position: relative;\n border-bottom-color: transparent !important;\n}\n.default-list-item:not(.is-selected):hover {\n background: var(--bg-color-grey-1);\n}\n.default-list-item.is-selected :global(.select-tree-item-label),\n.default-list-item.is-selected .single-checked {\n color: var(--primary-color);\n}\n.default-list-item.is-disabled {\n color: var(--font-color-grey-2);\n cursor: not-allowed;\n}\n.default-list-item :global(.select-tree-item-content) {\n overflow: hidden;\n margin-right: 8px;\n}\n.default-list-item :global(.select-tree-item-label),\n.default-list-item :global(.select-tree-item-description) {\n transition: color 300ms;\n}\n.default-list-item :global(.select-tree-item-description) {\n color: var(--font-color-grey-1);\n}\n\n.single-checked {\n flex: 0 0 14px;\n}\n\n.selected-all:global(.is-popup) {\n padding: 0 12px;\n}\n.selected-all:global(.is-popup) .selected-all {\n margin: 5px 0;\n}\n.selected-all:not(:global(.is-popup)) {\n padding: 5px 0;\n}\n\n.selected-tag {\n border-top: solid 1px var(--font-color-grey-4);\n}\n.selected-tag:global(.is-popup) {\n padding: 12px 0 12px 12px;\n}\n.selected-tag:not(:global(.is-popup)) {\n padding: 12px 0 12px;\n}\n\n.select-search {\n display: flex;\n}\n.select-search:global(.is-popup) {\n padding: 12px;\n}\n\n.select-tree-item-description {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.footer {\n border-top: solid 1px var(--font-color-grey-4);\n}"]}
|
package/dist/index.js
CHANGED
|
@@ -45,15 +45,6 @@ function _extends() {
|
|
|
45
45
|
return n;
|
|
46
46
|
}, _extends.apply(null, arguments);
|
|
47
47
|
}
|
|
48
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
49
|
-
if (null == r) return {};
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
52
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
53
|
-
t[n] = r[n];
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
}
|
|
57
48
|
|
|
58
49
|
const context = globalContext.createContext();
|
|
59
50
|
const {
|
|
@@ -85,9 +76,8 @@ const locale = {
|
|
|
85
76
|
removeAll: 'Remove All'
|
|
86
77
|
};
|
|
87
78
|
|
|
88
|
-
const _excluded$2 = ["children"];
|
|
89
79
|
const numberToPx = val => {
|
|
90
|
-
return typeof val === 'number' ? val
|
|
80
|
+
return typeof val === 'number' ? `${val}px` : val;
|
|
91
81
|
};
|
|
92
82
|
const pxToNumber = value => {
|
|
93
83
|
if (!value) return 0;
|
|
@@ -99,9 +89,9 @@ const pxToNumber = value => {
|
|
|
99
89
|
};
|
|
100
90
|
const ModalContent = _ref => {
|
|
101
91
|
let {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
92
|
+
children,
|
|
93
|
+
...others
|
|
94
|
+
} = _ref;
|
|
105
95
|
const {
|
|
106
96
|
open,
|
|
107
97
|
value: propsValue
|
|
@@ -169,6 +159,7 @@ const SelectInput = reactIntl.createWithIntlProvider({
|
|
|
169
159
|
prefix: null,
|
|
170
160
|
suffix: null,
|
|
171
161
|
extra: null,
|
|
162
|
+
size: 'default',
|
|
172
163
|
renderModal: contextProps => {
|
|
173
164
|
const {
|
|
174
165
|
props,
|
|
@@ -216,7 +207,8 @@ const SelectInput = reactIntl.createWithIntlProvider({
|
|
|
216
207
|
placement,
|
|
217
208
|
renderModal,
|
|
218
209
|
labelKey,
|
|
219
|
-
valueKey
|
|
210
|
+
valueKey,
|
|
211
|
+
size
|
|
220
212
|
} = props;
|
|
221
213
|
const transformValue = value => {
|
|
222
214
|
if (single) {
|
|
@@ -324,7 +316,9 @@ const SelectInput = reactIntl.createWithIntlProvider({
|
|
|
324
316
|
ref: inputRef,
|
|
325
317
|
className: classnames__default["default"](className, style$5['select-input'], 'select-input', {
|
|
326
318
|
[style$5['wrap']]: labelWrap,
|
|
327
|
-
[style$5['disabled']]: disabled
|
|
319
|
+
[style$5['disabled']]: disabled,
|
|
320
|
+
[style$5['small']]: size === 'small',
|
|
321
|
+
[style$5['large']]: size === 'large'
|
|
328
322
|
}),
|
|
329
323
|
justify: "space-between",
|
|
330
324
|
onMouseOver: () => {
|
|
@@ -451,7 +445,7 @@ const computedIsSelectAll = function (value, selectedAllValue, valueKey) {
|
|
|
451
445
|
if (valueKey === void 0) {
|
|
452
446
|
valueKey = 'value';
|
|
453
447
|
}
|
|
454
|
-
return
|
|
448
|
+
return value?.length === 1 && get__default["default"](value, `[0][${valueKey}]`) === selectedAllValue[valueKey];
|
|
455
449
|
};
|
|
456
450
|
|
|
457
451
|
var style$3 = {"label":"_l3KoW","tag-list":"_CCPzb","tag-container":"_dKZHi","tag-container-inner":"_oijCI","tag":"_WmnnS","tag-inner":"_TMcFl"};
|
|
@@ -478,7 +472,7 @@ const SelectedTagList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
478
472
|
className: style$3['label']
|
|
479
473
|
}, formatMessage({
|
|
480
474
|
id: 'selected'
|
|
481
|
-
}), !single && value.length > 0 &&
|
|
475
|
+
}), !single && value.length > 0 && `(${value.length}${Number.isInteger(maxLength) ? `/${maxLength}` : ''})`, ":"), /*#__PURE__*/React__default["default"].createElement(SimpleBar__default["default"], {
|
|
482
476
|
className: style$3['tag-container']
|
|
483
477
|
}, /*#__PURE__*/React__default["default"].createElement(antd.Flex, {
|
|
484
478
|
gap: 8,
|
|
@@ -502,12 +496,11 @@ const SelectedTagList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
502
496
|
|
|
503
497
|
var style$2 = {"list":"_IsXdU","is-popup":"_-dvpa","empty":"_SQZ8k","default-list":"_QD1Mz","is-selected-all":"_M-mOy","default-list-item":"_KtOsz","is-selected":"_TQhBB","single-checked":"_2rUrh","is-disabled":"_NbwX5","selected-all":"_vN2Fx","selected-tag":"_6oITk","select-search":"_iAH9D","select-list-item-description":"_TCkeJ","footer":"_v3f23"};
|
|
504
498
|
|
|
505
|
-
const _excluded$1 = ["children"];
|
|
506
499
|
const SelectList = React.forwardRef((_ref, ref) => {
|
|
507
500
|
let {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
501
|
+
children,
|
|
502
|
+
...p
|
|
503
|
+
} = _ref;
|
|
511
504
|
const fetchListRef = React.useRef(null);
|
|
512
505
|
const props = Object.assign({}, {
|
|
513
506
|
renderItemContent: _ref2 => {
|
|
@@ -802,8 +795,7 @@ const SelectTableList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
802
795
|
className: classnames__default["default"](style$1['footer'], 'select-table-footer')
|
|
803
796
|
}, typeof footer === 'function' ? footer({
|
|
804
797
|
reload: () => {
|
|
805
|
-
|
|
806
|
-
((_fetchListRef$current = fetchListRef.current) == null ? void 0 : _fetchListRef$current.fetchApi) && ((_fetchListRef$current2 = fetchListRef.current) == null ? void 0 : _fetchListRef$current2.fetchApi.reload());
|
|
798
|
+
fetchListRef.current?.fetchApi && fetchListRef.current?.fetchApi.reload();
|
|
807
799
|
},
|
|
808
800
|
close: () => {
|
|
809
801
|
onOpenChange(false);
|
|
@@ -836,13 +828,16 @@ const SelectTableList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
836
828
|
} = _ref;
|
|
837
829
|
setValue(value => {
|
|
838
830
|
if (checked) {
|
|
839
|
-
|
|
840
|
-
const newValue = value.slice(0);
|
|
841
|
-
const selectedItem = (_fetchListRef$current3 = fetchListRef.current) == null ? void 0 : _fetchListRef$current3.list.find(item => item[valueKey] === selectedKey);
|
|
831
|
+
const selectedItem = fetchListRef.current?.list.find(item => item[valueKey] === selectedKey);
|
|
842
832
|
if (selectedItem) {
|
|
833
|
+
if (single) {
|
|
834
|
+
return [selectedItem];
|
|
835
|
+
}
|
|
836
|
+
const newValue = value.slice(0);
|
|
843
837
|
newValue.push(selectedItem);
|
|
838
|
+
return newValue;
|
|
844
839
|
}
|
|
845
|
-
return
|
|
840
|
+
return value;
|
|
846
841
|
} else {
|
|
847
842
|
return value.filter(item => item[valueKey] !== selectedKey);
|
|
848
843
|
}
|
|
@@ -924,7 +919,7 @@ const SelectTableList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
924
919
|
align: 'middle'
|
|
925
920
|
}, /*#__PURE__*/React__default["default"].createElement(antd.Col, null, formatMessage({
|
|
926
921
|
id: 'selected'
|
|
927
|
-
}), value.length > 0 &&
|
|
922
|
+
}), value.length > 0 && `(${value.length}${Number.isInteger(maxLength) ? `/${maxLength}` : ''})`, ":"), /*#__PURE__*/React__default["default"].createElement(antd.Col, null, /*#__PURE__*/React__default["default"].createElement(antd.Button, {
|
|
928
923
|
className: style$1['no-padding-btn'],
|
|
929
924
|
type: "link",
|
|
930
925
|
onClick: () => {
|
|
@@ -936,7 +931,6 @@ const SelectTableList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
936
931
|
wrap: true,
|
|
937
932
|
gap: 8
|
|
938
933
|
}, value.filter(item => getTagSearchCallback(tagSearchText, item, targetProps)).map(item => {
|
|
939
|
-
var _fetchListRef$current4, _fetchListRef$current5;
|
|
940
934
|
return /*#__PURE__*/React__default["default"].createElement(antd.Tag, {
|
|
941
935
|
className: style$1['tag'],
|
|
942
936
|
key: item[valueKey],
|
|
@@ -960,8 +954,8 @@ const SelectTableList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
960
954
|
})),
|
|
961
955
|
dataSource: Object.assign({}, item),
|
|
962
956
|
context: Object.assign({}, targetProps, {
|
|
963
|
-
fetchApi:
|
|
964
|
-
list:
|
|
957
|
+
fetchApi: fetchListRef.current?.fetchApi,
|
|
958
|
+
list: fetchListRef.current?.list
|
|
965
959
|
})
|
|
966
960
|
})
|
|
967
961
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -973,8 +967,6 @@ const SelectTableList = reactIntl.createWithIntlProvider('zh-CN', locale$1, 'sup
|
|
|
973
967
|
|
|
974
968
|
var style = {"list":"_YTqxA","is-popup":"_TR-1a","default-list":"_IZN7r","is-selected-all":"_GCIMn","default-list-item":"_AYi0i","is-selected":"_eovZv","single-checked":"_Tr-bO","is-disabled":"_T-hri","selected-all":"_4XFtm","selected-tag":"_Whlzr","select-search":"_7zuBL","select-tree-item-description":"_R-Sye","footer":"_PjlnR"};
|
|
975
969
|
|
|
976
|
-
const _excluded = ["children"],
|
|
977
|
-
_excluded2 = ["data"];
|
|
978
970
|
const parseTreeData = memoize__default["default"](function (data, _ref) {
|
|
979
971
|
if (data === void 0) {
|
|
980
972
|
data = [];
|
|
@@ -1001,9 +993,9 @@ const parseTreeData = memoize__default["default"](function (data, _ref) {
|
|
|
1001
993
|
});
|
|
1002
994
|
const SelectTree = React.forwardRef((_ref2, ref) => {
|
|
1003
995
|
let {
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
996
|
+
children,
|
|
997
|
+
...p
|
|
998
|
+
} = _ref2;
|
|
1007
999
|
const fetchListRef = React.useRef(null);
|
|
1008
1000
|
const [expandedKeys, setExpandedKeys] = React.useState([]);
|
|
1009
1001
|
const props = Object.assign({}, {
|
|
@@ -1160,9 +1152,9 @@ const SelectTree = React.forwardRef((_ref2, ref) => {
|
|
|
1160
1152
|
ref: fetchListRef,
|
|
1161
1153
|
render: _ref5 => {
|
|
1162
1154
|
let {
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1155
|
+
data,
|
|
1156
|
+
...fetchProps
|
|
1157
|
+
} = _ref5;
|
|
1166
1158
|
const isSelectedAll = computedIsSelectAll(value, selectedAllValue, valueKey);
|
|
1167
1159
|
return /*#__PURE__*/React__default["default"].createElement(SimpleBar__default["default"], {
|
|
1168
1160
|
className: classnames__default["default"](style['list'], 'select-tree-scroll-list', {
|