vdesign-ui 0.2.1 → 0.2.2

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 (104) hide show
  1. package/dist/components/actionbar/style.less +8 -12
  2. package/dist/components/actionbar-cell/index.js +7 -0
  3. package/dist/components/{actionbar/actionbar-cell → actionbar-cell}/index.vue +4 -0
  4. package/dist/components/{actions-cell/actions → actions}/index.vue +6 -6
  5. package/dist/components/{actions-cell/actions → actions}/style.less +38 -41
  6. package/dist/components/activityviews/index.vue +7 -1
  7. package/dist/components/activityviews/style.less +42 -46
  8. package/dist/components/badge/style.less +22 -34
  9. package/dist/components/button/index.vue +4 -0
  10. package/dist/components/button/style.less +82 -87
  11. package/dist/components/calendar/index.vue +1 -1
  12. package/dist/components/calendar/style.less +24 -53
  13. package/dist/components/checkbox/index.vue +5 -1
  14. package/dist/components/checkbox/style.less +30 -32
  15. package/dist/components/checkbox-group/index.js +7 -0
  16. package/dist/components/{checkbox/checkbox-group → checkbox-group}/index.vue +1 -2
  17. package/dist/components/common/state/index.vue +1 -48
  18. package/dist/components/common/state/style.less +48 -0
  19. package/dist/components/data-list/style.less +81 -82
  20. package/dist/components/datetime-picker/style.less +12 -12
  21. package/dist/components/dialog/index.vue +4 -0
  22. package/dist/components/dialog/style.less +27 -31
  23. package/dist/components/divider/style.less +1 -1
  24. package/dist/components/dropdown/index.vue +6 -1
  25. package/dist/components/dropdown/style.less +117 -125
  26. package/dist/components/empty/index.vue +10 -8
  27. package/dist/components/empty/style.less +34 -26
  28. package/dist/components/footer/style.less +6 -7
  29. package/dist/components/footnav/index.vue +1 -1
  30. package/dist/components/footnav/style.less +5 -5
  31. package/dist/components/{footnav/footnav-item → footnav-item}/index.vue +7 -1
  32. package/dist/components/{footnav/footnav-item → footnav-item}/style.less +2 -2
  33. package/dist/components/headnav/index.vue +5 -1
  34. package/dist/components/headnav/style.less +54 -58
  35. package/dist/components/icon/style.less +4 -4
  36. package/dist/components/input/index.vue +4 -0
  37. package/dist/components/input/style.less +88 -101
  38. package/dist/components/list/index.vue +5 -0
  39. package/dist/components/list/style.less +45 -52
  40. package/dist/components/loading/style.less +25 -27
  41. package/dist/components/mixins/languageMixin.js +7 -3
  42. package/dist/components/mixins/outlineConfigPlugin.js +1 -1
  43. package/dist/components/mixins/themeMixin.js +29 -15
  44. package/dist/components/noticebar/index.vue +7 -1
  45. package/dist/components/noticebar/style.less +125 -129
  46. package/dist/components/overlay/index.vue +34 -11
  47. package/dist/components/pagebreak/style.less +18 -19
  48. package/dist/components/popover/index.vue +2 -1
  49. package/dist/components/popover/style.less +39 -39
  50. package/dist/components/radio/index.js +1 -1
  51. package/dist/components/radio/index.vue +1 -1
  52. package/dist/components/radio/style.less +35 -43
  53. package/dist/components/radio-group/index.js +6 -0
  54. package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
  55. package/dist/components/result/completed-dark.png +0 -0
  56. package/dist/components/result/completed.png +0 -0
  57. package/dist/components/result/error-dark.png +0 -0
  58. package/dist/components/result/error.png +0 -0
  59. package/dist/components/result/index.vue +1 -2
  60. package/dist/components/result/style.less +22 -20
  61. package/dist/components/result/wait-dark.png +0 -0
  62. package/dist/components/result/wait.png +0 -0
  63. package/dist/components/{input/search → search}/index.vue +4 -0
  64. package/dist/components/selector/index.vue +4 -0
  65. package/dist/components/selector/style.less +96 -100
  66. package/dist/components/skeleton/style.less +112 -107
  67. package/dist/components/slider/index.vue +1 -1
  68. package/dist/components/slider/style.less +41 -37
  69. package/dist/components/step/style.less +3 -4
  70. package/dist/components/step-item/index.vue +12 -3
  71. package/dist/components/step-item/style.less +61 -60
  72. package/dist/components/{input/stepper → stepper}/index.vue +5 -1
  73. package/dist/components/switch/style.less +8 -8
  74. package/dist/components/tab/index.js +7 -0
  75. package/dist/components/tabs/index.vue +4 -0
  76. package/dist/components/tabs/style.less +97 -105
  77. package/dist/components/tag/style.less +35 -35
  78. package/dist/components/title/index.vue +4 -0
  79. package/dist/components/title/style.less +164 -170
  80. package/dist/components/toast/index.js +9 -3
  81. package/dist/components/toast/style.less +8 -8
  82. package/dist/components/upload/index.vue +4 -0
  83. package/dist/components/upload/style.less +22 -31
  84. package/dist/components/utils/env.js +2 -0
  85. package/dist/token.css +1278 -1278
  86. package/dist/vdesign-ui.common.js +1112 -948
  87. package/dist/vdesign-ui.css +1 -1
  88. package/dist/vdesign-ui.umd.js +1112 -948
  89. package/dist/vdesign-ui.umd.min.js +3 -3
  90. package/package.json +1 -1
  91. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  92. package/dist/components/radio/assist.js +0 -34
  93. package/dist/components/radio/style.css +0 -213
  94. package/dist/img/completed-dark.4183a8a8.png +0 -0
  95. package/dist/img/error-dark.b80857da.png +0 -0
  96. package/dist/img/wait-dark.6aa28731.png +0 -0
  97. /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
  98. /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
  99. /package/dist/components/{input/password → password}/index.js +0 -0
  100. /package/dist/components/{input/password → password}/index.vue +0 -0
  101. /package/dist/components/{input/search → search}/index.js +0 -0
  102. /package/dist/components/{input/stepper → stepper}/index.js +0 -0
  103. /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
  104. /package/dist/components/{checkbox → utils}/assist.js +0 -0
