vdesign-ui 0.2.6 → 0.2.7

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 (195) hide show
  1. package/dist/components/actionbar/index.js +8 -0
  2. package/dist/components/actionbar/index.vue +39 -0
  3. package/dist/components/actionbar/style.less +44 -0
  4. package/dist/components/actionbar-cell/index.js +7 -0
  5. package/dist/components/actionbar-cell/index.vue +38 -0
  6. package/dist/components/actions/index.js +7 -0
  7. package/dist/components/actions/index.vue +76 -0
  8. package/dist/components/actions/style.less +109 -0
  9. package/dist/components/actions-cell/index.js +7 -0
  10. package/dist/components/actions-cell/index.vue +94 -0
  11. package/dist/components/actions-cell/style.less +39 -0
  12. package/dist/components/activityviews/index.js +8 -0
  13. package/dist/components/activityviews/index.vue +192 -0
  14. package/dist/components/activityviews/style.less +152 -0
  15. package/dist/components/badge/index.js +8 -0
  16. package/dist/components/badge/index.vue +49 -0
  17. package/dist/components/badge/style.less +54 -0
  18. package/dist/components/button/index.js +8 -0
  19. package/dist/components/button/index.vue +93 -0
  20. package/dist/components/button/style.less +558 -0
  21. package/dist/components/calendar/end.png +0 -0
  22. package/dist/components/calendar/index-element.vue +84 -0
  23. package/dist/components/calendar/index.js +8 -0
  24. package/dist/components/calendar/index.vue +52 -0
  25. package/dist/components/calendar/start.png +0 -0
  26. package/dist/components/calendar/style.less +138 -0
  27. package/dist/components/checkbox/index.js +8 -0
  28. package/dist/components/checkbox/index.vue +161 -0
  29. package/dist/components/checkbox/style.less +289 -0
  30. package/dist/components/checkbox-group/index.js +7 -0
  31. package/dist/components/checkbox-group/index.vue +69 -0
  32. package/dist/components/common/state/index.vue +33 -0
  33. package/dist/components/common/state/style.less +48 -0
  34. package/dist/components/data-list/index.js +10 -0
  35. package/dist/components/data-list/index.vue +19 -0
  36. package/dist/components/data-list/style.less +623 -0
  37. package/dist/components/datetime-picker/index.js +8 -0
  38. package/dist/components/datetime-picker/index.vue +37 -0
  39. package/dist/components/datetime-picker/style.less +24 -0
  40. package/dist/components/dialog/index.js +8 -0
  41. package/dist/components/dialog/index.vue +164 -0
  42. package/dist/components/dialog/overlay-manager.js +18 -0
  43. package/dist/components/dialog/style.less +139 -0
  44. package/dist/components/divider/index.js +8 -0
  45. package/dist/components/divider/index.vue +54 -0
  46. package/dist/components/divider/style.less +92 -0
  47. package/dist/components/dropdown/index.js +8 -0
  48. package/dist/components/dropdown/index.vue +218 -0
  49. package/dist/components/dropdown/style.less +432 -0
  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 +8 -0
  53. package/dist/components/empty/index.vue +138 -0
  54. package/dist/components/empty/network-dark.png +0 -0
  55. package/dist/components/empty/network.png +0 -0
  56. package/dist/components/empty/nocoupons-dark.png +0 -0
  57. package/dist/components/empty/nocoupons.png +0 -0
  58. package/dist/components/empty/nodata-dark.png +0 -0
  59. package/dist/components/empty/nodata.png +0 -0
  60. package/dist/components/empty/nomargin-dark.png +0 -0
  61. package/dist/components/empty/nomargin.png +0 -0
  62. package/dist/components/empty/nonotice-dark.png +0 -0
  63. package/dist/components/empty/nonotice.png +0 -0
  64. package/dist/components/empty/noocomments-dark.png +0 -0
  65. package/dist/components/empty/noocomments.png +0 -0
  66. package/dist/components/empty/noorders-dark.png +0 -0
  67. package/dist/components/empty/noorders.png +0 -0
  68. package/dist/components/empty/noposition-dark.png +0 -0
  69. package/dist/components/empty/noposition.png +0 -0
  70. package/dist/components/empty/nosearch-dark.png +0 -0
  71. package/dist/components/empty/nosearch.png +0 -0
  72. package/dist/components/empty/style.less +61 -0
  73. package/dist/components/footer/index.js +7 -0
  74. package/dist/components/footer/index.vue +33 -0
  75. package/dist/components/footer/style.less +21 -0
  76. package/dist/components/footnav/index.js +7 -0
  77. package/dist/components/footnav/index.vue +93 -0
  78. package/dist/components/footnav/style.less +23 -0
  79. package/dist/components/footnav-item/index.js +7 -0
  80. package/dist/components/footnav-item/index.vue +50 -0
  81. package/dist/components/footnav-item/style.less +39 -0
  82. package/dist/components/form/index.js +7 -0
  83. package/dist/components/form/index.vue +12 -0
  84. package/dist/components/headnav/index.js +7 -0
  85. package/dist/components/headnav/index.vue +185 -0
  86. package/dist/components/headnav/style.less +232 -0
  87. package/dist/components/icon/font/iconfont.css +163 -0
  88. package/dist/components/icon/font/iconfont.js +6 -0
  89. package/dist/components/icon/index.js +9 -0
  90. package/dist/components/icon/index.vue +96 -0
  91. package/dist/components/icon/style.less +44 -0
  92. package/dist/components/input/calcTextareaHeight.js +162 -0
  93. package/dist/components/input/index.js +8 -0
  94. package/dist/components/input/index.vue +345 -0
  95. package/dist/components/input/style.less +471 -0
  96. package/dist/components/list/index.js +8 -0
  97. package/dist/components/list/index.vue +152 -0
  98. package/dist/components/list/style.less +213 -0
  99. package/dist/components/loading/index.js +7 -0
  100. package/dist/components/loading/index.vue +68 -0
  101. package/dist/components/loading/style.less +54 -0
  102. package/dist/components/mixins/clickoutside.js +81 -0
  103. package/dist/components/mixins/dom.js +41 -0
  104. package/dist/components/mixins/languageMixin.js +41 -0
  105. package/dist/components/mixins/outlineConfigPlugin.js +45 -0
  106. package/dist/components/mixins/router-link.js +23 -0
  107. package/dist/components/mixins/themeMixin.js +43 -0
  108. package/dist/components/noticebar/index.js +8 -0
  109. package/dist/components/noticebar/index.vue +258 -0
  110. package/dist/components/noticebar/style.less +328 -0
  111. package/dist/components/overlay/index.js +8 -0
  112. package/dist/components/overlay/index.vue +184 -0
  113. package/dist/components/overlay/style.less +23 -0
  114. package/dist/components/pagebreak/index.js +7 -0
  115. package/dist/components/pagebreak/index.vue +67 -0
  116. package/dist/components/pagebreak/style.less +42 -0
  117. package/dist/components/password/index.js +8 -0
  118. package/dist/components/password/index.vue +60 -0
  119. package/dist/components/popover/index.js +8 -0
  120. package/dist/components/popover/index.vue +100 -0
  121. package/dist/components/popover/style.less +346 -0
  122. package/dist/components/popover/vue-popover.vue +314 -0
  123. package/dist/components/popup/index.js +7 -0
  124. package/dist/components/popup/index.vue +243 -0
  125. package/dist/components/radio/index.js +8 -0
  126. package/dist/components/radio/index.vue +184 -0
  127. package/dist/components/radio/style.less +294 -0
  128. package/dist/components/radio-group/index.js +6 -0
  129. package/dist/components/radio-group/index.vue +58 -0
  130. package/dist/components/result/completed-dark.png +0 -0
  131. package/dist/components/result/completed.png +0 -0
  132. package/dist/components/result/error-dark.png +0 -0
  133. package/dist/components/result/error.png +0 -0
  134. package/dist/components/result/index.js +8 -0
  135. package/dist/components/result/index.vue +73 -0
  136. package/dist/components/result/style.less +44 -0
  137. package/dist/components/result/wait-dark.png +0 -0
  138. package/dist/components/result/wait.png +0 -0
  139. package/dist/components/search/index.js +8 -0
  140. package/dist/components/search/index.vue +66 -0
  141. package/dist/components/selector/index.js +8 -0
  142. package/dist/components/selector/index.vue +161 -0
  143. package/dist/components/selector/style.less +484 -0
  144. package/dist/components/skeleton/index.js +7 -0
  145. package/dist/components/skeleton/index.vue +206 -0
  146. package/dist/components/skeleton/style.less +197 -0
  147. package/dist/components/slider/draggable.js +49 -0
  148. package/dist/components/slider/index.js +7 -0
  149. package/dist/components/slider/index.vue +167 -0
  150. package/dist/components/slider/style.less +100 -0
  151. package/dist/components/slider/utils.js +60 -0
  152. package/dist/components/step/index.js +7 -0
  153. package/dist/components/step/index.vue +48 -0
  154. package/dist/components/step/style.less +58 -0
  155. package/dist/components/step-item/index.js +7 -0
  156. package/dist/components/step-item/index.vue +126 -0
  157. package/dist/components/step-item/style.less +362 -0
  158. package/dist/components/stepper/index.js +8 -0
  159. package/dist/components/stepper/index.vue +146 -0
  160. package/dist/components/style/index.vue +42 -0
  161. package/dist/components/switch/index.js +8 -0
  162. package/dist/components/switch/index.vue +72 -0
  163. package/dist/components/switch/style.less +56 -0
  164. package/dist/components/tab/index.js +7 -0
  165. package/dist/components/tab/index.vue +53 -0
  166. package/dist/components/tabs/index.js +8 -0
  167. package/dist/components/tabs/index.vue +172 -0
  168. package/dist/components/tabs/style.less +377 -0
  169. package/dist/components/tag/index.js +7 -0
  170. package/dist/components/tag/index.vue +64 -0
  171. package/dist/components/tag/style.less +211 -0
  172. package/dist/components/title/index.js +8 -0
  173. package/dist/components/title/index.vue +99 -0
  174. package/dist/components/title/style.less +188 -0
  175. package/dist/components/toast/index.js +83 -0
  176. package/dist/components/toast/index.vue +49 -0
  177. package/dist/components/toast/style.less +55 -0
  178. package/dist/components/transition/index.js +8 -0
  179. package/dist/components/transition/index.vue +13 -0
  180. package/dist/components/transition/style.less +208 -0
  181. package/dist/components/upload/index.js +7 -0
  182. package/dist/components/upload/index.vue +106 -0
  183. package/dist/components/upload/style.less +147 -0
  184. package/dist/components/utils/assist.js +34 -0
  185. package/dist/components/utils/env.js +2 -0
  186. package/dist/demo.html +10 -0
  187. package/dist/locale/ar.js +98 -0
  188. package/dist/locale/en.js +98 -0
  189. package/dist/locale/zh.js +98 -0
  190. package/dist/token.css +2990 -0
  191. package/dist/vdesign-ui.common.js +27076 -0
  192. package/dist/vdesign-ui.css +1 -0
  193. package/dist/vdesign-ui.umd.js +27086 -0
  194. package/dist/vdesign-ui.umd.min.js +32 -0
  195. package/package.json +1 -1
