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,418 @@
|
|
|
1
|
+
.vd-menu-mask {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 999;
|
|
4
|
+
top: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
background-color: rgba(0, 0, 0, 0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@dropdown-prefix-cls: vd-dropdown;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
.@{dropdown-prefix-cls} {
|
|
16
|
+
--translate-x: -50%;
|
|
17
|
+
|
|
18
|
+
position: relative;
|
|
19
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
20
|
+
|
|
21
|
+
// 额外加的 btn,token之外的
|
|
22
|
+
&--btn {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
flex-wrap: nowrap;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
padding: 10px 0;
|
|
29
|
+
gap: 10px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-menu {
|
|
33
|
+
z-index: 1000;
|
|
34
|
+
background: #fff;
|
|
35
|
+
transform-origin: top center;
|
|
36
|
+
position: absolute;
|
|
37
|
+
transition: transform 0.25s ease, opacity 0.25s ease;
|
|
38
|
+
inset-inline-start: 50%;
|
|
39
|
+
inset-block-start: 100%;
|
|
40
|
+
transform: translate(var(--translate-x), 2px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&-primary {
|
|
45
|
+
.@{dropdown-prefix-cls}-menu {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
overflow-y: auto;
|
|
48
|
+
min-width: calc(var(--width-dropdown-primary_small) * 1px);
|
|
49
|
+
max-height: calc(var(--height-dropdown-primary_large) * 1px);
|
|
50
|
+
background-color: var(--color-dropdown-bg-default);
|
|
51
|
+
padding-block-start: calc(var(--spacing-dropdown-primary-padding_x) * 1px);
|
|
52
|
+
padding-block-end: calc(var(--spacing-dropdown-primary-padding_x) * 1px);
|
|
53
|
+
padding-inline-start: calc(var(--spacing-dropdown-primary-padding_y) * 1px);
|
|
54
|
+
padding-inline-end: calc(var(--spacing-dropdown-primary-padding_y) * 1px);
|
|
55
|
+
box-shadow: var(--shadow-s2);
|
|
56
|
+
border-radius: calc(var(--radius-dropdown-primary) * 1px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.@{dropdown-prefix-cls}-item {
|
|
60
|
+
position: relative;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
align-items: center;
|
|
64
|
+
height: calc(var(--height-dropdown-primary_item) * 1px);
|
|
65
|
+
line-height: calc(var(--height-dropdown-primary_item) * 1px);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.@{dropdown-prefix-cls} {
|
|
69
|
+
&-left {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-text {
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
color: var(--color-dropdown-primary-text-default);
|
|
77
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
78
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-icon {
|
|
82
|
+
font-size: calc(var(--icon-dropdown-primary) * 1px);
|
|
83
|
+
margin-inline-end: calc(var(--spacing-dropdown-primary_icon-margin_right) * 1px);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-active-select {
|
|
87
|
+
font-size: calc(var(--icon-dropdown-primary_select) * 1px);
|
|
88
|
+
margin-inline-start: calc(var(--spacing-dropdown-primary_icon_select-margin_left) * 1px);
|
|
89
|
+
transform: scaleX(1) !important;
|
|
90
|
+
direction: ltr;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.@{dropdown-prefix-cls}--active {
|
|
96
|
+
.@{dropdown-prefix-cls}-text {
|
|
97
|
+
color: var(--color-dropdown-primary-text-active);
|
|
98
|
+
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
99
|
+
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.@{dropdown-prefix-cls}--disabled {
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
cursor: not-allowed;
|
|
106
|
+
|
|
107
|
+
.@{dropdown-prefix-cls}-text {
|
|
108
|
+
color: var(--color-dropdown-primary-text-disable);
|
|
109
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
110
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.@{dropdown-prefix-cls}-icon {
|
|
114
|
+
opacity: var(--opacity-30);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-secondary {
|
|
120
|
+
.@{dropdown-prefix-cls}-menu {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
overflow-y: auto;
|
|
123
|
+
max-height: calc(var(--height-dropdown-secondary_large) * 1px);
|
|
124
|
+
background-color: var(--color-dropdown-bg-default);
|
|
125
|
+
padding-block-start: calc(var(--spacing-dropdown-secondary-padding_x) * 1px);
|
|
126
|
+
padding-block-end: calc(var(--spacing-dropdown-secondary-padding_x) * 1px);
|
|
127
|
+
padding-inline-start: calc(var(--spacing-dropdown-secondary-padding_y) * 1px);
|
|
128
|
+
padding-inline-end: calc(var(--spacing-dropdown-secondary-padding_y) * 1px);
|
|
129
|
+
box-shadow: var(--shadow-s2);
|
|
130
|
+
border-radius: calc(var(--radius-dropdown-secondary) * 1px);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.@{dropdown-prefix-cls}-item {
|
|
134
|
+
position: relative;
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: space-between;
|
|
137
|
+
align-items: center;
|
|
138
|
+
height: calc(var(--height-dropdown-secondary_item) * 1px);
|
|
139
|
+
line-height: calc(var(--height-dropdown-secondary_item) * 1px);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.@{dropdown-prefix-cls} {
|
|
143
|
+
&-left {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&-text {
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
color: var(--color-dropdown-secondary-text-default);
|
|
151
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
152
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&-icon {
|
|
156
|
+
font-size: calc(var(--icon-dropdown-secondary) * 1px);
|
|
157
|
+
margin-inline-end: calc(var(--spacing-dropdown-secondary_icon-margin_right) * 1px);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.@{dropdown-prefix-cls}--active {
|
|
164
|
+
.@{dropdown-prefix-cls}-text {
|
|
165
|
+
color: var(--color-dropdown-secondary-text-active);
|
|
166
|
+
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
167
|
+
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.@{dropdown-prefix-cls}--disabled {
|
|
172
|
+
pointer-events: none;
|
|
173
|
+
cursor: not-allowed;
|
|
174
|
+
|
|
175
|
+
.@{dropdown-prefix-cls}-text {
|
|
176
|
+
color: var(--color-dropdown-secondary-text-disable);
|
|
177
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
178
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.@{dropdown-prefix-cls}-icon {
|
|
182
|
+
opacity: var(--opacity-30);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-state {
|
|
188
|
+
.@{dropdown-prefix-cls}-menu {
|
|
189
|
+
overflow-y: auto;
|
|
190
|
+
min-width: calc(var(--width-dropdown-state_small) * 1px);
|
|
191
|
+
max-height: calc(var(--height-dropdown-state_large) * 1px);
|
|
192
|
+
background-color: var(--color-dropdown-bg-default);
|
|
193
|
+
padding-block-start: calc(var(--spacing-dropdown-state-padding_x) * 1px);
|
|
194
|
+
padding-block-end: calc(var(--spacing-dropdown-state-padding_x) * 1px);
|
|
195
|
+
padding-inline-start: calc(var(--spacing-dropdown-state-padding_y) * 1px);
|
|
196
|
+
padding-inline-end: calc(var(--spacing-dropdown-state-padding_y) * 1px);
|
|
197
|
+
box-shadow: var(--shadow-s2);
|
|
198
|
+
border-radius: calc(var(--radius-dropdown-state) * 1px);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.@{dropdown-prefix-cls}-item {
|
|
202
|
+
position: relative;
|
|
203
|
+
display: flex;
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
align-items: center;
|
|
206
|
+
height: calc(var(--height-dropdown-state_item) * 1px);
|
|
207
|
+
line-height: calc(var(--height-dropdown-state_item) * 1px);
|
|
208
|
+
padding-inline-start: calc(var(--spacing-dropdown-state_item-padding_y) * 1px);
|
|
209
|
+
padding-inline-end: calc(var(--spacing-dropdown-state_item-padding_y) * 1px);
|
|
210
|
+
border-radius: calc(var(--radius-dropdown-state_item) * 1px);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.@{dropdown-prefix-cls} {
|
|
214
|
+
&-left {
|
|
215
|
+
display: flex;
|
|
216
|
+
align-items: center;
|
|
217
|
+
flex: 1;
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&-text {
|
|
222
|
+
text-overflow: ellipsis;
|
|
223
|
+
overflow: hidden;
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
color: var(--color-dropdown-state-text-default);
|
|
226
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
227
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&-icon {
|
|
231
|
+
font-size: calc(var(--icon-dropdown-state) * 1px);
|
|
232
|
+
margin-inline-end: calc(var(--spacing-dropdown-state_icon-margin_right) * 1px);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&-state-text {
|
|
236
|
+
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
237
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
238
|
+
|
|
239
|
+
&::before {
|
|
240
|
+
content: '';
|
|
241
|
+
display: inline-block;
|
|
242
|
+
border-radius: 50%;
|
|
243
|
+
width: calc(var(--width-dropdown-state_drop) * 1px);
|
|
244
|
+
height: calc(var(--width-dropdown-state_drop) * 1px);
|
|
245
|
+
margin-inline-start: calc(var(--spacing-dropdown-state_drop-margin_left) * 1px);
|
|
246
|
+
margin-inline-end: calc(var(--spacing-dropdown-state_drop-margin_right) * 1px);
|
|
247
|
+
background-color: var(--color-dropdown-state-open);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&--open {
|
|
251
|
+
color: var(--color-dropdown-state-open);
|
|
252
|
+
|
|
253
|
+
&::before {
|
|
254
|
+
background-color: var(--color-dropdown-state-open);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&--preopen {
|
|
259
|
+
color: var(--color-dropdown-state-preopen);
|
|
260
|
+
|
|
261
|
+
&::before {
|
|
262
|
+
background-color: var(--color-dropdown-state-preopen);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&--close {
|
|
267
|
+
color: var(--color-dropdown-state-close);
|
|
268
|
+
|
|
269
|
+
&::before {
|
|
270
|
+
background-color: var(--text-color-h3);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&--fusing {
|
|
275
|
+
color: var(--color-dropdown-state-fusing);
|
|
276
|
+
|
|
277
|
+
&::before {
|
|
278
|
+
background-color: var(--color-dropdown-state-fusing);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&--pre {
|
|
283
|
+
color: var(--color-dropdown-state-pre_market_auction);
|
|
284
|
+
|
|
285
|
+
&::before {
|
|
286
|
+
background-color: var(--color-dropdown-state-pre_market_auction);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
&--last {
|
|
291
|
+
color: var(--color-dropdown-state-last_trading_session);
|
|
292
|
+
|
|
293
|
+
&::before {
|
|
294
|
+
background-color: var(--color-dropdown-state-last_trading_session);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.@{dropdown-prefix-cls}--active {
|
|
303
|
+
background: var(--color-dropdown-state-bg-active);
|
|
304
|
+
|
|
305
|
+
.@{dropdown-prefix-cls}-text {
|
|
306
|
+
color: var(--color-dropdown-state-text-active);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.@{dropdown-prefix-cls}--disabled {
|
|
311
|
+
pointer-events: none;
|
|
312
|
+
cursor: not-allowed;
|
|
313
|
+
|
|
314
|
+
.@{dropdown-prefix-cls}-text {
|
|
315
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
316
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.@{dropdown-prefix-cls}-icon {
|
|
320
|
+
opacity: var(--opacity-30);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&-group {
|
|
327
|
+
.@{dropdown-prefix-cls}-menu {
|
|
328
|
+
overflow-y: auto;
|
|
329
|
+
min-width: calc(var(--width-dropdown-group_default) * 1px);
|
|
330
|
+
max-height: calc(var(--height-dropdown-group_large) * 1px);
|
|
331
|
+
background-color: var(--color-dropdown-bg-default);
|
|
332
|
+
padding-block-start: calc(var(--spacing-dropdown-group-padding_x) * 1px);
|
|
333
|
+
padding-block-end: calc(var(--spacing-dropdown-group-padding_x) * 1px);
|
|
334
|
+
padding-inline-start: calc(var(--spacing-dropdown-group-padding_y) * 1px);
|
|
335
|
+
padding-inline-end: calc(var(--spacing-dropdown-group-padding_y) * 1px);
|
|
336
|
+
box-shadow: var(--shadow-s2);
|
|
337
|
+
border-radius: calc(var(--radius-dropdown-group) * 1px);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.@{dropdown-prefix-cls}-item {
|
|
341
|
+
position: relative;
|
|
342
|
+
display: flex;
|
|
343
|
+
justify-content: space-between;
|
|
344
|
+
align-items: center;
|
|
345
|
+
padding-block-start: calc(var(--spacing-dropdown-group_item-padding_top) * 1px);
|
|
346
|
+
padding-block-end: calc(var(--spacing-dropdown-group_item-padding_bottom) * 1px);
|
|
347
|
+
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.@{dropdown-prefix-cls} {
|
|
351
|
+
&-left {
|
|
352
|
+
display: flex;
|
|
353
|
+
align-items: center;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
&-group-cell {
|
|
357
|
+
display: flex;
|
|
358
|
+
flex-direction: column;
|
|
359
|
+
color: var(--color-dropdown-state-text-default);
|
|
360
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
361
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
&-text {
|
|
365
|
+
color: var(--color-dropdown-group-title-default);
|
|
366
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
367
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
&-group-sub {
|
|
371
|
+
display: flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
margin-block-start: calc(var(--spacing-dropdown-group_text-margin_bottom) * 1px);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
&-sub-icon {
|
|
377
|
+
font-size: calc(var(--icon-dropdown-group) * 1px);
|
|
378
|
+
margin-inline-end: 6px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&-subtext {
|
|
382
|
+
color: var(--color-dropdown-group-text-default);
|
|
383
|
+
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
384
|
+
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
&-multext {
|
|
388
|
+
margin-block-start: calc(var(--spacing-dropdown-group_text-margin_bottom) * 1px);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&--divided {
|
|
395
|
+
.@{dropdown-prefix-cls}-item {
|
|
396
|
+
&:not(:last-child)::after {
|
|
397
|
+
position: absolute;
|
|
398
|
+
box-sizing: border-box;
|
|
399
|
+
content: ' ';
|
|
400
|
+
pointer-events: none;
|
|
401
|
+
top: -50%;
|
|
402
|
+
right: -50%;
|
|
403
|
+
bottom: -50%;
|
|
404
|
+
left: -50%;
|
|
405
|
+
border: 0 solid var(--color-dropdown-divider);
|
|
406
|
+
-webkit-transform: scale(0.5);
|
|
407
|
+
transform: scale(0.5);
|
|
408
|
+
border-bottom-width: 1px;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
[dir="rtl"] .@{dropdown-prefix-cls} {
|
|
417
|
+
--translate-x: 50%;
|
|
418
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-empty" :class="wrapClasses">
|
|
3
|
+
<div class="vd-empty-img"><img :src="currentImg" alt="img"></div>
|
|
4
|
+
<p class="vd-empty-txt" :class="textClasses" v-if="description">{{ description }}</p>
|
|
5
|
+
<div class="vd-empty-footer" :class="footerClasses" v-if="$slots.btn">
|
|
6
|
+
<slot name="btn"></slot>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { themeMixin } from '@p/components/mixins/themeMixin';
|
|
13
|
+
|
|
14
|
+
const prefixCls = 'vd-empty';
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
name: 'vd-empty',
|
|
18
|
+
mixins: [themeMixin], // 引入混入
|
|
19
|
+
props: {
|
|
20
|
+
imgs: String,
|
|
21
|
+
description: String,
|
|
22
|
+
size: String,
|
|
23
|
+
type: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'nodata', // 默认类型
|
|
26
|
+
validator(value) {
|
|
27
|
+
// 只接受以下类型值
|
|
28
|
+
return ['nodata', 'network', 'not-found'].includes(value);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
defaultImgs: {
|
|
35
|
+
nodata: {
|
|
36
|
+
light: require('./nodata.png'),
|
|
37
|
+
dark: require('./nodata-dark.png')
|
|
38
|
+
},
|
|
39
|
+
network: {
|
|
40
|
+
light: require('./network.png'),
|
|
41
|
+
dark: require('./network-dark.png')
|
|
42
|
+
},
|
|
43
|
+
'not-found': {
|
|
44
|
+
light: require('./404.png'),
|
|
45
|
+
dark: require('./404-dark.png')
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
computed: {
|
|
51
|
+
currentImg() {
|
|
52
|
+
if (this.imgs) return this.imgs;
|
|
53
|
+
return this.defaultImgs[this.type][this.theme];
|
|
54
|
+
},
|
|
55
|
+
wrapClasses() {
|
|
56
|
+
return [
|
|
57
|
+
{
|
|
58
|
+
[`${prefixCls}-${this.size}`]: this.size
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
textClasses() {
|
|
63
|
+
return [
|
|
64
|
+
{
|
|
65
|
+
[`${prefixCls}-${this.size}-txt`]: this.size
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
footerClasses() {
|
|
70
|
+
return [
|
|
71
|
+
{
|
|
72
|
+
[`${prefixCls}-${this.size}-footer`]: this.size
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
preloadImages() {
|
|
79
|
+
Object.values(this.defaultImgs).forEach((modes) => {
|
|
80
|
+
Object.values(modes).forEach((src) => {
|
|
81
|
+
const img = new Image();
|
|
82
|
+
img.src = src;
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
mounted() {
|
|
88
|
+
this.preloadImages();
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang="less">
|
|
94
|
+
@import './style.less';
|
|
95
|
+
</style>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@empty-prefix-cls: vd-empty;
|
|
2
|
+
|
|
3
|
+
.@{empty-prefix-cls}{
|
|
4
|
+
height: 100%;
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
text-align: center;
|
|
7
|
+
padding: 0 20px;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
|
|
12
|
+
&-img{
|
|
13
|
+
width: 164px;
|
|
14
|
+
height: 118px;
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
&-txt{
|
|
20
|
+
margin-block-start: calc(var(--spacing-empty-large-text-margin_top) * 1px);
|
|
21
|
+
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
22
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
23
|
+
color:var(--color-empty-text);
|
|
24
|
+
}
|
|
25
|
+
&-footer{
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
margin-block-start: calc(var(--spacing-empty-large-text-margin_bottom) * 1px);
|
|
29
|
+
}
|
|
30
|
+
&-small
|
|
31
|
+
{
|
|
32
|
+
&-txt{
|
|
33
|
+
margin-block-start: calc(var(--spacing-empty-small-text-margin_top) * 1px);
|
|
34
|
+
}
|
|
35
|
+
&-footer{
|
|
36
|
+
margin-block-start: calc(var(--spacing-empty-small-text-margin_bottom) * 1px);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-card{
|
|
41
|
+
height: calc(var(--height-empty-card) * 1px);
|
|
42
|
+
|
|
43
|
+
.@{empty-prefix-cls}{
|
|
44
|
+
&-img{
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-footer{
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-txt{
|
|
54
|
+
margin-block-start: 0;
|
|
55
|
+
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
56
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-footer">
|
|
3
|
+
<div class="vd-footer__link" v-if="$slots.default">
|
|
4
|
+
<slot>
|
|
5
|
+
</slot>
|
|
6
|
+
</div>
|
|
7
|
+
<p class="vd-footer__text" v-html="text"></p>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
export default {
|
|
13
|
+
name: 'vd-footer',
|
|
14
|
+
props: {
|
|
15
|
+
text: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ''
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<style lang="less">
|
|
28
|
+
@import './style.less';
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@footer-prefix-cls: vd-footer;
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
.@{footer-prefix-cls}{
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: calc(var(--spacing-footer-padding_top) * 1px) 0 calc(var(--spacing-footer-padding_bottom) * 1px);
|
|
10
|
+
|
|
11
|
+
&__link{
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
margin-block-end: calc(var(--spacing-footer-link-margin_bottom) * 1px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__text{
|
|
18
|
+
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
19
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
20
|
+
color: var(--text-color-h2);
|
|
21
|
+
}
|
|
22
|
+
}
|