linkmore-design 1.1.13-alpha.0 → 1.1.13-alpha.10

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.
Files changed (254) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/Button/demos/ghost.d.ts +2 -0
  3. package/dist/ConfigProvider/context.d.ts +1 -0
  4. package/dist/Descriptions/Cell.d.ts +1 -0
  5. package/dist/Descriptions/Item.d.ts +1 -0
  6. package/dist/Descriptions/index.d.ts +1 -1
  7. package/dist/Form/FormWrapper.d.ts +3 -0
  8. package/dist/Form/WrapperItem.d.ts +4 -0
  9. package/dist/Form/demos/disabled.d.ts +2 -0
  10. package/dist/Form/demos/responsive.d.ts +0 -1
  11. package/dist/Form/index.d.ts +2 -0
  12. package/dist/Form/interface.d.ts +12 -0
  13. package/dist/IconFont/demos/ConfigProvider.d.ts +2 -0
  14. package/dist/IconFont/index.d.ts +1 -2
  15. package/dist/LmDrag/LmDrag.d.ts +4 -0
  16. package/dist/LmDrag/components/DndContainer.d.ts +3 -0
  17. package/dist/LmDrag/components/sortableBox.d.ts +5 -0
  18. package/dist/LmDrag/components/sortableItem.d.ts +7 -0
  19. package/dist/LmDrag/demos/basic.d.ts +2 -0
  20. package/dist/LmDrag/index.d.ts +10 -0
  21. package/dist/LmDrag/style/index.d.ts +1 -0
  22. package/dist/LmDrag/style/variables.d.ts +1 -0
  23. package/dist/LmDrag/wrapper/Root.d.ts +3 -0
  24. package/dist/LmEditTable/EditTable.d.ts +16 -3
  25. package/dist/LmEditTable/components/QuickOpetate.d.ts +12 -0
  26. package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +13 -0
  27. package/dist/LmEditTable/components/index.d.ts +3 -1
  28. package/dist/LmFilter/LmFilter.d.ts +2 -6
  29. package/dist/LmTable/demos/summuy.d.ts +2 -0
  30. package/dist/LmTable/expression.d.ts +1 -0
  31. package/dist/LmTable/hooks/useGroupDataSource.d.ts +7 -0
  32. package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  33. package/dist/LmUpload/fns/index.d.ts +1 -0
  34. package/dist/QuickMenu/demos/useInDraw.d.ts +2 -0
  35. package/dist/QuickMenu/index.d.ts +3 -1
  36. package/dist/Select/index.d.ts +3 -0
  37. package/dist/TreeSelect/demos/treedata.d.ts +3 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.umd.js +2660 -1507
  40. package/dist/index.umd.min.js +17 -17
  41. package/dist/variables.css +263 -120
  42. package/es/Button/index.js +4 -3
  43. package/es/Button/style/index.css +28 -25
  44. package/es/Button/style/variables.css +28 -25
  45. package/es/Cascader/index.js +31 -3
  46. package/es/Cascader/style/index.css +1 -0
  47. package/es/Cascader/style/variables.css +1 -0
  48. package/es/ConfigProvider/context.d.ts +1 -0
  49. package/es/ConfigProvider/index.js +5 -3
  50. package/es/Descriptions/Cell.d.ts +1 -0
  51. package/es/Descriptions/Cell.js +5 -2
  52. package/es/Descriptions/Item.d.ts +1 -0
  53. package/es/Descriptions/Row.js +6 -1
  54. package/es/Descriptions/index.d.ts +1 -1
  55. package/es/Descriptions/index.js +3 -3
  56. package/es/Descriptions/style/index.css +3 -0
  57. package/es/Descriptions/style/variables.css +3 -0
  58. package/es/Form/Form.js +13 -4
  59. package/es/Form/FormItem/ItemHolder.js +1 -10
  60. package/es/Form/FormWrapper.d.ts +3 -0
  61. package/es/Form/FormWrapper.js +22 -0
  62. package/es/Form/WrapperItem.d.ts +4 -0
  63. package/es/Form/WrapperItem.js +217 -0
  64. package/es/Form/container.js +1 -13
  65. package/es/Form/images/icon_collapse.svg +1 -0
  66. package/es/Form/index.d.ts +2 -0
  67. package/es/Form/index.js +2 -0
  68. package/es/Form/interface.d.ts +12 -0
  69. package/es/Form/style/index.css +34 -41
  70. package/es/Form/style/variables.css +34 -41
  71. package/es/IconFont/index.d.ts +1 -2
  72. package/es/IconFont/index.js +18 -4
  73. package/es/ImageViewer/components/Operate.js +4 -7
  74. package/es/Input/index.js +47 -10
  75. package/es/InputNumber/index.js +23 -11
  76. package/es/InputNumber/style/index.css +7 -0
  77. package/es/InputNumber/style/variables.css +7 -0
  78. package/es/LmDrag/LmDrag.d.ts +4 -0
  79. package/es/LmDrag/LmDrag.js +30 -0
  80. package/es/LmDrag/components/DndContainer.d.ts +3 -0
  81. package/es/LmDrag/components/DndContainer.js +121 -0
  82. package/es/LmDrag/components/sortableBox.d.ts +5 -0
  83. package/es/LmDrag/components/sortableBox.js +23 -0
  84. package/es/LmDrag/components/sortableItem.d.ts +7 -0
  85. package/es/LmDrag/components/sortableItem.js +41 -0
  86. package/es/LmDrag/index.d.ts +10 -0
  87. package/es/LmDrag/index.js +3 -0
  88. package/es/LmDrag/style/index.css +0 -0
  89. package/es/LmDrag/style/index.d.ts +1 -0
  90. package/es/LmDrag/style/index.js +1 -0
  91. package/es/LmDrag/style/variables.css +0 -0
  92. package/es/LmDrag/style/variables.d.ts +1 -0
  93. package/es/LmDrag/style/variables.js +1 -0
  94. package/es/LmDrag/wrapper/Root.d.ts +3 -0
  95. package/es/LmDrag/wrapper/Root.js +12 -0
  96. package/es/LmEditTable/EditTable.d.ts +16 -3
  97. package/es/LmEditTable/EditTable.js +276 -235
  98. package/es/LmEditTable/components/QuickOpetate.d.ts +12 -0
  99. package/es/LmEditTable/components/QuickOpetate.js +82 -0
  100. package/es/LmEditTable/components/bottomOpetateComponent.d.ts +13 -0
  101. package/es/LmEditTable/components/bottomOpetateComponent.js +23 -0
  102. package/es/LmEditTable/components/index.d.ts +3 -1
  103. package/es/LmEditTable/components/index.js +3 -1
  104. package/es/LmEditTable/sortableItemCol.js +40 -10
  105. package/es/LmEditTable/style/index.css +20 -0
  106. package/es/LmEditTable/style/variables.css +20 -0
  107. package/es/LmEditTable/util.js +51 -15
  108. package/es/LmFilter/LmFilter.js +6 -6
  109. package/es/LmFilter/components/CheckboxFilter.js +9 -4
  110. package/es/LmFilter/components/DropdownFIlter.js +186 -111
  111. package/es/LmFilter/components/SelectFilter.js +4 -3
  112. package/es/LmFilter/filterFns/index.js +4 -6
  113. package/es/LmFilter/index.js +0 -3
  114. package/es/LmFilter/style/index.css +82 -54
  115. package/es/LmFilter/style/variables.css +82 -54
  116. package/es/LmFilter/utils.js +6 -6
  117. package/es/LmSelect/style/index.css +1 -0
  118. package/es/LmSelect/style/variables.css +1 -0
  119. package/es/LmTable/Table.js +24 -15
  120. package/es/LmTable/expression.d.ts +1 -0
  121. package/es/LmTable/expression.js +31 -0
  122. package/es/LmTable/hooks/useGroupDataSource.js +50 -0
  123. package/es/LmTable/style/index.css +39 -0
  124. package/es/LmTable/style/variables.css +39 -0
  125. package/es/LmUpload/LmUpload.js +6 -3
  126. package/es/LmUpload/UploadList/ItemPicture.js +2 -1
  127. package/es/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  128. package/es/LmUpload/UploadList/ItemPictureCard.js +15 -5
  129. package/es/LmUpload/UploadList/ItemText.js +7 -2
  130. package/es/LmUpload/UploadList/index.js +53 -2
  131. package/es/LmUpload/body/UploadCore.js +4 -1
  132. package/es/LmUpload/fns/index.d.ts +1 -0
  133. package/es/LmUpload/fns/index.js +27 -6
  134. package/es/LmUpload/style/index.css +17 -0
  135. package/es/LmUpload/style/variables.css +17 -0
  136. package/es/QuickMenu/index.d.ts +3 -1
  137. package/es/QuickMenu/index.js +22 -19
  138. package/es/Select/index.d.ts +3 -0
  139. package/es/Select/index.js +44 -7
  140. package/es/Select/style/index.css +28 -0
  141. package/es/Select/style/variables.css +28 -0
  142. package/es/TreeSelect/index.js +17 -2
  143. package/es/TreeSelect/style/index.css +3 -0
  144. package/es/TreeSelect/style/variables.css +3 -0
  145. package/es/index.d.ts +2 -0
  146. package/es/index.js +2 -1
  147. package/es/styles/variables.css +263 -120
  148. package/lib/Button/index.js +4 -3
  149. package/lib/Button/style/index.css +28 -25
  150. package/lib/Button/style/variables.css +28 -25
  151. package/lib/Cascader/index.js +35 -3
  152. package/lib/Cascader/style/index.css +1 -0
  153. package/lib/Cascader/style/variables.css +1 -0
  154. package/lib/ConfigProvider/context.d.ts +1 -0
  155. package/lib/ConfigProvider/index.js +5 -3
  156. package/lib/Descriptions/Cell.d.ts +1 -0
  157. package/lib/Descriptions/Cell.js +5 -2
  158. package/lib/Descriptions/Item.d.ts +1 -0
  159. package/lib/Descriptions/Row.js +6 -1
  160. package/lib/Descriptions/index.d.ts +1 -1
  161. package/lib/Descriptions/index.js +3 -3
  162. package/lib/Descriptions/style/index.css +3 -0
  163. package/lib/Descriptions/style/variables.css +3 -0
  164. package/lib/Form/Form.js +13 -4
  165. package/lib/Form/FormItem/ItemHolder.js +1 -10
  166. package/lib/Form/FormWrapper.d.ts +3 -0
  167. package/lib/Form/FormWrapper.js +34 -0
  168. package/lib/Form/WrapperItem.d.ts +4 -0
  169. package/lib/Form/WrapperItem.js +235 -0
  170. package/lib/Form/container.js +1 -13
  171. package/lib/Form/images/icon_collapse.svg +1 -0
  172. package/lib/Form/index.d.ts +2 -0
  173. package/lib/Form/index.js +3 -0
  174. package/lib/Form/interface.d.ts +12 -0
  175. package/lib/Form/style/index.css +34 -41
  176. package/lib/Form/style/variables.css +34 -41
  177. package/lib/IconFont/index.d.ts +1 -2
  178. package/lib/IconFont/index.js +25 -4
  179. package/lib/ImageViewer/components/Operate.js +4 -8
  180. package/lib/Input/index.js +52 -10
  181. package/lib/InputNumber/index.js +29 -11
  182. package/lib/InputNumber/style/index.css +7 -0
  183. package/lib/InputNumber/style/variables.css +7 -0
  184. package/lib/LmDrag/LmDrag.d.ts +4 -0
  185. package/lib/LmDrag/LmDrag.js +44 -0
  186. package/lib/LmDrag/components/DndContainer.d.ts +3 -0
  187. package/lib/LmDrag/components/DndContainer.js +138 -0
  188. package/lib/LmDrag/components/sortableBox.d.ts +5 -0
  189. package/lib/LmDrag/components/sortableBox.js +37 -0
  190. package/lib/LmDrag/components/sortableItem.d.ts +7 -0
  191. package/lib/LmDrag/components/sortableItem.js +54 -0
  192. package/lib/LmDrag/index.d.ts +10 -0
  193. package/lib/LmDrag/index.js +19 -0
  194. package/lib/LmDrag/style/index.css +0 -0
  195. package/lib/LmDrag/style/index.d.ts +1 -0
  196. package/lib/LmDrag/style/index.js +3 -0
  197. package/lib/LmDrag/style/variables.css +0 -0
  198. package/lib/LmDrag/style/variables.d.ts +1 -0
  199. package/lib/LmDrag/style/variables.js +3 -0
  200. package/lib/LmDrag/wrapper/Root.d.ts +3 -0
  201. package/lib/LmDrag/wrapper/Root.js +26 -0
  202. package/lib/LmEditTable/EditTable.d.ts +16 -3
  203. package/lib/LmEditTable/EditTable.js +272 -231
  204. package/lib/LmEditTable/components/QuickOpetate.d.ts +12 -0
  205. package/lib/LmEditTable/components/QuickOpetate.js +96 -0
  206. package/lib/LmEditTable/components/bottomOpetateComponent.d.ts +13 -0
  207. package/lib/LmEditTable/components/bottomOpetateComponent.js +34 -0
  208. package/lib/LmEditTable/components/index.d.ts +3 -1
  209. package/lib/LmEditTable/components/index.js +16 -0
  210. package/lib/LmEditTable/sortableItemCol.js +37 -8
  211. package/lib/LmEditTable/style/index.css +20 -0
  212. package/lib/LmEditTable/style/variables.css +20 -0
  213. package/lib/LmEditTable/util.js +50 -14
  214. package/lib/LmFilter/LmFilter.js +6 -6
  215. package/lib/LmFilter/components/CheckboxFilter.js +9 -4
  216. package/lib/LmFilter/components/DropdownFIlter.js +186 -111
  217. package/lib/LmFilter/components/SelectFilter.js +4 -3
  218. package/lib/LmFilter/filterFns/index.js +4 -6
  219. package/lib/LmFilter/index.js +0 -3
  220. package/lib/LmFilter/style/index.css +82 -54
  221. package/lib/LmFilter/style/variables.css +82 -54
  222. package/lib/LmFilter/utils.js +6 -6
  223. package/lib/LmSelect/style/index.css +1 -0
  224. package/lib/LmSelect/style/variables.css +1 -0
  225. package/lib/LmTable/Table.js +24 -15
  226. package/lib/LmTable/expression.d.ts +1 -0
  227. package/lib/LmTable/expression.js +41 -0
  228. package/lib/LmTable/hooks/useGroupDataSource.js +50 -0
  229. package/lib/LmTable/style/index.css +39 -0
  230. package/lib/LmTable/style/variables.css +39 -0
  231. package/lib/LmUpload/LmUpload.js +9 -3
  232. package/lib/LmUpload/UploadList/ItemPicture.js +2 -1
  233. package/lib/LmUpload/UploadList/ItemPictureCard.d.ts +2 -1
  234. package/lib/LmUpload/UploadList/ItemPictureCard.js +15 -5
  235. package/lib/LmUpload/UploadList/ItemText.js +7 -2
  236. package/lib/LmUpload/UploadList/index.js +54 -2
  237. package/lib/LmUpload/body/UploadCore.js +5 -1
  238. package/lib/LmUpload/fns/index.d.ts +1 -0
  239. package/lib/LmUpload/fns/index.js +27 -6
  240. package/lib/LmUpload/style/index.css +17 -0
  241. package/lib/LmUpload/style/variables.css +17 -0
  242. package/lib/QuickMenu/index.d.ts +3 -1
  243. package/lib/QuickMenu/index.js +21 -18
  244. package/lib/Select/index.d.ts +3 -0
  245. package/lib/Select/index.js +47 -7
  246. package/lib/Select/style/index.css +28 -0
  247. package/lib/Select/style/variables.css +28 -0
  248. package/lib/TreeSelect/index.js +21 -2
  249. package/lib/TreeSelect/style/index.css +3 -0
  250. package/lib/TreeSelect/style/variables.css +3 -0
  251. package/lib/index.d.ts +2 -0
  252. package/lib/index.js +15 -1
  253. package/lib/styles/variables.css +263 -120
  254. package/package.json +5 -1
