vdesign-ui 0.2.12 → 0.2.14
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/README.md +78 -78
- package/dist/components/actionbar/index.js +8 -8
- package/dist/components/actionbar/index.vue +39 -39
- package/dist/components/actionbar/style.less +44 -44
- package/dist/components/actionbar-cell/index.js +7 -7
- package/dist/components/actionbar-cell/index.vue +38 -38
- package/dist/components/actions/index.js +6 -6
- package/dist/components/actions/index.vue +77 -76
- package/dist/components/actions/style.less +109 -109
- package/dist/components/actions-cell/index.js +6 -6
- package/dist/components/actions-cell/index.vue +94 -94
- package/dist/components/actions-cell/style.less +38 -38
- package/dist/components/activityviews/index.js +8 -8
- package/dist/components/activityviews/index.vue +192 -192
- package/dist/components/activityviews/style.less +151 -151
- package/dist/components/badge/index.js +8 -8
- package/dist/components/badge/index.vue +49 -49
- package/dist/components/badge/style.less +54 -54
- package/dist/components/button/index.js +8 -8
- package/dist/components/button/index.vue +93 -93
- package/dist/components/button/style.less +558 -558
- package/dist/components/calendar/index-element.vue +84 -84
- package/dist/components/calendar/index.js +7 -7
- package/dist/components/calendar/index.vue +52 -52
- package/dist/components/calendar/style.less +138 -138
- package/dist/components/checkbox/index.js +8 -8
- package/dist/components/checkbox/index.vue +161 -161
- package/dist/components/checkbox/style.less +288 -288
- package/dist/components/checkbox-group/index.js +7 -7
- package/dist/components/checkbox-group/index.vue +69 -69
- package/dist/components/common/state/index.vue +33 -33
- package/dist/components/common/state/style.less +47 -47
- package/dist/components/data-list/index.js +10 -10
- package/dist/components/data-list/index.vue +19 -19
- package/dist/components/data-list/style.less +623 -623
- package/dist/components/datetime-picker/index.js +7 -7
- package/dist/components/datetime-picker/index.vue +37 -37
- package/dist/components/datetime-picker/style.less +23 -23
- package/dist/components/dialog/index.js +8 -8
- package/dist/components/dialog/index.vue +164 -164
- package/dist/components/dialog/overlay-manager.js +18 -18
- package/dist/components/dialog/style.less +138 -138
- package/dist/components/divider/index.js +8 -8
- package/dist/components/divider/index.vue +54 -54
- package/dist/components/divider/style.less +92 -92
- package/dist/components/dropdown/index.js +8 -8
- package/dist/components/dropdown/index.vue +218 -218
- package/dist/components/dropdown/style.less +432 -432
- package/dist/components/empty/index.js +8 -8
- package/dist/components/empty/index.vue +138 -138
- package/dist/components/empty/style.less +60 -60
- package/dist/components/footer/index.js +6 -6
- package/dist/components/footer/index.vue +33 -33
- package/dist/components/footer/style.less +20 -20
- package/dist/components/footnav/index.js +6 -6
- package/dist/components/footnav/index.vue +93 -93
- package/dist/components/footnav/style.less +22 -22
- package/dist/components/footnav-item/index.js +6 -6
- package/dist/components/footnav-item/index.vue +50 -50
- package/dist/components/footnav-item/style.less +39 -39
- package/dist/components/form/index.js +6 -6
- package/dist/components/form/index.vue +12 -12
- package/dist/components/headnav/index.js +6 -6
- package/dist/components/headnav/index.vue +185 -185
- package/dist/components/headnav/style.less +231 -231
- package/dist/components/icon/font/iconfont.css +163 -163
- package/dist/components/icon/font/iconfont.js +5 -5
- package/dist/components/icon/index.js +9 -9
- package/dist/components/icon/index.vue +96 -96
- package/dist/components/icon/style.less +44 -44
- package/dist/components/input/calcTextareaHeight.js +162 -162
- package/dist/components/input/index.js +8 -8
- package/dist/components/input/index.vue +345 -345
- package/dist/components/input/style.less +470 -470
- package/dist/components/list/index.js +8 -8
- package/dist/components/list/index.vue +152 -152
- package/dist/components/list/style.less +213 -213
- package/dist/components/loading/index.js +6 -6
- package/dist/components/loading/index.vue +68 -68
- package/dist/components/loading/style.less +53 -53
- package/dist/components/mixins/clickoutside.js +81 -81
- package/dist/components/mixins/dom.js +41 -41
- package/dist/components/mixins/languageMixin.js +41 -41
- package/dist/components/mixins/outlineConfigPlugin.js +45 -45
- package/dist/components/mixins/router-link.js +22 -22
- package/dist/components/mixins/themeMixin.js +43 -43
- package/dist/components/noticebar/index.js +8 -8
- package/dist/components/noticebar/index.vue +258 -258
- package/dist/components/noticebar/style.less +328 -328
- package/dist/components/overlay/index.js +8 -8
- package/dist/components/overlay/index.vue +184 -184
- package/dist/components/overlay/style.less +23 -23
- package/dist/components/pagebreak/index.js +6 -6
- package/dist/components/pagebreak/index.vue +67 -67
- package/dist/components/pagebreak/style.less +41 -41
- package/dist/components/password/index.js +8 -8
- package/dist/components/password/index.vue +60 -60
- package/dist/components/popover/index.js +8 -8
- package/dist/components/popover/index.vue +100 -100
- package/dist/components/popover/style.less +346 -346
- package/dist/components/popover/vue-popover.vue +314 -314
- package/dist/components/popup/index.js +7 -7
- package/dist/components/popup/index.vue +243 -243
- package/dist/components/radio/index.js +8 -8
- package/dist/components/radio/index.vue +184 -184
- package/dist/components/radio/style.less +293 -293
- package/dist/components/radio-group/index.js +6 -6
- package/dist/components/radio-group/index.vue +58 -58
- package/dist/components/result/index.js +8 -8
- package/dist/components/result/index.vue +73 -73
- package/dist/components/result/style.less +43 -43
- package/dist/components/search/index.js +8 -8
- package/dist/components/search/index.vue +66 -66
- package/dist/components/selector/index.js +8 -8
- package/dist/components/selector/index.vue +161 -161
- package/dist/components/selector/style.less +484 -484
- package/dist/components/skeleton/index.js +6 -6
- package/dist/components/skeleton/index.vue +207 -207
- package/dist/components/skeleton/style.less +196 -196
- package/dist/components/slider/draggable.js +49 -49
- package/dist/components/slider/index.js +6 -6
- package/dist/components/slider/index.vue +167 -167
- package/dist/components/slider/style.less +99 -99
- package/dist/components/slider/utils.js +59 -59
- package/dist/components/step/index.js +7 -7
- package/dist/components/step/index.vue +48 -48
- package/dist/components/step/style.less +66 -58
- package/dist/components/step-item/index.js +7 -7
- package/dist/components/step-item/index.vue +126 -126
- package/dist/components/step-item/style.less +399 -362
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/index.vue +146 -146
- package/dist/components/style/index.vue +42 -42
- package/dist/components/switch/index.js +8 -8
- package/dist/components/switch/index.vue +72 -72
- package/dist/components/switch/style.less +56 -56
- package/dist/components/tab/index.js +7 -7
- package/dist/components/tab/index.vue +94 -94
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.vue +292 -281
- package/dist/components/tabs/style.less +408 -408
- package/dist/components/tag/index.js +6 -6
- package/dist/components/tag/index.vue +64 -64
- package/dist/components/tag/style.less +210 -210
- package/dist/components/title/index.js +8 -8
- package/dist/components/title/index.vue +99 -99
- package/dist/components/title/style.less +187 -187
- package/dist/components/toast/index.js +97 -97
- package/dist/components/toast/index.vue +49 -49
- package/dist/components/toast/style.less +57 -57
- package/dist/components/transition/index.js +8 -8
- package/dist/components/transition/index.vue +13 -13
- package/dist/components/transition/style.less +208 -208
- package/dist/components/upload/index.js +6 -6
- package/dist/components/upload/index.vue +106 -106
- package/dist/components/upload/style.less +147 -147
- package/dist/components/utils/assist.js +34 -34
- package/dist/components/utils/env.js +21 -21
- package/dist/locale/ar.js +97 -97
- package/dist/locale/en.js +97 -97
- package/dist/locale/zh.js +97 -97
- package/dist/token.css +23 -17
- package/dist/vdesign-ui.common.js +141 -129
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +141 -129
- package/dist/vdesign-ui.umd.min.js +2 -2
- package/package.json +113 -113
|
@@ -1,294 +1,294 @@
|
|
|
1
|
-
@radio-prefix-cls: vd-radio;
|
|
2
|
-
@radio-button-prefix-cls: vd-radio-button;
|
|
3
|
-
@radio-inner-prefix-cls: ~"@{radio-prefix-cls}__icon";
|
|
4
|
-
|
|
5
|
-
.@{radio-prefix-cls} {
|
|
6
|
-
position: relative;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
display: flex;
|
|
9
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// 普通状态
|
|
14
|
-
.@{radio-prefix-cls} {
|
|
15
|
-
|
|
16
|
-
&__input {
|
|
17
|
-
position: relative;
|
|
18
|
-
margin-inline-end: var(--spacing-check_radio-icon-margin_right);
|
|
19
|
-
width: var(--icon-check_radio-sizing);
|
|
20
|
-
height: var(--icon-check_radio-sizing);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__label {
|
|
24
|
-
flex: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__text {
|
|
28
|
-
color: var(--color-check_radio-text-default);
|
|
29
|
-
font-size: var(--en-single-f-d-r-fontSize);
|
|
30
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__description {
|
|
34
|
-
line-height: 1;
|
|
35
|
-
margin-top: var(--spacing-check_radio-text-margin_top);
|
|
36
|
-
color: var(--color-check_radio-text_describe-default);
|
|
37
|
-
font-size: var(--en-single-f-b-r-fontSize);
|
|
38
|
-
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.@{radio-inner-prefix-cls} {
|
|
42
|
-
display: block;
|
|
43
|
-
width: var(--icon-check_radio-sizing);
|
|
44
|
-
height: var(--icon-check_radio-sizing);
|
|
45
|
-
position: relative;
|
|
46
|
-
|
|
47
|
-
&::before {
|
|
48
|
-
position: absolute;
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
content: ' ';
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
top: -50%;
|
|
53
|
-
right: -50%;
|
|
54
|
-
bottom: -50%;
|
|
55
|
-
left: -50%;
|
|
56
|
-
border: 3px solid var(--color-check_radio-default);
|
|
57
|
-
transform: scale(0.5);
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__original {
|
|
63
|
-
width: 100%;
|
|
64
|
-
height: 100%;
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 0;
|
|
67
|
-
bottom: 0;
|
|
68
|
-
left: 0;
|
|
69
|
-
right: 0;
|
|
70
|
-
z-index: 1;
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
73
|
-
opacity: 0;
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// 选中状态
|
|
79
|
-
.@{radio-prefix-cls}--checked {
|
|
80
|
-
.@{radio-prefix-cls} {
|
|
81
|
-
&__text {
|
|
82
|
-
font-size: var(--en-single-f-d-s-fontSize);
|
|
83
|
-
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.@{radio-inner-prefix-cls} {
|
|
88
|
-
|
|
89
|
-
&::before{
|
|
90
|
-
border: 0 solid var(--color-check_radio-active);
|
|
91
|
-
border-width: 3px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&::after{
|
|
95
|
-
position: absolute;
|
|
96
|
-
width: 8px;
|
|
97
|
-
height: 8px;
|
|
98
|
-
left: 50%;
|
|
99
|
-
top: 50%;
|
|
100
|
-
transform: translate(-50%, -50%);
|
|
101
|
-
border-radius: 50%;
|
|
102
|
-
display: table;
|
|
103
|
-
border-top: 0;
|
|
104
|
-
border-left: 0;
|
|
105
|
-
content: " ";
|
|
106
|
-
background-color: var(--color-check_radio-active);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// 禁用状态
|
|
112
|
-
.@{radio-prefix-cls}--disabled {
|
|
113
|
-
cursor: not-allowed;
|
|
114
|
-
|
|
115
|
-
.@{radio-prefix-cls}__text{
|
|
116
|
-
color: var(--color-check_radio-text-disable);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.@{radio-prefix-cls}__description{
|
|
120
|
-
color: var(--color-check_radio-text_describe-disable);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.@{radio-prefix-cls}__icon {
|
|
124
|
-
|
|
125
|
-
&::before{
|
|
126
|
-
border-color:var(--color-check_radio-disable);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.@{radio-prefix-cls}--checked.@{radio-prefix-cls}--disabled{
|
|
133
|
-
.@{radio-prefix-cls}__icon {
|
|
134
|
-
|
|
135
|
-
&::before{
|
|
136
|
-
border-color:var(--color-check_radio-active-disable);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&::after{
|
|
140
|
-
background-color: var(--color-check_radio-active-disable);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.@{radio-prefix-cls}-group {
|
|
147
|
-
|
|
148
|
-
display: flex;
|
|
149
|
-
flex-direction: column;
|
|
150
|
-
gap: var(--spacing-check_radio-group-margin_x);
|
|
151
|
-
|
|
152
|
-
&-card{
|
|
153
|
-
display: flex;
|
|
154
|
-
flex-wrap: wrap;
|
|
155
|
-
flex-direction: row;
|
|
156
|
-
gap: 12px;
|
|
157
|
-
|
|
158
|
-
.vd-radio-button-cell{
|
|
159
|
-
flex: 1;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
.@{radio-button-prefix-cls}{
|
|
167
|
-
position: relative;
|
|
168
|
-
display: inline-flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
flex-direction: column;
|
|
171
|
-
justify-content: center;
|
|
172
|
-
line-height: 1;
|
|
173
|
-
width: 100%;
|
|
174
|
-
|
|
175
|
-
&::after{
|
|
176
|
-
position: absolute;
|
|
177
|
-
box-sizing: border-box;
|
|
178
|
-
content: ' ';
|
|
179
|
-
pointer-events: none;
|
|
180
|
-
top: -50%;
|
|
181
|
-
right: -50%;
|
|
182
|
-
bottom: -50%;
|
|
183
|
-
left: -50%;
|
|
184
|
-
border: 0 solid var(--color-check_radio-radio_border-default);
|
|
185
|
-
-webkit-transform: scale(0.5);
|
|
186
|
-
transform: scale(0.5);
|
|
187
|
-
border-width: 1px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
&--large {
|
|
192
|
-
height: var(--height-check_radio-radio_button_l);
|
|
193
|
-
|
|
194
|
-
.@{radio-button-prefix-cls}-text{
|
|
195
|
-
color: var(--color-check_radio-radio_button_text-default);
|
|
196
|
-
font-size: var(--en-single-f-d-r-fontSize);
|
|
197
|
-
font-weight:var(--en-single-f-d-r-fontWeight);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&::after{
|
|
201
|
-
border-radius: calc(var(--radius-check_radio-radio_l) * 2);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&--medium {
|
|
206
|
-
height: var(--height-check_radio-radio_button_m);
|
|
207
|
-
|
|
208
|
-
.@{radio-button-prefix-cls}-text{
|
|
209
|
-
color: var(--color-check_radio-radio_button_text-default);
|
|
210
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
211
|
-
font-weight:var(--en-single-f-c-r-fontWeight);
|
|
212
|
-
}
|
|
213
|
-
&::after{
|
|
214
|
-
border-radius: calc(var(--radius-check_radio-m) * 2);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&--small {
|
|
219
|
-
height: var(--height-check_radio-radio_button_s);
|
|
220
|
-
|
|
221
|
-
.@{radio-button-prefix-cls}-text{
|
|
222
|
-
color: var(--color-check_radio-radio_button_text-default);
|
|
223
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
224
|
-
font-weight:var(--en-single-f-c-r-fontWeight);
|
|
225
|
-
}
|
|
226
|
-
&::after{
|
|
227
|
-
border-radius: calc(var(--radius-check_radio-s) * 2);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
&--checked {
|
|
233
|
-
background-color: var(--color-check_radio-radio_button_bg-active);
|
|
234
|
-
|
|
235
|
-
&::after{
|
|
236
|
-
border-color: var(--color-check_radio-radio_border-active);
|
|
237
|
-
border-width: 2px;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.@{radio-button-prefix-cls}-text {
|
|
241
|
-
color: var(--color-check_radio-radio_button_text-active);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
&.@{radio-button-prefix-cls}--large {
|
|
245
|
-
.@{radio-button-prefix-cls}-text {
|
|
246
|
-
font-size: var(--en-single-f-d-s-fontSize);
|
|
247
|
-
font-weight:var(--en-single-f-d-s-fontWeight);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&.@{radio-button-prefix-cls}--medium {
|
|
252
|
-
.@{radio-button-prefix-cls}-text {
|
|
253
|
-
font-size: var(--en-single-f-c-s-fontSize);
|
|
254
|
-
font-weight:var(--en-single-f-c-s-fontWeight);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&.@{radio-button-prefix-cls}--small {
|
|
259
|
-
.@{radio-button-prefix-cls}-text {
|
|
260
|
-
font-size: var(--en-single-f-c-s-fontSize);
|
|
261
|
-
font-weight:var(--en-single-f-c-s-fontWeight);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
&--disabled{
|
|
269
|
-
cursor: not-allowed;
|
|
270
|
-
|
|
271
|
-
.@{radio-button-prefix-cls}-text{
|
|
272
|
-
color: var(--color-check_radio-radio_button_text-disable);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.@{radio-prefix-cls}-group {
|
|
279
|
-
display: flex;
|
|
280
|
-
flex-direction: column;
|
|
281
|
-
gap: var(--spacing-check_radio-group-margin_x);
|
|
282
|
-
|
|
283
|
-
&__card{
|
|
284
|
-
display: flex;
|
|
285
|
-
flex-direction: row;
|
|
286
|
-
flex-wrap: wrap;
|
|
287
|
-
gap: 12px;
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.@{radio-button-prefix-cls}{
|
|
292
|
-
flex: 1;
|
|
293
|
-
}
|
|
1
|
+
@radio-prefix-cls: vd-radio;
|
|
2
|
+
@radio-button-prefix-cls: vd-radio-button;
|
|
3
|
+
@radio-inner-prefix-cls: ~"@{radio-prefix-cls}__icon";
|
|
4
|
+
|
|
5
|
+
.@{radio-prefix-cls} {
|
|
6
|
+
position: relative;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
display: flex;
|
|
9
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// 普通状态
|
|
14
|
+
.@{radio-prefix-cls} {
|
|
15
|
+
|
|
16
|
+
&__input {
|
|
17
|
+
position: relative;
|
|
18
|
+
margin-inline-end: var(--spacing-check_radio-icon-margin_right);
|
|
19
|
+
width: var(--icon-check_radio-sizing);
|
|
20
|
+
height: var(--icon-check_radio-sizing);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__label {
|
|
24
|
+
flex: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__text {
|
|
28
|
+
color: var(--color-check_radio-text-default);
|
|
29
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
30
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__description {
|
|
34
|
+
line-height: 1;
|
|
35
|
+
margin-top: var(--spacing-check_radio-text-margin_top);
|
|
36
|
+
color: var(--color-check_radio-text_describe-default);
|
|
37
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
38
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.@{radio-inner-prefix-cls} {
|
|
42
|
+
display: block;
|
|
43
|
+
width: var(--icon-check_radio-sizing);
|
|
44
|
+
height: var(--icon-check_radio-sizing);
|
|
45
|
+
position: relative;
|
|
46
|
+
|
|
47
|
+
&::before {
|
|
48
|
+
position: absolute;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
content: ' ';
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
top: -50%;
|
|
53
|
+
right: -50%;
|
|
54
|
+
bottom: -50%;
|
|
55
|
+
left: -50%;
|
|
56
|
+
border: 3px solid var(--color-check_radio-default);
|
|
57
|
+
transform: scale(0.5);
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__original {
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
z-index: 1;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
73
|
+
opacity: 0;
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// 选中状态
|
|
79
|
+
.@{radio-prefix-cls}--checked {
|
|
80
|
+
.@{radio-prefix-cls} {
|
|
81
|
+
&__text {
|
|
82
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
83
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.@{radio-inner-prefix-cls} {
|
|
88
|
+
|
|
89
|
+
&::before{
|
|
90
|
+
border: 0 solid var(--color-check_radio-active);
|
|
91
|
+
border-width: 3px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::after{
|
|
95
|
+
position: absolute;
|
|
96
|
+
width: 8px;
|
|
97
|
+
height: 8px;
|
|
98
|
+
left: 50%;
|
|
99
|
+
top: 50%;
|
|
100
|
+
transform: translate(-50%, -50%);
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
display: table;
|
|
103
|
+
border-top: 0;
|
|
104
|
+
border-left: 0;
|
|
105
|
+
content: " ";
|
|
106
|
+
background-color: var(--color-check_radio-active);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// 禁用状态
|
|
112
|
+
.@{radio-prefix-cls}--disabled {
|
|
113
|
+
cursor: not-allowed;
|
|
114
|
+
|
|
115
|
+
.@{radio-prefix-cls}__text{
|
|
116
|
+
color: var(--color-check_radio-text-disable);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.@{radio-prefix-cls}__description{
|
|
120
|
+
color: var(--color-check_radio-text_describe-disable);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.@{radio-prefix-cls}__icon {
|
|
124
|
+
|
|
125
|
+
&::before{
|
|
126
|
+
border-color:var(--color-check_radio-disable);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.@{radio-prefix-cls}--checked.@{radio-prefix-cls}--disabled{
|
|
133
|
+
.@{radio-prefix-cls}__icon {
|
|
134
|
+
|
|
135
|
+
&::before{
|
|
136
|
+
border-color:var(--color-check_radio-active-disable);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&::after{
|
|
140
|
+
background-color: var(--color-check_radio-active-disable);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.@{radio-prefix-cls}-group {
|
|
147
|
+
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: var(--spacing-check_radio-group-margin_x);
|
|
151
|
+
|
|
152
|
+
&-card{
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-wrap: wrap;
|
|
155
|
+
flex-direction: row;
|
|
156
|
+
gap: 12px;
|
|
157
|
+
|
|
158
|
+
.vd-radio-button-cell{
|
|
159
|
+
flex: 1;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
.@{radio-button-prefix-cls}{
|
|
167
|
+
position: relative;
|
|
168
|
+
display: inline-flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
line-height: 1;
|
|
173
|
+
width: 100%;
|
|
174
|
+
|
|
175
|
+
&::after{
|
|
176
|
+
position: absolute;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
content: ' ';
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
top: -50%;
|
|
181
|
+
right: -50%;
|
|
182
|
+
bottom: -50%;
|
|
183
|
+
left: -50%;
|
|
184
|
+
border: 0 solid var(--color-check_radio-radio_border-default);
|
|
185
|
+
-webkit-transform: scale(0.5);
|
|
186
|
+
transform: scale(0.5);
|
|
187
|
+
border-width: 1px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
&--large {
|
|
192
|
+
height: var(--height-check_radio-radio_button_l);
|
|
193
|
+
|
|
194
|
+
.@{radio-button-prefix-cls}-text{
|
|
195
|
+
color: var(--color-check_radio-radio_button_text-default);
|
|
196
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
197
|
+
font-weight:var(--en-single-f-d-r-fontWeight);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&::after{
|
|
201
|
+
border-radius: calc(var(--radius-check_radio-radio_l) * 2);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&--medium {
|
|
206
|
+
height: var(--height-check_radio-radio_button_m);
|
|
207
|
+
|
|
208
|
+
.@{radio-button-prefix-cls}-text{
|
|
209
|
+
color: var(--color-check_radio-radio_button_text-default);
|
|
210
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
211
|
+
font-weight:var(--en-single-f-c-r-fontWeight);
|
|
212
|
+
}
|
|
213
|
+
&::after{
|
|
214
|
+
border-radius: calc(var(--radius-check_radio-m) * 2);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&--small {
|
|
219
|
+
height: var(--height-check_radio-radio_button_s);
|
|
220
|
+
|
|
221
|
+
.@{radio-button-prefix-cls}-text{
|
|
222
|
+
color: var(--color-check_radio-radio_button_text-default);
|
|
223
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
224
|
+
font-weight:var(--en-single-f-c-r-fontWeight);
|
|
225
|
+
}
|
|
226
|
+
&::after{
|
|
227
|
+
border-radius: calc(var(--radius-check_radio-s) * 2);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
&--checked {
|
|
233
|
+
background-color: var(--color-check_radio-radio_button_bg-active);
|
|
234
|
+
|
|
235
|
+
&::after{
|
|
236
|
+
border-color: var(--color-check_radio-radio_border-active);
|
|
237
|
+
border-width: 2px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.@{radio-button-prefix-cls}-text {
|
|
241
|
+
color: var(--color-check_radio-radio_button_text-active);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&.@{radio-button-prefix-cls}--large {
|
|
245
|
+
.@{radio-button-prefix-cls}-text {
|
|
246
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
247
|
+
font-weight:var(--en-single-f-d-s-fontWeight);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&.@{radio-button-prefix-cls}--medium {
|
|
252
|
+
.@{radio-button-prefix-cls}-text {
|
|
253
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
254
|
+
font-weight:var(--en-single-f-c-s-fontWeight);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&.@{radio-button-prefix-cls}--small {
|
|
259
|
+
.@{radio-button-prefix-cls}-text {
|
|
260
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
261
|
+
font-weight:var(--en-single-f-c-s-fontWeight);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
&--disabled{
|
|
269
|
+
cursor: not-allowed;
|
|
270
|
+
|
|
271
|
+
.@{radio-button-prefix-cls}-text{
|
|
272
|
+
color: var(--color-check_radio-radio_button_text-disable);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.@{radio-prefix-cls}-group {
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
gap: var(--spacing-check_radio-group-margin_x);
|
|
282
|
+
|
|
283
|
+
&__card{
|
|
284
|
+
display: flex;
|
|
285
|
+
flex-direction: row;
|
|
286
|
+
flex-wrap: wrap;
|
|
287
|
+
gap: 12px;
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.@{radio-button-prefix-cls}{
|
|
292
|
+
flex: 1;
|
|
293
|
+
}
|
|
294
294
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import RadioGroup from './index.vue';
|
|
2
|
-
RadioGroup.install = function (Vue) {
|
|
3
|
-
Vue.component(RadioGroup.name, RadioGroup);
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export default RadioGroup;
|
|
1
|
+
import RadioGroup from './index.vue';
|
|
2
|
+
RadioGroup.install = function (Vue) {
|
|
3
|
+
Vue.component(RadioGroup.name, RadioGroup);
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export default RadioGroup;
|