vdesign-ui 0.1.19 → 0.1.20

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 (193) hide show
  1. package/dist/components/actionbar/actionbar-cell/index.vue +34 -0
  2. package/dist/components/actionbar/index.js +8 -0
  3. package/dist/components/actionbar/index.vue +39 -0
  4. package/dist/components/actionbar/style.less +48 -0
  5. package/dist/components/actions-cell/actions/index.js +7 -0
  6. package/dist/components/actions-cell/actions/index.vue +76 -0
  7. package/dist/components/actions-cell/actions/style.less +112 -0
  8. package/dist/components/actions-cell/index.js +7 -0
  9. package/dist/components/actions-cell/index.vue +94 -0
  10. package/dist/components/actions-cell/style.less +39 -0
  11. package/dist/components/activityviews/index.js +8 -0
  12. package/dist/components/activityviews/index.vue +140 -0
  13. package/dist/components/activityviews/style.less +138 -0
  14. package/dist/components/badge/index.js +8 -0
  15. package/dist/components/badge/index.vue +49 -0
  16. package/dist/components/badge/style.less +66 -0
  17. package/dist/components/button/index.js +8 -0
  18. package/dist/components/button/index.vue +89 -0
  19. package/dist/components/button/style.less +563 -0
  20. package/dist/components/calendar/end.png +0 -0
  21. package/dist/components/calendar/index-element.vue +84 -0
  22. package/dist/components/calendar/index.js +8 -0
  23. package/dist/components/calendar/index.vue +52 -0
  24. package/dist/components/calendar/start.png +0 -0
  25. package/dist/components/calendar/style.less +167 -0
  26. package/dist/components/checkbox/assist.js +34 -0
  27. package/dist/components/checkbox/checkbox-group/index.js +8 -0
  28. package/dist/components/checkbox/checkbox-group/index.vue +69 -0
  29. package/dist/components/checkbox/index.js +8 -0
  30. package/dist/components/checkbox/index.vue +184 -0
  31. package/dist/components/checkbox/style.less +291 -0
  32. package/dist/components/common/state/index.vue +80 -0
  33. package/dist/components/data-list/index.js +10 -0
  34. package/dist/components/data-list/index.vue +19 -0
  35. package/dist/components/data-list/style.less +624 -0
  36. package/dist/components/datetime-picker/index.js +8 -0
  37. package/dist/components/datetime-picker/index.vue +37 -0
  38. package/dist/components/datetime-picker/style.less +24 -0
  39. package/dist/components/dialog/index.js +8 -0
  40. package/dist/components/dialog/index.vue +162 -0
  41. package/dist/components/dialog/overlay-manager.js +18 -0
  42. package/dist/components/dialog/style.less +132 -0
  43. package/dist/components/divider/index.js +8 -0
  44. package/dist/components/divider/index.vue +54 -0
  45. package/dist/components/divider/style.less +92 -0
  46. package/dist/components/dropdown/index.js +8 -0
  47. package/dist/components/dropdown/index.vue +210 -0
  48. package/dist/components/dropdown/style.less +418 -0
  49. package/dist/components/empty/404-dark.png +0 -0
  50. package/dist/components/empty/404.png +0 -0
  51. package/dist/components/empty/index.js +8 -0
  52. package/dist/components/empty/index.vue +95 -0
  53. package/dist/components/empty/network-dark.png +0 -0
  54. package/dist/components/empty/network.png +0 -0
  55. package/dist/components/empty/nodata-dark.png +0 -0
  56. package/dist/components/empty/nodata.png +0 -0
  57. package/dist/components/empty/style.less +60 -0
  58. package/dist/components/footer/index.js +7 -0
  59. package/dist/components/footer/index.vue +29 -0
  60. package/dist/components/footer/style.less +22 -0
  61. package/dist/components/footnav/footnav-item/index.js +7 -0
  62. package/dist/components/footnav/footnav-item/index.vue +75 -0
  63. package/dist/components/footnav/footnav-item/style.less +39 -0
  64. package/dist/components/footnav/index.js +7 -0
  65. package/dist/components/footnav/index.vue +97 -0
  66. package/dist/components/footnav/style.less +23 -0
  67. package/dist/components/form/index.js +7 -0
  68. package/dist/components/form/index.vue +12 -0
  69. package/dist/components/headnav/index.js +7 -0
  70. package/dist/components/headnav/index.vue +163 -0
  71. package/dist/components/headnav/style.less +245 -0
  72. package/dist/components/icon/font/iconfont.css +1050 -0
  73. package/dist/components/icon/font/iconfont.js +2 -0
  74. package/dist/components/icon/index.js +9 -0
  75. package/dist/components/icon/index.vue +46 -0
  76. package/dist/components/icon/style.less +44 -0
  77. package/dist/components/input/calcTextareaHeight.js +266 -0
  78. package/dist/components/input/index.js +8 -0
  79. package/dist/components/input/index.vue +343 -0
  80. package/dist/components/input/password/index.js +8 -0
  81. package/dist/components/input/password/index.vue +60 -0
  82. package/dist/components/input/search/index.js +8 -0
  83. package/dist/components/input/search/index.vue +66 -0
  84. package/dist/components/input/stepper/index.js +8 -0
  85. package/dist/components/input/stepper/index.vue +136 -0
  86. package/dist/components/input/style.less +497 -0
  87. package/dist/components/list/index.js +8 -0
  88. package/dist/components/list/index.vue +159 -0
  89. package/dist/components/list/style.less +292 -0
  90. package/dist/components/loading/index.js +7 -0
  91. package/dist/components/loading/index.vue +53 -0
  92. package/dist/components/loading/loading.png +0 -0
  93. package/dist/components/loading/refresh.png +0 -0
  94. package/dist/components/loading/style.less +48 -0
  95. package/dist/components/mixins/clickoutside.js +81 -0
  96. package/dist/components/mixins/dom.js +41 -0
  97. package/dist/components/mixins/languageMixin.js +38 -0
  98. package/dist/components/mixins/outlineConfigPlugin.js +40 -0
  99. package/dist/components/mixins/router-link.js +23 -0
  100. package/dist/components/mixins/themeMixin.js +29 -0
  101. package/dist/components/noticebar/index.js +8 -0
  102. package/dist/components/noticebar/index.vue +247 -0
  103. package/dist/components/noticebar/style.less +332 -0
  104. package/dist/components/overlay/index.js +8 -0
  105. package/dist/components/overlay/index.vue +161 -0
  106. package/dist/components/overlay/style.less +23 -0
  107. package/dist/components/pagebreak/index.js +7 -0
  108. package/dist/components/pagebreak/index.vue +60 -0
  109. package/dist/components/pagebreak/style.less +43 -0
  110. package/dist/components/popover/index.js +8 -0
  111. package/dist/components/popover/index.vue +99 -0
  112. package/dist/components/popover/style.less +346 -0
  113. package/dist/components/popover/vue-popover.vue +314 -0
  114. package/dist/components/radio/assist.js +34 -0
  115. package/dist/components/radio/index.js +8 -0
  116. package/dist/components/radio/index.vue +159 -0
  117. package/dist/components/radio/radio-group/index.vue +70 -0
  118. package/dist/components/radio/style.less +297 -0
  119. package/dist/components/result/completed-dark.png +0 -0
  120. package/dist/components/result/completed.png +0 -0
  121. package/dist/components/result/error-dark.png +0 -0
  122. package/dist/components/result/error.png +0 -0
  123. package/dist/components/result/index.js +8 -0
  124. package/dist/components/result/index.vue +75 -0
  125. package/dist/components/result/style.less +42 -0
  126. package/dist/components/result/wait-dark.png +0 -0
  127. package/dist/components/result/wait.png +0 -0
  128. package/dist/components/selector/index.js +8 -0
  129. package/dist/components/selector/index.vue +124 -0
  130. package/dist/components/selector/style.less +474 -0
  131. package/dist/components/skeleton/index.js +7 -0
  132. package/dist/components/skeleton/index.vue +142 -0
  133. package/dist/components/skeleton/style.less +192 -0
  134. package/dist/components/slider/draggable.js +49 -0
  135. package/dist/components/slider/index.js +7 -0
  136. package/dist/components/slider/index.vue +173 -0
  137. package/dist/components/slider/style.less +96 -0
  138. package/dist/components/slider/utils.js +60 -0
  139. package/dist/components/step/index.js +7 -0
  140. package/dist/components/step/index.vue +48 -0
  141. package/dist/components/step/style.less +59 -0
  142. package/dist/components/step-item/index.js +7 -0
  143. package/dist/components/step-item/index.vue +117 -0
  144. package/dist/components/step-item/style.less +361 -0
  145. package/dist/components/style/index.vue +42 -0
  146. package/dist/components/switch/index.js +8 -0
  147. package/dist/components/switch/index.vue +72 -0
  148. package/dist/components/switch/style.less +56 -0
  149. package/dist/components/tabs/index.js +8 -0
  150. package/dist/components/tabs/index.vue +145 -0
  151. package/dist/components/tabs/style.less +385 -0
  152. package/dist/components/tabs/tab/index.vue +56 -0
  153. package/dist/components/tag/index.js +7 -0
  154. package/dist/components/tag/index.vue +50 -0
  155. package/dist/components/tag/style.less +211 -0
  156. package/dist/components/title/index.js +8 -0
  157. package/dist/components/title/index.vue +92 -0
  158. package/dist/components/title/style.less +188 -0
  159. package/dist/components/toast/index.js +80 -0
  160. package/dist/components/toast/index.vue +44 -0
  161. package/dist/components/toast/style.less +55 -0
  162. package/dist/components/transition/index.js +8 -0
  163. package/dist/components/transition/index.vue +13 -0
  164. package/dist/components/transition/style.less +208 -0
  165. package/dist/components/upload/index.js +7 -0
  166. package/dist/components/upload/index.vue +224 -0
  167. package/dist/components/upload/style.less +156 -0
  168. package/dist/demo.html +10 -0
  169. package/dist/locale/ar.js +98 -0
  170. package/dist/locale/en.js +98 -0
  171. package/dist/locale/zh.js +98 -0
  172. package/dist/token.css +2982 -0
  173. package/dist/vdesign-ui.common.js +27204 -0
  174. package/dist/vdesign-ui.css +1 -0
  175. package/dist/vdesign-ui.umd.js +27214 -0
  176. package/dist/vdesign-ui.umd.min.js +32 -0
  177. package/package.json +1 -1
  178. package/dist/css/chunk-1952c402.04c2303e.css +0 -1
  179. package/dist/css/chunk-6a5c6104.38021b56.css +0 -1
  180. package/dist/css/chunk-vendors.4ecfba63.css +0 -1
  181. package/dist/css/sites.395ce21f.css +0 -1
  182. package/dist/img/bg_mobile.5909f667.png +0 -0
  183. package/dist/img/icon.a67073c3.svg +0 -7
  184. package/dist/img/iphoneX.38c8778e.png +0 -0
  185. package/dist/img/logo-white.fad4f907.png +0 -0
  186. package/dist/img/logo.1eda11d6.png +0 -0
  187. package/dist/img/qrcode2.0a9d9044.png +0 -0
  188. package/dist/index.html +0 -1
  189. package/dist/js/chunk-1952c402.c58ecfb5.js +0 -1
  190. package/dist/js/chunk-2d2183be.2a64419d.js +0 -1
  191. package/dist/js/chunk-6a5c6104.c8fa5635.js +0 -1
  192. package/dist/js/chunk-vendors.490b7673.js +0 -37
  193. package/dist/js/sites.5a217467.js +0 -1