@@ -88,18 +88,18 @@
88
88
  flex-direction: row;
89
89
  align-items: center;
90
90
  white-space: nowrap;
91
- padding-inline-start: calc(var(--spacing-popover-primary-padding_left) * 1px);
92
- padding-inline-end: calc(var(--spacing-popover-primary-padding_right) * 1px);
93
- height: calc(var(--height-popover-primary) * 1px);
94
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
91
+ padding-inline-start: var(--spacing-popover-primary-padding_left);
92
+ padding-inline-end: var(--spacing-popover-primary-padding_right);
93
+ height: var(--height-popover-primary);
94
+ font-size: var(--en-single-f-c-r-fontSize);
95
95
  font-weight: var(--en-single-f-c-r-fontWeight);
96
96
  color: var(--color-popover-primary-text);
97
97
  background-color: var(--color-popover-primary-bg);
98
- border-radius: calc(var(--radius-popover-primary) * 1px);
98
+ border-radius: var(--radius-popover-primary);
99
99
  border: none;
100
100
  box-shadow: none;
101
- animation: vd-ani-popper .2s linear forwards;
102
- }
101
+ animation: vd-ani-popper 0.2s linear forwards;
102
+ }
103
103
 
104
104
  &-icon {
105
105
 
@@ -108,8 +108,8 @@
108
108
  outline: none;
109
109
  border: none;
110
110
  background: none;
111
- font-size: calc(var(--icon-popover-primary) * 1px);
112
- margin-inline-end: calc(var(--spacing-popover-primary-margin_y) * 1px);
111
+ font-size: var(--icon-popover-primary);
112
+ margin-inline-end: var(--spacing-popover-primary-margin_y);
113
113
  }
