@douyinfe/semi-foundation 2.23.0 → 2.23.2

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 (54) hide show
  1. package/form/form.scss +1 -0
  2. package/form/rtl.scss +1 -0
  3. package/form/variables.scss +1 -0
  4. package/input/foundation.ts +0 -5
  5. package/lib/cjs/form/form.css +2 -0
  6. package/lib/cjs/form/form.scss +1 -0
  7. package/lib/cjs/form/rtl.scss +1 -0
  8. package/lib/cjs/form/variables.scss +1 -0
  9. package/lib/cjs/input/foundation.d.ts +0 -2
  10. package/lib/cjs/input/foundation.js +0 -4
  11. package/lib/cjs/modal/modalFoundation.d.ts +0 -3
  12. package/lib/cjs/modal/modalFoundation.js +0 -4
  13. package/lib/cjs/sideSheet/sideSheetFoundation.d.ts +0 -3
  14. package/lib/cjs/sideSheet/sideSheetFoundation.js +0 -4
  15. package/lib/cjs/switch/rtl.scss +1 -1
  16. package/lib/cjs/switch/switch.css +1 -1
  17. package/lib/cjs/switch/switch.scss +2 -2
  18. package/lib/cjs/switch/variables.scss +3 -2
  19. package/lib/cjs/tagInput/tagInput.css +42 -0
  20. package/lib/cjs/tagInput/tagInput.scss +52 -0
  21. package/lib/cjs/tagInput/variables.scss +5 -0
  22. package/lib/cjs/transfer/transfer.css +3 -0
  23. package/lib/cjs/transfer/transfer.scss +9 -3
  24. package/lib/cjs/transfer/variables.scss +2 -0
  25. package/lib/es/form/form.css +2 -0
  26. package/lib/es/form/form.scss +1 -0
  27. package/lib/es/form/rtl.scss +1 -0
  28. package/lib/es/form/variables.scss +1 -0
  29. package/lib/es/input/foundation.d.ts +0 -2
  30. package/lib/es/input/foundation.js +0 -4
  31. package/lib/es/modal/modalFoundation.d.ts +0 -3
  32. package/lib/es/modal/modalFoundation.js +0 -4
  33. package/lib/es/sideSheet/sideSheetFoundation.d.ts +0 -3
  34. package/lib/es/sideSheet/sideSheetFoundation.js +0 -4
  35. package/lib/es/switch/rtl.scss +1 -1
  36. package/lib/es/switch/switch.css +1 -1
  37. package/lib/es/switch/switch.scss +2 -2
  38. package/lib/es/switch/variables.scss +3 -2
  39. package/lib/es/tagInput/tagInput.css +42 -0
  40. package/lib/es/tagInput/tagInput.scss +52 -0
  41. package/lib/es/tagInput/variables.scss +5 -0
  42. package/lib/es/transfer/transfer.css +3 -0
  43. package/lib/es/transfer/transfer.scss +9 -3
  44. package/lib/es/transfer/variables.scss +2 -0
  45. package/modal/modalFoundation.ts +2 -7
  46. package/package.json +2 -2
  47. package/sideSheet/sideSheetFoundation.ts +2 -7
  48. package/switch/rtl.scss +1 -1
  49. package/switch/switch.scss +2 -2
  50. package/switch/variables.scss +3 -2
  51. package/tagInput/tagInput.scss +52 -0
  52. package/tagInput/variables.scss +5 -0
  53. package/transfer/transfer.scss +9 -3
  54. package/transfer/variables.scss +2 -0
package/form/form.scss CHANGED
@@ -92,6 +92,7 @@ $rating: #{$prefix}-rating;
92
92
  font-weight: $font-form_label-fontWeight;
93
93
  color: $color-form_label-text-default;
94
94
  margin-bottom: $spacing-form_label-marginBottom;
95
+ padding-right: $spacing-form_label-paddingRight;
95
96
  display: inline-block;
96
97
  vertical-align: middle;
97
98
  @include font-size-regular;
package/form/rtl.scss CHANGED
@@ -33,6 +33,7 @@ $rating: #{$prefix}-rating;
33
33
 
34
34
  &-field-label {
35
35
  padding-right: 0;
36
+ padding-left: $spacing-form_label-paddingRight;
36
37
 
37
38
  &-with-extra {
38
39
  .#{$field}-label-extra {
@@ -7,6 +7,7 @@ $spacing-form_field_group_vertical-paddingTop: $spacing-base-tight; // 垂直布
7
7
  $spacing-form_field_group_vertical-paddingBottom: $spacing-base-tight; // 垂直布局表单组底部内边距
8
8
 
9
9
  // form label
10
+ $spacing-form_label-paddingRight: $spacing-base; // 表单项标签右侧边距(水平布局)
10
11
  $spacing-form_label-paddingTop: ($height-control-default - 20px) * 0.5; // 表单项标签顶部内边距(水平布局)
11
12
  $spacing-form_label-marginBottom: $spacing-extra-tight; // 表单项标签底部外边距
12
13
  $spacing-form_label_extra-marginLeft: $spacing-extra-tight; // 表单项标签额外信息左侧边距
@@ -21,7 +21,6 @@ export interface InputAdapter extends Partial<DefaultAdapter>, Partial<InputDefa
21
21
  notifyKeyUp(e: any): void;
22
22
  notifyKeyPress(e: any): void;
23
23
  notifyEnterPress(e: any): void;
24
- setPaddingLeft(paddingLeft: string): void;
25
24
  isEventTarget(e: any): boolean
26
25
  }
27
26
 
@@ -266,10 +265,6 @@ class InputFoundation extends BaseFoundation<InputAdapter> {
266
265
  }
267
266
  }
268
267
 
