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,624 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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;
@@ -1,37 +0,0 @@
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>
@@ -1,24 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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;