114
114
  }
115
115
 
@@ -120,15 +120,15 @@
120
120
  outline: none;
121
121
  border: none;
122
122
  background: none;
123
- font-size: calc(var(--icon-popover-primary) * 1px);
124
- margin-inline-start: calc(var(--spacing-popover-primary-margin_y) * 1px);
123
+ font-size: var(--icon-popover-primary);
124
+ margin-inline-start: var(--spacing-popover-primary-margin_y);
125
125
  }
126
126
 
127
127
  &--hot {
128
128
  position: absolute;
129
129
  inset-inline-end: 0;
130
- height: calc(var(--height-popover-primary) * 1px);
131
- width: calc(var(--height-popover-primary) * 1.2px);
130
+ height: var(--height-popover-primary);
131
+ width: calc(var(--height-popover-primary) * 1.2);
132
132
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
133
133
  }
134
134
  }
@@ -145,19 +145,19 @@
145
145
 
146
146
  // 设置一个 popper 的外边距
147
147
  .vd-popper[x-placement^="top"] {
148
- margin-bottom: calc(var(--icon-popover-primary) * .5px) !important;
148
+ margin-bottom: calc(var(--icon-popover-primary) * .5) !important;
149
149
  }
150
150
 
151
151
  .vd-popper[x-placement^="bottom"] {
152
- margin-top: calc(var(--icon-popover-primary) * .5px) !important;
152
+ margin-top: calc(var(--icon-popover-primary) * .5) !important;
153
153
  }
154
154
 
155
155
  .vd-popper[x-placement^="left"] {
156
- margin-right: calc(var(--icon-popover-primary) * .5px) !important;
156
+ margin-right: calc(var(--icon-popover-primary) * .5) !important;
157
157
  }
158
158
 
159
159
  .vd-popper[x-placement^="right"] {
160
- margin-left: calc(var(--icon-popover-primary) * .5px) !important;
160
+ margin-left: calc(var(--icon-popover-primary) * .5) !important;
161
161
  }
162
162
 
163
163
  // 覆盖原有的默认三角形背景色样式
@@ -197,14 +197,14 @@
197
197
 
198
198
  // secondary 模式样式
199
199
  .vd-popover-secondary {
200
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
200
+ font-size: var(--en-single-f-b-r-fontSize);
201
201
  font-weight: var(--en-single-f-b-r-fontWeight);
202
- padding-inline-start: calc(var(--spacing-popover-secondary-padding_left) * 1px);
203
- padding-inline-end: calc(var(--spacing-popover-secondary-padding_right) * 1px);
204
- height: calc(var(--height-popover-secondary) * 1px);
202
+ padding-inline-start: var(--spacing-popover-secondary-padding_left);
203
+ padding-inline-end: var(--spacing-popover-secondary-padding_right);
204
+ height: var(--height-popover-secondary);
205
205
  color: var(--color-popover-secondary-text);
206
206
  background-color: var(--color-popover-secondary-bg);
207
- border-radius: calc(var(--radius-popover-secondary) * 1px);
207
+ border-radius: var(--radius-popover-secondary);
208
208
 
209
209
  &[x-placement^="top"] .vd-popper__arrow {
210
210
  border-color: var(--color-popover-secondary-bg) transparent transparent transparent;
@@ -230,8 +230,8 @@
230
230
  outline: none;
231
231
  border: none;
232
232
  background: none;
233
- font-size: calc(var(--icon-popover-secondary) * 1px);
234
- margin-inline-end: calc(var(--spacing-popover-secondary-margin_y) * 1px);
233
+ font-size: var(--icon-popover-secondary);
234
+ margin-inline-end: var(--spacing-popover-secondary-margin_y);
235
235
  margin-block-start: -1px;
236
236
  }
237
237
  }
@@ -244,16 +244,16 @@
244
244
  outline: none;
245
245
  border: none;
246
246
  background: none;