@@ -1,8 +1,8 @@
1
1
  .lm_filter_wrapper .lm_filter_container .lm_filter {
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
- align-items: center;
5
4
  gap: 8px;
5
+ align-items: center;
6
6
  font-size: 12px;
7
7
  }
8
8
  .lm_filter_wrapper .lm_filter_container .lm_filter .lm_filter_custom {
@@ -13,14 +13,14 @@
13
13
  display: inline-flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- height: 32px;
17
- line-height: 1;
18
16
  min-width: 100px;
19
17
  max-width: 180px;
18
+ height: 32px;
19
+ padding: 0 8px;
20
+ color: var(--font2-color);
21
+ line-height: 1;
20
22
  border: 1px solid var(--color-15);
21
23
  border-radius: 2px;
22
- color: var(--font2-color);
23
- padding: 0 8px;
24
24
  cursor: pointer;
25
25
  transition: 0.3s;
26
26
  }
@@ -28,13 +28,13 @@
28
28
  height: 24px;
29
29
  }
30
30
  .lm_filter_wrapper .lm_filter_container .lm_filter .lm_filter_custom .lm_filter_custom_select .lm_filter_custom_select_label span {
31
- text-overflow: ellipsis;
32
- white-space: nowrap;
33
31
  overflow: hidden;
32
+ white-space: nowrap;
33
+ text-overflow: ellipsis;
34
34
  }
