uiw 5.0.0-bate-6 → 5.0.0-bate-7
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/uiw.js +11 -3
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.js
CHANGED
|
@@ -17040,7 +17040,8 @@ function TableTr(props) {
|
|
|
17040
17040
|
indentSize,
|
|
17041
17041
|
childrenColumnName,
|
|
17042
17042
|
locationWidth,
|
|
17043
|
-
header
|
|
17043
|
+
header,
|
|
17044
|
+
isAutoExpanded = true
|
|
17044
17045
|
} = props;
|
|
17045
17046
|
var [isOpacity, setIsOpacity] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false);
|
|
17046
17047
|
var [childrenIndex, setChildrenIndex] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0);
|
|
@@ -17105,7 +17106,13 @@ function TableTr(props) {
|
|
|
17105
17106
|
}
|
|
17106
17107
|
}
|
|
17107
17108
|
var isHasChildren = Array.isArray(trData[childrenColumnName]);
|
|
17108
|
-
|
|
17109
|
+
var isExpanded = false;
|
|
17110
|
+
if ((isOpacity || hierarchy || isHasChildren) && colNum === childrenIndex && isAutoExpanded) {
|
|
17111
|
+
isExpanded = true;
|
|
17112
|
+
} else if ((isOpacity || hierarchy || isHasChildren) && !isAutoExpanded && keyName.isExpanded) {
|
|
17113
|
+
isExpanded = true;
|
|
17114
|
+
}
|
|
17115
|
+
if (isExpanded) {
|
|
17109
17116
|
objs.children = /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
17110
17117
|
children: [IconDom(key, isHasChildren), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
17111
17118
|
style: {
|
|
@@ -17411,7 +17418,8 @@ function esm_Table(props) {
|
|
|
17411
17418
|
hierarchy: 0,
|
|
17412
17419
|
isExpandedDom: isExpandedDom,
|
|
17413
17420
|
indentSize: typeof (expandable == null ? void 0 : expandable.indentSize) === 'number' ? expandable == null ? void 0 : expandable.indentSize : 16,
|
|
17414
|
-
childrenColumnName: (expandable == null ? void 0 : expandable.childrenColumnName) || 'children'
|
|
17421
|
+
childrenColumnName: (expandable == null ? void 0 : expandable.childrenColumnName) || 'children',
|
|
17422
|
+
isAutoExpanded: expandable == null ? void 0 : expandable.isAutoExpanded
|
|
17415
17423
|
})
|
|
17416
17424
|
}), data && data.length === 0 && empty && /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
17417
17425
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|