@@ -0,0 +1,624 @@
1
+ @prefix: ~"vd-datalist";
2
+
3
+ .vd-datalist {
4
+ display: flex;
5
+ flex-direction: column;
6
+ flex-wrap: nowrap;
7
+ margin-block-end: 4px;
8
+ }
9
+
10
+ /*
11
+ * ===== head
12
+ */
13
+ .vd-datalist-head-items {
14
+ display: flex;
15
+ flex-direction: row;
16
+ flex-wrap: nowrap;
17
+ min-width: fit-content;
18
+ background-color: var(--bg-color-1);
19
+ padding-inline-end: calc(var(--spacing-datalist-padding_y) * 1px);
20
+ padding-inline-start: calc(var(--spacing-datalist-padding_y) * 1px);
21
+ min-height: calc(var(--height-datalist-head) * 1px);
22
+ color: var(--color-datalist-head-text-default);
23
+ font-weight: var(--en-single-f-c-r-fontWeight);
24
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
25
+ }
26
+
27
+ .vd-datalist-head-item {
28
+ display: flex;
29
+ flex-direction: row;
30
+ flex-wrap: nowrap;
31
+ align-items: center;
32
+ width: calc(var(--width-datalist-head_s) * 1px);
33
+ // 默认右对齐
34
+ justify-content: flex-end;
35
+ text-align: end;
36
+ padding-block: 3.5px;
37
+
38
+ &:not(:last-child) {
39
+ margin-inline-end: calc(var(--spacing-datalist-head_item-margin_y_m) * 1px);
40
+ }
41
+
42
+ &__text {
43
+ word-break: break-all;
44
+ // text-align 会影响 text-overflow
45
+ display: -webkit-box;
46
+ overflow: hidden;
47
+ text-overflow: ellipsis;
48
+ -webkit-line-clamp: 2;
49
+ -webkit-box-orient: vertical;
50
+ }
51
+
52
+ &__sort {
53
+ position: relative;
54
+ font-size: calc(var(--icon-datalist-sort) * 1px);
55
+ min-width: 0;
56
+ flex: none;
57
+ }
58
+
59
+ &--ascending {
60
+ // .vd-datalist-head-item__sort {
61
+ // // --un-icon: url(./icon_btn_sortup.svg);
62
+ // // icon_btn_sortup
63
+ // }
64
+ }
65
+
66
+ &--descending {
67
+ // .vd-datalist-head-item__sort {
68
+ // // --un-icon: url(./icon_btn_sortdown.svg);
69
+ // // icon_btn_sortdown
70
+ // }
71
+ }
72
+
73
+ &--active {
74
+
75
+ &.vd-datalist-head-item--ascending {
76
+ color: var(--color-datalist-head-text-active);
77
+
78
+ // .vd-datalist-head-item__sort {
79
+ // // --un-icon: url(./icon_btn_sortup_slt.svg);
80
+ // // icon_btn_sortup_slt
81
+ // }
82
+ }
83
+
84
+ &.vd-datalist-head-item--descending {
85
+ color: var(--color-datalist-head-text-active);
86
+
87
+ // .vd-datalist-head-item__sort {
88
+ // // --un-icon: url(./icon_btn_sortdown_slt.svg);
89
+ // // icon_btn_sortdown_slt
90
+ // }
91
+ }
92
+ }
93
+ }
94
+
95
+ // fixed 默认定宽
96
+ .vd-datalist-head-item.vd-datalist-head-item--first {
97
+ width: auto;
98
+ flex: 1;
99
+ min-width: 0;
100
+ margin-inline-end: calc(var(--spacing-datalist-head_item-margin_y_s) * 1px);
101
+ // 首列默认左对齐
102
+ justify-content: flex-start;
103
+ text-align: start;
104
+ }
105
+
106
+ // autofix 自适应宽
107
+ .vd-datalist--autofit {
108
+ position: relative;
109
+ scrollbar-width: none;
110
+ -ms-overflow-style: none;
111
+ overflow-x: auto;
112
+ overflow-y: hidden;
113
+
114
+ &::-webkit-scrollbar {
115
+ display: none;
116
+ }
117
+
118
+ .vd-datalist-head-items {
119
+ padding-inline-start: 0;
120
+ }
121
+
122
+ .vd-datalist-head-item--first {
123
+ position: sticky;
124
+ inset-inline-start: 0; //calc(var(--spacing-datalist-padding_y) * 1px);
125
+ flex: none;
126
+ width: calc((var(--width-datalist-head_l) + var(--spacing-datalist-padding_y)) * 1px);
127
+ padding-inline-start: calc(var(--spacing-datalist-padding_y) * 1px);
128
+ background: var(--bg-color-1);
129
+ z-index: 2;
130
+
131
+ &.vd-datalist-head-item--s {
132
+ width: calc((var(--width-datalist-head_s) + var(--spacing-datalist-padding_y)) * 1px);
133
+ }
134
+
135
+ &.vd-datalist-head-item--m {
136
+ width: calc((var(--width-datalist-head_m) + var(--spacing-datalist-padding_y)) * 1px);
137
+ }
138
+
139
+ &.vd-datalist-head-item--l {
140
+ width: calc((var(--width-datalist-head_l) + var(--spacing-datalist-padding_y)) * 1px);
141
+ }
142
+
143
+ &.vd-datalist-head-item--xl {
144
+ width: calc((var(--width-datalist-head_xl) + var(--spacing-datalist-padding_y)) * 1px);
145
+ }
146
+ }
147
+ }
148
+
149
+ // 排序
150
+ .vd-datalist-head--sort {
151
+ &.vd-datalist-head-items {
152
+ padding-inline-end: calc(var(--spacing-datalist-head-padding_right) * 1px);
153
+ }
154
+
155
+ .vd-datalist-head-item--first {
156
+ margin-inline-end: calc(var(--spacing-datalist-head_item-margin_y_m) * 1px);
157
+ }
158
+
159
+ .vd-datalist-head-item__sort {
160
+ display: flex;
161
+ }
162
+ }
163
+
164
+ // align && size
165
+ .vd-datalist-head-item {
166
+ &.vd-datalist-head-item--s {
167
+ flex: none;
168
+ min-width: 0;
169
+ width: calc(var(--width-datalist-head_s) * 1px);
170
+ }
171
+
172
+ &.vd-datalist-head-item--m {
173
+ flex: none;
174
+ min-width: 0;
175
+ width: calc(var(--width-datalist-head_m) * 1px);
176
+ }
177
+
178
+ &.vd-datalist-head-item--l {
179
+ flex: none;
180
+ min-width: 0;
181
+ width: calc(var(--width-datalist-head_l) * 1px);
182
+ }
183
+
184
+ &.vd-datalist-head-item--xl {
185
+ flex: none;
186
+ min-width: 0;
187
+ width: calc(var(--width-datalist-head_xl) * 1px);
188
+ }
189
+
190
+ &.vd-datalist-head-item--start {
191
+ justify-content: flex-start;
192
+ text-align: start;
193
+ }
194
+
195
+ &.vd-datalist-head-item--center {
196
+ justify-content: center;
197
+ text-align: center;
198
+ }
199
+
200
+ &.vd-datalist-head-item--end {
201
+ justify-content: flex-end;
202
+ text-align: end;
203
+ }
204
+ }
205
+
206
+ /*
207
+ * ===== list
208
+ */
209
+
210
+ .vd-datalist-list-items {
211
+ position: relative;
212
+ // width: 100%;
213
+ display: flex;
214
+ flex-direction: row;
215
+ flex-wrap: nowrap;
216
+ min-width: fit-content;
217
+ background-color: var(--bg-color-1);
218
+ padding-inline-end: calc(var(--spacing-datalist-padding_y) * 1px);
219
+ padding-inline-start: calc(var(--spacing-datalist-padding_y) * 1px);
220
+ min-height: calc(var(--height-datalist-list) * 1px);
221
+ color: var(--text-color-h1);
222
+ font-weight: var(--en-single-f-c-r-fontWeight);
223
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
224
+
225
+ &+& {
226
+ &::before {
227
+ content: "";
228
+ pointer-events: none;
229
+ display: block;
230
+ position: absolute;
231
+ inset-inline-start: calc(-50% + var(--spacing-datalist-padding_y) * 2px);
232
+ inset-inline-end: calc(-50% + var(--spacing-datalist-padding_y) * 2px);
233
+ inset-block-start: 0;
234
+ border-top: 1PX solid var(--divider-color-default-1);
235
+ box-sizing: border-box;
236
+ transform: scale(0.5);
237
+ z-index: 3;
238
+ }
239
+ }
240
+ }
241
+
242
+ .vd-datalist-list-item {
243
+ display: flex;
244
+ flex-direction: row;
245
+ flex-wrap: nowrap;
246
+ align-items: center;
247
+ flex: none;
248
+ width: calc(var(--width-datalist-list_s) * 1px);
249
+ // 默认右对齐
250
+ justify-content: flex-end;
251
+ text-align: end;
252
+
253
+ &:not(:last-child) {
254
+ margin-inline-end: calc(var(--spacing-datalist-list_item-margin_y) * 1px);
255
+ }
256
+
257
+ &__text {
258
+ // text-align 会影响 text-overflow
259
+ display: -webkit-box;
260
+ overflow: hidden;
261
+ text-overflow: ellipsis;
262
+ -webkit-line-clamp: 2;
263
+ -webkit-box-orient: vertical;
264
+ // normal
265
+ color: var(--color-datalist-list-text_primary);
266
+ font-weight: var(--en-single-f-d-r-fontWeight);
267
+ font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
268
+
269
+ &--auto {
270
+ display: block;
271
+ }
272
+
273
+ &--code {
274
+ display: block;
275
+ overflow: hidden;
276
+ text-overflow: ellipsis;
277
+ color: var(--color-datalist-list-text_secondary);
278
+ font-weight: var(--en-single-f-c-r-fontWeight);
279
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
280
+ }
281
+
282
+ &--rise {
283
+ color: var(--rise-color);
284
+ }
285
+
286
+ &--fall {
287
+ color: var(--fall-color);
288
+ }
289
+
290
+ &--secondary {
291
+ color: var(--color-datalist-list-text_secondary);
292
+ }
293
+
294
+ // 数据字号 single fcs
295
+ &--fcs {
296
+ font-weight: var(--en-single-f-c-s-fontWeight);
297
+ font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
298
+ }
299
+
300
+ // 超长文本 single fcr
301
+ &--fcr {
302
+ font-weight: var(--en-single-f-c-r-fontWeight);
303
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
304
+ }
305
+
306
+ // 纯数字 single fds
307
+ &--fds {
308
+ font-weight: var(--en-single-f-d-s-fontWeight);
309
+ font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
310
+ }
311
+ }
312
+
313
+ // fixed 默认定宽
314
+ &--first {
315
+ width: 0;
316
+ flex: 1;
317
+ min-width: 0;
318
+ margin-inline-end: calc(var(--spacing-datalist-list_item-margin_y) * 1px);
319
+ // 首列默认左对齐
320
+ justify-content: flex-start;
321
+ text-align: start;
322
+ }
323
+ }
324
+
325
+ // autofix 自适应宽
326
+ .vd-datalist--autofit {
327
+ position: relative;
328
+ scrollbar-width: none;
329
+ -ms-overflow-style: none;
330
+ overflow-x: auto;
331
+ overflow-y: hidden;
332
+
333
+ &::-webkit-scrollbar {
334
+ display: none;
335
+ }
336
+
337
+ .vd-datalist-list-items {
338
+ padding-inline-start: 0;
339
+ }
340
+
341
+ .vd-datalist-list-item--first {
342
+ position: sticky;
343
+ inset-inline-start: 0; //calc(var(--spacing-datalist-padding_y) * 1px);
344
+ flex: none;
345
+ width: calc((var(--width-datalist-list_l) + var(--spacing-datalist-padding_y)) * 1px);
346
+ padding-inline-start: calc(var(--spacing-datalist-padding_y) * 1px);
347
+ background: var(--bg-color-1);
348
+ z-index: 2;
349
+
350
+ &.vd-datalist-list-item--s {
351
+ width: calc((var(--width-datalist-list_s) + var(--spacing-datalist-padding_y)) * 1px);
352
+ }
353
+
354
+ &.vd-datalist-list-item--m {
355
+ width: calc((var(--width-datalist-list_m) + var(--spacing-datalist-padding_y)) * 1px);
356
+ }
357
+
358
+ &.vd-datalist-list-item--l {
359
+ width: calc((var(--width-datalist-list_l) + var(--spacing-datalist-padding_y)) * 1px);
360
+ }
361
+
362
+ &.vd-datalist-list-item--xl {
363
+ width: calc((var(--width-datalist-list_xl) + var(--spacing-datalist-padding_y)) * 1px);
364
+ }
365
+ }
366
+ }
367
+
368
+ // align && size
369
+ .vd-datalist-list-item {
370
+ &>.vd-iconfont+.vd-datalist-content {
371
+ margin-inline-start: calc(var(--spacing-datalist-list_icon-margin_right) * 1px);
372
+ }
373
+
374
+ &.vd-datalist-list-item--s {
375
+ flex: none;
376
+ min-width: 0;
377
+ width: calc(var(--width-datalist-list_s) * 1px);
378
+ }
379
+
380
+ &.vd-datalist-list-item--m {
381
+ flex: none;
382
+ min-width: 0;
383
+ width: calc(var(--width-datalist-list_m) * 1px);
384
+ }
385
+
386
+ &.vd-datalist-list-item--l {
387
+ flex: none;
388
+ min-width: 0;
389
+ width: calc(var(--width-datalist-list_l) * 1px);
390
+ }
391
+
392
+ &.vd-datalist-list-item--xl {
393
+ flex: none;
394
+ min-width: 0;
395
+ width: calc(var(--width-datalist-list_xl) * 1px);
396
+ }
397
+
398
+ &.vd-datalist-list-item--start {
399
+ justify-content: flex-start;
400
+ text-align: start;
401
+ }
402
+
403
+ &.vd-datalist-list-item--center {
404
+ justify-content: center;
405
+ text-align: center;
406
+ }
407
+
408
+ &.vd-datalist-list-item--end {
409
+ justify-content: flex-end;
410
+ text-align: end;
411
+ }
412
+ }
413
+
414
+ .vd-datalist-content {
415
+ flex: 1;
416
+ min-width: 0;
417
+ display: flex;
418
+ flex-direction: column;
419
+ flex-wrap: nowrap;
420
+ justify-content: center;
421
+ width: 100%;
422
+
423
+ &__desc {
424
+ display: flex;
425
+ flex-direction: row;
426
+ flex-wrap: nowrap;
427
+ align-items: center;
428
+ margin-block-start: calc(var(--spacing-datalist-list-margin_top) * 1px);
429
+
430
+ &--code {
431
+ overflow: hidden;
432
+ white-space: nowrap;
433
+ text-overflow: ellipsis;
434
+ color: var(--color-datalist-list-text_secondary);
435
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
436
+ font-weight: var(--en-single-f-c-r-fontWeight);
437
+ margin-inline-end: calc(var(--spacing-datalist-market_tag-margin_top) * 1px);
438
+ }
439
+ }
440
+
441
+ &__title {
442
+ font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
443
+ font-weight: var(--en-single-f-d-r-fontWeight);
444
+ overflow: hidden;
445
+ white-space: nowrap;
446
+ text-overflow: ellipsis;
447
+
448
+ &--code {
449
+ margin-inline-end: calc(var(--spacing-datalist-market_tag-margin_top) * 1px);
450
+ }
451
+ }
452
+ }
453
+
454
+ .vd-datalist-stock-tag {
455
+ flex: none;
456
+ // font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
457
+ // font-weight: var(--en-single-f-b-r-fontWeight);
458
+ margin-inline-end: calc(var(--spacing-datalist-market_tag-margin_top) * 1px);
459
+
460
+ // &--us {
461
+ // color: var(--color-datalist-market_us);
462
+ // }
463
+
464
+ // &--hk {
465
+ // color: var(--color-datalist-market_hk);
466
+ // }
467
+ }
468
+
469
+ .vd-datalist-market-tag {
470
+ flex: none;
471
+ font-size: calc(var(--icon-datalist-label_icon) * 1px);
472
+ margin-inline-end: calc(var(--spacing-datalist-market_tag-margin_top) * 1px);
473
+ display: inline-block;
474
+
475
+ &--watchlist {
476
+ color: var(--color-datalist-icon_watchlist);
477
+ }
478
+
479
+ &--delay {
480
+ color: var(--color-datalist-icon_delay);
481
+ }
482
+ }
483
+
484
+ /*
485
+ * ===== search
486
+ */
487
+ .vd-datalist-search {
488
+
489
+ &-item {
490
+ position: relative;
491
+ // width: 100%;
492
+ display: flex;
493
+ flex-direction: row;
494
+ flex-wrap: nowrap;
495
+ justify-content: space-between;
496
+ align-items: center;
497
+ min-width: fit-content;
498
+ background-color: var(--bg-color-1);
499
+ padding-inline-end: calc(var(--spacing-datalist-padding_y) * 1px);
500
+ padding-inline-start: calc(var(--spacing-datalist-padding_y) * 1px);
501
+ color: var(--text-color-h1);
502
+ font-weight: var(--en-single-f-c-r-fontWeight);
503
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
504
+ height: calc(var(--height-datalist-search_m) * 1px);
505
+
506
+ &+& {
507
+ &::before {
508
+ content: "";
509
+ pointer-events: none;
510
+ display: block;
511
+ position: absolute;
512
+ inset-inline-start: calc(-50% + var(--spacing-datalist-padding_y) * 2px);
513
+ inset-inline-end: calc(-50% + var(--spacing-datalist-padding_y) * 2px);
514
+ inset-block-start: 0;
515
+ border-top: 1PX solid var(--divider-color-default-1);
516
+ box-sizing: border-box;
517
+ transform: scale(0.5);
518
+ z-index: 3;
519
+ }
520
+ }
521
+ }
522
+
523
+ &-content {
524
+ flex: 1;
525
+ width: 0;
526
+ overflow: hidden;
527
+
528
+ &__stock {
529
+ color: var(--color-datalist-list-text_primary);
530
+ font-weight: var(--en-single-f-d-s-fontWeight);
531
+ font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
532
+ overflow: hidden;
533
+ white-space: nowrap;
534
+ text-overflow: ellipsis;
535
+ }
536
+
537
+ &__code {
538
+ display: flex;
539
+ color: var(--color-datalist-list-text_secondary);
540
+ font-weight: var(--en-single-f-c-r-fontWeight);
541
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
542
+ margin-block-start: calc(var(--spacing-datalist-search-margin_top) * 1px);
543
+
544
+ &--market {
545
+ margin-inline-start: calc(var(--spacing-datalist-search-margin_right) * 1px);
546
+ overflow: hidden;
547
+ white-space: nowrap;
548
+ text-overflow: ellipsis;
549
+ }
550
+ }
551
+ }
552
+
553
+
554
+ &--reverse {
555
+ height: calc(var(--height-datalist-search_s) * 1px);
556
+
557
+ .vd-datalist-search-content {
558
+ display: flex;
559
+ flex-direction: row-reverse;
560
+ align-items: flex-end;
561
+ }
562
+
563
+ .vd-datalist-search-content__code {
564
+ color: var(--color-datalist-list-text_primary);
565
+ font-weight: var(--en-single-f-d-s-fontWeight);
566
+ font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
567
+ width: calc(var(--width-datalist-list-code) * 1px);
568
+ }
569
+
570
+ .vd-datalist-search-content__stock {
571
+ flex: 1;
572
+ min-width: 0;
573
+ color: var(--color-datalist-list-text_primary);
574
+ font-weight: var(--en-single-f-d-r-fontWeight);
575
+ font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
576
+ margin-inline-start: calc(var(--spacing-datalist-search_code-margin_right) * 1px);
577
+ }
578
+ }
579
+
580
+ &-icon {
581
+ margin-inline-start: calc(var(--spacing-datalist-search_icon-margin_left) * 1px);
582
+ color: var(--color-datalist-list-text_secondary);
583
+ }
584
+
585
+ &-stock {
586
+ flex: none;
587
+ text-align: end;
588
+ margin-inline-start: calc(var(--spacing-datalist-search_stock-margin_right) * 1px);
589
+
590
+ &__price {
591
+ font-weight: var(--en-single-f-d-s-fontWeight);
592
+ font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
593
+ }
594
+
595
+ &__percentage {
596
+ font-weight: var(--en-single-f-c-r-fontWeight);
597
+ font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
598
+ margin-block-start: calc(var(--spacing-datalist-search-margin_top) * 1px);
599
+ }
600
+
601
+ &--rise {
602
+ color: var(--rise-color);
603
+ }
604
+
605
+ &--fall {
606
+ color: var(--fall-color);
607
+ }
608
+ }
609
+ }
610
+
611
+ [lang='ar'] {
612
+
613
+ .vd-datalist-head-item,
614
+ .vd-datalist-list-item {
615
+ justify-content: flex-start;
616
+ text-align: start;
617
+ }
618
+
619
+ .vd-datalist-head-item.vd-datalist-head-item--center,
620
+ .vd-datalist-list-item.vd-datalist-list-item--center {
621
+ justify-content: center;
622
+ text-align: center;
623
+ }
624
+ }
@@ -0,0 +1,8 @@
1
+ import HdDatetimePicker from './index.vue';
2
+ import './style.less';
3
+
4
+ HdDatetimePicker.install = function (Vue) {
5
+ Vue.component(HdDatetimePicker.name, HdDatetimePicker);
6
+ };
7
+
8
+ export default HdDatetimePicker;
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <van-datetime-picker v-if="!picker" class="vd-datetime-picker" v-on="$listeners" v-bind="$attrs" />
3
+ <van-picker v-else class="vd-datetime-picker" v-on="$listeners" v-bind="$attrs" />
4
+ </template>
5
+
6
+ <script>
7
+ // import Vue from 'vue'
8
+ import { DatetimePicker } from 'vant';
9
+ import { Picker } from 'vant';
10
+
11
+
12
+ // Vue.use(Picker);
13
+ // Vue.use(DatetimePicker)
14
+
15
+
16
+ export default {
17
+ name: 'vd-datetime-picker',
18
+ components: {
19
+ 'van-picker': Picker,
20
+ 'van-datetime-picker': DatetimePicker
21
+ },
22
+ props: {
23
+ picker: {
24
+ type: Boolean,
25
+ default: false,
26
+ }
27
+ },
28
+ data() {
29
+ return {
30
+ };
31
+ },
32
+ };
33
+ </script>
34
+
35
+ <style lang="less">
36
+ @import './style.less';
37
+ </style>
@@ -0,0 +1,24 @@
1
+
2
+ .vd-datetime-picker{
3
+
4
+ .van-picker__columns{
5
+ padding: 0 calc(var(--spacing-datepicker-padding_y) * 1px);
6
+ }
7
+
8
+ .van-picker-column__item{
9
+
10
+ height: calc(var(--height-datepicker-roll_bg) * 1px);
11
+ font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
12
+ font-weight: var(--en-single-f-d-s-fontWeight);
13
+ color: var(--color-datepicker-date-text-disable);
14
+ &--selected{
15
+ font-size: calc(var(--en-single-f-e-s-fontSize) * 1px);
16
+ font-weight: var(--en-single-f-e-s-fontWeight);
17
+ color: var(--color-datepicker-date-text-default);
18
+ }
19
+ }
20
+ .van-picker__frame{
21
+ background: var(--color-datepicker-date_mask-bg-active);
22
+ border-radius: calc(var(--radius-datepicker-roll_bg) * 1px);
23
+ }
24
+ }
@@ -0,0 +1,8 @@
1
+ import Dialog from './index.vue';
2
+ import './style.less';
3
+
4
+ Dialog.install = function (Vue) {
5
+ Vue.component(Dialog.name, Dialog);
6
+ };
7
+
8
+ export default Dialog;