@douyinfe/semi-foundation 2.17.1 → 2.18.0-beta.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/anchor/anchor.scss +15 -1
- package/anchor/animation.scss +6 -0
- package/anchor/variables.scss +7 -1
- package/autoComplete/animation.scss +3 -0
- package/autoComplete/autoComplete.scss +2 -1
- package/autoComplete/constants.ts +3 -0
- package/autoComplete/option.scss +93 -0
- package/autoComplete/optionFoundation.ts +41 -0
- package/autoComplete/variables.scss +47 -0
- package/avatar/avatar.scss +5 -6
- package/breadcrumb/animation.scss +6 -0
- package/breadcrumb/breadcrumb.scss +4 -1
- package/button/animation.scss +67 -0
- package/button/button.scss +29 -0
- package/calendar/eventUtil.ts +5 -3
- package/calendar/foundation.ts +7 -3
- package/carousel/animation.scss +7 -0
- package/carousel/carousel.scss +30 -40
- package/carousel/foundation.ts +5 -5
- package/cascader/animation.scss +4 -0
- package/cascader/cascader.scss +2 -0
- package/checkbox/animation.scss +10 -0
- package/checkbox/checkbox.scss +19 -4
- package/datePicker/animation.scss +4 -0
- package/dropdown/animation.scss +3 -0
- package/dropdown/dropdown.scss +5 -1
- package/form/form.scss +4 -3
- package/form/variables.scss +1 -0
- package/gulpfile.js +3 -1
- package/input/animation.scss +14 -0
- package/input/input.scss +12 -0
- package/input/textarea.scss +3 -0
- package/inputNumber/animation.scss +10 -0
- package/inputNumber/inputNumber.scss +4 -0
- package/lib/cjs/anchor/anchor.css +12 -0
- package/lib/cjs/anchor/anchor.scss +15 -1
- package/lib/cjs/anchor/animation.css +3 -0
- package/lib/cjs/anchor/animation.scss +6 -0
- package/lib/cjs/anchor/variables.scss +7 -1
- package/lib/cjs/autoComplete/animation.css +3 -0
- package/lib/cjs/autoComplete/animation.scss +3 -0
- package/lib/cjs/autoComplete/autoComplete.css +17 -16
- package/lib/cjs/autoComplete/autoComplete.scss +2 -1
- package/lib/cjs/autoComplete/constants.d.ts +2 -0
- package/lib/cjs/autoComplete/constants.js +3 -1
- package/lib/cjs/autoComplete/option.scss +93 -0
- package/lib/cjs/autoComplete/optionFoundation.d.ts +21 -0
- package/lib/cjs/autoComplete/optionFoundation.js +42 -0
- package/lib/cjs/autoComplete/variables.scss +47 -0
- package/lib/cjs/avatar/avatar.scss +5 -6
- package/lib/cjs/breadcrumb/animation.css +3 -0
- package/lib/cjs/breadcrumb/animation.scss +6 -0
- package/lib/cjs/breadcrumb/breadcrumb.css +3 -1
- package/lib/cjs/breadcrumb/breadcrumb.scss +4 -1
- package/lib/cjs/button/animation.css +3 -0
- package/lib/cjs/button/animation.scss +67 -0
- package/lib/cjs/button/button.css +14 -0
- package/lib/cjs/button/button.scss +29 -0
- package/lib/cjs/calendar/eventUtil.d.ts +2 -1
- package/lib/cjs/calendar/eventUtil.js +4 -1
- package/lib/cjs/calendar/foundation.d.ts +2 -1
- package/lib/cjs/calendar/foundation.js +8 -2
- package/lib/cjs/carousel/animation.css +3 -0
- package/lib/cjs/carousel/animation.scss +7 -0
- package/lib/cjs/carousel/carousel.css +6 -1
- package/lib/cjs/carousel/carousel.scss +30 -40
- package/lib/cjs/carousel/foundation.d.ts +1 -1
- package/lib/cjs/carousel/foundation.js +5 -5
- package/lib/cjs/cascader/animation.css +3 -0
- package/lib/cjs/cascader/animation.scss +4 -0
- package/lib/cjs/cascader/cascader.css +1 -0
- package/lib/cjs/cascader/cascader.scss +2 -0
- package/lib/cjs/checkbox/animation.css +3 -0
- package/lib/cjs/checkbox/animation.scss +10 -0
- package/lib/cjs/checkbox/checkbox.css +3 -0
- package/lib/cjs/checkbox/checkbox.scss +19 -4
- package/lib/cjs/datePicker/animation.css +3 -0
- package/lib/cjs/datePicker/animation.scss +4 -0
- package/lib/cjs/dropdown/animation.css +3 -0
- package/lib/cjs/dropdown/animation.scss +3 -0
- package/lib/cjs/dropdown/dropdown.css +1 -0
- package/lib/cjs/dropdown/dropdown.scss +5 -1
- package/lib/cjs/form/form.css +3 -0
- package/lib/cjs/form/form.scss +4 -3
- package/lib/cjs/form/variables.scss +1 -0
- package/lib/cjs/input/animation.css +3 -0
- package/lib/cjs/input/animation.scss +14 -0
- package/lib/cjs/input/input.css +7 -0
- package/lib/cjs/input/input.scss +12 -0
- package/lib/cjs/input/textarea.css +1 -0
- package/lib/cjs/input/textarea.scss +3 -0
- package/lib/cjs/inputNumber/animation.css +3 -0
- package/lib/cjs/inputNumber/animation.scss +10 -0
- package/lib/cjs/inputNumber/inputNumber.css +2 -0
- package/lib/cjs/inputNumber/inputNumber.scss +4 -0
- package/lib/cjs/modal/modal.css +4 -0
- package/lib/cjs/modal/modal.scss +4 -0
- package/lib/cjs/navigation/animation.css +3 -0
- package/lib/cjs/navigation/animation.scss +4 -0
- package/lib/cjs/navigation/navigation.css +1 -0
- package/lib/cjs/navigation/navigation.scss +3 -0
- package/lib/cjs/notification/notification.scss +8 -9
- package/lib/cjs/pagination/animation.css +3 -0
- package/lib/cjs/pagination/animation.scss +11 -0
- package/lib/cjs/pagination/pagination.css +2 -0
- package/lib/cjs/pagination/pagination.scss +4 -0
- package/lib/cjs/radio/animation.css +3 -0
- package/lib/cjs/radio/animation.scss +10 -0
- package/lib/cjs/radio/radio.css +4 -0
- package/lib/cjs/radio/radio.scss +10 -1
- package/lib/cjs/rating/animation.css +3 -0
- package/lib/cjs/rating/animation.scss +6 -0
- package/lib/cjs/rating/rating.css +2 -0
- package/lib/cjs/rating/rating.scss +3 -0
- package/lib/cjs/scrollList/animation.css +3 -0
- package/lib/cjs/scrollList/animation.scss +3 -0
- package/lib/cjs/scrollList/scrollList.css +1 -0
- package/lib/cjs/scrollList/scrollList.scss +7 -9
- package/lib/cjs/select/animation.css +3 -0
- package/lib/cjs/select/animation.scss +15 -0
- package/lib/cjs/select/option.scss +1 -0
- package/lib/cjs/select/select.css +6 -2
- package/lib/cjs/select/select.scss +7 -2
- package/lib/cjs/select/variables.scss +5 -5
- package/lib/cjs/sideSheet/animation.css +3 -0
- package/lib/cjs/sideSheet/animation.scss +7 -0
- package/lib/cjs/sideSheet/sideSheet.css +4 -0
- package/lib/cjs/sideSheet/sideSheet.scss +9 -2
- package/lib/cjs/skeleton/skeleton.scss +2 -4
- package/lib/cjs/slider/animation.css +3 -0
- package/lib/cjs/slider/animation.scss +7 -0
- package/lib/cjs/slider/slider.css +2 -1
- package/lib/cjs/slider/slider.scss +4 -3
- package/lib/cjs/spin/spin.scss +10 -11
- package/lib/cjs/steps/animation.css +3 -0
- package/lib/cjs/steps/animation.scss +17 -0
- package/lib/cjs/steps/bacisSteps.scss +11 -3
- package/lib/cjs/steps/fillSteps.scss +6 -1
- package/lib/cjs/steps/navSteps.scss +1 -1
- package/lib/cjs/steps/steps.css +9 -0
- package/lib/cjs/steps/steps.scss +1 -0
- package/lib/cjs/switch/animation.css +3 -0
- package/lib/cjs/switch/animation.scss +4 -0
- package/lib/cjs/switch/foundation.js +2 -2
- package/lib/cjs/switch/switch.css +1 -1
- package/lib/cjs/switch/switch.scss +4 -1
- package/lib/cjs/table/animation.css +3 -0
- package/lib/cjs/table/animation.scss +3 -0
- package/lib/cjs/table/table.css +6 -0
- package/lib/cjs/table/table.scss +21 -22
- package/lib/cjs/tabs/animation.css +3 -0
- package/lib/cjs/tabs/animation.scss +23 -0
- package/lib/cjs/tabs/tabs.css +9 -0
- package/lib/cjs/tabs/tabs.scss +18 -2
- package/lib/cjs/tagInput/animation.css +3 -0
- package/lib/cjs/tagInput/animation.scss +7 -0
- package/lib/cjs/tagInput/tagInput.css +1 -0
- package/lib/cjs/tagInput/tagInput.scss +4 -1
- package/lib/cjs/timePicker/utils/animation.css +3 -0
- package/lib/cjs/timePicker/utils/animation.scss +7 -0
- package/lib/cjs/transfer/animation.css +3 -0
- package/lib/cjs/transfer/animation.scss +4 -0
- package/lib/cjs/transfer/transfer.css +1 -0
- package/lib/cjs/transfer/transfer.scss +4 -0
- package/lib/cjs/tree/animation.css +3 -0
- package/lib/cjs/tree/animation.scss +7 -0
- package/lib/cjs/tree/tree.css +2 -0
- package/lib/cjs/tree/tree.scss +3 -0
- package/lib/es/anchor/anchor.css +12 -0
- package/lib/es/anchor/anchor.scss +15 -1
- package/lib/es/anchor/animation.css +3 -0
- package/lib/es/anchor/animation.scss +6 -0
- package/lib/es/anchor/variables.scss +7 -1
- package/lib/es/autoComplete/animation.css +3 -0
- package/lib/es/autoComplete/animation.scss +3 -0
- package/lib/es/autoComplete/autoComplete.css +17 -16
- package/lib/es/autoComplete/autoComplete.scss +2 -1
- package/lib/es/autoComplete/constants.d.ts +2 -0
- package/lib/es/autoComplete/constants.js +3 -1
- package/lib/es/autoComplete/option.scss +93 -0
- package/lib/es/autoComplete/optionFoundation.d.ts +21 -0
- package/lib/es/autoComplete/optionFoundation.js +26 -0
- package/lib/es/autoComplete/variables.scss +47 -0
- package/lib/es/avatar/avatar.scss +5 -6
- package/lib/es/breadcrumb/animation.css +3 -0
- package/lib/es/breadcrumb/animation.scss +6 -0
- package/lib/es/breadcrumb/breadcrumb.css +3 -1
- package/lib/es/breadcrumb/breadcrumb.scss +4 -1
- package/lib/es/button/animation.css +3 -0
- package/lib/es/button/animation.scss +67 -0
- package/lib/es/button/button.css +14 -0
- package/lib/es/button/button.scss +29 -0
- package/lib/es/calendar/eventUtil.d.ts +2 -1
- package/lib/es/calendar/eventUtil.js +4 -1
- package/lib/es/calendar/foundation.d.ts +2 -1
- package/lib/es/calendar/foundation.js +8 -2
- package/lib/es/carousel/animation.css +3 -0
- package/lib/es/carousel/animation.scss +7 -0
- package/lib/es/carousel/carousel.css +6 -1
- package/lib/es/carousel/carousel.scss +30 -40
- package/lib/es/carousel/foundation.d.ts +1 -1
- package/lib/es/carousel/foundation.js +5 -5
- package/lib/es/cascader/animation.css +3 -0
- package/lib/es/cascader/animation.scss +4 -0
- package/lib/es/cascader/cascader.css +1 -0
- package/lib/es/cascader/cascader.scss +2 -0
- package/lib/es/checkbox/animation.css +3 -0
- package/lib/es/checkbox/animation.scss +10 -0
- package/lib/es/checkbox/checkbox.css +3 -0
- package/lib/es/checkbox/checkbox.scss +19 -4
- package/lib/es/datePicker/animation.css +3 -0
- package/lib/es/datePicker/animation.scss +4 -0
- package/lib/es/dropdown/animation.css +3 -0
- package/lib/es/dropdown/animation.scss +3 -0
- package/lib/es/dropdown/dropdown.css +1 -0
- package/lib/es/dropdown/dropdown.scss +5 -1
- package/lib/es/form/form.css +3 -0
- package/lib/es/form/form.scss +4 -3
- package/lib/es/form/variables.scss +1 -0
- package/lib/es/input/animation.css +3 -0
- package/lib/es/input/animation.scss +14 -0
- package/lib/es/input/input.css +7 -0
- package/lib/es/input/input.scss +12 -0
- package/lib/es/input/textarea.css +1 -0
- package/lib/es/input/textarea.scss +3 -0
- package/lib/es/inputNumber/animation.css +3 -0
- package/lib/es/inputNumber/animation.scss +10 -0
- package/lib/es/inputNumber/inputNumber.css +2 -0
- package/lib/es/inputNumber/inputNumber.scss +4 -0
- package/lib/es/modal/modal.css +4 -0
- package/lib/es/modal/modal.scss +4 -0
- package/lib/es/navigation/animation.css +3 -0
- package/lib/es/navigation/animation.scss +4 -0
- package/lib/es/navigation/navigation.css +1 -0
- package/lib/es/navigation/navigation.scss +3 -0
- package/lib/es/notification/notification.scss +8 -9
- package/lib/es/pagination/animation.css +3 -0
- package/lib/es/pagination/animation.scss +11 -0
- package/lib/es/pagination/pagination.css +2 -0
- package/lib/es/pagination/pagination.scss +4 -0
- package/lib/es/radio/animation.css +3 -0
- package/lib/es/radio/animation.scss +10 -0
- package/lib/es/radio/radio.css +4 -0
- package/lib/es/radio/radio.scss +10 -1
- package/lib/es/rating/animation.css +3 -0
- package/lib/es/rating/animation.scss +6 -0
- package/lib/es/rating/rating.css +2 -0
- package/lib/es/rating/rating.scss +3 -0
- package/lib/es/scrollList/animation.css +3 -0
- package/lib/es/scrollList/animation.scss +3 -0
- package/lib/es/scrollList/scrollList.css +1 -0
- package/lib/es/scrollList/scrollList.scss +7 -9
- package/lib/es/select/animation.css +3 -0
- package/lib/es/select/animation.scss +15 -0
- package/lib/es/select/option.scss +1 -0
- package/lib/es/select/select.css +6 -2
- package/lib/es/select/select.scss +7 -2
- package/lib/es/select/variables.scss +5 -5
- package/lib/es/sideSheet/animation.css +3 -0
- package/lib/es/sideSheet/animation.scss +7 -0
- package/lib/es/sideSheet/sideSheet.css +4 -0
- package/lib/es/sideSheet/sideSheet.scss +9 -2
- package/lib/es/skeleton/skeleton.scss +2 -4
- package/lib/es/slider/animation.css +3 -0
- package/lib/es/slider/animation.scss +7 -0
- package/lib/es/slider/slider.css +2 -1
- package/lib/es/slider/slider.scss +4 -3
- package/lib/es/spin/spin.scss +10 -11
- package/lib/es/steps/animation.css +3 -0
- package/lib/es/steps/animation.scss +17 -0
- package/lib/es/steps/bacisSteps.scss +11 -3
- package/lib/es/steps/fillSteps.scss +6 -1
- package/lib/es/steps/navSteps.scss +1 -1
- package/lib/es/steps/steps.css +9 -0
- package/lib/es/steps/steps.scss +1 -0
- package/lib/es/switch/animation.css +3 -0
- package/lib/es/switch/animation.scss +4 -0
- package/lib/es/switch/foundation.js +2 -2
- package/lib/es/switch/switch.css +1 -1
- package/lib/es/switch/switch.scss +4 -1
- package/lib/es/table/animation.css +3 -0
- package/lib/es/table/animation.scss +3 -0
- package/lib/es/table/table.css +6 -0
- package/lib/es/table/table.scss +21 -22
- package/lib/es/tabs/animation.css +3 -0
- package/lib/es/tabs/animation.scss +23 -0
- package/lib/es/tabs/tabs.css +9 -0
- package/lib/es/tabs/tabs.scss +18 -2
- package/lib/es/tagInput/animation.css +3 -0
- package/lib/es/tagInput/animation.scss +7 -0
- package/lib/es/tagInput/tagInput.css +1 -0
- package/lib/es/tagInput/tagInput.scss +4 -1
- package/lib/es/timePicker/utils/animation.css +3 -0
- package/lib/es/timePicker/utils/animation.scss +7 -0
- package/lib/es/transfer/animation.css +3 -0
- package/lib/es/transfer/animation.scss +4 -0
- package/lib/es/transfer/transfer.css +1 -0
- package/lib/es/transfer/transfer.scss +4 -0
- package/lib/es/tree/animation.css +3 -0
- package/lib/es/tree/animation.scss +7 -0
- package/lib/es/tree/tree.css +2 -0
- package/lib/es/tree/tree.scss +3 -0
- package/modal/modal.scss +4 -0
- package/navigation/animation.scss +4 -0
- package/navigation/navigation.scss +3 -0
- package/notification/notification.scss +8 -9
- package/package.json +2 -2
- package/pagination/animation.scss +11 -0
- package/pagination/pagination.scss +4 -0
- package/radio/animation.scss +10 -0
- package/radio/radio.scss +10 -1
- package/rating/animation.scss +6 -0
- package/rating/rating.scss +3 -0
- package/scrollList/animation.scss +3 -0
- package/scrollList/scrollList.scss +7 -9
- package/select/animation.scss +15 -0
- package/select/option.scss +1 -0
- package/select/select.scss +7 -2
- package/select/variables.scss +5 -5
- package/sideSheet/animation.scss +7 -0
- package/sideSheet/sideSheet.scss +9 -2
- package/skeleton/skeleton.scss +2 -4
- package/slider/animation.scss +7 -0
- package/slider/slider.scss +4 -3
- package/spin/spin.scss +10 -11
- package/steps/animation.scss +17 -0
- package/steps/bacisSteps.scss +11 -3
- package/steps/fillSteps.scss +6 -1
- package/steps/navSteps.scss +1 -1
- package/steps/steps.scss +1 -0
- package/switch/animation.scss +4 -0
- package/switch/foundation.ts +2 -2
- package/switch/switch.scss +4 -1
- package/table/animation.scss +3 -0
- package/table/table.scss +21 -22
- package/tabs/animation.scss +23 -0
- package/tabs/tabs.scss +18 -2
- package/tagInput/animation.scss +7 -0
- package/tagInput/tagInput.scss +4 -1
- package/timePicker/utils/animation.scss +7 -0
- package/transfer/animation.scss +4 -0
- package/transfer/transfer.scss +4 -0
- package/tree/animation.scss +7 -0
- package/tree/tree.scss +3 -0
- package/lib/cjs/select/option.css +0 -77
- package/lib/es/select/option.css +0 -77
package/rating/rating.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
+
@import "./animation.scss";
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-rating;
|
|
4
5
|
|
|
@@ -37,6 +38,7 @@ $module: #{$prefix}-rating;
|
|
|
37
38
|
color: inherit;
|
|
38
39
|
cursor: pointer;
|
|
39
40
|
transition: all 0.5s;
|
|
41
|
+
transform:scale($transform-scale-rating);
|
|
40
42
|
|
|
41
43
|
&:not(:last-child) {
|
|
42
44
|
margin-right: $spacing-rating_item-marginRight;
|
|
@@ -75,6 +77,7 @@ $module: #{$prefix}-rating;
|
|
|
75
77
|
|
|
76
78
|
&-first,
|
|
77
79
|
&-second {
|
|
80
|
+
transition: color $transition_duration-rating-color $transition_function-rating-color $transition_delay-rating-color;
|
|
78
81
|
color: $color-rating-bg-default;
|
|
79
82
|
user-select: none;
|
|
80
83
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
$transition_duration-scrollList_selected_item-bg: var(--semi-transition_duration-fastest); // 滚动列表选中选项-背景颜色-动画持续时间
|
|
2
|
+
$transition_function-scrollList_selected_item-bg: var(--semi-transition_function-easeOut); // 滚动列表选中选项-背景颜色-过渡曲线
|
|
3
|
+
$transition_delay-scrollList_selected_item-bg: 0ms; // 滚动列表选中选项-背景颜色-延迟时间
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
2
|
// @import '../theme/_font.scss';
|
|
3
|
-
@import
|
|
3
|
+
@import './variables.scss';
|
|
4
|
+
@import './animation.scss';
|
|
4
5
|
|
|
5
6
|
$module: #{$prefix}-scrolllist;
|
|
6
7
|
|
|
@@ -38,11 +39,9 @@ $module: #{$prefix}-scrolllist;
|
|
|
38
39
|
|
|
39
40
|
.#{$module}-item-wheel .#{$module}-list-outer-nocycle,
|
|
40
41
|
.#{$module}-item {
|
|
41
|
-
|
|
42
42
|
& > ul {
|
|
43
|
-
|
|
44
43
|
&:before {
|
|
45
|
-
content:
|
|
44
|
+
content: '';
|
|
46
45
|
display: block;
|
|
47
46
|
width: 100%;
|
|
48
47
|
height: ($height-scrollList - $height-scrollList_item) / 2;
|
|
@@ -63,7 +62,6 @@ $module: #{$prefix}-scrolllist;
|
|
|
63
62
|
|
|
64
63
|
.#{$module}-item,
|
|
65
64
|
.#{$module}-item-wheel .#{$module}-list-outer {
|
|
66
|
-
|
|
67
65
|
& > ul {
|
|
68
66
|
box-sizing: border-box;
|
|
69
67
|
width: 100%;
|
|
@@ -84,7 +82,7 @@ $module: #{$prefix}-scrolllist;
|
|
|
84
82
|
// padding: 8px 18px;
|
|
85
83
|
cursor: pointer;
|
|
86
84
|
background-color: $color-scrollList_item-bg;
|
|
87
|
-
|
|
85
|
+
transition: background-color $transition_duration-scrollList_selected_item-bg $transition_function-scrollList_selected_item-bg $transition_delay-scrollList_selected_item-bg;
|
|
88
86
|
&.#{$module}-item-sel {
|
|
89
87
|
background: $color-scrollList_selected_item-bg;
|
|
90
88
|
color: $color-scrollList_selected_item-text;
|
|
@@ -147,14 +145,14 @@ $module: #{$prefix}-scrolllist;
|
|
|
147
145
|
top: 0;
|
|
148
146
|
margin-top: $spacing-scrollList_item_wheel_list_shade_pre-marginTop;
|
|
149
147
|
background: $color-scrollList-bg;
|
|
150
|
-
opacity: .5;
|
|
148
|
+
opacity: 0.5;
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
&-post {
|
|
154
152
|
top: 50%;
|
|
155
153
|
margin-top: $spacing-scrollList_item_wheel_list_shade_post-marginTop;
|
|
156
154
|
background: $color-scrollList-bg;
|
|
157
|
-
opacity: .5;
|
|
155
|
+
opacity: 0.5;
|
|
158
156
|
}
|
|
159
157
|
}
|
|
160
158
|
|
|
@@ -180,4 +178,4 @@ $module: #{$prefix}-scrolllist;
|
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
|
|
183
|
-
@import
|
|
181
|
+
@import './rtl.scss';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$transition_duration-select-bg: var(--semi-transition_duration-faster);//选择器-背景色-动画持续时间
|
|
2
|
+
$transition_function-select-bg: var(--semi-transition_function-easeIn);//选择器-背景色-过渡曲线
|
|
3
|
+
$transition_delay-select-bg: var(--semi-transition_delay-fastest);//选择器-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration-select-border: var(--semi-transition_duration-faster);//选择器-边框-动画持续时间
|
|
6
|
+
$transition_function-select-border: var(--semi-transition_function-easeIn);//选择器-边框-过渡曲线
|
|
7
|
+
$transition_delay-select-border: var(--semi-transition_delay-fastest);//选择器-边框-延迟时间
|
|
8
|
+
|
|
9
|
+
$transition_duration-select_option-bg: var(--semi-transition_duration-faster);//选择器-选项-动画持续时间
|
|
10
|
+
$transition_function-select_option-bg: var(--semi-transition_function-easeIn);//选择器-选项-过渡曲线
|
|
11
|
+
$transition_delay-select_option-bg: var(--semi-transition_delay-fastest);//选择器-选项-延迟时间
|
|
12
|
+
|
|
13
|
+
// transform token
|
|
14
|
+
$transform_scale-select: var(--semi-transform_scale-none);//选择框-变大
|
|
15
|
+
$transform_rotate-select-arrow: var(--semi-transform-rotate-none);//选择框-箭头-旋转
|
package/select/option.scss
CHANGED
|
@@ -20,6 +20,7 @@ $multiple: #{$module}-multiple;
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
box-sizing: border-box;
|
|
23
|
+
transition: background-color $transition_duration-select_option-bg $transition_function-select_option-bg $transition_delay-select_option-bg;
|
|
23
24
|
|
|
24
25
|
&-icon {
|
|
25
26
|
width: $width-select_option_tick;
|
package/select/select.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
|
-
@import './option.scss';
|
|
3
2
|
@import './variables.scss';
|
|
3
|
+
@import "./animation.scss";
|
|
4
|
+
@import './option.scss';
|
|
4
5
|
@import './mixin.scss';
|
|
5
6
|
|
|
6
7
|
$module: #{$prefix}-select;
|
|
@@ -21,7 +22,9 @@ $multiple: #{$module}-multiple;
|
|
|
21
22
|
position: relative;
|
|
22
23
|
outline: none;
|
|
23
24
|
cursor: pointer;
|
|
24
|
-
|
|
25
|
+
transition: background-color $transition_duration-select-bg $transition_function-select-bg $transition_delay-select-bg,
|
|
26
|
+
border $transition_duration-select-border $transition_function-select-border $transition_delay-select-border;
|
|
27
|
+
transform:scale($transform_scale-select);
|
|
25
28
|
&:hover {
|
|
26
29
|
background-color: $color-select-bg-hover;
|
|
27
30
|
border: $width-select-border-hover solid $color-select-border-hover;
|
|
@@ -259,6 +262,8 @@ $multiple: #{$module}-multiple;
|
|
|
259
262
|
width: $width-select_arrow;
|
|
260
263
|
color: $color-select-icon-default;
|
|
261
264
|
flex-shrink: 0;
|
|
265
|
+
transform: rotate($transform_rotate-select-arrow);
|
|
266
|
+
|
|
262
267
|
|
|
263
268
|
&-empty {
|
|
264
269
|
// 不显示arrow时,右侧留出12px空白
|
package/select/variables.scss
CHANGED
|
@@ -91,14 +91,14 @@ $spacing-select_tag-marginRight: $spacing-extra-tight; // 多项选择器标签
|
|
|
91
91
|
$spacing-select_tag-marginBottom: $spacing-super-tight - 1px; // 多项选择器标签底部外边距
|
|
92
92
|
$spacing-select_selection-marginLeft: $spacing-base-tight; // 选择器内容区左侧外边距
|
|
93
93
|
$spacing-select_insetLabel-marginRight: $spacing-base-tight; // 选择器内嵌标签右侧外边距
|
|
94
|
-
$spacing-select_option_list-paddingTop:
|
|
95
|
-
$spacing-select_option_list-paddingRight:
|
|
96
|
-
$spacing-select_option_list-paddingBottom:
|
|
97
|
-
$spacing-select_option_list-paddingLeft:
|
|
94
|
+
$spacing-select_option_list-paddingTop: 0px; // 选择器内容区顶部内边距
|
|
95
|
+
$spacing-select_option_list-paddingRight: 0px; // 选择器内容区右侧内边距
|
|
96
|
+
$spacing-select_option_list-paddingBottom: 0px; // 选择器内容区底部内边距
|
|
97
|
+
$spacing-select_option_list-paddingLeft: 0px; // 选择器内容区左侧内边距
|
|
98
98
|
|
|
99
99
|
// Radius
|
|
100
100
|
$radius-select: var(--semi-border-radius-small); // 选择器输入框圆角
|
|
101
|
-
$radius-select_option:
|
|
101
|
+
$radius-select_option: 0px; // 选择器待选项圆角
|
|
102
102
|
|
|
103
103
|
// Font
|
|
104
104
|
$font-select-fontWeight: $font-weight-regular; // 选择器文本字重
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$transition_duration-sideSheet_mask-bg: var(--semi-transition_delay-fastest); // 侧边栏打开后-蒙层颜色-动画持续时间
|
|
2
|
+
$transition_function-sideSheet_mask-bg: var(--semi-transition_function-easeOut); // 侧边栏打开后-蒙层颜色-过渡曲线
|
|
3
|
+
$transition_delay-sideSheet_mask-bg: 0ms; // 侧边栏打开后-蒙层颜色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration-sideSheet_inner: var(--semi-transition_delay-fastest); // 侧边栏-动画持续时间
|
|
6
|
+
$transition_function-sideSheet_inner: var(--semi-transition_function-easeOut); // 侧边栏-过渡曲线
|
|
7
|
+
$transition_delay-sideSheet_inner: 0ms; // 侧边栏-延迟时间
|
package/sideSheet/sideSheet.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import './animation.scss';
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-sidesheet;
|
|
4
5
|
|
|
@@ -85,6 +86,8 @@ $module: #{$prefix}-sidesheet;
|
|
|
85
86
|
background-color: $color-sideSheet-bg;
|
|
86
87
|
// background-clip: padding-box;
|
|
87
88
|
border: 0;
|
|
89
|
+
transition: $transition_duration-sideSheet_inner $transition_function-sideSheet_inner
|
|
90
|
+
$transition_delay-sideSheet_inner;
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
&-header {
|
|
@@ -115,8 +118,12 @@ $module: #{$prefix}-sidesheet;
|
|
|
115
118
|
width: 100%;
|
|
116
119
|
height: 100%;
|
|
117
120
|
background-color: $color-sideSheet_mask-bg;
|
|
121
|
+
opacity: 1;
|
|
122
|
+
transition: opacity $transition_duration-sideSheet_mask-bg $transition_function-sideSheet_mask-bg
|
|
123
|
+
$transition_delay-sideSheet_mask-bg;
|
|
118
124
|
|
|
119
125
|
&-hidden {
|
|
126
|
+
opacity: 0;
|
|
120
127
|
display: none;
|
|
121
128
|
}
|
|
122
129
|
}
|
|
@@ -168,4 +175,4 @@ $module: #{$prefix}-sidesheet;
|
|
|
168
175
|
display: none;
|
|
169
176
|
}
|
|
170
177
|
|
|
171
|
-
@import
|
|
178
|
+
@import './rtl.scss';
|
package/skeleton/skeleton.scss
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './variables.scss';
|
|
2
2
|
$module: #{$prefix}-skeleton;
|
|
3
3
|
|
|
4
4
|
.#{$module} {
|
|
5
|
-
|
|
6
5
|
&-avatar,
|
|
7
6
|
&-image,
|
|
8
7
|
&-title,
|
|
@@ -101,7 +100,6 @@ $module: #{$prefix}-skeleton;
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
@keyframes skeleton-loading {
|
|
104
|
-
|
|
105
103
|
0% {
|
|
106
104
|
background-position: 100% 50%;
|
|
107
105
|
}
|
|
@@ -112,4 +110,4 @@ $module: #{$prefix}-skeleton;
|
|
|
112
110
|
}
|
|
113
111
|
}
|
|
114
112
|
|
|
115
|
-
@import
|
|
113
|
+
@import './rtl.scss';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$transition_duration-slider_handle-bg: var(--semi-transition_duration-faster);//滑动条圆形按钮-背景色-动画持续时间
|
|
2
|
+
$transition_function-slider_handle-bg: var(--semi-transition_function-easeIn);//滑动条圆形按钮-背景色-过渡曲线
|
|
3
|
+
$transition_delay-slider_handle-bg: var(--semi-transition_delay-fastest);//滑动条圆形按钮-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
//transform token
|
|
6
|
+
|
|
7
|
+
$transform_scale-slider_handle: var(--semi-transform_scale-small);//滑动条圆形按钮-放大
|
package/slider/slider.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
|
-
@import
|
|
2
|
+
@import "./variables.scss";
|
|
3
|
+
@import "./animation.scss";
|
|
3
4
|
|
|
4
5
|
$module: #{$prefix}-slider;
|
|
5
6
|
|
|
@@ -54,8 +55,8 @@ $module: #{$prefix}-slider;
|
|
|
54
55
|
border: none;
|
|
55
56
|
border-radius: 50%;
|
|
56
57
|
cursor: pointer;
|
|
57
|
-
transition:
|
|
58
|
-
|
|
58
|
+
transition: background-color $transition_duration_slider_handle-bg $transition_function-slider-handle-bg $transition_delay-slider_handle-bg;
|
|
59
|
+
transform: scale($transform_scale-slider_handle);
|
|
59
60
|
&:focus-visible {
|
|
60
61
|
outline: $width-slider_handle-focus solid $color-slider_handle-focus;
|
|
61
62
|
}
|
package/spin/spin.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
2
|
+
@import './variables.scss';
|
|
3
|
+
@import './mixin.scss';
|
|
4
|
+
@import '../keyframes/rotate.scss';
|
|
5
5
|
|
|
6
6
|
$module: #{$prefix}-spin;
|
|
7
7
|
|
|
@@ -18,7 +18,7 @@ $module: #{$prefix}-spin;
|
|
|
18
18
|
top: $spacing-spin_wrapper-top;
|
|
19
19
|
color: $color-spin-bg;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
& > svg {
|
|
22
22
|
animation: $motion-spin_wrapper_svg-animationDuration linear infinite #{$prefix}-animation-rotate;
|
|
23
23
|
@include size($width-spin_middle);
|
|
24
24
|
}
|
|
@@ -40,7 +40,7 @@ $module: #{$prefix}-spin;
|
|
|
40
40
|
// 添加一个遮罩解决嵌套 Spin 穿透问题
|
|
41
41
|
|
|
42
42
|
&::after {
|
|
43
|
-
content:
|
|
43
|
+
content: '';
|
|
44
44
|
position: absolute;
|
|
45
45
|
top: 0;
|
|
46
46
|
left: 0;
|
|
@@ -60,13 +60,12 @@ $module: #{$prefix}-spin;
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&-hidden {
|
|
63
|
-
|
|
64
63
|
&::after {
|
|
65
64
|
content: none;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
// 考虑到嵌套,.spin-chidren 节点的 opacity 由直接父级节点的 .spin-hidden 决定
|
|
69
|
-
|
|
68
|
+
& > .#{$module}-children {
|
|
70
69
|
opacity: 1;
|
|
71
70
|
user-select: auto;
|
|
72
71
|
}
|
|
@@ -76,7 +75,7 @@ $module: #{$prefix}-spin;
|
|
|
76
75
|
.#{$module}-small {
|
|
77
76
|
@include size($width-spin_small);
|
|
78
77
|
|
|
79
|
-
|
|
78
|
+
& > .#{$module}-wrapper svg {
|
|
80
79
|
@include size($width-spin_small);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
@@ -84,7 +83,7 @@ $module: #{$prefix}-spin;
|
|
|
84
83
|
.#{$module}-middle {
|
|
85
84
|
@include size($width-spin_middle);
|
|
86
85
|
|
|
87
|
-
|
|
86
|
+
& > .#{$module}-wrapper svg {
|
|
88
87
|
@include size($width-spin_middle);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
@@ -92,7 +91,7 @@ $module: #{$prefix}-spin;
|
|
|
92
91
|
.#{$module}-large {
|
|
93
92
|
@include size($width-spin_large);
|
|
94
93
|
|
|
95
|
-
|
|
94
|
+
& > .#{$module}-wrapper svg {
|
|
96
95
|
@include size($width-spin_large);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
@@ -101,4 +100,4 @@ $module: #{$prefix}-spin;
|
|
|
101
100
|
overflow: hidden;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
|
-
@import
|
|
103
|
+
@import './rtl.scss';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$transition_duration-steps_item_title-text: var(--semi-transition_duration-faster);//步骤条标题文字-背景色-动画持续时间
|
|
2
|
+
$transition_function-steps_item_title-text: var(--semi-transition_function-easeIn);//步骤条标题文字-背景色-过渡曲线
|
|
3
|
+
$transition_delay-steps_item_title-text: var(--semi-transition_delay-fastest);//步骤条标题文字-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration-steps_item_title-icon: var(--semi-transition_duration-faster);//步骤条标题文字-背景色-动画持续时间
|
|
6
|
+
$transition_function-steps_item_title-icon: var(--semi-transition_function-easeIn);//步骤条标题文字-背景色-过渡曲线
|
|
7
|
+
$transition_delay-steps_item_title-icon: var(--semi-transition_delay-fastest);//步骤条标题文字-背景色-延迟时间
|
|
8
|
+
|
|
9
|
+
$transition_duration-steps_item_backgroundColor: var(--semi-transition_duration-faster);//步骤条标题文字-背景色-动画持续时间
|
|
10
|
+
$transition_function-steps_item_backgroundColor: var(--semi-transition_function-easeIn);//步骤条标题文字-背景色-过渡曲线
|
|
11
|
+
$transition_delay-steps_item_backgroundColor: var(--semi-transition_delay-fastest);//步骤条标题文字-背景色-延迟时间
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
//transform token
|
|
16
|
+
|
|
17
|
+
$transform_scale-step-item: var(--semi-transform_scale-small);//步骤条item-放大
|
package/steps/bacisSteps.scss
CHANGED
|
@@ -69,9 +69,11 @@ $basicType: #{$module}-basic;
|
|
|
69
69
|
|
|
70
70
|
.#{$item}-title {
|
|
71
71
|
max-width: $width-steps_basic_item_title-maxWidth;
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
.#{$item}-title-text {
|
|
74
74
|
@include text-overflow-hidden;
|
|
75
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
|
|
76
|
+
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
|
|
@@ -166,6 +168,10 @@ $basicType: #{$module}-basic;
|
|
|
166
168
|
overflow: hidden;
|
|
167
169
|
flex: 1;
|
|
168
170
|
cursor: pointer;
|
|
171
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text, //step文字color的transition变化
|
|
172
|
+
background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
173
|
+
|
|
174
|
+
transform:scale($transform_scale-step-item);
|
|
169
175
|
|
|
170
176
|
&:hover {
|
|
171
177
|
|
|
@@ -187,7 +193,7 @@ $basicType: #{$module}-basic;
|
|
|
187
193
|
justify-content: center;
|
|
188
194
|
align-items: center;
|
|
189
195
|
margin-right: $spacing-steps_basic_item_left-marginRight;
|
|
190
|
-
|
|
196
|
+
|
|
191
197
|
|
|
192
198
|
.#{$item}-icon {
|
|
193
199
|
display: flex;
|
|
@@ -206,7 +212,7 @@ $basicType: #{$module}-basic;
|
|
|
206
212
|
background: $color-steps_item_left_number_icon-bg;
|
|
207
213
|
border-radius: $radius-steps_basic_item_left_number_icon;
|
|
208
214
|
color: $color-steps_item_left_number_icon-icon;
|
|
209
|
-
|
|
215
|
+
transition: color $transition_duration-steps_item_title-icon $transition_function-steps_item_title-icon $transition_delay-steps_item_title-icon; //step icon color的transition变化
|
|
210
216
|
}
|
|
211
217
|
}
|
|
212
218
|
|
|
@@ -221,6 +227,8 @@ $basicType: #{$module}-basic;
|
|
|
221
227
|
vertical-align: top;
|
|
222
228
|
padding-right: $spacing-steps_basic_item_title-paddingRight;
|
|
223
229
|
padding-bottom: $spacing-steps_basic_item_title-paddingBottom;
|
|
230
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; //step文字color的transition变化
|
|
231
|
+
|
|
224
232
|
}
|
|
225
233
|
|
|
226
234
|
// 完成状态的样式
|
package/steps/fillSteps.scss
CHANGED
|
@@ -39,7 +39,10 @@ $module: #{$prefix}-steps;
|
|
|
39
39
|
border: $width-steps_item-border solid $color-steps-border-default;
|
|
40
40
|
border-radius: $radius-steps_item;
|
|
41
41
|
padding: $spacing-steps_item-paddingY $spacing-steps_item-paddingX;
|
|
42
|
-
|
|
42
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; // item 字体颜色动效
|
|
43
|
+
transform:scale($transform_scale-step-item);
|
|
44
|
+
transition: background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
45
|
+
|
|
43
46
|
.#{$module}-item-title {
|
|
44
47
|
position: relative;
|
|
45
48
|
// display: inline-block;
|
|
@@ -48,6 +51,8 @@ $module: #{$prefix}-steps;
|
|
|
48
51
|
width: $width-steps_item_title;
|
|
49
52
|
@include text-overflow-hidden;
|
|
50
53
|
color: $color-steps_main-text-default;
|
|
54
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
|
|
55
|
+
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
.#{$module}-item-description {
|
package/steps/navSteps.scss
CHANGED
package/steps/steps.scss
CHANGED
package/switch/foundation.ts
CHANGED
|
@@ -30,8 +30,8 @@ export default class SwitchFoundation<P = Record<string, any>, S = Record<string
|
|
|
30
30
|
|
|
31
31
|
handleChange(checked: boolean, e: any): void {
|
|
32
32
|
const propChecked = this.getProps().checked;
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
33
|
+
const isControlledComponent = typeof propChecked !== 'undefined';
|
|
34
|
+
if (isControlledComponent) {
|
|
35
35
|
this._adapter.notifyChange(checked, e);
|
|
36
36
|
} else {
|
|
37
37
|
this._adapter.setNativeControlChecked(checked);
|
package/switch/switch.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
+
@import "./animation.scss";
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-switch;
|
|
4
5
|
|
|
@@ -11,7 +12,9 @@ $module: #{$prefix}-switch;
|
|
|
11
12
|
cursor: pointer;
|
|
12
13
|
background-color: $color-switch_default-bg-default;
|
|
13
14
|
// box-shadow: inset 0 0 0 0 $color-switch_default-bg-success;
|
|
14
|
-
transition: background-color $motion-switch-transitionDuration ease-in-out;
|
|
15
|
+
//transition: background-color $motion-switch-transitionDuration ease-in-out;
|
|
16
|
+
transition: background-color $transition_duration-switch-bg $transition_function-switch-bg $transition_delay_switch-bg;
|
|
17
|
+
|
|
15
18
|
width: $width-switch;
|
|
16
19
|
height: $height-switch;
|
|
17
20
|
|
package/table/table.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import './mixin.scss';
|
|
3
|
+
@import './operationPanel.scss';
|
|
4
|
+
@import './animation.scss';
|
|
4
5
|
|
|
5
6
|
$module: #{$prefix}-table;
|
|
6
7
|
|
|
@@ -23,7 +24,7 @@ $module: #{$prefix}-table;
|
|
|
23
24
|
color: $color-table-text-default;
|
|
24
25
|
width: 100%;
|
|
25
26
|
|
|
26
|
-
&[data-column-fixed=true] {
|
|
27
|
+
&[data-column-fixed='true'] {
|
|
27
28
|
z-index: 1;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -76,7 +77,6 @@ $module: #{$prefix}-table;
|
|
|
76
77
|
display: table-column;
|
|
77
78
|
}
|
|
78
79
|
.#{$module}-column {
|
|
79
|
-
|
|
80
80
|
&-expand,
|
|
81
81
|
&-selection {
|
|
82
82
|
width: $width-table_column_selection;
|
|
@@ -102,7 +102,6 @@ $module: #{$prefix}-table;
|
|
|
102
102
|
position: relative;
|
|
103
103
|
|
|
104
104
|
&.#{$module}-cell-fixed {
|
|
105
|
-
|
|
106
105
|
&-left,
|
|
107
106
|
&-right {
|
|
108
107
|
z-index: $z-table_fixed_column;
|
|
@@ -111,7 +110,7 @@ $module: #{$prefix}-table;
|
|
|
111
110
|
|
|
112
111
|
&::before {
|
|
113
112
|
background-color: $color-table_th-bg-default;
|
|
114
|
-
content:
|
|
113
|
+
content: '';
|
|
115
114
|
position: absolute;
|
|
116
115
|
left: 0;
|
|
117
116
|
top: 0;
|
|
@@ -141,7 +140,7 @@ $module: #{$prefix}-table;
|
|
|
141
140
|
|
|
142
141
|
// scroll-bar 列无需有box-shadow
|
|
143
142
|
|
|
144
|
-
&[x-type=
|
|
143
|
+
&[x-type='column-scrollbar'] {
|
|
145
144
|
box-shadow: none;
|
|
146
145
|
border-left: transparent;
|
|
147
146
|
}
|
|
@@ -152,7 +151,7 @@ $module: #{$prefix}-table;
|
|
|
152
151
|
text-align: center;
|
|
153
152
|
}
|
|
154
153
|
|
|
155
|
-
&[colspan]:not([colspan=
|
|
154
|
+
&[colspan]:not([colspan='1']) {
|
|
156
155
|
text-align: center;
|
|
157
156
|
}
|
|
158
157
|
|
|
@@ -198,14 +197,13 @@ $module: #{$prefix}-table;
|
|
|
198
197
|
background-color: $color-table_body-bg-hover;
|
|
199
198
|
|
|
200
199
|
&.#{$module}-cell-fixed {
|
|
201
|
-
|
|
202
200
|
&-left,
|
|
203
201
|
&-right {
|
|
204
202
|
background-color: $color-table_body-bg-default;
|
|
205
203
|
|
|
206
204
|
&::before {
|
|
207
205
|
background-color: $color-table_body-bg-hover;
|
|
208
|
-
content:
|
|
206
|
+
content: '';
|
|
209
207
|
position: absolute;
|
|
210
208
|
left: 0;
|
|
211
209
|
top: 0;
|
|
@@ -236,7 +234,6 @@ $module: #{$prefix}-table;
|
|
|
236
234
|
}
|
|
237
235
|
}
|
|
238
236
|
&.#{$module}-row {
|
|
239
|
-
|
|
240
237
|
&-expand {
|
|
241
238
|
& > .#{$module}-row-cell {
|
|
242
239
|
background-color: $color-table_row_expanded-bg-default;
|
|
@@ -245,10 +242,9 @@ $module: #{$prefix}-table;
|
|
|
245
242
|
}
|
|
246
243
|
|
|
247
244
|
& > .#{$module}-cell-fixed {
|
|
248
|
-
|
|
249
245
|
&-left,
|
|
250
246
|
&-right {
|
|
251
|
-
z-index: $z-table_fixed_column
|
|
247
|
+
z-index: $z-table_fixed_column;
|
|
252
248
|
position: sticky;
|
|
253
249
|
background-color: $color-table-bg-default;
|
|
254
250
|
}
|
|
@@ -262,6 +258,16 @@ $module: #{$prefix}-table;
|
|
|
262
258
|
border-left: $width-table_cell_fixed_right_first solid $color-table_shadow-border-default;
|
|
263
259
|
box-shadow: #{$shadow-table_left};
|
|
264
260
|
}
|
|
261
|
+
|
|
262
|
+
& > * {
|
|
263
|
+
transition: background-color $transition_duration-table_body-bg $transition_function-table_body-bg
|
|
264
|
+
$transition_delay-table_body-bg;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
& > * {
|
|
269
|
+
transition: background-color $transition_duration-table_body-bg $transition_function-table_body-bg
|
|
270
|
+
$transition_delay-table_body-bg;
|
|
265
271
|
}
|
|
266
272
|
}
|
|
267
273
|
|
|
@@ -322,7 +328,6 @@ $module: #{$prefix}-table;
|
|
|
322
328
|
}
|
|
323
329
|
|
|
324
330
|
.#{$module}-selection {
|
|
325
|
-
|
|
326
331
|
&-wrap {
|
|
327
332
|
// inline-flex vertical-align baseline 会导致父元素高度异常
|
|
328
333
|
display: inline-flex;
|
|
@@ -339,7 +344,6 @@ $module: #{$prefix}-table;
|
|
|
339
344
|
}
|
|
340
345
|
|
|
341
346
|
.#{$module}-column {
|
|
342
|
-
|
|
343
347
|
&-hidden {
|
|
344
348
|
display: none;
|
|
345
349
|
}
|
|
@@ -433,7 +437,6 @@ $module: #{$prefix}-table;
|
|
|
433
437
|
}
|
|
434
438
|
|
|
435
439
|
.#{$module}-header {
|
|
436
|
-
|
|
437
440
|
&::-webkit-scrollbar {
|
|
438
441
|
border-right: $border-table;
|
|
439
442
|
}
|
|
@@ -446,7 +449,6 @@ $module: #{$prefix}-table;
|
|
|
446
449
|
}
|
|
447
450
|
|
|
448
451
|
.#{$module}-thead > .#{$module}-row > .#{$module}-row-head {
|
|
449
|
-
|
|
450
452
|
.react-resizable-handle {
|
|
451
453
|
background-color: transparent;
|
|
452
454
|
}
|
|
@@ -496,7 +498,6 @@ $module: #{$prefix}-table;
|
|
|
496
498
|
|
|
497
499
|
// when header is fixed, table should use `table-layout: fixed` to avoid align bug
|
|
498
500
|
&-header {
|
|
499
|
-
|
|
500
501
|
table {
|
|
501
502
|
table-layout: fixed;
|
|
502
503
|
}
|
|
@@ -504,9 +505,7 @@ $module: #{$prefix}-table;
|
|
|
504
505
|
}
|
|
505
506
|
|
|
506
507
|
&-scroll {
|
|
507
|
-
|
|
508
508
|
&-position {
|
|
509
|
-
|
|
510
509
|
&-left {
|
|
511
510
|
.#{$module}-tbody,
|
|
512
511
|
.#{$module}-thead {
|
|
@@ -550,4 +549,4 @@ $module: #{$prefix}-table;
|
|
|
550
549
|
}
|
|
551
550
|
}
|
|
552
551
|
|
|
553
|
-
@import
|
|
552
|
+
@import './rtl.scss';
|