linkmore-design 1.1.27-alpha.0 → 1.1.27
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/LmEditTable/DndContainer.d.ts +3 -6
- package/dist/LmEditTable/EditTable.d.ts +5 -10
- package/dist/LmEditTable/sortableItem.d.ts +2 -3
- package/dist/LmEditTable/util.d.ts +0 -7
- package/dist/index.d.ts +2 -1
- package/dist/index.umd.js +527 -1133
- package/dist/index.umd.min.js +8 -8
- package/dist/variables.css +0 -65
- package/es/InputNumber/index.js +9 -7
- package/es/LmEditTable/DndContainer.d.ts +3 -6
- package/es/LmEditTable/DndContainer.js +10 -70
- package/es/LmEditTable/DragHandle.js +1 -1
- package/es/LmEditTable/EditTable.d.ts +5 -10
- package/es/LmEditTable/EditTable.js +360 -352
- package/es/LmEditTable/sortableItem.d.ts +2 -3
- package/es/LmEditTable/sortableItem.js +4 -16
- package/es/LmEditTable/sortableItemCol.js +10 -40
- package/es/LmEditTable/style/index.css +0 -65
- package/es/LmEditTable/style/variables.css +0 -65
- package/es/LmEditTable/util.d.ts +0 -7
- package/es/LmEditTable/util.js +7 -92
- package/es/LmTable/virTual/VirtualRow.js +14 -12
- package/es/hooks/useEvent/index.js +1 -1
- package/es/index.d.ts +2 -1
- package/es/styles/variables.css +0 -65
- package/lib/InputNumber/index.js +9 -9
- package/lib/LmEditTable/DndContainer.d.ts +3 -6
- package/lib/LmEditTable/DndContainer.js +9 -74
- package/lib/LmEditTable/DragHandle.js +1 -1
- package/lib/LmEditTable/EditTable.d.ts +5 -10
- package/lib/LmEditTable/EditTable.js +357 -349
- package/lib/LmEditTable/sortableItem.d.ts +2 -3
- package/lib/LmEditTable/sortableItem.js +5 -19
- package/lib/LmEditTable/sortableItemCol.js +8 -37
- package/lib/LmEditTable/style/index.css +0 -65
- package/lib/LmEditTable/style/variables.css +0 -65
- package/lib/LmEditTable/util.d.ts +0 -7
- package/lib/LmEditTable/util.js +6 -97
- package/lib/LmTable/virTual/VirtualRow.js +14 -12
- package/lib/hooks/useEvent/index.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/styles/variables.css +0 -65
- package/package.json +9 -7
- package/dist/LmEditTable/components/DraggableContainer.d.ts +0 -10
- package/dist/LmEditTable/components/QuickOpetate.d.ts +0 -12
- package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +0 -13
- package/dist/LmEditTable/components/index.d.ts +0 -16
- package/dist/LmEditTable/hooks/useForkRef.d.ts +0 -2
- package/dist/LmEditTable/rowSort/DndContainerRow.d.ts +0 -10
- package/dist/LmEditTable/virtual/VirtualRow.d.ts +0 -7
- package/dist/LmEditTable/virtual/VirtualRowBack.d.ts +0 -6
- package/dist/LmEditTable/virtual/VirtualTable.d.ts +0 -3
- package/dist/LmEditTable/virtual/VirtualWrapper.d.ts +0 -3
- package/dist/LmEditTable/virtual/context.d.ts +0 -13
- package/dist/LmEditTable/virtual/index.d.ts +0 -4
- package/es/LmEditTable/components/DraggableContainer.d.ts +0 -10
- package/es/LmEditTable/components/DraggableContainer.js +0 -39
- package/es/LmEditTable/components/QuickOpetate.d.ts +0 -12
- package/es/LmEditTable/components/QuickOpetate.js +0 -82
- package/es/LmEditTable/components/bottomOpetateComponent.d.ts +0 -13
- package/es/LmEditTable/components/bottomOpetateComponent.js +0 -23
- package/es/LmEditTable/components/index.d.ts +0 -16
- package/es/LmEditTable/components/index.js +0 -7
- package/es/LmEditTable/hooks/useForkRef.d.ts +0 -2
- package/es/LmEditTable/hooks/useForkRef.js +0 -22
- package/es/LmEditTable/rowSort/DndContainerRow.d.ts +0 -10
- package/es/LmEditTable/rowSort/DndContainerRow.js +0 -81
- package/es/LmEditTable/virtual/VirtualRow.d.ts +0 -7
- package/es/LmEditTable/virtual/VirtualRow.js +0 -62
- package/es/LmEditTable/virtual/VirtualRowBack.d.ts +0 -6
- package/es/LmEditTable/virtual/VirtualRowBack.js +0 -100
- package/es/LmEditTable/virtual/VirtualTable.d.ts +0 -3
- package/es/LmEditTable/virtual/VirtualTable.js +0 -54
- package/es/LmEditTable/virtual/VirtualWrapper.d.ts +0 -3
- package/es/LmEditTable/virtual/VirtualWrapper.js +0 -60
- package/es/LmEditTable/virtual/context.d.ts +0 -13
- package/es/LmEditTable/virtual/context.js +0 -54
- package/es/LmEditTable/virtual/index.d.ts +0 -4
- package/es/LmEditTable/virtual/index.js +0 -4
- package/lib/LmEditTable/components/DraggableContainer.d.ts +0 -10
- package/lib/LmEditTable/components/DraggableContainer.js +0 -52
- package/lib/LmEditTable/components/QuickOpetate.d.ts +0 -12
- package/lib/LmEditTable/components/QuickOpetate.js +0 -96
- package/lib/LmEditTable/components/bottomOpetateComponent.d.ts +0 -13
- package/lib/LmEditTable/components/bottomOpetateComponent.js +0 -34
- package/lib/LmEditTable/components/index.d.ts +0 -16
- package/lib/LmEditTable/components/index.js +0 -37
- package/lib/LmEditTable/hooks/useForkRef.d.ts +0 -2
- package/lib/LmEditTable/hooks/useForkRef.js +0 -29
- package/lib/LmEditTable/rowSort/DndContainerRow.d.ts +0 -10
- package/lib/LmEditTable/rowSort/DndContainerRow.js +0 -99
- package/lib/LmEditTable/virtual/VirtualRow.d.ts +0 -7
- package/lib/LmEditTable/virtual/VirtualRow.js +0 -78
- package/lib/LmEditTable/virtual/VirtualRowBack.d.ts +0 -6
- package/lib/LmEditTable/virtual/VirtualRowBack.js +0 -113
- package/lib/LmEditTable/virtual/VirtualTable.d.ts +0 -3
- package/lib/LmEditTable/virtual/VirtualTable.js +0 -71
- package/lib/LmEditTable/virtual/VirtualWrapper.d.ts +0 -3
- package/lib/LmEditTable/virtual/VirtualWrapper.js +0 -73
- package/lib/LmEditTable/virtual/context.d.ts +0 -13
- package/lib/LmEditTable/virtual/context.js +0 -64
- package/lib/LmEditTable/virtual/index.d.ts +0 -4
- package/lib/LmEditTable/virtual/index.js +0 -31
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default _default;
|
|
1
|
+
declare const SortableItem: (props: any) => JSX.Element;
|
|
2
|
+
export default SortableItem;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
12
|
var _sortable = require("@dnd-kit/sortable");
|
|
13
13
|
|
|
14
14
|
var _utilities = require("@dnd-kit/utilities");
|
|
15
15
|
|
|
16
|
-
var _virtual = require("./virtual");
|
|
17
|
-
|
|
18
16
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
19
17
|
var t = {};
|
|
20
18
|
|
|
@@ -32,8 +30,7 @@ var SortableItem = function SortableItem(props) {
|
|
|
32
30
|
var key = props['data-row-key'],
|
|
33
31
|
children = props.children,
|
|
34
32
|
className = props.className,
|
|
35
|
-
|
|
36
|
-
resetField = __rest(props, ['data-row-key', "children", "className", "virtual"]);
|
|
33
|
+
resetField = __rest(props, ['data-row-key', "children", "className"]);
|
|
37
34
|
|
|
38
35
|
var _useSortable = (0, _sortable.useSortable)({
|
|
39
36
|
id: key
|
|
@@ -47,23 +44,12 @@ var SortableItem = function SortableItem(props) {
|
|
|
47
44
|
transform: _utilities.CSS.Transform.toString(transform),
|
|
48
45
|
transition: transition
|
|
49
46
|
};
|
|
50
|
-
|
|
51
|
-
if (!virtual) {
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement("tr", Object.assign({}, resetField, {
|
|
53
|
-
ref: setNodeRef,
|
|
54
|
-
key: key,
|
|
55
|
-
style: style
|
|
56
|
-
}, attributes), children);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return /*#__PURE__*/_react.default.createElement(_virtual.VirtualRow, Object.assign({}, resetField, {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement("tr", Object.assign({}, resetField, {
|
|
60
48
|
ref: setNodeRef,
|
|
61
|
-
pref: setNodeRef,
|
|
62
49
|
key: key,
|
|
63
50
|
style: style
|
|
64
51
|
}, attributes), children);
|
|
65
52
|
};
|
|
66
53
|
|
|
67
|
-
var _default =
|
|
68
|
-
|
|
54
|
+
var _default = SortableItem;
|
|
69
55
|
exports.default = _default;
|
|
@@ -26,47 +26,20 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
26
26
|
return t;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
// interface ItemType {
|
|
30
|
-
// children: React.ReactNode
|
|
31
|
-
// }
|
|
32
|
-
// interface ItemInstance {}
|
|
33
|
-
// @ts-ignore
|
|
34
29
|
var Item = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
35
|
-
var
|
|
36
|
-
props = __rest(_a, ["children"]); // const rProps = omit({ ...props, ...children.props }, [
|
|
37
|
-
// 'isSticky',
|
|
38
|
-
// 'colStart',
|
|
39
|
-
// 'colEnd',
|
|
40
|
-
// 'prefixCls',
|
|
41
|
-
// 'fixLeft',
|
|
42
|
-
// 'fixRight',
|
|
43
|
-
// 'lastFixLeft',
|
|
44
|
-
// 'firstFixRight',
|
|
45
|
-
// 'lastFixRight',
|
|
46
|
-
// 'firstFixLeft',
|
|
47
|
-
// 'isSticky',
|
|
48
|
-
// 'additionalProps',
|
|
49
|
-
// 'rowType',
|
|
50
|
-
// ])
|
|
51
|
-
|
|
30
|
+
var _b;
|
|
52
31
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// <th {...rProps} ref={ref as any} />
|
|
56
|
-
_react.default.createElement("th", Object.assign({}, props, children.props, {
|
|
57
|
-
ref: ref
|
|
58
|
-
})) // <th {...props} ref={ref as any}>
|
|
59
|
-
// {(children as any)?.props?.children || children}
|
|
60
|
-
// </th>
|
|
32
|
+
var children = _a.children,
|
|
33
|
+
props = __rest(_a, ["children"]);
|
|
61
34
|
|
|
62
|
-
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement("th", Object.assign({}, props, {
|
|
36
|
+
ref: ref
|
|
37
|
+
}), ((_b = children === null || children === void 0 ? void 0 : children.props) === null || _b === void 0 ? void 0 : _b.children) || children);
|
|
63
38
|
});
|
|
64
39
|
|
|
65
40
|
function SortableItem(props) {
|
|
66
|
-
var id = props.id;
|
|
67
|
-
|
|
68
41
|
var _useSortable = (0, _sortable.useSortable)({
|
|
69
|
-
id: id
|
|
42
|
+
id: props.id
|
|
70
43
|
}),
|
|
71
44
|
attributes = _useSortable.attributes,
|
|
72
45
|
listeners = _useSortable.listeners,
|
|
@@ -76,9 +49,7 @@ function SortableItem(props) {
|
|
|
76
49
|
|
|
77
50
|
var style = {
|
|
78
51
|
position: 'relative',
|
|
79
|
-
transform: _utilities.CSS.Translate.toString(transform
|
|
80
|
-
y: 0
|
|
81
|
-
}) : transform),
|
|
52
|
+
transform: _utilities.CSS.Translate.toString(transform),
|
|
82
53
|
transition: transition,
|
|
83
54
|
touchAction: 'none',
|
|
84
55
|
height: '40px',
|
|
@@ -538,9 +538,6 @@ p {
|
|
|
538
538
|
width: 32px;
|
|
539
539
|
padding: 0 8px;
|
|
540
540
|
}
|
|
541
|
-
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
542
|
-
height: 100%;
|
|
543
|
-
}
|
|
544
541
|
.lm_editTable_warpper .lm_editTable_cell {
|
|
545
542
|
cursor: pointer;
|
|
546
543
|
height: 40px;
|
|
@@ -552,21 +549,6 @@ p {
|
|
|
552
549
|
letter-spacing: 0px;
|
|
553
550
|
color: var(--color-85);
|
|
554
551
|
}
|
|
555
|
-
.lm_editTable_warpper .lm_custom_cell_td {
|
|
556
|
-
position: relative;
|
|
557
|
-
}
|
|
558
|
-
.lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append {
|
|
559
|
-
display: flex;
|
|
560
|
-
flex-direction: row;
|
|
561
|
-
flex-wrap: nowrap;
|
|
562
|
-
}
|
|
563
|
-
.lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
564
|
-
margin-right: 8px;
|
|
565
|
-
flex: none;
|
|
566
|
-
}
|
|
567
|
-
.lm_editTable_warpper .lm_custom_cell_td > .ant-form-item {
|
|
568
|
-
flex: 1 1 auto;
|
|
569
|
-
}
|
|
570
552
|
.lm_editTable_warpper .lm_custom_cell_td .ant-form-item-control-input-content {
|
|
571
553
|
display: flex;
|
|
572
554
|
flex-direction: row;
|
|
@@ -578,32 +560,6 @@ p {
|
|
|
578
560
|
.lm_editTable_warpper .lm_custom_cell_td .ant-table-row-expand-icon {
|
|
579
561
|
margin-top: 6px;
|
|
580
562
|
}
|
|
581
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_warp {
|
|
582
|
-
font-size: 8px;
|
|
583
|
-
position: absolute;
|
|
584
|
-
left: calc(50% - 10px);
|
|
585
|
-
z-index: 100;
|
|
586
|
-
width: 20px;
|
|
587
|
-
height: 10px;
|
|
588
|
-
background-color: var(--color-6);
|
|
589
|
-
display: flex;
|
|
590
|
-
align-items: center;
|
|
591
|
-
justify-content: center;
|
|
592
|
-
color: #D8D8D8;
|
|
593
|
-
}
|
|
594
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_warp:hover {
|
|
595
|
-
cursor: pointer;
|
|
596
|
-
background-color: var(--primary-color);
|
|
597
|
-
color: #fff;
|
|
598
|
-
}
|
|
599
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_up {
|
|
600
|
-
top: -4px;
|
|
601
|
-
left: calc(50% - 10px);
|
|
602
|
-
}
|
|
603
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_down {
|
|
604
|
-
bottom: -6px;
|
|
605
|
-
left: calc(50% - 10px);
|
|
606
|
-
}
|
|
607
563
|
.lm_editTable_warpper .lm_editTable_cell_edit {
|
|
608
564
|
height: 40px;
|
|
609
565
|
padding: 8px 8px !important;
|
|
@@ -615,9 +571,6 @@ p {
|
|
|
615
571
|
.lm_editTable_warpper .lm_table_quickcopy .anticon {
|
|
616
572
|
color: var(--text-color);
|
|
617
573
|
}
|
|
618
|
-
.lm_editTable_warpper .ant-table-body {
|
|
619
|
-
scroll-behavior: smooth;
|
|
620
|
-
}
|
|
621
574
|
.lm_editTable_warpper .icon_drag {
|
|
622
575
|
color: var(--tip-text-color);
|
|
623
576
|
}
|
|
@@ -634,9 +587,6 @@ p {
|
|
|
634
587
|
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
635
588
|
background-color: rgba(0, 0, 0, 0.06) !important;
|
|
636
589
|
}
|
|
637
|
-
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
638
|
-
background-color: rgba(0, 0, 0, 0.06) !important;
|
|
639
|
-
}
|
|
640
590
|
.lm_editTable_warpper .ant-picker {
|
|
641
591
|
height: 24px !important;
|
|
642
592
|
padding: 2px 8px;
|
|
@@ -680,18 +630,3 @@ p {
|
|
|
680
630
|
.lm_table_append_add_popover .ant-popover-inner-content ul li:hover {
|
|
681
631
|
background-color: var(--color-15);
|
|
682
632
|
}
|
|
683
|
-
.lm_edittable_col_sort_item {
|
|
684
|
-
overflow: hidden;
|
|
685
|
-
}
|
|
686
|
-
.lm_editable_col_drag {
|
|
687
|
-
background-color: #fff;
|
|
688
|
-
font-size: 12px;
|
|
689
|
-
display: flex;
|
|
690
|
-
box-sizing: border-box;
|
|
691
|
-
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
|
|
692
|
-
transform-origin: 0 0;
|
|
693
|
-
touch-action: manipulation;
|
|
694
|
-
scale: 1.05;
|
|
695
|
-
box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
696
|
-
padding: 8px;
|
|
697
|
-
}
|
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
width: 32px;
|
|
27
27
|
padding: 0 8px;
|
|
28
28
|
}
|
|
29
|
-
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
30
|
-
height: 100%;
|
|
31
|
-
}
|
|
32
29
|
.lm_editTable_warpper .lm_editTable_cell {
|
|
33
30
|
cursor: pointer;
|
|
34
31
|
height: 40px;
|
|
@@ -40,21 +37,6 @@
|
|
|
40
37
|
letter-spacing: 0px;
|
|
41
38
|
color: var(--color-85);
|
|
42
39
|
}
|
|
43
|
-
.lm_editTable_warpper .lm_custom_cell_td {
|
|
44
|
-
position: relative;
|
|
45
|
-
}
|
|
46
|
-
.lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: row;
|
|
49
|
-
flex-wrap: nowrap;
|
|
50
|
-
}
|
|
51
|
-
.lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
52
|
-
margin-right: 8px;
|
|
53
|
-
flex: none;
|
|
54
|
-
}
|
|
55
|
-
.lm_editTable_warpper .lm_custom_cell_td > .ant-form-item {
|
|
56
|
-
flex: 1 1 auto;
|
|
57
|
-
}
|
|
58
40
|
.lm_editTable_warpper .lm_custom_cell_td .ant-form-item-control-input-content {
|
|
59
41
|
display: flex;
|
|
60
42
|
flex-direction: row;
|
|
@@ -66,32 +48,6 @@
|
|
|
66
48
|
.lm_editTable_warpper .lm_custom_cell_td .ant-table-row-expand-icon {
|
|
67
49
|
margin-top: 6px;
|
|
68
50
|
}
|
|
69
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_warp {
|
|
70
|
-
font-size: 8px;
|
|
71
|
-
position: absolute;
|
|
72
|
-
left: calc(50% - 10px);
|
|
73
|
-
z-index: 100;
|
|
74
|
-
width: 20px;
|
|
75
|
-
height: 10px;
|
|
76
|
-
background-color: var(--color-6);
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
color: #D8D8D8;
|
|
81
|
-
}
|
|
82
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_warp:hover {
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
background-color: var(--primary-color);
|
|
85
|
-
color: #fff;
|
|
86
|
-
}
|
|
87
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_up {
|
|
88
|
-
top: -4px;
|
|
89
|
-
left: calc(50% - 10px);
|
|
90
|
-
}
|
|
91
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_down {
|
|
92
|
-
bottom: -6px;
|
|
93
|
-
left: calc(50% - 10px);
|
|
94
|
-
}
|
|
95
51
|
.lm_editTable_warpper .lm_editTable_cell_edit {
|
|
96
52
|
height: 40px;
|
|
97
53
|
padding: 8px 8px !important;
|
|
@@ -103,9 +59,6 @@
|
|
|
103
59
|
.lm_editTable_warpper .lm_table_quickcopy .anticon {
|
|
104
60
|
color: var(--text-color);
|
|
105
61
|
}
|
|
106
|
-
.lm_editTable_warpper .ant-table-body {
|
|
107
|
-
scroll-behavior: smooth;
|
|
108
|
-
}
|
|
109
62
|
.lm_editTable_warpper .icon_drag {
|
|
110
63
|
color: var(--tip-text-color);
|
|
111
64
|
}
|
|
@@ -122,9 +75,6 @@
|
|
|
122
75
|
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
123
76
|
background-color: rgba(0, 0, 0, 0.06) !important;
|
|
124
77
|
}
|
|
125
|
-
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
126
|
-
background-color: rgba(0, 0, 0, 0.06) !important;
|
|
127
|
-
}
|
|
128
78
|
.lm_editTable_warpper .ant-picker {
|
|
129
79
|
height: 24px !important;
|
|
130
80
|
padding: 2px 8px;
|
|
@@ -168,18 +118,3 @@
|
|
|
168
118
|
.lm_table_append_add_popover .ant-popover-inner-content ul li:hover {
|
|
169
119
|
background-color: var(--color-15);
|
|
170
120
|
}
|
|
171
|
-
.lm_edittable_col_sort_item {
|
|
172
|
-
overflow: hidden;
|
|
173
|
-
}
|
|
174
|
-
.lm_editable_col_drag {
|
|
175
|
-
background-color: #fff;
|
|
176
|
-
font-size: 12px;
|
|
177
|
-
display: flex;
|
|
178
|
-
box-sizing: border-box;
|
|
179
|
-
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
|
|
180
|
-
transform-origin: 0 0;
|
|
181
|
-
touch-action: manipulation;
|
|
182
|
-
scale: 1.05;
|
|
183
|
-
box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
184
|
-
padding: 8px;
|
|
185
|
-
}
|
|
@@ -2,13 +2,6 @@ export declare function isObjEmpty(obj: Record<string, any>): boolean;
|
|
|
2
2
|
export declare function deepDataSourcePreKeys(dataSource: any[], rowKey: string): any;
|
|
3
3
|
export declare function isExpandRow(children: any): boolean;
|
|
4
4
|
export declare function checkRowKeyByDataSource(dataSource: any, rowKey: any): any;
|
|
5
|
-
export declare function getExpandStatus(children: any): any;
|
|
6
|
-
export declare function checkMemoShouldUploadSpecialFun(prev: any, next: any): any;
|
|
7
|
-
export declare function checkExpandIconColumnIndex({ rowSelection, sortOpen, indexCol }: {
|
|
8
|
-
rowSelection: any;
|
|
9
|
-
sortOpen: any;
|
|
10
|
-
indexCol: any;
|
|
11
|
-
}): number;
|
|
12
5
|
declare const _default: {
|
|
13
6
|
isObjEmpty: typeof isObjEmpty;
|
|
14
7
|
};
|
package/lib/LmEditTable/util.js
CHANGED
|
@@ -5,12 +5,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.checkExpandIconColumnIndex = checkExpandIconColumnIndex;
|
|
9
|
-
exports.checkMemoShouldUploadSpecialFun = checkMemoShouldUploadSpecialFun;
|
|
10
8
|
exports.checkRowKeyByDataSource = checkRowKeyByDataSource;
|
|
11
9
|
exports.deepDataSourcePreKeys = deepDataSourcePreKeys;
|
|
12
10
|
exports.default = void 0;
|
|
13
|
-
exports.getExpandStatus = getExpandStatus;
|
|
14
11
|
exports.isExpandRow = isExpandRow;
|
|
15
12
|
exports.isObjEmpty = isObjEmpty;
|
|
16
13
|
|
|
@@ -29,20 +26,19 @@ function isObjEmpty(obj) {
|
|
|
29
26
|
function deepDataSourcePreKeys(dataSource, rowKey) {
|
|
30
27
|
var deepDataSource = [];
|
|
31
28
|
|
|
32
|
-
var eachChildren = function eachChildren(children, preKeys
|
|
33
|
-
children === null || children === void 0 ? void 0 : children.forEach(function (item
|
|
29
|
+
var eachChildren = function eachChildren(children, preKeys) {
|
|
30
|
+
children === null || children === void 0 ? void 0 : children.forEach(function (item) {
|
|
34
31
|
deepDataSource.push(Object.assign(Object.assign({}, item), {
|
|
35
|
-
preKeys: [].concat((0, _toConsumableArray2.default)(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]])
|
|
36
|
-
_deepIds: [].concat((0, _toConsumableArray2.default)(deepIds), [index + 1])
|
|
32
|
+
preKeys: [].concat((0, _toConsumableArray2.default)(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]])
|
|
37
33
|
}));
|
|
38
34
|
|
|
39
35
|
if (item === null || item === void 0 ? void 0 : item.children) {
|
|
40
|
-
eachChildren(item === null || item === void 0 ? void 0 : item.children, [].concat((0, _toConsumableArray2.default)(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]])
|
|
36
|
+
eachChildren(item === null || item === void 0 ? void 0 : item.children, [].concat((0, _toConsumableArray2.default)(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]])); // deepDataSource.push({ ...item, preKeys: [...preKeys, item[rowKey]] })
|
|
41
37
|
}
|
|
42
38
|
});
|
|
43
39
|
};
|
|
44
40
|
|
|
45
|
-
eachChildren(dataSource, []
|
|
41
|
+
eachChildren(dataSource, []);
|
|
46
42
|
return (0, _lodash.keyBy)(deepDataSource, rowKey);
|
|
47
43
|
}
|
|
48
44
|
|
|
@@ -76,94 +72,7 @@ function checkRowKeyByDataSource(dataSource, rowKey) {
|
|
|
76
72
|
|
|
77
73
|
return Object.assign(Object.assign({}, v), (0, _defineProperty2.default)({}, rowKey, v[rowKey] || "v".concat(idx + 1)));
|
|
78
74
|
});
|
|
79
|
-
return res
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function getExpandStatus(children) {
|
|
83
|
-
var _a, _b, _c, _d, _e;
|
|
84
|
-
|
|
85
|
-
return isExpandRow(children) ? (_e = (_d = (_c = (_b = (_a = children === null || children === void 0 ? void 0 : children[0]) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.children) === null || _c === void 0 ? void 0 : _c[1]) === null || _d === void 0 ? void 0 : _d.props) === null || _e === void 0 ? void 0 : _e['aria-label'] : '';
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function checkMemoShouldUploadSpecialFun(prev, next) {
|
|
89
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
90
|
-
|
|
91
|
-
var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
|
|
92
|
-
|
|
93
|
-
if (!checkExpandStatus) {
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var prevCol = prev === null || prev === void 0 ? void 0 : prev.col;
|
|
98
|
-
var nextCol = next === null || next === void 0 ? void 0 : next.col;
|
|
99
|
-
/** TODO: 使用了自定义render, 是否要判断rowIndex? 这样排序之后,渲染的性能就会变差 */
|
|
100
|
-
|
|
101
|
-
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.render) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.render)) && !(0, _lodash.isEqual)((0, _lodash.pick)(prev, ['colIndex', 'record', 'children']), (0, _lodash.pick)(next, ['colIndex', 'record', 'children']))) {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (!(next === null || next === void 0 ? void 0 : next.quickOpetateClearAll) && ((next === null || next === void 0 ? void 0 : next.getLength) < 2 || (prev === null || prev === void 0 ? void 0 : prev.getLength) === 1) && (next === null || next === void 0 ? void 0 : next.dataIndex) === 'lm_edit_opetate') {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (prev.isEdit !== next.isEdit) {
|
|
110
|
-
return false;
|
|
111
|
-
} // console.log(22, prevCol?.editable === 'render', nextCol?.editable === 'render', prevCol?.componentProps, prevCol?.componentProps)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.editable) === 'render' || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.editable) === 'render') && (((_a = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _a === void 0 ? void 0 : _a.render) || ((_b = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _b === void 0 ? void 0 : _b.render)) && (!(0, _lodash.isEqual)((0, _lodash.omit)(prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps, ['render']), (0, _lodash.omit)(nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps, ['render'])) || !(0, _lodash.isEqual)((0, _lodash.pick)(prev, ['colIndex', 'record', 'rowIndex']), (0, _lodash.pick)(next, ['colIndex', 'record', 'rowIndex'])))) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.fixed) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.fixed)) && !(0, _lodash.isEqual)(prev === null || prev === void 0 ? void 0 : prev.style, next === null || next === void 0 ? void 0 : next.style)) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if ((((_c = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _c === void 0 ? void 0 : _c.optionOnly) || ((_d = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _d === void 0 ? void 0 : _d.optionOnly)) && !(0, _lodash.isEqual)((_e = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _e === void 0 ? void 0 : _e.options, (_f = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _f === void 0 ? void 0 : _f.options)) {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if ((((_g = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _g === void 0 ? void 0 : _g.options) || ((_h = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _h === void 0 ? void 0 : _h.options)) && !(0, _lodash.isEqual)((_j = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _j === void 0 ? void 0 : _j.options, (_k = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _k === void 0 ? void 0 : _k.options)) {
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (((0, _lodash.isFunction)(prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) || (0, _lodash.isFunction)(nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps)) && !(0, _lodash.isEqual)(prevCol.newOptions, nextCol.newOptions) && !(0, _lodash.isEqual)(prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps, nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps)) {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.order) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.order)) && !(0, _lodash.isEqual)(prevCol === null || prevCol === void 0 ? void 0 : prevCol.order, nextCol === null || nextCol === void 0 ? void 0 : nextCol.order)) {
|
|
135
|
-
// return isEqual(prevCol?.order, nextCol?.fixed)
|
|
136
|
-
return false;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (next.className.indexOf('drag-visible') > -1) {
|
|
140
|
-
return (0, _lodash.isEqual)(prev.style, next.style);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (next.className.indexOf('ant-table-selection-column') > -1) {
|
|
144
|
-
return (0, _lodash.isEqual)((_m = (_l = prev.children) === null || _l === void 0 ? void 0 : _l[1]) === null || _m === void 0 ? void 0 : _m.props, (_p = (_o = next.children) === null || _o === void 0 ? void 0 : _o[1]) === null || _p === void 0 ? void 0 : _p.props);
|
|
145
|
-
}
|
|
146
|
-
/** 如果启用了快速复制功能,需要实时判断rowIndex与getLength */
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if (((_q = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _q === void 0 ? void 0 : _q.quickcopy) || ((_r = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _r === void 0 ? void 0 : _r.quickcopy)) {
|
|
150
|
-
var pickProps = ['record', 'colIndex', 'rowIndex', 'getLength'];
|
|
151
|
-
var p = (0, _lodash.pick)(prev, pickProps);
|
|
152
|
-
var n = (0, _lodash.pick)(next, pickProps);
|
|
153
|
-
return (0, _lodash.isEqual)(p, n);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
function checkExpandIconColumnIndex(_ref) {
|
|
160
|
-
var rowSelection = _ref.rowSelection,
|
|
161
|
-
sortOpen = _ref.sortOpen,
|
|
162
|
-
indexCol = _ref.indexCol;
|
|
163
|
-
var arr = [rowSelection, sortOpen, indexCol].filter(function (item) {
|
|
164
|
-
return !!item;
|
|
165
|
-
});
|
|
166
|
-
return arr.length;
|
|
75
|
+
return res;
|
|
167
76
|
}
|
|
168
77
|
|
|
169
78
|
var _default = {
|
|
@@ -36,16 +36,12 @@ var VirtualRow = /*#__PURE__*/_react.default.memo(function (_a, ref) {
|
|
|
36
36
|
var rowHeight = state.rowHeight,
|
|
37
37
|
totalLen = state.totalLen;
|
|
38
38
|
var virtualItems = instance.columnVirtual.virtualItems;
|
|
39
|
-
var trRef = (0, _react.useRef)(null); //
|
|
39
|
+
var trRef = (0, _react.useRef)(null); // 列长度
|
|
40
40
|
|
|
41
41
|
var columnsLen = (0, _react.useMemo)(function () {
|
|
42
42
|
var _a;
|
|
43
43
|
|
|
44
|
-
return (_a = children === null || children === void 0 ? void 0 : children.
|
|
45
|
-
var _a, _b;
|
|
46
|
-
|
|
47
|
-
return typeof ((_a = v.props) === null || _a === void 0 ? void 0 : _a.fixLeft) !== 'number' && typeof ((_b = v.props) === null || _b === void 0 ? void 0 : _b.fixRight) !== 'number';
|
|
48
|
-
}).length) !== null && _a !== void 0 ? _a : 0; // return children?.length ?? 0
|
|
44
|
+
return (_a = children === null || children === void 0 ? void 0 : children.length) !== null && _a !== void 0 ? _a : 0;
|
|
49
45
|
}, [children]);
|
|
50
46
|
(0, _react.useEffect)(function () {
|
|
51
47
|
if (state.columnsLen !== columnsLen) {
|
|
@@ -92,20 +88,26 @@ var VirtualRow = /*#__PURE__*/_react.default.memo(function (_a, ref) {
|
|
|
92
88
|
fixedRight: [],
|
|
93
89
|
columns: []
|
|
94
90
|
});
|
|
95
|
-
}, [children]); //
|
|
91
|
+
}, [children]); // 截取非固定列
|
|
92
|
+
|
|
93
|
+
var resetVirtualItems = (0, _react.useMemo)(function () {
|
|
94
|
+
var fixedLeft = fixedColumns.fixedLeft,
|
|
95
|
+
columns = fixedColumns.columns;
|
|
96
|
+
return virtualItems.slice(fixedLeft.length, fixedLeft.length + columns.length);
|
|
97
|
+
}, [fixedColumns, virtualItems]); // 横线单元格合并
|
|
96
98
|
|
|
97
99
|
var colSpan = (0, _react.useMemo)(function () {
|
|
98
100
|
var _a;
|
|
99
101
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
var startIndex = ((_a = resetVirtualItems === null || resetVirtualItems === void 0 ? void 0 : resetVirtualItems[0]) === null || _a === void 0 ? void 0 : _a.index) || 0;
|
|
103
|
+
return startIndex ? startIndex - fixedColumns.fixedLeft.length : startIndex;
|
|
104
|
+
}, [fixedColumns, resetVirtualItems]);
|
|
103
105
|
return /*#__PURE__*/_react.default.createElement("tr", Object.assign({}, resetProps, {
|
|
104
106
|
ref: Object.prototype.hasOwnProperty.call(ref, 'current') ? ref : trRef
|
|
105
107
|
}), fixedColumns.fixedLeft, !!colSpan && /*#__PURE__*/_react.default.createElement("td", {
|
|
106
108
|
colSpan: colSpan
|
|
107
|
-
}),
|
|
108
|
-
return
|
|
109
|
+
}), resetVirtualItems.map(function (virtualCol) {
|
|
110
|
+
return children[virtualCol.index];
|
|
109
111
|
}), fixedColumns.fixedRight);
|
|
110
112
|
});
|
|
111
113
|
|
package/lib/index.d.ts
CHANGED
|
@@ -51,9 +51,10 @@ export type { TooltipProps } from './Tooltip';
|
|
|
51
51
|
export { default as Form } from './Form';
|
|
52
52
|
export { default as Spin } from './Spin';
|
|
53
53
|
export { default as LmEditTable } from './LmEditTable';
|
|
54
|
-
export type {
|
|
54
|
+
export type { CountdownHandle, TLmEditTable } from './LmEditTable/EditTable';
|
|
55
55
|
export { default as List } from './List';
|
|
56
56
|
export { default as LMQuickMenu } from './QuickMenu';
|
|
57
|
+
export type { IMenuData, IQuickMenuProps } from './QuickMenu';
|
|
57
58
|
export { default as DatePicker } from './DatePicker';
|
|
58
59
|
export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';
|
|
59
60
|
export { default as Popover } from './Popover';
|
package/lib/styles/variables.css
CHANGED
|
@@ -9738,9 +9738,6 @@ p {
|
|
|
9738
9738
|
width: 32px;
|
|
9739
9739
|
padding: 0 8px;
|
|
9740
9740
|
}
|
|
9741
|
-
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
9742
|
-
height: 100%;
|
|
9743
|
-
}
|
|
9744
9741
|
.lm_editTable_warpper .lm_editTable_cell {
|
|
9745
9742
|
cursor: pointer;
|
|
9746
9743
|
height: 40px;
|
|
@@ -9752,21 +9749,6 @@ p {
|
|
|
9752
9749
|
letter-spacing: 0px;
|
|
9753
9750
|
color: var(--color-85);
|
|
9754
9751
|
}
|
|
9755
|
-
.lm_editTable_warpper .lm_custom_cell_td {
|
|
9756
|
-
position: relative;
|
|
9757
|
-
}
|
|
9758
|
-
.lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append {
|
|
9759
|
-
display: flex;
|
|
9760
|
-
flex-direction: row;
|
|
9761
|
-
flex-wrap: nowrap;
|
|
9762
|
-
}
|
|
9763
|
-
.lm_editTable_warpper .lm_custom_cell_td.ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
9764
|
-
margin-right: 8px;
|
|
9765
|
-
flex: none;
|
|
9766
|
-
}
|
|
9767
|
-
.lm_editTable_warpper .lm_custom_cell_td > .ant-form-item {
|
|
9768
|
-
flex: 1 1 auto;
|
|
9769
|
-
}
|
|
9770
9752
|
.lm_editTable_warpper .lm_custom_cell_td .ant-form-item-control-input-content {
|
|
9771
9753
|
display: flex;
|
|
9772
9754
|
flex-direction: row;
|
|
@@ -9778,32 +9760,6 @@ p {
|
|
|
9778
9760
|
.lm_editTable_warpper .lm_custom_cell_td .ant-table-row-expand-icon {
|
|
9779
9761
|
margin-top: 6px;
|
|
9780
9762
|
}
|
|
9781
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_warp {
|
|
9782
|
-
font-size: 8px;
|
|
9783
|
-
position: absolute;
|
|
9784
|
-
left: calc(50% - 10px);
|
|
9785
|
-
z-index: 100;
|
|
9786
|
-
width: 20px;
|
|
9787
|
-
height: 10px;
|
|
9788
|
-
background-color: var(--color-6);
|
|
9789
|
-
display: flex;
|
|
9790
|
-
align-items: center;
|
|
9791
|
-
justify-content: center;
|
|
9792
|
-
color: #D8D8D8;
|
|
9793
|
-
}
|
|
9794
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_warp:hover {
|
|
9795
|
-
cursor: pointer;
|
|
9796
|
-
background-color: var(--primary-color);
|
|
9797
|
-
color: #fff;
|
|
9798
|
-
}
|
|
9799
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_up {
|
|
9800
|
-
top: -4px;
|
|
9801
|
-
left: calc(50% - 10px);
|
|
9802
|
-
}
|
|
9803
|
-
.lm_editTable_warpper .lm_custom_cell_td .quick_copy_down {
|
|
9804
|
-
bottom: -6px;
|
|
9805
|
-
left: calc(50% - 10px);
|
|
9806
|
-
}
|
|
9807
9763
|
.lm_editTable_warpper .lm_editTable_cell_edit {
|
|
9808
9764
|
height: 40px;
|
|
9809
9765
|
padding: 8px 8px !important;
|
|
@@ -9815,9 +9771,6 @@ p {
|
|
|
9815
9771
|
.lm_editTable_warpper .lm_table_quickcopy .anticon {
|
|
9816
9772
|
color: var(--text-color);
|
|
9817
9773
|
}
|
|
9818
|
-
.lm_editTable_warpper .ant-table-body {
|
|
9819
|
-
scroll-behavior: smooth;
|
|
9820
|
-
}
|
|
9821
9774
|
.lm_editTable_warpper .icon_drag {
|
|
9822
9775
|
color: var(--tip-text-color);
|
|
9823
9776
|
}
|
|
@@ -9834,9 +9787,6 @@ p {
|
|
|
9834
9787
|
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
9835
9788
|
background-color: rgba(0, 0, 0, 0.06) !important;
|
|
9836
9789
|
}
|
|
9837
|
-
.lm_editTable_warpper .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
|
|
9838
|
-
background-color: rgba(0, 0, 0, 0.06) !important;
|
|
9839
|
-
}
|
|
9840
9790
|
.lm_editTable_warpper .ant-picker {
|
|
9841
9791
|
height: 24px !important;
|
|
9842
9792
|
padding: 2px 8px;
|
|
@@ -9880,21 +9830,6 @@ p {
|
|
|
9880
9830
|
.lm_table_append_add_popover .ant-popover-inner-content ul li:hover {
|
|
9881
9831
|
background-color: var(--color-15);
|
|
9882
9832
|
}
|
|
9883
|
-
.lm_edittable_col_sort_item {
|
|
9884
|
-
overflow: hidden;
|
|
9885
|
-
}
|
|
9886
|
-
.lm_editable_col_drag {
|
|
9887
|
-
background-color: #fff;
|
|
9888
|
-
font-size: 12px;
|
|
9889
|
-
display: flex;
|
|
9890
|
-
box-sizing: border-box;
|
|
9891
|
-
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
|
|
9892
|
-
transform-origin: 0 0;
|
|
9893
|
-
touch-action: manipulation;
|
|
9894
|
-
scale: 1.05;
|
|
9895
|
-
box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
9896
|
-
padding: 8px;
|
|
9897
|
-
}
|
|
9898
9833
|
.lm_filter_wrapper .lm_filter_container .lm_filter {
|
|
9899
9834
|
display: flex;
|
|
9900
9835
|
flex-wrap: wrap;
|