linkmore-design 1.1.10 → 1.1.12
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/Button/demos/type.d.ts +2 -0
- package/dist/Cascader/demos/formItem.d.ts +2 -0
- package/dist/CustomTableOption/index.d.ts +1 -0
- package/dist/CustomTableOption/locale/en_US.d.ts +19 -0
- package/dist/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/dist/LmEditTable/demos/priceTable.d.ts +2 -0
- package/dist/LmEditTable/util.d.ts +1 -0
- package/dist/LmFilter/demos/filterControl.d.ts +2 -0
- package/dist/Locale/default.d.ts +4 -1
- package/dist/Locale/zh_CN.d.ts +4 -1
- package/dist/Modal/demos/locale.d.ts +2 -0
- package/dist/Modal/locale.d.ts +7 -0
- package/dist/Select/demos/formItem.d.ts +2 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/TreeSelect/demos/formItem.d.ts +2 -0
- package/dist/TreeSelect/index.d.ts +8 -3
- package/dist/base.css +1 -0
- package/dist/index.umd.js +394 -206
- package/dist/index.umd.min.js +6 -6
- package/dist/variables.css +45 -12
- package/es/Affix/style/index.css +1 -0
- package/es/Alert/style/index.css +1 -0
- package/es/Approval/style/index.css +1 -0
- package/es/AutoComplete/style/index.css +1 -0
- package/es/Avatar/style/index.css +1 -0
- package/es/Badge/style/index.css +1 -0
- package/es/Breadcrumb/style/index.css +1 -0
- package/es/Button/style/index.css +4 -1
- package/es/Button/style/variables.css +4 -1
- package/es/ButtonTags/style/index.css +1 -0
- package/es/Calendar/style/index.css +1 -0
- package/es/Card/style/index.css +1 -0
- package/es/CardTable/style/index.css +7 -9
- package/es/CardTable/style/variables.css +7 -9
- package/es/Carousel/style/index.css +1 -0
- package/es/Cascader/style/index.css +1 -0
- package/es/Col/style/index.css +1 -0
- package/es/Collapse/style/index.css +1 -0
- package/es/Comment/style/index.css +1 -0
- package/es/CustomTableOption/cardSort.js +21 -16
- package/es/CustomTableOption/columnsSort.js +16 -16
- package/es/CustomTableOption/filterSort.js +11 -11
- package/es/CustomTableOption/index.d.ts +1 -0
- package/es/CustomTableOption/index.js +45 -17
- package/es/CustomTableOption/locale/en_US.d.ts +19 -0
- package/es/CustomTableOption/locale/en_US.js +19 -0
- package/es/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/es/CustomTableOption/locale/zh_CN.js +19 -0
- package/es/CustomTableOption/style/index.css +5 -0
- package/es/CustomTableOption/style/variables.css +4 -0
- package/es/CustomerService/style/index.css +1 -0
- package/es/DatePicker/style/index.css +1 -0
- package/es/Descriptions/style/index.css +1 -0
- package/es/Divider/style/index.css +1 -0
- package/es/Drawer/style/index.css +1 -0
- package/es/Dropdown/style/index.css +3 -2
- package/es/Dropdown/style/variables.css +2 -2
- package/es/EditTable/style/index.css +1 -0
- package/es/Empty/style/index.css +1 -0
- package/es/Filter/style/index.css +1 -0
- package/es/Form/style/index.css +1 -0
- package/es/FullScreen/style/index.css +1 -0
- package/es/Grid/style/index.css +1 -0
- package/es/Icon/style/index.css +1 -0
- package/es/Image/style/index.css +1 -0
- package/es/Input/style/index.css +1 -0
- package/es/InputNumber/style/index.css +1 -0
- package/es/Layout/style/index.css +1 -0
- package/es/LeftTable/index.js +3 -1
- package/es/LeftTable/style/index.css +1 -0
- package/es/List/style/index.css +1 -0
- package/es/LmEditTable/EditTable.js +102 -98
- package/es/LmEditTable/style/index.css +23 -0
- package/es/LmEditTable/style/variables.css +22 -0
- package/es/LmEditTable/util.d.ts +1 -0
- package/es/LmEditTable/util.js +27 -0
- package/es/LmSelect/style/index.css +1 -0
- package/es/LmTable/style/index.css +1 -0
- package/es/Locale/default.d.ts +4 -1
- package/es/Locale/default.js +3 -1
- package/es/Locale/zh_CN.d.ts +4 -1
- package/es/Locale/zh_CN.js +3 -1
- package/es/Mentions/style/index.css +1 -0
- package/es/Menu/style/index.css +1 -0
- package/es/Modal/index.js +18 -14
- package/es/Modal/locale.d.ts +7 -0
- package/es/Modal/locale.js +12 -0
- package/es/Modal/style/index.css +1 -0
- package/es/PageHeader/style/index.css +1 -0
- package/es/Pagination/style/index.css +1 -0
- package/es/Popconfirm/style/index.css +1 -0
- package/es/Popover/style/index.css +1 -0
- package/es/Progress/style/index.css +1 -0
- package/es/QuickMenu/style/index.css +6 -0
- package/es/QuickMenu/style/variables.css +5 -0
- package/es/Rate/style/index.css +1 -0
- package/es/Result/style/index.css +1 -0
- package/es/Row/style/index.css +1 -0
- package/es/Segmented/style/index.css +1 -0
- package/es/Select/index.d.ts +1 -0
- package/es/Select/index.js +38 -4
- package/es/Select/style/index.css +1 -0
- package/es/Skeleton/style/index.css +1 -0
- package/es/Slider/style/index.css +1 -0
- package/es/Space/style/index.css +1 -0
- package/es/Spin/style/index.css +1 -0
- package/es/Statistic/style/index.css +1 -0
- package/es/Steps/style/index.css +1 -0
- package/es/Switch/style/index.css +1 -0
- package/es/Table/style/index.css +1 -0
- package/es/Tabs/style/index.css +1 -0
- package/es/Tag/style/index.css +1 -0
- package/es/TimePicker/style/index.css +1 -0
- package/es/Timeline/style/index.css +1 -0
- package/es/Tooltip/style/index.css +1 -0
- package/es/Transfer/style/index.css +1 -0
- package/es/Tree/style/index.css +1 -0
- package/es/TreeSelect/index.d.ts +8 -3
- package/es/TreeSelect/index.js +74 -1
- package/es/TreeSelect/style/index.css +1 -0
- package/es/Typography/style/index.css +1 -0
- package/es/Upload/style/index.css +1 -0
- package/es/locale-provider/style/index.css +1 -0
- package/es/message/style/index.css +1 -0
- package/es/notification/style/index.css +1 -0
- package/es/styles/main.css +1 -0
- package/es/styles/variables.css +45 -12
- package/lib/Affix/style/index.css +1 -0
- package/lib/Alert/style/index.css +1 -0
- package/lib/Approval/style/index.css +1 -0
- package/lib/AutoComplete/style/index.css +1 -0
- package/lib/Avatar/style/index.css +1 -0
- package/lib/Badge/style/index.css +1 -0
- package/lib/Breadcrumb/style/index.css +1 -0
- package/lib/Button/style/index.css +4 -1
- package/lib/Button/style/variables.css +4 -1
- package/lib/ButtonTags/style/index.css +1 -0
- package/lib/Calendar/style/index.css +1 -0
- package/lib/Card/style/index.css +1 -0
- package/lib/CardTable/style/index.css +7 -9
- package/lib/CardTable/style/variables.css +7 -9
- package/lib/Carousel/style/index.css +1 -0
- package/lib/Cascader/style/index.css +1 -0
- package/lib/Col/style/index.css +1 -0
- package/lib/Collapse/style/index.css +1 -0
- package/lib/Comment/style/index.css +1 -0
- package/lib/CustomTableOption/cardSort.js +20 -15
- package/lib/CustomTableOption/columnsSort.js +16 -16
- package/lib/CustomTableOption/filterSort.js +11 -11
- package/lib/CustomTableOption/index.d.ts +1 -0
- package/lib/CustomTableOption/index.js +45 -16
- package/lib/CustomTableOption/locale/en_US.d.ts +19 -0
- package/lib/CustomTableOption/locale/en_US.js +26 -0
- package/lib/CustomTableOption/locale/zh_CN.d.ts +19 -0
- package/lib/CustomTableOption/locale/zh_CN.js +26 -0
- package/lib/CustomTableOption/style/index.css +5 -0
- package/lib/CustomTableOption/style/variables.css +4 -0
- package/lib/CustomerService/style/index.css +1 -0
- package/lib/DatePicker/style/index.css +1 -0
- package/lib/Descriptions/style/index.css +1 -0
- package/lib/Divider/style/index.css +1 -0
- package/lib/Drawer/style/index.css +1 -0
- package/lib/Dropdown/style/index.css +3 -2
- package/lib/Dropdown/style/variables.css +2 -2
- package/lib/EditTable/style/index.css +1 -0
- package/lib/Empty/style/index.css +1 -0
- package/lib/Filter/style/index.css +1 -0
- package/lib/Form/style/index.css +1 -0
- package/lib/FullScreen/style/index.css +1 -0
- package/lib/Grid/style/index.css +1 -0
- package/lib/Icon/style/index.css +1 -0
- package/lib/Image/style/index.css +1 -0
- package/lib/Input/style/index.css +1 -0
- package/lib/InputNumber/style/index.css +1 -0
- package/lib/Layout/style/index.css +1 -0
- package/lib/LeftTable/index.js +3 -1
- package/lib/LeftTable/style/index.css +1 -0
- package/lib/List/style/index.css +1 -0
- package/lib/LmEditTable/EditTable.js +101 -96
- package/lib/LmEditTable/style/index.css +23 -0
- package/lib/LmEditTable/style/variables.css +22 -0
- package/lib/LmEditTable/util.d.ts +1 -0
- package/lib/LmEditTable/util.js +30 -0
- package/lib/LmSelect/style/index.css +1 -0
- package/lib/LmTable/style/index.css +1 -0
- package/lib/Locale/default.d.ts +4 -1
- package/lib/Locale/default.js +4 -1
- package/lib/Locale/zh_CN.d.ts +4 -1
- package/lib/Locale/zh_CN.js +4 -1
- package/lib/Mentions/style/index.css +1 -0
- package/lib/Menu/style/index.css +1 -0
- package/lib/Modal/index.js +22 -14
- package/lib/Modal/locale.d.ts +7 -0
- package/lib/Modal/locale.js +25 -0
- package/lib/Modal/style/index.css +1 -0
- package/lib/PageHeader/style/index.css +1 -0
- package/lib/Pagination/style/index.css +1 -0
- package/lib/Popconfirm/style/index.css +1 -0
- package/lib/Popover/style/index.css +1 -0
- package/lib/Progress/style/index.css +1 -0
- package/lib/QuickMenu/style/index.css +6 -0
- package/lib/QuickMenu/style/variables.css +5 -0
- package/lib/Rate/style/index.css +1 -0
- package/lib/Result/style/index.css +1 -0
- package/lib/Row/style/index.css +1 -0
- package/lib/Segmented/style/index.css +1 -0
- package/lib/Select/index.d.ts +1 -0
- package/lib/Select/index.js +37 -3
- package/lib/Select/style/index.css +1 -0
- package/lib/Skeleton/style/index.css +1 -0
- package/lib/Slider/style/index.css +1 -0
- package/lib/Space/style/index.css +1 -0
- package/lib/Spin/style/index.css +1 -0
- package/lib/Statistic/style/index.css +1 -0
- package/lib/Steps/style/index.css +1 -0
- package/lib/Switch/style/index.css +1 -0
- package/lib/Table/style/index.css +1 -0
- package/lib/Tabs/style/index.css +1 -0
- package/lib/Tag/style/index.css +1 -0
- package/lib/TimePicker/style/index.css +1 -0
- package/lib/Timeline/style/index.css +1 -0
- package/lib/Tooltip/style/index.css +1 -0
- package/lib/Transfer/style/index.css +1 -0
- package/lib/Tree/style/index.css +1 -0
- package/lib/TreeSelect/index.d.ts +8 -3
- package/lib/TreeSelect/index.js +78 -1
- package/lib/TreeSelect/style/index.css +1 -0
- package/lib/Typography/style/index.css +1 -0
- package/lib/Upload/style/index.css +1 -0
- package/lib/locale-provider/style/index.css +1 -0
- package/lib/message/style/index.css +1 -0
- package/lib/notification/style/index.css +1 -0
- package/lib/styles/main.css +1 -0
- package/lib/styles/variables.css +45 -12
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ant-btn.lm-button {
|
|
2
2
|
border: 0;
|
|
3
|
-
display: inline-flex;
|
|
3
|
+
display: inline-flex !important;
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
border: 0 !important;
|
|
110
110
|
background: transparent !important;
|
|
111
111
|
}
|
|
112
|
+
.ant-btn.ant-btn-text {
|
|
113
|
+
background: transparent;
|
|
114
|
+
}
|
|
112
115
|
.ant-btn.lm-button-icon-only .anticon {
|
|
113
116
|
font-size: 16px;
|
|
114
117
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ant-btn.lm-button {
|
|
2
2
|
border: 0;
|
|
3
|
-
display: inline-flex;
|
|
3
|
+
display: inline-flex !important;
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
border: 0 !important;
|
|
110
110
|
background: transparent !important;
|
|
111
111
|
}
|
|
112
|
+
.ant-btn.ant-btn-text {
|
|
113
|
+
background: transparent;
|
|
114
|
+
}
|
|
112
115
|
.ant-btn.lm-button-icon-only .anticon {
|
|
113
116
|
font-size: 16px;
|
|
114
117
|
}
|
package/lib/Card/style/index.css
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
position: relative;
|
|
20
20
|
width: 100%;
|
|
21
21
|
border: 1px solid transparent;
|
|
22
|
+
border-radius: 4px;
|
|
22
23
|
overflow: hidden;
|
|
23
24
|
transition: 0.3s;
|
|
24
25
|
}
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
.lm_card_table_container .lm_card_table_body_cell .card_checkbox .lm-checkbox {
|
|
47
48
|
font-size: 0;
|
|
48
49
|
border: 8px solid rgba(255, 255, 255, 0.625);
|
|
49
|
-
border-radius:
|
|
50
|
+
border-radius: var(--border-radius);
|
|
50
51
|
line-height: 1;
|
|
51
52
|
}
|
|
52
53
|
.lm_card_table_container .lm_card_table_body_cell .card_checkbox .ant-checkbox {
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
top: 8px;
|
|
60
61
|
z-index: 1;
|
|
61
62
|
background-color: rgba(255, 255, 255, 0.625);
|
|
62
|
-
border-radius:
|
|
63
|
+
border-radius: var(--border-radius);
|
|
63
64
|
opacity: 0;
|
|
64
65
|
transition: 0.3s;
|
|
65
66
|
}
|
|
@@ -116,7 +117,6 @@
|
|
|
116
117
|
flex-flow: column;
|
|
117
118
|
gap: 8px;
|
|
118
119
|
height: 100%;
|
|
119
|
-
border-radius: 2px;
|
|
120
120
|
background-color: var(--color-4);
|
|
121
121
|
padding: calc(var(--gap) * 2);
|
|
122
122
|
transition: 0.3s;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
top: 8px;
|
|
128
128
|
z-index: 1;
|
|
129
129
|
background-color: rgba(255, 255, 255, 0.625);
|
|
130
|
-
border-radius:
|
|
130
|
+
border-radius: var(--border-radius);
|
|
131
131
|
opacity: 0;
|
|
132
132
|
transition: 0.3s;
|
|
133
133
|
}
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
.card_PTC .card_PTC_container .card_PTC_top {
|
|
145
145
|
position: relative;
|
|
146
146
|
flex: 1;
|
|
147
|
-
border-radius:
|
|
147
|
+
border-radius: var(--border-radius);
|
|
148
148
|
background: var(--color-15);
|
|
149
149
|
overflow: hidden;
|
|
150
150
|
}
|
|
@@ -203,7 +203,6 @@
|
|
|
203
203
|
height: 100%;
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-flow: column;
|
|
206
|
-
border-radius: 2px;
|
|
207
206
|
background-color: var(--background-color);
|
|
208
207
|
transition: 0.3s;
|
|
209
208
|
}
|
|
@@ -219,7 +218,7 @@
|
|
|
219
218
|
flex: 0 0 auto;
|
|
220
219
|
width: 35%;
|
|
221
220
|
min-width: 126px;
|
|
222
|
-
border-radius:
|
|
221
|
+
border-radius: var(--border-radius);
|
|
223
222
|
background: var(--color-15);
|
|
224
223
|
overflow: hidden;
|
|
225
224
|
}
|
|
@@ -333,7 +332,6 @@
|
|
|
333
332
|
height: 100%;
|
|
334
333
|
display: flex;
|
|
335
334
|
flex-flow: column;
|
|
336
|
-
border-radius: 2px;
|
|
337
335
|
background-color: var(--background-color);
|
|
338
336
|
transition: 0.3s;
|
|
339
337
|
}
|
|
@@ -349,7 +347,7 @@
|
|
|
349
347
|
flex: 0 0 auto;
|
|
350
348
|
width: 40%;
|
|
351
349
|
min-width: 126px;
|
|
352
|
-
border-radius:
|
|
350
|
+
border-radius: var(--border-radius);
|
|
353
351
|
background: var(--color-15);
|
|
354
352
|
overflow: hidden;
|
|
355
353
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
position: relative;
|
|
20
20
|
width: 100%;
|
|
21
21
|
border: 1px solid transparent;
|
|
22
|
+
border-radius: 4px;
|
|
22
23
|
overflow: hidden;
|
|
23
24
|
transition: 0.3s;
|
|
24
25
|
}
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
.lm_card_table_container .lm_card_table_body_cell .card_checkbox .lm-checkbox {
|
|
47
48
|
font-size: 0;
|
|
48
49
|
border: 8px solid rgba(255, 255, 255, 0.625);
|
|
49
|
-
border-radius:
|
|
50
|
+
border-radius: var(--border-radius);
|
|
50
51
|
line-height: 1;
|
|
51
52
|
}
|
|
52
53
|
.lm_card_table_container .lm_card_table_body_cell .card_checkbox .ant-checkbox {
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
top: 8px;
|
|
60
61
|
z-index: 1;
|
|
61
62
|
background-color: rgba(255, 255, 255, 0.625);
|
|
62
|
-
border-radius:
|
|
63
|
+
border-radius: var(--border-radius);
|
|
63
64
|
opacity: 0;
|
|
64
65
|
transition: 0.3s;
|
|
65
66
|
}
|
|
@@ -116,7 +117,6 @@
|
|
|
116
117
|
flex-flow: column;
|
|
117
118
|
gap: 8px;
|
|
118
119
|
height: 100%;
|
|
119
|
-
border-radius: 2px;
|
|
120
120
|
background-color: var(--color-4);
|
|
121
121
|
padding: calc(var(--gap) * 2);
|
|
122
122
|
transition: 0.3s;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
top: 8px;
|
|
128
128
|
z-index: 1;
|
|
129
129
|
background-color: rgba(255, 255, 255, 0.625);
|
|
130
|
-
border-radius:
|
|
130
|
+
border-radius: var(--border-radius);
|
|
131
131
|
opacity: 0;
|
|
132
132
|
transition: 0.3s;
|
|
133
133
|
}
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
.card_PTC .card_PTC_container .card_PTC_top {
|
|
145
145
|
position: relative;
|
|
146
146
|
flex: 1;
|
|
147
|
-
border-radius:
|
|
147
|
+
border-radius: var(--border-radius);
|
|
148
148
|
background: var(--color-15);
|
|
149
149
|
overflow: hidden;
|
|
150
150
|
}
|
|
@@ -203,7 +203,6 @@
|
|
|
203
203
|
height: 100%;
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-flow: column;
|
|
206
|
-
border-radius: 2px;
|
|
207
206
|
background-color: var(--background-color);
|
|
208
207
|
transition: 0.3s;
|
|
209
208
|
}
|
|
@@ -219,7 +218,7 @@
|
|
|
219
218
|
flex: 0 0 auto;
|
|
220
219
|
width: 35%;
|
|
221
220
|
min-width: 126px;
|
|
222
|
-
border-radius:
|
|
221
|
+
border-radius: var(--border-radius);
|
|
223
222
|
background: var(--color-15);
|
|
224
223
|
overflow: hidden;
|
|
225
224
|
}
|
|
@@ -333,7 +332,6 @@
|
|
|
333
332
|
height: 100%;
|
|
334
333
|
display: flex;
|
|
335
334
|
flex-flow: column;
|
|
336
|
-
border-radius: 2px;
|
|
337
335
|
background-color: var(--background-color);
|
|
338
336
|
transition: 0.3s;
|
|
339
337
|
}
|
|
@@ -349,7 +347,7 @@
|
|
|
349
347
|
flex: 0 0 auto;
|
|
350
348
|
width: 40%;
|
|
351
349
|
min-width: 126px;
|
|
352
|
-
border-radius:
|
|
350
|
+
border-radius: var(--border-radius);
|
|
353
351
|
background: var(--color-15);
|
|
354
352
|
overflow: hidden;
|
|
355
353
|
}
|
package/lib/Col/style/index.css
CHANGED
|
@@ -46,16 +46,16 @@ var SortItem = function SortItem(props) {
|
|
|
46
46
|
};
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
48
48
|
ref: setNodeRef,
|
|
49
|
-
className:
|
|
49
|
+
className: "lm_custom_item",
|
|
50
50
|
style: style
|
|
51
51
|
}, attributes), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
52
|
-
checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show)
|
|
52
|
+
checked: ((_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
|
|
53
53
|
onChange: function onChange(e) {
|
|
54
|
-
return props.toggleShow(e.target.checked, props.id);
|
|
54
|
+
return props === null || props === void 0 ? void 0 : props.toggleShow(e.target.checked, props === null || props === void 0 ? void 0 : props.id);
|
|
55
55
|
},
|
|
56
56
|
className: "filter_item-content"
|
|
57
|
-
}, (_b = props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
|
|
58
|
-
className:
|
|
57
|
+
}, (_b = props === null || props === void 0 ? void 0 : props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
|
|
58
|
+
className: "lm_custom_icon sort_item"
|
|
59
59
|
}))));
|
|
60
60
|
};
|
|
61
61
|
/** order show */
|
|
@@ -65,7 +65,8 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
65
65
|
var _ref$card = _ref.card,
|
|
66
66
|
card = _ref$card === void 0 ? [] : _ref$card,
|
|
67
67
|
_ref$cardStateValue = _ref.cardStateValue,
|
|
68
|
-
cardStateValue = _ref$cardStateValue === void 0 ? {} : _ref$cardStateValue
|
|
68
|
+
cardStateValue = _ref$cardStateValue === void 0 ? {} : _ref$cardStateValue,
|
|
69
|
+
showPromptNum = _ref.showPromptNum;
|
|
69
70
|
|
|
70
71
|
var _useState = (0, _react.useState)([]),
|
|
71
72
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -109,7 +110,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
109
110
|
return item.show !== false;
|
|
110
111
|
});
|
|
111
112
|
return {
|
|
112
|
-
indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localCard.length
|
|
113
|
+
indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localCard.length),
|
|
113
114
|
checkAll: showLength.length === localCard.length
|
|
114
115
|
};
|
|
115
116
|
}, [localCard]);
|
|
@@ -155,7 +156,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
155
156
|
var resultColumns = localCard.map(function (item) {
|
|
156
157
|
if (item.dataIndex === id) {
|
|
157
158
|
return Object.assign(Object.assign({}, item), {
|
|
158
|
-
show: item.show === false
|
|
159
|
+
show: item.show === false
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
162
|
|
|
@@ -169,7 +170,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
169
170
|
var onCheckAllChange = function onCheckAllChange() {
|
|
170
171
|
var resultColumns = localCard.map(function (item) {
|
|
171
172
|
return Object.assign(Object.assign({}, item), {
|
|
172
|
-
show: isCheckAll.checkAll
|
|
173
|
+
show: !isCheckAll.checkAll
|
|
173
174
|
});
|
|
174
175
|
});
|
|
175
176
|
setLocalCard(resultColumns);
|
|
@@ -186,11 +187,11 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
186
187
|
obj[item.dataIndex] = {};
|
|
187
188
|
|
|
188
189
|
if (![undefined, null].includes(item.order)) {
|
|
189
|
-
obj[item.dataIndex]
|
|
190
|
+
obj[item.dataIndex].order = item.order;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
if (![undefined, null].includes(item.show)) {
|
|
193
|
-
obj[item.dataIndex]
|
|
194
|
+
obj[item.dataIndex].show = item.show;
|
|
194
195
|
}
|
|
195
196
|
});
|
|
196
197
|
return obj;
|
|
@@ -198,17 +199,21 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
198
199
|
};
|
|
199
200
|
});
|
|
200
201
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
201
|
-
className:
|
|
202
|
+
className: "lm_custom_option_columns"
|
|
202
203
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
203
|
-
className:
|
|
204
|
+
className: "global_search"
|
|
204
205
|
}, /*#__PURE__*/_react.default.createElement(Search, {
|
|
205
206
|
value: searchIngValue,
|
|
206
207
|
onChange: function onChange(e) {
|
|
207
208
|
return setSearchIngValue(e.target.value);
|
|
208
209
|
},
|
|
209
210
|
onSearch: handleSearch
|
|
210
|
-
})), /*#__PURE__*/_react.default.createElement("
|
|
211
|
-
className:
|
|
211
|
+
})), /*#__PURE__*/_react.default.createElement("p", {
|
|
212
|
+
className: "card_prompt"
|
|
213
|
+
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.IconFont, {
|
|
214
|
+
type: "lmweb-warning-circle"
|
|
215
|
+
}), " \u5361\u7247\u5B57\u6BB5\u5EFA\u8BAE\u6700\u591A\u663E\u793A", showPromptNum || 10, "\u4E2A\u4E3A\u4F18"), /*#__PURE__*/_react.default.createElement("div", {
|
|
216
|
+
className: "global_setting"
|
|
212
217
|
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
213
218
|
indeterminate: isCheckAll.indeterminate,
|
|
214
219
|
onChange: onCheckAllChange,
|
|
@@ -45,10 +45,10 @@ var SortItem = function SortItem(props) {
|
|
|
45
45
|
};
|
|
46
46
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
47
47
|
ref: setNodeRef,
|
|
48
|
-
className:
|
|
48
|
+
className: "lm_custom_item",
|
|
49
49
|
style: style
|
|
50
50
|
}, attributes), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
51
|
-
checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show)
|
|
51
|
+
checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
|
|
52
52
|
onChange: function onChange(e) {
|
|
53
53
|
return props.toggleShow(e.target.checked, props.id);
|
|
54
54
|
},
|
|
@@ -75,7 +75,7 @@ var SortItem = function SortItem(props) {
|
|
|
75
75
|
props.addFiexd(props.id, 'right');
|
|
76
76
|
}
|
|
77
77
|
})), /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
|
|
78
|
-
className:
|
|
78
|
+
className: "lm_custom_icon sort_item",
|
|
79
79
|
style: {
|
|
80
80
|
color: 'var(--tip-text-color)'
|
|
81
81
|
}
|
|
@@ -128,7 +128,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
128
128
|
var order = (_a = colStateValue[item.dataIndex]) === null || _a === void 0 ? void 0 : _a.order;
|
|
129
129
|
item.fixed = ((_b = colStateValue[item.dataIndex]) === null || _b === void 0 ? void 0 : _b.fixed) || undefined;
|
|
130
130
|
item.order = [undefined, null].includes(order) ? index : order;
|
|
131
|
-
item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show)
|
|
131
|
+
item.show = ((_c = colStateValue[item.dataIndex]) === null || _c === void 0 ? void 0 : _c.show) !== false;
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
var leftSortItem = [];
|
|
@@ -154,7 +154,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
154
154
|
return item.show !== false;
|
|
155
155
|
});
|
|
156
156
|
return {
|
|
157
|
-
indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length
|
|
157
|
+
indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localColumns.length),
|
|
158
158
|
checkAll: showLength.length === localColumns.length
|
|
159
159
|
};
|
|
160
160
|
}, [localColumns]);
|
|
@@ -222,7 +222,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
222
222
|
var resultColumns = localColumns.map(function (item) {
|
|
223
223
|
if (item.dataIndex === id) {
|
|
224
224
|
return Object.assign(Object.assign({}, item), {
|
|
225
|
-
show: item.show === false
|
|
225
|
+
show: item.show === false
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
|
|
@@ -251,7 +251,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
251
251
|
var onCheckAllChange = function onCheckAllChange() {
|
|
252
252
|
var resultColumns = localColumns.map(function (item) {
|
|
253
253
|
return Object.assign(Object.assign({}, item), {
|
|
254
|
-
show: isCheckAll.checkAll
|
|
254
|
+
show: !isCheckAll.checkAll
|
|
255
255
|
});
|
|
256
256
|
});
|
|
257
257
|
setLocalColumns(resultColumns);
|
|
@@ -268,15 +268,15 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
268
268
|
obj[item.dataIndex] = {};
|
|
269
269
|
|
|
270
270
|
if (![undefined, null].includes(item.order)) {
|
|
271
|
-
obj[item.dataIndex]
|
|
271
|
+
obj[item.dataIndex].order = item.order;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
if (![undefined, null].includes(item.show)) {
|
|
275
|
-
obj[item.dataIndex]
|
|
275
|
+
obj[item.dataIndex].show = item.show;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
if (![undefined, null].includes(item.fixed)) {
|
|
279
|
-
obj[item.dataIndex]
|
|
279
|
+
obj[item.dataIndex].fixed = item.fixed;
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
282
|
return obj;
|
|
@@ -284,9 +284,9 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
284
284
|
};
|
|
285
285
|
});
|
|
286
286
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
287
|
-
className:
|
|
287
|
+
className: "lm_custom_option_columns"
|
|
288
288
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
289
|
-
className:
|
|
289
|
+
className: "global_search"
|
|
290
290
|
}, /*#__PURE__*/_react.default.createElement(Search, {
|
|
291
291
|
value: searchIngValue,
|
|
292
292
|
onChange: function onChange(e) {
|
|
@@ -294,7 +294,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
294
294
|
},
|
|
295
295
|
onSearch: handleSearch
|
|
296
296
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
297
|
-
className:
|
|
297
|
+
className: "global_setting"
|
|
298
298
|
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
299
299
|
indeterminate: isCheckAll.indeterminate,
|
|
300
300
|
onChange: onCheckAllChange,
|
|
@@ -304,7 +304,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
304
304
|
return setLocalColumns(columns);
|
|
305
305
|
}
|
|
306
306
|
}, "\u91CD\u7F6E")), !!((_a = sortMenu.leftSortItem) === null || _a === void 0 ? void 0 : _a.length) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
|
|
307
|
-
className:
|
|
307
|
+
className: "fixed_title"
|
|
308
308
|
}, "\u56FA\u5B9A\u5728\u5DE6\u4FA7"), /*#__PURE__*/_react.default.createElement(_core.DndContext, {
|
|
309
309
|
sensors: leftSensors,
|
|
310
310
|
collisionDetection: _core.closestCenter,
|
|
@@ -323,7 +323,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
323
323
|
id: item.dataIndex
|
|
324
324
|
});
|
|
325
325
|
})))), !!((_c = sortMenu.items) === null || _c === void 0 ? void 0 : _c.length) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
|
|
326
|
-
className:
|
|
326
|
+
className: "fixed_title"
|
|
327
327
|
}, " \u4E0D\u56FA\u5B9A "), /*#__PURE__*/_react.default.createElement(_core.DndContext, {
|
|
328
328
|
sensors: sensors,
|
|
329
329
|
collisionDetection: _core.closestCenter,
|
|
@@ -342,7 +342,7 @@ var ColumnsSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
342
342
|
id: item.dataIndex
|
|
343
343
|
});
|
|
344
344
|
})))), !!((_f = sortMenu.rigthSortItem) === null || _f === void 0 ? void 0 : _f.length) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("label", {
|
|
345
|
-
className:
|
|
345
|
+
className: "fixed_title"
|
|
346
346
|
}, "\u56FA\u5B9A\u5728\u53F3\u4FA7"), /*#__PURE__*/_react.default.createElement(_core.DndContext, {
|
|
347
347
|
sensors: rightSensors,
|
|
348
348
|
collisionDetection: _core.closestCenter,
|
|
@@ -46,16 +46,16 @@ var SortItem = function SortItem(props) {
|
|
|
46
46
|
};
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
48
48
|
ref: setNodeRef,
|
|
49
|
-
className:
|
|
49
|
+
className: "lm_custom_item",
|
|
50
50
|
style: style
|
|
51
51
|
}, attributes), /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
52
|
-
checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show)
|
|
52
|
+
checked: ((_a = props.item) === null || _a === void 0 ? void 0 : _a.show) !== false,
|
|
53
53
|
onChange: function onChange(e) {
|
|
54
54
|
return props.toggleShow(e.target.checked, props.id);
|
|
55
55
|
},
|
|
56
56
|
className: "filter_item-content"
|
|
57
57
|
}, (_b = props.item) === null || _b === void 0 ? void 0 : _b.title), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icons.HolderOutlined, Object.assign({}, listeners, {
|
|
58
|
-
className:
|
|
58
|
+
className: "lm_custom_icon sort_item"
|
|
59
59
|
}))));
|
|
60
60
|
};
|
|
61
61
|
/** order show fixed */
|
|
@@ -109,7 +109,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
109
109
|
return item.show !== false;
|
|
110
110
|
});
|
|
111
111
|
return {
|
|
112
|
-
indeterminate: (showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length
|
|
112
|
+
indeterminate: !!((showLength === null || showLength === void 0 ? void 0 : showLength.length) && showLength.length !== localFilter.length),
|
|
113
113
|
checkAll: showLength.length === localFilter.length
|
|
114
114
|
};
|
|
115
115
|
}, [localFilter]);
|
|
@@ -155,7 +155,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
155
155
|
var resultColumns = localFilter.map(function (item) {
|
|
156
156
|
if (item.field === id) {
|
|
157
157
|
return Object.assign(Object.assign({}, item), {
|
|
158
|
-
show: item.show === false
|
|
158
|
+
show: item.show === false
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -169,7 +169,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
169
169
|
var onCheckAllChange = function onCheckAllChange() {
|
|
170
170
|
var resultColumns = localFilter.map(function (item) {
|
|
171
171
|
return Object.assign(Object.assign({}, item), {
|
|
172
|
-
show: isCheckAll.checkAll
|
|
172
|
+
show: !isCheckAll.checkAll
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
175
|
console.log(resultColumns, 'resultColumns');
|
|
@@ -187,11 +187,11 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
187
187
|
obj[item.field] = {};
|
|
188
188
|
|
|
189
189
|
if (![undefined, null].includes(item.order)) {
|
|
190
|
-
obj[item.field]
|
|
190
|
+
obj[item.field].order = item.order;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
if (![undefined, null].includes(item.show)) {
|
|
194
|
-
obj[item.field]
|
|
194
|
+
obj[item.field].show = item.show;
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
return obj;
|
|
@@ -199,9 +199,9 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
199
199
|
};
|
|
200
200
|
});
|
|
201
201
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
202
|
-
className:
|
|
202
|
+
className: "lm_custom_option_columns"
|
|
203
203
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
204
|
-
className:
|
|
204
|
+
className: "global_search"
|
|
205
205
|
}, /*#__PURE__*/_react.default.createElement(Search, {
|
|
206
206
|
value: searchIngValue,
|
|
207
207
|
onChange: function onChange(e) {
|
|
@@ -209,7 +209,7 @@ var FilterSort = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
209
209
|
},
|
|
210
210
|
onSearch: handleSearch
|
|
211
211
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
-
className:
|
|
212
|
+
className: "global_setting"
|
|
213
213
|
}, /*#__PURE__*/_react.default.createElement(_linkmoreDesign.Checkbox, {
|
|
214
214
|
indeterminate: isCheckAll.indeterminate,
|
|
215
215
|
onChange: onCheckAllChange,
|
|
@@ -9,6 +9,7 @@ export interface ICustomTableOptionProps {
|
|
|
9
9
|
columns?: TableProps<any>['columns'];
|
|
10
10
|
card?: TableProps<any>['columns'];
|
|
11
11
|
onSave?: (data: any) => void;
|
|
12
|
+
recommendNumObj?: Record<string, number>;
|
|
12
13
|
}
|
|
13
14
|
declare const LMCustomTableOption: React.FC<ICustomTableOptionProps>;
|
|
14
15
|
export default LMCustomTableOption;
|