dtable-ui-component 5.3.1-beta2 → 5.3.1-beta4
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.
|
@@ -35,7 +35,7 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
35
35
|
onToggle,
|
|
36
36
|
uploadFile,
|
|
37
37
|
copyURL,
|
|
38
|
-
children,
|
|
38
|
+
children = [],
|
|
39
39
|
...otherProps
|
|
40
40
|
} = _ref;
|
|
41
41
|
const [isAnimationEnd, setAnimationEnd] = (0, _react.useState)(false);
|
|
@@ -61,14 +61,14 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
61
61
|
};
|
|
62
62
|
}, []);
|
|
63
63
|
const style = (0, _react.useMemo)(() => {
|
|
64
|
-
const width = 800;
|
|
64
|
+
const width = children[1] ? 1100 : 800;
|
|
65
65
|
return {
|
|
66
66
|
width,
|
|
67
67
|
maxWidth: width,
|
|
68
68
|
marginLeft: (window.innerWidth - width) / 2,
|
|
69
69
|
height: 'calc(100% - 56px)' // Dialog margin is 3.5rem (56px)
|
|
70
70
|
};
|
|
71
|
-
}, []);
|
|
71
|
+
}, [children]);
|
|
72
72
|
const _checkEditable = (0, _react.useCallback)((column, row) => {
|
|
73
73
|
if (isSaving) return false;
|
|
74
74
|
if (!column) return false;
|