vft 0.0.146 → 0.0.148
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/app-components/form/form-label-wrap.d.ts +2 -2
- package/es/components/button/use-button.js +3 -3
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/es/components/date-picker/panel-utils.d.ts +8 -8
- package/es/components/index.js +113 -113
- package/es/components/multiple-tabs/tab-content.vue.d.ts +1 -2
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/table.vue.d.ts +2 -0
- package/es/components/table/table.vue2.js +143 -145
- package/es/components/table/use/use-table.js +4 -1
- package/es/components/verify-code/index.d.ts +5 -1
- package/es/components/verify-code/verify-code.vue.d.ts +5 -1
- package/es/index.js +113 -113
- package/es/package.json.d.ts +11 -11
- package/es/package.json.js +1 -1
- package/lib/app-components/form/form-label-wrap.d.ts +2 -2
- package/lib/components/button/use-button.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/lib/components/date-picker/panel-utils.d.ts +8 -8
- package/lib/components/index.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue.d.ts +1 -2
- package/lib/components/table/index.d.ts +3 -0
- package/lib/components/table/table.vue.d.ts +2 -0
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/table/use/use-table.cjs +1 -1
- package/lib/components/verify-code/index.d.ts +5 -1
- package/lib/components/verify-code/verify-code.vue.d.ts +5 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +11 -11
- package/package.json +15 -15
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/autocomplete.scss +20 -20
- package/theme-style/src/badge.scss +8 -11
- package/theme-style/src/breadcrumb.scss +2 -0
- package/theme-style/src/button-group.scss +29 -22
- package/theme-style/src/calendar.scss +13 -12
- package/theme-style/src/carousel-item.scss +2 -0
- package/theme-style/src/carousel.scss +7 -7
- package/theme-style/src/cascader-panel.scss +28 -28
- package/theme-style/src/cascader.scss +63 -63
- package/theme-style/src/check-tag.scss +5 -5
- package/theme-style/src/checkbox-button.scss +13 -14
- package/theme-style/src/checkbox.scss +38 -37
- package/theme-style/src/clamp-toggle.scss +1 -0
- package/theme-style/src/col.scss +2 -5
- package/theme-style/src/collapse.scss +10 -5
- package/theme-style/src/color/index.scss +0 -1
- package/theme-style/src/common/popup.scss +2 -0
- package/theme-style/src/dark/css-vars.scss +0 -1
- package/theme-style/src/dark/var.scss +1 -1
- package/theme-style/src/date-picker/date-range-picker.scss +22 -22
- package/theme-style/src/date-picker/date-table.scss +5 -0
- package/theme-style/src/date-picker/month-table.scss +7 -0
- package/theme-style/src/date-picker/picker-panel.scss +15 -14
- package/theme-style/src/date-picker/picker.scss +35 -34
- package/theme-style/src/date-picker/year-table.scss +1 -0
- package/theme-style/src/date-time-select.scss +7 -6
- package/theme-style/src/drawer.scss +15 -13
- package/theme-style/src/dropdown.scss +45 -49
- package/theme-style/src/footer-layout.scss +4 -4
- package/theme-style/src/footer.scss +2 -2
- package/theme-style/src/header.scss +2 -2
- package/theme-style/src/image.scss +5 -0
- package/theme-style/src/md/figure.scss +0 -4
- package/theme-style/src/md-vue-playground.scss +2 -2
- package/theme-style/src/message-box.scss +28 -29
- package/theme-style/src/mixins/_button.scss +1 -1
- package/theme-style/src/mixins/_col.scss +8 -7
- package/theme-style/src/notification.scss +19 -18
- package/theme-style/src/option-group.scss +0 -1
- package/theme-style/src/option-item.scss +0 -1
- package/theme-style/src/option.scss +0 -1
- package/theme-style/src/overlay.scss +3 -3
- package/theme-style/src/page-wrapper.scss +1 -1
- package/theme-style/src/popover.scss +2 -1
- package/theme-style/src/popper.scss +44 -42
- package/theme-style/src/radio-button.scss +22 -23
- package/theme-style/src/radio.scss +43 -42
- package/theme-style/src/rate.scss +36 -38
- package/theme-style/src/result.scss +8 -7
- package/theme-style/src/row.scss +6 -0
- package/theme-style/src/scrollbar.scss +1 -1
- package/theme-style/src/search.scss +4 -4
- package/theme-style/src/select/common.scss +1 -0
- package/theme-style/src/select-dropdown-v2.scss +5 -5
- package/theme-style/src/select-dropdown.scss +0 -1
- package/theme-style/src/skeleton.scss +4 -2
- package/theme-style/src/slider.scss +16 -15
- package/theme-style/src/spinner.scss +3 -0
- package/theme-style/src/step.scss +5 -5
- package/theme-style/src/tag.scss +77 -76
- package/theme-style/src/timeline-item.scss +15 -12
- package/theme-style/src/transfer.scss +6 -2
- package/theme-style/src/var.scss +0 -1
- package/theme-style/src/virtual-list.scss +7 -2
- package/theme-style/vft-autocomplete.css +1 -1
- package/theme-style/vft-badge.css +1 -1
- package/theme-style/vft-button-group.css +1 -1
- package/theme-style/vft-calendar.css +1 -1
- package/theme-style/vft-carousel.css +1 -1
- package/theme-style/vft-cascader-panel.css +1 -1
- package/theme-style/vft-cascader.css +1 -1
- package/theme-style/vft-check-tag.css +1 -1
- package/theme-style/vft-checkbox-button.css +1 -1
- package/theme-style/vft-checkbox.css +1 -1
- package/theme-style/vft-col.css +1 -1
- package/theme-style/vft-collapse.css +1 -1
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-date-time-select.css +1 -1
- package/theme-style/vft-drawer.css +1 -1
- package/theme-style/vft-dropdown.css +1 -1
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-footer.css +1 -1
- package/theme-style/vft-header.css +1 -1
- package/theme-style/vft-md-vue-playground.css +1 -1
- package/theme-style/vft-message-box.css +1 -1
- package/theme-style/vft-notification.css +1 -1
- package/theme-style/vft-page-wrapper.css +1 -1
- package/theme-style/vft-popover.css +1 -1
- package/theme-style/vft-popper.css +1 -1
- package/theme-style/vft-radio-button.css +1 -1
- package/theme-style/vft-radio.css +1 -1
- package/theme-style/vft-rate.css +1 -1
- package/theme-style/vft-result.css +1 -1
- package/theme-style/vft-search.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-slider.css +1 -1
- package/theme-style/vft-step.css +1 -1
- package/theme-style/vft-tag.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/theme-style/vft-timeline-item.css +1 -1
- package/theme-style/vft-transfer.css +1 -1
- package/web-types.json +1 -1
|
@@ -11,6 +11,50 @@ $name: popper;
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@include b(popper) {
|
|
14
|
+
$arrow-selector: #{& + '__arrow'};
|
|
15
|
+
$placements: (
|
|
16
|
+
'top': 'bottom',
|
|
17
|
+
'bottom': 'top',
|
|
18
|
+
'left': 'right',
|
|
19
|
+
'right': 'left',
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
@each $placement, $opposite in $placements {
|
|
23
|
+
&[data-popper-placement^='#{$placement}'] > #{$arrow-selector} {
|
|
24
|
+
#{$opposite}: -5px;
|
|
25
|
+
|
|
26
|
+
&::before {
|
|
27
|
+
@if $placement == top {
|
|
28
|
+
border-bottom-right-radius: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@if $placement == bottom {
|
|
32
|
+
border-top-left-radius: 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@if $placement == left {
|
|
36
|
+
border-top-right-radius: 2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@if $placement == right {
|
|
40
|
+
border-bottom-left-radius: 2px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@each $placement,
|
|
47
|
+
$adjacency
|
|
48
|
+
in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top')
|
|
49
|
+
{
|
|
50
|
+
&[data-popper-placement^='#{$placement}'] {
|
|
51
|
+
#{$arrow-selector}::before {
|
|
52
|
+
border-#{$placement}-color: transparent !important;
|
|
53
|
+
border-#{$adjacency}-color: transparent !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
14
58
|
position: absolute;
|
|
15
59
|
border-radius: getCssVar('popper', 'border-radius');
|
|
16
60
|
padding: 5px 11px;
|
|
@@ -21,8 +65,6 @@ $name: popper;
|
|
|
21
65
|
word-wrap: break-word;
|
|
22
66
|
visibility: visible;
|
|
23
67
|
|
|
24
|
-
$arrow-selector: #{& + '__arrow'};
|
|
25
|
-
|
|
26
68
|
@include when(dark) {
|
|
27
69
|
color: getCssVar('bg-color');
|
|
28
70
|
background: getCssVar('text', 'primary-color');
|
|
@@ -67,44 +109,4 @@ $name: popper;
|
|
|
67
109
|
box-sizing: border-box;
|
|
68
110
|
}
|
|
69
111
|
}
|
|
70
|
-
|
|
71
|
-
$placements: (
|
|
72
|
-
'top': 'bottom',
|
|
73
|
-
'bottom': 'top',
|
|
74
|
-
'left': 'right',
|
|
75
|
-
'right': 'left',
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
@each $placement, $opposite in $placements {
|
|
79
|
-
&[data-popper-placement^='#{$placement}'] > #{$arrow-selector} {
|
|
80
|
-
#{$opposite}: -5px;
|
|
81
|
-
|
|
82
|
-
&::before {
|
|
83
|
-
@if $placement == top {
|
|
84
|
-
border-bottom-right-radius: 2px;
|
|
85
|
-
}
|
|
86
|
-
@if $placement == bottom {
|
|
87
|
-
border-top-left-radius: 2px;
|
|
88
|
-
}
|
|
89
|
-
@if $placement == left {
|
|
90
|
-
border-top-right-radius: 2px;
|
|
91
|
-
}
|
|
92
|
-
@if $placement == right {
|
|
93
|
-
border-bottom-left-radius: 2px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@each $placement,
|
|
100
|
-
$adjacency
|
|
101
|
-
in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top')
|
|
102
|
-
{
|
|
103
|
-
&[data-popper-placement^='#{$placement}'] {
|
|
104
|
-
#{$arrow-selector}::before {
|
|
105
|
-
border-#{$placement}-color: transparent !important;
|
|
106
|
-
border-#{$adjacency}-color: transparent !important;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
112
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
3
2
|
@use 'mixins/mixins' as *;
|
|
4
3
|
@use 'mixins/var' as *;
|
|
5
4
|
@use 'mixins/button' as *;
|
|
@@ -10,6 +9,19 @@
|
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
@include b(radio-button) {
|
|
12
|
+
@each $size in (large, small) {
|
|
13
|
+
@include m($size) {
|
|
14
|
+
& .#{$namespace}-radio-button__inner {
|
|
15
|
+
@include button-size(
|
|
16
|
+
map.get($button-padding-vertical, $size) - $button-border-width,
|
|
17
|
+
map.get($button-padding-horizontal, $size) - $button-border-width,
|
|
18
|
+
map.get($button-font-size, $size),
|
|
19
|
+
0
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
position: relative;
|
|
14
26
|
display: inline-block;
|
|
15
27
|
outline: none;
|
|
@@ -63,15 +75,6 @@
|
|
|
63
75
|
}
|
|
64
76
|
}
|
|
65
77
|
|
|
66
|
-
&:first-child {
|
|
67
|
-
.#{$namespace}-radio-button__inner {
|
|
68
|
-
border-left: getCssVar('border');
|
|
69
|
-
border-radius: getCssVar('border-radius-base') 0 0
|
|
70
|
-
getCssVar('border-radius-base');
|
|
71
|
-
box-shadow: none !important;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
78
|
@include e(original-radio) {
|
|
76
79
|
opacity: 0;
|
|
77
80
|
outline: none;
|
|
@@ -136,6 +139,15 @@
|
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
|
|
142
|
+
&:first-child {
|
|
143
|
+
.#{$namespace}-radio-button__inner {
|
|
144
|
+
border-left: getCssVar('border');
|
|
145
|
+
border-radius: getCssVar('border-radius-base') 0 0
|
|
146
|
+
getCssVar('border-radius-base');
|
|
147
|
+
box-shadow: none !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
139
151
|
&:last-child {
|
|
140
152
|
.#{$namespace}-radio-button__inner {
|
|
141
153
|
border-radius: 0 getCssVar('border-radius-base')
|
|
@@ -148,17 +160,4 @@
|
|
|
148
160
|
border-radius: getCssVar('border-radius-base');
|
|
149
161
|
}
|
|
150
162
|
}
|
|
151
|
-
|
|
152
|
-
@each $size in (large, small) {
|
|
153
|
-
@include m($size) {
|
|
154
|
-
& .#{$namespace}-radio-button__inner {
|
|
155
|
-
@include button-size(
|
|
156
|
-
map.get($button-padding-vertical, $size) - $button-border-width,
|
|
157
|
-
map.get($button-padding-horizontal, $size) - $button-border-width,
|
|
158
|
-
map.get($button-font-size, $size),
|
|
159
|
-
0
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
163
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
3
2
|
@use 'mixins/mixins' as *;
|
|
4
3
|
@use 'mixins/var' as *;
|
|
5
4
|
@use 'mixins/button' as *;
|
|
@@ -19,6 +18,25 @@ $radio-font-size: map.merge(
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@include b(radio) {
|
|
21
|
+
@each $size in (large, small) {
|
|
22
|
+
&.#{$namespace}-radio--#{$size} {
|
|
23
|
+
height: map.get($radio-height, $size);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@each $size in (large, small) {
|
|
28
|
+
&.#{$namespace}-radio--#{$size} {
|
|
29
|
+
@include e(label) {
|
|
30
|
+
font-size: map.get($radio-font-size, $size);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include e(inner) {
|
|
34
|
+
width: map.get($radio-font-size, $size);
|
|
35
|
+
height: map.get($radio-font-size, $size);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
22
40
|
color: getCssVar('radio-text-color');
|
|
23
41
|
font-weight: getCssVar('radio-font-weight');
|
|
24
42
|
position: relative;
|
|
@@ -32,29 +50,7 @@ $radio-font-size: map.merge(
|
|
|
32
50
|
margin-right: 32px;
|
|
33
51
|
height: map.get($radio-height, 'default');
|
|
34
52
|
|
|
35
|
-
@each $size in (large, small) {
|
|
36
|
-
&.#{$namespace}-radio--#{$size} {
|
|
37
|
-
height: map.get($radio-height, $size);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
53
|
@include when(bordered) {
|
|
42
|
-
padding: 0 map.get($checkbox-bordered-padding-right, 'default')-$border-width
|
|
43
|
-
0 map.get($checkbox-bordered-padding-left, 'default')-$border-width;
|
|
44
|
-
|
|
45
|
-
border-radius: getCssVar('border-radius-base');
|
|
46
|
-
border: getCssVar('border');
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
|
|
49
|
-
&.is-checked {
|
|
50
|
-
border-color: getCssVar('primary-color');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.is-disabled {
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
border-color: getCssVar('border-color-lighter');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
54
|
@each $size in (large, small) {
|
|
59
55
|
&.#{$namespace}-radio--#{$size} {
|
|
60
56
|
padding: 0
|
|
@@ -73,10 +69,21 @@ $radio-font-size: map.merge(
|
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
|
-
}
|
|
77
72
|
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
padding: 0 map.get($checkbox-bordered-padding-right, 'default')-$border-width
|
|
74
|
+
0 map.get($checkbox-bordered-padding-left, 'default')-$border-width;
|
|
75
|
+
border-radius: getCssVar('border-radius-base');
|
|
76
|
+
border: getCssVar('border');
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
|
|
79
|
+
&.is-checked {
|
|
80
|
+
border-color: getCssVar('primary-color');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.is-disabled {
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
border-color: getCssVar('border-color-lighter');
|
|
86
|
+
}
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
@include e(input) {
|
|
@@ -102,6 +109,7 @@ $radio-font-size: map.merge(
|
|
|
102
109
|
cursor: not-allowed;
|
|
103
110
|
}
|
|
104
111
|
}
|
|
112
|
+
|
|
105
113
|
&.is-checked {
|
|
106
114
|
.#{$namespace}-radio__inner {
|
|
107
115
|
background-color: map.get($radio-disabled, 'checked-input-fill');
|
|
@@ -139,6 +147,7 @@ $radio-font-size: map.merge(
|
|
|
139
147
|
}
|
|
140
148
|
}
|
|
141
149
|
}
|
|
150
|
+
|
|
142
151
|
@include e(inner) {
|
|
143
152
|
border: getCssVar('radio-input-border');
|
|
144
153
|
border-radius: getCssVar('radio-input-border-radius');
|
|
@@ -188,27 +197,19 @@ $radio-font-size: map.merge(
|
|
|
188
197
|
}
|
|
189
198
|
}
|
|
190
199
|
|
|
191
|
-
&:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) {
|
|
192
|
-
/*获得焦点时 样式提醒*/
|
|
193
|
-
.#{$namespace}-radio__inner {
|
|
194
|
-
box-shadow: 0 0 2px 2px getCssVar('radio-input-border-color-hover');
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
200
|
@include e(label) {
|
|
199
201
|
font-size: getCssVar('radio-font-size');
|
|
200
202
|
padding-left: 8px;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
205
|
+
&:last-child {
|
|
206
|
+
margin-right: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&:focus:not(:focus-visible, .is-focus, :active, .is-disabled) {
|
|
210
|
+
/* 获得焦点时 样式提醒 */
|
|
211
|
+
.#{$namespace}-radio__inner {
|
|
212
|
+
box-shadow: 0 0 2px 2px getCssVar('radio-input-border-color-hover');
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
215
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
3
2
|
@use 'mixins/mixins' as *;
|
|
4
3
|
@use 'mixins/var' as *;
|
|
5
4
|
@use 'common/var' as *;
|
|
@@ -13,7 +12,6 @@ $rate-height: map.merge(
|
|
|
13
12
|
),
|
|
14
13
|
$rate-height
|
|
15
14
|
);
|
|
16
|
-
|
|
17
15
|
$rate-size: () !default;
|
|
18
16
|
$rate-size: map.merge(
|
|
19
17
|
(
|
|
@@ -27,15 +25,19 @@ $rate-size: map.merge(
|
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
@include b(rate) {
|
|
28
|
+
@each $size in (large, small) {
|
|
29
|
+
@include m($size) {
|
|
30
|
+
height: map.get($rate-height, $size);
|
|
31
|
+
& .#{bem('rate', 'icon')} {
|
|
32
|
+
font-size: map.get($rate-size, $size);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
display: inline-flex;
|
|
31
38
|
align-items: center;
|
|
32
39
|
height: map.get($rate-height, 'default');
|
|
33
40
|
|
|
34
|
-
&:focus,
|
|
35
|
-
&:active {
|
|
36
|
-
outline: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
41
|
@include e(item) {
|
|
40
42
|
cursor: pointer;
|
|
41
43
|
display: inline-block;
|
|
@@ -46,28 +48,6 @@ $rate-size: map.merge(
|
|
|
46
48
|
line-height: normal;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
& .#{bem('rate', 'icon')} {
|
|
50
|
-
position: relative;
|
|
51
|
-
display: inline-block;
|
|
52
|
-
font-size: getCssVar('rate-icon-size');
|
|
53
|
-
margin-right: getCssVar('rate-icon-margin');
|
|
54
|
-
transition: getCssVar('transition-duration');
|
|
55
|
-
|
|
56
|
-
&.hover {
|
|
57
|
-
transform: scale(1.15);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.path2 {
|
|
61
|
-
position: absolute;
|
|
62
|
-
left: 0;
|
|
63
|
-
top: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@include when(active) {
|
|
67
|
-
color: getCssVar('rate', 'fill-color');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
51
|
@include e(decimal) {
|
|
72
52
|
position: absolute;
|
|
73
53
|
top: 0;
|
|
@@ -83,19 +63,37 @@ $rate-size: map.merge(
|
|
|
83
63
|
color: getCssVar('rate', 'text-color');
|
|
84
64
|
}
|
|
85
65
|
|
|
86
|
-
@each $size in (large, small) {
|
|
87
|
-
@include m($size) {
|
|
88
|
-
height: map.get($rate-height, $size);
|
|
89
|
-
& .#{bem('rate', 'icon')} {
|
|
90
|
-
font-size: map.get($rate-size, $size);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
66
|
@include when(disabled) {
|
|
96
67
|
@include e(item) {
|
|
97
68
|
cursor: auto;
|
|
98
69
|
color: getCssVar('rate', 'disabled-void-color');
|
|
99
70
|
}
|
|
100
71
|
}
|
|
72
|
+
|
|
73
|
+
&:focus,
|
|
74
|
+
&:active {
|
|
75
|
+
outline: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& .#{bem('rate', 'icon')} {
|
|
79
|
+
position: relative;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
font-size: getCssVar('rate-icon-size');
|
|
82
|
+
margin-right: getCssVar('rate-icon-margin');
|
|
83
|
+
transition: getCssVar('transition-duration');
|
|
84
|
+
|
|
85
|
+
@include when(active) {
|
|
86
|
+
color: getCssVar('rate', 'fill-color');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.hover {
|
|
90
|
+
transform: scale(1.15);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.path2 {
|
|
94
|
+
position: absolute;
|
|
95
|
+
left: 0;
|
|
96
|
+
top: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
101
99
|
}
|
|
@@ -10,6 +10,14 @@ $name: result;
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@include b($name) {
|
|
13
|
+
@each $type in $types {
|
|
14
|
+
.icon-#{$type} {
|
|
15
|
+
color: getCssVar('result-color');
|
|
16
|
+
|
|
17
|
+
@include css-var-from-global(('result', 'color'), ('color', $type));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
13
21
|
display: flex;
|
|
14
22
|
justify-content: center;
|
|
15
23
|
align-items: center;
|
|
@@ -53,11 +61,4 @@ $name: result;
|
|
|
53
61
|
@include e(extra) {
|
|
54
62
|
margin-top: getCssVar('result-extra-margin-top');
|
|
55
63
|
}
|
|
56
|
-
|
|
57
|
-
@each $type in $types {
|
|
58
|
-
.icon-#{$type} {
|
|
59
|
-
@include css-var-from-global(('result', 'color'), ('color', $type));
|
|
60
|
-
color: getCssVar('result-color');
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
64
|
}
|
package/theme-style/src/row.scss
CHANGED
|
@@ -10,21 +10,27 @@
|
|
|
10
10
|
@include when(justify-center) {
|
|
11
11
|
justify-content: center;
|
|
12
12
|
}
|
|
13
|
+
|
|
13
14
|
@include when(justify-end) {
|
|
14
15
|
justify-content: flex-end;
|
|
15
16
|
}
|
|
17
|
+
|
|
16
18
|
@include when(justify-space-between) {
|
|
17
19
|
justify-content: space-between;
|
|
18
20
|
}
|
|
21
|
+
|
|
19
22
|
@include when(justify-space-around) {
|
|
20
23
|
justify-content: space-around;
|
|
21
24
|
}
|
|
25
|
+
|
|
22
26
|
@include when(justify-space-evenly) {
|
|
23
27
|
justify-content: space-evenly;
|
|
24
28
|
}
|
|
29
|
+
|
|
25
30
|
@include when(align-middle) {
|
|
26
31
|
align-items: center;
|
|
27
32
|
}
|
|
33
|
+
|
|
28
34
|
@include when(align-bottom) {
|
|
29
35
|
align-items: flex-end;
|
|
30
36
|
}
|
|
@@ -27,14 +27,14 @@ $name: search;
|
|
|
27
27
|
border: 1px solid getCompCssVar('border-color');
|
|
28
28
|
border-radius: getCompCssVar('border-radius');
|
|
29
29
|
|
|
30
|
+
@include when(focus) {
|
|
31
|
+
background-color: getCompCssVar('active-bg-color');
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
&:hover {
|
|
31
35
|
background-color: getCompCssVar('hover-bg-color');
|
|
32
36
|
border: 1px solid getCompCssVar('hover-border-color');
|
|
33
37
|
}
|
|
34
|
-
|
|
35
|
-
@include when(focus) {
|
|
36
|
-
background-color: getCompCssVar('active-bg-color');
|
|
37
|
-
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
3
2
|
@use 'mixins/mixins' as *;
|
|
4
3
|
@use 'mixins/var' as *;
|
|
5
4
|
@use 'common/var' as *;
|
|
@@ -9,15 +8,12 @@
|
|
|
9
8
|
border-radius: getCssVar('border-radius-base');
|
|
10
9
|
box-sizing: border-box;
|
|
11
10
|
|
|
12
|
-
.#{$namespace}-scrollbar.is-empty .#{$namespace}-select-dropdown__list {
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
@include e(option-item) {
|
|
17
12
|
@include when(selected) {
|
|
18
13
|
&:not(.is-multiple) {
|
|
19
14
|
@include when(disabled) {
|
|
20
15
|
color: getCssVar('text-disabled-color');
|
|
16
|
+
|
|
21
17
|
&::after {
|
|
22
18
|
background-color: getCssVar('text-disabled-color');
|
|
23
19
|
}
|
|
@@ -41,6 +37,10 @@
|
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
}
|
|
40
|
+
|
|
41
|
+
.#{$namespace}-scrollbar.is-empty .#{$namespace}-select-dropdown__list {
|
|
42
|
+
padding: 0;
|
|
43
|
+
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@include b(select-dropdown__empty) {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
0% {
|
|
22
22
|
background-position: 100% 50%;
|
|
23
23
|
}
|
|
24
|
+
|
|
24
25
|
100% {
|
|
25
26
|
background-position: 0 50%;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
@include b(skeleton) {
|
|
30
|
-
width: 100%;
|
|
31
31
|
@each $unit in (first-line, paragraph) {
|
|
32
32
|
@include e($unit) {
|
|
33
33
|
height: 16px;
|
|
@@ -36,9 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
width: 100%;
|
|
40
|
+
|
|
39
41
|
@include when(animated) {
|
|
40
42
|
.#{$namespace}-skeleton__item {
|
|
41
|
-
@include skeleton-color
|
|
43
|
+
@include skeleton-color;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
|
|
3
2
|
@use 'mixins/mixins' as *;
|
|
4
3
|
@use 'mixins/var' as *;
|
|
5
4
|
@use 'common/var' as *;
|
|
@@ -19,6 +18,15 @@ $slider-height: map.merge(
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@include b(slider) {
|
|
21
|
+
@each $size in (large, small) {
|
|
22
|
+
@include m($size) {
|
|
23
|
+
height: map.get($slider-height, $size);
|
|
24
|
+
|
|
25
|
+
@include e(runway) {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
width: 100%;
|
|
23
31
|
height: map.get($slider-height, 'default');
|
|
24
32
|
display: flex;
|
|
@@ -103,6 +111,7 @@ $slider-height: map.merge(
|
|
|
103
111
|
user-select: none;
|
|
104
112
|
line-height: normal;
|
|
105
113
|
outline: none;
|
|
114
|
+
|
|
106
115
|
@include utils-vertical-center;
|
|
107
116
|
|
|
108
117
|
&:hover,
|
|
@@ -175,6 +184,12 @@ $slider-height: map.merge(
|
|
|
175
184
|
height: 100%;
|
|
176
185
|
flex: 0;
|
|
177
186
|
|
|
187
|
+
@include e(marks-text) {
|
|
188
|
+
margin-top: 0;
|
|
189
|
+
left: 15px;
|
|
190
|
+
transform: translateY(50%);
|
|
191
|
+
}
|
|
192
|
+
|
|
178
193
|
.#{$namespace}-slider__runway {
|
|
179
194
|
width: getCssVar('slider-height');
|
|
180
195
|
height: 100%;
|
|
@@ -193,19 +208,5 @@ $slider-height: map.merge(
|
|
|
193
208
|
.#{$namespace}-slider__stop {
|
|
194
209
|
transform: translateY(50%);
|
|
195
210
|
}
|
|
196
|
-
|
|
197
|
-
@include e(marks-text) {
|
|
198
|
-
margin-top: 0;
|
|
199
|
-
left: 15px;
|
|
200
|
-
transform: translateY(50%);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
@each $size in (large, small) {
|
|
205
|
-
@include m($size) {
|
|
206
|
-
height: map.get($slider-height, $size);
|
|
207
|
-
@include e(runway) {
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
211
|
}
|
|
211
212
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
display: inline-block;
|
|
10
10
|
vertical-align: middle;
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
@include b(spinner-inner) {
|
|
13
14
|
animation: rotate 2s linear infinite;
|
|
14
15
|
width: 50px;
|
|
@@ -32,10 +33,12 @@
|
|
|
32
33
|
stroke-dasharray: 1, 150;
|
|
33
34
|
stroke-dashoffset: 0;
|
|
34
35
|
}
|
|
36
|
+
|
|
35
37
|
50% {
|
|
36
38
|
stroke-dasharray: 90, 150;
|
|
37
39
|
stroke-dashoffset: -35;
|
|
38
40
|
}
|
|
41
|
+
|
|
39
42
|
100% {
|
|
40
43
|
stroke-dasharray: 90, 150;
|
|
41
44
|
stroke-dashoffset: -124;
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
line-height: 1;
|
|
85
85
|
color: inherit;
|
|
86
86
|
|
|
87
|
-
&[class*='#{$namespace}-icon']:not(.is-status) {
|
|
88
|
-
font-size: 25px;
|
|
89
|
-
font-weight: normal;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
87
|
// 组件自身表示状态的图标
|
|
93
88
|
@include when(status) {
|
|
94
89
|
transform: translateY(1px);
|
|
95
90
|
}
|
|
91
|
+
|
|
92
|
+
&[class*='#{$namespace}-icon']:not(.is-status) {
|
|
93
|
+
font-size: 25px;
|
|
94
|
+
font-weight: normal;
|
|
95
|
+
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
@include e(line) {
|