vdesign-ui 0.1.21 → 0.1.22
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/actionbar-cell/index.vue +34 -0
- package/dist/components/actionbar/index.js +8 -0
- package/dist/components/actionbar/index.vue +39 -0
- package/dist/components/actionbar/style.less +48 -0
- package/dist/components/actions-cell/actions/index.js +7 -0
- package/dist/components/actions-cell/actions/index.vue +76 -0
- package/dist/components/actions-cell/actions/style.less +112 -0
- package/dist/components/actions-cell/index.js +7 -0
- package/dist/components/actions-cell/index.vue +94 -0
- package/dist/components/actions-cell/style.less +39 -0
- package/dist/components/activityviews/index.js +8 -0
- package/dist/components/activityviews/index.vue +140 -0
- package/dist/components/activityviews/style.less +138 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/badge/index.vue +49 -0
- package/dist/components/badge/style.less +66 -0
- package/dist/components/button/index.js +8 -0
- package/dist/components/button/index.vue +89 -0
- package/dist/components/button/style.less +563 -0
- package/dist/components/calendar/end.png +0 -0
- package/dist/components/calendar/index-element.vue +84 -0
- package/dist/components/calendar/index.js +8 -0
- package/dist/components/calendar/index.vue +52 -0
- package/dist/components/calendar/start.png +0 -0
- package/dist/components/calendar/style.less +167 -0
- package/dist/components/checkbox/assist.js +34 -0
- package/dist/components/checkbox/checkbox-group/index.js +8 -0
- package/dist/components/checkbox/checkbox-group/index.vue +69 -0
- package/dist/components/checkbox/index.js +8 -0
- package/dist/components/checkbox/index.vue +184 -0
- package/dist/components/checkbox/style.less +291 -0
- package/dist/components/common/state/index.vue +80 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/data-list/index.vue +19 -0
- package/dist/components/data-list/style.less +624 -0
- package/dist/components/datetime-picker/index.js +8 -0
- package/dist/components/datetime-picker/index.vue +37 -0
- package/dist/components/datetime-picker/style.less +24 -0
- package/dist/components/dialog/index.js +8 -0
- package/dist/components/dialog/index.vue +162 -0
- package/dist/components/dialog/overlay-manager.js +18 -0
- package/dist/components/dialog/style.less +132 -0
- package/dist/components/divider/index.js +8 -0
- package/dist/components/divider/index.vue +54 -0
- package/dist/components/divider/style.less +92 -0
- package/dist/components/dropdown/index.js +8 -0
- package/dist/components/dropdown/index.vue +210 -0
- package/dist/components/dropdown/style.less +418 -0
- package/dist/components/empty/404-dark.png +0 -0
- package/dist/components/empty/404.png +0 -0
- package/dist/components/empty/index.js +8 -0
- package/dist/components/empty/index.vue +95 -0
- package/dist/components/empty/network-dark.png +0 -0
- package/dist/components/empty/network.png +0 -0
- package/dist/components/empty/nodata-dark.png +0 -0
- package/dist/components/empty/nodata.png +0 -0
- package/dist/components/empty/style.less +60 -0
- package/dist/components/footer/index.js +7 -0
- package/dist/components/footer/index.vue +29 -0
- package/dist/components/footer/style.less +22 -0
- package/dist/components/footnav/footnav-item/index.js +7 -0
- package/dist/components/footnav/footnav-item/index.vue +75 -0
- package/dist/components/footnav/footnav-item/style.less +39 -0
- package/dist/components/footnav/index.js +7 -0
- package/dist/components/footnav/index.vue +97 -0
- package/dist/components/footnav/style.less +23 -0
- package/dist/components/form/index.js +7 -0
- package/dist/components/form/index.vue +12 -0
- package/dist/components/headnav/index.js +7 -0
- package/dist/components/headnav/index.vue +163 -0
- package/dist/components/headnav/style.less +245 -0
- package/dist/components/icon/font/iconfont.css +1049 -0
- package/dist/components/icon/font/iconfont.js +2 -0
- package/dist/components/icon/index.js +9 -0
- package/dist/components/icon/index.vue +46 -0
- package/dist/components/icon/style.less +44 -0
- package/dist/components/input/calcTextareaHeight.js +266 -0
- package/dist/components/input/index.js +8 -0
- package/dist/components/input/index.vue +343 -0
- package/dist/components/input/password/index.js +8 -0
- package/dist/components/input/password/index.vue +60 -0
- package/dist/components/input/search/index.js +8 -0
- package/dist/components/input/search/index.vue +66 -0
- package/dist/components/input/stepper/index.js +8 -0
- package/dist/components/input/stepper/index.vue +136 -0
- package/dist/components/input/style.less +497 -0
- package/dist/components/list/index.js +8 -0
- package/dist/components/list/index.vue +159 -0
- package/dist/components/list/style.less +292 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/loading/index.vue +53 -0
- package/dist/components/loading/loading.png +0 -0
- package/dist/components/loading/refresh.png +0 -0
- package/dist/components/loading/style.less +48 -0
- package/dist/components/mixins/clickoutside.js +81 -0
- package/dist/components/mixins/dom.js +41 -0
- package/dist/components/mixins/languageMixin.js +38 -0
- package/dist/components/mixins/outlineConfigPlugin.js +40 -0
- package/dist/components/mixins/router-link.js +23 -0
- package/dist/components/mixins/themeMixin.js +29 -0
- package/dist/components/noticebar/index.js +8 -0
- package/dist/components/noticebar/index.vue +247 -0
- package/dist/components/noticebar/style.less +332 -0
- package/dist/components/overlay/index.js +8 -0
- package/dist/components/overlay/index.vue +161 -0
- package/dist/components/overlay/style.less +23 -0
- package/dist/components/pagebreak/index.js +7 -0
- package/dist/components/pagebreak/index.vue +60 -0
- package/dist/components/pagebreak/style.less +43 -0
- package/dist/components/popover/index.js +8 -0
- package/dist/components/popover/index.vue +99 -0
- package/dist/components/popover/style.less +346 -0
- package/dist/components/popover/vue-popover.vue +314 -0
- package/dist/components/radio/assist.js +34 -0
- package/dist/components/radio/index.js +8 -0
- package/dist/components/radio/index.vue +159 -0
- package/dist/components/radio/radio-group/index.vue +70 -0
- package/dist/components/radio/style.less +297 -0
- 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.js +8 -0
- package/dist/components/result/index.vue +75 -0
- package/dist/components/result/style.less +42 -0
- package/dist/components/result/wait-dark.png +0 -0
- package/dist/components/result/wait.png +0 -0
- package/dist/components/selector/index.js +8 -0
- package/dist/components/selector/index.vue +124 -0
- package/dist/components/selector/style.less +474 -0
- package/dist/components/skeleton/index.js +7 -0
- package/dist/components/skeleton/index.vue +142 -0
- package/dist/components/skeleton/style.less +192 -0
- package/dist/components/slider/draggable.js +49 -0
- package/dist/components/slider/index.js +7 -0
- package/dist/components/slider/index.vue +173 -0
- package/dist/components/slider/style.less +96 -0
- package/dist/components/slider/utils.js +60 -0
- package/dist/components/step/index.js +7 -0
- package/dist/components/step/index.vue +48 -0
- package/dist/components/step/style.less +59 -0
- package/dist/components/step-item/index.js +7 -0
- package/dist/components/step-item/index.vue +117 -0
- package/dist/components/step-item/style.less +361 -0
- package/dist/components/style/index.vue +42 -0
- package/dist/components/switch/index.js +8 -0
- package/dist/components/switch/index.vue +72 -0
- package/dist/components/switch/style.less +56 -0
- package/dist/components/tabs/index.js +8 -0
- package/dist/components/tabs/index.vue +145 -0
- package/dist/components/tabs/style.less +385 -0
- package/dist/components/tabs/tab/index.vue +56 -0
- package/dist/components/tag/index.js +7 -0
- package/dist/components/tag/index.vue +50 -0
- package/dist/components/tag/style.less +211 -0
- package/dist/components/title/index.js +8 -0
- package/dist/components/title/index.vue +92 -0
- package/dist/components/title/style.less +188 -0
- package/dist/components/toast/index.js +80 -0
- package/dist/components/toast/index.vue +44 -0
- package/dist/components/toast/style.less +55 -0
- package/dist/components/transition/index.js +8 -0
- package/dist/components/transition/index.vue +13 -0
- package/dist/components/transition/style.less +208 -0
- package/dist/components/upload/index.js +7 -0
- package/dist/components/upload/index.vue +224 -0
- package/dist/components/upload/style.less +156 -0
- package/dist/demo.html +10 -0
- package/dist/img/404-dark.775df5bb.png +0 -0
- package/dist/img/completed-dark.4183a8a8.png +0 -0
- package/dist/img/error-dark.b80857da.png +0 -0
- package/dist/img/network-dark.11a147bb.png +0 -0
- package/dist/img/nodata-dark.b0ea0e39.png +0 -0
- package/dist/img/wait-dark.6aa28731.png +0 -0
- package/dist/locale/ar.js +98 -0
- package/dist/locale/en.js +98 -0
- package/dist/locale/zh.js +98 -0
- package/dist/token.css +2982 -0
- package/dist/vdesign-ui.common.js +27204 -0
- package/dist/vdesign-ui.css +1 -0
- package/dist/vdesign-ui.umd.js +27214 -0
- package/dist/vdesign-ui.umd.min.js +32 -0
- package/package.json +1 -1
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
@input-prefix-cls: vd-input;
|
|
2
|
+
@search-prefix-cls: vd-search;
|
|
3
|
+
@stepper-prefix-cls: vd-stepper;
|
|
4
|
+
@password-prefix-cls: vd-password;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
.@{input-prefix-cls} {
|
|
9
|
+
input {
|
|
10
|
+
outline: 0 none;
|
|
11
|
+
border: 0;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&--border{
|
|
16
|
+
margin-inline-end: calc(var(--spacing-input-form_divider-margin_y)* 1px);
|
|
17
|
+
}
|
|
18
|
+
&__control {
|
|
19
|
+
flex: 1;
|
|
20
|
+
width: 100%;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
background-color: transparent;
|
|
25
|
+
color: var(--color-input-text-active);
|
|
26
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
27
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
28
|
+
caret-color: var(--color-input-cursor);
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--active {
|
|
33
|
+
&.vd-hairline--bottom {
|
|
34
|
+
&::after {
|
|
35
|
+
border-color: var(--color-input-form-border-active) !important;
|
|
36
|
+
border-bottom-width: 2px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--error {
|
|
42
|
+
background-color: var(--color-input-form-bg-wrong) !important;
|
|
43
|
+
|
|
44
|
+
.@{input-prefix-cls}-form__append {
|
|
45
|
+
color: var(--color-input-form-border-wrong);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::after {
|
|
49
|
+
border: 0 solid var(--color-input-form-border-wrong);
|
|
50
|
+
border-bottom-width: 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.vd-hairline--bottom {
|
|
54
|
+
&::after {
|
|
55
|
+
border-color: var(--color-input-form-border-wrong) !important;
|
|
56
|
+
border-bottom-width: 2px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
position: relative;
|
|
64
|
+
padding-inline-start: calc(var(--spacing-input-max_text-padding_y) * 1px);
|
|
65
|
+
padding-inline-end: calc(var(--spacing-input-max_text-padding_y) * 1px);
|
|
66
|
+
height: calc(var(--height-input-bg) * 1px);
|
|
67
|
+
|
|
68
|
+
&.vd-hairline--bottom {
|
|
69
|
+
&::after {
|
|
70
|
+
border-color: var(--color-input-form-border-default);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.@{input-prefix-cls}-textarea {
|
|
75
|
+
&__control {
|
|
76
|
+
outline: 0 none;
|
|
77
|
+
border: 0;
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
resize: none;
|
|
80
|
+
line-height: 20px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
input::-webkit-input-placeholder,
|
|
85
|
+
textarea::-webkit-input-placeholder {
|
|
86
|
+
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
87
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
88
|
+
color: var(--color-input-text-default);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&--disabled {
|
|
92
|
+
.@{input-prefix-cls}__control {
|
|
93
|
+
color: var(--color-input-text-disable);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
&-textarea {
|
|
99
|
+
height: auto;
|
|
100
|
+
display: block;
|
|
101
|
+
background-color: var(--color-input-textarea-bg-default);
|
|
102
|
+
border-radius: calc(var(--radius-input-bg) * 1px);
|
|
103
|
+
min-height: calc(var(--height-input-textarea) * 1px);
|
|
104
|
+
padding-inline-start: calc(var(--spacing-input-textarea-padding_y) * 1px);
|
|
105
|
+
padding-inline-end: calc(var(--spacing-input-textarea-padding_y) * 1px);
|
|
106
|
+
padding-block-start: calc(var(--spacing-input-textarea-padding_x) * 1px);
|
|
107
|
+
padding-block-end: calc(var(--spacing-input-textarea-padding_x) * 1px);
|
|
108
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
109
|
+
|
|
110
|
+
.@{input-prefix-cls}__word-limit {
|
|
111
|
+
text-align: end;
|
|
112
|
+
color: var(--color-input-text-default);
|
|
113
|
+
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
114
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
115
|
+
margin-block-start: calc(var(--spacing-input-textarea_text-margin_down) * 1px);
|
|
116
|
+
|
|
117
|
+
&--error {
|
|
118
|
+
color: var(--color-input-text-wrong);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
&-form {
|
|
126
|
+
padding-inline-start: 0;
|
|
127
|
+
padding-inline-end: 0;
|
|
128
|
+
height: calc(var(--height-input-form_text) * 1px);
|
|
129
|
+
|
|
130
|
+
&__prefix {
|
|
131
|
+
position: relative;
|
|
132
|
+
color: var(--color-input-text-active);
|
|
133
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
134
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
135
|
+
// margin-inline-end: calc(var(--spacing-input-form_divider-margin_y) * 1px);
|
|
136
|
+
padding-inline-end: calc(var(--spacing-input-form_divider-margin_y) * 1px);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&__right {
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
|
|
143
|
+
.@{input-prefix-cls}__word-limit {
|
|
144
|
+
text-align: end;
|
|
145
|
+
color: var(--color-input-text-default);
|
|
146
|
+
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
147
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
148
|
+
margin-block-start: 0;
|
|
149
|
+
|
|
150
|
+
&--error {
|
|
151
|
+
color: var(--color-input-text-wrong);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&__suffix {
|
|
157
|
+
margin-inline-start: calc(var(--spacing-input-suffix_icon-margin_y) * 1px);
|
|
158
|
+
margin-inline-end: calc(var(--spacing-input-suffix_icon-margin_y) * 1px);
|
|
159
|
+
color: var(--color-input-text-active);
|
|
160
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
161
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
162
|
+
|
|
163
|
+
.vd-iconfont {
|
|
164
|
+
vertical-align: middle;
|
|
165
|
+
color: var(--text-color-h3);
|
|
166
|
+
font-size: calc(var(--icon-input-clean) * 1px);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&__append {
|
|
171
|
+
color: var(--color-input-text-default);
|
|
172
|
+
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
173
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&__password {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
color: var(--color-input-text-active);
|
|
180
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
181
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
182
|
+
|
|
183
|
+
&--close {
|
|
184
|
+
margin-inline-start: calc(var(--spacing-input-suffix_icon-margin_y) * 1px);
|
|
185
|
+
|
|
186
|
+
.vd-iconfont {
|
|
187
|
+
color: var(--text-color-h2);
|
|
188
|
+
font-size: calc(var(--icon-input-clean) * 1px);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&--password {
|
|
193
|
+
color: var(--text-color-h2);
|
|
194
|
+
margin-inline-start: calc(var(--spacing-input-form_suffix_icon-margin_y) * 1px);
|
|
195
|
+
margin-inline-end: calc(var(--spacing-input-suffix_icon-margin_y) * 1px);
|
|
196
|
+
font-size: calc(var(--icon-input-form_suffix) * 1px);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&--bigsize {
|
|
202
|
+
height: calc(var(--height-input-form_number_text) * 1px);
|
|
203
|
+
|
|
204
|
+
.@{input-prefix-cls}__control {
|
|
205
|
+
font-size: calc(var(--en-single-f-g-b-fontSize) * 1px);
|
|
206
|
+
font-weight: var(--en-single-f-g-b-fontWeight);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&-textarea--warning {
|
|
211
|
+
&::after {
|
|
212
|
+
display: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.@{input-prefix-cls}__word-limit {
|
|
216
|
+
color: var(--color-input-form_counter-warning);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&-inputarea {
|
|
221
|
+
display: flex;
|
|
222
|
+
border-radius: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.@{search-prefix-cls} {
|
|
228
|
+
input {
|
|
229
|
+
outline: 0 none;
|
|
230
|
+
border: 0;
|
|
231
|
+
text-decoration: none;
|
|
232
|
+
}
|
|
233
|
+
flex: 1;
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
height: calc(var(--height-input-search_content) * 1px);
|
|
237
|
+
padding-inline-start: calc(var(--spacing-input-search_textarea-padding_y) * 1px);
|
|
238
|
+
padding-inline-end: calc(var(--spacing-input-search_textarea-padding_y) * 1px);
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
.@{input-prefix-cls} {
|
|
242
|
+
&-search{
|
|
243
|
+
padding-inline-end: 0;
|
|
244
|
+
flex: 1;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
&-content {
|
|
250
|
+
flex: 1;
|
|
251
|
+
display: flex;
|
|
252
|
+
align-items: center;
|
|
253
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
254
|
+
padding-inline-start: calc(var(--spacing-input-textarea-padding_y) * 1px);
|
|
255
|
+
padding-inline-end: calc(var(--spacing-input-textarea-padding_y) * 1px);
|
|
256
|
+
border-radius: calc(var(--radius-input-bg) * 1px);
|
|
257
|
+
|
|
258
|
+
.@{search-prefix-cls} {
|
|
259
|
+
|
|
260
|
+
&__control {
|
|
261
|
+
width: 100%;
|
|
262
|
+
background-color: transparent;
|
|
263
|
+
height: calc(var(--height-input-search_bg) * 1px);
|
|
264
|
+
color: var(--color-input-text-active);
|
|
265
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
266
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
267
|
+
caret-color: var(--color-input-cursor);
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
&::-webkit-input-placeholder {
|
|
271
|
+
color: var(--color-input-text-default);
|
|
272
|
+
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
273
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&__prefix {
|
|
282
|
+
display: flex;
|
|
283
|
+
|
|
284
|
+
.vd-iconfont {
|
|
285
|
+
vertical-align: middle;
|
|
286
|
+
color: var(--text-color-h3);
|
|
287
|
+
font-size: calc(var(--icon-input-search) * 1px);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&__suffix {
|
|
292
|
+
margin-inline-start: calc(var(--spacing-input-suffix_icon-margin_y) * 1px);
|
|
293
|
+
color: var(--color-input-text-active);
|
|
294
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
295
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
296
|
+
|
|
297
|
+
.vd-iconfont {
|
|
298
|
+
vertical-align: middle;
|
|
299
|
+
color: var(--text-color-h3);
|
|
300
|
+
font-size: calc(var(--icon-input-clean) * 1px);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
&__action {
|
|
305
|
+
margin-inline-start: calc(var(--spacing-input-search_cancel-margin_left) * 1px);
|
|
306
|
+
display: flex;
|
|
307
|
+
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.@{stepper-prefix-cls} {
|
|
313
|
+
input {
|
|
314
|
+
outline: 0 none;
|
|
315
|
+
border: 0;
|
|
316
|
+
text-decoration: none;
|
|
317
|
+
}
|
|
318
|
+
display: flex;
|
|
319
|
+
align-items: center;
|
|
320
|
+
background-color: var(--color-input-trade-bg);
|
|
321
|
+
height: calc(var(--height-input-bg) * 1px);
|
|
322
|
+
padding-inline-start: calc(var(--spacing-input-trade-padding_y) * 1px);
|
|
323
|
+
padding-inline-end: calc(var(--spacing-input-trade-padding_y) * 1px);
|
|
324
|
+
border-radius: calc(var(--radius-input-trade_bg) * 1px);
|
|
325
|
+
|
|
326
|
+
&-input {
|
|
327
|
+
width: 100%;
|
|
328
|
+
padding: 0;
|
|
329
|
+
background-color: transparent;
|
|
330
|
+
color: var(--color-input-text-active);
|
|
331
|
+
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
332
|
+
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
333
|
+
// margin-inline-start: calc(var(--spacing-input-trade_number_input-margin_left) * 1px);
|
|
334
|
+
margin-inline-end: calc(var(--spacing-input-trade_number_input-margin_left) * 1px);
|
|
335
|
+
caret-color: var(--color-input-cursor);
|
|
336
|
+
|
|
337
|
+
&::-webkit-input-placeholder {
|
|
338
|
+
color: var(--color-input-text-default);
|
|
339
|
+
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
340
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.@{stepper-prefix-cls}__minus {
|
|
346
|
+
padding-inline-start: 0;
|
|
347
|
+
padding-inline-end: calc(var(--spacing-input-trade_number_divider-margin_y) * 1px);
|
|
348
|
+
background-color: transparent;
|
|
349
|
+
|
|
350
|
+
.vd-iconfont {
|
|
351
|
+
color: var(--text-color-h2);
|
|
352
|
+
font-size: calc(var(--icon-input-trade_number_input_icon) * 1px);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.@{stepper-prefix-cls}__plus {
|
|
357
|
+
padding-inline-start: calc(var(--spacing-input-trade_number_divider-margin_y) * 1px);
|
|
358
|
+
padding-inline-end: 0;
|
|
359
|
+
// padding-inline-end: calc(var(--spacing-input-trade_number_divider-margin_y) * 1px);
|
|
360
|
+
background-color: transparent;
|
|
361
|
+
|
|
362
|
+
.vd-iconfont {
|
|
363
|
+
color: var(--text-color-h2);
|
|
364
|
+
font-size: calc(var(--icon-input-trade_number_input_icon) * 1px);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
&--center {
|
|
369
|
+
text-align: center;
|
|
370
|
+
|
|
371
|
+
.@{stepper-prefix-cls} {
|
|
372
|
+
&-input {
|
|
373
|
+
text-align: center;
|
|
374
|
+
margin-inline-start: calc(var(--spacing-input-trade_number_input-margin_left) * 1px);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
&--disabled {
|
|
381
|
+
.@{stepper-prefix-cls} {
|
|
382
|
+
color: var(--color-input-text-disable);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.vd-iconfont {
|
|
386
|
+
opacity: var(--opacity-30);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
&--gray {
|
|
392
|
+
background-color: var(--bg-color-3);
|
|
393
|
+
border-radius: calc(var(--radius-input-bg) * 1px);
|
|
394
|
+
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
input[type="number"]::-webkit-inner-spin-button,
|
|
398
|
+
input[type="number"]::-webkit-outer-spin-button {
|
|
399
|
+
-webkit-appearance: none;
|
|
400
|
+
margin: 0;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.@{password-prefix-cls} {
|
|
405
|
+
input {
|
|
406
|
+
outline: 0 none;
|
|
407
|
+
border: 0;
|
|
408
|
+
text-decoration: none;
|
|
409
|
+
}
|
|
410
|
+
direction: ltr;
|
|
411
|
+
position: relative;
|
|
412
|
+
margin: 0 calc(var(--spacing-input-code-padding_y) * 1px);
|
|
413
|
+
-webkit-user-select: none;
|
|
414
|
+
user-select: none;
|
|
415
|
+
|
|
416
|
+
&__security {
|
|
417
|
+
display: flex;
|
|
418
|
+
align-items: center;
|
|
419
|
+
width: 100%;
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
height: calc(var(--height-input-code) * 1px);
|
|
422
|
+
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
&__item {
|
|
426
|
+
position: relative;
|
|
427
|
+
flex-shrink: 0;
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: center;
|
|
431
|
+
color: var(--color-input-text-active);
|
|
432
|
+
font-size: calc(var(--en-single-f-f-b-fontSize) * 1px);
|
|
433
|
+
font-weight: var(--en-single-f-f-b-fontWeight);
|
|
434
|
+
width: calc(var(--width-input-code_number) * 1px);
|
|
435
|
+
height: calc(var(--height-input-code_number) * 1px);
|
|
436
|
+
margin-inline-end: calc(var(--spacing-input-code_number-margin_right) * 1px);
|
|
437
|
+
|
|
438
|
+
&:last-child {
|
|
439
|
+
margin-inline-end: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&::after {
|
|
443
|
+
content: '';
|
|
444
|
+
position: absolute;
|
|
445
|
+
left: 50%;
|
|
446
|
+
bottom: ~"calc(var(--spacing-input-code_number-margin_bottom) * -1px)";
|
|
447
|
+
transform: translateX(-50%);
|
|
448
|
+
background-color: var(--color-input-form-border-default);
|
|
449
|
+
width: calc(var(--width-input-code_number_line) * 1px);
|
|
450
|
+
height: calc(var(--height-input-code_number_line) * 1px);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
&.vd-password-is-filled {
|
|
454
|
+
&::after {
|
|
455
|
+
background-color: var(--color-input-form-border-active);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.mask-icon {
|
|
460
|
+
visibility: visible;
|
|
461
|
+
position: absolute;
|
|
462
|
+
top: 50%;
|
|
463
|
+
left: 50%;
|
|
464
|
+
width: 16px;
|
|
465
|
+
height: 16px;
|
|
466
|
+
background-color: var(--color-input-text-active);
|
|
467
|
+
border-radius: 100%;
|
|
468
|
+
-webkit-transform: translate(-50%, -50%);
|
|
469
|
+
transform: translate(-50%, -50%);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
&__input {
|
|
474
|
+
opacity: 0;
|
|
475
|
+
position: absolute;
|
|
476
|
+
z-index: 1;
|
|
477
|
+
left: 0;
|
|
478
|
+
right: 0;
|
|
479
|
+
top: 0;
|
|
480
|
+
bottom: 0;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.vd-textarea-auto {
|
|
485
|
+
height: auto;
|
|
486
|
+
min-height: auto;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
[lang='ar']{
|
|
491
|
+
.@{input-prefix-cls} {
|
|
492
|
+
&__word-limit{
|
|
493
|
+
display: flex;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-list" :class="wrapClasses" @click="toggleActiveSelect">
|
|
3
|
+
<div class="vd-list--left" :class="listLeftClasses">
|
|
4
|
+
<vd-icon v-if="leftCusIcon" :name="leftCusIcon" :svg="leftCusSvg" :class="leftCusIconClasses"
|
|
5
|
+
:style="{ 'fontSize': fontSize + 'px' }"></vd-icon>
|
|
6
|
+
<div v-if="extraSlot">
|
|
7
|
+
<slot></slot>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="vd-list-content" :class="contentClasses">
|
|
10
|
+
<vd-icon v-if="leftIcon" :name="leftIcon" :svg="leftSvg" :class="leftIconClasses"></vd-icon>
|
|
11
|
+
<span class="vd-list-inner__title vd-multi-ellipsis--l2" :class="innerTitleClasses">{{ title }}</span>
|
|
12
|
+
<vd-icon v-if="rightIcon" :name="rightIcon" :svg="rightSvg" :class="rightIconClasses"></vd-icon>
|
|
13
|
+
<p class="vd-title__subtext vd-multi-ellipsis--l2" :class="subTextClasses" v-if="subText">{{ subText }}
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="vd-list--right" v-if="guideText || arrowNext || activeSelect || $slots.default">
|
|
18
|
+
<vd-icon class="vd-list__icon--extra" v-if="cusIcon" :name="cusIcon" :svg="cusSvg"></vd-icon>
|
|
19
|
+
<slot name="badge">
|
|
20
|
+
<vd-badge is-dot v-if="badge" class="vd-list-common__badge"></vd-badge>
|
|
21
|
+
</slot>
|
|
22
|
+
<!-- </span> -->
|
|
23
|
+
<span v-if="guideText" :class="textRightClasses">
|
|
24
|
+
<p>{{ guideText }}</p>
|
|
25
|
+
<p v-if="mulText" class="vd-list__multext">{{ mulText }}</p>
|
|
26
|
+
</span>
|
|
27
|
+
<span v-if="arrowNext" class="vd-list-arrow" @click="$emit('back')">
|
|
28
|
+
<vd-icon :name="arrowNext"></vd-icon>
|
|
29
|
+
</span>
|
|
30
|
+
<!-- <span v-if="activeSelect" class="vd-list-check__select"> -->
|
|
31
|
+
<vd-icon v-if="activeSelect" class="vd-list-check__select" name="icon_btn_singleslt"
|
|
32
|
+
color="#1BC47D"></vd-icon>
|
|
33
|
+
<!-- </span> -->
|
|
34
|
+
|
|
35
|
+
<span v-if="curSlot" class="vd-list__switch">
|
|
36
|
+
<slot></slot>
|
|
37
|
+
</span>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
<script>
|
|
42
|
+
const prefixCls = 'vd-list';
|
|
43
|
+
|
|
44
|
+
export default {
|
|
45
|
+
name: 'vd-list',
|
|
46
|
+
props: {
|
|
47
|
+
title: String,
|
|
48
|
+
leftIcon:String,
|
|
49
|
+
rightIcon:String,
|
|
50
|
+
cusIcon: String,
|
|
51
|
+
leftCusIcon: String,
|
|
52
|
+
arrow: Boolean,
|
|
53
|
+
subText: String,
|
|
54
|
+
guideText: String,
|
|
55
|
+
mulText: String,
|
|
56
|
+
activeSelect: Boolean,
|
|
57
|
+
type: String,
|
|
58
|
+
leftSvg: Boolean,
|
|
59
|
+
rightSvg: Boolean,
|
|
60
|
+
cusSvg: Boolean,
|
|
61
|
+
leftCusSvg: Boolean,
|
|
62
|
+
arrowNext: String,
|
|
63
|
+
badge: Boolean,
|
|
64
|
+
curSlot: Boolean,
|
|
65
|
+
divider: Boolean,
|
|
66
|
+
extraSlot: Boolean,
|
|
67
|
+
fontSize: {
|
|
68
|
+
type: [String, Number],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
data() {
|
|
72
|
+
return {
|
|
73
|
+
name: ""
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
computed: {
|
|
77
|
+
wrapClasses() {
|
|
78
|
+
return [
|
|
79
|
+
{
|
|
80
|
+
[`${prefixCls}-${this.type}`]: this.type,
|
|
81
|
+
[`${prefixCls}-${this.type}--active`]: this.activeSelect,
|
|
82
|
+
[`${prefixCls}-${this.type}-double`]: this.subText,
|
|
83
|
+
'vd-hairline--bottom': this.divider,
|
|
84
|
+
}
|
|
85
|
+
];
|
|
86
|
+
},
|
|
87
|
+
leftIconClasses() {
|
|
88
|
+
return [
|
|
89
|
+
{
|
|
90
|
+
[`${prefixCls}-${this.type}__icon--left`]: this.type
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
},
|
|
94
|
+
leftCusIconClasses() {
|
|
95
|
+
return [
|
|
96
|
+
{
|
|
97
|
+
[`${prefixCls}-${this.type}__icon--leftcus`]: this.type
|
|
98
|
+
}
|
|
99
|
+
];
|
|
100
|
+
},
|
|
101
|
+
listLeftClasses() {
|
|
102
|
+
return [
|
|
103
|
+
{
|
|
104
|
+
[`${prefixCls}-common--left`]: this.type
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
},
|
|
108
|
+
contentClasses() {
|
|
109
|
+
return [
|
|
110
|
+
{
|
|
111
|
+
[`${prefixCls}-content-${this.type}`]: this.type
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
},
|
|
115
|
+
innerTitleClasses() {
|
|
116
|
+
return [
|
|
117
|
+
{
|
|
118
|
+
[`${prefixCls}-${this.type}__title`]: this.type
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
},
|
|
122
|
+
subTextClasses() {
|
|
123
|
+
return [
|
|
124
|
+
{
|
|
125
|
+
[`${prefixCls}-${this.type}__subtext`]: this.type
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
},
|
|
129
|
+
rightIconClasses() {
|
|
130
|
+
return [
|
|
131
|
+
{
|
|
132
|
+
[`${prefixCls}-${this.type}__icon--right`]: this.type
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
textRightClasses() {
|
|
137
|
+
return [
|
|
138
|
+
{
|
|
139
|
+
[`${prefixCls}-${this.type}__text--right`]: this.type
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
mounted() {
|
|
145
|
+
},
|
|
146
|
+
methods: {
|
|
147
|
+
toggleActiveSelect() {
|
|
148
|
+
this.$emit('toggle-active', !this.activeSelect);
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
watch: {
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
</script>
|
|
156
|
+
|
|
157
|
+
<style lang="less">
|
|
158
|
+
@import './style.less';
|
|
159
|
+
</style>
|