269
- setPaddingLeft(paddingLeft: string) {
270
- this._adapter.setPaddingLeft(paddingLeft);
271
- }
272
-
273
268
  isAllowClear() {
274
269
  const { value, isFocus, isHovering } = this._adapter.getStates();
275
270
  const { showClear, disabled } = this._adapter.getProps();
@@ -48,6 +48,7 @@
48
48
  font-weight: 600;
49
49
  color: var(--semi-color-text-0);
50
50
  margin-bottom: 4px;
51
+ padding-right: 16px;
51
52
  display: inline-block;
52
53
  vertical-align: middle;
53
54
  font-size: 14px;
@@ -231,6 +232,7 @@
231
232
  .semi-rtl .semi-form-field-label,
232
233
  .semi-portal-rtl .semi-form-field-label {
233
234
  padding-right: 0;
235
+ padding-left: 16px;
234
236
  }
235
237
  .semi-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra,
236
238
  .semi-portal-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra {
@@ -92,6 +92,7 @@ $rating: #{$prefix}-rating;
92
92
  font-weight: $font-form_label-fontWeight;
93
93
  color: $color-form_label-text-default;
94
94
  margin-bottom: $spacing-form_label-marginBottom;
95
+ padding-right: $spacing-form_label-paddingRight;
95
96
  display: inline-block;
96
97
  vertical-align: middle;
97
98
  @include font-size-regular;
@@ -33,6 +33,7 @@ $rating: #{$prefix}-rating;
33
33
 
34
34
  &-field-label {
35
35
  padding-right: 0;
36
+ padding-left: $spacing-form_label-paddingRight;
36
37
 
37
38
  &-with-extra {
38
39
  .#{$field}-label-extra {
@@ -7,6 +7,7 @@ $spacing-form_field_group_vertical-paddingTop: $spacing-base-tight; // 垂直布
7
7
  $spacing-form_field_group_vertical-paddingBottom: $spacing-base-tight; // 垂直布局表单组底部内边距
8
8
 
9
9
  // form label
10
+ $spacing-form_label-paddingRight: $spacing-base; // 表单项标签右侧边距(水平布局)
10
11
  $spacing-form_label-paddingTop: ($height-control-default - 20px) * 0.5; // 表单项标签顶部内边距(水平布局)
11
12
  $spacing-form_label-marginBottom: $spacing-extra-tight; // 表单项标签底部外边距
12
13
  $spacing-form_label_extra-marginLeft: $spacing-extra-tight; // 表单项标签额外信息左侧边距
@@ -15,7 +15,6 @@ export interface InputAdapter extends Partial<DefaultAdapter>, Partial<InputDefa
15
15
  notifyKeyUp(e: any): void;
16
16
  notifyKeyPress(e: any): void;
17
17
  notifyEnterPress(e: any): void;
18
- setPaddingLeft(paddingLeft: string): void;
19
18
  isEventTarget(e: any): boolean;
20
19
  }
21
20
  declare class InputFoundation extends BaseFoundation<InputAdapter> {
@@ -67,7 +66,6 @@ declare class InputFoundation extends BaseFoundation<InputAdapter> {
67
66
  handleKeyDown(e: any): void;
68
67
  handleKeyUp(e: any): void;
69
68
  handleKeyPress(e: any): void;
70
- setPaddingLeft(paddingLeft: string): void;
71
69
  isAllowClear(): any;
72
70
  handleClickPrefixOrSuffix(e: any): void;
73
71
  /**
@@ -321,10 +321,6 @@ class InputFoundation extends _foundation.default {
321
321
  }
322
322
  }
323
323
 
324
- setPaddingLeft(paddingLeft) {
325
- this._adapter.setPaddingLeft(paddingLeft);
326
- }
327
-
328
324
  isAllowClear() {
329
325
  const {
330
326
  value,
@@ -10,7 +10,6 @@ export interface ModalAdapter extends DefaultAdapter<ModalProps, ModalState> {
10
10
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
11
11
  notifyFullScreen: (isFullScreen: boolean) => void;
12
12
  getProps: () => ModalProps;
13
- setShouldRender: (shouldRender: boolean) => void;
14
13
  }
15
14
  export interface ModalProps {
16
15
  afterClose?: () => void;
@@ -56,7 +55,6 @@ export interface ModalProps {
56
55
  export interface ModalState {
57
56
  displayNone: boolean;
58
57
  isFullScreen: boolean;
59
- shouldRender: boolean;
60
58
  }
61
59
  export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
62
60
  constructor(adapter: ModalAdapter);
@@ -66,5 +64,4 @@ export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
66
64
  beforeShow(): void;
67
65
  afterHide(): void;
68
66
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
69
- setShouldRender: (shouldRender: any) => void;
70
67
  }
@@ -18,10 +18,6 @@ class ModalFoundation extends _foundation.default {
18
18
  this.toggleDisplayNone = (displayNone, callback) => {
19
19
  this._adapter.toggleDisplayNone(displayNone, callback);
20
20
  };
21
-
22
- this.setShouldRender = shouldRender => {
23
- this._adapter.setShouldRender(shouldRender);
24
- };
25
21
  }
26
22
 
27
23
  destroy() {
@@ -28,7 +28,6 @@ export interface SideSheetProps {
28
28
  }
29
29
  export interface SideSheetState {
30
30
  displayNone: boolean;
31
- shouldRender: boolean;
32
31
  }
33
32
  export interface SideSheetAdapter extends DefaultAdapter<SideSheetProps, SideSheetState> {
34
33
  disabledBodyScroll: () => void;
@@ -38,7 +37,6 @@ export interface SideSheetAdapter extends DefaultAdapter<SideSheetProps, SideShe
38
37
  setOnKeyDownListener: () => void;
39
38
  removeKeyDownListener: () => void;
40
39
  toggleDisplayNone: (displayNone: boolean) => void;
41
- setShouldRender: (shouldRender: boolean) => void;
42
40
  }
43
41
  export default class SideSheetFoundation extends BaseFoundation<SideSheetAdapter> {
44
42
  constructor(adapter: SideSheetAdapter);
@@ -52,7 +50,6 @@ export default class SideSheetFoundation extends BaseFoundation<SideSheetAdapter
52
50
  beforeShow(): void;
53
51
  afterHide(): void;
54
52
  handleKeyDown(e: any): void;
55
- setShouldRender(shouldRender: boolean): void;
56
53
  onVisibleChange(visible: boolean): void;
57
54
  toggleDisplayNone: (displayNone: boolean) => void;
58
55
  }
@@ -64,10 +64,6 @@ class SideSheetFoundation extends _foundation.default {
64
64
  }
65
65
  }
66
66
 
67
- setShouldRender(shouldRender) {
68
- this._adapter.setShouldRender(shouldRender);
69
- }
70
-
71
67
  onVisibleChange(visible) {
72
68
  this._adapter.notifyVisibleChange(visible);
73
69
  }
@@ -20,7 +20,7 @@ $module: #{$prefix}-switch;
20
20
  &-knob {
21
21
  right: 0;
22
22
  left: auto;
23
- transform: translateX(-$motion-switch_unchecked-translateX);
23
+ transform: translateX(-1 * $spacing-switch_unchecked-translateX);
24
24
  }
25
25
 
26
26
  &-native-control {
@@ -71,7 +71,7 @@
71
71
  background-color: rgba(var(--semi-white), 1);
72
72
  box-sizing: border-box;
73
73
  position: absolute;
74
- left: 0;
74
+ left: 0px;
75
75
  right: auto;
76
76
  transition: transform 200ms ease-in-out, width 200ms ease-in-out;
77
77
  width: 18px;
@@ -94,14 +94,14 @@ $module: #{$prefix}-switch;
94
94
  background-color: $color-switch_knob-bg-default;
95
95
  box-sizing: border-box;
96
96
  position: absolute;
97
- left: 0;
97
+ left: $spacing-switch_knob-left;
98
98
  right: auto;
99
99
  transition: transform $motion-switch-transitionDuration ease-in-out, width $motion-switch-transitionDuration ease-in-out;
100
100
 
101
101
  width: $width-switch_knob_default;
102
102
  height: $width-switch_knob_default;
103
103
  top: $spacing-switch_knob-padding;
104
- transform: translateX($motion-switch_unchecked-translateX);
104
+ transform: translateX($spacing-switch_unchecked-translateX);
105
105
  }
106
106
 
107
107
  &-native-control {
@@ -1,5 +1,5 @@
1
1
  // Other
2
- $motion-switch_unchecked-translateX: 2px; // 未选中开关右侧偏移量 - 动画用
2
+ $spacing-switch_unchecked-translateX: 2px; // 未选中开关右侧偏移量
3
3
  $motion-switch_spin_unchecked-translateX: 2px; // 未选中开关加载图标右侧偏移量 - 动画用
4
4
  $motion-switch_checked-translateX: 18px; // 选中开关右侧偏移量
5
5
  $motion-switch_spin_checked-translateX: 16px; // 选中开关加载图标右侧偏移量
@@ -62,9 +62,10 @@ $width-switch-outline: 2px; // 开关轮廓宽度
62
62
 
63
63
 
64
64
  // Spacing
65
- $spacing-switch_knob-padding: 2px; // 开关按钮内边距
65
+ $spacing-switch_knob-padding: 2px; // 开关按钮顶部边距
66
66
  $spacing-switch_knob_large-padding: 3px; // 大尺寸开关按钮内边距
67
67
  $spacing-switch_knob_small-padding: 1px; // 小尺寸开关按钮内边距
68
+ $spacing-switch_knob-left: 0px; // 开关左侧偏移距离
68
69
 
69
70
  // Radius
70
71
  $radius-switch: $height-switch * 0.5; // 开关圆角
@@ -15,6 +15,9 @@
15
15
  display: flex;
16
16
  align-items: center;
17
17
  }
18
+ .semi-tagInput-drag-item-move {
19
+ z-index: 2000;
20
+ }
18
21
  .semi-tagInput-drag-handler {
19
22
  color: var(--semi-color-text-2);
20
23
  margin-right: 4px;
@@ -82,6 +85,15 @@
82
85
  padding-right: 4px;
83
86
  overflow: hidden;
84
87
  }
88
+ .semi-tagInput-wrapper-small {
89
+ min-height: 24px;
90
+ }
91
+ .semi-tagInput-wrapper-default {
92
+ min-height: 32px;
93
+ }
94
+ .semi-tagInput-wrapper-large {
95
+ min-height: 40px;
96
+ }
85
97
  .semi-tagInput-wrapper-tag {
86
98
  margin-right: 4px;
87
99
  white-space: pre;
@@ -134,6 +146,36 @@
134
146
  .semi-tagInput-wrapper .semi-tagInput-wrapper-input:not(:first-child) > input {
135
147
  padding-left: 0;
136
148
  }
149
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-small {
150
+ height: 20px;
151
+ margin-top: 1px;
152
+ margin-bottom: 1px;
153
+ line-height: 20px;
154
+ }
155
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-small .semi-input-small {
156
+ height: 20px;
157
+ line-height: 20px;
158
+ }
159
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-default {
160
+ height: 24px;
161
+ margin-top: 2px;
162
+ margin-bottom: 2px;
163
+ line-height: 24px;
164
+ }
165
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-default .semi-input-default {
166
+ height: 24px;
167
+ line-height: 24px;
168
+ }
169
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-large {
170
+ height: 24px;
171
+ margin-top: 3px;
172
+ margin-bottom: 3px;
173
+ line-height: 24px;
174
+ }
175
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-large .semi-input-large {
176
+ height: 24px;
177
+ line-height: 24px;
178
+ }
137
179
  .semi-tagInput-clearBtn {
138
180
  display: flex;
139
181
  justify-content: center;
@@ -20,6 +20,10 @@ $module: #{$prefix}-tagInput;
20
20
  &-item {
21
21
  display: flex;
22
22
  align-items: center;
23
+
24
+ &-move {
25
+ z-index: $z-tagInput_drag_item_move;
26
+ }
23
27
  }
24
28
 
25
29
  &-handler {
@@ -102,6 +106,18 @@ $module: #{$prefix}-tagInput;
102
106
  padding-right: $spacing-extra-tight;
103
107
  overflow: hidden;
104
108
 
109
+ &-small {
110
+ min-height: $height-tagInput-small;
111
+ }
112
+
113
+ &-default {
114
+ min-height: $height-tagInput-default;
115
+ }
116
+
117
+ &-large {
118
+ min-height: $height-tagInput-large;
119
+ }
120
+
105
121
  &-tag {
106
122
  margin-right: $spacing-extra-tight;
107
123
  white-space: pre;
@@ -166,6 +182,42 @@ $module: #{$prefix}-tagInput;
166
182
  &:not(:first-child) > input {
167
183
  padding-left: 0;
168
184
  }
185
+
186
+ &-small {
187
+ height: $height-tagInput_input_small;
188
+ margin-top: $spacing-tagInput_small-Y;
189
+ margin-bottom: $spacing-tagInput_small-Y;
190
+ line-height: $height-tagInput_input_small;
191
+
192
+ & .#{$prefix}-input-small {
193
+ height: $height-tagInput_input_small;
194
+ line-height: $height-tagInput_input_small;
195
+ }
196
+ }
197
+
198
+ &-default {
199
+ height: $height-tagInput_input_default;
200
+ margin-top: $spacing-tagInput_default-Y;
201
+ margin-bottom: $spacing-tagInput_default-Y;
202
+ line-height: $height-tagInput_input_default;
203
+
204
+ & .#{$prefix}-input-default {
205
+ height: $height-tagInput_input_default;
206
+ line-height: $height-tagInput_input_default;
207
+ }
208
+ }
209
+
210
+ &-large {
211
+ height: $height-tagInput_input_large;
212
+ margin-top: $spacing-tagInput_large-Y;
213
+ margin-bottom: $spacing-tagInput_large-Y;
214
+ line-height: $height-tagInput_input_large;
215
+
216
+ & .#{$prefix}-input-large {
217
+ height: $height-tagInput_input_large;
218
+ line-height: $height-tagInput_input_large;
219
+ }
220
+ }
169
221
  }
170
222
  }
171
223
 
@@ -40,6 +40,9 @@ $spacing-tagInput_tag_icon_paddingLeft: 4px; // tag中有handler icon时tag的
40
40
  $height-tagInput-large: $height-control-large; // 大尺寸标签输入框高度
41
41
  $height-tagInput-default: $height-control-default; // 默认尺寸标签输入框高度
42
42
  $height-tagInput-small: $height-control-small; // 小尺寸标签输入框高度
43
+ $height-tagInput_input_small: 20px; // 小尺寸标签输入框Input框高度
44
+ $height-tagInput_input_default: 24px; // 默认尺寸标签输入框Input框高度
45
+ $height-tagInput_input_large: 24px; // 大尺寸标签输入框Input框高度
43
46
 
44
47
  $width-tagInput-clear-medium: $width-icon-medium * 2; // 标签输入框清空按钮宽度
45
48
  $width-tagInput-border-default: $border-thickness-control; // 标签输入框描边描边宽度 - 默认
@@ -47,3 +50,5 @@ $width-tagInput-border-hover: $width-tagInput-border-default; // 标签输入框
47
50
  $width-tagInput-border-focus: $border-thickness-control-focus; // 标签输入框描边宽度 - 选中态
48
51
 
49
52
  $radius-tagInput: var(--semi-border-radius-small); // 标签输入框圆角
53
+
54
+ $z-tagInput_drag_item_move: 2000 !default; // 标签输入框中正在拖拽元素的z-index
@@ -144,6 +144,9 @@
144
144
  margin-right: 4px;
145
145
  flex-shrink: 0;
146
146
  }
147
+ .semi-transfer-right-item-drag-item-move {
148
+ z-index: 2000;
149
+ }
147
150
  .semi-transfer-right-empty {
148
151
  position: absolute;
149
152
  height: 100%;
@@ -165,9 +165,15 @@ $module: #{$prefix}-transfer;
165
165
  word-break: break-all;
166
166
  }
167
167
 
168
- &-drag-handler {
169
- margin-right: $spacing-transfer_right_item_drag_handler-marginRight;
170
- flex-shrink: 0;
168
+ &-drag {
169
+ &-handler {
170
+ margin-right: $spacing-transfer_right_item_drag_handler-marginRight;
171
+ flex-shrink: 0;
172
+ }
173
+
174
+ &-item-move {
175
+ z-index: $z-transfer_right_item_drag_item_move;
176
+ }
171
177
  }
172
178
  }
173
179
 
@@ -53,3 +53,5 @@ $radius-transfer: var(--semi-border-radius-medium); // 穿梭框圆角
53
53
 
54
54
  // Font
55
55
  $font-transfer_header_all-fontWeight: 600; // 穿梭框字重
56
+
57
+ $z-transfer_right_item_drag_item_move: 2000 !default; // 穿梭框右侧面板中正在拖拽元素的z-index
@@ -48,6 +48,7 @@
48
48
  font-weight: 600;
49
49
  color: var(--semi-color-text-0);
50
50
  margin-bottom: 4px;
51
+ padding-right: 16px;
51
52
  display: inline-block;
52
53
  vertical-align: middle;
53
54
  font-size: 14px;
@@ -231,6 +232,7 @@
231
232
  .semi-rtl .semi-form-field-label,
232
233
  .semi-portal-rtl .semi-form-field-label {
233
234
  padding-right: 0;
235
+ padding-left: 16px;
234
236
  }
235
237
  .semi-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra,
236
238
  .semi-portal-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra {
@@ -92,6 +92,7 @@ $rating: #{$prefix}-rating;
92
92
  font-weight: $font-form_label-fontWeight;
93
93
  color: $color-form_label-text-default;
94
94
  margin-bottom: $spacing-form_label-marginBottom;
95
+ padding-right: $spacing-form_label-paddingRight;
95
96
  display: inline-block;
96
97
  vertical-align: middle;
97
98
  @include font-size-regular;
@@ -33,6 +33,7 @@ $rating: #{$prefix}-rating;
33
33
 
34
34
  &-field-label {
35
35
  padding-right: 0;
36
+ padding-left: $spacing-form_label-paddingRight;
36
37
 
37
38
  &-with-extra {
38
39
  .#{$field}-label-extra {
@@ -7,6 +7,7 @@ $spacing-form_field_group_vertical-paddingTop: $spacing-base-tight; // 垂直布
7
7
  $spacing-form_field_group_vertical-paddingBottom: $spacing-base-tight; // 垂直布局表单组底部内边距
8
8
 
9
9
  // form label
10
+ $spacing-form_label-paddingRight: $spacing-base; // 表单项标签右侧边距(水平布局)
10
11
  $spacing-form_label-paddingTop: ($height-control-default - 20px) * 0.5; // 表单项标签顶部内边距(水平布局)
11
12
  $spacing-form_label-marginBottom: $spacing-extra-tight; // 表单项标签底部外边距
12
13
  $spacing-form_label_extra-marginLeft: $spacing-extra-tight; // 表单项标签额外信息左侧边距
@@ -15,7 +15,6 @@ export interface InputAdapter extends Partial<DefaultAdapter>, Partial<InputDefa
15
15
  notifyKeyUp(e: any): void;
16
16
  notifyKeyPress(e: any): void;
17
17
  notifyEnterPress(e: any): void;
18
- setPaddingLeft(paddingLeft: string): void;
19
18
  isEventTarget(e: any): boolean;
20
19
  }
21
20
  declare class InputFoundation extends BaseFoundation<InputAdapter> {
@@ -67,7 +66,6 @@ declare class InputFoundation extends BaseFoundation<InputAdapter> {
67
66
  handleKeyDown(e: any): void;
68
67
  handleKeyUp(e: any): void;
69
68
  handleKeyPress(e: any): void;
70
- setPaddingLeft(paddingLeft: string): void;
71
69
  isAllowClear(): any;
72
70
  handleClickPrefixOrSuffix(e: any): void;
73
71
  /**
@@ -306,10 +306,6 @@ class InputFoundation extends BaseFoundation {
306
306
  }
307
307
  }
308
308
 
309
- setPaddingLeft(paddingLeft) {
310
- this._adapter.setPaddingLeft(paddingLeft);
311
- }
312
-
313
309
  isAllowClear() {
314
310
  const {
315
311
  value,
@@ -10,7 +10,6 @@ export interface ModalAdapter extends DefaultAdapter<ModalProps, ModalState> {
10
10
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
11
11
  notifyFullScreen: (isFullScreen: boolean) => void;
12
12
  getProps: () => ModalProps;
13
- setShouldRender: (shouldRender: boolean) => void;
14
13
  }
15
14
  export interface ModalProps {
16
15
  afterClose?: () => void;
@@ -56,7 +55,6 @@ export interface ModalProps {
56
55
  export interface ModalState {
57
56
  displayNone: boolean;
58
57
  isFullScreen: boolean;
59
- shouldRender: boolean;
60
58
  }
61
59
  export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
62
60
  constructor(adapter: ModalAdapter);
@@ -66,5 +64,4 @@ export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
66
64
  beforeShow(): void;
67
65
  afterHide(): void;
68
66
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
69
- setShouldRender: (shouldRender: any) => void;
70
67
  }
@@ -8,10 +8,6 @@ export default class ModalFoundation extends BaseFoundation {
8
8
  this.toggleDisplayNone = (displayNone, callback) => {
9
9
  this._adapter.toggleDisplayNone(displayNone, callback);
10
10
  };
11
-
12
- this.setShouldRender = shouldRender => {
13
- this._adapter.setShouldRender(shouldRender);
14
- };
15
11
  }
16
12
 
17
13
  destroy() {
@@ -28,7 +28,6 @@ export interface SideSheetProps {
28
28
  }
29
29
  export interface SideSheetState {
30
30
  displayNone: boolean;
31
- shouldRender: boolean;
32
31
  }
33
32
  export interface SideSheetAdapter extends DefaultAdapter<SideSheetProps, SideSheetState> {
34
33
  disabledBodyScroll: () => void;
@@ -38,7 +37,6 @@ export interface SideSheetAdapter extends DefaultAdapter<SideSheetProps, SideShe
38
37
  setOnKeyDownListener: () => void;
39
38
  removeKeyDownListener: () => void;
40
39
  toggleDisplayNone: (displayNone: boolean) => void;
41
- setShouldRender: (shouldRender: boolean) => void;
42
40
  }
43
41
  export default class SideSheetFoundation extends BaseFoundation<SideSheetAdapter> {
44
42
  constructor(adapter: SideSheetAdapter);
@@ -52,7 +50,6 @@ export default class SideSheetFoundation extends BaseFoundation<SideSheetAdapter
52
50
  beforeShow(): void;
53
51
  afterHide(): void;
54
52
  handleKeyDown(e: any): void;
55
- setShouldRender(shouldRender: boolean): void;
56
53
  onVisibleChange(visible: boolean): void;
57
54
  toggleDisplayNone: (displayNone: boolean) => void;
58
55
  }
@@ -52,10 +52,6 @@ export default class SideSheetFoundation extends BaseFoundation {
52
52
  }
53
53
  }
54
54
 
55
- setShouldRender(shouldRender) {
56
- this._adapter.setShouldRender(shouldRender);
57
- }
58
-
59
55
  onVisibleChange(visible) {
60
56
  this._adapter.notifyVisibleChange(visible);
61
57
  }
@@ -20,7 +20,7 @@ $module: #{$prefix}-switch;
20
20
  &-knob {
21
21
  right: 0;
22
22
  left: auto;
23
- transform: translateX(-$motion-switch_unchecked-translateX);
23
+ transform: translateX(-1 * $spacing-switch_unchecked-translateX);
24
24
  }
25
25
 
26
26
  &-native-control {
@@ -71,7 +71,7 @@
71
71
  background-color: rgba(var(--semi-white), 1);
72
72
  box-sizing: border-box;
73
73
  position: absolute;
74
- left: 0;
74
+ left: 0px;
75
75
  right: auto;
76
76
  transition: transform 200ms ease-in-out, width 200ms ease-in-out;
77
77
  width: 18px;
@@ -94,14 +94,14 @@ $module: #{$prefix}-switch;
94
94
  background-color: $color-switch_knob-bg-default;
95
95
  box-sizing: border-box;
96
96
  position: absolute;
97
- left: 0;
97
+ left: $spacing-switch_knob-left;
98
98
  right: auto;
99
99
  transition: transform $motion-switch-transitionDuration ease-in-out, width $motion-switch-transitionDuration ease-in-out;
100
100
 
101
101
  width: $width-switch_knob_default;
102
102
  height: $width-switch_knob_default;
103
103
  top: $spacing-switch_knob-padding;
104
- transform: translateX($motion-switch_unchecked-translateX);
104
+ transform: translateX($spacing-switch_unchecked-translateX);
105
105
  }
106
106
 
107
107
  &-native-control {
@@ -1,5 +1,5 @@
1
1
  // Other
2
- $motion-switch_unchecked-translateX: 2px; // 未选中开关右侧偏移量 - 动画用
2
+ $spacing-switch_unchecked-translateX: 2px; // 未选中开关右侧偏移量
3
3
  $motion-switch_spin_unchecked-translateX: 2px; // 未选中开关加载图标右侧偏移量 - 动画用
4
4
  $motion-switch_checked-translateX: 18px; // 选中开关右侧偏移量
5
5
  $motion-switch_spin_checked-translateX: 16px; // 选中开关加载图标右侧偏移量
@@ -62,9 +62,10 @@ $width-switch-outline: 2px; // 开关轮廓宽度
62
62
 
63
63
 
64
64
  // Spacing
65
- $spacing-switch_knob-padding: 2px; // 开关按钮内边距
65
+ $spacing-switch_knob-padding: 2px; // 开关按钮顶部边距
66
66
  $spacing-switch_knob_large-padding: 3px; // 大尺寸开关按钮内边距
67
67
  $spacing-switch_knob_small-padding: 1px; // 小尺寸开关按钮内边距
68
+ $spacing-switch_knob-left: 0px; // 开关左侧偏移距离
68
69
 
69
70
  // Radius
70
71
  $radius-switch: $height-switch * 0.5; // 开关圆角
@@ -15,6 +15,9 @@
15
15
  display: flex;
16
16
  align-items: center;
17
17
  }
18
+ .semi-tagInput-drag-item-move {
19
+ z-index: 2000;
20
+ }
18
21
  .semi-tagInput-drag-handler {
19
22
  color: var(--semi-color-text-2);
20
23
  margin-right: 4px;
@@ -82,6 +85,15 @@
82
85
  padding-right: 4px;
83
86
  overflow: hidden;
84
87
  }
88
+ .semi-tagInput-wrapper-small {
89
+ min-height: 24px;
90
+ }
91
+ .semi-tagInput-wrapper-default {
92
+ min-height: 32px;
93
+ }
94
+ .semi-tagInput-wrapper-large {
95
+ min-height: 40px;
96
+ }
85
97
  .semi-tagInput-wrapper-tag {
86
98
  margin-right: 4px;
87
99
  white-space: pre;
@@ -134,6 +146,36 @@
134
146
  .semi-tagInput-wrapper .semi-tagInput-wrapper-input:not(:first-child) > input {
135
147
  padding-left: 0;
136
148
  }
149
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-small {
150
+ height: 20px;
151
+ margin-top: 1px;
152
+ margin-bottom: 1px;
153
+ line-height: 20px;
154
+ }
155
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-small .semi-input-small {
156
+ height: 20px;
157
+ line-height: 20px;
158
+ }
159
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-default {
160
+ height: 24px;
161
+ margin-top: 2px;
162
+ margin-bottom: 2px;
163
+ line-height: 24px;
164
+ }
165
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-default .semi-input-default {
166
+ height: 24px;
167
+ line-height: 24px;
168
+ }
169
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-large {
170
+ height: 24px;
171
+ margin-top: 3px;
172
+ margin-bottom: 3px;
173
+ line-height: 24px;
174
+ }
175
+ .semi-tagInput-wrapper .semi-tagInput-wrapper-input-large .semi-input-large {
176
+ height: 24px;
177
+ line-height: 24px;
178
+ }
137
179
  .semi-tagInput-clearBtn {
138
180
  display: flex;
139
181
  justify-content: center;
@@ -20,6 +20,10 @@ $module: #{$prefix}-tagInput;
20
20
  &-item {
21
21
  display: flex;
22
22
  align-items: center;
23
+
24
+ &-move {
25
+ z-index: $z-tagInput_drag_item_move;
26
+ }
23
27
  }
24
28
 
25
29
  &-handler {
@@ -102,6 +106,18 @@ $module: #{$prefix}-tagInput;
102
106
  padding-right: $spacing-extra-tight;
103
107
  overflow: hidden;
104
108
 
109
+ &-small {
110
+ min-height: $height-tagInput-small;
111
+ }
112
+
113
+ &-default {
114
+ min-height: $height-tagInput-default;
115
+ }
116
+
117
+ &-large {
118
+ min-height: $height-tagInput-large;
119
+ }
120
+
105
121
  &-tag {
106
122
  margin-right: $spacing-extra-tight;
107
123
  white-space: pre;
@@ -166,6 +182,42 @@ $module: #{$prefix}-tagInput;
166
182
  &:not(:first-child) > input {
167
183
  padding-left: 0;
168
184
  }
185
+
186
+ &-small {
187
+ height: $height-tagInput_input_small;
188
+ margin-top: $spacing-tagInput_small-Y;
189
+ margin-bottom: $spacing-tagInput_small-Y;
190
+ line-height: $height-tagInput_input_small;
191
+
192
+ & .#{$prefix}-input-small {
193
+ height: $height-tagInput_input_small;
194
+ line-height: $height-tagInput_input_small;
195
+ }
196
+ }
197
+
198
+ &-default {
199
+ height: $height-tagInput_input_default;
200
+ margin-top: $spacing-tagInput_default-Y;
201
+ margin-bottom: $spacing-tagInput_default-Y;
202
+ line-height: $height-tagInput_input_default;
203
+
204
+ & .#{$prefix}-input-default {
205
+ height: $height-tagInput_input_default;
206
+ line-height: $height-tagInput_input_default;
207
+ }
208
+ }
209
+
210
+ &-large {
211
+ height: $height-tagInput_input_large;
212
+ margin-top: $spacing-tagInput_large-Y;
213
+ margin-bottom: $spacing-tagInput_large-Y;
214
+ line-height: $height-tagInput_input_large;
215
+
216
+ & .#{$prefix}-input-large {
217
+ height: $height-tagInput_input_large;
218
+ line-height: $height-tagInput_input_large;
219
+ }
220
+ }
169
221
  }
170
222
  }
171
223
 
@@ -40,6 +40,9 @@ $spacing-tagInput_tag_icon_paddingLeft: 4px; // tag中有handler icon时tag的
40
40
  $height-tagInput-large: $height-control-large; // 大尺寸标签输入框高度
41
41
  $height-tagInput-default: $height-control-default; // 默认尺寸标签输入框高度
42
42
  $height-tagInput-small: $height-control-small; // 小尺寸标签输入框高度
43
+ $height-tagInput_input_small: 20px; // 小尺寸标签输入框Input框高度
44
+ $height-tagInput_input_default: 24px; // 默认尺寸标签输入框Input框高度
45
+ $height-tagInput_input_large: 24px; // 大尺寸标签输入框Input框高度
43
46
 
44
47
  $width-tagInput-clear-medium: $width-icon-medium * 2; // 标签输入框清空按钮宽度
45
48
  $width-tagInput-border-default: $border-thickness-control; // 标签输入框描边描边宽度 - 默认
@@ -47,3 +50,5 @@ $width-tagInput-border-hover: $width-tagInput-border-default; // 标签输入框
47
50
  $width-tagInput-border-focus: $border-thickness-control-focus; // 标签输入框描边宽度 - 选中态
48
51
 
49
52
  $radius-tagInput: var(--semi-border-radius-small); // 标签输入框圆角
53
+
54
+ $z-tagInput_drag_item_move: 2000 !default; // 标签输入框中正在拖拽元素的z-index
@@ -144,6 +144,9 @@
144
144
  margin-right: 4px;
145
145
  flex-shrink: 0;
146
146
  }
147
+ .semi-transfer-right-item-drag-item-move {
148
+ z-index: 2000;
149
+ }
147
150
  .semi-transfer-right-empty {
148
151
  position: absolute;
149
152
  height: 100%;
@@ -165,9 +165,15 @@ $module: #{$prefix}-transfer;
165
165
  word-break: break-all;
166
166
  }
167
167
 
168
- &-drag-handler {
169
- margin-right: $spacing-transfer_right_item_drag_handler-marginRight;
170
- flex-shrink: 0;
168
+ &-drag {
169
+ &-handler {
170
+ margin-right: $spacing-transfer_right_item_drag_handler-marginRight;
171
+ flex-shrink: 0;
172
+ }
173
+
174
+ &-item-move {
175
+ z-index: $z-transfer_right_item_drag_item_move;
176
+ }
171
177
  }
172
178
  }
173
179
 
@@ -53,3 +53,5 @@ $radius-transfer: var(--semi-border-radius-medium); // 穿梭框圆角
53
53
 
54
54
  // Font
55
55
  $font-transfer_header_all-fontWeight: 600; // 穿梭框字重
56
+
57
+ $z-transfer_right_item_drag_item_move: 2000 !default; // 穿梭框右侧面板中正在拖拽元素的z-index
@@ -11,8 +11,7 @@ export interface ModalAdapter extends DefaultAdapter<ModalProps, ModalState> {
11
11
  notifyClose: () => void;
12
12
  toggleDisplayNone: (displayNone: boolean, callback?: (displayNone: boolean) => void) => void;
13
13
  notifyFullScreen: (isFullScreen: boolean) => void;
14
- getProps: () => ModalProps;
15
- setShouldRender:(shouldRender:boolean)=>void
14
+ getProps: () => ModalProps
16
15
  }
17
16
 
18
17
  export interface ModalProps {
@@ -59,8 +58,7 @@ export interface ModalProps {
59
58
 
60
59
  export interface ModalState {
61
60
  displayNone: boolean;
62
- isFullScreen: boolean;
63
- shouldRender:boolean
61
+ isFullScreen: boolean
64
62
  }
65
63
 
66
64
  export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
@@ -101,9 +99,6 @@ export default class ModalFoundation extends BaseFoundation<ModalAdapter> {
101
99
  this._adapter.toggleDisplayNone(displayNone, callback);
102
100
  };
103
101
 
104
- setShouldRender=(shouldRender)=>{
105
- this._adapter.setShouldRender(shouldRender);
106
- }
107
102
 
108
103
  // // eslint-disable-next-line max-len
109
104
  // mergeMotionProp = (motion: Motion, prop: string, cb: () => void) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.23.0",
3
+ "version": "2.23.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
@@ -23,7 +23,7 @@
23
23
  "*.scss",
24
24
  "*.css"
25
25
  ],
26
- "gitHead": "a5195872c7df1a97551c6c23357bdb941b8fa807",
26
+ "gitHead": "b7fc3d0d2fe9dafb8e3ec4706b9a68212bb5f6bc",
27
27
  "devDependencies": {
28
28
  "@babel/plugin-transform-runtime": "^7.15.8",
29
29
  "@babel/preset-env": "^7.15.8",
@@ -32,8 +32,7 @@ export interface SideSheetProps {
32
32
  }
33
33
 
34
34
  export interface SideSheetState {
35
- displayNone: boolean;
36
- shouldRender: boolean
35
+ displayNone: boolean
37
36
  }
38
37
 
39
38
  export interface SideSheetAdapter extends DefaultAdapter<SideSheetProps, SideSheetState> {
@@ -43,8 +42,7 @@ export interface SideSheetAdapter extends DefaultAdapter<SideSheetProps, SideShe
43
42
  notifyVisibleChange: (visible: boolean) => void;
44
43
  setOnKeyDownListener: () => void;
45
44
  removeKeyDownListener: () => void;
46
- toggleDisplayNone: (displayNone: boolean) => void;
47
- setShouldRender: (shouldRender: boolean) => void
45
+ toggleDisplayNone: (displayNone: boolean) => void
48
46
  }
49
47
 
50
48
 
@@ -91,9 +89,6 @@ export default class SideSheetFoundation extends BaseFoundation<SideSheetAdapter
91
89
  }
92
90
  }
93
91
 
94
- setShouldRender(shouldRender: boolean) {
95
- this._adapter.setShouldRender(shouldRender);
96
- }
97
92
 
98
93
  onVisibleChange(visible: boolean) {
99
94
  this._adapter.notifyVisibleChange(visible);
package/switch/rtl.scss CHANGED
@@ -20,7 +20,7 @@ $module: #{$prefix}-switch;
20
20
  &-knob {
21
21
  right: 0;
22
22
  left: auto;
23
- transform: translateX(-$motion-switch_unchecked-translateX);
23
+ transform: translateX(-1 * $spacing-switch_unchecked-translateX);
24
24
  }
25
25
 
26
26
  &-native-control {
@@ -94,14 +94,14 @@ $module: #{$prefix}-switch;
94
94
  background-color: $color-switch_knob-bg-default;
95
95
  box-sizing: border-box;
96
96
  position: absolute;
97
- left: 0;
97
+ left: $spacing-switch_knob-left;
98
98
  right: auto;
99
99
  transition: transform $motion-switch-transitionDuration ease-in-out, width $motion-switch-transitionDuration ease-in-out;
100
100
 
101
101
  width: $width-switch_knob_default;
102
102
  height: $width-switch_knob_default;
103
103
  top: $spacing-switch_knob-padding;
104
- transform: translateX($motion-switch_unchecked-translateX);
104
+ transform: translateX($spacing-switch_unchecked-translateX);
105
105
  }
106
106
 
107
107
  &-native-control {
@@ -1,5 +1,5 @@
1
1
  // Other
2
- $motion-switch_unchecked-translateX: 2px; // 未选中开关右侧偏移量 - 动画用
2
+ $spacing-switch_unchecked-translateX: 2px; // 未选中开关右侧偏移量
3
3
  $motion-switch_spin_unchecked-translateX: 2px; // 未选中开关加载图标右侧偏移量 - 动画用
4
4
  $motion-switch_checked-translateX: 18px; // 选中开关右侧偏移量
5
5
  $motion-switch_spin_checked-translateX: 16px; // 选中开关加载图标右侧偏移量
@@ -62,9 +62,10 @@ $width-switch-outline: 2px; // 开关轮廓宽度
62
62
 
63
63
 
64
64
  // Spacing
65
- $spacing-switch_knob-padding: 2px; // 开关按钮内边距
65
+ $spacing-switch_knob-padding: 2px; // 开关按钮顶部边距
66
66
  $spacing-switch_knob_large-padding: 3px; // 大尺寸开关按钮内边距
67
67
  $spacing-switch_knob_small-padding: 1px; // 小尺寸开关按钮内边距
68
+ $spacing-switch_knob-left: 0px; // 开关左侧偏移距离
68
69
 
69
70
  // Radius
70
71
  $radius-switch: $height-switch * 0.5; // 开关圆角
@@ -20,6 +20,10 @@ $module: #{$prefix}-tagInput;
20
20
  &-item {
21
21
  display: flex;
22
22
  align-items: center;
23
+
24
+ &-move {
25
+ z-index: $z-tagInput_drag_item_move;
26
+ }
23
27
  }
24
28
 
25
29
  &-handler {
@@ -102,6 +106,18 @@ $module: #{$prefix}-tagInput;
102
106
  padding-right: $spacing-extra-tight;
103
107
  overflow: hidden;
104
108
 
109
+ &-small {
110
+ min-height: $height-tagInput-small;
111
+ }
112
+
113
+ &-default {
114
+ min-height: $height-tagInput-default;
115
+ }
116
+
117
+ &-large {
118
+ min-height: $height-tagInput-large;
119
+ }
120
+
105
121
  &-tag {
106
122
  margin-right: $spacing-extra-tight;
107
123
  white-space: pre;
@@ -166,6 +182,42 @@ $module: #{$prefix}-tagInput;
166
182
  &:not(:first-child) > input {
167
183
  padding-left: 0;
168
184
  }
185
+
186
+ &-small {
187
+ height: $height-tagInput_input_small;
188
+ margin-top: $spacing-tagInput_small-Y;
189
+ margin-bottom: $spacing-tagInput_small-Y;
190
+ line-height: $height-tagInput_input_small;
191
+
192
+ & .#{$prefix}-input-small {
193
+ height: $height-tagInput_input_small;
194
+ line-height: $height-tagInput_input_small;
195
+ }
196
+ }
197
+
198
+ &-default {
199
+ height: $height-tagInput_input_default;
200
+ margin-top: $spacing-tagInput_default-Y;
201
+ margin-bottom: $spacing-tagInput_default-Y;
202
+ line-height: $height-tagInput_input_default;
203
+
204
+ & .#{$prefix}-input-default {
205
+ height: $height-tagInput_input_default;
206
+ line-height: $height-tagInput_input_default;
207
+ }
208
+ }
209
+
210
+ &-large {
211
+ height: $height-tagInput_input_large;
212
+ margin-top: $spacing-tagInput_large-Y;
213
+ margin-bottom: $spacing-tagInput_large-Y;
214
+ line-height: $height-tagInput_input_large;
215
+
216
+ & .#{$prefix}-input-large {
217
+ height: $height-tagInput_input_large;
218
+ line-height: $height-tagInput_input_large;
219
+ }
220
+ }
169
221
  }
170
222
  }
171
223
 
@@ -40,6 +40,9 @@ $spacing-tagInput_tag_icon_paddingLeft: 4px; // tag中有handler icon时tag的
40
40
  $height-tagInput-large: $height-control-large; // 大尺寸标签输入框高度
41
41
  $height-tagInput-default: $height-control-default; // 默认尺寸标签输入框高度
42
42
  $height-tagInput-small: $height-control-small; // 小尺寸标签输入框高度
43
+ $height-tagInput_input_small: 20px; // 小尺寸标签输入框Input框高度
44
+ $height-tagInput_input_default: 24px; // 默认尺寸标签输入框Input框高度
45
+ $height-tagInput_input_large: 24px; // 大尺寸标签输入框Input框高度
43
46
 
44
47
  $width-tagInput-clear-medium: $width-icon-medium * 2; // 标签输入框清空按钮宽度
45
48
  $width-tagInput-border-default: $border-thickness-control; // 标签输入框描边描边宽度 - 默认
@@ -47,3 +50,5 @@ $width-tagInput-border-hover: $width-tagInput-border-default; // 标签输入框
47
50
  $width-tagInput-border-focus: $border-thickness-control-focus; // 标签输入框描边宽度 - 选中态
48
51
 
49
52
  $radius-tagInput: var(--semi-border-radius-small); // 标签输入框圆角
53
+
54
+ $z-tagInput_drag_item_move: 2000 !default; // 标签输入框中正在拖拽元素的z-index
@@ -165,9 +165,15 @@ $module: #{$prefix}-transfer;
165
165
  word-break: break-all;
166
166
  }
167
167
 
168
- &-drag-handler {
169
- margin-right: $spacing-transfer_right_item_drag_handler-marginRight;
170
- flex-shrink: 0;
168
+ &-drag {
169
+ &-handler {
170
+ margin-right: $spacing-transfer_right_item_drag_handler-marginRight;
171
+ flex-shrink: 0;
172
+ }
173
+
174
+ &-item-move {
175
+ z-index: $z-transfer_right_item_drag_item_move;
176
+ }
171
177
  }
172
178
  }
173
179
 
@@ -53,3 +53,5 @@ $radius-transfer: var(--semi-border-radius-medium); // 穿梭框圆角
53
53
 
54
54
  // Font
55
55
  $font-transfer_header_all-fontWeight: 600; // 穿梭框字重
56
+
57
+ $z-transfer_right_item_drag_item_move: 2000 !default; // 穿梭框右侧面板中正在拖拽元素的z-index