linkmore-design 1.0.54 → 1.0.55

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 (99) hide show
  1. package/dist/Affix/demos/basic.d.ts +2 -0
  2. package/dist/Affix/index.d.ts +54 -0
  3. package/dist/Affix/style/index.d.ts +1 -0
  4. package/dist/Affix/utils.d.ts +15 -0
  5. package/dist/CardTable/fns/index.d.ts +1 -5
  6. package/dist/IconFont/index.d.ts +1 -1
  7. package/dist/LmFilter/{components → baseFilter}/fuzzySearch.d.ts +0 -0
  8. package/dist/LmFilter/utils.d.ts +1 -0
  9. package/dist/QuickMenu/demos/basic.d.ts +2 -0
  10. package/dist/QuickMenu/index.d.ts +14 -0
  11. package/dist/QuickMenu/style/index.d.ts +1 -0
  12. package/dist/Tag/demos/ExigencyTag.d.ts +2 -0
  13. package/dist/Tag/index.d.ts +4 -0
  14. package/dist/Upload/demos/picture-little.d.ts +3 -0
  15. package/dist/Upload/index.d.ts +5 -1
  16. package/dist/_util/domTarget.d.ts +7 -0
  17. package/dist/_util/throttleByAnimationFrame.d.ts +8 -0
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.umd.js +548 -8
  20. package/dist/index.umd.min.js +4 -4
  21. package/es/Affix/index.d.ts +54 -0
  22. package/es/Affix/index.js +326 -0
  23. package/es/Affix/style/index.css +505 -0
  24. package/es/Affix/style/index.d.ts +1 -0
  25. package/es/Affix/style/index.js +1 -0
  26. package/es/Affix/utils.d.ts +15 -0
  27. package/es/Affix/utils.js +83 -0
  28. package/es/CardTable/fns/index.js +6 -5
  29. package/es/Descriptions/style/index.css +10 -8
  30. package/es/IconFont/index.js +3 -2
  31. package/es/LmFilter/baseFilter/fuzzySearch.js +53 -0
  32. package/es/LmFilter/baseFilter/index.js +1 -1
  33. package/es/LmFilter/clearFilter/index.js +3 -1
  34. package/es/LmFilter/components/CascaderFilter.js +17 -41
  35. package/es/LmFilter/components/DateFilter.js +12 -20
  36. package/es/LmFilter/components/DropdownFIlter.js +78 -10
  37. package/es/LmFilter/components/index.js +56 -13
  38. package/es/LmFilter/hooks/useDelayedFn.js +8 -6
  39. package/es/LmFilter/style/style.css +16 -0
  40. package/es/LmFilter/utils.js +16 -0
  41. package/es/LmFilter/wrapper/FilterRoot.js +6 -0
  42. package/es/QuickMenu/index.d.ts +14 -0
  43. package/es/QuickMenu/index.js +169 -0
  44. package/es/QuickMenu/style/index.css +560 -0
  45. package/es/QuickMenu/style/index.d.ts +1 -0
  46. package/es/QuickMenu/style/index.js +1 -0
  47. package/es/Tag/index.d.ts +4 -0
  48. package/es/Tag/index.js +48 -2
  49. package/es/Tag/style/index.css +4 -1
  50. package/es/Upload/index.d.ts +5 -1
  51. package/es/Upload/index.js +7 -2
  52. package/es/Upload/style/index.css +35 -0
  53. package/es/_util/domTarget.d.ts +7 -0
  54. package/es/_util/domTarget.js +20 -0
  55. package/es/_util/throttleByAnimationFrame.d.ts +8 -0
  56. package/es/_util/throttleByAnimationFrame.js +58 -0
  57. package/es/index.d.ts +1 -0
  58. package/es/index.js +2 -1
  59. package/lib/Affix/index.d.ts +54 -0
  60. package/lib/Affix/index.js +349 -0
  61. package/lib/Affix/style/index.css +505 -0
  62. package/lib/Affix/style/index.d.ts +1 -0
  63. package/lib/Affix/style/index.js +3 -0
  64. package/lib/Affix/utils.d.ts +15 -0
  65. package/lib/Affix/utils.js +104 -0
  66. package/lib/CardTable/fns/index.js +6 -5
  67. package/lib/Descriptions/style/index.css +10 -8
  68. package/lib/IconFont/index.js +3 -2
  69. package/lib/LmFilter/baseFilter/fuzzySearch.js +53 -0
  70. package/lib/LmFilter/baseFilter/index.js +1 -1
  71. package/lib/LmFilter/clearFilter/index.js +3 -1
  72. package/lib/LmFilter/components/CascaderFilter.js +17 -41
  73. package/lib/LmFilter/components/DateFilter.js +12 -20
  74. package/lib/LmFilter/components/DropdownFIlter.js +78 -10
  75. package/lib/LmFilter/components/index.js +56 -13
  76. package/lib/LmFilter/hooks/useDelayedFn.js +8 -6
  77. package/lib/LmFilter/style/style.css +16 -0
  78. package/lib/LmFilter/utils.js +16 -0
  79. package/lib/LmFilter/wrapper/FilterRoot.js +6 -0
  80. package/lib/QuickMenu/index.d.ts +14 -0
  81. package/lib/QuickMenu/index.js +187 -0
  82. package/lib/QuickMenu/style/index.css +560 -0
  83. package/lib/QuickMenu/style/index.d.ts +1 -0
  84. package/lib/QuickMenu/style/index.js +3 -0
  85. package/lib/Tag/index.d.ts +4 -0
  86. package/lib/Tag/index.js +48 -1
  87. package/lib/Tag/style/index.css +4 -1
  88. package/lib/Upload/index.d.ts +5 -1
  89. package/lib/Upload/index.js +8 -2
  90. package/lib/Upload/style/index.css +35 -0
  91. package/lib/_util/domTarget.d.ts +7 -0
  92. package/lib/_util/domTarget.js +31 -0
  93. package/lib/_util/throttleByAnimationFrame.d.ts +8 -0
  94. package/lib/_util/throttleByAnimationFrame.js +72 -0
  95. package/lib/index.d.ts +1 -0
  96. package/lib/index.js +9 -1
  97. package/package.json +5 -2
  98. package/es/LmFilter/components/fuzzySearch.js +0 -37
  99. package/lib/LmFilter/components/fuzzySearch.js +0 -37
