vdesign-ui 0.1.20 → 0.1.21

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.
Files changed (183) hide show
  1. package/package.json +1 -1
  2. package/dist/components/actionbar/actionbar-cell/index.vue +0 -34
  3. package/dist/components/actionbar/index.js +0 -8
  4. package/dist/components/actionbar/index.vue +0 -39
  5. package/dist/components/actionbar/style.less +0 -48
  6. package/dist/components/actions-cell/actions/index.js +0 -7
  7. package/dist/components/actions-cell/actions/index.vue +0 -76
  8. package/dist/components/actions-cell/actions/style.less +0 -112
  9. package/dist/components/actions-cell/index.js +0 -7
  10. package/dist/components/actions-cell/index.vue +0 -94
  11. package/dist/components/actions-cell/style.less +0 -39
  12. package/dist/components/activityviews/index.js +0 -8
  13. package/dist/components/activityviews/index.vue +0 -140
  14. package/dist/components/activityviews/style.less +0 -138
  15. package/dist/components/badge/index.js +0 -8
  16. package/dist/components/badge/index.vue +0 -49
  17. package/dist/components/badge/style.less +0 -66
  18. package/dist/components/button/index.js +0 -8
  19. package/dist/components/button/index.vue +0 -89
  20. package/dist/components/button/style.less +0 -563
  21. package/dist/components/calendar/end.png +0 -0
  22. package/dist/components/calendar/index-element.vue +0 -84
  23. package/dist/components/calendar/index.js +0 -8
  24. package/dist/components/calendar/index.vue +0 -52
  25. package/dist/components/calendar/start.png +0 -0
  26. package/dist/components/calendar/style.less +0 -167
  27. package/dist/components/checkbox/assist.js +0 -34
  28. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  29. package/dist/components/checkbox/checkbox-group/index.vue +0 -69
  30. package/dist/components/checkbox/index.js +0 -8
  31. package/dist/components/checkbox/index.vue +0 -184
  32. package/dist/components/checkbox/style.less +0 -291
  33. package/dist/components/common/state/index.vue +0 -80
  34. package/dist/components/data-list/index.js +0 -10
  35. package/dist/components/data-list/index.vue +0 -19
  36. package/dist/components/data-list/style.less +0 -624
  37. package/dist/components/datetime-picker/index.js +0 -8
  38. package/dist/components/datetime-picker/index.vue +0 -37
  39. package/dist/components/datetime-picker/style.less +0 -24
  40. package/dist/components/dialog/index.js +0 -8
  41. package/dist/components/dialog/index.vue +0 -162
  42. package/dist/components/dialog/overlay-manager.js +0 -18
  43. package/dist/components/dialog/style.less +0 -132
  44. package/dist/components/divider/index.js +0 -8
  45. package/dist/components/divider/index.vue +0 -54
  46. package/dist/components/divider/style.less +0 -92
  47. package/dist/components/dropdown/index.js +0 -8
  48. package/dist/components/dropdown/index.vue +0 -210
  49. package/dist/components/dropdown/style.less +0 -418
  50. package/dist/components/empty/404-dark.png +0 -0
  51. package/dist/components/empty/404.png +0 -0
  52. package/dist/components/empty/index.js +0 -8
  53. package/dist/components/empty/index.vue +0 -95
  54. package/dist/components/empty/network-dark.png +0 -0
  55. package/dist/components/empty/network.png +0 -0
  56. package/dist/components/empty/nodata-dark.png +0 -0
  57. package/dist/components/empty/nodata.png +0 -0
  58. package/dist/components/empty/style.less +0 -60
  59. package/dist/components/footer/index.js +0 -7
  60. package/dist/components/footer/index.vue +0 -29
  61. package/dist/components/footer/style.less +0 -22
  62. package/dist/components/footnav/footnav-item/index.js +0 -7
  63. package/dist/components/footnav/footnav-item/index.vue +0 -75
  64. package/dist/components/footnav/footnav-item/style.less +0 -39
  65. package/dist/components/footnav/index.js +0 -7
  66. package/dist/components/footnav/index.vue +0 -97
  67. package/dist/components/footnav/style.less +0 -23
  68. package/dist/components/form/index.js +0 -7
  69. package/dist/components/form/index.vue +0 -12
  70. package/dist/components/headnav/index.js +0 -7
  71. package/dist/components/headnav/index.vue +0 -163
  72. package/dist/components/headnav/style.less +0 -245
  73. package/dist/components/icon/font/iconfont.css +0 -1050
  74. package/dist/components/icon/font/iconfont.js +0 -2
  75. package/dist/components/icon/index.js +0 -9
  76. package/dist/components/icon/index.vue +0 -46
  77. package/dist/components/icon/style.less +0 -44
  78. package/dist/components/input/calcTextareaHeight.js +0 -266
  79. package/dist/components/input/index.js +0 -8
  80. package/dist/components/input/index.vue +0 -343
  81. package/dist/components/input/password/index.js +0 -8
  82. package/dist/components/input/password/index.vue +0 -60
  83. package/dist/components/input/search/index.js +0 -8
  84. package/dist/components/input/search/index.vue +0 -66
  85. package/dist/components/input/stepper/index.js +0 -8
  86. package/dist/components/input/stepper/index.vue +0 -136
  87. package/dist/components/input/style.less +0 -497
  88. package/dist/components/list/index.js +0 -8
  89. package/dist/components/list/index.vue +0 -159
  90. package/dist/components/list/style.less +0 -292
  91. package/dist/components/loading/index.js +0 -7
  92. package/dist/components/loading/index.vue +0 -53
  93. package/dist/components/loading/loading.png +0 -0
  94. package/dist/components/loading/refresh.png +0 -0
  95. package/dist/components/loading/style.less +0 -48
  96. package/dist/components/mixins/clickoutside.js +0 -81
  97. package/dist/components/mixins/dom.js +0 -41
  98. package/dist/components/mixins/languageMixin.js +0 -38
  99. package/dist/components/mixins/outlineConfigPlugin.js +0 -40
  100. package/dist/components/mixins/router-link.js +0 -23
  101. package/dist/components/mixins/themeMixin.js +0 -29
  102. package/dist/components/noticebar/index.js +0 -8
  103. package/dist/components/noticebar/index.vue +0 -247
  104. package/dist/components/noticebar/style.less +0 -332
  105. package/dist/components/overlay/index.js +0 -8
  106. package/dist/components/overlay/index.vue +0 -161
  107. package/dist/components/overlay/style.less +0 -23
  108. package/dist/components/pagebreak/index.js +0 -7
  109. package/dist/components/pagebreak/index.vue +0 -60
  110. package/dist/components/pagebreak/style.less +0 -43
  111. package/dist/components/popover/index.js +0 -8
  112. package/dist/components/popover/index.vue +0 -99
  113. package/dist/components/popover/style.less +0 -346
  114. package/dist/components/popover/vue-popover.vue +0 -314
  115. package/dist/components/radio/assist.js +0 -34
  116. package/dist/components/radio/index.js +0 -8
  117. package/dist/components/radio/index.vue +0 -159
  118. package/dist/components/radio/radio-group/index.vue +0 -70
  119. package/dist/components/radio/style.less +0 -297
  120. package/dist/components/result/completed-dark.png +0 -0
  121. package/dist/components/result/completed.png +0 -0
  122. package/dist/components/result/error-dark.png +0 -0
  123. package/dist/components/result/error.png +0 -0
  124. package/dist/components/result/index.js +0 -8
  125. package/dist/components/result/index.vue +0 -75
  126. package/dist/components/result/style.less +0 -42
  127. package/dist/components/result/wait-dark.png +0 -0
  128. package/dist/components/result/wait.png +0 -0
  129. package/dist/components/selector/index.js +0 -8
  130. package/dist/components/selector/index.vue +0 -124
  131. package/dist/components/selector/style.less +0 -474
  132. package/dist/components/skeleton/index.js +0 -7
  133. package/dist/components/skeleton/index.vue +0 -142
  134. package/dist/components/skeleton/style.less +0 -192
  135. package/dist/components/slider/draggable.js +0 -49
  136. package/dist/components/slider/index.js +0 -7
  137. package/dist/components/slider/index.vue +0 -173
  138. package/dist/components/slider/style.less +0 -96
  139. package/dist/components/slider/utils.js +0 -60
  140. package/dist/components/step/index.js +0 -7
  141. package/dist/components/step/index.vue +0 -48
  142. package/dist/components/step/style.less +0 -59
  143. package/dist/components/step-item/index.js +0 -7
  144. package/dist/components/step-item/index.vue +0 -117
  145. package/dist/components/step-item/style.less +0 -361
  146. package/dist/components/style/index.vue +0 -42
  147. package/dist/components/switch/index.js +0 -8
  148. package/dist/components/switch/index.vue +0 -72
  149. package/dist/components/switch/style.less +0 -56
  150. package/dist/components/tabs/index.js +0 -8
  151. package/dist/components/tabs/index.vue +0 -145
  152. package/dist/components/tabs/style.less +0 -385
  153. package/dist/components/tabs/tab/index.vue +0 -56
  154. package/dist/components/tag/index.js +0 -7
  155. package/dist/components/tag/index.vue +0 -50
  156. package/dist/components/tag/style.less +0 -211
  157. package/dist/components/title/index.js +0 -8
  158. package/dist/components/title/index.vue +0 -92
  159. package/dist/components/title/style.less +0 -188
  160. package/dist/components/toast/index.js +0 -80
  161. package/dist/components/toast/index.vue +0 -44
  162. package/dist/components/toast/style.less +0 -55
  163. package/dist/components/transition/index.js +0 -8
  164. package/dist/components/transition/index.vue +0 -13
  165. package/dist/components/transition/style.less +0 -208
  166. package/dist/components/upload/index.js +0 -7
  167. package/dist/components/upload/index.vue +0 -224
  168. package/dist/components/upload/style.less +0 -156
  169. package/dist/demo.html +0 -10
  170. package/dist/img/404-dark.775df5bb.png +0 -0
  171. package/dist/img/completed-dark.4183a8a8.png +0 -0
  172. package/dist/img/error-dark.b80857da.png +0 -0
  173. package/dist/img/network-dark.11a147bb.png +0 -0
  174. package/dist/img/nodata-dark.b0ea0e39.png +0 -0
  175. package/dist/img/wait-dark.6aa28731.png +0 -0
  176. package/dist/locale/ar.js +0 -98
  177. package/dist/locale/en.js +0 -98
  178. package/dist/locale/zh.js +0 -98
  179. package/dist/token.css +0 -2982
  180. package/dist/vdesign-ui.common.js +0 -27204
  181. package/dist/vdesign-ui.css +0 -1
  182. package/dist/vdesign-ui.umd.js +0 -27214
  183. package/dist/vdesign-ui.umd.min.js +0 -32
@@ -1,418 +0,0 @@
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
@@ -1,8 +0,0 @@
1
- import Empty from './index.vue';
2
- import './style.less';
3
-
4
- Empty.install = function (Vue) {
5
- Vue.component(Empty.name, Empty);
6
- };
7
-
8
- export default Empty;
@@ -1,95 +0,0 @@
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
@@ -1,60 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- import Footer from './index.vue';
2
- import './style.less';
3
- Footer.install = function(Vue) {
4
- Vue.component(Footer.name, Footer)
5
- }
6
-
7
- export default Footer;
@@ -1,29 +0,0 @@
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>
@@ -1,22 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- import FootNavItem from './index.vue';
2
- import './style.less';
3
- FootNavItem.install = function(Vue) {
4
- Vue.component(FootNavItem.name, FootNavItem)
5
- }
6
-
7
- export default FootNavItem;