linkmore-design 1.1.27-beta.7 → 1.1.27-beta.8
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 +20 -14
- package/dist/index.umd.min.js +1 -1
- package/dist/variables.css +1 -1
- package/es/Dropdown/style/index.css +1 -1
- package/es/Dropdown/style/variables.css +1 -1
- package/es/LmTable/Table.js +20 -14
- package/es/styles/variables.css +1 -1
- package/lib/Dropdown/style/index.css +1 -1
- package/lib/Dropdown/style/variables.css +1 -1
- package/lib/LmTable/Table.js +20 -14
- package/lib/styles/variables.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -224951,7 +224951,7 @@
|
|
|
224951
224951
|
}, attributes, listeners)));
|
|
224952
224952
|
}
|
|
224953
224953
|
|
|
224954
|
-
var _excluded$21 = ["columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "openColGroup", "colGroupTitle", "openRowGroup", "rowGroupTitle", "groupWidth", "groupRowKeys", "groupColKeys", "onGroupChange", "rowStyle", "emptyProps"],
|
|
224954
|
+
var _excluded$21 = ["changeSize", "columns", "dataSource", "autoSize", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "colSortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size", "openSheet", "editSheet", "dataChange", "openColGroup", "colGroupTitle", "openRowGroup", "rowGroupTitle", "groupWidth", "groupRowKeys", "groupColKeys", "onGroupChange", "rowStyle", "emptyProps"],
|
|
224955
224955
|
_excluded2$r = ["className", "style"],
|
|
224956
224956
|
_excluded3$6 = ["onResize", "width", "dataIndex", "onResizeStop"];
|
|
224957
224957
|
var Summary$1 = ProviderWarp.Summary;
|
|
@@ -224987,7 +224987,8 @@
|
|
|
224987
224987
|
}
|
|
224988
224988
|
};
|
|
224989
224989
|
var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
224990
|
-
var
|
|
224990
|
+
var changeSize = props.changeSize,
|
|
224991
|
+
customizeColumns = props.columns,
|
|
224991
224992
|
customizeDataSource = props.dataSource,
|
|
224992
224993
|
autoSize = props.autoSize,
|
|
224993
224994
|
rowClick = props.rowClick,
|
|
@@ -226042,6 +226043,7 @@
|
|
|
226042
226043
|
// 将节点方法给外部使用
|
|
226043
226044
|
React__default['default'].useImperativeHandle(ref, function () {
|
|
226044
226045
|
return {
|
|
226046
|
+
changeSize: changeSize,
|
|
226045
226047
|
getCheckboxRecords: function getCheckboxRecords() {
|
|
226046
226048
|
return useSelectedRows.selectedRows;
|
|
226047
226049
|
},
|
|
@@ -226177,7 +226179,10 @@
|
|
|
226177
226179
|
}, [sortOpen, resizeable, components, colSortOpen, customizeDataSource, columns, openRowGroup]);
|
|
226178
226180
|
React.useEffect(function () {
|
|
226179
226181
|
if (autoSize && autoSize.height !== '100%') {
|
|
226180
|
-
document.querySelector('.lm_protable .ant-table-body')
|
|
226182
|
+
var dom = document.querySelector('.lm_protable .ant-table-body');
|
|
226183
|
+
if (dom) {
|
|
226184
|
+
dom.style.height = "".concat(autoSize.height, "px");
|
|
226185
|
+
}
|
|
226181
226186
|
}
|
|
226182
226187
|
}, [autoSize]);
|
|
226183
226188
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -226340,17 +226345,6 @@
|
|
|
226340
226345
|
}
|
|
226341
226346
|
return h;
|
|
226342
226347
|
}, [props.hiddenPage, props.customCheck, props.columns, tableSize, footer, footerHeight, groupHeight]);
|
|
226343
|
-
var throttleSize = React.useCallback(function () {
|
|
226344
|
-
var width = tableSize.width;
|
|
226345
|
-
return /*#__PURE__*/React__default['default'].createElement(ResetTable, _extends$2({
|
|
226346
|
-
ref: defaultRef
|
|
226347
|
-
}, props, {
|
|
226348
|
-
autoSize: {
|
|
226349
|
-
height: resetHeight,
|
|
226350
|
-
width: width
|
|
226351
|
-
}
|
|
226352
|
-
}));
|
|
226353
|
-
}, [tableSize, props]);
|
|
226354
226348
|
var changeSize = function changeSize() {
|
|
226355
226349
|
if (!tableWarpRef.current) {
|
|
226356
226350
|
return;
|
|
@@ -226366,6 +226360,18 @@
|
|
|
226366
226360
|
height: typeof height === 'string' ? "calc(".concat(height, " - ").concat(value, "px)") : height - value
|
|
226367
226361
|
});
|
|
226368
226362
|
};
|
|
226363
|
+
var throttleSize = React.useCallback(function () {
|
|
226364
|
+
var width = tableSize.width;
|
|
226365
|
+
return /*#__PURE__*/React__default['default'].createElement(ResetTable, _extends$2({
|
|
226366
|
+
ref: defaultRef
|
|
226367
|
+
}, props, {
|
|
226368
|
+
changeSize: changeSize,
|
|
226369
|
+
autoSize: {
|
|
226370
|
+
height: resetHeight,
|
|
226371
|
+
width: width
|
|
226372
|
+
}
|
|
226373
|
+
}));
|
|
226374
|
+
}, [tableSize, props]);
|
|
226369
226375
|
var handResize = lodash.throttle(changeSize, 600);
|
|
226370
226376
|
React.useEffect(function () {
|
|
226371
226377
|
var summary = props.summary;
|