linkmore-design 1.0.45 → 1.0.46
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 +58 -26
- package/dist/index.umd.min.js +6 -6
- package/es/CkFilter/components/filterTypes.js +30 -2
- package/es/CustomTableOption/index.js +7 -7
- package/es/LmTable/Table.js +21 -17
- package/es/LmTable/style/style.css +0 -3
- package/lib/CkFilter/components/filterTypes.js +30 -2
- package/lib/CustomTableOption/index.js +7 -7
- package/lib/LmTable/Table.js +21 -17
- package/lib/LmTable/style/style.css +0 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29984,6 +29984,13 @@
|
|
|
29984
29984
|
setFilterValue(item.value);
|
|
29985
29985
|
};
|
|
29986
29986
|
|
|
29987
|
+
React.useEffect(function () {
|
|
29988
|
+
setTimeout(function () {
|
|
29989
|
+
var _inputRef$current2;
|
|
29990
|
+
|
|
29991
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
|
|
29992
|
+
}, 200);
|
|
29993
|
+
}, []);
|
|
29987
29994
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
29988
29995
|
className: "filter_dropdown"
|
|
29989
29996
|
}, isSearch && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -30053,6 +30060,13 @@
|
|
|
30053
30060
|
}
|
|
30054
30061
|
};
|
|
30055
30062
|
|
|
30063
|
+
React.useEffect(function () {
|
|
30064
|
+
setTimeout(function () {
|
|
30065
|
+
var _inputRef$current3;
|
|
30066
|
+
|
|
30067
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
|
|
30068
|
+
}, 200);
|
|
30069
|
+
}, []);
|
|
30056
30070
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30057
30071
|
className: "filter_dropdown"
|
|
30058
30072
|
}, isSearch && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -30232,6 +30246,13 @@
|
|
|
30232
30246
|
!isSearch && setFilterValue(arr, 'single');
|
|
30233
30247
|
};
|
|
30234
30248
|
|
|
30249
|
+
React.useEffect(function () {
|
|
30250
|
+
setTimeout(function () {
|
|
30251
|
+
var _inputRef$current4;
|
|
30252
|
+
|
|
30253
|
+
(_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 ? void 0 : _inputRef$current4.focus();
|
|
30254
|
+
}, 200);
|
|
30255
|
+
}, []);
|
|
30235
30256
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30236
30257
|
className: "filter_dropdown"
|
|
30237
30258
|
}, isSearch && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -30353,6 +30374,13 @@
|
|
|
30353
30374
|
setFilterValue(checkedValues, 'cancel');
|
|
30354
30375
|
};
|
|
30355
30376
|
|
|
30377
|
+
React.useEffect(function () {
|
|
30378
|
+
setTimeout(function () {
|
|
30379
|
+
var _inputRef$current5;
|
|
30380
|
+
|
|
30381
|
+
(_inputRef$current5 = inputRef.current) === null || _inputRef$current5 === void 0 ? void 0 : _inputRef$current5.focus();
|
|
30382
|
+
}, 200);
|
|
30383
|
+
}, []);
|
|
30356
30384
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30357
30385
|
className: "filter_dropdown"
|
|
30358
30386
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -30552,9 +30580,9 @@
|
|
|
30552
30580
|
|
|
30553
30581
|
React.useEffect(function () {
|
|
30554
30582
|
visible && setTimeout(function () {
|
|
30555
|
-
var _inputRef$
|
|
30583
|
+
var _inputRef$current6;
|
|
30556
30584
|
|
|
30557
|
-
(_inputRef$
|
|
30585
|
+
(_inputRef$current6 = inputRef.current) === null || _inputRef$current6 === void 0 ? void 0 : _inputRef$current6.focus();
|
|
30558
30586
|
}, 200);
|
|
30559
30587
|
}, [visible]);
|
|
30560
30588
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -78428,15 +78456,20 @@
|
|
|
78428
78456
|
tableAlertRender: false,
|
|
78429
78457
|
checkConfig: checkConfig,
|
|
78430
78458
|
// components: vComponents,
|
|
78431
|
-
scroll: resetProps.autoSizer || resetProps.scroll ? _objectSpread({
|
|
78459
|
+
scroll: resetProps.autoSizer || resetProps.scroll ? Object.assign(_objectSpread({
|
|
78432
78460
|
y: autoSize.height
|
|
78433
|
-
}, resetProps.scroll)
|
|
78461
|
+
}, resetProps.scroll), resizeable ? {
|
|
78462
|
+
x: '100%'
|
|
78463
|
+
} : {}) : resizeable ? {
|
|
78464
|
+
x: '100%'
|
|
78465
|
+
} : null,
|
|
78434
78466
|
pagination: !hiddenPage && _objectSpread({
|
|
78435
78467
|
showSizeChanger: true,
|
|
78436
78468
|
showQuickJumper: true,
|
|
78437
78469
|
showTotal: function showTotal(total) {
|
|
78438
78470
|
return "\u5171 ".concat(total, " \u6761");
|
|
78439
|
-
}
|
|
78471
|
+
},
|
|
78472
|
+
size: 'small'
|
|
78440
78473
|
}, pagination),
|
|
78441
78474
|
rowSelection: rowSelection === false ? undefined : _objectSpread({
|
|
78442
78475
|
fixed: true,
|
|
@@ -78468,7 +78501,7 @@
|
|
|
78468
78501
|
columns: resetColumns(),
|
|
78469
78502
|
size: size
|
|
78470
78503
|
}, resetProps);
|
|
78471
|
-
}, [useColumns, useSelectedRows, columnsStateMap, resetProps, autoSize.height]);
|
|
78504
|
+
}, [useColumns, useSelectedRows, columnsStateMap, resetProps, autoSize.height, resizeable]);
|
|
78472
78505
|
var resultColumns = React.useMemo(function () {
|
|
78473
78506
|
var result = useColumns.map(function (item, index) {
|
|
78474
78507
|
var _columnsStateMap$item, _columnsStateMap$item2, _columnsStateMap$item3, _columnsStateMap$item4;
|
|
@@ -78515,7 +78548,6 @@
|
|
|
78515
78548
|
// obj[item.dataIndex || item.key] = { ...(obj[item.dataIndex || item.key] || {}), fixed: item.fixed }
|
|
78516
78549
|
// }
|
|
78517
78550
|
});
|
|
78518
|
-
console.log(obj, 'oobjb');
|
|
78519
78551
|
setColumnsStateMap(obj);
|
|
78520
78552
|
}, [columnsState]); // useEffect(() => {
|
|
78521
78553
|
// console.log(props.columnsStateValue, 'v vv')
|
|
@@ -78716,15 +78748,15 @@
|
|
|
78716
78748
|
}, [tableSize, props]);
|
|
78717
78749
|
|
|
78718
78750
|
var changeSize = function changeSize() {
|
|
78719
|
-
var _tableWarpRef$
|
|
78751
|
+
var _tableWarpRef$current;
|
|
78720
78752
|
|
|
78721
78753
|
var value = props.summary ? 48 : 0;
|
|
78722
78754
|
|
|
78723
|
-
var
|
|
78724
|
-
|
|
78725
|
-
width =
|
|
78726
|
-
|
|
78727
|
-
height =
|
|
78755
|
+
var _ref4 = ((_tableWarpRef$current = tableWarpRef.current) === null || _tableWarpRef$current === void 0 ? void 0 : _tableWarpRef$current.getBoundingClientRect()) || {},
|
|
78756
|
+
_ref4$width = _ref4.width,
|
|
78757
|
+
width = _ref4$width === void 0 ? '100%' : _ref4$width,
|
|
78758
|
+
_ref4$height = _ref4.height,
|
|
78759
|
+
height = _ref4$height === void 0 ? '100%' : _ref4$height;
|
|
78728
78760
|
|
|
78729
78761
|
setTableSize({
|
|
78730
78762
|
width: width,
|
|
@@ -78738,13 +78770,13 @@
|
|
|
78738
78770
|
customCheck = props.customCheck,
|
|
78739
78771
|
summary = props.summary;
|
|
78740
78772
|
setTimeout(function () {
|
|
78741
|
-
var _tableWarpRef$
|
|
78773
|
+
var _tableWarpRef$current5;
|
|
78742
78774
|
|
|
78743
|
-
var _tableWarpRef$
|
|
78744
|
-
_tableWarpRef$
|
|
78745
|
-
width = _tableWarpRef$
|
|
78746
|
-
_tableWarpRef$
|
|
78747
|
-
height = _tableWarpRef$
|
|
78775
|
+
var _tableWarpRef$current2 = (_tableWarpRef$current5 = tableWarpRef.current) === null || _tableWarpRef$current5 === void 0 ? void 0 : _tableWarpRef$current5.getBoundingClientRect(),
|
|
78776
|
+
_tableWarpRef$current3 = _tableWarpRef$current2.width,
|
|
78777
|
+
width = _tableWarpRef$current3 === void 0 ? '100%' : _tableWarpRef$current3,
|
|
78778
|
+
_tableWarpRef$current4 = _tableWarpRef$current2.height,
|
|
78779
|
+
height = _tableWarpRef$current4 === void 0 ? '100%' : _tableWarpRef$current4;
|
|
78748
78780
|
|
|
78749
78781
|
var value = summary ? 48 : 0;
|
|
78750
78782
|
setTableSize({
|
|
@@ -84557,15 +84589,15 @@
|
|
|
84557
84589
|
|
|
84558
84590
|
var TabPane$1 = LMTabs.TabPane;
|
|
84559
84591
|
var optionsWithDisabled = [{
|
|
84560
|
-
label: '紧凑型',
|
|
84561
|
-
value: 'small',
|
|
84562
|
-
imgUrl: SmallImg
|
|
84563
|
-
}, {
|
|
84564
84592
|
label: '默认',
|
|
84565
84593
|
value: 'default',
|
|
84566
84594
|
imgUrl: DefaultImg
|
|
84567
84595
|
}, {
|
|
84568
|
-
label: '
|
|
84596
|
+
label: '紧凑型',
|
|
84597
|
+
value: 'small',
|
|
84598
|
+
imgUrl: SmallImg
|
|
84599
|
+
}, {
|
|
84600
|
+
label: '宽松',
|
|
84569
84601
|
value: 'middle',
|
|
84570
84602
|
imgUrl: MiddleImg
|
|
84571
84603
|
}];
|
|
@@ -84592,7 +84624,7 @@
|
|
|
84592
84624
|
var _useState5 = React.useState({
|
|
84593
84625
|
filter: [],
|
|
84594
84626
|
columns: [],
|
|
84595
|
-
size: '
|
|
84627
|
+
size: 'default'
|
|
84596
84628
|
}),
|
|
84597
84629
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
84598
84630
|
lmOptions = _useState6[0],
|
|
@@ -84606,7 +84638,7 @@
|
|
|
84606
84638
|
setLmOptions({
|
|
84607
84639
|
filter: props.filter,
|
|
84608
84640
|
columns: props.columns,
|
|
84609
|
-
size: props.size || '
|
|
84641
|
+
size: props.size || 'default'
|
|
84610
84642
|
});
|
|
84611
84643
|
}, [props.filter, props.columns, props.size]);
|
|
84612
84644
|
/** 提交按钮 */
|