247
- font-size: calc(var(--icon-popover-secondary) * 1px);
248
- margin-inline-start: calc(var(--spacing-popover-secondary-margin_y) * 1px);
247
+ font-size: var(--icon-popover-secondary);
248
+ margin-inline-start: var(--spacing-popover-secondary-margin_y);
249
249
  margin-block-start: -1px;
250
250
  }
251
251
 
252
252
  &--hot {
253
253
  position: absolute;
254
254
  inset-inline-end: 0;
255
- height: calc(var(--height-popover-secondary) * 1px);
256
- width: calc(var(--height-popover-secondary) * 1.2px);
255
+ height: var(--height-popover-secondary);
256
+ width: calc(var(--height-popover-secondary) * 1.2);
257
257
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
258
258
  }
259
259
  }
@@ -265,14 +265,14 @@
265
265
 
266
266
  // custom 模式样式
267
267
  .vd-popover-custom {
268
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
268
+ font-size: var(--en-single-f-c-r-fontSize);
269
269
  font-weight: var(--en-single-f-c-r-fontWeight);
270
- padding-inline-start: calc(var(--spacing-popover-custom-padding_left) * 1px);
271
- padding-inline-end: calc(var(--spacing-popover-custom-padding_right) * 1px);
272
- height: calc(var(--height-popover-custom) * 1px);
270
+ padding-inline-start: var(--spacing-popover-custom-padding_left);
271
+ padding-inline-end: var(--spacing-popover-custom-padding_right);
272
+ height: var(--height-popover-custom);
273
273
  color: var(--color-popover-custom-text);
274
274
  background-color: var(--color-popover-custom-bg);
275
- border-radius: calc(var(--radius-popover-custom) * 1px);
275
+ border-radius: var(--radius-popover-custom);
276
276
 
277
277
  &[x-placement^="top"] .vd-popper__arrow {
278
278
  border-color: var(--color-popover-custom-bg) transparent transparent transparent;
@@ -297,8 +297,8 @@
297
297
  outline: none;
298
298
  border: none;
299
299
  background: none;
300
- font-size: calc(var(--icon-popover-custom) * 1px);
301
- margin-inline-end: calc(var(--spacing-popover-custom-margin_y) * 1px);
300
+ font-size: var(--icon-popover-custom);
301
+ margin-inline-end: var(--spacing-popover-custom-margin_y);
302
302
  }
303
303
  }
304
304
 
@@ -309,15 +309,15 @@
309
309
  outline: none;
310
310
  border: none;
311
311
  background: none;
312
- font-size: calc(var(--icon-popover-custom) * 1px);
313
- margin-inline-start: calc(var(--spacing-popover-custom-margin_y) * 1px);
312
+ font-size: var(--icon-popover-custom);
313
+ margin-inline-start: var(--spacing-popover-custom-margin_y);
314
314
  }
315
315
 
316
316
  &--hot {
317
317
  position: absolute;
318
318
  inset-inline-end: 0;
319
- height: calc(var(--height-popover-custom) * 1px);
320
- width: calc(var(--height-popover-custom) * 1.2px);
319
+ height: var(--height-popover-custom);
320
+ width: calc(var(--height-popover-custom) * 1.2);
321
321
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
322
322
  }
323
323
  }
@@ -2,7 +2,7 @@ import Radio from './index.vue';
2
2
  import './style.less';
3
3
 
4
4
  Radio.install = function (Vue) {
5
- Vue.component(Checkbox.name, Checkbox);
5
+ Vue.component(Radio.name, Radio);
6
6
  };
7
7
 
8
8
  export default Radio;
@@ -38,7 +38,7 @@
38
38
  </label>
39
39
  </template>
40
40
  <script>
41
- import { findComponentUpward } from './assist';
41
+ import { findComponentUpward } from "../utils/assist";
42
42
 
43
43
  const prefixCls = 'vd-radio';
44
44
 
@@ -13,38 +13,38 @@
13
13
  // 普通状态
