@douyinfe/semi-foundation 2.43.2 → 2.44.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/cascader.scss +1 -0
- package/cascader/foundation.ts +7 -0
- package/image/image.scss +1 -1
- package/lib/cjs/cascader/cascader.scss +1 -0
- package/lib/cjs/cascader/foundation.d.ts +6 -0
- package/lib/cjs/image/image.css +1 -1
- package/lib/cjs/image/image.scss +1 -1
- package/lib/cjs/modal/variables.scss +1 -1
- package/lib/cjs/steps/bacisSteps.scss +4 -1
- package/lib/cjs/steps/fillSteps.scss +4 -4
- package/lib/cjs/steps/steps.css +12 -10
- package/lib/cjs/tag/tag.css +8 -0
- package/lib/cjs/tag/tag.scss +10 -0
- package/lib/cjs/tag/variables.scss +3 -0
- package/lib/cjs/tooltip/foundation.js +2 -3
- package/lib/es/cascader/cascader.scss +1 -0
- package/lib/es/cascader/foundation.d.ts +6 -0
- package/lib/es/image/image.css +1 -1
- package/lib/es/image/image.scss +1 -1
- package/lib/es/modal/variables.scss +1 -1
- package/lib/es/steps/bacisSteps.scss +4 -1
- package/lib/es/steps/fillSteps.scss +4 -4
- package/lib/es/steps/steps.css +12 -10
- package/lib/es/tag/tag.css +8 -0
- package/lib/es/tag/tag.scss +10 -0
- package/lib/es/tag/variables.scss +3 -0
- package/lib/es/tooltip/foundation.js +2 -3
- package/modal/variables.scss +1 -1
- package/package.json +3 -3
- package/steps/bacisSteps.scss +4 -1
- package/steps/fillSteps.scss +4 -4
- package/tag/tag.scss +10 -0
- package/tag/variables.scss +3 -0
- package/tooltip/foundation.ts +2 -3
package/cascader/cascader.scss
CHANGED
package/cascader/foundation.ts
CHANGED
|
@@ -28,6 +28,12 @@ export interface BasicData {
|
|
|
28
28
|
pathData?: BasicCascaderData[]
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export interface Virtualize {
|
|
32
|
+
itemSize: number;
|
|
33
|
+
height?: number | string;
|
|
34
|
+
width?: number | string
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
export interface BasicEntities {
|
|
32
38
|
[idx: string]: BasicEntity
|
|
33
39
|
}
|
|
@@ -157,6 +163,7 @@ export interface BasicCascaderProps {
|
|
|
157
163
|
leafOnly?: boolean;
|
|
158
164
|
enableLeafClick?: boolean;
|
|
159
165
|
preventScroll?: boolean;
|
|
166
|
+
virtualizeInSearch?: Virtualize;
|
|
160
167
|
onClear?: () => void;
|
|
161
168
|
triggerRender?: (props: BasicTriggerRenderProps) => any;
|
|
162
169
|
onListScroll?: (e: any, panel: BasicScrollPanelProps) => void;
|
package/image/image.scss
CHANGED
|
@@ -6,6 +6,11 @@ export interface BasicData {
|
|
|
6
6
|
searchText: any[];
|
|
7
7
|
pathData?: BasicCascaderData[];
|
|
8
8
|
}
|
|
9
|
+
export interface Virtualize {
|
|
10
|
+
itemSize: number;
|
|
11
|
+
height?: number | string;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
}
|
|
9
14
|
export interface BasicEntities {
|
|
10
15
|
[idx: string]: BasicEntity;
|
|
11
16
|
}
|
|
@@ -105,6 +110,7 @@ export interface BasicCascaderProps {
|
|
|
105
110
|
leafOnly?: boolean;
|
|
106
111
|
enableLeafClick?: boolean;
|
|
107
112
|
preventScroll?: boolean;
|
|
113
|
+
virtualizeInSearch?: Virtualize;
|
|
108
114
|
onClear?: () => void;
|
|
109
115
|
triggerRender?: (props: BasicTriggerRenderProps) => any;
|
|
110
116
|
onListScroll?: (e: any, panel: BasicScrollPanelProps) => void;
|
package/lib/cjs/image/image.css
CHANGED
package/lib/cjs/image/image.scss
CHANGED
|
@@ -34,7 +34,7 @@ $spacing-modal_header-paddingX: 0;
|
|
|
34
34
|
$spacing-modal_body_wrapper-marginY: 24px;
|
|
35
35
|
$spacing-modal_body_wrapper-marginX: 0;
|
|
36
36
|
$spacing-modal_body-margin: 0; // 模态框 body 外边距
|
|
37
|
-
$spacing-modal_body-padding: 0; // 模态框
|
|
37
|
+
$spacing-modal_body-padding: 0; // 模态框 内容外Padding
|
|
38
38
|
$spacing-modal_footer-marginY: 24px; // 模态框 footer 垂直外边距
|
|
39
39
|
$spacing-modal_footer-marginX: 0; // 模态框 footer 水平外边距
|
|
40
40
|
$spacing-modal_footer-paddingY:0;
|
|
@@ -167,12 +167,15 @@ $basicType: #{$module}-basic;
|
|
|
167
167
|
vertical-align: top;
|
|
168
168
|
overflow: hidden;
|
|
169
169
|
flex: 1;
|
|
170
|
-
cursor: pointer;
|
|
171
170
|
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text, //step文字color的transition变化
|
|
172
171
|
background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
173
172
|
|
|
174
173
|
transform:scale($transform_scale-step-item);
|
|
175
174
|
|
|
175
|
+
&-clickable {
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
|
|
176
179
|
&-hover:hover {
|
|
177
180
|
|
|
178
181
|
.#{$item}-title {
|
|
@@ -101,7 +101,7 @@ $module: #{$prefix}-steps;
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
&-active:active {
|
|
105
105
|
background-color: $color-steps-bg-active;
|
|
106
106
|
|
|
107
107
|
.#{$prefix}-icon,
|
|
@@ -127,7 +127,7 @@ $module: #{$prefix}-steps;
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
&-active:active {
|
|
131
131
|
background-color: $color-steps-bg-active;
|
|
132
132
|
|
|
133
133
|
.#{$prefix}-icon,
|
|
@@ -153,7 +153,7 @@ $module: #{$prefix}-steps;
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
&-active:active {
|
|
157
157
|
background-color: $color-steps-bg-active;
|
|
158
158
|
|
|
159
159
|
.#{$module}-item-title,
|
|
@@ -195,4 +195,4 @@ $module: #{$prefix}-steps;
|
|
|
195
195
|
overflow: hidden;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
}
|
|
198
|
+
}
|
package/lib/cjs/steps/steps.css
CHANGED
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
.semi-steps .semi-steps-item-finish-hover:hover .semi-steps-item-title {
|
|
72
72
|
color: var(--semi-color-success-hover);
|
|
73
73
|
}
|
|
74
|
-
.semi-steps .semi-steps-item-finish:active {
|
|
74
|
+
.semi-steps .semi-steps-item-finish-active:active {
|
|
75
75
|
background-color: var(--semi-color-fill-1);
|
|
76
76
|
}
|
|
77
|
-
.semi-steps .semi-steps-item-finish:active .semi-icon,
|
|
78
|
-
.semi-steps .semi-steps-item-finish:active .semi-steps-item-title {
|
|
77
|
+
.semi-steps .semi-steps-item-finish-active:active .semi-icon,
|
|
78
|
+
.semi-steps .semi-steps-item-finish-active:active .semi-steps-item-title {
|
|
79
79
|
color: var(--semi-color-success-active);
|
|
80
80
|
}
|
|
81
81
|
.semi-steps .semi-steps-item-error .semi-icon,
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
.semi-steps .semi-steps-item-error-hover:hover .semi-steps-item-title {
|
|
90
90
|
color: var(--semi-color-danger-hover);
|
|
91
91
|
}
|
|
92
|
-
.semi-steps .semi-steps-item-error:active {
|
|
92
|
+
.semi-steps .semi-steps-item-error-active:active {
|
|
93
93
|
background-color: var(--semi-color-fill-1);
|
|
94
94
|
}
|
|
95
|
-
.semi-steps .semi-steps-item-error:active .semi-icon,
|
|
96
|
-
.semi-steps .semi-steps-item-error:active .semi-steps-item-title {
|
|
95
|
+
.semi-steps .semi-steps-item-error-active:active .semi-icon,
|
|
96
|
+
.semi-steps .semi-steps-item-error-active:active .semi-steps-item-title {
|
|
97
97
|
color: var(--semi-color-danger-active);
|
|
98
98
|
}
|
|
99
99
|
.semi-steps .semi-steps-item-warning .semi-steps-item-title,
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
.semi-steps .semi-steps-item-warning-hover:hover .semi-icon {
|
|
108
108
|
color: var(--semi-color-warning-hover);
|
|
109
109
|
}
|
|
110
|
-
.semi-steps .semi-steps-item-warning:active {
|
|
110
|
+
.semi-steps .semi-steps-item-warning-active:active {
|
|
111
111
|
background-color: var(--semi-color-fill-1);
|
|
112
112
|
}
|
|
113
|
-
.semi-steps .semi-steps-item-warning:active .semi-steps-item-title,
|
|
114
|
-
.semi-steps .semi-steps-item-warning:active .semi-icon {
|
|
113
|
+
.semi-steps .semi-steps-item-warning-active:active .semi-steps-item-title,
|
|
114
|
+
.semi-steps .semi-steps-item-warning-active:active .semi-icon {
|
|
115
115
|
color: var(--semi-color-warning-active);
|
|
116
116
|
}
|
|
117
117
|
.semi-steps .semi-steps-item-clickable {
|
|
@@ -260,10 +260,12 @@
|
|
|
260
260
|
vertical-align: top;
|
|
261
261
|
overflow: hidden;
|
|
262
262
|
flex: 1;
|
|
263
|
-
cursor: pointer;
|
|
264
263
|
transition: color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none), background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
|
|
265
264
|
transform: scale(var(--semi-transform_scale-small));
|
|
266
265
|
}
|
|
266
|
+
.semi-steps-basic .semi-steps-item-clickable {
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
}
|
|
267
269
|
.semi-steps-basic .semi-steps-item-hover:hover .semi-steps-item-title {
|
|
268
270
|
color: var(--semi-color-focus-border);
|
|
269
271
|
}
|
package/lib/cjs/tag/tag.css
CHANGED
package/lib/cjs/tag/tag.scss
CHANGED
|
@@ -51,6 +51,16 @@ $types: "ghost", "solid", "light";
|
|
|
51
51
|
display: none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
&-prefix-icon {
|
|
55
|
+
display: flex;
|
|
56
|
+
padding-right: $spacing-tag_prefix_icon_paddingRight;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-suffix-icon {
|
|
60
|
+
display: flex;
|
|
61
|
+
padding-left: $spacing-tag_suffix_icon_paddingLeft;
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
&-content {
|
|
55
65
|
flex: 1;
|
|
56
66
|
|
|
@@ -25,6 +25,9 @@ $radius-tag_circle: var(--semi-border-radius-full); // 胶囊标签圆角大小
|
|
|
25
25
|
$spacing-tag_small-paddingY: 2px; // 小尺寸标签垂直方向内边距
|
|
26
26
|
$spacing-tag_small-paddingX: $spacing-tight; // 小尺寸标签水平方向内边距
|
|
27
27
|
|
|
28
|
+
$spacing-tag_prefix_icon_paddingRight: $spacing-extra-tight; // 后缀图标右侧边距
|
|
29
|
+
$spacing-tag_suffix_icon_paddingLeft: $spacing-extra-tight; // 后缀图标左侧边距
|
|
30
|
+
|
|
28
31
|
$spacing-tag_large-paddingY: 4px; // 大尺寸标签垂直方向内边距
|
|
29
32
|
$spacing-tag_large-paddingX: $spacing-tight; // 大尺寸标签水平方向内边距
|
|
30
33
|
|
|
@@ -670,8 +670,7 @@ class Tooltip extends _foundation.default {
|
|
|
670
670
|
* 基于视口和容器一起判断,以下几种情况允许从原方向转到反方向,以判断是否应该由top->bottom为例子
|
|
671
671
|
*
|
|
672
672
|
* 1. 视口上下空间不足 且 容器上空间❌下空间✅
|
|
673
|
-
* 2. 视口上空间❌下空间✅
|
|
674
|
-
* 3. 视口上空间❌下空间✅ 且 容器上空间❌下空间✅
|
|
673
|
+
* 2. 视口上空间❌下空间✅
|
|
675
674
|
*
|
|
676
675
|
* Based on the judgment of the viewport and the container, the following situations are allowed to turn from the original direction to the opposite direction
|
|
677
676
|
* to judge whether it should be top->bottom as an example
|
|
@@ -679,7 +678,7 @@ class Tooltip extends _foundation.default {
|
|
|
679
678
|
* 2. The space above the viewport ❌ the space below ✅ and the space above and below the container is insufficient
|
|
680
679
|
* 3. Viewport upper space ❌ lower space✅ and container upper space ❌ lower space✅
|
|
681
680
|
*/
|
|
682
|
-
return viewOverFlow && shouldReverseContainer || shouldReverseView
|
|
681
|
+
return viewOverFlow && shouldReverseContainer || shouldReverseView;
|
|
683
682
|
}
|
|
684
683
|
// place the dom correctly
|
|
685
684
|
adjustPosIfNeed(position, style, triggerRect, wrapperRect, containerRect) {
|
|
@@ -6,6 +6,11 @@ export interface BasicData {
|
|
|
6
6
|
searchText: any[];
|
|
7
7
|
pathData?: BasicCascaderData[];
|
|
8
8
|
}
|
|
9
|
+
export interface Virtualize {
|
|
10
|
+
itemSize: number;
|
|
11
|
+
height?: number | string;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
}
|
|
9
14
|
export interface BasicEntities {
|
|
10
15
|
[idx: string]: BasicEntity;
|
|
11
16
|
}
|
|
@@ -105,6 +110,7 @@ export interface BasicCascaderProps {
|
|
|
105
110
|
leafOnly?: boolean;
|
|
106
111
|
enableLeafClick?: boolean;
|
|
107
112
|
preventScroll?: boolean;
|
|
113
|
+
virtualizeInSearch?: Virtualize;
|
|
108
114
|
onClear?: () => void;
|
|
109
115
|
triggerRender?: (props: BasicTriggerRenderProps) => any;
|
|
110
116
|
onListScroll?: (e: any, panel: BasicScrollPanelProps) => void;
|
package/lib/es/image/image.css
CHANGED
package/lib/es/image/image.scss
CHANGED
|
@@ -34,7 +34,7 @@ $spacing-modal_header-paddingX: 0;
|
|
|
34
34
|
$spacing-modal_body_wrapper-marginY: 24px;
|
|
35
35
|
$spacing-modal_body_wrapper-marginX: 0;
|
|
36
36
|
$spacing-modal_body-margin: 0; // 模态框 body 外边距
|
|
37
|
-
$spacing-modal_body-padding: 0; // 模态框
|
|
37
|
+
$spacing-modal_body-padding: 0; // 模态框 内容外Padding
|
|
38
38
|
$spacing-modal_footer-marginY: 24px; // 模态框 footer 垂直外边距
|
|
39
39
|
$spacing-modal_footer-marginX: 0; // 模态框 footer 水平外边距
|
|
40
40
|
$spacing-modal_footer-paddingY:0;
|
|
@@ -167,12 +167,15 @@ $basicType: #{$module}-basic;
|
|
|
167
167
|
vertical-align: top;
|
|
168
168
|
overflow: hidden;
|
|
169
169
|
flex: 1;
|
|
170
|
-
cursor: pointer;
|
|
171
170
|
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text, //step文字color的transition变化
|
|
172
171
|
background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
173
172
|
|
|
174
173
|
transform:scale($transform_scale-step-item);
|
|
175
174
|
|
|
175
|
+
&-clickable {
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
|
|
176
179
|
&-hover:hover {
|
|
177
180
|
|
|
178
181
|
.#{$item}-title {
|
|
@@ -101,7 +101,7 @@ $module: #{$prefix}-steps;
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
&-active:active {
|
|
105
105
|
background-color: $color-steps-bg-active;
|
|
106
106
|
|
|
107
107
|
.#{$prefix}-icon,
|
|
@@ -127,7 +127,7 @@ $module: #{$prefix}-steps;
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
&-active:active {
|
|
131
131
|
background-color: $color-steps-bg-active;
|
|
132
132
|
|
|
133
133
|
.#{$prefix}-icon,
|
|
@@ -153,7 +153,7 @@ $module: #{$prefix}-steps;
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
&-active:active {
|
|
157
157
|
background-color: $color-steps-bg-active;
|
|
158
158
|
|
|
159
159
|
.#{$module}-item-title,
|
|
@@ -195,4 +195,4 @@ $module: #{$prefix}-steps;
|
|
|
195
195
|
overflow: hidden;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
}
|
|
198
|
+
}
|
package/lib/es/steps/steps.css
CHANGED
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
.semi-steps .semi-steps-item-finish-hover:hover .semi-steps-item-title {
|
|
72
72
|
color: var(--semi-color-success-hover);
|
|
73
73
|
}
|
|
74
|
-
.semi-steps .semi-steps-item-finish:active {
|
|
74
|
+
.semi-steps .semi-steps-item-finish-active:active {
|
|
75
75
|
background-color: var(--semi-color-fill-1);
|
|
76
76
|
}
|
|
77
|
-
.semi-steps .semi-steps-item-finish:active .semi-icon,
|
|
78
|
-
.semi-steps .semi-steps-item-finish:active .semi-steps-item-title {
|
|
77
|
+
.semi-steps .semi-steps-item-finish-active:active .semi-icon,
|
|
78
|
+
.semi-steps .semi-steps-item-finish-active:active .semi-steps-item-title {
|
|
79
79
|
color: var(--semi-color-success-active);
|
|
80
80
|
}
|
|
81
81
|
.semi-steps .semi-steps-item-error .semi-icon,
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
.semi-steps .semi-steps-item-error-hover:hover .semi-steps-item-title {
|
|
90
90
|
color: var(--semi-color-danger-hover);
|
|
91
91
|
}
|
|
92
|
-
.semi-steps .semi-steps-item-error:active {
|
|
92
|
+
.semi-steps .semi-steps-item-error-active:active {
|
|
93
93
|
background-color: var(--semi-color-fill-1);
|
|
94
94
|
}
|
|
95
|
-
.semi-steps .semi-steps-item-error:active .semi-icon,
|
|
96
|
-
.semi-steps .semi-steps-item-error:active .semi-steps-item-title {
|
|
95
|
+
.semi-steps .semi-steps-item-error-active:active .semi-icon,
|
|
96
|
+
.semi-steps .semi-steps-item-error-active:active .semi-steps-item-title {
|
|
97
97
|
color: var(--semi-color-danger-active);
|
|
98
98
|
}
|
|
99
99
|
.semi-steps .semi-steps-item-warning .semi-steps-item-title,
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
.semi-steps .semi-steps-item-warning-hover:hover .semi-icon {
|
|
108
108
|
color: var(--semi-color-warning-hover);
|
|
109
109
|
}
|
|
110
|
-
.semi-steps .semi-steps-item-warning:active {
|
|
110
|
+
.semi-steps .semi-steps-item-warning-active:active {
|
|
111
111
|
background-color: var(--semi-color-fill-1);
|
|
112
112
|
}
|
|
113
|
-
.semi-steps .semi-steps-item-warning:active .semi-steps-item-title,
|
|
114
|
-
.semi-steps .semi-steps-item-warning:active .semi-icon {
|
|
113
|
+
.semi-steps .semi-steps-item-warning-active:active .semi-steps-item-title,
|
|
114
|
+
.semi-steps .semi-steps-item-warning-active:active .semi-icon {
|
|
115
115
|
color: var(--semi-color-warning-active);
|
|
116
116
|
}
|
|
117
117
|
.semi-steps .semi-steps-item-clickable {
|
|
@@ -260,10 +260,12 @@
|
|
|
260
260
|
vertical-align: top;
|
|
261
261
|
overflow: hidden;
|
|
262
262
|
flex: 1;
|
|
263
|
-
cursor: pointer;
|
|
264
263
|
transition: color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none), background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
|
|
265
264
|
transform: scale(var(--semi-transform_scale-small));
|
|
266
265
|
}
|
|
266
|
+
.semi-steps-basic .semi-steps-item-clickable {
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
}
|
|
267
269
|
.semi-steps-basic .semi-steps-item-hover:hover .semi-steps-item-title {
|
|
268
270
|
color: var(--semi-color-focus-border);
|
|
269
271
|
}
|
package/lib/es/tag/tag.css
CHANGED
package/lib/es/tag/tag.scss
CHANGED
|
@@ -51,6 +51,16 @@ $types: "ghost", "solid", "light";
|
|
|
51
51
|
display: none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
&-prefix-icon {
|
|
55
|
+
display: flex;
|
|
56
|
+
padding-right: $spacing-tag_prefix_icon_paddingRight;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-suffix-icon {
|
|
60
|
+
display: flex;
|
|
61
|
+
padding-left: $spacing-tag_suffix_icon_paddingLeft;
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
&-content {
|
|
55
65
|
flex: 1;
|
|
56
66
|
|
|
@@ -25,6 +25,9 @@ $radius-tag_circle: var(--semi-border-radius-full); // 胶囊标签圆角大小
|
|
|
25
25
|
$spacing-tag_small-paddingY: 2px; // 小尺寸标签垂直方向内边距
|
|
26
26
|
$spacing-tag_small-paddingX: $spacing-tight; // 小尺寸标签水平方向内边距
|
|
27
27
|
|
|
28
|
+
$spacing-tag_prefix_icon_paddingRight: $spacing-extra-tight; // 后缀图标右侧边距
|
|
29
|
+
$spacing-tag_suffix_icon_paddingLeft: $spacing-extra-tight; // 后缀图标左侧边距
|
|
30
|
+
|
|
28
31
|
$spacing-tag_large-paddingY: 4px; // 大尺寸标签垂直方向内边距
|
|
29
32
|
$spacing-tag_large-paddingX: $spacing-tight; // 大尺寸标签水平方向内边距
|
|
30
33
|
|
|
@@ -663,8 +663,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
663
663
|
* 基于视口和容器一起判断,以下几种情况允许从原方向转到反方向,以判断是否应该由top->bottom为例子
|
|
664
664
|
*
|
|
665
665
|
* 1. 视口上下空间不足 且 容器上空间❌下空间✅
|
|
666
|
-
* 2. 视口上空间❌下空间✅
|
|
667
|
-
* 3. 视口上空间❌下空间✅ 且 容器上空间❌下空间✅
|
|
666
|
+
* 2. 视口上空间❌下空间✅
|
|
668
667
|
*
|
|
669
668
|
* Based on the judgment of the viewport and the container, the following situations are allowed to turn from the original direction to the opposite direction
|
|
670
669
|
* to judge whether it should be top->bottom as an example
|
|
@@ -672,7 +671,7 @@ export default class Tooltip extends BaseFoundation {
|
|
|
672
671
|
* 2. The space above the viewport ❌ the space below ✅ and the space above and below the container is insufficient
|
|
673
672
|
* 3. Viewport upper space ❌ lower space✅ and container upper space ❌ lower space✅
|
|
674
673
|
*/
|
|
675
|
-
return viewOverFlow && shouldReverseContainer || shouldReverseView
|
|
674
|
+
return viewOverFlow && shouldReverseContainer || shouldReverseView;
|
|
676
675
|
}
|
|
677
676
|
// place the dom correctly
|
|
678
677
|
adjustPosIfNeed(position, style, triggerRect, wrapperRect, containerRect) {
|
package/modal/variables.scss
CHANGED
|
@@ -34,7 +34,7 @@ $spacing-modal_header-paddingX: 0;
|
|
|
34
34
|
$spacing-modal_body_wrapper-marginY: 24px;
|
|
35
35
|
$spacing-modal_body_wrapper-marginX: 0;
|
|
36
36
|
$spacing-modal_body-margin: 0; // 模态框 body 外边距
|
|
37
|
-
$spacing-modal_body-padding: 0; // 模态框
|
|
37
|
+
$spacing-modal_body-padding: 0; // 模态框 内容外Padding
|
|
38
38
|
$spacing-modal_footer-marginY: 24px; // 模态框 footer 垂直外边距
|
|
39
39
|
$spacing-modal_footer-marginX: 0; // 模态框 footer 水平外边距
|
|
40
40
|
$spacing-modal_footer-paddingY:0;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.
|
|
10
|
+
"@douyinfe/semi-animation": "2.44.0",
|
|
11
11
|
"async-validator": "^3.5.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"date-fns": "^2.29.3",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d683a25e4dd9c5fb8dbb069d83ffd24998b14191",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/steps/bacisSteps.scss
CHANGED
|
@@ -167,12 +167,15 @@ $basicType: #{$module}-basic;
|
|
|
167
167
|
vertical-align: top;
|
|
168
168
|
overflow: hidden;
|
|
169
169
|
flex: 1;
|
|
170
|
-
cursor: pointer;
|
|
171
170
|
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text, //step文字color的transition变化
|
|
172
171
|
background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
173
172
|
|
|
174
173
|
transform:scale($transform_scale-step-item);
|
|
175
174
|
|
|
175
|
+
&-clickable {
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
|
|
176
179
|
&-hover:hover {
|
|
177
180
|
|
|
178
181
|
.#{$item}-title {
|
package/steps/fillSteps.scss
CHANGED
|
@@ -101,7 +101,7 @@ $module: #{$prefix}-steps;
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
&-active:active {
|
|
105
105
|
background-color: $color-steps-bg-active;
|
|
106
106
|
|
|
107
107
|
.#{$prefix}-icon,
|
|
@@ -127,7 +127,7 @@ $module: #{$prefix}-steps;
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
&-active:active {
|
|
131
131
|
background-color: $color-steps-bg-active;
|
|
132
132
|
|
|
133
133
|
.#{$prefix}-icon,
|
|
@@ -153,7 +153,7 @@ $module: #{$prefix}-steps;
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
&-active:active {
|
|
157
157
|
background-color: $color-steps-bg-active;
|
|
158
158
|
|
|
159
159
|
.#{$module}-item-title,
|
|
@@ -195,4 +195,4 @@ $module: #{$prefix}-steps;
|
|
|
195
195
|
overflow: hidden;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
}
|
|
198
|
+
}
|
package/tag/tag.scss
CHANGED
|
@@ -51,6 +51,16 @@ $types: "ghost", "solid", "light";
|
|
|
51
51
|
display: none;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
&-prefix-icon {
|
|
55
|
+
display: flex;
|
|
56
|
+
padding-right: $spacing-tag_prefix_icon_paddingRight;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-suffix-icon {
|
|
60
|
+
display: flex;
|
|
61
|
+
padding-left: $spacing-tag_suffix_icon_paddingLeft;
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
&-content {
|
|
55
65
|
flex: 1;
|
|
56
66
|
|
package/tag/variables.scss
CHANGED
|
@@ -25,6 +25,9 @@ $radius-tag_circle: var(--semi-border-radius-full); // 胶囊标签圆角大小
|
|
|
25
25
|
$spacing-tag_small-paddingY: 2px; // 小尺寸标签垂直方向内边距
|
|
26
26
|
$spacing-tag_small-paddingX: $spacing-tight; // 小尺寸标签水平方向内边距
|
|
27
27
|
|
|
28
|
+
$spacing-tag_prefix_icon_paddingRight: $spacing-extra-tight; // 后缀图标右侧边距
|
|
29
|
+
$spacing-tag_suffix_icon_paddingLeft: $spacing-extra-tight; // 后缀图标左侧边距
|
|
30
|
+
|
|
28
31
|
$spacing-tag_large-paddingY: 4px; // 大尺寸标签垂直方向内边距
|
|
29
32
|
$spacing-tag_large-paddingX: $spacing-tight; // 大尺寸标签水平方向内边距
|
|
30
33
|
|
package/tooltip/foundation.ts
CHANGED
|
@@ -709,8 +709,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
|
|
|
709
709
|
* 基于视口和容器一起判断,以下几种情况允许从原方向转到反方向,以判断是否应该由top->bottom为例子
|
|
710
710
|
*
|
|
711
711
|
* 1. 视口上下空间不足 且 容器上空间❌下空间✅
|
|
712
|
-
* 2. 视口上空间❌下空间✅
|
|
713
|
-
* 3. 视口上空间❌下空间✅ 且 容器上空间❌下空间✅
|
|
712
|
+
* 2. 视口上空间❌下空间✅
|
|
714
713
|
*
|
|
715
714
|
* Based on the judgment of the viewport and the container, the following situations are allowed to turn from the original direction to the opposite direction
|
|
716
715
|
* to judge whether it should be top->bottom as an example
|
|
@@ -718,7 +717,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
|
|
|
718
717
|
* 2. The space above the viewport ❌ the space below ✅ and the space above and below the container is insufficient
|
|
719
718
|
* 3. Viewport upper space ❌ lower space✅ and container upper space ❌ lower space✅
|
|
720
719
|
*/
|
|
721
|
-
return (viewOverFlow && shouldReverseContainer) ||
|
|
720
|
+
return (viewOverFlow && shouldReverseContainer) || shouldReverseView ;
|
|
722
721
|
}
|
|
723
722
|
|
|
724
723
|
// place the dom correctly
|