@@ -0,0 +1,505 @@
1
+ .ant-layout-sider {
2
+ min-height: 100vh;
3
+ background-color: #022766;
4
+ }
5
+ .ant-menu-dark .ant-menu-inline.ant-menu-sub {
6
+ box-shadow: none;
7
+ }
8
+ .ant-menu-submenu-placement-rightTop {
9
+ display: none;
10
+ }
11
+ .ant-table .row-active .ant-table-cell {
12
+ background-color: #feffd3 !important;
13
+ }
14
+ .ant-table.ant-table-empty .ant-table-expanded-row-fixed {
15
+ padding: 0;
16
+ }
17
+ .ant-table.ant-table-empty .ant-table-expanded-row-fixed .ant-empty {
18
+ margin: 0;
19
+ }
20
+ .ant-table .ant-empty {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ }
25
+ .ant-table .ant-empty .ant-empty-image {
26
+ height: 24px;
27
+ margin: var(--gap) 0;
28
+ }
29
+ .ant-tabs .ant-tabs-nav .ant-tabs-tab {
30
+ font-size: 14px;
31
+ }
32
+ .ant-tabs.auto_tabs {
33
+ display: flex;
34
+ flex-flow: column;
35
+ height: 100%;
36
+ }
37
+ .ant-tabs.auto_tabs .ant-tabs-nav {
38
+ height: 48px;
39
+ }
40
+ .ant-tabs.auto_tabs .ant-tabs-content-holder {
41
+ flex: 1;
42
+ overflow: auto;
43
+ }
44
+ .ant-drawer.drawer_wrapper .ant-drawer-header {
45
+ padding: 0 24px;
46
+ }
47
+ .ant-drawer.drawer_wrapper .ant-drawer-body {
48
+ position: relative;
49
+ flex: 1;
50
+ padding: 0 24px;
51
+ }
52
+ .ant-modal-wrap.plugin_modal {
53
+ display: flex;
54
+ flex-flow: column;
55
+ justify-content: flex-end;
56
+ }
57
+ .ant-modal-wrap.plugin_modal .ant-modal {
58
+ top: 0;
59
+ left: 56px;
60
+ margin: 0 0 8px 8px;
61
+ padding: 0;
62
+ }
63
+ .ant-modal-wrap.lm_modal_confirm .anticon {
64
+ margin-top: -1px;
65
+ margin-right: 8px;
66
+ }
67
+ .ant-modal-wrap.lm_modal_confirm .ant-modal-body {
68
+ padding: 16px 24px;
69
+ }
70
+ .ant-popover.pop_img .ant-popover-inner-content {
71
+ padding: var(--gap);
72
+ line-height: 1;
73
+ }
74
+ .ant-notification-notice .ant-notification-notice-content .ant-notification-notice-message {
75
+ font-size: 14px;
76
+ font-weight: 500;
77
+ }
78
+ .ant-notification-notice .ant-notification-notice-content > div > div:last-child {
79
+ margin-bottom: 8px;
80
+ }
81
+ .ant-notification-notice .ant-notification-notice-description {
82
+ font-size: 12px;
83
+ }
84
+ @font-face {
85
+ font-family: 'iconfont';
86
+ /* Project id 2966019 */
87
+ src: url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.woff2?t=1641546077924') format('woff2'), url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.woff?t=1641546077924') format('woff'), url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.ttf?t=1641546077924') format('truetype');
88
+ }
89
+ .icon_ {
90
+ font-size: 14px;
91
+ font-family: 'iconfont';
92
+ }
93
+ .iconfont {
94
+ font-size: 12px;
95
+ }
96
+ .icon_home::before {
97
+ content: '\e7fc';
98
+ }
99
+ .lm-font-small-bold {
100
+ font-weight: 400;
101
+ font-size: var(--font-size-sm);
102
+ line-height: 20px;
103
+ }
104
+ .lm-font-middle-bold {
105
+ font-weight: 500;
106
+ font-size: var(--font-size-base);
107
+ line-height: 22px;
108
+ }
109
+ .lm-font-large-bold {
110
+ font-weight: 500;
111
+ font-size: var(--font-size-lg);
112
+ line-height: 24px;
113
+ }
114
+ .lm-font-small {
115
+ font-size: var(--font-size-sm);
116
+ line-height: 20px;
117
+ }
118
+ .lm-font-middle {
119
+ font-size: var(--font-size-base);
120
+ line-height: 22px;
121
+ }
122
+ .lm-font-large {
123
+ font-size: var(--font-size-lg);
124
+ line-height: 24px;
125
+ }
126
+ .lm-shadown-level1-up {
127
+ box-shadow: 0px -1px 2px -2px rgba(0, 0, 0, 0.16), 0px -3px 6px 0px rgba(0, 0, 0, 0.12), 0px -5px 12px 4px rgba(0, 0, 0, 0.09);
128
+ }
129
+ .lm-shadown-level2-up {
130
+ box-shadow: 0px -3px 6px -4px rgba(0, 0, 0, 0.12), 0px -6px 16px 0px rgba(0, 0, 0, 0.08), 0px -9px 28px 8px rgba(0, 0, 0, 0.05);
131
+ }
132
+ .lm-shadown-level3-up {
133
+ box-shadow: 0px -6px 16px -8px rgba(0, 0, 0, 0.08), 0px -9px 28px 0px rgba(0, 0, 0, 0.05), 0px -12px 48px 16px rgba(0, 0, 0, 0.03);
134
+ }
135
+ .lm-shadown-level1-down {
136
+ box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.16), 0px 3px 6px 0px rgba(0, 0, 0, 0.12), 0px 5px 12px 4px rgba(0, 0, 0, 0.09);
137
+ }
138
+ .lm-shadown-level2-down {
139
+ box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
140
+ }
141
+ .lm-shadown-level3-down {
142
+ box-shadow: 0px 6px 16px -8px rgba(0, 0, 0, 0.08), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 12px 48px 16px rgba(0, 0, 0, 0.03);
143
+ }
144
+ .lm-shadown-level1-left {
145
+ box-shadow: -1px 0px 2px -2px rgba(0, 0, 0, 0.16), -3px 0px 6px 0px rgba(0, 0, 0, 0.12), -5px 0px 12px 4px rgba(0, 0, 0, 0.09);
146
+ }
147
+ .lm-shadown-level2-left {
148
+ box-shadow: -3px 0px 6px -4px rgba(0, 0, 0, 0.12), -6px 0px 16px 0px rgba(0, 0, 0, 0.08), -9px 0px 28px 8px rgba(0, 0, 0, 0.05);
149
+ }
150
+ .lm-shadown-level3-left {
151
+ box-shadow: -6px 0px 16px -8px rgba(0, 0, 0, 0.08), -9px 0px 28px 0px rgba(0, 0, 0, 0.05), -12px 0px 48px 16px rgba(0, 0, 0, 0.03);
152
+ }
153
+ .lm-shadown-level1-right {
154
+ box-shadow: 1px 0px 2px -2px rgba(0, 0, 0, 0.16), 3px 0px 6px 0px rgba(0, 0, 0, 0.12), 5px 0px 12px 4px rgba(0, 0, 0, 0.09);
155
+ }
156
+ .lm-shadown-level2-right {
157
+ box-shadow: 3px 0px 6px -4px rgba(0, 0, 0, 0.12), 6px 0px 16px 0px rgba(0, 0, 0, 0.08), 9px 0px 28px 8px rgba(0, 0, 0, 0.05);
158
+ }
159
+ .lm-shadown-level3-right {
160
+ box-shadow: 6px 0px 16px -8px rgba(0, 0, 0, 0.08), 9px 0px 28px 0px rgba(0, 0, 0, 0.05), 12px 0px 48px 16px rgba(0, 0, 0, 0.03);
161
+ }
162
+ :root {
163
+ --primary-color: #1890fc;
164
+ --primary-click-color: #096dd9;
165
+ --success-color: #52c14a;
166
+ --warning-color: #fd9727;
167
+ --error-color: #fa4f53;
168
+ --aside-bg-color: #022766;
169
+ --primary-hover-color: #40a9ff;
170
+ --primary-loading-color: #84b7fa;
171
+ --primary-select-color: #e6f7ff;
172
+ --error-hover-color: #ee8079;
173
+ --error-loading-color: #fbcdcd;
174
+ --disabled-border-color: rgba(0, 0, 0, 0.15);
175
+ --disabled-bg-color: rgba(0, 0, 0, 0.04);
176
+ --disabled-font-color: rgba(0, 0, 0, 0.25);
177
+ --font-color: rgba(0, 0, 0, 0.85);
178
+ --text-color: rgba(0, 0, 0, 0.45);
179
+ --tip-text-color: rgba(0, 0, 0, 0.25);
180
+ --stroke-color: rgba(0, 0, 0, 0.15);
181
+ --line-color: rgba(0, 0, 0, 0.06);
182
+ --background-color: rgba(0, 0, 0, 0.04);
183
+ --table-header-color: rgba(0, 0, 0, 0.02);
184
+ --font2-color: rgba(0, 0, 0, 0.65);
185
+ --background-color-hover: rgba(0, 0, 0, 0.08);
186
+ --border-color: #f0f0f0;
187
+ --stripe-color: #f5f5f5;
188
+ --border-hover-color: #f2f5f7;
189
+ --box-shadow-color: rgba(0, 0, 0, 0.1);
190
+ --table-background-color: #fafafa;
191
+ --disabled-color: rgba(0, 0, 0, 0.25);
192
+ --font-size: 12px;
193
+ --gap: 8px;
194
+ --basic-height: 24px;
195
+ --font-size-base: 14px;
196
+ --font-size-lg: calc(var(--font-size-base) + 2px);
197
+ --font-size-sm: 12px;
198
+ --color-contrast: #fff;
199
+ --color-100: #000;
200
+ --color-85: #262626;
201
+ --color-65: #595959;
202
+ --color-45: #8c8c8c;
203
+ --color-25: #bfbfbf;
204
+ --color-15: #d9d9d9;
205
+ --color-6: #f0f0f0;
206
+ --color-4: #f5f5f5;
207
+ --color-2: #fafafa;
208
+ /** tree */
209
+ --tree-select-bg: #EDF6FF;
210
+ }
211
+ /** tag */
212
+ :root[theme='dark'] {
213
+ --font-color: rgba(255, 255, 255, 0.85);
214
+ --text-color: rgba(255, 255, 255, 0.45);
215
+ --tip-text-color: rgba(255, 255, 255, 0.25);
216
+ --stroke-color: rgba(255, 255, 255, 0.15);
217
+ --line-color: rgba(255, 255, 255, 0.06);
218
+ --background-color: rgba(255, 255, 255, 0.04);
219
+ --table-header-color: rgba(255, 255, 255, 0.02);
220
+ --font2-color: rgba(255, 255, 255, 0.65);
221
+ --background-color-hover: rgba(255, 255, 255, 0.08);
222
+ }
223
+ html {
224
+ background-color: #f0f2f5;
225
+ }
226
+ #app {
227
+ width: 100vw;
228
+ min-width: 1200px;
229
+ height: 100vh;
230
+ font-family: 'PingFang SC', 'Microsoft YaHei UI', '微软雅黑', Helvetica, Arial, sans-serif;
231
+ }
232
+ .ka-wrapper,
233
+ .ka-content {
234
+ height: 100%;
235
+ }
236
+ * {
237
+ margin: 0;
238
+ padding: 0;
239
+ list-style: none;
240
+ }
241
+ *::-webkit-scrollbar {
242
+ width: 8px;
243
+ height: 8px;
244
+ border-radius: 10px;
245
+ }
246
+ *::-webkit-scrollbar-button {
247
+ display: none;
248
+ }
249
+ *::-webkit-scrollbar-track {
250
+ background: transparent;
251
+ }
252
+ *::-webkit-scrollbar-thumb {
253
+ background: #d8d8d8;
254
+ border-radius: 6px;
255
+ }
256
+ *::-webkit-scrollbar-thumb:hover,
257
+ *::-webkit-scrollbar-thumb:active {
258
+ background: #bfbfbf;
259
+ }
260
+ .page-content {
261
+ margin: 12px;
262
+ padding: 16px;
263
+ background: #fff;
264
+ }
265
+ .addModal .ant-modal-header {
266
+ display: flex;
267
+ align-items: center;
268
+ height: 46px;
269
+ padding: 0 24px;
270
+ }
271
+ .addModal .ant-modal-close-x {
272
+ width: 46px;
273
+ height: 46px;
274
+ line-height: 44px;
275
+ }
276
+ .addModal .ant-modal-body {
277
+ padding: 24px 24px 21px;
278
+ }
279
+ .addModal .ant-modal-body .ant-tabs-nav {
280
+ margin: 0 10px;
281
+ }
282
+ .addModal .ant-modal-body .ant-tabs-content-holder {
283
+ max-height: 800px;
284
+ padding: 16px 10px;
285
+ overflow-y: auto;
286
+ }
287
+ .addModal .ant-modal-footer {
288
+ padding: 11px 24px;
289
+ }
290
+ .addModal .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
291
+ margin-left: 10px;
292
+ }
293
+ .editModal .ant-modal-header {
294
+ display: flex;
295
+ align-items: center;
296
+ height: 46px;
297
+ padding: 0 24px;
298
+ }
299
+ .editModal .ant-modal-close-x {
300
+ width: 46px;
301
+ height: 46px;
302
+ line-height: 44px;
303
+ }
304
+ .editModal .ant-modal-body {
305
+ max-height: 600px;
306
+ padding: 24px 24px 21px;
307
+ overflow-y: auto;
308
+ }
309
+ .editModal .ant-modal-body .ant-form-item {
310
+ margin-bottom: 16px;
311
+ }
312
+ .editModal .ant-modal-footer {
313
+ padding: 11px 24px;
314
+ }
315
+ .editModal .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
316
+ margin-left: 10px;
317
+ }
318
+ .ant-select-dropdown .ant-select-item {
319
+ align-items: center;
320
+ font-size: 12px;
321
+ }
322
+ .react-resizable {
323
+ position: relative;
324
+ background-clip: padding-box;
325
+ }
326
+ .react-resizable-handle {
327
+ position: absolute;
328
+ top: 0;
329
+ right: 0;
330
+ z-index: 1;
331
+ width: 3px;
332
+ height: 40px;
333
+ cursor: col-resize;
334
+ }
335
+ .react-resizable-handle:hover {
336
+ background-color: var(--primary-color);
337
+ }
338
+ .react-resizable-handle:active {
339
+ background-color: var(--primary-color);
340
+ }
341
+ .yf_resizable_bar {
342
+ position: absolute;
343
+ top: 0;
344
+ left: 0;
345
+ z-index: 2;
346
+ height: 0;
347
+ }
348
+ .resizable_line {
349
+ position: absolute;
350
+ top: 0;
351
+ left: 0;
352
+ z-index: 1;
353
+ width: 1px;
354
+ height: 100%;
355
+ background-color: var(--primary-color);
356
+ }
357
+ .handle_resizable {
358
+ position: absolute;
359
+ top: 0;
360
+ right: 0;
361
+ z-index: 2;
362
+ width: 5px;
363
+ height: 100%;
364
+ }
365
+ .card_cell_content {
366
+ display: flex;
367
+ flex-flow: column;
368
+ height: 100%;
369
+ overflow: hidden;
370
+ border: 1px solid transparent;
371
+ border-radius: 2px;
372
+ transition: 0.3s;
373
+ }
374
+ .card_cell_content .card_cell_body {
375
+ position: relative;
376
+ display: flex;
377
+ flex: 1;
378
+ flex-flow: column;
379
+ padding: 16px;
380
+ background: rgba(0, 0, 0, 0.02);
381
+ cursor: pointer;
382
+ }
383
+ .card_cell_content .card_cell_body .card_cell_checkbox {
384
+ position: absolute;
385
+ top: 8px;
386
+ left: 8px;
387
+ line-height: 1;
388
+ opacity: 0;
389
+ transition: 0.3s;
390
+ }
391
+ .card_cell_content .card_cell_body .card_cell_checkbox .ant-checkbox {
392
+ border: 8px solid rgba(255, 255, 255, 0.624);
393
+ border-radius: 2px;
394
+ }
395
+ .card_cell_content .card_cell_body .card_cell_info .title {
396
+ display: flex;
397
+ gap: 8px;
398
+ align-items: center;
399
+ justify-content: space-between;
400
+ }
401
+ .card_cell_content .card_cell_body .card_cell_info .title .label {
402
+ flex: 1;
403
+ overflow: hidden;
404
+ font-weight: 500;
405
+ font-size: 14px;
406
+ white-space: nowrap;
407
+ text-overflow: ellipsis;
408
+ text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
409
+ }
410
+ .card_cell_content .card_cell_body .card_cell_info .title .icon {
411
+ display: inline-flex;
412
+ gap: 4px;
413
+ align-items: center;
414
+ height: 22px;
415
+ padding: 0 8px;
416
+ font-size: 12px;
417
+ line-height: 1;
418
+ background: var(--background-color);
419
+ }
420
+ .card_cell_content .card_cell_body .card_cell_info .code .ant-typography {
421
+ margin: 0;
422
+ color: var(--text-color);
423
+ text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
424
+ }
425
+ .card_cell_content .card_cell_body .card_cell_info .code .ant-typography .ant-typography-copy {
426
+ color: inherit;
427
+ }
428
+ .card_cell_content .card_cell_body .card_cell_info .expand {
429
+ display: flex;
430
+ flex-wrap: wrap;
431
+ gap: 16px;
432
+ padding: 6px 0 2px;
433
+ color: var(--text-color);
434
+ font-size: 12px;
435
+ text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
436
+ }
437
+ .card_cell_content .card_cell_body .card_cell_info .expand > div {
438
+ padding: 2px 0;
439
+ }
440
+ .card_cell_content .card_cell_body .card_cell_center {
441
+ display: flex;
442
+ flex: 1;
443
+ align-items: center;
444
+ }
445
+ .card_cell_content .card_cell_body .card_cell_center .list {
446
+ display: flex;
447
+ align-items: center;
448
+ justify-content: space-between;
449
+ width: 100%;
450
+ margin: auto 0;
451
+ text-align: center;
452
+ }
453
+ .card_cell_content .card_cell_body .card_cell_center .list .item {
454
+ display: inline-flex;
455
+ gap: 4px;
456
+ align-items: center;
457
+ line-height: 1;
458
+ }
459
+ .card_cell_content .card_cell_body .card_cell_center .list .item .num {
460
+ color: var(--font-color);
461
+ font-weight: 500;
462
+ font-size: 20px;
463
+ }
464
+ .card_cell_content .card_cell_body .card_cell_center .list .item .text {
465
+ color: var(--text-color);
466
+ font-size: 12px;
467
+ }
468
+ .card_cell_content .card_cell_footer {
469
+ display: flex;
470
+ align-items: center;
471
+ height: 40px;
472
+ background: #f7f7f7;
473
+ }
474
+ .card_cell_content .card_cell_footer > * {
475
+ flex: 1;
476
+ }
477
+ .card_cell_content .card_cell_footer > *::after {
478
+ position: absolute;
479
+ top: 50%;
480
+ right: 0;
481
+ width: 1px;
482
+ height: 18px;
483
+ background-color: #e8e8e8;
484
+ transform: translateY(-50%);
485
+ content: '';
486
+ }
487
+ .card_cell_content .card_cell_footer button:last-child {
488
+ border: none;
489
+ }
490
+ .card_cell_content .card_cell_footer button:last-child::after {
491
+ display: none;
492
+ }
493
+ .card_cell_content .card_cell_footer .footer_expand {
494
+ font-size: 16px;
495
+ text-align: center;
496
+ border: none;
497
+ }
498
+ .card_cell_content.checked,
499
+ .card_cell_content:hover {
500
+ border-color: var(--primary-color);
501
+ }
502
+ .card_cell_content.checked .card_cell_body .card_cell_checkbox,
503
+ .card_cell_content:hover .card_cell_body .card_cell_checkbox {
504
+ opacity: 1;
505
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import "./index.css";
@@ -0,0 +1,15 @@
1
+ export declare type BindElement = HTMLElement | Window | null | undefined;
2
+ export declare function getTargetRect(target: BindElement): DOMRect;
3
+ export declare function getFixedTop(placeholderReact: DOMRect, targetRect: DOMRect, offsetTop?: number): number;
4
+ export declare function getFixedBottom(placeholderReact: DOMRect, targetRect: DOMRect, offsetBottom?: number): number;
5
+ interface ObserverEntity {
6
+ target: HTMLElement | Window;
7
+ affixList: any[];
8
+ eventHandlers: {
9
+ [eventName: string]: any;
10
+ };
11
+ }
12
+ export declare function getObserverEntities(): ObserverEntity[];
13
+ export declare function addObserveTarget<T>(target: HTMLElement | Window | null, affix: T): void;
14
+ export declare function removeObserveTarget<T>(affix: T): void;
15
+ export {};
@@ -0,0 +1,83 @@
1
+ import addEventListener from 'rc-util/lib/Dom/addEventListener';
2
+ export function getTargetRect(target) {
3
+ return target !== window ? target.getBoundingClientRect() : {
4
+ top: 0,
5
+ bottom: window.innerHeight
6
+ };
7
+ }
8
+ export function getFixedTop(placeholderReact, targetRect, offsetTop) {
9
+ if (offsetTop !== undefined && targetRect.top > placeholderReact.top - offsetTop) {
10
+ return offsetTop + targetRect.top;
11
+ }
12
+
13
+ return undefined;
14
+ }
15
+ export function getFixedBottom(placeholderReact, targetRect, offsetBottom) {
16
+ if (offsetBottom !== undefined && targetRect.bottom < placeholderReact.bottom + offsetBottom) {
17
+ var targetBottomOffset = window.innerHeight - targetRect.bottom;
18
+ return offsetBottom + targetBottomOffset;
19
+ }
20
+
21
+ return undefined;
22
+ } // ======================== Observer ========================
23
+
24
+ var TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
25
+ var observerEntities = [];
26
+ export function getObserverEntities() {
27
+ // Only used in test env. Can be removed if refactor.
28
+ return observerEntities;
29
+ }
30
+ export function addObserveTarget(target, affix) {
31
+ if (!target) return;
32
+ var entity = observerEntities.find(function (item) {
33
+ return item.target === target;
34
+ });
35
+
36
+ if (entity) {
37
+ entity.affixList.push(affix);
38
+ } else {
39
+ entity = {
40
+ target: target,
41
+ affixList: [affix],
42
+ eventHandlers: {}
43
+ };
44
+ observerEntities.push(entity); // Add listener
45
+
46
+ TRIGGER_EVENTS.forEach(function (eventName) {
47
+ entity.eventHandlers[eventName] = addEventListener(target, eventName, function () {
48
+ entity.affixList.forEach(function (targetAffix) {
49
+ targetAffix.lazyUpdatePosition();
50
+ });
51
+ });
52
+ });
53
+ }
54
+ }
55
+ export function removeObserveTarget(affix) {
56
+ var observerEntity = observerEntities.find(function (oriObserverEntity) {
57
+ var hasAffix = oriObserverEntity.affixList.some(function (item) {
58
+ return item === affix;
59
+ });
60
+
61
+ if (hasAffix) {
62
+ oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function (item) {
63
+ return item !== affix;
64
+ });
65
+ }
66
+
67
+ return hasAffix;
68
+ });
69
+
70
+ if (observerEntity && observerEntity.affixList.length === 0) {
71
+ observerEntities = observerEntities.filter(function (item) {
72
+ return item !== observerEntity;
73
+ }); // Remove listener
74
+
75
+ TRIGGER_EVENTS.forEach(function (eventName) {
76
+ var handler = observerEntity.eventHandlers[eventName];
77
+
78
+ if (handler && handler.remove) {
79
+ handler.remove();
80
+ }
81
+ });
82
+ }
83
+ }
@@ -66,11 +66,12 @@ var CoreOptions = function CoreOptions(_ref) {
66
66
  }; // 切换选中状态: 单个切换/批量切换