14
14
  .@{radio-prefix-cls} {
15
15
 
16
- &__input{
16
+ &__input {
17
17
  position: relative;
18
- margin-inline-end: calc(var(--spacing-check_radio-icon-margin_right) * 1px);
19
- width: calc(var(--icon-check_radio-sizing) * 1px);
20
- height: calc(var(--icon-check_radio-sizing) * 1px);
18
+ margin-inline-end: var(--spacing-check_radio-icon-margin_right);
19
+ width: var(--icon-check_radio-sizing);
20
+ height: var(--icon-check_radio-sizing);
21
21
  }
22
-
23
- &__label{
22
+
23
+ &__label {
24
24
  flex: 1;
25
25
  }
26
-
26
+
27
27
  &__text {
28
28
  color: var(--color-check_radio-text-default);
29
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
29
+ font-size: var(--en-single-f-d-r-fontSize);
30
30
  font-weight: var(--en-single-f-d-r-fontWeight);
31
31
  }
32
-
32
+
33
33
  &__description {
34
34
  line-height: 1;
35
- margin-top: calc(var(--spacing-check_radio-text-margin_top) * 1px);
35
+ margin-top: var(--spacing-check_radio-text-margin_top);
36
36
  color: var(--color-check_radio-text_describe-default);
37
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
37
+ font-size: var(--en-single-f-b-r-fontSize);
38
38
  font-weight: var(--en-single-f-b-r-fontWeight);
39
39
  }
40
-
41
- .@{radio-inner-prefix-cls} {
40
+
41
+ .@{radio-inner-prefix-cls} {
42
42
  display: block;
43
- width: calc(var(--icon-check_radio-sizing) * 1px);
44
- height: calc(var(--icon-check_radio-sizing) * 1px);
43
+ width: var(--icon-check_radio-sizing);
44
+ height: var(--icon-check_radio-sizing);
45
45
  position: relative;
46
-
47
- &::before{
46
+
47
+ &::before {
48
48
  position: absolute;
49
49
  box-sizing: border-box;
50
50
  content: ' ';
@@ -53,14 +53,11 @@
53
53
  right: -50%;
54
54
  bottom: -50%;
55
55
  left: -50%;
56
- border: 0 solid var(--color-check_radio-default);
57
- -webkit-transform: scale(0.5);
56
+ border: 3px solid var(--color-check_radio-default);
58
57
  transform: scale(0.5);
59
- border-width: 3px;
60
58
  border-radius: 50%;
61
59
  }
62
-
63
- }
60
+ }
64
61
 
65
62
  &__original {
66
63
  width: 100%;
@@ -82,7 +79,7 @@
82
79
  .@{radio-prefix-cls}--checked {
83
80
  .@{radio-prefix-cls} {
84
81
  &__text {
85
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
82
+ font-size: var(--en-single-f-d-s-fontSize);
86
83
  font-weight: var(--en-single-f-d-s-fontWeight);
87
84
  }
88
85
  }
@@ -107,7 +104,6 @@
107
104
  border-left: 0;
108
105
  content: " ";
109
106
  background-color: var(--color-check_radio-active);
110
- // transition: all .2s ease-in-out;
111
107
  }
112
108
  }
113
109
  }
@@ -115,7 +111,6 @@
115
111
  // 禁用状态
116
112
  .@{radio-prefix-cls}--disabled {
117
113
  cursor: not-allowed;
118
- // opacity: var(--opacity-30);
119
114
 
120
115
  .@{radio-prefix-cls}__text{
121
116
  color: var(--color-check_radio-text-disable);
@@ -152,11 +147,7 @@
152
147
 
153
148
  display: flex;
154
149
  flex-direction: column;
155
- gap: calc(var(--spacing-check_radio-group-margin_x)*1px);
156
- // .vd-radio-wrapper {
157
- // margin-block-end: calc(var(--spacing-check_radio-group-margin_x)*1px);
158
- // }
159
-
150
+ gap: var(--spacing-check_radio-group-margin_x);
160
151
 
161
152
  &-card{
162
153
  display: flex;
@@ -198,41 +189,42 @@
198
189
 
199
190
 
200
191
  &--large {
201
- height: calc(var(--height-check_radio-radio_button_l) * 1px);
192
+ height: var(--height-check_radio-radio_button_l);
202
193
 
203
194
  .@{radio-button-prefix-cls}-text{
204
195
  color: var(--color-check_radio-radio_button_text-default);
205
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
196
+ font-size: var(--en-single-f-d-r-fontSize);
206
197
  font-weight:var(--en-single-f-d-r-fontWeight);
207
198
  }
208
199
 
209
200
  &::after{
210
- border-radius: calc(var(--radius-check_radio-radio_l) * 2px);
201
+ border-radius: calc(var(--radius-check_radio-radio_l) * 2);
211
202
  }
212
203
  }
213
204
 
214
205
  &--medium {
215
- height: calc(var(--height-check_radio-radio_button_m) * 1px);
206
+ height: var(--height-check_radio-radio_button_m);
207
+
216
208
  .@{radio-button-prefix-cls}-text{
217
209
  color: var(--color-check_radio-radio_button_text-default);
218
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
210
+ font-size: var(--en-single-f-c-r-fontSize);
219
211
  font-weight:var(--en-single-f-c-r-fontWeight);
220
212
  }
221
213
  &::after{
222
- border-radius: calc(var(--radius-check_radio-m) * 2px);
214
+ border-radius: calc(var(--radius-check_radio-m) * 2);
223
215
  }
224
216
  }
225
217
 
226
218
  &--small {
227
- height: calc(var(--height-check_radio-radio_button_s) * 1px);
219
+ height: var(--height-check_radio-radio_button_s);
228
220
 
229
221
  .@{radio-button-prefix-cls}-text{
230
222
  color: var(--color-check_radio-radio_button_text-default);
231
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
223
+ font-size: var(--en-single-f-c-r-fontSize);
232
224
  font-weight:var(--en-single-f-c-r-fontWeight);
233
225
  }
234
226
  &::after{
235
- border-radius: calc(var(--radius-check_radio-s) * 2px);
227
+ border-radius: calc(var(--radius-check_radio-s) * 2);
236
228
  }
237
229
  }
238
230
 
@@ -251,21 +243,21 @@
251
243
 
252
244
  &.@{radio-button-prefix-cls}--large {
253
245
  .@{radio-button-prefix-cls}-text {
254
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
246
+ font-size: var(--en-single-f-d-s-fontSize);
255
247
  font-weight:var(--en-single-f-d-s-fontWeight);
256
248
  }
257
249
  }
258
250
 
259
251
  &.@{radio-button-prefix-cls}--medium {
260
252
  .@{radio-button-prefix-cls}-text {
261
- font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
253
+ font-size: var(--en-single-f-c-s-fontSize);
262
254
  font-weight:var(--en-single-f-c-s-fontWeight);
263
255
  }
264
256
  }
265
257
 
266
258
  &.@{radio-button-prefix-cls}--small {
267
259
  .@{radio-button-prefix-cls}-text {
268
- font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
260
+ font-size: var(--en-single-f-c-s-fontSize);
269
261
  font-weight:var(--en-single-f-c-s-fontWeight);
270
262
  }
271
263
  }
@@ -286,7 +278,7 @@
286
278
  .@{radio-prefix-cls}-group {
287
279
  display: flex;
288
280
  flex-direction: column;
289
- gap: calc(var(--spacing-check_radio-group-margin_x)*1px);
281
+ gap: var(--spacing-check_radio-group-margin_x);
290
282
 
291
283
  &__card{
292
284
  display: flex;
@@ -0,0 +1,6 @@
1
+ import RadioGroup from './index.vue';
2
+ RadioGroup.install = function (Vue) {
3
+ Vue.component(RadioGroup.name, RadioGroup);
4
+ };
5
+
6
+ export default RadioGroup;
@@ -4,7 +4,7 @@
4
4
  </div>
5
5
  </template>
6
6
  <script>
7
- import { findComponentsDownward } from '../assist';
7
+ import { findComponentsDownward } from "../utils/assist";
8
8
 
9
9
  const prefixCls = 'vd-radio-group';
10
10
 
Binary file
@@ -14,8 +14,7 @@
14
14
 
15
15
  <script>
16
16
 
17
- import { themeMixin } from '@p/components/mixins/themeMixin';
18
-
17
+ import { themeMixin } from '../mixins/themeMixin';
19
18
 
20
19
  export default {
21
20
  name: 'vd-result',
@@ -1,4 +1,4 @@
1
- .vd-result{
1
+ .vd-result {
2
2
  height: 100%;
3
3
  margin: 0 auto;
4
4
  text-align: center;
@@ -7,36 +7,38 @@
7
7
  flex-direction: column;
8
8
  justify-content: center;
9
9
 
10
- &-img{
10
+ &-img {
11
11
  margin: 0 auto;
12
12
  width: 160px;
13
- img{
14
- max-width: 100%;
15
- }
13
+ img {
14
+ max-width: 100%;
15
+ }
16
16
  }
17
17
 
18
- &-title{
19
- margin-block-start: calc(var(--spacing-result-title-margin_top) * 1px);
20
- font-size: calc(var(--en-single-f-f-b-fontSize) * 1px);
18
+ &-title {
19
+ margin-top: var(--spacing-result-title-margin_top);
20
+ font-size: var(--en-single-f-f-b-fontSize);
21
21
  font-weight: var(--en-single-f-f-b-fontWeight);
22
- color:var(--color-result-title)
22
+ color: var(--color-result-title);
23
23
  }
24
- &-txt{
25
- margin-block-start: calc(var(--spacing-result-text-margin_top) * 1px);
26
- font-size: calc(var(--en-multi-f-d-r-fontSize) * 1px);
24
+
25
+ &-txt {
26
+ margin-top: var(--spacing-result-text-margin_top);
27
+ font-size: var(--en-multi-f-d-r-fontSize);
27
28
  font-weight: var(--en-multi-f-d-r-fontWeight);
28
- color:var(--color-result-text);
29
- line-height: calc(var(--en-multi-f-d-r-lineHeight) * 1px);
29
+ color: var(--color-result-text);
30
+ line-height: var(--en-multi-f-d-r-lineHeight);
30
31
  }
31
- &-footer{
32
- margin-block-start: calc(var(--spacing-result-text-margin_bottom) * 1px);
33
- padding-inline-start: calc(var(--spacing-result-button-margin_y) * 1px - 20px);
34
- padding-inline-end: calc(var(--spacing-result-button-margin_y) * 1px - 20px);
35
32
 
36
- &-btnx{
33
+ &-footer {
34
+ margin-top: var(--spacing-result-text-margin_bottom);
35
+ padding-left: calc(var(--spacing-result-button-margin_y) - 20px);
36
+ padding-right: calc(var(--spacing-result-button-margin_y) - 20px);
37
+
38
+ &-btnx {
37
39
  display: flex;
38
40
  justify-content: center;
39
- margin-block-start: calc(var(--spacing-result-text_button-margin_top) * 1px);
41
+ margin-top: var(--spacing-result-text_button-margin_top);
40
42
  }
41
43
  }
42
44
  }
Binary file
@@ -23,8 +23,12 @@
23
23
  </template>
24
24
 
25
25
  <script>
26
+ import VdInput from '../input';
26
27
  export default {
27
28
  name: 'vd-search',
29
+ components: {
30
+ VdInput,
31
+ },
28
32
  inheritAttrs: false,
29
33
  props: {
30
34
  value: [String, Number],
@@ -18,11 +18,15 @@
18
18
  </template>
19
19
 
20
20
  <script>
21
+ import VdIcon from '../icon';
21
22
  import clickoutside from "../mixins/clickoutside.js";
22
23
  const prefixCls = 'vd-selector';
23
24
 
24
25
  export default {
25
26
  name: 'vd-selector',
27
+ components: {
28
+ VdIcon
29
+ },
26
30
  directives: {
27
31
  clickoutside
28
32
  },