@douyinfe/semi-foundation 2.97.0 → 2.99.0
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/cascader/foundation.ts +3 -1
- package/codeHighlight/codeHighlight.scss +1 -1
- package/datePicker/foundation.ts +7 -0
- package/datePicker/inputFoundation.ts +5 -0
- package/form/foundation.ts +50 -4
- package/inputNumber/foundation.ts +119 -3
- package/jsonViewer/jsonViewer.scss +2 -2
- package/lib/cjs/aiChatInput/aiChatInput.css +7 -7
- package/lib/cjs/anchor/anchor.css +3 -3
- package/lib/cjs/autoComplete/autoComplete.css +1 -1
- package/lib/cjs/avatar/avatar.css +5 -5
- package/lib/cjs/badge/badge.css +1 -1
- package/lib/cjs/breadcrumb/breadcrumb.css +2 -2
- package/lib/cjs/calendar/calendar.css +9 -9
- package/lib/cjs/cascader/cascader.css +6 -6
- package/lib/cjs/cascader/foundation.js +4 -1
- package/lib/cjs/checkbox/checkbox.css +2 -2
- package/lib/cjs/codeHighlight/codeHighlight.css +1 -1
- package/lib/cjs/codeHighlight/codeHighlight.scss +1 -1
- package/lib/cjs/collapse/collapse.css +2 -2
- package/lib/cjs/datePicker/datePicker.css +8 -8
- package/lib/cjs/datePicker/foundation.d.ts +5 -0
- package/lib/cjs/datePicker/foundation.js +2 -0
- package/lib/cjs/datePicker/inputFoundation.d.ts +5 -0
- package/lib/cjs/descriptions/descriptions.css +6 -6
- package/lib/cjs/dropdown/dropdown.css +2 -2
- package/lib/cjs/form/form.css +4 -4
- package/lib/cjs/form/foundation.js +51 -3
- package/lib/cjs/hotKeys/hotKeys.css +2 -2
- package/lib/cjs/image/image.css +2 -2
- package/lib/cjs/input/input.css +8 -8
- package/lib/cjs/input/textarea.css +2 -2
- package/lib/cjs/inputNumber/foundation.d.ts +15 -0
- package/lib/cjs/inputNumber/foundation.js +113 -3
- package/lib/cjs/jsonViewer/jsonViewer.css +2 -2
- package/lib/cjs/jsonViewer/jsonViewer.scss +2 -2
- package/lib/cjs/list/list.css +1 -1
- package/lib/cjs/modal/modal.css +1 -1
- package/lib/cjs/navigation/navigation.css +2 -2
- package/lib/cjs/notification/notification.css +4 -4
- package/lib/cjs/pagination/pagination.css +5 -5
- package/lib/cjs/popconfirm/popconfirm.css +1 -1
- package/lib/cjs/popover/popover.css +5 -5
- package/lib/cjs/radio/radio.css +2 -2
- package/lib/cjs/scrollList/itemFoundation.js +12 -0
- package/lib/cjs/scrollList/scrollList.css +2 -2
- package/lib/cjs/select/select.css +6 -6
- package/lib/cjs/sideSheet/sideSheet.css +2 -2
- package/lib/cjs/sidebar/sidebar.css +11 -11
- package/lib/cjs/slider/foundation.js +46 -12
- package/lib/cjs/slider/rtl.scss +62 -0
- package/lib/cjs/slider/slider.css +45 -0
- package/lib/cjs/slider/slider.scss +2 -0
- package/lib/cjs/steps/steps.css +11 -11
- package/lib/cjs/table/foundation.d.ts +36 -0
- package/lib/cjs/table/foundation.js +162 -28
- package/lib/cjs/table/rtl.scss +21 -0
- package/lib/cjs/table/table.css +38 -2
- package/lib/cjs/table/table.scss +49 -0
- package/lib/cjs/tabs/tabs.css +2 -2
- package/lib/cjs/tag/tag.css +2 -2
- package/lib/cjs/tagInput/tagInput.css +2 -2
- package/lib/cjs/timePicker/timePicker.css +1 -1
- package/lib/cjs/timeline/timeline.css +2 -2
- package/lib/cjs/toast/toast.css +1 -1
- package/lib/cjs/tooltip/arrow.scss +4 -4
- package/lib/cjs/tooltip/foundation.js +72 -5
- package/lib/cjs/tooltip/tooltip.css +5 -5
- package/lib/cjs/transfer/constants.d.ts +3 -1
- package/lib/cjs/transfer/constants.js +3 -1
- package/lib/cjs/transfer/foundation.d.ts +3 -0
- package/lib/cjs/transfer/foundation.js +4 -0
- package/lib/cjs/transfer/transfer.css +14 -5
- package/lib/cjs/transfer/transfer.scss +10 -0
- package/lib/cjs/tree/foundation.d.ts +3 -0
- package/lib/cjs/tree/foundation.js +31 -4
- package/lib/cjs/tree/tree.css +1 -1
- package/lib/cjs/treeSelect/foundation.d.ts +1 -0
- package/lib/cjs/treeSelect/foundation.js +8 -1
- package/lib/cjs/treeSelect/treeSelect.css +36 -4
- package/lib/cjs/treeSelect/treeSelect.scss +49 -1
- package/lib/cjs/typography/typography.css +8 -8
- package/lib/cjs/upload/upload.css +8 -8
- package/lib/cjs/utils/Store.d.ts +1 -1
- package/lib/cjs/utils/Store.js +1 -0
- package/lib/es/aiChatInput/aiChatInput.css +7 -7
- package/lib/es/anchor/anchor.css +3 -3
- package/lib/es/autoComplete/autoComplete.css +1 -1
- package/lib/es/avatar/avatar.css +5 -5
- package/lib/es/badge/badge.css +1 -1
- package/lib/es/breadcrumb/breadcrumb.css +2 -2
- package/lib/es/calendar/calendar.css +9 -9
- package/lib/es/cascader/cascader.css +6 -6
- package/lib/es/cascader/foundation.js +4 -1
- package/lib/es/checkbox/checkbox.css +2 -2
- package/lib/es/codeHighlight/codeHighlight.css +1 -1
- package/lib/es/codeHighlight/codeHighlight.scss +1 -1
- package/lib/es/collapse/collapse.css +2 -2
- package/lib/es/datePicker/datePicker.css +8 -8
- package/lib/es/datePicker/foundation.d.ts +5 -0
- package/lib/es/datePicker/foundation.js +2 -0
- package/lib/es/datePicker/inputFoundation.d.ts +5 -0
- package/lib/es/descriptions/descriptions.css +6 -6
- package/lib/es/dropdown/dropdown.css +2 -2
- package/lib/es/form/form.css +4 -4
- package/lib/es/form/foundation.js +51 -3
- package/lib/es/hotKeys/hotKeys.css +2 -2
- package/lib/es/image/image.css +2 -2
- package/lib/es/input/input.css +8 -8
- package/lib/es/input/textarea.css +2 -2
- package/lib/es/inputNumber/foundation.d.ts +15 -0
- package/lib/es/inputNumber/foundation.js +113 -3
- package/lib/es/jsonViewer/jsonViewer.css +2 -2
- package/lib/es/jsonViewer/jsonViewer.scss +2 -2
- package/lib/es/list/list.css +1 -1
- package/lib/es/modal/modal.css +1 -1
- package/lib/es/navigation/navigation.css +2 -2
- package/lib/es/notification/notification.css +4 -4
- package/lib/es/pagination/pagination.css +5 -5
- package/lib/es/popconfirm/popconfirm.css +1 -1
- package/lib/es/popover/popover.css +5 -5
- package/lib/es/radio/radio.css +2 -2
- package/lib/es/scrollList/itemFoundation.js +12 -0
- package/lib/es/scrollList/scrollList.css +2 -2
- package/lib/es/select/select.css +6 -6
- package/lib/es/sideSheet/sideSheet.css +2 -2
- package/lib/es/sidebar/sidebar.css +11 -11
- package/lib/es/slider/foundation.js +46 -12
- package/lib/es/slider/rtl.scss +62 -0
- package/lib/es/slider/slider.css +45 -0
- package/lib/es/slider/slider.scss +2 -0
- package/lib/es/steps/steps.css +11 -11
- package/lib/es/table/foundation.d.ts +36 -0
- package/lib/es/table/foundation.js +162 -28
- package/lib/es/table/rtl.scss +21 -0
- package/lib/es/table/table.css +38 -2
- package/lib/es/table/table.scss +49 -0
- package/lib/es/tabs/tabs.css +2 -2
- package/lib/es/tag/tag.css +2 -2
- package/lib/es/tagInput/tagInput.css +2 -2
- package/lib/es/timePicker/timePicker.css +1 -1
- package/lib/es/timeline/timeline.css +2 -2
- package/lib/es/toast/toast.css +1 -1
- package/lib/es/tooltip/arrow.scss +4 -4
- package/lib/es/tooltip/foundation.js +72 -5
- package/lib/es/tooltip/tooltip.css +5 -5
- package/lib/es/transfer/constants.d.ts +3 -1
- package/lib/es/transfer/constants.js +3 -1
- package/lib/es/transfer/foundation.d.ts +3 -0
- package/lib/es/transfer/foundation.js +4 -0
- package/lib/es/transfer/transfer.css +14 -5
- package/lib/es/transfer/transfer.scss +10 -0
- package/lib/es/tree/foundation.d.ts +3 -0
- package/lib/es/tree/foundation.js +31 -4
- package/lib/es/tree/tree.css +1 -1
- package/lib/es/treeSelect/foundation.d.ts +1 -0
- package/lib/es/treeSelect/foundation.js +8 -1
- package/lib/es/treeSelect/treeSelect.css +36 -4
- package/lib/es/treeSelect/treeSelect.scss +49 -1
- package/lib/es/typography/typography.css +8 -8
- package/lib/es/upload/upload.css +8 -8
- package/lib/es/utils/Store.d.ts +1 -1
- package/lib/es/utils/Store.js +1 -0
- package/package.json +19 -4
- package/scrollList/itemFoundation.ts +12 -0
- package/slider/foundation.ts +55 -15
- package/slider/rtl.scss +62 -0
- package/slider/slider.scss +2 -0
- package/table/foundation.ts +197 -29
- package/table/rtl.scss +21 -0
- package/table/table.scss +49 -0
- package/tooltip/arrow.scss +4 -4
- package/tooltip/foundation.ts +86 -5
- package/transfer/constants.ts +3 -1
- package/transfer/foundation.ts +8 -1
- package/transfer/transfer.scss +10 -0
- package/tree/foundation.ts +34 -5
- package/treeSelect/foundation.ts +10 -1
- package/treeSelect/treeSelect.scss +49 -1
- package/utils/Store.ts +2 -1
package/lib/es/table/rtl.scss
CHANGED
|
@@ -144,6 +144,27 @@ $module: #{$prefix}-table;
|
|
|
144
144
|
border-left: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
+
|
|
148
|
+
// Fix #441 (RTL): when horizontal scroll is enabled and table is NOT scrolled to the far left,
|
|
149
|
+
// the outer left border can be outside of viewport (the real border is rendered by the last column cell).
|
|
150
|
+
// Draw an overlay left border on the container to keep it visible.
|
|
151
|
+
// When scrolled to the far left, `.semi-table-scroll-position-left` exists and we should not draw it.
|
|
152
|
+
&:not(.#{$module}-scroll-position-left) {
|
|
153
|
+
& > .#{$module}-container {
|
|
154
|
+
&::after {
|
|
155
|
+
content: '';
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 0;
|
|
158
|
+
left: 0;
|
|
159
|
+
bottom: 0;
|
|
160
|
+
width: $width-table_base_border;
|
|
161
|
+
background-color: $color-table-border-default;
|
|
162
|
+
display: block;
|
|
163
|
+
z-index: $z-table_fixed_column + 2;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
147
168
|
}
|
|
148
169
|
|
|
149
170
|
&-fixed {
|
package/lib/es/table/table.css
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.semi-table-pagination-info {
|
|
23
23
|
font-size: 14px;
|
|
24
24
|
line-height: 20px;
|
|
25
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
25
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
26
26
|
font-weight: 400;
|
|
27
27
|
}
|
|
28
28
|
.semi-table-pagination-outer {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
padding: 0;
|
|
49
49
|
font-size: 14px;
|
|
50
50
|
line-height: 20px;
|
|
51
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
51
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
52
52
|
color: var(--semi-color-text-0);
|
|
53
53
|
width: 100%;
|
|
54
54
|
}
|
|
@@ -222,6 +222,14 @@
|
|
|
222
222
|
display: table-row;
|
|
223
223
|
background-color: var(--semi-color-bg-1);
|
|
224
224
|
}
|
|
225
|
+
.semi-table-tbody > .semi-table-row.semi-table-row-hovered > .semi-table-row-cell {
|
|
226
|
+
background-image: linear-gradient(0deg, var(--semi-color-fill-0), var(--semi-color-fill-0));
|
|
227
|
+
background-color: var(--semi-color-bg-0);
|
|
228
|
+
}
|
|
229
|
+
.semi-table-tbody > .semi-table-row.semi-table-row-hovered > .semi-table-row-cell.semi-table-cell-fixed-left, .semi-table-tbody > .semi-table-row.semi-table-row-hovered > .semi-table-row-cell.semi-table-cell-fixed-right {
|
|
230
|
+
background-image: linear-gradient(0deg, var(--semi-color-fill-0), var(--semi-color-fill-0));
|
|
231
|
+
background-color: var(--semi-color-bg-1);
|
|
232
|
+
}
|
|
225
233
|
.semi-table-tbody > .semi-table-row:hover > .semi-table-row-cell {
|
|
226
234
|
background-image: linear-gradient(0deg, var(--semi-color-fill-0), var(--semi-color-fill-0));
|
|
227
235
|
background-color: var(--semi-color-bg-0);
|
|
@@ -408,6 +416,21 @@
|
|
|
408
416
|
border-right: 1px solid var(--semi-color-border);
|
|
409
417
|
border-bottom: 1px solid var(--semi-color-border);
|
|
410
418
|
}
|
|
419
|
+
.semi-table-bordered:not(.semi-table-scroll-position-right) > .semi-table-container::after {
|
|
420
|
+
content: "";
|
|
421
|
+
position: absolute;
|
|
422
|
+
top: 0;
|
|
423
|
+
right: 0;
|
|
424
|
+
bottom: 0;
|
|
425
|
+
width: 1px;
|
|
426
|
+
background-color: var(--semi-color-border);
|
|
427
|
+
display: block;
|
|
428
|
+
z-index: 103;
|
|
429
|
+
pointer-events: none;
|
|
430
|
+
}
|
|
431
|
+
.semi-table-bordered:not(.semi-table-scroll-position-right) > .semi-table-container > .semi-table-header {
|
|
432
|
+
box-shadow: inset-1px 0 0 0 var(--semi-color-border);
|
|
433
|
+
}
|
|
411
434
|
:where(.semi-table-bordered > .semi-table-container) > .semi-table-body > .semi-table-placeholder {
|
|
412
435
|
border-right: 1px solid var(--semi-color-border);
|
|
413
436
|
}
|
|
@@ -427,6 +450,7 @@
|
|
|
427
450
|
position: sticky;
|
|
428
451
|
left: 0px;
|
|
429
452
|
z-index: 1;
|
|
453
|
+
box-sizing: border-box;
|
|
430
454
|
padding: 16px 12px;
|
|
431
455
|
color: var(--semi-color-text-2);
|
|
432
456
|
font-size: 14px;
|
|
@@ -584,6 +608,18 @@
|
|
|
584
608
|
border-right: 0;
|
|
585
609
|
border-left: 1px solid var(--semi-color-border);
|
|
586
610
|
}
|
|
611
|
+
.semi-table-wrapper-rtl .semi-table-bordered:not(.semi-table-scroll-position-left) > .semi-table-container::after {
|
|
612
|
+
content: "";
|
|
613
|
+
position: absolute;
|
|
614
|
+
top: 0;
|
|
615
|
+
left: 0;
|
|
616
|
+
bottom: 0;
|
|
617
|
+
width: 1px;
|
|
618
|
+
background-color: var(--semi-color-border);
|
|
619
|
+
display: block;
|
|
620
|
+
z-index: 103;
|
|
621
|
+
pointer-events: none;
|
|
622
|
+
}
|
|
587
623
|
.semi-table-wrapper-rtl .semi-table-fixed > .semi-table-tbody > .semi-table-row-expand > .semi-table-row-cell > .semi-table-expand-inner, .semi-table-wrapper-rtl .semi-table-fixed > .semi-table-tbody > .semi-table-row-section > .semi-table-row-cell > .semi-table-section-inner {
|
|
588
624
|
left: auto;
|
|
589
625
|
right: 0;
|
package/lib/es/table/table.scss
CHANGED
|
@@ -259,6 +259,23 @@ $module: #{$prefix}-table;
|
|
|
259
259
|
display: table-row;
|
|
260
260
|
background-color: $color-table_body-bg-default;
|
|
261
261
|
|
|
262
|
+
// Programmatic hover state (e.g. rowSpanHover feature)
|
|
263
|
+
// Keep visual effect consistent with native :hover
|
|
264
|
+
&.#{$module}-row-hovered {
|
|
265
|
+
& > .#{$module}-row-cell {
|
|
266
|
+
background-image: linear-gradient(0deg, $color-table_body-bg-hover, $color-table_body-bg-hover);
|
|
267
|
+
background-color: $color-table_cell-bg-hover;
|
|
268
|
+
|
|
269
|
+
&.#{$module}-cell-fixed {
|
|
270
|
+
&-left,
|
|
271
|
+
&-right {
|
|
272
|
+
background-image: linear-gradient(0deg, $color-table_body-bg-hover, $color-table_body-bg-hover);
|
|
273
|
+
background-color: $color-table_body-bg-default;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
262
279
|
&:hover {
|
|
263
280
|
& > .#{$module}-row-cell {
|
|
264
281
|
// $color-table_body-bg-hover has transparency,will reveal the background color $color-table_body-bg-default\
|
|
@@ -538,6 +555,35 @@ $module: #{$prefix}-table;
|
|
|
538
555
|
}
|
|
539
556
|
}
|
|
540
557
|
|
|
558
|
+
// Fix #441: when horizontal scroll is enabled (e.g. scroll.x='101%') and table is NOT scrolled to the far right,
|
|
559
|
+
// the outer right border can be outside of viewport because the real right border is rendered by the
|
|
560
|
+
// last column cell border (which is scrollable). Draw an overlay right border on the container to keep it visible.
|
|
561
|
+
// When scrolled to the far right, `.semi-table-scroll-position-right` exists and we should not draw it to avoid
|
|
562
|
+
// double borders.
|
|
563
|
+
&:not(.#{$module}-scroll-position-right) {
|
|
564
|
+
& > .#{$module}-container {
|
|
565
|
+
&::after {
|
|
566
|
+
content: '';
|
|
567
|
+
position: absolute;
|
|
568
|
+
top: 0;
|
|
569
|
+
right: 0;
|
|
570
|
+
bottom: 0;
|
|
571
|
+
width: $width-table_base_border;
|
|
572
|
+
background-color: $color-table-border-default;
|
|
573
|
+
display: block;
|
|
574
|
+
// Make sure the overlay border stays above table content/fixed columns
|
|
575
|
+
z-index: $z-table_fixed_column + 2;
|
|
576
|
+
pointer-events: none;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Ensure header shows a visible right border even when the container overlay
|
|
580
|
+
// is covered by native scrollbars in some browsers.
|
|
581
|
+
& > .#{$module}-header {
|
|
582
|
+
box-shadow: inset -$width-table_base_border 0 0 0 $color-table-border-default;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
541
587
|
:where(& > .#{$module}-container) {
|
|
542
588
|
& > .#{$module}-body > .#{$module}-placeholder {
|
|
543
589
|
border-right: $width-table_base_border $border-table_base-borderStyle $color-table-border-default;
|
|
@@ -572,6 +618,9 @@ $module: #{$prefix}-table;
|
|
|
572
618
|
position: sticky;
|
|
573
619
|
left: 0px;
|
|
574
620
|
z-index: 1;
|
|
621
|
+
// In bordered mode, placeholder may receive an extra side border to complete the outer frame.
|
|
622
|
+
// Use border-box to avoid 1px horizontal overflow (and unwanted horizontal scrollbar) in empty data + scroll.y cases.
|
|
623
|
+
box-sizing: border-box;
|
|
575
624
|
padding: #{$spacing-table-paddingY} #{$spacing-table-paddingX};
|
|
576
625
|
color: $color-table_placeholder-text-default;
|
|
577
626
|
font-size: #{$font-table_base-fontSize};
|
package/lib/es/tabs/tabs.css
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
.semi-tabs-bar .semi-tabs-tab {
|
|
52
52
|
font-size: 14px;
|
|
53
53
|
line-height: 20px;
|
|
54
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
54
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
55
55
|
cursor: pointer;
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
position: relative;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
.semi-tabs-tab-single.semi-tabs-tab {
|
|
113
113
|
font-size: 14px;
|
|
114
114
|
line-height: 20px;
|
|
115
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
115
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
116
116
|
cursor: pointer;
|
|
117
117
|
box-sizing: border-box;
|
|
118
118
|
position: relative;
|
package/lib/es/tag/tag.css
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.semi-tag-default, .semi-tag-small {
|
|
19
19
|
font-size: 12px;
|
|
20
20
|
line-height: 16px;
|
|
21
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
21
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
22
22
|
height: 20px;
|
|
23
23
|
padding: 2px 8px;
|
|
24
24
|
}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.semi-tag-large {
|
|
35
35
|
font-size: 12px;
|
|
36
36
|
line-height: 16px;
|
|
37
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
37
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
38
38
|
padding: 4px 8px;
|
|
39
39
|
height: 24px;
|
|
40
40
|
}
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
font-weight: 600;
|
|
233
233
|
font-size: 14px;
|
|
234
234
|
line-height: 20px;
|
|
235
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
235
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
236
236
|
color: var(--semi-color-text-2);
|
|
237
237
|
flex-shrink: 0;
|
|
238
238
|
white-space: nowrap;
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
white-space: nowrap;
|
|
249
249
|
font-size: 14px;
|
|
250
250
|
line-height: 20px;
|
|
251
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
251
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
252
252
|
}
|
|
253
253
|
.semi-tagInput-prefix-icon, .semi-tagInput-suffix-icon {
|
|
254
254
|
color: var(--semi-color-text-2);
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
.semi-timepicker .semi-timepicker-input {
|
|
80
80
|
font-size: 14px;
|
|
81
81
|
line-height: 20px;
|
|
82
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
82
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
83
83
|
border-radius: var(--semi-border-radius-small);
|
|
84
84
|
align-items: center;
|
|
85
85
|
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
.semi-timeline-item-content {
|
|
78
78
|
font-size: 14px;
|
|
79
79
|
line-height: 20px;
|
|
80
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
80
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
81
81
|
position: relative;
|
|
82
82
|
margin: 0 0 0 25px;
|
|
83
83
|
word-break: break-word;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
.semi-timeline-item-content-extra, .semi-timeline-item-content-time {
|
|
87
87
|
font-size: 12px;
|
|
88
88
|
line-height: 16px;
|
|
89
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
89
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
90
90
|
color: var(--semi-color-text-2);
|
|
91
91
|
margin-top: 4px;
|
|
92
92
|
}
|
package/lib/es/toast/toast.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
box-shadow: var(--semi-shadow-elevated);
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
line-height: 20px;
|
|
37
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
37
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
38
38
|
background-color: var(--semi-color-bg-3);
|
|
39
39
|
border-radius: var(--semi-border-radius-medium);
|
|
40
40
|
padding: 12px 8px 12px 8px;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
&[x-placement='top'] {
|
|
25
25
|
.#{$module-icon} {
|
|
26
|
-
left: 50
|
|
26
|
+
left: var(--semi-tooltip-arrow-offset-x, 50%);
|
|
27
27
|
transform: translateX(-50%);
|
|
28
28
|
bottom: (-$height-tooltip_arrow + $spacing-tooltip_arrow_offset-y);
|
|
29
29
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
width: $width-tooltip_arrow_vertical;
|
|
62
62
|
height: $height-tooltip_arrow_vertical;
|
|
63
63
|
right: (-$width-tooltip_arrow_vertical + $spacing-tooltip_arrow_offset-x);
|
|
64
|
-
top: 50
|
|
64
|
+
top: var(--semi-tooltip-arrow-offset-y, 50%);
|
|
65
65
|
transform: translateY(-50%);
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
width: $width-tooltip_arrow_vertical;
|
|
94
94
|
height: $height-tooltip_arrow_vertical;
|
|
95
95
|
left: -$width-tooltip_arrow_vertical + $spacing-tooltip_arrow_offset-x;
|
|
96
|
-
top: 50
|
|
96
|
+
top: var(--semi-tooltip-arrow-offset-y, 50%);
|
|
97
97
|
transform: translateY(-50%) rotate(180deg);
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
&[x-placement='bottom'] {
|
|
123
123
|
.#{$module-icon} {
|
|
124
124
|
top: (-$height-tooltip_arrow + $spacing-tooltip_arrow_offset-y);
|
|
125
|
-
left: 50
|
|
125
|
+
left: var(--semi-tooltip-arrow-offset-x, 50%);
|
|
126
126
|
transform: translateX(-50%) rotate(180deg);
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -326,7 +326,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
326
326
|
switch (types) {
|
|
327
327
|
case 'focus':
|
|
328
328
|
triggerEventSet[eventNames.focus] = () => {
|
|
329
|
-
this.delayShow();
|
|
329
|
+
this.getProp('condition') !== false && this.delayShow();
|
|
330
330
|
};
|
|
331
331
|
triggerEventSet[eventNames.blur] = () => {
|
|
332
332
|
this.delayHide();
|
|
@@ -336,7 +336,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
336
336
|
case 'click':
|
|
337
337
|
triggerEventSet[eventNames.click] = () => {
|
|
338
338
|
// this.delayShow();
|
|
339
|
-
this.show();
|
|
339
|
+
this.getProp('condition') !== false && this.show();
|
|
340
340
|
};
|
|
341
341
|
portalEventSet = {};
|
|
342
342
|
// Click outside needs special treatment, can not be directly tied to the trigger Element, need to be bound to the document
|
|
@@ -345,7 +345,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
345
345
|
triggerEventSet[eventNames.mouseEnter] = () => {
|
|
346
346
|
// console.log(e);
|
|
347
347
|
this.setCache('isClickToHide', false);
|
|
348
|
-
this.delayShow();
|
|
348
|
+
this.getProp('condition') !== false && this.delayShow();
|
|
349
349
|
// this.show('trigger');
|
|
350
350
|
};
|
|
351
351
|
triggerEventSet[eventNames.mouseLeave] = () => {
|
|
@@ -358,7 +358,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
358
358
|
const {
|
|
359
359
|
disableFocusListener
|
|
360
360
|
} = this.getProps();
|
|
361
|
-
!disableFocusListener && this.delayShow();
|
|
361
|
+
this.getProp('condition') !== false && !disableFocusListener && this.delayShow();
|
|
362
362
|
};
|
|
363
363
|
triggerEventSet[eventNames.blur] = () => {
|
|
364
364
|
const {
|
|
@@ -376,7 +376,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
376
376
|
if (this.getCache('isClickToHide')) {
|
|
377
377
|
return;
|
|
378
378
|
}
|
|
379
|
-
this.delayShow();
|
|
379
|
+
this.getProp('condition') !== false && this.delayShow();
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
break;
|
|
@@ -386,6 +386,9 @@ export default class Tooltip extends BaseFoundation {
|
|
|
386
386
|
break;
|
|
387
387
|
case 'contextMenu':
|
|
388
388
|
triggerEventSet[eventNames.contextMenu] = e => {
|
|
389
|
+
if (this.getProp('condition') === false) {
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
389
392
|
e.preventDefault();
|
|
390
393
|
this.show();
|
|
391
394
|
};
|
|
@@ -673,11 +676,75 @@ export default class Tooltip extends BaseFoundation {
|
|
|
673
676
|
top = position.includes('Top') ? top + offsetY : top - offsetY;
|
|
674
677
|
}
|
|
675
678
|
}
|
|
679
|
+
// Handle arrowPointAtCenter for center positions (top/bottom/left/right)
|
|
680
|
+
// For center positions, the arrow needs to point at trigger center, not Popover center
|
|
681
|
+
let cssArrowOffsetX;
|
|
682
|
+
let cssArrowOffsetY;
|
|
683
|
+
if (showArrow) {
|
|
684
|
+
const isCenterPosition = ['top', 'bottom', 'left', 'right'].includes(position);
|
|
685
|
+
if (isCenterPosition) {
|
|
686
|
+
if (arrowPointAtCenter) {
|
|
687
|
+
// arrowPointAtCenter=true: arrow should point at trigger center
|
|
688
|
+
// Calculate arrow position relative to Popover left/top edge
|
|
689
|
+
if ((position === 'top' || position === 'bottom') && wrapperRect.width > 0) {
|
|
690
|
+
// Popover center is at `left`, trigger center is at `middleX`
|
|
691
|
+
// Arrow position from Popover left edge:
|
|
692
|
+
// = middleX - (left - wrapperRect.width/2)
|
|
693
|
+
// = middleX - left + wrapperRect.width/2
|
|
694
|
+
// Percentage: (middleX - left) / wrapperRect.width + 0.5
|
|
695
|
+
const arrowOffsetPercent = (middleX - left) / wrapperRect.width + 0.5;
|
|
696
|
+
// Clamp to valid range to prevent arrow going outside Popover
|
|
697
|
+
const minOffset = (horizontalArrowWidth / 2 + positionOffsetX) / wrapperRect.width;
|
|
698
|
+
const maxOffset = 1 - minOffset;
|
|
699
|
+
const clampedOffset = Math.max(minOffset, Math.min(maxOffset, arrowOffsetPercent));
|
|
700
|
+
// Only set CSS variable if different from default 50%
|
|
701
|
+
if (Math.abs(clampedOffset - 0.5) > 0.01) {
|
|
702
|
+
cssArrowOffsetX = `${clampedOffset * 100}%`;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
if ((position === 'left' || position === 'right') && wrapperRect.height > 0) {
|
|
706
|
+
const arrowOffsetPercent = (middleY - top) / wrapperRect.height + 0.5;
|
|
707
|
+
const minOffset = (verticalArrowHeight / 2 + positionOffsetY) / wrapperRect.height;
|
|
708
|
+
const maxOffset = 1 - minOffset;
|
|
709
|
+
const clampedOffset = Math.max(minOffset, Math.min(maxOffset, arrowOffsetPercent));
|
|
710
|
+
if (Math.abs(clampedOffset - 0.5) > 0.01) {
|
|
711
|
+
cssArrowOffsetY = `${clampedOffset * 100}%`;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
} else {
|
|
715
|
+
// arrowPointAtCenter=false: arrow should be at Popover edge
|
|
716
|
+
// Determine which edge based on trigger position in viewport
|
|
717
|
+
if ((position === 'top' || position === 'bottom') && wrapperRect.width > 0) {
|
|
718
|
+
const offsetXWithArrow = positionOffsetX + horizontalArrowWidth / 2;
|
|
719
|
+
if (isTriggerNearLeft) {
|
|
720
|
+
cssArrowOffsetX = `${offsetXWithArrow / wrapperRect.width * 100}%`;
|
|
721
|
+
} else {
|
|
722
|
+
cssArrowOffsetX = `${(wrapperRect.width - offsetXWithArrow) / wrapperRect.width * 100}%`;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
if ((position === 'left' || position === 'right') && wrapperRect.height > 0) {
|
|
726
|
+
const offsetYWithArrow = positionOffsetY + verticalArrowHeight / 2;
|
|
727
|
+
if (isTriggerNearTop) {
|
|
728
|
+
cssArrowOffsetY = `${offsetYWithArrow / wrapperRect.height * 100}%`;
|
|
729
|
+
} else {
|
|
730
|
+
cssArrowOffsetY = `${(wrapperRect.height - offsetYWithArrow) / wrapperRect.height * 100}%`;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
676
736
|
// The left/top value here must be rounded, otherwise it will cause the small triangle to shake
|
|
677
737
|
const style = {
|
|
678
738
|
left: this._roundPixel(left),
|
|
679
739
|
top: this._roundPixel(top)
|
|
680
740
|
};
|
|
741
|
+
// Add CSS variables for arrow positioning
|
|
742
|
+
if (cssArrowOffsetX) {
|
|
743
|
+
style['--semi-tooltip-arrow-offset-x'] = cssArrowOffsetX;
|
|
744
|
+
}
|
|
745
|
+
if (cssArrowOffsetY) {
|
|
746
|
+
style['--semi-tooltip-arrow-offset-y'] = cssArrowOffsetY;
|
|
747
|
+
}
|
|
681
748
|
let transform = '';
|
|
682
749
|
if (translateX != null) {
|
|
683
750
|
transform += `translateX(${translateX * 100}%) `;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
overflow-wrap: break-word;
|
|
55
55
|
font-size: 14px;
|
|
56
56
|
line-height: 20px;
|
|
57
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
57
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
58
58
|
opacity: 0;
|
|
59
59
|
max-width: 240px;
|
|
60
60
|
}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
color: rgba(var(--semi-grey-7), 1);
|
|
92
92
|
}
|
|
93
93
|
.semi-tooltip-wrapper[x-placement=top] .semi-tooltip-icon-arrow {
|
|
94
|
-
left: 50
|
|
94
|
+
left: var(--semi-tooltip-arrow-offset-x, 50%);
|
|
95
95
|
transform: translateX(-50%);
|
|
96
96
|
bottom: -6px;
|
|
97
97
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
width: 7px;
|
|
130
130
|
height: 24px;
|
|
131
131
|
right: -6px;
|
|
132
|
-
top: 50
|
|
132
|
+
top: var(--semi-tooltip-arrow-offset-y, 50%);
|
|
133
133
|
transform: translateY(-50%);
|
|
134
134
|
}
|
|
135
135
|
.semi-tooltip-wrapper[x-placement=left].semi-tooltip-with-arrow,
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
width: 7px;
|
|
162
162
|
height: 24px;
|
|
163
163
|
left: -6px;
|
|
164
|
-
top: 50
|
|
164
|
+
top: var(--semi-tooltip-arrow-offset-y, 50%);
|
|
165
165
|
transform: translateY(-50%) rotate(180deg);
|
|
166
166
|
}
|
|
167
167
|
.semi-tooltip-wrapper[x-placement=right].semi-tooltip-with-arrow,
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
}
|
|
191
191
|
.semi-tooltip-wrapper[x-placement=bottom] .semi-tooltip-icon-arrow {
|
|
192
192
|
top: -6px;
|
|
193
|
-
left: 50
|
|
193
|
+
left: var(--semi-tooltip-arrow-offset-x, 50%);
|
|
194
194
|
transform: translateX(-50%) rotate(180deg);
|
|
195
195
|
}
|
|
196
196
|
.semi-tooltip-wrapper[x-placement=bottom].semi-tooltip-with-arrow,
|
|
@@ -31,6 +31,8 @@ export interface TransferAdapter<P = Record<string, any>, S = Record<string, any
|
|
|
31
31
|
updateInput: (input: string) => void;
|
|
32
32
|
updateSearchResult: (searchResult: Set<number | string>) => void;
|
|
33
33
|
searchTree: (keyword: string) => void;
|
|
34
|
+
updateCurrentPage: (currentPage: number) => void;
|
|
35
|
+
notifyPageChange: (currentPage: number) => void;
|
|
34
36
|
}
|
|
35
37
|
export default class TransferFoundation<P = Record<string, any>, S = Record<string, any>> extends BaseFoundation<TransferAdapter<P, S>> {
|
|
36
38
|
constructor(adapter: TransferAdapter<P, S>);
|
|
@@ -59,4 +61,5 @@ export default class TransferFoundation<P = Record<string, any>, S = Record<stri
|
|
|
59
61
|
};
|
|
60
62
|
_notifyChange(selectedItems: DataItemMap): void;
|
|
61
63
|
handleSortEnd(callbackProps: OnSortEndProps): void;
|
|
64
|
+
handlePageChange(currentPage: number): void;
|
|
62
65
|
}
|
|
@@ -227,4 +227,8 @@ export default class TransferFoundation extends BaseFoundation {
|
|
|
227
227
|
this._adapter.updateSelected(newSelectedItems);
|
|
228
228
|
this._notifyChange(newSelectedItems);
|
|
229
229
|
}
|
|
230
|
+
handlePageChange(currentPage) {
|
|
231
|
+
this._adapter.updateCurrentPage(currentPage);
|
|
232
|
+
this._adapter.notifyPageChange(currentPage);
|
|
233
|
+
}
|
|
230
234
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.semi-transfer-header {
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
line-height: 16px;
|
|
38
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
38
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
41
|
height: 24px;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
.semi-transfer-header .semi-button {
|
|
54
54
|
font-size: 12px;
|
|
55
55
|
line-height: 16px;
|
|
56
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
56
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
57
57
|
}
|
|
58
58
|
.semi-transfer-item {
|
|
59
59
|
min-height: 36px;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
user-select: none;
|
|
66
66
|
font-size: 14px;
|
|
67
67
|
line-height: 20px;
|
|
68
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
68
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: space-between;
|
|
@@ -102,6 +102,15 @@
|
|
|
102
102
|
overflow: auto;
|
|
103
103
|
flex-grow: 1;
|
|
104
104
|
}
|
|
105
|
+
.semi-transfer-left-pagination {
|
|
106
|
+
padding-top: 12px;
|
|
107
|
+
padding-bottom: 12px;
|
|
108
|
+
padding-left: 12px;
|
|
109
|
+
padding-right: 12px;
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
display: flex;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
}
|
|
105
114
|
.semi-transfer-left-empty {
|
|
106
115
|
height: 36px;
|
|
107
116
|
}
|
|
@@ -163,7 +172,7 @@
|
|
|
163
172
|
align-items: center;
|
|
164
173
|
font-size: 12px;
|
|
165
174
|
line-height: 16px;
|
|
166
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
175
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
167
176
|
color: var(--semi-color-text-2);
|
|
168
177
|
}
|
|
169
178
|
.semi-transfer-filter {
|
|
@@ -177,7 +186,7 @@
|
|
|
177
186
|
padding-left: 12px;
|
|
178
187
|
font-size: 12px;
|
|
179
188
|
line-height: 16px;
|
|
180
|
-
font-family: "Inter", -apple-system, BlinkMacSystemFont, "
|
|
189
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
181
190
|
height: 28px;
|
|
182
191
|
display: flex;
|
|
183
192
|
align-items: center;
|
|
@@ -118,6 +118,16 @@ $module: #{$prefix}-transfer;
|
|
|
118
118
|
flex-grow: 1;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
&-pagination {
|
|
122
|
+
padding-top: $spacing-base-tight;
|
|
123
|
+
padding-bottom: $spacing-base-tight;
|
|
124
|
+
padding-left: $spacing-base-tight;
|
|
125
|
+
padding-right: $spacing-base-tight;
|
|
126
|
+
flex-shrink: 0;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
}
|
|
130
|
+
|
|
121
131
|
&-empty {
|
|
122
132
|
height: $height-transfer_left_empty;
|
|
123
133
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* The drag and drop handler implementation is referenced from rc-tree
|
|
3
3
|
* https://github.com/react-component/tree
|
|
4
4
|
*/
|
|
5
|
+
import { throttle } from 'lodash';
|
|
5
6
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
6
7
|
import type { KeyMapProps } from './treeUtil';
|
|
7
8
|
export type { KeyMapProps };
|
|
@@ -241,7 +242,9 @@ export interface TreeAdapter extends DefaultAdapter<BasicTreeProps, BasicTreeInn
|
|
|
241
242
|
}
|
|
242
243
|
export default class TreeFoundation extends BaseFoundation<TreeAdapter, BasicTreeProps, BasicTreeInnerData> {
|
|
243
244
|
delayedDragEnterLogic: any;
|
|
245
|
+
throttledDragOverUpdate: ReturnType<typeof throttle>;
|
|
244
246
|
constructor(adapter: TreeAdapter);
|
|
247
|
+
destroy(): void;
|
|
245
248
|
_isMultiple(): any;
|
|
246
249
|
_isAnimated(): any;
|
|
247
250
|
_isDisabled(treeNode?: BasicTreeNodeProps): any;
|