67
67
 
68
68
 
69
- var toggleCheckboxKey = function toggleCheckboxKey(k, _ref2) {
70
- var _ref2$trigger = _ref2.trigger,
71
- trigger = _ref2$trigger === void 0 ? 'default' : _ref2$trigger,
72
- cell = _ref2.cell,
73
- cellIndex = _ref2.cellIndex;
69
+ var toggleCheckboxKey = function toggleCheckboxKey(k) {
70
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
71
+ var _options$trigger = options.trigger,
72
+ trigger = _options$trigger === void 0 ? 'default' : _options$trigger,
73
+ cell = options.cell,
74
+ cellIndex = options.cellIndex;
74
75
  var nKeys = [k],
75
76
  isCheck = true,
76
77
  reset = false; // 单个切换
@@ -508,29 +508,31 @@ html {
508
508
  margin-bottom: 8px;
509
509
  }
510
510
  .lm_descriptions .ant-descriptions-header .ant-descriptions-title {
511
+ color: var(--color-85);
512
+ font-size: 14px;
511
513
  /* 正文/苹方 14px Medium */
512
514
  font-family: PingFangSC-Medium;
513
- font-size: 14px;
514
515
  line-height: 22px;
515
516
  letter-spacing: 0px;
516
- color: var(--color-85);
517
517
  }
518
518
  .lm_descriptions .ant-descriptions-item {
519
+ padding-right: 24px;
519
520
  padding-bottom: 8px;
520
521
  }
521
522
  .lm_descriptions .ant-descriptions-item .ant-descriptions-item-container {
522
- font-family: PingFangSC-Regular;
523
+ color: var(--color-85);
523
524
  font-size: 12px;
525
+ font-family: PingFangSC-Regular;
524
526
  line-height: 20px;
525
- color: var(--color-85);
526
527
  }
527
528
  .lm_descriptions .ant-descriptions-item .ant-descriptions-item-label,
528
529
  .lm_descriptions .ant-descriptions-item .ant-descriptions-item-content {
529
- font-family: PingFangSC-Regular;
530
+ color: var(--color-85);
530
531
  font-size: 12px;
532
+ font-family: PingFangSC-Regular;
531
533
  line-height: 20px;
532
- color: var(--color-85);
533
534
  }
534
- .lm_descriptions_default .ant-descriptions-item[colspan='1'] .ant-descriptions-item-container {
535
- width: 376px;
535
+ .lm_descriptions_default .ant-descriptions-item[colspan='1'] {
536
+ min-width: 330px;
537
+ max-width: 376px;
536
538
  }
@@ -8,8 +8,9 @@ exports.default = void 0;
8
8
  var _icons = require("@ant-design/icons");
9
9
 
10
10
  var IconFont = (0, _icons.createFromIconfontCN)({
11
- // scriptUrl: '//at.alicdn.com/t/font_2966019_8aij0300kjo.js', // 在 iconfont.cn 上生成
12
- scriptUrl: require('./font/iconfont.js')
11
+ scriptUrl: '//at.alicdn.com/t/c/font_2966019_7jeb9gjjk63.js' // 在 iconfont.cn 上生成
12
+ // scriptUrl: require('./font/iconfont.js'),
13
+
13
14
  });
14
15
  var _default = IconFont;
15
16
  exports.default = _default;