35
35
  .lm_filter_wrapper .lm_filter_container .lm_filter .lm_filter_custom .lm_filter_custom_select .lm_filter_custom_select_icon {
36
- font-size: 14px;
37
36
  color: var(--text-color);
37
+ font-size: 14px;
38
38
  transition: 0.3s;
39
39
  }
40
40
  .lm_filter_wrapper .lm_filter_container .lm_filter .lm_filter_custom .lm_filter_custom_select:hover {
@@ -63,16 +63,17 @@
63
63
  height: 24px;
64
64
  }
65
65
  .lm_filter_basic_item {
66
- font-size: 12px;
67
66
  display: inline-flex;
67
+ gap: 4px;
68
68
  align-items: center;
69
+ height: 32px;
70
+ padding: 0 8px;
71
+ font-size: 12px;
69
72
  line-height: 1;
73
+ vertical-align: middle;
70
74
  border-radius: 2px;
71
- padding: 0 8px;
72
- transition: 0.3s;
73
75
  cursor: pointer;
74
- height: 32px;
75
- gap: 4px;
76
+ transition: 0.3s;
76
77
  }
77
78
  .lm_filter_basic_item.small {
78
79
  height: 24px;
@@ -82,21 +83,34 @@
82
83
  .lm_filter_basic_item.active {
83
84
  background-color: var(--color-4);
84
85
  }
86
+ .lm_filter_basic_item .filter_item_label {
87
+ flex: 0 0 auto;
88
+ }
85
89
  .lm_filter_basic_item .filter_item_value {
86
90
  display: inline-flex;
87
- align-items: center;
88
91
  gap: 4px;
92
+ align-items: center;
93
+ max-width: 552px;
94
+ overflow: hidden;
89
95
  color: var(--text-color);
90
96
  transition: 0.3s;
91
97
  }
98
+ .lm_filter_basic_item .filter_item_value span {
99
+ overflow: hidden;
100
+ white-space: nowrap;
101
+ text-overflow: ellipsis;
102
+ }
92
103
  .lm_filter_basic_item .filter_item_icon {
93
- font-size: 14px;
94
104
  color: var(--text-color);
105
+ font-size: 14px;
95
106
  transition: 0.3s;
96
107
  }
97
108
  .lm_filter_basic_item .filter_item_icon.addon_before {
98
109
  color: var(--font-color);
99
110
  }
111
+ .lm_filter_basic_item .filter_item_icon .icon_clear {
112
+ display: none;
113
+ }
100
114
  .lm_filter_basic_item.expand .filter_item_icon.addon_after {
101
115
  transform: rotateX(180deg);
102
116
  }
@@ -110,23 +124,29 @@
110
124
  .lm_filter_basic_item.active.lm_filter_complex_item .filter_item_label {
111
125
  color: var(--primary-color);
112
126
  }
127
+ .lm_filter_basic_item.active:hover .icon_down {
128
+ display: none;
129
+ }
130
+ .lm_filter_basic_item.active:hover .icon_clear {
131
+ display: inline-block;
132
+ }
113
133
  .ant-dropdown.filter_dropdown_container_cascader > div {
114
134
  transform: translateY(-4px);
115
135
  }
116
136
  .ant-dropdown.filter_dropdown_container_date .ant-picker {
117
- visibility: hidden;
118
137
  transform: translateY(-36px);
138
+ visibility: hidden;
119
139
  }
120
140
  .filter_dropdown {
121
141
  display: flex;
122
142
  flex-flow: column;
123
- box-shadow: 0 2px 6px var(--box-shadow-color);
124
143
  background-color: #fff;
144
+ box-shadow: 0 2px 6px var(--box-shadow-color);
125
145
  }
126
146
  .filter_dropdown .filter_header {
127
147
  min-height: 40px;
128
- border-bottom: 1px solid #eee;
129
148
  padding: 8px;
149
+ border-bottom: 1px solid #eee;
130
150
  }
131
151
  .filter_dropdown .filter_header .filter_header_operate {
132
152
  display: flex;
@@ -138,13 +158,13 @@
138
158
  align-items: center;
139
159
  }
140
160
  .filter_dropdown .filter_header .filter_header_operate .filter_reset {
141
- font-size: 12px;
142
161
  color: var(--primary-color);
162
+ font-size: 12px;
143
163
  cursor: pointer;
144
164
  }
145
165
  .filter_dropdown .filter_header .filter_header_operate .filter_tip {
146
- font-size: 12px;
147
166
  color: var(--text-color);
167
+ font-size: 12px;
148
168
  }
149
169
  .filter_dropdown .filter_header .ant-input-group {
150
170
  line-height: 1;
@@ -165,32 +185,40 @@
165
185
  }
166
186
  .filter_dropdown .filter_body .filter_item {
167
187
  display: flex;
188
+ gap: 8px;
168
189
  align-items: center;
169
190
  justify-content: space-between;
170
- font-size: 12px;
171
- height: 32px;
172
191
  min-width: 120px;
192
+ height: 32px;
173
193
  padding: 0 8px;
174
- transition: 0.3s;
194
+ font-size: 12px;
175
195
  white-space: nowrap;
176
196
  cursor: pointer;
177
- gap: 8px;
197
+ transition: 0.3s;
178
198
  }
179
199
  .filter_dropdown .filter_body .filter_item.last_item {
180
200
  border-top: 1px solid var(--line-color);
181
201
  }
182
202
  .filter_dropdown .filter_body .filter_item .filter_item_content {
183
203
  flex: auto;
204
+ overflow: hidden;
205
+ white-space: nowrap;
206
+ text-overflow: ellipsis;
207
+ }
208
+ .filter_dropdown .filter_body .filter_item .filter_item_content.lm-checkbox > span:last-child {
209
+ max-width: none;
210
+ overflow: hidden;
211
+ text-overflow: ellipsis;
184
212
  }
185
213
  .filter_dropdown .filter_body .filter_item .filter_item_operate {
186
214
  display: inline-flex;
187
- align-items: center;
188
215
  gap: 4px;
216
+ align-items: center;
189
217
  }
190
218
  .filter_dropdown .filter_body .filter_item .filter_item_operate .icon_hover {
191
219
  font-size: 16px;
192
- transition: 0.3s;
193
220
  opacity: 0;
221
+ transition: 0.3s;
194
222
  }
195
223
  .filter_dropdown .filter_body .filter_item .filter_item_operate .icon_hover:hover {
196
224
  color: var(--primary-color);
@@ -212,15 +240,15 @@
212
240
  display: flex;
213
241
  align-items: center;
214
242
  justify-content: space-between;
215
- font-size: 12px;
216
243
  min-height: 32px;
217
244
  padding: 6px 8px;
218
- border-top: 1px solid #eee;
245
+ font-size: 12px;
219
246
  letter-spacing: 1px;
247
+ border-top: 1px solid #eee;
220
248
  }
221
249
  .filter_dropdown .filter_footer button {
222
- font-size: 12px;
223
250
  padding: 0 8px;
251
+ font-size: 12px;
224
252
  }
225
253
  .filter_dropdown .filter_footer .footer_save {
226
254
  color: var(--primary-color);
@@ -238,14 +266,14 @@
238
266
  .filter_dropdown .filter_empty {
239
267
  display: flex;
240
268
  flex-flow: column;
269
+ gap: 4px;
241
270
  align-items: center;
242
271
  justify-content: center;
243
- font-size: 12px;
244
272
  min-height: 40px;
245
- color: #666;
246
- padding: 16px 8px;
247
273
  margin: auto;
248
- gap: 4px;
274
+ padding: 16px 8px;
275
+ color: #666;
276
+ font-size: 12px;
249
277
  }
250
278
  .filter_dropdown .filter_empty .filter_empty_text {
251
279
  display: inline-flex;
@@ -256,8 +284,8 @@
256
284
  }
257
285
  .filter_dropdown .ant-checkbox-wrapper {
258
286
  flex: 1;
259
- font-size: 12px;
260
287
  align-items: center;
288
+ font-size: 12px;
261
289
  }
262
290
  .filter_dropdown .ant-checkbox-wrapper .ant-checkbox {
263
291
  top: initial;
@@ -293,18 +321,18 @@
293
321
  padding: 0 0 8px;
294
322
  }
295
323
  .ant-drawer.lm_filter_drawer .filter_drawer_group_add .ant-btn {
296
- font-size: 12px;
297
324
  max-width: initial;
325
+ font-size: 12px;
298
326
  }
299
327
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item {
300
328
  margin-bottom: var(--gap);
301
329
  }
302
330
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box {
331
+ padding: calc(var(--gap) * 2);
303
332
  line-height: 1;
333
+ background: var(--background-color);
304
334
  border: 1px solid transparent;
305
335
  border-radius: 2px;
306
- background: var(--background-color);
307
- padding: calc(var(--gap) * 2);
308
336
  cursor: pointer;
309
337
  transition: 0.3s;
310
338
  }
@@ -314,12 +342,12 @@
314
342
  justify-content: space-between;
315
343
  }
316
344
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box .item_header .item_header_title {
317
- font-size: 12px;
318
345
  font-weight: 500;
346
+ font-size: 12px;
319
347
  }
320
348
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box .item_header .item_header_icon {
349
+ color: #8c8c8c;
321
350
  font-size: 16px;
322
- color: #8C8C8C;
323
351
  transition: 0.3s;
324
352
  }
325
353
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box .item_header .item_header_icon.icon_plus {
@@ -335,9 +363,9 @@
335
363
  padding-top: 12px;
336
364
  }
337
365
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box .item_tags .ant-tag {
366
+ margin: 0;
338
367
  color: var(--font-color);
339
368
  background-color: var(--background-color);
340
- margin: 0;
341
369
  }
342
370
  .ant-drawer.lm_filter_drawer .filter_drawer_group_list .filter_drawer_group_item .item_box .item_tags .ant-tag.add_tags {
343
371
  background: transparent;
@@ -357,8 +385,8 @@
357
385
  margin-bottom: 24px;
358
386
  }
359
387
  .ant-drawer.lm_filter_drawer .complex_filter_body .list_group .list_group_title {
360
- font-size: 14px;
361
388
  font-weight: 500;
389
+ font-size: 14px;
362
390
  line-height: 1.25;
363
391
  }
364
392
  .ant-drawer.lm_filter_drawer .complex_filter_body .list_group .list_group_search {
@@ -368,14 +396,14 @@
368
396
  display: inline-flex;
369
397
  align-items: center;
370
398
  justify-content: center;
371
- font-size: 12px;
372
399
  height: 24px;
373
- border-radius: 2px;
400
+ padding: 0 8px;
374
401
  color: var(--font-color);
402
+ font-size: 12px;
375
403
  background-color: var(--stripe-color);
376
- padding: 0 8px;
377
- transition: 0.3s;
404
+ border-radius: 2px;
378
405
  cursor: pointer;
406
+ transition: 0.3s;
379
407
  }
380
408
  .ant-drawer.lm_det_drawer .checkbox_tag:hover,
381
409
  .ant-drawer.lm_det_drawer .checkbox_tag.active {
@@ -401,25 +429,25 @@
401
429
  top: 0;
402
430
  }
403
431
  .ant-drawer.lm_det_drawer .ant-select {
404
- font-size: 12px;
405
432
  width: 100%;
433
+ font-size: 12px;
406
434
  }
407
435
  .ant-drawer.lm_det_drawer .custom_form {
408
436
  display: flex;
409
437
  flex-flow: column;
410
- height: 100%;
411
438
  gap: 24px;
439
+ height: 100%;
412
440
  }
413
441
  .ant-drawer.lm_det_drawer .custom_form .custom_label {
414
- font-size: 14px;
415
- font-weight: 500;
416
442
  margin-bottom: 16px;
417
443
  color: var(--font-color);
444
+ font-weight: 500;
445
+ font-size: 14px;
418
446
  }
419
447
  .ant-drawer.lm_det_drawer .custom_form .custom_full {
420
448
  display: flex;
421
- flex-flow: column;
422
449
  flex: 1;
450
+ flex-flow: column;
423
451
  }
424
452
  .lm_filter_dropdown_picker {
425
453
  padding: 0 !important;
@@ -428,17 +456,17 @@
428
456
  display: flex;
429
457
  }
430
458
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_aside {
459
+ padding: 6px 0;
431
460
  font-size: 12px;
432
461
  border-right: 1px solid var(--background-color-hover);
433
- padding: 6px 0;
434
462
  }
435
463
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_aside .filter_picker_aside_item {
436
464
  display: flex;
437
465
  align-items: center;
438
466
  height: 32px;
439
467
  padding: 0 8px;
440
- transition: 0.3s;
441
468
  cursor: pointer;
469
+ transition: 0.3s;
442
470
  }
443
471
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_aside .filter_picker_aside_item:hover,
444
472
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_aside .filter_picker_aside_item.active {
@@ -449,13 +477,13 @@
449
477
  align-items: center;
450
478
  justify-content: space-between;
451
479
  min-height: 40px;
452
- line-height: 1;
453
480
  padding: 0 16px;
481
+ line-height: 1;
454
482
  border-bottom: 1px solid var(--background-color-hover);
455
483
  }
456
484
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_main .filter_picker_header .ant-radio-button-wrapper {
457
- font-size: 12px;
458
485
  color: var(--font2-color);
486
+ font-size: 12px;
459
487
  }
460
488
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_main .filter_picker_header .ant-radio-button-wrapper:hover,
461
489
  .lm_filter_dropdown_picker .filter_picker_box .filter_picker_main .filter_picker_header .ant-radio-button-wrapper.ant-radio-button-wrapper-checked {
@@ -119,7 +119,7 @@ function getFlatItem(getItem, checkedValue) {
119
119
  filterValues.forEach(function (item) {
120
120
  if (item.length === 1) {
121
121
  var findItem = originArr === null || originArr === void 0 ? void 0 : originArr.find(function (v) {
122
- return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
122
+ return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
123
123
  });
124
124
  getChildren(findItem);
125
125
  }
@@ -128,11 +128,11 @@ function getFlatItem(getItem, checkedValue) {
128
128
  var _originArr$find;
129
129
 
130
130
  var findArr1 = originArr === null || originArr === void 0 ? void 0 : (_originArr$find = originArr.find(function (v) {
131
- return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[0];
131
+ return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[0]);
132
132
  })) === null || _originArr$find === void 0 ? void 0 : _originArr$find[fieldNames.children];
133
133
 
134
134
  var _findItem = findArr1 === null || findArr1 === void 0 ? void 0 : findArr1.find(function (v) {
135
- return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
135
+ return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
136
136
  });
137
137
 
138
138
  getChildren(_findItem);
@@ -142,15 +142,15 @@ function getFlatItem(getItem, checkedValue) {
142
142
  var _originArr$find2, _findArr$find;
143
143
 
144
144
  var _findArr = originArr === null || originArr === void 0 ? void 0 : (_originArr$find2 = originArr.find(function (v) {
145
- return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[0];
145
+ return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[0]);
146
146
  })) === null || _originArr$find2 === void 0 ? void 0 : _originArr$find2[fieldNames.children];
147
147
 
148
148
  var findArr2 = _findArr === null || _findArr === void 0 ? void 0 : (_findArr$find = _findArr.find(function (v) {
149
- return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[1];
149
+ return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[1]);
150
150
  })) === null || _findArr$find === void 0 ? void 0 : _findArr$find[fieldNames.children];
151
151
 
152
152
  var _findItem2 = findArr2 === null || findArr2 === void 0 ? void 0 : findArr2.find(function (v) {
153
- return (v === null || v === void 0 ? void 0 : v[fieldNames.value]) === item[item.length - 1];
153
+ return toStringIsEqual(v === null || v === void 0 ? void 0 : v[fieldNames.value], item[item.length - 1]);
154
154
  });
155
155
 
156
156
  nArr.push(_findItem2);
@@ -512,6 +512,7 @@ p {
512
512
  }
513
513
  .lm_select.ant-select {
514
514
  font-size: 12px;
515
+ width: 100%;
515
516
  }
516
517
  .lm_select .ant-select-selection-overflow-item-rest .ant-select-selection-item {
517
518
  color: var(--primary-color);
@@ -1,5 +1,6 @@
1
1
  .lm_select.ant-select {
2
2
  font-size: 12px;
3
+ width: 100%;
3
4
  }
4
5
  .lm_select .ant-select-selection-overflow-item-rest .ant-select-selection-item {
5
6
  color: var(--primary-color);
@@ -61,6 +61,8 @@ var _resetConfig = _interopRequireDefault(require("./resetConfig"));
61
61
 
62
62
  var _virTual = require("./virTual");
63
63
 
64
+ var _useGroupDataSource3 = _interopRequireDefault(require("./hooks/useGroupDataSource"));
65
+
64
66
  var _excluded = ["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", "groupRowKeys", "groupColKeys", "emptyProps"],
65
67
  _excluded2 = ["className", "style"],
66
68
  _excluded3 = ["onResize", "width", "onResizeStop"];
@@ -197,15 +199,16 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
197
199
  }, [customizeColumns]);
198
200
  /** 行分组 */
199
201
 
200
- var groupDataSource = (0, _react.useMemo)(function () {
201
- if (!(groupRowKeys === null || groupRowKeys === void 0 ? void 0 : groupRowKeys.length)) {
202
- return customizeDataSource;
203
- }
204
-
205
- return (0, _util.transformWithRowGroup)(customizeDataSource, groupRowKeys);
206
- }, [customizeDataSource, groupRowKeys]);
202
+ var _useGroupDataSource = (0, _useGroupDataSource3.default)({
203
+ groupRowKeys: groupRowKeys,
204
+ customizeDataSource: customizeDataSource,
205
+ columnsRef: columnsRef
206
+ }),
207
+ _useGroupDataSource2 = (0, _slicedToArray2.default)(_useGroupDataSource, 1),
208
+ groupDataSource = _useGroupDataSource2[0];
207
209
  /** 列分组 */
208
210
 
211
+
209
212
  var _useMemo = (0, _react.useMemo)(function () {
210
213
  if (!(groupColKeys === null || groupColKeys === void 0 ? void 0 : groupColKeys.length)) {
211
214
  return {
@@ -1083,13 +1086,19 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1083
1086
  var selectedRows = useSelectedRows.selectedRows;
1084
1087
 
1085
1088
  if (tableRowType === 'select' || tableRowType === 'default' && selectedRows.length) {
1086
- var selectIndex = selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.findIndex(function (v) {
1087
- return (0, _lodash.isObject)(v) ? v[rowKey] === record[rowKey] : v === record[rowKey];
1088
- });
1089
- selectIndex >= 0 ? selectedRows.splice(selectIndex, 1) : selectedRows.push((0, _lodash.isObject)(selectedRows[0]) || !selectedRows.length ? record : record[rowKey]);
1090
- setSelectedRows({
1091
- selectedRows: (0, _lodash.cloneDeep)(selectedRows)
1092
- }); // rowClick?.(selectedRows)
1089
+ if ((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.type) === 'radio') {
1090
+ setSelectedRows({
1091
+ selectedRows: [(0, _lodash.isObject)(selectedRows[0]) || !selectedRows.length ? record : record[rowKey]]
1092
+ });
1093
+ } else {
1094
+ var selectIndex = selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.findIndex(function (v) {
1095
+ return (0, _lodash.isObject)(v) ? v[rowKey] === record[rowKey] : v === record[rowKey];
1096
+ });
1097
+ selectIndex >= 0 ? selectedRows.splice(selectIndex, 1) : selectedRows.push((0, _lodash.isObject)(selectedRows[0]) || !selectedRows.length ? record : record[rowKey]);
1098
+ setSelectedRows({
1099
+ selectedRows: (0, _lodash.cloneDeep)(selectedRows)
1100
+ });
1101
+ }
1093
1102
  }
1094
1103
  } else {
1095
1104
  rowClick === null || rowClick === void 0 ? void 0 : rowClick(record);
@@ -1173,7 +1182,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
1173
1182
  }); // rowClick?.(reulstSelect)
1174
1183
  } : undefined,
1175
1184
  onSelect: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) ? function (record, selected) {
1176
- var reulstSelect = selected ? (0, _lodash.uniqBy)([].concat((0, _toConsumableArray2.default)(rowSelection.selectedRows), [record]), rowKey) : rowSelection.selectedRows.filter(function (item) {
1185
+ var reulstSelect = rowSelection.type === 'radio' ? [record] : selected ? (0, _lodash.uniqBy)([].concat((0, _toConsumableArray2.default)(rowSelection.selectedRows), [record]), rowKey) : rowSelection.selectedRows.filter(function (item) {
1177
1186
  return item[rowKey] !== record[rowKey];
1178
1187
  });
1179
1188
  setSelectedRows({
@@ -0,0 +1 @@
1
+ export default function calcExpression(item: any, needCalcKeys: string[]): void;
@@ -0,0 +1,31 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ // 分组求和计算
3
+ export default function calcExpression(item, needCalcKeys) {
4
+ var _a;
5
+
6
+ if ((_a = item === null || item === void 0 ? void 0 : item.children) === null || _a === void 0 ? void 0 : _a.length) {
7
+ needCalcKeys.forEach(function (dkey) {
8
+ var sum = 0;
9
+
10
+ var _dkey = _slicedToArray(dkey, 2),
11
+ key = _dkey[0],
12
+ expression = _dkey[1];
13
+
14
+ item.children.forEach(function (subItem) {
15
+ if (key in subItem) {
16
+ sum += Number(subItem[key]);
17
+ }
18
+ });
19
+
20
+ if (!sum) {
21
+ return;
22
+ }
23
+
24
+ if (expression === 'sum') {
25
+ item[key] = sum;
26
+ } else if (expression === 'average') {
27
+ item[key] = sum / item.children.length;
28
+ }
29
+ });
30
+ }
31
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = require("react");
11
+
12
+ var _util = require("../util");
13
+
14
+ var _expression = _interopRequireDefault(require("../expression"));
15
+
16
+ /** 行分组 */
17
+ function useGroupDataSource(_ref) {
18
+ var groupRowKeys = _ref.groupRowKeys,
19
+ customizeDataSource = _ref.customizeDataSource,
20
+ columnsRef = _ref.columnsRef;
21
+ var groupDataSource = (0, _react.useMemo)(function () {
22
+ if (!(groupRowKeys === null || groupRowKeys === void 0 ? void 0 : groupRowKeys.length)) {
23
+ return customizeDataSource;
24
+ }
25
+
26
+ var source = (0, _util.transformWithRowGroup)(customizeDataSource, groupRowKeys); // 获取需要计算的key,生成数组
27
+
28
+ var needCalcKeys = columnsRef.current.filter(function (col) {
29
+ return col.expression;
30
+ }).map(function (col) {
31
+ return [col.dataIndex, col.expression];
32
+ });
33
+
34
+ var deepChildren = function deepChildren(arr) {
35
+ arr === null || arr === void 0 ? void 0 : arr.forEach(function (item) {
36
+ if (item === null || item === void 0 ? void 0 : item.children) {
37
+ deepChildren(item === null || item === void 0 ? void 0 : item.children);
38
+ (0, _expression.default)(item, needCalcKeys);
39
+ }
40
+ });
41
+ };
42
+
43
+ deepChildren(source);
44
+ return source;
45
+ }, [customizeDataSource, groupRowKeys]);
46
+ return [groupDataSource];
47
+ }
48
+
49
+ var _default = useGroupDataSource;
50
+ exports.default = _default;
@@ -1226,6 +1226,45 @@ p {
1226
1226
  #lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
1227
1227
  border-bottom: 0;
1228
1228
  }
1229
+ #lm_protable_warp .lm_protable .ant-table-summary {
1230
+ height: 48px;
1231
+ }
1232
+ #lm_protable_warp .lm_protable .ant-table-summary > table {
1233
+ height: 100%;
1234
+ }
1235
+ #lm_protable_warp .lm_protable .ant-table-summary td {
1236
+ padding: 0 8px;
1237
+ text-align: right;
1238
+ background-color: var(--table-background-color);
1239
+ }
1240
+ #lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
1241
+ padding: 0 0 0 8px;
1242
+ text-align: left;
1243
+ }
1244
+ #lm_protable_warp .lm_protable .ant-table-summary td.number {
1245
+ border-right: 1px solid #eee;
1246
+ border-left: 1px solid #eee;
1247
+ }
1248
+ #lm_protable_warp .lm_protable .ant-table-summary td.money {
1249
+ color: var(--error-color);
1250
+ border-right: 1px solid #eee;
1251
+ border-left: 1px solid #eee;
1252
+ }
1253
+ #lm_protable_warp .lm_protable .ant-table-summary td.money-color {
1254
+ color: var(--error-color);
1255
+ }
1256
+ #lm_protable_warp .lm_protable .ant-table-summary td > div {
1257
+ overflow: hidden;
1258
+ white-space: nowrap;
1259
+ text-overflow: ellipsis;
1260
+ }
1261
+ #lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
1262
+ font-weight: bold;
1263
+ }
1264
+ #lm_protable_warp .lm_protable .ant-table-summary .total_title {
1265
+ position: relative;
1266
+ white-space: nowrap;
1267
+ }
1229
1268
  #lm_protable_warp .ant-table-expand-icon-col {
