linkmore-design 1.1.22-beta.5 → 1.1.22-beta.6

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.
@@ -9001,6 +9001,10 @@ p {
9001
9001
  .form_responsive_group_title img.open {
9002
9002
  transform: rotate(180deg);
9003
9003
  }
9004
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
9005
+ line-height: 16px;
9006
+ height: 16px;
9007
+ }
9004
9008
  .lm_form-item-tip-error .ant-form-item-explain {
9005
9009
  width: 100%;
9006
9010
  position: absolute;
@@ -6656,6 +6656,10 @@ p {
6656
6656
  .form_responsive_group_title img.open {
6657
6657
  transform: rotate(180deg);
6658
6658
  }
6659
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
6660
+ line-height: 16px;
6661
+ height: 16px;
6662
+ }
6659
6663
  .lm_form-item-tip-error .ant-form-item-explain {
6660
6664
  width: 100%;
6661
6665
  position: absolute;
@@ -6144,6 +6144,10 @@
6144
6144
  .form_responsive_group_title img.open {
6145
6145
  transform: rotate(180deg);
6146
6146
  }
6147
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
6148
+ line-height: 16px;
6149
+ height: 16px;
6150
+ }
6147
6151
  .lm_form-item-tip-error .ant-form-item-explain {
6148
6152
  width: 100%;
6149
6153
  position: absolute;
@@ -1313,7 +1313,9 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1313
1313
  autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer,
1314
1314
  openRowGroup = props.openRowGroup,
1315
1315
  openColGroup = props.openColGroup,
1316
- footer = props.footer;
1316
+ groupHeight = props.groupHeight,
1317
+ footer = props.footer,
1318
+ footerHeight = props.footerHeight;
1317
1319
  var _useState21 = (0, _react.useState)({
1318
1320
  width: '100%',
1319
1321
  height: '100%'
@@ -1360,7 +1362,10 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1360
1362
  }
1361
1363
  // 行列分组的高度
1362
1364
  if (openRowGroup || openColGroup) {
1363
- h -= 102;
1365
+ h -= groupHeight || 102;
1366
+ }
1367
+ if (footer) {
1368
+ h -= footerHeight || 54;
1364
1369
  }
1365
1370
  // safe area
1366
1371
  if (h < 0) {
@@ -120,15 +120,18 @@ var SheelTabelCell = function SheelTabelCell(props) {
120
120
  };
121
121
  var renderViewer = children;
122
122
  var content = renderComponent() || renderEditor() || renderViewer;
123
+ var className = cls(colIndex === undefined && 'row_selection_td', 'unselection', _selected && selectIng && 'selected', isEnd && 'end', isRightEnd && 'right_end', isEditing && 'editing', isVaildCommit && 'commiting', selectedReadonly && 'readonly_red');
124
+ // 在编辑模式下不允许进行快速复制操作
125
+ var showEndCell = isRightEnd && isEnd && !isEditing;
126
+ console.log(content);
123
127
  return /*#__PURE__*/React.createElement("td", Object.assign({}, omit(clearProps, ['commitIng', 'editIng']), {
124
- // style={{ userSelect: 'none' }}
125
- className: cls(colIndex === undefined && 'row_selection_td', 'unselection', _selected && selectIng && 'selected', isEnd && 'end', isRightEnd && 'right_end', isEditing && 'editing', isVaildCommit && 'commiting', selectedReadonly && 'readonly_red'),
128
+ className: className,
126
129
  onMouseDown: handleMouseDown,
127
130
  onMouseOver: handleMouseOver,
128
131
  onContextMenu: handleContextMenu,
129
132
  onDoubleClick: handleDoubleClick,
130
133
  key: "".concat(rowIndex, "_").concat(colIndex)
131
- }), content, isRightEnd && isEnd && !isEditing && /*#__PURE__*/React.createElement("div", {
134
+ }), content, showEndCell && /*#__PURE__*/React.createElement("div", {
132
135
  ref: endCellRef,
133
136
  className: 'lmtable_cell_end_icon'
134
137
  }));
@@ -25,6 +25,7 @@ export default function calcExpression(item, needCalcKeys) {
25
25
  } else if (expression === 'average') {
26
26
  item[key] = sum / item.children.length;
27
27
  }
28
+ // console.log(item)
28
29
  });
29
30
  }
30
31
  }
