vdesign-ui 0.2.19 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -58
- 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 +42 -42
- package/dist/components/actions/index.js +6 -6
- package/dist/components/actions/index.vue +77 -77
- 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 +161 -161
- 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 +53 -53
- 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 +73 -73
- 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 +39 -39
- 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 +14 -14
- 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 +471 -471
- 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 +43 -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 +333 -328
- package/dist/components/overlay/index.js +8 -8
- package/dist/components/overlay/index.vue +184 -184
- package/dist/components/overlay/style.less +24 -24
- 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 +64 -64
- 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 +165 -165
- package/dist/components/popup/style.less +78 -78
- package/dist/components/radio/index.js +8 -8
- package/dist/components/radio/index.vue +184 -184
- package/dist/components/radio/style.less +300 -300
- package/dist/components/radio-group/index.js +7 -7
- package/dist/components/radio-group/index.vue +62 -62
- 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 +70 -70
- 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 -66
- 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 -399
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/index.vue +150 -150
- 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 +97 -97
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.vue +356 -348
- package/dist/components/tabs/style.less +504 -493
- 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 +139 -97
- package/dist/components/toast/index.vue +50 -49
- package/dist/components/toast/style.less +58 -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 +9 -9
- package/dist/vdesign-ui.common.js +212 -161
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +212 -161
- package/dist/vdesign-ui.umd.min.js +2 -2
- package/package.json +113 -113
|
@@ -1,213 +1,213 @@
|
|
|
1
|
-
@title-prefix-cls: vd-list;
|
|
2
|
-
.@{title-prefix-cls} {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
// background-color: var(--bg-color-1);
|
|
8
|
-
|
|
9
|
-
&--right {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-content {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-content-common {
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: flex-start;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&__arrow {
|
|
25
|
-
display: flex;
|
|
26
|
-
margin-inline-start: var(--spacing-list-info_icon-margin_y);
|
|
27
|
-
color: var(--text-color-h2);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__multext {
|
|
31
|
-
font-size: var(--en-single-f-c-s-fontSize);
|
|
32
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
33
|
-
color: var(--text-color-h1);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-xsmall {
|
|
37
|
-
padding-block-start: var(--spacing-list-info_s-padding_top);
|
|
38
|
-
padding-block-end: var(--spacing-list-info_s-padding_bottom);
|
|
39
|
-
|
|
40
|
-
&__icon--right {
|
|
41
|
-
color: var(--text-color-h2);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&__title {
|
|
45
|
-
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
46
|
-
color: var(--text-color-h2);
|
|
47
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
48
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__text--right {
|
|
52
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
53
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
54
|
-
color: var(--text-color-h1);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&-small {
|
|
59
|
-
padding-block-start: var(--spacing-list-info_m-padding_top);
|
|
60
|
-
padding-block-end: var(--spacing-list-info_m-padding_bottom);
|
|
61
|
-
|
|
62
|
-
&__icon--right {
|
|
63
|
-
color: var(--text-color-h2);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&__title {
|
|
67
|
-
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
68
|
-
color: var(--text-color-h1);
|
|
69
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
70
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&__text--right {
|
|
74
|
-
font-size: var(--en-single-f-c-s-fontSize);
|
|
75
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
76
|
-
color: var(--text-color-h1);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&-medium {
|
|
81
|
-
padding-block-start: var(--spacing-list-info_l-padding_top);
|
|
82
|
-
padding-block-end: var(--spacing-list-info_l-padding_bottom);
|
|
83
|
-
|
|
84
|
-
&__icon--right {
|
|
85
|
-
color: var(--text-color-h2);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&__title {
|
|
89
|
-
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
90
|
-
color: var(--text-color-h2);
|
|
91
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
92
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&__text--right {
|
|
96
|
-
font-size: var(--en-single-f-d-r-fontSize);
|
|
97
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
98
|
-
color: var(--text-color-h1);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&-large {
|
|
103
|
-
height: var(--height-super-large);
|
|
104
|
-
|
|
105
|
-
&__icon--right {
|
|
106
|
-
color: var(--text-color-h2);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&__title {
|
|
110
|
-
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
111
|
-
color: var(--text-color-h1);
|
|
112
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
113
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&__text--right {
|
|
117
|
-
font-size: var(--en-single-f-d-s-fontSize);
|
|
118
|
-
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
119
|
-
color: var(--text-color-h1);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&-common {
|
|
124
|
-
padding-block-start: var(--spacing-list-common-padding_x);
|
|
125
|
-
padding-block-end: var(--spacing-list-common-padding_x);
|
|
126
|
-
padding-inline-start: var(--spacing-list-common-padding_y);
|
|
127
|
-
padding-inline-end: var(--spacing-list-common-padding_y);
|
|
128
|
-
|
|
129
|
-
&--left {
|
|
130
|
-
display: flex;
|
|
131
|
-
align-items: center;
|
|
132
|
-
}
|
|
133
|
-
&__icon--leftcus {
|
|
134
|
-
margin-inline-end: var(--spacing-list-common_icon-margin_right);
|
|
135
|
-
color: var(--text-color-h2);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&__title {
|
|
139
|
-
color: var(--color-list-title);
|
|
140
|
-
font-size: var(--en-multi-f-d-s-fontSize);
|
|
141
|
-
font-weight: var(--en-multi-f-d-s-fontWeight);
|
|
142
|
-
line-height: var(--en-multi-f-d-s-lineHeight);
|
|
143
|
-
|
|
144
|
-
&--with-subtitle {
|
|
145
|
-
line-height: inherit;
|
|
146
|
-
font-size: var(--en-single-f-d-s-fontSize);
|
|
147
|
-
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&__text--right {
|
|
152
|
-
margin-inline-start: var(--spacing-list-common_describe-margin_xy);
|
|
153
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
154
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
155
|
-
color: var(--color-list-text);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&__subtitle {
|
|
159
|
-
margin-block-start: var(--spacing-list-common_describe-margin_xy);
|
|
160
|
-
color: var(--color-list-text);
|
|
161
|
-
font-size: var(--en-multi-f-c-r-fontSize);
|
|
162
|
-
font-weight: var(--en-multi-f-c-r-fontWeight);
|
|
163
|
-
line-height: var(--en-multi-f-c-r-lineHeight);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&__badge {
|
|
167
|
-
margin-inline-start: var(--spacing-list-common_badge-margin_left);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&-check {
|
|
172
|
-
padding-block-start: var(--spacing-list-common-padding_x);
|
|
173
|
-
padding-block-end: var(--spacing-list-common-padding_x);
|
|
174
|
-
|
|
175
|
-
&--active {
|
|
176
|
-
.@{title-prefix-cls}-check__select {
|
|
177
|
-
margin-inline-start: var(--spacing-list-check-margin_left);
|
|
178
|
-
|
|
179
|
-
.vd-iconfont {
|
|
180
|
-
transform: scaleX(1) !important;
|
|
181
|
-
direction: ltr;
|
|
182
|
-
font-size: var(--icon-list-check);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.@{title-prefix-cls}-check__title {
|
|
187
|
-
font-size: var(--en-multi-f-d-s-fontSize);
|
|
188
|
-
font-weight: var(--en-multi-f-d-s-fontWeight);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&__title {
|
|
193
|
-
color: var(--color-list-title);
|
|
194
|
-
font-size: var(--en-multi-f-d-r-fontSize);
|
|
195
|
-
font-weight: var(--en-multi-f-d-r-fontWeight);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&__icon--leftcus {
|
|
199
|
-
margin-inline-end: var(--spacing-list-check_icon-margin_right);
|
|
200
|
-
color: var(--text-color-h2);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&__icon--extra {
|
|
205
|
-
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
206
|
-
color: var(--text-color-h2);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&__switch {
|
|
210
|
-
display: flex;
|
|
211
|
-
margin-inline-start: var(--spacing-list-common_switch-margin_left);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
1
|
+
@title-prefix-cls: vd-list;
|
|
2
|
+
.@{title-prefix-cls} {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
// background-color: var(--bg-color-1);
|
|
8
|
+
|
|
9
|
+
&--right {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-content {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-content-common {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: flex-start;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__arrow {
|
|
25
|
+
display: flex;
|
|
26
|
+
margin-inline-start: var(--spacing-list-info_icon-margin_y);
|
|
27
|
+
color: var(--text-color-h2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__multext {
|
|
31
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
32
|
+
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
33
|
+
color: var(--text-color-h1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-xsmall {
|
|
37
|
+
padding-block-start: var(--spacing-list-info_s-padding_top);
|
|
38
|
+
padding-block-end: var(--spacing-list-info_s-padding_bottom);
|
|
39
|
+
|
|
40
|
+
&__icon--right {
|
|
41
|
+
color: var(--text-color-h2);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__title {
|
|
45
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
46
|
+
color: var(--text-color-h2);
|
|
47
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
48
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__text--right {
|
|
52
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
53
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
54
|
+
color: var(--text-color-h1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-small {
|
|
59
|
+
padding-block-start: var(--spacing-list-info_m-padding_top);
|
|
60
|
+
padding-block-end: var(--spacing-list-info_m-padding_bottom);
|
|
61
|
+
|
|
62
|
+
&__icon--right {
|
|
63
|
+
color: var(--text-color-h2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__title {
|
|
67
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
68
|
+
color: var(--text-color-h1);
|
|
69
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
70
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__text--right {
|
|
74
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
75
|
+
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
76
|
+
color: var(--text-color-h1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-medium {
|
|
81
|
+
padding-block-start: var(--spacing-list-info_l-padding_top);
|
|
82
|
+
padding-block-end: var(--spacing-list-info_l-padding_bottom);
|
|
83
|
+
|
|
84
|
+
&__icon--right {
|
|
85
|
+
color: var(--text-color-h2);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__title {
|
|
89
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
90
|
+
color: var(--text-color-h2);
|
|
91
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
92
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__text--right {
|
|
96
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
97
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
98
|
+
color: var(--text-color-h1);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-large {
|
|
103
|
+
height: var(--height-super-large);
|
|
104
|
+
|
|
105
|
+
&__icon--right {
|
|
106
|
+
color: var(--text-color-h2);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&__title {
|
|
110
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
111
|
+
color: var(--text-color-h1);
|
|
112
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
113
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&__text--right {
|
|
117
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
118
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
119
|
+
color: var(--text-color-h1);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&-common {
|
|
124
|
+
padding-block-start: var(--spacing-list-common-padding_x);
|
|
125
|
+
padding-block-end: var(--spacing-list-common-padding_x);
|
|
126
|
+
padding-inline-start: var(--spacing-list-common-padding_y);
|
|
127
|
+
padding-inline-end: var(--spacing-list-common-padding_y);
|
|
128
|
+
|
|
129
|
+
&--left {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
}
|
|
133
|
+
&__icon--leftcus {
|
|
134
|
+
margin-inline-end: var(--spacing-list-common_icon-margin_right);
|
|
135
|
+
color: var(--text-color-h2);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__title {
|
|
139
|
+
color: var(--color-list-title);
|
|
140
|
+
font-size: var(--en-multi-f-d-s-fontSize);
|
|
141
|
+
font-weight: var(--en-multi-f-d-s-fontWeight);
|
|
142
|
+
line-height: var(--en-multi-f-d-s-lineHeight);
|
|
143
|
+
|
|
144
|
+
&--with-subtitle {
|
|
145
|
+
line-height: inherit;
|
|
146
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
147
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&__text--right {
|
|
152
|
+
margin-inline-start: var(--spacing-list-common_describe-margin_xy);
|
|
153
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
154
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
155
|
+
color: var(--color-list-text);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&__subtitle {
|
|
159
|
+
margin-block-start: var(--spacing-list-common_describe-margin_xy);
|
|
160
|
+
color: var(--color-list-text);
|
|
161
|
+
font-size: var(--en-multi-f-c-r-fontSize);
|
|
162
|
+
font-weight: var(--en-multi-f-c-r-fontWeight);
|
|
163
|
+
line-height: var(--en-multi-f-c-r-lineHeight);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&__badge {
|
|
167
|
+
margin-inline-start: var(--spacing-list-common_badge-margin_left);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&-check {
|
|
172
|
+
padding-block-start: var(--spacing-list-common-padding_x);
|
|
173
|
+
padding-block-end: var(--spacing-list-common-padding_x);
|
|
174
|
+
|
|
175
|
+
&--active {
|
|
176
|
+
.@{title-prefix-cls}-check__select {
|
|
177
|
+
margin-inline-start: var(--spacing-list-check-margin_left);
|
|
178
|
+
|
|
179
|
+
.vd-iconfont {
|
|
180
|
+
transform: scaleX(1) !important;
|
|
181
|
+
direction: ltr;
|
|
182
|
+
font-size: var(--icon-list-check);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.@{title-prefix-cls}-check__title {
|
|
187
|
+
font-size: var(--en-multi-f-d-s-fontSize);
|
|
188
|
+
font-weight: var(--en-multi-f-d-s-fontWeight);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&__title {
|
|
193
|
+
color: var(--color-list-title);
|
|
194
|
+
font-size: var(--en-multi-f-d-r-fontSize);
|
|
195
|
+
font-weight: var(--en-multi-f-d-r-fontWeight);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__icon--leftcus {
|
|
199
|
+
margin-inline-end: var(--spacing-list-check_icon-margin_right);
|
|
200
|
+
color: var(--text-color-h2);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&__icon--extra {
|
|
205
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
206
|
+
color: var(--text-color-h2);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&__switch {
|
|
210
|
+
display: flex;
|
|
211
|
+
margin-inline-start: var(--spacing-list-common_switch-margin_left);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Loading from './index.vue';
|
|
2
|
-
import './style.less';
|
|
3
|
-
Loading.install = function(Vue) {
|
|
4
|
-
Vue.component(Loading.name, Loading)
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import Loading from './index.vue';
|
|
2
|
+
import './style.less';
|
|
3
|
+
Loading.install = function(Vue) {
|
|
4
|
+
Vue.component(Loading.name, Loading)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
7
|
export default Loading;
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vd-loading-wrapper">
|
|
3
|
-
<div v-if="isLoading" class="vd-loading">
|
|
4
|
-
<slot>
|
|
5
|
-
<img src="https://r.sahmcapital.com/fe/hs-sa-res/commons/images/img_status_loading_white_ani.svg" alt="">
|
|
6
|
-
</slot>
|
|
7
|
-
<span class="vd-loading__text" v-if="text">{{ text }}</span>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="vd-refresh" :class="refreshClasses" v-else>
|
|
10
|
-
<slot>
|
|
11
|
-
<img src="https://r.sahmcapital.com/fe/hs-sa-res/commons/images/img_status_refresh_ani.svg" alt="">
|
|
12
|
-
</slot>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name:'vd-loading',
|
|
21
|
-
props:{
|
|
22
|
-
type:{
|
|
23
|
-
type: String,
|
|
24
|
-
default:'null',
|
|
25
|
-
},
|
|
26
|
-
text:{
|
|
27
|
-
type: String,
|
|
28
|
-
default:''
|
|
29
|
-
},
|
|
30
|
-
loading:{
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default:true
|
|
33
|
-
},
|
|
34
|
-
size:{
|
|
35
|
-
type: String,
|
|
36
|
-
default:'large',
|
|
37
|
-
validator: value => ['large', 'small'].includes(value)
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
data(){
|
|
41
|
-
return {
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
computed:{
|
|
45
|
-
isLoading() {
|
|
46
|
-
if (this.type === 'loading') {
|
|
47
|
-
return true;
|
|
48
|
-
} else if (this.type === 'refresh') {
|
|
49
|
-
return false;
|
|
50
|
-
} else {
|
|
51
|
-
return this.loading;
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
refreshClasses() {
|
|
55
|
-
return ['vd-refresh', `vd-refresh--${this.size}`];
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
methods:{
|
|
59
|
-
},
|
|
60
|
-
mounted(){
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<style lang="less">
|
|
67
|
-
@import './style.less';
|
|
68
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-loading-wrapper">
|
|
3
|
+
<div v-if="isLoading" class="vd-loading">
|
|
4
|
+
<slot>
|
|
5
|
+
<img src="https://r.sahmcapital.com/fe/hs-sa-res/commons/images/img_status_loading_white_ani.svg" alt="">
|
|
6
|
+
</slot>
|
|
7
|
+
<span class="vd-loading__text" v-if="text">{{ text }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="vd-refresh" :class="refreshClasses" v-else>
|
|
10
|
+
<slot>
|
|
11
|
+
<img src="https://r.sahmcapital.com/fe/hs-sa-res/commons/images/img_status_refresh_ani.svg" alt="">
|
|
12
|
+
</slot>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
name:'vd-loading',
|
|
21
|
+
props:{
|
|
22
|
+
type:{
|
|
23
|
+
type: String,
|
|
24
|
+
default:'null',
|
|
25
|
+
},
|
|
26
|
+
text:{
|
|
27
|
+
type: String,
|
|
28
|
+
default:''
|
|
29
|
+
},
|
|
30
|
+
loading:{
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default:true
|
|
33
|
+
},
|
|
34
|
+
size:{
|
|
35
|
+
type: String,
|
|
36
|
+
default:'large',
|
|
37
|
+
validator: value => ['large', 'small'].includes(value)
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
data(){
|
|
41
|
+
return {
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
computed:{
|
|
45
|
+
isLoading() {
|
|
46
|
+
if (this.type === 'loading') {
|
|
47
|
+
return true;
|
|
48
|
+
} else if (this.type === 'refresh') {
|
|
49
|
+
return false;
|
|
50
|
+
} else {
|
|
51
|
+
return this.loading;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
refreshClasses() {
|
|
55
|
+
return ['vd-refresh', `vd-refresh--${this.size}`];
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
methods:{
|
|
59
|
+
},
|
|
60
|
+
mounted(){
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style lang="less">
|
|
67
|
+
@import './style.less';
|
|
68
|
+
</style>
|