1230
1269
  width: 32px;
1231
1270
  }
@@ -714,6 +714,45 @@
714
714
  #lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
715
715
  border-bottom: 0;
716
716
  }
717
+ #lm_protable_warp .lm_protable .ant-table-summary {
718
+ height: 48px;
719
+ }
720
+ #lm_protable_warp .lm_protable .ant-table-summary > table {
721
+ height: 100%;
722
+ }
723
+ #lm_protable_warp .lm_protable .ant-table-summary td {
724
+ padding: 0 8px;
725
+ text-align: right;
726
+ background-color: var(--table-background-color);
727
+ }
728
+ #lm_protable_warp .lm_protable .ant-table-summary td:first-of-type {
729
+ padding: 0 0 0 8px;
730
+ text-align: left;
731
+ }
732
+ #lm_protable_warp .lm_protable .ant-table-summary td.number {
733
+ border-right: 1px solid #eee;
734
+ border-left: 1px solid #eee;
735
+ }
736
+ #lm_protable_warp .lm_protable .ant-table-summary td.money {
737
+ color: var(--error-color);
738
+ border-right: 1px solid #eee;
739
+ border-left: 1px solid #eee;
740
+ }
741
+ #lm_protable_warp .lm_protable .ant-table-summary td.money-color {
742
+ color: var(--error-color);
743
+ }
744
+ #lm_protable_warp .lm_protable .ant-table-summary td > div {
745
+ overflow: hidden;
746
+ white-space: nowrap;
747
+ text-overflow: ellipsis;
748
+ }
749
+ #lm_protable_warp .lm_protable .ant-table-summary td > div:last-of-type {
750
+ font-weight: bold;
751
+ }
752
+ #lm_protable_warp .lm_protable .ant-table-summary .total_title {
753
+ position: relative;
754
+ white-space: nowrap;
755
+ }
717
756
  #lm_protable_warp .ant-table-expand-icon-col {
718
757
  width: 32px;
719
758
  }