vdesign-ui 0.2.1 → 0.2.3
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/dist/components/actionbar/style.less +8 -12
- package/dist/components/actionbar-cell/index.js +7 -0
- package/dist/components/{actionbar/actionbar-cell → actionbar-cell}/index.vue +4 -0
- package/dist/components/{actions-cell/actions → actions}/index.vue +6 -6
- package/dist/components/{actions-cell/actions → actions}/style.less +38 -41
- package/dist/components/activityviews/index.vue +76 -28
- package/dist/components/activityviews/style.less +59 -45
- package/dist/components/badge/style.less +22 -34
- package/dist/components/button/index.vue +4 -0
- package/dist/components/button/style.less +82 -87
- package/dist/components/calendar/index.vue +1 -1
- package/dist/components/calendar/style.less +24 -53
- package/dist/components/checkbox/index.vue +5 -1
- package/dist/components/checkbox/style.less +30 -32
- package/dist/components/checkbox-group/index.js +7 -0
- package/dist/components/{checkbox/checkbox-group → checkbox-group}/index.vue +1 -2
- package/dist/components/common/state/index.vue +1 -48
- package/dist/components/common/state/style.less +48 -0
- package/dist/components/data-list/style.less +81 -82
- package/dist/components/datetime-picker/style.less +12 -12
- package/dist/components/dialog/index.vue +9 -1
- package/dist/components/dialog/style.less +27 -31
- package/dist/components/divider/style.less +1 -1
- package/dist/components/dropdown/index.vue +6 -1
- package/dist/components/dropdown/style.less +117 -125
- package/dist/components/empty/index.vue +35 -20
- package/dist/components/empty/style.less +33 -36
- package/dist/components/footer/style.less +6 -7
- package/dist/components/footnav/index.vue +1 -1
- package/dist/components/footnav/style.less +5 -5
- package/dist/components/{footnav/footnav-item → footnav-item}/index.vue +7 -1
- package/dist/components/{footnav/footnav-item → footnav-item}/style.less +2 -2
- package/dist/components/headnav/index.vue +5 -1
- package/dist/components/headnav/style.less +54 -58
- package/dist/components/icon/style.less +4 -4
- package/dist/components/input/index.vue +4 -0
- package/dist/components/input/style.less +88 -101
- package/dist/components/list/index.vue +5 -0
- package/dist/components/list/style.less +45 -52
- package/dist/components/loading/style.less +25 -27
- package/dist/components/mixins/languageMixin.js +7 -4
- package/dist/components/mixins/outlineConfigPlugin.js +1 -1
- package/dist/components/mixins/themeMixin.js +29 -15
- package/dist/components/noticebar/index.vue +7 -1
- package/dist/components/noticebar/style.less +125 -129
- package/dist/components/overlay/index.vue +34 -11
- package/dist/components/pagebreak/style.less +18 -19
- package/dist/components/popover/index.vue +2 -1
- package/dist/components/popover/style.less +39 -39
- package/dist/components/popup/index.js +7 -0
- package/dist/components/popup/index.vue +243 -0
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.vue +1 -1
- package/dist/components/radio/style.less +35 -43
- package/dist/components/radio-group/index.js +6 -0
- package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
- package/dist/components/result/completed-dark.png +0 -0
- package/dist/components/result/completed.png +0 -0
- package/dist/components/result/error-dark.png +0 -0
- package/dist/components/result/error.png +0 -0
- package/dist/components/result/index.vue +1 -2
- package/dist/components/result/style.less +22 -20
- package/dist/components/result/wait-dark.png +0 -0
- package/dist/components/result/wait.png +0 -0
- package/dist/components/{input/search → search}/index.vue +4 -0
- package/dist/components/selector/index.vue +4 -0
- package/dist/components/selector/style.less +96 -100
- package/dist/components/skeleton/index.vue +156 -92
- package/dist/components/skeleton/style.less +112 -107
- package/dist/components/slider/index.vue +1 -1
- package/dist/components/slider/style.less +41 -37
- package/dist/components/step/style.less +3 -4
- package/dist/components/step-item/index.vue +12 -3
- package/dist/components/step-item/style.less +61 -60
- package/dist/components/{input/stepper → stepper}/index.vue +5 -1
- package/dist/components/switch/style.less +8 -8
- package/dist/components/tab/index.js +7 -0
- package/dist/components/tabs/index.vue +4 -0
- package/dist/components/tabs/style.less +97 -105
- package/dist/components/tag/style.less +35 -35
- package/dist/components/title/index.vue +4 -0
- package/dist/components/title/style.less +164 -170
- package/dist/components/toast/index.js +9 -3
- package/dist/components/toast/style.less +8 -8
- package/dist/components/upload/index.vue +4 -0
- package/dist/components/upload/style.less +22 -31
- package/dist/components/utils/env.js +2 -0
- package/dist/token.css +1278 -1278
- package/dist/vdesign-ui.common.js +1315 -1076
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +1315 -1076
- package/dist/vdesign-ui.umd.min.js +3 -3
- package/package.json +1 -1
- package/dist/components/checkbox/checkbox-group/index.js +0 -8
- package/dist/components/radio/assist.js +0 -34
- package/dist/components/radio/style.css +0 -213
- package/dist/img/completed-dark.4183a8a8.png +0 -0
- package/dist/img/error-dark.b80857da.png +0 -0
- package/dist/img/wait-dark.6aa28731.png +0 -0
- /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
- /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
- /package/dist/components/{input/password → password}/index.js +0 -0
- /package/dist/components/{input/password → password}/index.vue +0 -0
- /package/dist/components/{input/search → search}/index.js +0 -0
- /package/dist/components/{input/stepper → stepper}/index.js +0 -0
- /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
- /package/dist/components/{checkbox → utils}/assist.js +0 -0
|
@@ -8,46 +8,44 @@
|
|
|
8
8
|
transform: translate(-50%, -50%);
|
|
9
9
|
width: 279px;
|
|
10
10
|
background-color: var(--color-dialog-bg);
|
|
11
|
-
border-radius:
|
|
12
|
-
padding-inline-start:
|
|
13
|
-
padding-inline-end:
|
|
11
|
+
border-radius: var(--radius-dialog-content);
|
|
12
|
+
padding-inline-start: var(--spacing-dialog-padding_left);
|
|
13
|
+
padding-inline-end: var(--spacing-dialog-padding_right);
|
|
14
14
|
|
|
15
15
|
::-webkit-scrollbar {
|
|
16
16
|
width: 3px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
&__header {
|
|
21
|
-
padding-block-start:
|
|
20
|
+
padding-block-start: var(--spacing-dialog-padding_top);
|
|
22
21
|
|
|
23
22
|
&--img {
|
|
24
|
-
padding-block-start:
|
|
23
|
+
padding-block-start: var(--spacing-dialog-icon-padding_top);
|
|
25
24
|
|
|
26
25
|
&-content {
|
|
27
26
|
text-align: center;
|
|
28
|
-
margin-block-end:
|
|
27
|
+
margin-block-end: var(--spacing-dialog-icon_title-margin_top);
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
&__title {
|
|
35
33
|
text-align: center;
|
|
36
|
-
font-size:
|
|
34
|
+
font-size: var(--en-multi-f-e-s-fontSize);
|
|
37
35
|
font-weight: var(--en-multi-f-e-s-fontWeight);
|
|
38
|
-
line-height:
|
|
36
|
+
line-height: var(--en-multi-f-e-s-lineHeight);
|
|
39
37
|
color: var(--color-dialog-title);
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
&__message {
|
|
43
41
|
text-align: center;
|
|
44
42
|
overflow-y: auto;
|
|
45
|
-
min-height:
|
|
46
|
-
max-height:
|
|
47
|
-
margin-block-start:
|
|
48
|
-
font-size:
|
|
43
|
+
min-height: var(--height-dialog-super_small);
|
|
44
|
+
max-height: var(--height-dialog-super_large);
|
|
45
|
+
margin-block-start: var(--spacing-dialog-title-margin_bottom);
|
|
46
|
+
font-size: var(--en-multi-f-d-r-fontSize);
|
|
49
47
|
font-weight: var(--en-multi-f-d-r-fontWeight);
|
|
50
|
-
line-height:
|
|
48
|
+
line-height: var(--en-multi-f-d-r-lineHeight);
|
|
51
49
|
color: var(--color-dialog-text);
|
|
52
50
|
|
|
53
51
|
&--head {
|
|
@@ -57,62 +55,60 @@
|
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
&__footer {
|
|
60
|
-
margin-block-start:
|
|
58
|
+
margin-block-start: var(--spacing-dialog-button-margin_top);
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
&__btns {
|
|
64
62
|
display: flex;
|
|
65
63
|
justify-content: space-between;
|
|
66
|
-
padding-block-end:
|
|
64
|
+
padding-block-end: var(--spacing-dialog-padding_bottom);
|
|
67
65
|
|
|
68
66
|
button {
|
|
69
67
|
flex: 1;
|
|
70
68
|
}
|
|
71
69
|
|
|
72
|
-
button+button {
|
|
73
|
-
margin-inline-start:
|
|
70
|
+
button + button {
|
|
71
|
+
margin-inline-start: var(--spacing-dialog-button_double-margin_mid);
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
&__btn {
|
|
78
|
-
padding-block-end:
|
|
79
|
-
padding-inline-start:
|
|
80
|
-
padding-inline-end:
|
|
76
|
+
padding-block-end: var(--spacing-dialog-padding_bottom);
|
|
77
|
+
padding-inline-start: var(--spacing-dialog-button_single-margin_left);
|
|
78
|
+
padding-inline-end: var(--spacing-dialog-button_single-margin_right);
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
&__btns--text {
|
|
84
82
|
display: flex;
|
|
85
83
|
justify-content: space-between;
|
|
86
|
-
padding-block-end:
|
|
84
|
+
padding-block-end: var(--spacing-dialog-button_text-padding_bottom);
|
|
87
85
|
|
|
88
86
|
button {
|
|
89
87
|
flex: 1;
|
|
90
88
|
}
|
|
91
89
|
|
|
92
|
-
button+button {
|
|
93
|
-
margin-inline-start:
|
|
90
|
+
button + button {
|
|
91
|
+
margin-inline-start: var(--spacing-dialog-button_double-margin_mid);
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
&__btn--text-block {
|
|
98
96
|
display: flex;
|
|
99
97
|
justify-content: space-between;
|
|
100
|
-
padding-block-end:
|
|
98
|
+
padding-block-end: var(--spacing-dialog-button_text-padding_bottom);
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
&__btns-block {
|
|
104
|
-
|
|
105
|
-
padding-block-end: calc(var(--spacing-dialog-button_text-padding_bottom) * 1px);
|
|
102
|
+
padding-block-end: var(--spacing-dialog-button_text-padding_bottom);
|
|
106
103
|
|
|
107
104
|
button {
|
|
108
105
|
flex: 1;
|
|
109
106
|
}
|
|
110
107
|
|
|
111
|
-
button+button {
|
|
112
|
-
margin-block-start:
|
|
108
|
+
button + button {
|
|
109
|
+
margin-block-start: var(--spacing-dialog-button_double-margin_mid);
|
|
113
110
|
}
|
|
114
111
|
}
|
|
115
|
-
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
.vd-overlay {
|
|
@@ -49,10 +49,15 @@
|
|
|
49
49
|
|
|
50
50
|
<script>
|
|
51
51
|
import clickoutside from "../mixins/clickoutside.js";
|
|
52
|
-
|
|
52
|
+
import VdIcon from '../icon';
|
|
53
|
+
import VdButton from '../button';
|
|
53
54
|
const prefixCls = 'vd-dropdown';
|
|
54
55
|
export default {
|
|
55
56
|
name: 'vd-dropdown',
|
|
57
|
+
components: {
|
|
58
|
+
VdIcon,
|
|
59
|
+
VdButton
|
|
60
|
+
},
|
|
56
61
|
directives: {
|
|
57
62
|
clickoutside
|
|
58
63
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--translate-x: -50%;
|
|
17
17
|
|
|
18
18
|
position: relative;
|
|
19
|
-
font-size:
|
|
19
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
20
20
|
|
|
21
21
|
// 额外加的 btn,token之外的
|
|
22
22
|
&--btn {
|
|
@@ -67,171 +67,168 @@
|
|
|
67
67
|
.@{dropdown-prefix-cls}-menu {
|
|
68
68
|
display: inline-block;
|
|
69
69
|
overflow-y: auto;
|
|
70
|
-
min-width:
|
|
71
|
-
max-height:
|
|
70
|
+
min-width: var(--width-dropdown-primary_small);
|
|
71
|
+
max-height: var(--height-dropdown-primary_large);
|
|
72
72
|
background-color: var(--color-dropdown-bg-default);
|
|
73
|
-
padding-block-start:
|
|
74
|
-
padding-block-end:
|
|
75
|
-
padding-inline-start:
|
|
76
|
-
padding-inline-end:
|
|
73
|
+
padding-block-start: var(--spacing-dropdown-primary-padding_x);
|
|
74
|
+
padding-block-end: var(--spacing-dropdown-primary-padding_x);
|
|
75
|
+
padding-inline-start: var(--spacing-dropdown-primary-padding_y);
|
|
76
|
+
padding-inline-end: var(--spacing-dropdown-primary-padding_y);
|
|
77
77
|
box-shadow: var(--shadow-s2);
|
|
78
|
-
border-radius:
|
|
78
|
+
border-radius: var(--radius-dropdown-primary);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
.@{dropdown-prefix-cls}-item {
|
|
82
82
|
position: relative;
|
|
83
83
|
display: flex;
|
|
84
84
|
justify-content: space-between;
|
|
85
85
|
align-items: center;
|
|
86
|
-
height:
|
|
87
|
-
line-height:
|
|
86
|
+
height: var(--height-dropdown-primary_item);
|
|
87
|
+
line-height: var(--height-dropdown-primary_item);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
|
|
90
90
|
.@{dropdown-prefix-cls} {
|
|
91
91
|
&-left {
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
&-text {
|
|
97
97
|
white-space: nowrap;
|
|
98
98
|
color: var(--color-dropdown-primary-text-default);
|
|
99
|
-
font-size:
|
|
99
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
100
100
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
|
|
103
103
|
&-icon {
|
|
104
|
-
font-size:
|
|
105
|
-
margin-inline-end:
|
|
104
|
+
font-size: var(--icon-dropdown-primary);
|
|
105
|
+
margin-inline-end: var(--spacing-dropdown-primary_icon-margin_right);
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
&-active-select {
|
|
109
|
-
font-size:
|
|
110
|
-
margin-inline-start:
|
|
109
|
+
font-size: var(--icon-dropdown-primary_select);
|
|
110
|
+
margin-inline-start: var(--spacing-dropdown-primary_icon_select-margin_left);
|
|
111
111
|
transform: scaleX(1) !important;
|
|
112
112
|
direction: ltr;
|
|
113
113
|
}
|
|
114
|
-
|
|
115
114
|
}
|
|
116
|
-
|
|
115
|
+
|
|
117
116
|
.@{dropdown-prefix-cls}--active {
|
|
118
117
|
.@{dropdown-prefix-cls}-text {
|
|
119
118
|
color: var(--color-dropdown-primary-text-active);
|
|
120
|
-
font-size:
|
|
119
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
121
120
|
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
|
-
|
|
123
|
+
|
|
125
124
|
.@{dropdown-prefix-cls}--disabled {
|
|
126
125
|
pointer-events: none;
|
|
127
126
|
cursor: not-allowed;
|
|
128
|
-
|
|
127
|
+
|
|
129
128
|
.@{dropdown-prefix-cls}-text {
|
|
130
129
|
color: var(--color-dropdown-primary-text-disable);
|
|
131
|
-
font-size:
|
|
130
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
132
131
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
133
132
|
}
|
|
134
|
-
|
|
133
|
+
|
|
135
134
|
.@{dropdown-prefix-cls}-icon {
|
|
136
135
|
opacity: var(--opacity-30);
|
|
137
136
|
}
|
|
138
137
|
}
|
|
139
|
-
}
|
|
138
|
+
}
|
|
140
139
|
|
|
141
140
|
&-secondary {
|
|
142
141
|
.@{dropdown-prefix-cls}-menu {
|
|
143
142
|
display: inline-block;
|
|
144
143
|
overflow-y: auto;
|
|
145
|
-
max-height:
|
|
144
|
+
max-height: var(--height-dropdown-secondary_large);
|
|
146
145
|
background-color: var(--color-dropdown-bg-default);
|
|
147
|
-
padding-block-start:
|
|
148
|
-
padding-block-end:
|
|
149
|
-
padding-inline-start:
|
|
150
|
-
padding-inline-end:
|
|
146
|
+
padding-block-start: var(--spacing-dropdown-secondary-padding_x);
|
|
147
|
+
padding-block-end: var(--spacing-dropdown-secondary-padding_x);
|
|
148
|
+
padding-inline-start: var(--spacing-dropdown-secondary-padding_y);
|
|
149
|
+
padding-inline-end: var(--spacing-dropdown-secondary-padding_y);
|
|
151
150
|
box-shadow: var(--shadow-s2);
|
|
152
|
-
border-radius:
|
|
151
|
+
border-radius: var(--radius-dropdown-secondary);
|
|
153
152
|
}
|
|
154
|
-
|
|
153
|
+
|
|
155
154
|
.@{dropdown-prefix-cls}-item {
|
|
156
155
|
position: relative;
|
|
157
156
|
display: flex;
|
|
158
157
|
justify-content: space-between;
|
|
159
158
|
align-items: center;
|
|
160
|
-
height:
|
|
161
|
-
line-height:
|
|
159
|
+
height: var(--height-dropdown-secondary_item);
|
|
160
|
+
line-height: var(--height-dropdown-secondary_item);
|
|
162
161
|
}
|
|
163
|
-
|
|
162
|
+
|
|
164
163
|
.@{dropdown-prefix-cls} {
|
|
165
164
|
&-left {
|
|
166
165
|
display: flex;
|
|
167
166
|
align-items: center;
|
|
168
167
|
}
|
|
169
|
-
|
|
168
|
+
|
|
170
169
|
&-text {
|
|
171
170
|
white-space: nowrap;
|
|
172
171
|
color: var(--color-dropdown-secondary-text-default);
|
|
173
|
-
font-size:
|
|
172
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
174
173
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
175
174
|
}
|
|
176
|
-
|
|
175
|
+
|
|
177
176
|
&-icon {
|
|
178
|
-
font-size:
|
|
179
|
-
margin-inline-end:
|
|
177
|
+
font-size: var(--icon-dropdown-secondary);
|
|
178
|
+
margin-inline-end: var(--spacing-dropdown-secondary_icon-margin_right);
|
|
180
179
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
180
|
}
|
|
184
|
-
|
|
181
|
+
|
|
185
182
|
.@{dropdown-prefix-cls}--active {
|
|
186
183
|
.@{dropdown-prefix-cls}-text {
|
|
187
184
|
color: var(--color-dropdown-secondary-text-active);
|
|
188
|
-
font-size:
|
|
185
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
189
186
|
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
190
187
|
}
|
|
191
188
|
}
|
|
192
|
-
|
|
189
|
+
|
|
193
190
|
.@{dropdown-prefix-cls}--disabled {
|
|
194
191
|
pointer-events: none;
|
|
195
192
|
cursor: not-allowed;
|
|
196
|
-
|
|
193
|
+
|
|
197
194
|
.@{dropdown-prefix-cls}-text {
|
|
198
195
|
color: var(--color-dropdown-secondary-text-disable);
|
|
199
|
-
font-size:
|
|
196
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
200
197
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
201
198
|
}
|
|
202
|
-
|
|
199
|
+
|
|
203
200
|
.@{dropdown-prefix-cls}-icon {
|
|
204
201
|
opacity: var(--opacity-30);
|
|
205
202
|
}
|
|
206
203
|
}
|
|
207
|
-
}
|
|
204
|
+
}
|
|
208
205
|
|
|
209
206
|
&-state {
|
|
210
207
|
.@{dropdown-prefix-cls}-menu {
|
|
211
208
|
overflow-y: auto;
|
|
212
|
-
min-width:
|
|
213
|
-
max-height:
|
|
209
|
+
min-width: var(--width-dropdown-state_small);
|
|
210
|
+
max-height: var(--height-dropdown-state_large);
|
|
214
211
|
background-color: var(--color-dropdown-bg-default);
|
|
215
|
-
padding-block-start:
|
|
216
|
-
padding-block-end:
|
|
217
|
-
padding-inline-start:
|
|
218
|
-
padding-inline-end:
|
|
212
|
+
padding-block-start: var(--spacing-dropdown-state-padding_x);
|
|
213
|
+
padding-block-end: var(--spacing-dropdown-state-padding_x);
|
|
214
|
+
padding-inline-start: var(--spacing-dropdown-state-padding_y);
|
|
215
|
+
padding-inline-end: var(--spacing-dropdown-state-padding_y);
|
|
219
216
|
box-shadow: var(--shadow-s2);
|
|
220
|
-
border-radius:
|
|
217
|
+
border-radius: var(--radius-dropdown-state);
|
|
221
218
|
}
|
|
222
|
-
|
|
219
|
+
|
|
223
220
|
.@{dropdown-prefix-cls}-item {
|
|
224
221
|
position: relative;
|
|
225
222
|
display: flex;
|
|
226
223
|
justify-content: space-between;
|
|
227
224
|
align-items: center;
|
|
228
|
-
height:
|
|
229
|
-
line-height:
|
|
230
|
-
padding-inline-start:
|
|
231
|
-
padding-inline-end:
|
|
232
|
-
border-radius:
|
|
225
|
+
height: var(--height-dropdown-state_item);
|
|
226
|
+
line-height: var(--height-dropdown-state_item);
|
|
227
|
+
padding-inline-start: var(--spacing-dropdown-state_item-padding_y);
|
|
228
|
+
padding-inline-end: var(--spacing-dropdown-state_item-padding_y);
|
|
229
|
+
border-radius: var(--radius-dropdown-state_item);
|
|
233
230
|
}
|
|
234
|
-
|
|
231
|
+
|
|
235
232
|
.@{dropdown-prefix-cls} {
|
|
236
233
|
&-left {
|
|
237
234
|
display: flex;
|
|
@@ -239,180 +236,175 @@
|
|
|
239
236
|
flex: 1;
|
|
240
237
|
overflow: hidden;
|
|
241
238
|
}
|
|
242
|
-
|
|
239
|
+
|
|
243
240
|
&-text {
|
|
244
241
|
text-overflow: ellipsis;
|
|
245
242
|
overflow: hidden;
|
|
246
243
|
white-space: nowrap;
|
|
247
244
|
color: var(--color-dropdown-state-text-default);
|
|
248
|
-
font-size:
|
|
245
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
249
246
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
250
247
|
}
|
|
251
|
-
|
|
248
|
+
|
|
252
249
|
&-icon {
|
|
253
|
-
font-size:
|
|
254
|
-
margin-inline-end:
|
|
250
|
+
font-size: var(--icon-dropdown-state);
|
|
251
|
+
margin-inline-end: var(--spacing-dropdown-state_icon-margin_right);
|
|
255
252
|
}
|
|
256
|
-
|
|
253
|
+
|
|
257
254
|
&-state-text {
|
|
258
|
-
font-size:
|
|
255
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
259
256
|
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
260
|
-
|
|
257
|
+
|
|
261
258
|
&::before {
|
|
262
259
|
content: '';
|
|
263
260
|
display: inline-block;
|
|
264
261
|
border-radius: 50%;
|
|
265
|
-
width:
|
|
266
|
-
height:
|
|
267
|
-
margin-inline-start:
|
|
268
|
-
margin-inline-end:
|
|
262
|
+
width: var(--width-dropdown-state_drop);
|
|
263
|
+
height: var(--width-dropdown-state_drop);
|
|
264
|
+
margin-inline-start: var(--spacing-dropdown-state_drop-margin_left);
|
|
265
|
+
margin-inline-end: var(--spacing-dropdown-state_drop-margin_right);
|
|
269
266
|
background-color: var(--color-dropdown-state-open);
|
|
270
267
|
}
|
|
271
|
-
|
|
268
|
+
|
|
272
269
|
&--open {
|
|
273
270
|
color: var(--color-dropdown-state-open);
|
|
274
|
-
|
|
271
|
+
|
|
275
272
|
&::before {
|
|
276
273
|
background-color: var(--color-dropdown-state-open);
|
|
277
274
|
}
|
|
278
275
|
}
|
|
279
|
-
|
|
276
|
+
|
|
280
277
|
&--preopen {
|
|
281
278
|
color: var(--color-dropdown-state-preopen);
|
|
282
|
-
|
|
279
|
+
|
|
283
280
|
&::before {
|
|
284
281
|
background-color: var(--color-dropdown-state-preopen);
|
|
285
282
|
}
|
|
286
283
|
}
|
|
287
|
-
|
|
284
|
+
|
|
288
285
|
&--close {
|
|
289
286
|
color: var(--color-dropdown-state-close);
|
|
290
|
-
|
|
287
|
+
|
|
291
288
|
&::before {
|
|
292
289
|
background-color: var(--text-color-h3);
|
|
293
290
|
}
|
|
294
291
|
}
|
|
295
|
-
|
|
292
|
+
|
|
296
293
|
&--fusing {
|
|
297
294
|
color: var(--color-dropdown-state-fusing);
|
|
298
|
-
|
|
295
|
+
|
|
299
296
|
&::before {
|
|
300
297
|
background-color: var(--color-dropdown-state-fusing);
|
|
301
298
|
}
|
|
302
299
|
}
|
|
303
|
-
|
|
300
|
+
|
|
304
301
|
&--pre {
|
|
305
302
|
color: var(--color-dropdown-state-pre_market_auction);
|
|
306
|
-
|
|
303
|
+
|
|
307
304
|
&::before {
|
|
308
305
|
background-color: var(--color-dropdown-state-pre_market_auction);
|
|
309
306
|
}
|
|
310
307
|
}
|
|
311
|
-
|
|
308
|
+
|
|
312
309
|
&--last {
|
|
313
310
|
color: var(--color-dropdown-state-last_trading_session);
|
|
314
|
-
|
|
311
|
+
|
|
315
312
|
&::before {
|
|
316
313
|
background-color: var(--color-dropdown-state-last_trading_session);
|
|
317
314
|
}
|
|
318
315
|
}
|
|
319
316
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
317
|
}
|
|
323
|
-
|
|
318
|
+
|
|
324
319
|
.@{dropdown-prefix-cls}--active {
|
|
325
320
|
background: var(--color-dropdown-state-bg-active);
|
|
326
|
-
|
|
321
|
+
|
|
327
322
|
.@{dropdown-prefix-cls}-text {
|
|
328
323
|
color: var(--color-dropdown-state-text-active);
|
|
329
324
|
}
|
|
330
325
|
}
|
|
331
|
-
|
|
326
|
+
|
|
332
327
|
.@{dropdown-prefix-cls}--disabled {
|
|
333
328
|
pointer-events: none;
|
|
334
329
|
cursor: not-allowed;
|
|
335
|
-
|
|
330
|
+
|
|
336
331
|
.@{dropdown-prefix-cls}-text {
|
|
337
|
-
font-size:
|
|
332
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
338
333
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
339
334
|
}
|
|
340
|
-
|
|
335
|
+
|
|
341
336
|
.@{dropdown-prefix-cls}-icon {
|
|
342
337
|
opacity: var(--opacity-30);
|
|
343
338
|
}
|
|
344
|
-
|
|
345
339
|
}
|
|
346
340
|
}
|
|
347
341
|
|
|
348
342
|
&-group {
|
|
349
343
|
.@{dropdown-prefix-cls}-menu {
|
|
350
344
|
overflow-y: auto;
|
|
351
|
-
min-width:
|
|
352
|
-
max-height:
|
|
345
|
+
min-width: var(--width-dropdown-group_default);
|
|
346
|
+
max-height: var(--height-dropdown-group_large);
|
|
353
347
|
background-color: var(--color-dropdown-bg-default);
|
|
354
|
-
padding-block-start:
|
|
355
|
-
padding-block-end:
|
|
356
|
-
padding-inline-start:
|
|
357
|
-
padding-inline-end:
|
|
348
|
+
padding-block-start: var(--spacing-dropdown-group-padding_x);
|
|
349
|
+
padding-block-end: var(--spacing-dropdown-group-padding_x);
|
|
350
|
+
padding-inline-start: var(--spacing-dropdown-group-padding_y);
|
|
351
|
+
padding-inline-end: var(--spacing-dropdown-group-padding_y);
|
|
358
352
|
box-shadow: var(--shadow-s2);
|
|
359
|
-
border-radius:
|
|
353
|
+
border-radius: var(--radius-dropdown-group);
|
|
360
354
|
}
|
|
361
|
-
|
|
355
|
+
|
|
362
356
|
.@{dropdown-prefix-cls}-item {
|
|
363
357
|
position: relative;
|
|
364
358
|
display: flex;
|
|
365
359
|
justify-content: space-between;
|
|
366
360
|
align-items: center;
|
|
367
|
-
padding-block-start:
|
|
368
|
-
padding-block-end:
|
|
369
|
-
|
|
361
|
+
padding-block-start: var(--spacing-dropdown-group_item-padding_top);
|
|
362
|
+
padding-block-end: var(--spacing-dropdown-group_item-padding_bottom);
|
|
370
363
|
}
|
|
371
|
-
|
|
364
|
+
|
|
372
365
|
.@{dropdown-prefix-cls} {
|
|
373
366
|
&-left {
|
|
374
367
|
display: flex;
|
|
375
368
|
align-items: center;
|
|
376
369
|
}
|
|
377
|
-
|
|
370
|
+
|
|
378
371
|
&-group-cell {
|
|
379
372
|
display: flex;
|
|
380
373
|
flex-direction: column;
|
|
381
374
|
color: var(--color-dropdown-state-text-default);
|
|
382
|
-
font-size:
|
|
375
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
383
376
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
384
377
|
}
|
|
385
|
-
|
|
378
|
+
|
|
386
379
|
&-text {
|
|
387
380
|
color: var(--color-dropdown-group-title-default);
|
|
388
|
-
font-size:
|
|
381
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
389
382
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
390
383
|
}
|
|
391
|
-
|
|
384
|
+
|
|
392
385
|
&-group-sub {
|
|
393
386
|
display: flex;
|
|
394
387
|
align-items: center;
|
|
395
|
-
margin-block-start:
|
|
388
|
+
margin-block-start: var(--spacing-dropdown-group_text-margin_bottom);
|
|
396
389
|
}
|
|
397
|
-
|
|
390
|
+
|
|
398
391
|
&-sub-icon {
|
|
399
|
-
font-size:
|
|
392
|
+
font-size: var(--icon-dropdown-group);
|
|
400
393
|
margin-inline-end: 6px;
|
|
401
394
|
}
|
|
402
|
-
|
|
395
|
+
|
|
403
396
|
&-subtext {
|
|
404
397
|
color: var(--color-dropdown-group-text-default);
|
|
405
|
-
font-size:
|
|
398
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
406
399
|
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
407
400
|
}
|
|
408
|
-
|
|
401
|
+
|
|
409
402
|
&-multext {
|
|
410
|
-
margin-block-start:
|
|
403
|
+
margin-block-start: var(--spacing-dropdown-group_text-margin_bottom);
|
|
411
404
|
}
|
|
412
|
-
|
|
413
405
|
}
|
|
414
406
|
}
|
|
415
|
-
|
|
407
|
+
|
|
416
408
|
&--divided {
|
|
417
409
|
.@{dropdown-prefix-cls}-item {
|
|
418
410
|
&:not(:last-child)::after {
|