shineout 3.4.3-beta.2 → 3.4.3-beta.4
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/cjs/index.js +1 -1
- package/cjs/tree/interface.d.ts +1 -0
- package/dist/shineout.js +24 -18
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/tree/interface.d.ts +1 -0
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.3-beta.
|
|
495
|
+
version: '3.4.3-beta.4'
|
|
496
496
|
};
|
package/cjs/tree/interface.d.ts
CHANGED
package/dist/shineout.js
CHANGED
|
@@ -4431,13 +4431,6 @@ const figma = [
|
|
|
4431
4431
|
token: 'Radius-1000',
|
|
4432
4432
|
locked: true,
|
|
4433
4433
|
},
|
|
4434
|
-
{
|
|
4435
|
-
name: '50%/radius',
|
|
4436
|
-
value: '50%',
|
|
4437
|
-
describe: '50% 全圆角',
|
|
4438
|
-
token: 'Radius-50%',
|
|
4439
|
-
locked: true,
|
|
4440
|
-
},
|
|
4441
4434
|
{
|
|
4442
4435
|
name: '基础阴影',
|
|
4443
4436
|
value: '0px 2px 5px rgba(2, 11, 24, 0.1)',
|
|
@@ -11991,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11991
11984
|
};
|
|
11992
11985
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11993
11986
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11994
|
-
/* harmony default export */ var version = ('3.4.3-beta.
|
|
11987
|
+
/* harmony default export */ var version = ('3.4.3-beta.4');
|
|
11995
11988
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11996
11989
|
|
|
11997
11990
|
|
|
@@ -12357,7 +12350,6 @@ var Token = {
|
|
|
12357
12350
|
'Radius-8': '8px',
|
|
12358
12351
|
'Radius-12': '12px',
|
|
12359
12352
|
'Radius-1000': '1000px',
|
|
12360
|
-
'Radius-50%': '50%',
|
|
12361
12353
|
'Shadow-1': '0px 2px 5px rgba(2, 11, 24, 0.1)',
|
|
12362
12354
|
'Shadow-2': '0px 4px 10px rgba(2, 11, 24, 0.1)',
|
|
12363
12355
|
'Shadow-3': '0px 8px 20px rgba(2, 11, 24, 0.1)',
|
|
@@ -35934,14 +35926,15 @@ var useTree = function useTree(props) {
|
|
|
35934
35926
|
});
|
|
35935
35927
|
|
|
35936
35928
|
// 注册节点
|
|
35937
|
-
var bindNode = function bindNode(id, update) {
|
|
35929
|
+
var bindNode = function bindNode(id, update, item) {
|
|
35938
35930
|
context.updateMap.set(id, update);
|
|
35939
35931
|
var isActive = activeProp === id;
|
|
35940
35932
|
var expandeds = expanded;
|
|
35941
35933
|
if (defaultExpandAll) {
|
|
35934
|
+
var shouldDefaultExpand = defaultExpandAll && isArray(item[childrenKey]) && item[childrenKey].length > 0;
|
|
35942
35935
|
return {
|
|
35943
35936
|
active: isActive,
|
|
35944
|
-
expanded:
|
|
35937
|
+
expanded: shouldDefaultExpand
|
|
35945
35938
|
};
|
|
35946
35939
|
}
|
|
35947
35940
|
return {
|
|
@@ -48329,11 +48322,19 @@ var input_input_Input = function Input(props) {
|
|
|
48329
48322
|
size = _useWithFormConfig.size,
|
|
48330
48323
|
disabled = _useWithFormConfig.disabled,
|
|
48331
48324
|
status = _useWithFormConfig.status,
|
|
48332
|
-
error = _useWithFormConfig.error
|
|
48325
|
+
error = _useWithFormConfig.error,
|
|
48326
|
+
onBlur = _useWithFormConfig.onBlur;
|
|
48333
48327
|
var getProps = function getProps(child) {
|
|
48328
|
+
var onChildBlur = function onChildBlur(e) {
|
|
48329
|
+
var childBlurEvent = child.props.onBlur;
|
|
48330
|
+
if (childBlurEvent) {
|
|
48331
|
+
childBlurEvent(e);
|
|
48332
|
+
}
|
|
48333
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
48334
|
+
};
|
|
48334
48335
|
ref.current.propsMap.set(child, {
|
|
48335
48336
|
onFocus: child.props.onFocus,
|
|
48336
|
-
onBlur:
|
|
48337
|
+
onBlur: onChildBlur
|
|
48337
48338
|
});
|
|
48338
48339
|
if (!ref.current.eventMap.get(child)) {
|
|
48339
48340
|
ref.current.eventMap.set(child, {
|
|
@@ -50049,7 +50050,7 @@ var useTreeNode = function useTreeNode(props) {
|
|
|
50049
50050
|
return true;
|
|
50050
50051
|
};
|
|
50051
50052
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50052
|
-
var _bindNode = bindNode(id, update),
|
|
50053
|
+
var _bindNode = bindNode(id, update, data),
|
|
50053
50054
|
active = _bindNode.active,
|
|
50054
50055
|
nextExpanded = _bindNode.expanded;
|
|
50055
50056
|
setActive(active);
|
|
@@ -50376,6 +50377,7 @@ var tree_list_List = function List(props) {
|
|
|
50376
50377
|
childrenKey = props.childrenKey,
|
|
50377
50378
|
inlineNode = props.inlineNode,
|
|
50378
50379
|
highlight = props.highlight,
|
|
50380
|
+
defaultExpandAll = props.defaultExpandAll,
|
|
50379
50381
|
loader = props.loader,
|
|
50380
50382
|
onNodeClick = props.onNodeClick,
|
|
50381
50383
|
onToggle = props.onToggle,
|
|
@@ -50413,6 +50415,7 @@ var tree_list_List = function List(props) {
|
|
|
50413
50415
|
line: line,
|
|
50414
50416
|
keygen: keygen,
|
|
50415
50417
|
listComponent: List,
|
|
50418
|
+
defaultExpandAll: defaultExpandAll,
|
|
50416
50419
|
isControlled: isControlled,
|
|
50417
50420
|
mode: mode,
|
|
50418
50421
|
active: active,
|
|
@@ -50589,15 +50592,17 @@ var Tree = function Tree(props) {
|
|
|
50589
50592
|
update('expanded', tempExpandMap.has(id));
|
|
50590
50593
|
});
|
|
50591
50594
|
};
|
|
50592
|
-
var handleUpdateActive = function handleUpdateActive(active) {
|
|
50595
|
+
var handleUpdateActive = function handleUpdateActive(active, item) {
|
|
50593
50596
|
setActive(active);
|
|
50594
|
-
|
|
50597
|
+
if (active !== props.active) {
|
|
50598
|
+
propSetActive === null || propSetActive === void 0 || propSetActive(active, item);
|
|
50599
|
+
}
|
|
50595
50600
|
datum.updateMap.forEach(function (update, id) {
|
|
50596
50601
|
update('active', id === active);
|
|
50597
50602
|
});
|
|
50598
50603
|
};
|
|
50599
50604
|
var handleNodeClick = function handleNodeClick(node, id) {
|
|
50600
|
-
handleUpdateActive(id);
|
|
50605
|
+
handleUpdateActive(id, node);
|
|
50601
50606
|
if (onClick) {
|
|
50602
50607
|
onClick(node, id, datum.getPath(id));
|
|
50603
50608
|
}
|
|
@@ -50705,6 +50710,7 @@ var Tree = function Tree(props) {
|
|
|
50705
50710
|
contentClass: contentClass,
|
|
50706
50711
|
expanded: expanded,
|
|
50707
50712
|
expandIcons: expandIcons,
|
|
50713
|
+
defaultExpandAll: defaultExpandAll,
|
|
50708
50714
|
childrenClass: isFunc(childrenClass) ? childrenClass : function () {
|
|
50709
50715
|
return childrenClass;
|
|
50710
50716
|
},
|
|
@@ -65144,7 +65150,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
65144
65150
|
|
|
65145
65151
|
|
|
65146
65152
|
/* harmony default export */ var src_0 = ({
|
|
65147
|
-
version: '3.4.3-beta.
|
|
65153
|
+
version: '3.4.3-beta.4'
|
|
65148
65154
|
});
|
|
65149
65155
|
}();
|
|
65150
65156
|
/******/ return __webpack_exports__;
|