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
|
@@ -12,35 +12,36 @@
|
|
|
12
12
|
// 普通状态
|
|
13
13
|
.@{checkbox-prefix-cls} {
|
|
14
14
|
|
|
15
|
-
&__input{
|
|
15
|
+
&__input {
|
|
16
16
|
position: relative;
|
|
17
|
-
margin-inline-end:
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
17
|
+
margin-inline-end: var(--spacing-check_radio-icon-margin_right);
|
|
18
|
+
width: var(--icon-check_radio-sizing);
|
|
19
|
+
height: var(--icon-check_radio-sizing);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__text {
|
|
23
23
|
color: var(--color-check_radio-text-default);
|
|
24
|
-
font-size:
|
|
24
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
25
25
|
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&__description {
|
|
29
29
|
line-height: 1;
|
|
30
|
-
margin-top:
|
|
30
|
+
margin-top: var(--spacing-check_radio-text-margin_top);
|
|
31
31
|
color: var(--color-check_radio-text_describe-default);
|
|
32
|
-
font-size:
|
|
32
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
33
33
|
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.@{checkbox-icon-prefix-cls} {
|
|
37
37
|
display: block;
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
38
|
+
width: var(--icon-check_radio-sizing);
|
|
39
|
+
height: var(--icon-check_radio-sizing);
|
|
40
40
|
position: relative;
|
|
41
41
|
top: 0;
|
|
42
42
|
left: 0;
|
|
43
|
-
|
|
43
|
+
|
|
44
|
+
&::before {
|
|
44
45
|
position: absolute;
|
|
45
46
|
box-sizing: border-box;
|
|
46
47
|
content: ' ';
|
|
@@ -49,10 +50,9 @@
|
|
|
49
50
|
right: -50%;
|
|
50
51
|
bottom: -50%;
|
|
51
52
|
left: -50%;
|
|
52
|
-
border:
|
|
53
|
+
border: 3px solid var(--color-check_radio-default);
|
|
53
54
|
-webkit-transform: scale(0.5);
|
|
54
55
|
transform: scale(0.5);
|
|
55
|
-
border-width: 3px;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
70
70
|
opacity: 0;
|
|
71
|
-
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
|
|
74
|
+
|
|
75
75
|
// 选中状态
|
|
76
76
|
.@{checkbox-prefix-cls}--checked {
|
|
77
77
|
|
|
78
78
|
.@{checkbox-prefix-cls} {
|
|
79
79
|
&__text {
|
|
80
|
-
font-size:
|
|
80
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
81
81
|
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
|
|
140
140
|
& + .@{checkbox-prefix-cls}__label {
|
|
141
141
|
.@{checkbox-prefix-cls}__text {
|
|
142
|
-
font-size:
|
|
142
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
143
143
|
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -183,54 +183,52 @@
|
|
|
183
183
|
background-color: var(--color-check_radio-check_bg-default);
|
|
184
184
|
|
|
185
185
|
&--large {
|
|
186
|
-
height:
|
|
187
|
-
border-radius:
|
|
186
|
+
height: var(--height-check_radio-check_button_l);
|
|
187
|
+
border-radius: var(--radius-check_radio-check_l);
|
|
188
188
|
|
|
189
189
|
.@{checkbox-button-prefix-cls}__text {
|
|
190
|
-
margin-block-start:
|
|
190
|
+
margin-block-start: var(--spacing-check_radio-check_icon-margin_bottom);
|
|
191
191
|
font-size: 12px;
|
|
192
|
-
// color: rgba(0, 0, 0, 0.85);
|
|
193
192
|
color: var(--color-check_radio-radio_button_text-default);
|
|
194
193
|
}
|
|
195
194
|
|
|
196
195
|
}
|
|
197
196
|
|
|
198
197
|
&--medium {
|
|
199
|
-
height:
|
|
200
|
-
border-radius:
|
|
198
|
+
height: var(--height-check_radio-check_button_m);
|
|
199
|
+
border-radius: var(--radius-check_radio-m);
|
|
201
200
|
|
|
202
201
|
.@{checkbox-button-prefix-cls}{
|
|
203
202
|
&__description {
|
|
204
|
-
margin-block-start:
|
|
203
|
+
margin-block-start: var(--spacing-check_radio-check_describe-margin_top);
|
|
205
204
|
font-size: 11px;
|
|
206
|
-
// color: rgba(0, 0, 0, 0.3);
|
|
207
205
|
color: var(--color-check_radio-check_button_text_describe-default);
|
|
208
206
|
}
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
209
|
|
|
212
|
-
&--small {
|
|
213
|
-
height: calc(var(--height-check_radio-check_button_s) * 1px);
|
|
214
|
-
border-radius: calc(var(--radius-check_radio-s) * 1px);
|
|
210
|
+
&--small {
|
|
215
211
|
display: flex;
|
|
216
212
|
flex-direction: row;
|
|
213
|
+
height: var(--height-check_radio-check_button_s);
|
|
214
|
+
border-radius: var(--radius-check_radio-s);
|
|
217
215
|
}
|
|
218
216
|
|
|
219
217
|
|
|
220
218
|
&__icon--large {
|
|
221
219
|
color: var(--color-check_radio-check_button_icon-default);
|
|
222
|
-
font-size:
|
|
220
|
+
font-size: var(--icon-check_radio-check_l);
|
|
223
221
|
}
|
|
224
222
|
|
|
225
223
|
&__icon--small {
|
|
226
|
-
font-size:
|
|
224
|
+
font-size: var(--icon-check_radio-check_s);
|
|
227
225
|
color: var(--text-color-h2);
|
|
228
|
-
margin-inline-end:
|
|
226
|
+
margin-inline-end: var(--spacing-check_radio-check_icon-margin_right);
|
|
229
227
|
}
|
|
230
228
|
|
|
231
229
|
&__text {
|
|
232
230
|
color: var(--color-check_radio-radio_button_text-default);
|
|
233
|
-
font-size:
|
|
231
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
234
232
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
235
233
|
}
|
|
236
234
|
|
|
@@ -240,7 +238,7 @@
|
|
|
240
238
|
|
|
241
239
|
.@{checkbox-button-prefix-cls}__text {
|
|
242
240
|
color: var(--color-check_radio-radio_button_text-active);
|
|
243
|
-
font-size:
|
|
241
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
244
242
|
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
245
243
|
}
|
|
246
244
|
|
|
@@ -276,7 +274,7 @@
|
|
|
276
274
|
.@{checkbox-prefix-cls}-group {
|
|
277
275
|
display: flex;
|
|
278
276
|
flex-direction: column;
|
|
279
|
-
gap:
|
|
277
|
+
gap: var(--spacing-check_radio-group-margin_x);
|
|
280
278
|
|
|
281
279
|
&__card{
|
|
282
280
|
display: flex;
|
|
@@ -29,52 +29,5 @@ export default {
|
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
31
|
<style lang="less">
|
|
32
|
-
.
|
|
33
|
-
display: inline-flex;
|
|
34
|
-
align-items: baseline;
|
|
35
|
-
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
36
|
-
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
37
|
-
|
|
38
|
-
&::before {
|
|
39
|
-
content: '';
|
|
40
|
-
display: inline-block;
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
width: calc(var(--width-dropdown-state_drop) * 1px);
|
|
43
|
-
height: calc(var(--width-dropdown-state_drop) * 1px);
|
|
44
|
-
margin-inline-end: calc(var(--spacing-dropdown-state_drop-margin_right) * 1px);
|
|
45
|
-
background-color: var(--color-dropdown-state-open);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&--open {
|
|
49
|
-
color: var(--color-dropdown-state-open);
|
|
50
|
-
|
|
51
|
-
&::before {
|
|
52
|
-
background-color: var(--color-dropdown-state-open);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&--preopen {
|
|
57
|
-
color: var(--color-dropdown-state-preopen);
|
|
58
|
-
|
|
59
|
-
&::before {
|
|
60
|
-
background-color: var(--color-dropdown-state-preopen);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&--close {
|
|
65
|
-
color: var(--color-dropdown-state-close);
|
|
66
|
-
|
|
67
|
-
&::before {
|
|
68
|
-
background-color: var(--text-color-h3);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&--fusing {
|
|
73
|
-
color: var(--color-dropdown-state-fusing);
|
|
74
|
-
|
|
75
|
-
&::before {
|
|
76
|
-
background-color: var(--color-dropdown-state-fusing);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
32
|
+
@import 'style.less';
|
|
80
33
|
</style>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.vd-market-state {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: baseline;
|
|
4
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
5
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
6
|
+
|
|
7
|
+
&::before {
|
|
8
|
+
content: '';
|
|
9
|
+
display: inline-block;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
width: var(--width-dropdown-state_drop);
|
|
12
|
+
height: var(--width-dropdown-state_drop);
|
|
13
|
+
margin-inline-end: var(--spacing-dropdown-state_drop-margin_right);
|
|
14
|
+
background-color: var(--color-dropdown-state-open);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--open {
|
|
18
|
+
color: var(--color-dropdown-state-open);
|
|
19
|
+
|
|
20
|
+
&::before {
|
|
21
|
+
background-color: var(--color-dropdown-state-open);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--preopen {
|
|
26
|
+
color: var(--color-dropdown-state-preopen);
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
background-color: var(--color-dropdown-state-preopen);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--close {
|
|
34
|
+
color: var(--color-dropdown-state-close);
|
|
35
|
+
|
|
36
|
+
&::before {
|
|
37
|
+
background-color: var(--text-color-h3);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--fusing {
|
|
42
|
+
color: var(--color-dropdown-state-fusing);
|
|
43
|
+
|
|
44
|
+
&::before {
|
|
45
|
+
background-color: var(--color-dropdown-state-fusing);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|