@kdcloudjs/kdesign 1.6.30 → 1.6.31
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/CHANGELOG.md +27 -0
- package/dist/kdesign-complete.less +16 -0
- package/dist/kdesign.css +13 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +75 -24
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/testBrowserType.d.ts +1 -0
- package/es/_utils/testBrowserType.js +11 -0
- package/es/form/style/index.css +4 -0
- package/es/form/style/index.less +6 -0
- package/es/grid/col.js +7 -2
- package/es/grid/row.js +6 -1
- package/es/grid/style/index.css +6 -0
- package/es/grid/style/index.less +8 -0
- package/es/select/select.js +30 -19
- package/es/select/style/index.css +2 -0
- package/es/select/style/index.less +2 -0
- package/es/tree/treeHooks.js +1 -1
- package/lib/_utils/testBrowserType.d.ts +1 -0
- package/lib/_utils/testBrowserType.js +18 -0
- package/lib/form/style/index.css +4 -0
- package/lib/form/style/index.less +6 -0
- package/lib/grid/col.js +8 -2
- package/lib/grid/row.js +7 -1
- package/lib/grid/style/index.css +6 -0
- package/lib/grid/style/index.less +8 -0
- package/lib/select/select.js +29 -19
- package/lib/select/style/index.css +2 -0
- package/lib/select/style/index.less +2 -0
- package/lib/tree/treeHooks.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function testBrowserType(reg: RegExp, type: number): boolean;
|
package/es/form/style/index.css
CHANGED
|
@@ -120,6 +120,10 @@
|
|
|
120
120
|
display: -ms-flexbox;
|
|
121
121
|
display: flex;
|
|
122
122
|
}
|
|
123
|
+
.kd-form-horizontal .kd-form-field-label {
|
|
124
|
+
-ms-flex-negative: 0;
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
}
|
|
123
127
|
.kd-form-inline .kd-form-field {
|
|
124
128
|
display: -webkit-inline-box;
|
|
125
129
|
display: -ms-inline-flexbox;
|
package/es/form/style/index.less
CHANGED
package/es/grid/col.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { getCompProps } from '../_utils';
|
|
6
6
|
import { ConfigContext } from '../config-provider';
|
|
7
|
+
import { testBrowserType } from '../_utils/testBrowserType';
|
|
7
8
|
|
|
8
9
|
var Col = function Col(props) {
|
|
9
10
|
var _React$useContext = React.useContext(ConfigContext),
|
|
@@ -28,9 +29,11 @@ var Col = function Col(props) {
|
|
|
28
29
|
winWidth = _getCompProps.winWidth,
|
|
29
30
|
children = _getCompProps.children,
|
|
30
31
|
className = _getCompProps.className,
|
|
31
|
-
customPrefixcls = _getCompProps.prefixCls; //
|
|
32
|
+
customPrefixcls = _getCompProps.prefixCls; // 浏览器名称
|
|
32
33
|
|
|
33
34
|
|
|
35
|
+
var isSogou = testBrowserType(/^sogou/i, 0); // className前缀
|
|
36
|
+
|
|
34
37
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'col', customPrefixcls);
|
|
35
38
|
var columns = 24;
|
|
36
39
|
var base = {
|
|
@@ -97,7 +100,9 @@ var Col = function Col(props) {
|
|
|
97
100
|
}, style);
|
|
98
101
|
|
|
99
102
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
-
className: classNames(prefixCls, className
|
|
103
|
+
className: classNames(prefixCls, className, {
|
|
104
|
+
'sogou-col': isSogou
|
|
105
|
+
}),
|
|
101
106
|
style: styleString
|
|
102
107
|
}, children);
|
|
103
108
|
};
|
package/es/grid/row.js
CHANGED
|
@@ -6,6 +6,7 @@ import classNames from 'classnames';
|
|
|
6
6
|
import { getCompProps } from '../_utils';
|
|
7
7
|
import { ConfigContext } from '../config-provider';
|
|
8
8
|
import throttle from 'lodash/throttle';
|
|
9
|
+
import { testBrowserType } from '../_utils/testBrowserType';
|
|
9
10
|
|
|
10
11
|
function getGap(gutter, width) {
|
|
11
12
|
var xs = gutter.xs,
|
|
@@ -39,9 +40,11 @@ var Row = function Row(props) {
|
|
|
39
40
|
gutter = _getCompProps.gutter,
|
|
40
41
|
align = _getCompProps.align,
|
|
41
42
|
justify = _getCompProps.justify,
|
|
42
|
-
customPrefixcls = _getCompProps.prefixCls; //
|
|
43
|
+
customPrefixcls = _getCompProps.prefixCls; // 浏览器名称
|
|
43
44
|
|
|
44
45
|
|
|
46
|
+
var isSogou = testBrowserType(/^sogou/i, 0); // className前缀
|
|
47
|
+
|
|
45
48
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'row', customPrefixcls);
|
|
46
49
|
|
|
47
50
|
var _React$useState = React.useState(window.innerWidth),
|
|
@@ -99,6 +102,8 @@ var Row = function Row(props) {
|
|
|
99
102
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
103
|
className: classNames(prefixCls, className, {
|
|
101
104
|
nowrap: !wrap
|
|
105
|
+
}, {
|
|
106
|
+
'sogou-row': isSogou
|
|
102
107
|
}),
|
|
103
108
|
style: styleString
|
|
104
109
|
}, _mapInstanceProperty(_context = React.Children).call(_context, children, function (child) {
|
package/es/grid/style/index.css
CHANGED
|
@@ -119,9 +119,15 @@
|
|
|
119
119
|
-ms-flex-wrap: nowrap;
|
|
120
120
|
flex-wrap: nowrap;
|
|
121
121
|
}
|
|
122
|
+
.kd-row.sogou-row {
|
|
123
|
+
margin-bottom: calc(-1 * var(--rgap));
|
|
124
|
+
}
|
|
122
125
|
.kd-col {
|
|
123
126
|
position: relative;
|
|
124
127
|
-webkit-box-sizing: border-box;
|
|
125
128
|
box-sizing: border-box;
|
|
126
129
|
padding: 0 calc(var(--cgap) / 2);
|
|
127
130
|
}
|
|
131
|
+
.kd-col.sogou-col {
|
|
132
|
+
margin-bottom: var(--rgap);
|
|
133
|
+
}
|
package/es/grid/style/index.less
CHANGED
|
@@ -13,10 +13,18 @@
|
|
|
13
13
|
&.nowrap {
|
|
14
14
|
flex-wrap: nowrap;
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
&.sogou-row {
|
|
18
|
+
margin-bottom: calc(-1 * var(--rgap));
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
.@{col-prefix-cls} {
|
|
19
23
|
position: relative;
|
|
20
24
|
box-sizing: border-box;
|
|
21
25
|
padding: 0 calc(var(--cgap) / 2);
|
|
26
|
+
|
|
27
|
+
&.sogou-col {
|
|
28
|
+
margin-bottom: var(--rgap);
|
|
29
|
+
}
|
|
22
30
|
}
|
package/es/select/select.js
CHANGED
|
@@ -411,31 +411,42 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
411
411
|
selectedVal = _multipleRef$current3.selectedVal,
|
|
412
412
|
selectMulOpts = _multipleRef$current3.selectMulOpts;
|
|
413
413
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
414
|
+
var newSelectedVal = _toConsumableArray(selectedVal);
|
|
415
|
+
|
|
416
|
+
var newSelectMulOpts = _toConsumableArray(selectMulOpts);
|
|
417
|
+
|
|
418
|
+
if ((filledOptions === null || filledOptions === void 0 ? void 0 : filledOptions.length) !== newSelectedVal.length) {
|
|
419
|
+
_mapInstanceProperty(filledOptions).call(filledOptions, function (child) {
|
|
420
|
+
var _ref = child.props || child,
|
|
421
|
+
value = _ref.value;
|
|
422
|
+
|
|
423
|
+
if (!_includesInstanceProperty(newSelectedVal).call(newSelectedVal, value)) {
|
|
424
|
+
newSelectedVal.push(value);
|
|
425
|
+
newSelectMulOpts.push({
|
|
426
|
+
value: value,
|
|
427
|
+
label: getOptionLabel(child)
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
});
|
|
428
431
|
|
|
429
|
-
|
|
432
|
+
if (typeof value === 'undefined') {
|
|
433
|
+
multipleRef.current.selectedVal = newSelectedVal;
|
|
434
|
+
multipleRef.current.selectMulOpts = newSelectMulOpts;
|
|
435
|
+
setMulOptions(_toConsumableArray(newSelectMulOpts));
|
|
430
436
|
setSearchValue('');
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
437
|
+
}
|
|
438
|
+
} else {
|
|
439
|
+
newSelectedVal = [];
|
|
440
|
+
newSelectMulOpts = [];
|
|
441
|
+
|
|
442
|
+
if (typeof value === 'undefined') {
|
|
443
|
+
multipleRef.current.selectedVal = [];
|
|
444
|
+
multipleRef.current.selectMulOpts = [];
|
|
434
445
|
setMulOptions([]);
|
|
435
446
|
}
|
|
436
447
|
}
|
|
437
448
|
|
|
438
|
-
onChange && onChange(labelInValue ?
|
|
449
|
+
onChange && onChange(labelInValue ? newSelectMulOpts : newSelectedVal, newSelectMulOpts);
|
|
439
450
|
}; // 输入框变化搜索内容
|
|
440
451
|
|
|
441
452
|
|
package/es/tree/treeHooks.js
CHANGED
|
@@ -83,7 +83,7 @@ export var useExpand = function useExpand(flattenAllData, expandedKeysProps, def
|
|
|
83
83
|
|
|
84
84
|
React.useEffect(function () {
|
|
85
85
|
setExpandedKeys(initialExpandedKeys);
|
|
86
|
-
}, [expandedKeysProps, searchExpandedKeys, defaultExpandAll, defaultExpandedKeys, defaultExpandRoot, defaultExpandParent]);
|
|
86
|
+
}, [flattenAllData, expandedKeysProps, searchExpandedKeys, defaultExpandAll, defaultExpandedKeys, defaultExpandRoot, defaultExpandParent]);
|
|
87
87
|
return [expandedKeys, setExpandedKeys];
|
|
88
88
|
};
|
|
89
89
|
export var useScrollToKey = function useScrollToKey(scrollKey, index, estimatedItemSize, scrollRef, viewportHeight, treeNodePrefixCls) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function testBrowserType(reg: RegExp, type: number): boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.testBrowserType = testBrowserType;
|
|
7
|
+
|
|
8
|
+
function testBrowserType(reg, type) {
|
|
9
|
+
var external = window.external || {};
|
|
10
|
+
|
|
11
|
+
for (var i in external) {
|
|
12
|
+
if (reg.test(type ? external[i] : i)) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return false;
|
|
18
|
+
}
|
package/lib/form/style/index.css
CHANGED
|
@@ -120,6 +120,10 @@
|
|
|
120
120
|
display: -ms-flexbox;
|
|
121
121
|
display: flex;
|
|
122
122
|
}
|
|
123
|
+
.kd-form-horizontal .kd-form-field-label {
|
|
124
|
+
-ms-flex-negative: 0;
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
}
|
|
123
127
|
.kd-form-inline .kd-form-field {
|
|
124
128
|
display: -webkit-inline-box;
|
|
125
129
|
display: -ms-inline-flexbox;
|
package/lib/grid/col.js
CHANGED
|
@@ -25,6 +25,8 @@ var _utils = require("../_utils");
|
|
|
25
25
|
|
|
26
26
|
var _configProvider = require("../config-provider");
|
|
27
27
|
|
|
28
|
+
var _testBrowserType = require("../_utils/testBrowserType");
|
|
29
|
+
|
|
28
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
31
|
|
|
30
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -52,8 +54,10 @@ var Col = function Col(props) {
|
|
|
52
54
|
winWidth = _getCompProps.winWidth,
|
|
53
55
|
children = _getCompProps.children,
|
|
54
56
|
className = _getCompProps.className,
|
|
55
|
-
customPrefixcls = _getCompProps.prefixCls; //
|
|
57
|
+
customPrefixcls = _getCompProps.prefixCls; // 浏览器名称
|
|
58
|
+
|
|
56
59
|
|
|
60
|
+
var isSogou = (0, _testBrowserType.testBrowserType)(/^sogou/i, 0); // className前缀
|
|
57
61
|
|
|
58
62
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'col', customPrefixcls);
|
|
59
63
|
var columns = 24;
|
|
@@ -120,7 +124,9 @@ var Col = function Col(props) {
|
|
|
120
124
|
marginLeft: base.offset && base.offset / columns * 100 + '%'
|
|
121
125
|
}, style);
|
|
122
126
|
return /*#__PURE__*/React.createElement("div", {
|
|
123
|
-
className: (0, _classnames.default)(prefixCls, className
|
|
127
|
+
className: (0, _classnames.default)(prefixCls, className, {
|
|
128
|
+
'sogou-col': isSogou
|
|
129
|
+
}),
|
|
124
130
|
style: styleString
|
|
125
131
|
}, children);
|
|
126
132
|
};
|
package/lib/grid/row.js
CHANGED
|
@@ -29,6 +29,8 @@ var _configProvider = require("../config-provider");
|
|
|
29
29
|
|
|
30
30
|
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
31
31
|
|
|
32
|
+
var _testBrowserType = require("../_utils/testBrowserType");
|
|
33
|
+
|
|
32
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
35
|
|
|
34
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -65,8 +67,10 @@ var Row = function Row(props) {
|
|
|
65
67
|
gutter = _getCompProps.gutter,
|
|
66
68
|
align = _getCompProps.align,
|
|
67
69
|
justify = _getCompProps.justify,
|
|
68
|
-
customPrefixcls = _getCompProps.prefixCls; //
|
|
70
|
+
customPrefixcls = _getCompProps.prefixCls; // 浏览器名称
|
|
71
|
+
|
|
69
72
|
|
|
73
|
+
var isSogou = (0, _testBrowserType.testBrowserType)(/^sogou/i, 0); // className前缀
|
|
70
74
|
|
|
71
75
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'row', customPrefixcls);
|
|
72
76
|
|
|
@@ -123,6 +127,8 @@ var Row = function Row(props) {
|
|
|
123
127
|
return /*#__PURE__*/React.createElement("div", {
|
|
124
128
|
className: (0, _classnames.default)(prefixCls, className, {
|
|
125
129
|
nowrap: !wrap
|
|
130
|
+
}, {
|
|
131
|
+
'sogou-row': isSogou
|
|
126
132
|
}),
|
|
127
133
|
style: styleString
|
|
128
134
|
}, (0, _map.default)(_context = React.Children).call(_context, children, function (child) {
|
package/lib/grid/style/index.css
CHANGED
|
@@ -119,9 +119,15 @@
|
|
|
119
119
|
-ms-flex-wrap: nowrap;
|
|
120
120
|
flex-wrap: nowrap;
|
|
121
121
|
}
|
|
122
|
+
.kd-row.sogou-row {
|
|
123
|
+
margin-bottom: calc(-1 * var(--rgap));
|
|
124
|
+
}
|
|
122
125
|
.kd-col {
|
|
123
126
|
position: relative;
|
|
124
127
|
-webkit-box-sizing: border-box;
|
|
125
128
|
box-sizing: border-box;
|
|
126
129
|
padding: 0 calc(var(--cgap) / 2);
|
|
127
130
|
}
|
|
131
|
+
.kd-col.sogou-col {
|
|
132
|
+
margin-bottom: var(--rgap);
|
|
133
|
+
}
|
|
@@ -13,10 +13,18 @@
|
|
|
13
13
|
&.nowrap {
|
|
14
14
|
flex-wrap: nowrap;
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
&.sogou-row {
|
|
18
|
+
margin-bottom: calc(-1 * var(--rgap));
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
.@{col-prefix-cls} {
|
|
19
23
|
position: relative;
|
|
20
24
|
box-sizing: border-box;
|
|
21
25
|
padding: 0 calc(var(--cgap) / 2);
|
|
26
|
+
|
|
27
|
+
&.sogou-col {
|
|
28
|
+
margin-bottom: var(--rgap);
|
|
29
|
+
}
|
|
22
30
|
}
|
package/lib/select/select.js
CHANGED
|
@@ -440,31 +440,41 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
440
440
|
var _multipleRef$current3 = multipleRef.current,
|
|
441
441
|
selectedVal = _multipleRef$current3.selectedVal,
|
|
442
442
|
selectMulOpts = _multipleRef$current3.selectMulOpts;
|
|
443
|
+
var newSelectedVal = (0, _toConsumableArray2.default)(selectedVal);
|
|
444
|
+
var newSelectMulOpts = (0, _toConsumableArray2.default)(selectMulOpts);
|
|
445
|
+
|
|
446
|
+
if ((filledOptions === null || filledOptions === void 0 ? void 0 : filledOptions.length) !== newSelectedVal.length) {
|
|
447
|
+
(0, _map.default)(filledOptions).call(filledOptions, function (child) {
|
|
448
|
+
var _ref = child.props || child,
|
|
449
|
+
value = _ref.value;
|
|
450
|
+
|
|
451
|
+
if (!(0, _includes.default)(newSelectedVal).call(newSelectedVal, value)) {
|
|
452
|
+
newSelectedVal.push(value);
|
|
453
|
+
newSelectMulOpts.push({
|
|
454
|
+
value: value,
|
|
455
|
+
label: getOptionLabel(child)
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
});
|
|
443
459
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
value = _ref.value;
|
|
449
|
-
|
|
450
|
-
if (!(0, _includes.default)(selectedVal).call(selectedVal, value)) {
|
|
451
|
-
selectedVal.push(value);
|
|
452
|
-
selectMulOpts.push({
|
|
453
|
-
value: value,
|
|
454
|
-
label: getOptionLabel(child)
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
setMulOptions((0, _toConsumableArray2.default)(selectMulOpts));
|
|
460
|
+
if (typeof value === 'undefined') {
|
|
461
|
+
multipleRef.current.selectedVal = newSelectedVal;
|
|
462
|
+
multipleRef.current.selectMulOpts = newSelectMulOpts;
|
|
463
|
+
setMulOptions((0, _toConsumableArray2.default)(newSelectMulOpts));
|
|
459
464
|
setSearchValue('');
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
465
|
+
}
|
|
466
|
+
} else {
|
|
467
|
+
newSelectedVal = [];
|
|
468
|
+
newSelectMulOpts = [];
|
|
469
|
+
|
|
470
|
+
if (typeof value === 'undefined') {
|
|
471
|
+
multipleRef.current.selectedVal = [];
|
|
472
|
+
multipleRef.current.selectMulOpts = [];
|
|
463
473
|
setMulOptions([]);
|
|
464
474
|
}
|
|
465
475
|
}
|
|
466
476
|
|
|
467
|
-
onChange && onChange(labelInValue ?
|
|
477
|
+
onChange && onChange(labelInValue ? newSelectMulOpts : newSelectedVal, newSelectMulOpts);
|
|
468
478
|
}; // 输入框变化搜索内容
|
|
469
479
|
|
|
470
480
|
|
package/lib/tree/treeHooks.js
CHANGED
|
@@ -123,7 +123,7 @@ var useExpand = function useExpand(flattenAllData, expandedKeysProps, defaultExp
|
|
|
123
123
|
|
|
124
124
|
_react.default.useEffect(function () {
|
|
125
125
|
setExpandedKeys(initialExpandedKeys);
|
|
126
|
-
}, [expandedKeysProps, searchExpandedKeys, defaultExpandAll, defaultExpandedKeys, defaultExpandRoot, defaultExpandParent]);
|
|
126
|
+
}, [flattenAllData, expandedKeysProps, searchExpandedKeys, defaultExpandAll, defaultExpandedKeys, defaultExpandRoot, defaultExpandParent]);
|
|
127
127
|
|
|
128
128
|
return [expandedKeys, setExpandedKeys];
|
|
129
129
|
};
|