shineout 3.6.7-beta.1 → 3.6.7-beta.3
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/dist/shineout.js +22 -17
- 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/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.7-beta.
|
|
517
|
+
version: '3.6.7-beta.3'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12217
12217
|
};
|
|
12218
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12219
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12220
|
-
/* harmony default export */ var version = ('3.6.7-beta.
|
|
12220
|
+
/* harmony default export */ var version = ('3.6.7-beta.3');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -38769,6 +38769,16 @@ var useTree = function useTree(props) {
|
|
|
38769
38769
|
var getFlatData = function getFlatData() {
|
|
38770
38770
|
return context.dataFlat;
|
|
38771
38771
|
};
|
|
38772
|
+
var updateExpanded = usePersistFn(function (expanded) {
|
|
38773
|
+
var tempExpandMap = new Set(expanded);
|
|
38774
|
+
if (!expanded) return;
|
|
38775
|
+
if (virtual) {
|
|
38776
|
+
expandedFlat(expanded);
|
|
38777
|
+
}
|
|
38778
|
+
context.updateMap.forEach(function (update, id) {
|
|
38779
|
+
update('expanded', tempExpandMap.has(id));
|
|
38780
|
+
});
|
|
38781
|
+
});
|
|
38772
38782
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
38773
38783
|
if (defaultExpandAll) {
|
|
38774
38784
|
var nextExpanded = [];
|
|
@@ -38784,6 +38794,11 @@ var useTree = function useTree(props) {
|
|
|
38784
38794
|
if (props.datum) return;
|
|
38785
38795
|
if (!dataUpdate) return;
|
|
38786
38796
|
setData(data);
|
|
38797
|
+
var nextExpanded = props.expanded || props.defaultExpanded || [];
|
|
38798
|
+
if (!shallowEqual(nextExpanded, expanded)) {
|
|
38799
|
+
onExpand(nextExpanded);
|
|
38800
|
+
updateExpanded(nextExpanded);
|
|
38801
|
+
}
|
|
38787
38802
|
updateInnerCheckStatus();
|
|
38788
38803
|
}, [data]);
|
|
38789
38804
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -38810,16 +38825,17 @@ var useTree = function useTree(props) {
|
|
|
38810
38825
|
getChecked: getChecked,
|
|
38811
38826
|
getKey: getKey,
|
|
38812
38827
|
getFlatData: getFlatData,
|
|
38828
|
+
getDataById: getDataById,
|
|
38813
38829
|
getDataByValues: getDataByValues,
|
|
38814
38830
|
setValue: setValue,
|
|
38815
38831
|
setData: setData,
|
|
38816
38832
|
isDisabled: isDisabled,
|
|
38833
|
+
isUnMatched: isUnMatched,
|
|
38817
38834
|
bindNode: bindNode,
|
|
38818
38835
|
bindVirtualNode: bindVirtualNode,
|
|
38819
|
-
getDataById: getDataById,
|
|
38820
38836
|
bindUpdate: bindUpdate,
|
|
38821
38837
|
unBindUpdate: unBindUpdate,
|
|
38822
|
-
|
|
38838
|
+
updateExpanded: updateExpanded,
|
|
38823
38839
|
childrenKey: childrenKey,
|
|
38824
38840
|
data: data,
|
|
38825
38841
|
dataFlat: dataFlat,
|
|
@@ -49645,7 +49661,7 @@ var useForm = function useForm(props) {
|
|
|
49645
49661
|
if (errors.length > 0) {
|
|
49646
49662
|
var errorFields = [];
|
|
49647
49663
|
for (var _key in context.errors) {
|
|
49648
|
-
if (context.errors[_key]) {
|
|
49664
|
+
if (context.errors[_key] && context.names.has(_key)) {
|
|
49649
49665
|
var _context$errors$_key;
|
|
49650
49666
|
errorFields.push({
|
|
49651
49667
|
name: _key,
|
|
@@ -49961,7 +49977,6 @@ var useForm = function useForm(props) {
|
|
|
49961
49977
|
}
|
|
49962
49978
|
if (validateFieldSet.size === 0 && updateFieldSet.size === 0) {
|
|
49963
49979
|
context.names.delete(n);
|
|
49964
|
-
delete context.errors[n];
|
|
49965
49980
|
delete context.defaultValues[n];
|
|
49966
49981
|
}
|
|
49967
49982
|
var finalReserveAble = (_props$reserveAble = props.reserveAble) !== null && _props$reserveAble !== void 0 ? _props$reserveAble : reserveAble;
|
|
@@ -54667,16 +54682,6 @@ var Tree = function Tree(props) {
|
|
|
54667
54682
|
}
|
|
54668
54683
|
return props.height || styleHeight;
|
|
54669
54684
|
};
|
|
54670
|
-
var handleUpdateExpanded = function handleUpdateExpanded(expanded) {
|
|
54671
|
-
var tempExpandMap = new Set(expanded);
|
|
54672
|
-
if (!expanded) return;
|
|
54673
|
-
if (virtual) {
|
|
54674
|
-
datum.expandedFlat(expanded);
|
|
54675
|
-
}
|
|
54676
|
-
datum.updateMap.forEach(function (update, id) {
|
|
54677
|
-
update('expanded', tempExpandMap.has(id));
|
|
54678
|
-
});
|
|
54679
|
-
};
|
|
54680
54685
|
var handleUpdateActive = function handleUpdateActive(active, item) {
|
|
54681
54686
|
setActive(active);
|
|
54682
54687
|
if (active !== props.active) {
|
|
@@ -54825,7 +54830,7 @@ var Tree = function Tree(props) {
|
|
|
54825
54830
|
return;
|
|
54826
54831
|
}
|
|
54827
54832
|
if (!props.expanded) return;
|
|
54828
|
-
|
|
54833
|
+
datum.updateExpanded(expanded);
|
|
54829
54834
|
}, [expanded]);
|
|
54830
54835
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
54831
54836
|
// if (!active) return;
|
|
@@ -70112,7 +70117,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70112
70117
|
|
|
70113
70118
|
|
|
70114
70119
|
/* harmony default export */ var src_0 = ({
|
|
70115
|
-
version: '3.6.7-beta.
|
|
70120
|
+
version: '3.6.7-beta.3'
|
|
70116
70121
|
});
|
|
70117
70122
|
}();
|
|
70118
70123
|
/******/ return __webpack_exports__;
|