vdesign-ui 0.2.5 → 0.2.6

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/package.json +1 -1
  2. package/dist/components/actionbar/index.js +0 -8
  3. package/dist/components/actionbar/index.vue +0 -39
  4. package/dist/components/actionbar/style.less +0 -44
  5. package/dist/components/actionbar-cell/index.js +0 -7
  6. package/dist/components/actionbar-cell/index.vue +0 -38
  7. package/dist/components/actions/index.js +0 -7
  8. package/dist/components/actions/index.vue +0 -76
  9. package/dist/components/actions/style.less +0 -109
  10. package/dist/components/actions-cell/index.js +0 -7
  11. package/dist/components/actions-cell/index.vue +0 -94
  12. package/dist/components/actions-cell/style.less +0 -39
  13. package/dist/components/activityviews/index.js +0 -8
  14. package/dist/components/activityviews/index.vue +0 -192
  15. package/dist/components/activityviews/style.less +0 -152
  16. package/dist/components/badge/index.js +0 -8
  17. package/dist/components/badge/index.vue +0 -49
  18. package/dist/components/badge/style.less +0 -54
  19. package/dist/components/button/index.js +0 -8
  20. package/dist/components/button/index.vue +0 -93
  21. package/dist/components/button/style.less +0 -558
  22. package/dist/components/calendar/end.png +0 -0
  23. package/dist/components/calendar/index-element.vue +0 -84
  24. package/dist/components/calendar/index.js +0 -8
  25. package/dist/components/calendar/index.vue +0 -52
  26. package/dist/components/calendar/start.png +0 -0
  27. package/dist/components/calendar/style.less +0 -138
  28. package/dist/components/checkbox/index.js +0 -8
  29. package/dist/components/checkbox/index.vue +0 -161
  30. package/dist/components/checkbox/style.less +0 -289
  31. package/dist/components/checkbox-group/index.js +0 -7
  32. package/dist/components/checkbox-group/index.vue +0 -69
  33. package/dist/components/common/state/index.vue +0 -33
  34. package/dist/components/common/state/style.less +0 -48
  35. package/dist/components/data-list/index.js +0 -10
  36. package/dist/components/data-list/index.vue +0 -19
  37. package/dist/components/data-list/style.less +0 -623
  38. package/dist/components/datetime-picker/index.js +0 -8
  39. package/dist/components/datetime-picker/index.vue +0 -37
  40. package/dist/components/datetime-picker/style.less +0 -24
  41. package/dist/components/dialog/index.js +0 -8
  42. package/dist/components/dialog/index.vue +0 -164
  43. package/dist/components/dialog/overlay-manager.js +0 -18
  44. package/dist/components/dialog/style.less +0 -139
  45. package/dist/components/divider/index.js +0 -8
  46. package/dist/components/divider/index.vue +0 -54
  47. package/dist/components/divider/style.less +0 -92
  48. package/dist/components/dropdown/index.js +0 -8
  49. package/dist/components/dropdown/index.vue +0 -218
  50. package/dist/components/dropdown/style.less +0 -432
  51. package/dist/components/empty/404-dark.png +0 -0
  52. package/dist/components/empty/404.png +0 -0
  53. package/dist/components/empty/index.js +0 -8
  54. package/dist/components/empty/index.vue +0 -138
  55. package/dist/components/empty/network-dark.png +0 -0
  56. package/dist/components/empty/network.png +0 -0
  57. package/dist/components/empty/nocoupons-dark.png +0 -0
  58. package/dist/components/empty/nocoupons.png +0 -0
  59. package/dist/components/empty/nodata-dark.png +0 -0
  60. package/dist/components/empty/nodata.png +0 -0
  61. package/dist/components/empty/nomargin-dark.png +0 -0
  62. package/dist/components/empty/nomargin.png +0 -0
  63. package/dist/components/empty/nonotice-dark.png +0 -0
  64. package/dist/components/empty/nonotice.png +0 -0
  65. package/dist/components/empty/noocomments-dark.png +0 -0
  66. package/dist/components/empty/noocomments.png +0 -0
  67. package/dist/components/empty/noorders-dark.png +0 -0
  68. package/dist/components/empty/noorders.png +0 -0
  69. package/dist/components/empty/noposition-dark.png +0 -0
  70. package/dist/components/empty/noposition.png +0 -0
  71. package/dist/components/empty/nosearch-dark.png +0 -0
  72. package/dist/components/empty/nosearch.png +0 -0
  73. package/dist/components/empty/style.less +0 -61
  74. package/dist/components/footer/index.js +0 -7
  75. package/dist/components/footer/index.vue +0 -33
  76. package/dist/components/footer/style.less +0 -21
  77. package/dist/components/footnav/index.js +0 -7
  78. package/dist/components/footnav/index.vue +0 -93
  79. package/dist/components/footnav/style.less +0 -23
  80. package/dist/components/footnav-item/index.js +0 -7
  81. package/dist/components/footnav-item/index.vue +0 -50
  82. package/dist/components/footnav-item/style.less +0 -39
  83. package/dist/components/form/index.js +0 -7
  84. package/dist/components/form/index.vue +0 -12
  85. package/dist/components/headnav/index.js +0 -7
  86. package/dist/components/headnav/index.vue +0 -185
  87. package/dist/components/headnav/style.less +0 -232
  88. package/dist/components/icon/font/iconfont.css +0 -163
  89. package/dist/components/icon/font/iconfont.js +0 -6
  90. package/dist/components/icon/index.js +0 -9
  91. package/dist/components/icon/index.vue +0 -96
  92. package/dist/components/icon/style.less +0 -44
  93. package/dist/components/input/calcTextareaHeight.js +0 -162
  94. package/dist/components/input/index.js +0 -8
  95. package/dist/components/input/index.vue +0 -345
  96. package/dist/components/input/style.less +0 -471
  97. package/dist/components/list/index.js +0 -8
  98. package/dist/components/list/index.vue +0 -152
  99. package/dist/components/list/style.less +0 -213
  100. package/dist/components/loading/index.js +0 -7
  101. package/dist/components/loading/index.vue +0 -68
  102. package/dist/components/loading/style.less +0 -54
  103. package/dist/components/mixins/clickoutside.js +0 -81
  104. package/dist/components/mixins/dom.js +0 -41
  105. package/dist/components/mixins/languageMixin.js +0 -41
  106. package/dist/components/mixins/outlineConfigPlugin.js +0 -45
  107. package/dist/components/mixins/router-link.js +0 -23
  108. package/dist/components/mixins/themeMixin.js +0 -43
  109. package/dist/components/noticebar/index.js +0 -8
  110. package/dist/components/noticebar/index.vue +0 -258
  111. package/dist/components/noticebar/style.less +0 -328
  112. package/dist/components/overlay/index.js +0 -8
  113. package/dist/components/overlay/index.vue +0 -184
  114. package/dist/components/overlay/style.less +0 -23
  115. package/dist/components/pagebreak/index.js +0 -7
  116. package/dist/components/pagebreak/index.vue +0 -67
  117. package/dist/components/pagebreak/style.less +0 -42
  118. package/dist/components/password/index.js +0 -8
  119. package/dist/components/password/index.vue +0 -60
  120. package/dist/components/popover/index.js +0 -8
  121. package/dist/components/popover/index.vue +0 -100
  122. package/dist/components/popover/style.less +0 -346
  123. package/dist/components/popover/vue-popover.vue +0 -314
  124. package/dist/components/popup/index.js +0 -7
  125. package/dist/components/popup/index.vue +0 -243
  126. package/dist/components/radio/index.js +0 -8
  127. package/dist/components/radio/index.vue +0 -184
  128. package/dist/components/radio/style.less +0 -294
  129. package/dist/components/radio-group/index.js +0 -6
  130. package/dist/components/radio-group/index.vue +0 -58
  131. package/dist/components/result/completed-dark.png +0 -0
  132. package/dist/components/result/completed.png +0 -0
  133. package/dist/components/result/error-dark.png +0 -0
  134. package/dist/components/result/error.png +0 -0
  135. package/dist/components/result/index.js +0 -8
  136. package/dist/components/result/index.vue +0 -73
  137. package/dist/components/result/style.less +0 -44
  138. package/dist/components/result/wait-dark.png +0 -0
  139. package/dist/components/result/wait.png +0 -0
  140. package/dist/components/search/index.js +0 -8
  141. package/dist/components/search/index.vue +0 -66
  142. package/dist/components/selector/index.js +0 -8
  143. package/dist/components/selector/index.vue +0 -161
  144. package/dist/components/selector/style.less +0 -484
  145. package/dist/components/skeleton/index.js +0 -7
  146. package/dist/components/skeleton/index.vue +0 -206
  147. package/dist/components/skeleton/style.less +0 -197
  148. package/dist/components/slider/draggable.js +0 -49
  149. package/dist/components/slider/index.js +0 -7
  150. package/dist/components/slider/index.vue +0 -167
  151. package/dist/components/slider/style.less +0 -100
  152. package/dist/components/slider/utils.js +0 -60
  153. package/dist/components/step/index.js +0 -7
  154. package/dist/components/step/index.vue +0 -48
  155. package/dist/components/step/style.less +0 -58
  156. package/dist/components/step-item/index.js +0 -7
  157. package/dist/components/step-item/index.vue +0 -126
  158. package/dist/components/step-item/style.less +0 -362
  159. package/dist/components/stepper/index.js +0 -8
  160. package/dist/components/stepper/index.vue +0 -146
  161. package/dist/components/style/index.vue +0 -42
  162. package/dist/components/switch/index.js +0 -8
  163. package/dist/components/switch/index.vue +0 -72
  164. package/dist/components/switch/style.less +0 -56
  165. package/dist/components/tab/index.js +0 -7
  166. package/dist/components/tab/index.vue +0 -53
  167. package/dist/components/tabs/index.js +0 -8
  168. package/dist/components/tabs/index.vue +0 -172
  169. package/dist/components/tabs/style.less +0 -377
  170. package/dist/components/tag/index.js +0 -7
  171. package/dist/components/tag/index.vue +0 -64
  172. package/dist/components/tag/style.less +0 -211
  173. package/dist/components/title/index.js +0 -8
  174. package/dist/components/title/index.vue +0 -99
  175. package/dist/components/title/style.less +0 -188
  176. package/dist/components/toast/index.js +0 -94
  177. package/dist/components/toast/index.vue +0 -49
  178. package/dist/components/toast/style.less +0 -55
  179. package/dist/components/transition/index.js +0 -8
  180. package/dist/components/transition/index.vue +0 -13
  181. package/dist/components/transition/style.less +0 -208
  182. package/dist/components/upload/index.js +0 -7
  183. package/dist/components/upload/index.vue +0 -106
  184. package/dist/components/upload/style.less +0 -147
  185. package/dist/components/utils/assist.js +0 -34
  186. package/dist/components/utils/env.js +0 -2
  187. package/dist/demo.html +0 -10
  188. package/dist/locale/ar.js +0 -98
  189. package/dist/locale/en.js +0 -98
  190. package/dist/locale/zh.js +0 -98
  191. package/dist/token.css +0 -2990
  192. package/dist/vdesign-ui.common.js +0 -27486
  193. package/dist/vdesign-ui.css +0 -1
  194. package/dist/vdesign-ui.umd.js +0 -27496
  195. package/dist/vdesign-ui.umd.min.js +0 -32
@@ -1,48 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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>
@@ -1,623 +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: 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
- }
@@ -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;