linkmore-design 1.0.14 → 1.0.15
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 +23 -10
- package/dist/index.umd.min.js +2 -2
- package/es/Button/index.js +3 -1
- package/es/Button/style/style.css +4 -1
- package/es/CkFilter/components/filterTypes.js +1 -0
- package/es/CkFilter/style/style.css +1 -1
- package/es/PopTable/style/style.css +1 -4
- package/es/ProTable/Table.js +19 -9
- package/es/ProTable/style/style.css +7 -0
- package/es/Radio/style/style.css +7 -0
- package/es/TabBar/style/style.css +0 -1
- package/lib/Button/index.js +3 -1
- package/lib/Button/style/style.css +4 -1
- package/lib/CkFilter/components/filterTypes.js +1 -0
- package/lib/CkFilter/style/style.css +1 -1
- package/lib/PopTable/style/style.css +1 -4
- package/lib/ProTable/Table.js +19 -9
- package/lib/ProTable/style/style.css +7 -0
- package/lib/Radio/style/style.css +7 -0
- package/lib/TabBar/style/style.css +0 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -246,7 +246,9 @@
|
|
|
246
246
|
hover = _props$hover === void 0 ? false : _props$hover,
|
|
247
247
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
248
248
|
|
|
249
|
-
var classs = classnames('lm-button', className,
|
|
249
|
+
var classs = classnames('lm-button', className, {
|
|
250
|
+
'lm-button-icon-only': !children
|
|
251
|
+
}, _defineProperty({}, "lm-button-".concat(size), size), _defineProperty({}, "lm-button-".concat(type), type), _defineProperty({}, "lm-button-".concat(type, "-hover"), type && hover));
|
|
250
252
|
return /*#__PURE__*/React__default['default'].createElement(_Button__default['default'], _extends({}, restProps, {
|
|
251
253
|
className: classs,
|
|
252
254
|
size: size,
|
|
@@ -26375,6 +26377,7 @@
|
|
|
26375
26377
|
onClick: handleReset
|
|
26376
26378
|
}, "\u6E05\u7A7A"), /*#__PURE__*/React__default['default'].createElement(linkmoreDesign.Button, {
|
|
26377
26379
|
type: "primary",
|
|
26380
|
+
disabled: !checkedValues.length,
|
|
26378
26381
|
size: "small",
|
|
26379
26382
|
onClick: handleSure
|
|
26380
26383
|
}, "\u786E\u5B9A")));
|
|
@@ -68161,7 +68164,7 @@
|
|
|
68161
68164
|
editConfig: editConfig
|
|
68162
68165
|
};
|
|
68163
68166
|
|
|
68164
|
-
var _excluded$12 = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading"];
|
|
68167
|
+
var _excluded$12 = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "customCheck"];
|
|
68165
68168
|
var Summary = ProviderWarp.Summary;
|
|
68166
68169
|
var ResetTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
68167
68170
|
var dataSource = props.dataSource,
|
|
@@ -68174,6 +68177,7 @@
|
|
|
68174
68177
|
pagination = props.pagination,
|
|
68175
68178
|
hiddenPage = props.hiddenPage,
|
|
68176
68179
|
loading = props.loading,
|
|
68180
|
+
customCheck = props.customCheck,
|
|
68177
68181
|
resetProps = _objectWithoutProperties(props, _excluded$12);
|
|
68178
68182
|
|
|
68179
68183
|
var _resetProps$rowKey = resetProps.rowKey,
|
|
@@ -68307,7 +68311,7 @@
|
|
|
68307
68311
|
selectedRowKeys: useSelectedRows.selectedRows.map(function (v) {
|
|
68308
68312
|
return v[rowKey];
|
|
68309
68313
|
}),
|
|
68310
|
-
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
68314
|
+
onChange: function onChange(selectedRowKeys, selectedRows, t, s) {
|
|
68311
68315
|
setSelectedRows({
|
|
68312
68316
|
selectedRows: selectedRows
|
|
68313
68317
|
});
|
|
@@ -68316,7 +68320,7 @@
|
|
|
68316
68320
|
},
|
|
68317
68321
|
onRow: function onRow(record) {
|
|
68318
68322
|
return {
|
|
68319
|
-
onClick: function onClick() {
|
|
68323
|
+
onClick: function onClick(e) {
|
|
68320
68324
|
onRecord(record);
|
|
68321
68325
|
},
|
|
68322
68326
|
onDoubleClick: function onDoubleClick() {
|
|
@@ -68367,10 +68371,10 @@
|
|
|
68367
68371
|
}
|
|
68368
68372
|
});
|
|
68369
68373
|
setColumnsStateMap(obj);
|
|
68370
|
-
}, []);
|
|
68371
|
-
|
|
68372
|
-
|
|
68373
|
-
|
|
68374
|
+
}, []); // useEffect(() => {
|
|
68375
|
+
// rowClick?.()
|
|
68376
|
+
// }, [useSelectedRows])
|
|
68377
|
+
// 将节点方法给外部使用
|
|
68374
68378
|
|
|
68375
68379
|
React__default['default'].useImperativeHandle(ref, function () {
|
|
68376
68380
|
return {
|
|
@@ -68379,9 +68383,16 @@
|
|
|
68379
68383
|
},
|
|
68380
68384
|
// 用于按钮触发事件
|
|
68381
68385
|
clearSelect: function clearSelect() {
|
|
68382
|
-
|
|
68386
|
+
setSelectedRows({
|
|
68383
68387
|
selectedRows: []
|
|
68384
68388
|
});
|
|
68389
|
+
rowClick === null || rowClick === void 0 ? void 0 : rowClick([]);
|
|
68390
|
+
},
|
|
68391
|
+
customSetCheckboxRecords: function customSetCheckboxRecords(value) {
|
|
68392
|
+
setSelectedRows({
|
|
68393
|
+
selectedRows: value
|
|
68394
|
+
});
|
|
68395
|
+
rowClick === null || rowClick === void 0 ? void 0 : rowClick(value);
|
|
68385
68396
|
}
|
|
68386
68397
|
};
|
|
68387
68398
|
}); // loading触发清空选中状态
|
|
@@ -68404,7 +68415,9 @@
|
|
|
68404
68415
|
summary: function summary(pageData) {
|
|
68405
68416
|
return _summary && _summary(pageData, resultColumns);
|
|
68406
68417
|
}
|
|
68407
|
-
}))
|
|
68418
|
+
})), !!customCheck && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
68419
|
+
className: "lm_customCheck"
|
|
68420
|
+
}, customCheck));
|
|
68408
68421
|
}); // 监听大小: 这里的高度是整个表格的高度,表体需要减去列头和分页的高度
|
|
68409
68422
|
|
|
68410
68423
|
var ResizeSize = /*#__PURE__*/React.forwardRef(function (props, ref) {
|