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.
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.min.js +1 -1
- package/dist/variables.css +4 -0
- package/es/Form/style/index.css +4 -0
- package/es/Form/style/variables.css +4 -0
- package/es/LmTable/Table.js +7 -2
- package/es/LmTable/components/sheelTableCell.js +6 -3
- package/es/LmTable/expression.js +1 -0
- package/es/styles/variables.css +4 -0
- package/lib/Form/style/index.css +4 -0
- package/lib/Form/style/variables.css +4 -0
- package/lib/LmTable/Table.js +7 -2
- package/lib/LmTable/components/sheelTableCell.js +6 -3
- package/lib/LmTable/expression.js +1 -0
- package/lib/styles/variables.css +4 -0
- package/package.json +1 -1
package/dist/variables.css
CHANGED
|
@@ -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/es/Form/style/index.css
CHANGED
|
@@ -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;
|
package/es/LmTable/Table.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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,
|
|
134
|
+
}), content, showEndCell && /*#__PURE__*/React.createElement("div", {
|
|
132
135
|
ref: endCellRef,
|
|
133
136
|
className: 'lmtable_cell_end_icon'
|
|
134
137
|
}));
|
package/es/LmTable/expression.js
CHANGED
package/es/styles/variables.css
CHANGED
|
@@ -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/lib/Form/style/index.css
CHANGED
|
@@ -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;
|
package/lib/LmTable/Table.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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,
|
|
142
|
+
}), content, showEndCell && /*#__PURE__*/_react.default.createElement("div", {
|
|
140
143
|
ref: endCellRef,
|
|
141
144
|
className: 'lmtable_cell_end_icon'
|
|
142
145
|
}));
|
package/lib/styles/variables.css
CHANGED
|
@@ -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;
|