dtable-ui-component 5.3.1-beta2 → 5.3.1-beta3

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.
@@ -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 && 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;
@@ -234,13 +234,13 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
234
234
  columns: columns,
235
235
  copyURL: copyURL,
236
236
  onToggle: toggle
237
- }, children[0]), /*#__PURE__*/_react.default.createElement(_body.default, Object.assign({}, otherProps, {
237
+ }, children && children[0]), /*#__PURE__*/_react.default.createElement(_body.default, Object.assign({}, otherProps, {
238
238
  row: row,
239
239
  columns: columns,
240
240
  valueKey: valueKey,
241
241
  onChange: onChange,
242
242
  uploadFile: uploadFile
243
- }), children[1]), (!saveImmediately || isInsertingRow) && /*#__PURE__*/_react.default.createElement(_reactstrap.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
243
+ }), children && children[1]), (!saveImmediately || isInsertingRow) && /*#__PURE__*/_react.default.createElement(_reactstrap.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
244
244
  onClick: toggle,
245
245
  color: "secondary"
246
246
  }, (0, _lang.getLocale)('Cancel')), /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.3.1beta2",
3
+ "version": "5.3.1beta3",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",