@@ -9001,6 +9001,10 @@ p {
9001
9001
  .form_responsive_group_title img.open {
9002
9002
  transform: rotate(180deg);
9003
9003
  }
9004
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
9005
+ line-height: 16px;
9006
+ height: 16px;
9007
+ }
9004
9008
  .lm_form-item-tip-error .ant-form-item-explain {
9005
9009
  width: 100%;
9006
9010
  position: absolute;
@@ -6656,6 +6656,10 @@ p {
6656
6656
  .form_responsive_group_title img.open {
6657
6657
  transform: rotate(180deg);
6658
6658
  }
6659
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
6660
+ line-height: 16px;
6661
+ height: 16px;
6662
+ }
6659
6663
  .lm_form-item-tip-error .ant-form-item-explain {
6660
6664
  width: 100%;
6661
6665
  position: absolute;
@@ -6144,6 +6144,10 @@
6144
6144
  .form_responsive_group_title img.open {
6145
6145
  transform: rotate(180deg);
6146
6146
  }
6147
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
6148
+ line-height: 16px;
6149
+ height: 16px;
6150
+ }
6147
6151
  .lm_form-item-tip-error .ant-form-item-explain {
6148
6152
  width: 100%;
6149
6153
  position: absolute;
@@ -1313,7 +1313,9 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1313
1313
  autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer,
1314
1314
  openRowGroup = props.openRowGroup,
1315
1315
  openColGroup = props.openColGroup,
1316
- footer = props.footer;
1316
+ groupHeight = props.groupHeight,
1317
+ footer = props.footer,
1318
+ footerHeight = props.footerHeight;
1317
1319
  var _useState21 = (0, _react.useState)({
1318
1320
  width: '100%',
1319
1321
  height: '100%'
@@ -1360,7 +1362,10 @@ var ResizeSize = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1360
1362
  }
1361
1363
  // 行列分组的高度
1362
1364
  if (openRowGroup || openColGroup) {
1363
- h -= 102;
1365
+ h -= groupHeight || 102;
1366
+ }
1367
+ if (footer) {
1368
+ h -= footerHeight || 54;
1364
1369
  }
1365
1370
  // safe area
1366
1371
  if (h < 0) {
@@ -128,15 +128,18 @@ var SheelTabelCell = function SheelTabelCell(props) {
128
128
  };
129
129
  var renderViewer = children;
130
130
  var content = renderComponent() || renderEditor() || renderViewer;
131
+ var className = (0, _classnames.default)(colIndex === undefined && 'row_selection_td', 'unselection', _selected && selectIng && 'selected', isEnd && 'end', isRightEnd && 'right_end', isEditing && 'editing', isVaildCommit && 'commiting', selectedReadonly && 'readonly_red');
132
+ // 在编辑模式下不允许进行快速复制操作
133
+ var showEndCell = isRightEnd && isEnd && !isEditing;
134
+ console.log(content);
131
135
  return /*#__PURE__*/_react.default.createElement("td", Object.assign({}, (0, _lodash.omit)(clearProps, ['commitIng', 'editIng']), {
132
- // style={{ userSelect: 'none' }}
133
- className: (0, _classnames.default)(colIndex === undefined && 'row_selection_td', 'unselection', _selected && selectIng && 'selected', isEnd && 'end', isRightEnd && 'right_end', isEditing && 'editing', isVaildCommit && 'commiting', selectedReadonly && 'readonly_red'),
136
+ className: className,
134
137
  onMouseDown: handleMouseDown,
135
138
  onMouseOver: handleMouseOver,
136
139
  onContextMenu: handleContextMenu,
137
140
  onDoubleClick: handleDoubleClick,
138
141
  key: "".concat(rowIndex, "_").concat(colIndex)
139
- }), content, isRightEnd && isEnd && !isEditing && /*#__PURE__*/_react.default.createElement("div", {
142
+ }), content, showEndCell && /*#__PURE__*/_react.default.createElement("div", {
140
143
  ref: endCellRef,
141
144
  className: 'lmtable_cell_end_icon'
142
145
  }));
@@ -32,6 +32,7 @@ function calcExpression(item, needCalcKeys) {
32
32
  } else if (expression === 'average') {
33
33
  item[key] = sum / item.children.length;
34
34
  }
35
+ // console.log(item)
35
36
  });
36
37
  }
37
38
  }
@@ -9001,6 +9001,10 @@ p {
9001
9001
  .form_responsive_group_title img.open {
9002
9002
  transform: rotate(180deg);
9003
9003
  }
9004
+ .lm_form.ant-form .ant-form-item .ant-form-item-explain {
9005
+ line-height: 16px;
9006
+ height: 16px;
9007
+ }
9004
9008
  .lm_form-item-tip-error .ant-form-item-explain {
9005
9009
  width: 100%;
9006
9010
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkmore-design",
3
- "version": "1.1.22-beta.5",
3
+ "version": "1.1.22-beta.6",
4
4
  "author": {
5
5
  "name": "nowthen",
6
6
  "email": "rnlvwyx@gmail.com"