@@ -0,0 +1,48 @@
1
+ .vd-market-state {
2
+ display: inline-flex;
3
+ align-items: baseline;
4
+ font-size: var(--en-single-f-b-r-fontSize);
5
+ font-weight: var(--en-single-f-b-r-fontWeight);
6
+
7
+ &::before {
8
+ content: '';
9
+ display: inline-block;
10
+ border-radius: 50%;
11
+ width: var(--width-dropdown-state_drop);
12
+ height: var(--width-dropdown-state_drop);
13
+ margin-inline-end: var(--spacing-dropdown-state_drop-margin_right);
14
+ background-color: var(--color-dropdown-state-open);
15
+ }
16
+
17
+ &--open {
18
+ color: var(--color-dropdown-state-open);
19
+
20
+ &::before {
21
+ background-color: var(--color-dropdown-state-open);
22
+ }
23
+ }
24
+
25
+ &--preopen {
26
+ color: var(--color-dropdown-state-preopen);
27
+
28
+ &::before {
29
+ background-color: var(--color-dropdown-state-preopen);
30
+ }
31
+ }
32
+
33
+ &--close {
34
+ color: var(--color-dropdown-state-close);
35
+
36
+ &::before {
37
+ background-color: var(--text-color-h3);
38
+ }
39
+ }
40
+
41
+ &--fusing {
42
+ color: var(--color-dropdown-state-fusing);
43
+
44
+ &::before {
45
+ background-color: var(--color-dropdown-state-fusing);
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,10 @@
1
+ import DataList from './index.vue';
2
+ import './style.less';
3
+
4
+ DataList.install = function (Vue) {
5
+ Vue.component(DataList.name, DataList);
6
+ };
7
+
8
+ export default {
9
+ DataList
10
+ }
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <div class="vd-datalist">
3
+ <slot></slot>
4
+ </div>
5
+ </template>
6
+ <script>
7
+ export default {
8
+ name: 'vd-datalist',
9
+ data() {
10
+ return {
11
+ }
12
+ },
13
+ methods: {
14
+ }
15
+ }
16
+ </script>
17
+ <style lang="less">
18
+ @import './style.less';
19
+ </style>
@@ -0,0 +1,623 @@
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: var(--spacing-datalist-padding_y);
20
+ padding-inline-start: var(--spacing-datalist-padding_y);
21
+ min-height: var(--height-datalist-head);
22
+ color: var(--color-datalist-head-text-default);
23
+ font-weight: var(--en-single-f-c-r-fontWeight);
24
+ font-size: var(--en-single-f-c-r-fontSize);
25
+ }
26
+
27
+ .vd-datalist-head-item {
28
+ display: flex;
29
+ flex-direction: row;
30
+ flex-wrap: nowrap;
31
+ align-items: center;
32
+ width: var(--width-datalist-head_s);
33
+ // 默认右对齐
34
+ justify-content: flex-end;
35
+ text-align: end;
36
+ padding-block: 3.5px;
37
+
38
+ &:not(:last-child) {
39
+ margin-inline-end: var(--spacing-datalist-head_item-margin_y_m);
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: var(--icon-datalist-sort);
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: var(--spacing-datalist-head_item-margin_y_s);
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;
125
+ flex: none;
126
+ width: calc(var(--width-datalist-head_l) + var(--spacing-datalist-padding_y));
127
+ padding-inline-start: var(--spacing-datalist-padding_y);
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));
133
+ }
134
+
135
+ &.vd-datalist-head-item--m {
136
+ width: calc(var(--width-datalist-head_m) + var(--spacing-datalist-padding_y));
137
+ }
138
+
139
+ &.vd-datalist-head-item--l {
140
+ width: calc(var(--width-datalist-head_l) + var(--spacing-datalist-padding_y));
141
+ }
142
+
143
+ &.vd-datalist-head-item--xl {
144
+ width: calc(var(--width-datalist-head_xl) + var(--spacing-datalist-padding_y));
145
+ }
146
+
147
+ }
148
+ }
149
+
150
+ // 排序
151
+ .vd-datalist-head--sort {
152
+ &.vd-datalist-head-items {
153
+ padding-inline-end: var(--spacing-datalist-head-padding_right);
154
+ }
155
+
156
+ .vd-datalist-head-item--first {
157
+ margin-inline-end: var(--spacing-datalist-head_item-margin_y_m);
158
+ }
159
+
160
+ .vd-datalist-head-item__sort {
161
+ display: flex;
162
+ }
163
+ }
164
+
165
+ // align && size
166
+ .vd-datalist-head-item {
167
+ &.vd-datalist-head-item--s {
168
+ flex: none;
169
+ min-width: 0;
170
+ width: var(--width-datalist-head_s);
171
+ }
172
+
173
+ &.vd-datalist-head-item--m {
174
+ flex: none;
175
+ min-width: 0;
176
+ width: var(--width-datalist-head_m);
177
+ }
178
+
179
+ &.vd-datalist-head-item--l {
180
+ flex: none;
181
+ min-width: 0;
182
+ width: var(--width-datalist-head_l);
183
+ }
184
+
185
+ &.vd-datalist-head-item--xl {
186
+ flex: none;
187
+ min-width: 0;
188
+ width: var(--width-datalist-head_xl);
189
+ }
190
+
191
+ &.vd-datalist-head-item--start {
192
+ justify-content: flex-start;
193
+ text-align: start;
194
+ }
195
+
196
+ &.vd-datalist-head-item--center {
197
+ justify-content: center;
198
+ text-align: center;
199
+ }
200
+
201
+ &.vd-datalist-head-item--end {
202
+ justify-content: flex-end;
203
+ text-align: end;
204
+ }
205
+ }
206
+
207
+ /*
208
+ * ===== list
209
+ */
210
+
211
+ .vd-datalist-list-items {
212
+ position: relative;
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: var(--spacing-datalist-padding_y);
219
+ padding-inline-start: var(--spacing-datalist-padding_y);
220
+ min-height: var(--height-datalist-list);
221
+ color: var(--text-color-h1);
222
+ font-weight: var(--en-single-f-c-r-fontWeight);
223
+ font-size: var(--en-single-f-c-r-fontSize);
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) * 2);
232
+ inset-inline-end: calc(-50% + var(--spacing-datalist-padding_y) * 2);
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: var(--width-datalist-list_s);
249
+ // 默认右对齐
250
+ justify-content: flex-end;
251
+ text-align: end;
252
+
253
+ &:not(:last-child) {
254
+ margin-inline-end: var(--spacing-datalist-list_item-margin_y);
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: var(--en-single-f-d-r-fontSize);
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: var(--en-single-f-c-r-fontSize);
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: var(--en-single-f-c-s-fontSize);
298
+ }
299
+
300
+ // 超长文本 single fcr
301
+ &--fcr {
302
+ font-weight: var(--en-single-f-c-r-fontWeight);
303
+ font-size: var(--en-single-f-c-r-fontSize);
304
+ }
305
+
306
+ // 纯数字 single fds
307
+ &--fds {
308
+ font-weight: var(--en-single-f-d-s-fontWeight);
309
+ font-size: var(--en-single-f-d-s-fontSize);
310
+ }
311
+ }
312
+
313
+ // fixed 默认定宽
314
+ &--first {
315
+ width: 0;
316
+ flex: 1;
317
+ min-width: 0;
318
+ margin-inline-end: var(--spacing-datalist-list_item-margin_y);
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;
344
+ flex: none;
345
+ width: calc(var(--width-datalist-list_l) + var(--spacing-datalist-padding_y));
346
+ padding-inline-start: var(--spacing-datalist-padding_y);
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));
352
+ }
353
+
354
+ &.vd-datalist-list-item--m {
355
+ width: calc(var(--width-datalist-list_m) + var(--spacing-datalist-padding_y));
356
+ }
357
+
358
+ &.vd-datalist-list-item--l {
359
+ width: calc(var(--width-datalist-list_l) + var(--spacing-datalist-padding_y));
360
+ }
361
+
362
+ &.vd-datalist-list-item--xl {
363
+ width: calc(var(--width-datalist-list_xl) + var(--spacing-datalist-padding_y));
364
+ }
365
+ }
366
+ }
367
+
368
+ // align && size
369
+ .vd-datalist-list-item {
370
+ &>.vd-iconfont+.vd-datalist-content {
371
+ margin-inline-start: var(--spacing-datalist-list_icon-margin_right);
372
+ }
373
+
374
+ &.vd-datalist-list-item--s {
375
+ flex: none;
376
+ min-width: 0;
377
+ width: var(--width-datalist-list_s);
378
+ }
379
+
380
+ &.vd-datalist-list-item--m {
381
+ flex: none;
382
+ min-width: 0;
383
+ width: var(--width-datalist-list_m);
384
+ }
385
+
386
+ &.vd-datalist-list-item--l {
387
+ flex: none;
388
+ min-width: 0;
389
+ width: var(--width-datalist-list_l);
390
+ }
391
+
392
+ &.vd-datalist-list-item--xl {
393
+ flex: none;
394
+ min-width: 0;
395
+ width: var(--width-datalist-list_xl);
396
+ }
397
+
398
+
399
+ &.vd-datalist-list-item--start {
400
+ justify-content: flex-start;
401
+ text-align: start;
402
+ }
403
+
404
+ &.vd-datalist-list-item--center {
405
+ justify-content: center;
406
+ text-align: center;
407
+ }
408
+
409
+ &.vd-datalist-list-item--end {
410
+ justify-content: flex-end;
411
+ text-align: end;
412
+ }
413
+ }
414
+
415
+ .vd-datalist-content {
416
+ flex: 1;
417
+ min-width: 0;
418
+ display: flex;
419
+ flex-direction: column;
420
+ flex-wrap: nowrap;
421
+ justify-content: center;
422
+ width: 100%;
423
+
424
+ &__desc {
425
+ display: flex;
426
+ flex-direction: row;
427
+ flex-wrap: nowrap;
428
+ align-items: center;
429
+ margin-block-start: var(--spacing-datalist-list-margin_top);
430
+
431
+ &--code {
432
+ overflow: hidden;
433
+ white-space: nowrap;
434
+ text-overflow: ellipsis;
435
+ color: var(--color-datalist-list-text_secondary);
436
+ font-size: var(--en-single-f-c-r-fontSize);
437
+ font-weight: var(--en-single-f-c-r-fontWeight);
438
+ margin-inline-end: var(--spacing-datalist-market_tag-margin_top);
439
+ }
440
+ }
441
+
442
+ &__title {
443
+ font-size: var(--en-single-f-d-r-fontSize);
444
+ font-weight: var(--en-single-f-d-r-fontWeight);
445
+ overflow: hidden;
446
+ white-space: nowrap;
447
+ text-overflow: ellipsis;
448
+
449
+ &--code {
450
+ margin-inline-end: var(--spacing-datalist-market_tag-margin_top);
451
+ }
452
+ }
453
+
454
+ }
455
+
456
+ .vd-datalist-stock-tag {
457
+ flex: none;
458
+ margin-inline-end: var(--spacing-datalist-market_tag-margin_top);
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: var(--icon-datalist-label_icon);
472
+ margin-inline-end: var(--spacing-datalist-market_tag-margin_top);
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
+ display: flex;
492
+ flex-direction: row;
493
+ flex-wrap: nowrap;
494
+ justify-content: space-between;
495
+ align-items: center;
496
+ min-width: fit-content;
497
+ background-color: var(--bg-color-1);
498
+ padding-inline-end: var(--spacing-datalist-padding_y);
499
+ padding-inline-start: var(--spacing-datalist-padding_y);
500
+ color: var(--text-color-h1);
501
+ font-weight: var(--en-single-f-c-r-fontWeight);
502
+ font-size: var(--en-single-f-c-r-fontSize);
503
+ height: var(--height-datalist-search_m);
504
+
505
+ &+& {
506
+ &::before {
507
+ content: "";
508
+ pointer-events: none;
509
+ display: block;
510
+ position: absolute;
511
+ inset-inline-start: calc(-50% + var(--spacing-datalist-padding_y) * 2);
512
+ inset-inline-end: calc(-50% + var(--spacing-datalist-padding_y) * 2);
513
+ inset-block-start: 0;
514
+ border-top: 1px solid var(--divider-color-default-1);
515
+ box-sizing: border-box;
516
+ transform: scale(0.5);
517
+ z-index: 3;
518
+ }
519
+ }
520
+ }
521
+
522
+ &-content {
523
+ flex: 1;
524
+ width: 0;
525
+ overflow: hidden;
526
+
527
+ &__stock {
528
+ color: var(--color-datalist-list-text_primary);
529
+ font-weight: var(--en-single-f-d-s-fontWeight);
530
+ font-size: var(--en-single-f-d-s-fontSize);
531
+ overflow: hidden;
532
+ white-space: nowrap;
533
+ text-overflow: ellipsis;
534
+ }
535
+
536
+ &__code {
537
+ display: flex;
538
+ color: var(--color-datalist-list-text_secondary);
539
+ font-weight: var(--en-single-f-c-r-fontWeight);
540
+ font-size: var(--en-single-f-c-r-fontSize);
541
+ margin-block-start: var(--spacing-datalist-search-margin_top);
542
+
543
+ &--market {
544
+ margin-inline-start: var(--spacing-datalist-search-margin_right);
545
+ overflow: hidden;
546
+ white-space: nowrap;
547
+ text-overflow: ellipsis;
548
+ }
549
+ }
550
+ }
551
+
552
+ &--reverse {
553
+ height: var(--height-datalist-search_s);
554
+
555
+ .vd-datalist-search-content {
556
+ display: flex;
557
+ flex-direction: row-reverse;
558
+ align-items: flex-end;
559
+ }
560
+
561
+ .vd-datalist-search-content__code {
562
+ color: var(--color-datalist-list-text_primary);
563
+ font-weight: var(--en-single-f-d-s-fontWeight);
564
+ font-size: var(--en-single-f-d-s-fontSize);
565
+ width: var(--width-datalist-list-code);
566
+ }
567
+
568
+ .vd-datalist-search-content__stock {
569
+ flex: 1;
570
+ min-width: 0;
571
+ color: var(--color-datalist-list-text_primary);
572
+ font-weight: var(--en-single-f-d-r-fontWeight);
573
+ font-size: var(--en-single-f-d-r-fontSize);
574
+ margin-inline-start: var(--spacing-datalist-search_code-margin_right);
575
+ }
576
+ }
577
+
578
+ &-icon {
579
+ margin-inline-start: var(--spacing-datalist-search_icon-margin_left);
580
+ color: var(--color-datalist-list-text_secondary);
581
+ }
582
+
583
+ &-stock {
584
+ flex: none;
585
+ text-align: end;
586
+ margin-inline-start: var(--spacing-datalist-search_stock-margin_right);
587
+
588
+ &__price {
589
+ font-weight: var(--en-single-f-d-s-fontWeight);
590
+ font-size: var(--en-single-f-d-s-fontSize);
591
+ }
592
+
593
+ &__percentage {
594
+ font-weight: var(--en-single-f-c-r-fontWeight);
595
+ font-size: var(--en-single-f-c-r-fontSize);
596
+ margin-block-start: var(--spacing-datalist-search-margin_top);
597
+ }
598
+
599
+ &--rise {
600
+ color: var(--rise-color);
601
+ }
602
+
603
+ &--fall {
604
+ color: var(--fall-color);
605
+ }
606
+ }
607
+ }
608
+
609
+
610
+ [lang='ar'] {
611
+
612
+ .vd-datalist-head-item,
613
+ .vd-datalist-list-item {
614
+ justify-content: flex-start;
615
+ text-align: start;
616
+ }
617
+
618
+ .vd-datalist-head-item.vd-datalist-head-item--center,
619
+ .vd-datalist-list-item.vd-datalist-list-item--center {
620
+ justify-content: center;
621
+ text-align: center;
622
+ }
623
+ }
@@ -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;