vdesign-ui 0.2.0 → 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 (109) 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/index.vue +3 -5
  41. package/dist/components/loading/style.less +28 -22
  42. package/dist/components/mixins/languageMixin.js +7 -3
  43. package/dist/components/mixins/outlineConfigPlugin.js +1 -1
  44. package/dist/components/mixins/themeMixin.js +29 -15
  45. package/dist/components/noticebar/index.vue +7 -1
  46. package/dist/components/noticebar/style.less +125 -129
  47. package/dist/components/overlay/index.vue +34 -11
  48. package/dist/components/pagebreak/style.less +18 -19
  49. package/dist/components/popover/index.vue +2 -1
  50. package/dist/components/popover/style.less +39 -39
  51. package/dist/components/radio/index.js +1 -1
  52. package/dist/components/radio/index.vue +1 -1
  53. package/dist/components/radio/style.less +35 -43
  54. package/dist/components/radio-group/index.js +6 -0
  55. package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
  56. package/dist/components/result/completed-dark.png +0 -0
  57. package/dist/components/result/completed.png +0 -0
  58. package/dist/components/result/error-dark.png +0 -0
  59. package/dist/components/result/error.png +0 -0
  60. package/dist/components/result/index.vue +1 -2
  61. package/dist/components/result/style.less +22 -20
  62. package/dist/components/result/wait-dark.png +0 -0
  63. package/dist/components/result/wait.png +0 -0
  64. package/dist/components/{input/search → search}/index.vue +4 -0
  65. package/dist/components/selector/index.vue +4 -0
  66. package/dist/components/selector/style.less +96 -100
  67. package/dist/components/skeleton/style.less +112 -107
  68. package/dist/components/slider/index.vue +1 -1
  69. package/dist/components/slider/style.less +41 -37
  70. package/dist/components/step/style.less +3 -4
  71. package/dist/components/step-item/index.vue +12 -3
  72. package/dist/components/step-item/style.less +61 -60
  73. package/dist/components/{input/stepper → stepper}/index.vue +5 -1
  74. package/dist/components/switch/style.less +8 -8
  75. package/dist/components/tab/index.js +7 -0
  76. package/dist/components/tabs/index.vue +4 -0
  77. package/dist/components/tabs/style.less +97 -105
  78. package/dist/components/tag/style.less +35 -35
  79. package/dist/components/title/index.vue +4 -0
  80. package/dist/components/title/style.less +164 -170
  81. package/dist/components/toast/index.js +9 -3
  82. package/dist/components/toast/style.less +8 -8
  83. package/dist/components/upload/index.vue +4 -0
  84. package/dist/components/upload/style.less +22 -31
  85. package/dist/components/utils/env.js +2 -0
  86. package/dist/token.css +1278 -1278
  87. package/dist/vdesign-ui.common.js +1138 -991
  88. package/dist/vdesign-ui.css +1 -1
  89. package/dist/vdesign-ui.umd.js +1138 -991
  90. package/dist/vdesign-ui.umd.min.js +3 -3
  91. package/package.json +1 -1
  92. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  93. package/dist/components/loading/img_status_loading_white_ani.svg +0 -155
  94. package/dist/components/loading/img_status_refresh_ani.svg +0 -158
  95. package/dist/components/radio/assist.js +0 -34
  96. package/dist/components/radio/style.css +0 -213
  97. package/dist/img/completed-dark.4183a8a8.png +0 -0
  98. package/dist/img/error-dark.b80857da.png +0 -0
  99. package/dist/img/img_status_loading_white_ani.b56fcfae.svg +0 -155
  100. package/dist/img/img_status_refresh_ani.d0e59f12.svg +0 -158
  101. package/dist/img/wait-dark.6aa28731.png +0 -0
  102. /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
  103. /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
  104. /package/dist/components/{input/password → password}/index.js +0 -0
  105. /package/dist/components/{input/password → password}/index.vue +0 -0
  106. /package/dist/components/{input/search → search}/index.js +0 -0
  107. /package/dist/components/{input/stepper → stepper}/index.js +0 -0
  108. /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
  109. /package/dist/components/{checkbox → utils}/assist.js +0 -0
@@ -2,17 +2,16 @@
2
2
 
3
3
  .@{prefix} {
4
4
  // 抽离 css valuable 适应 1px 边框,如:wireframe
5
- --btn-border-radius: calc(var(--radius-button-m) * 1px);
5
+ --btn-border-radius: var(--radius-button-m);
6
6
  --btn-border-color: transparent;
7
- --btn-line-height: calc(var(--height-button-m) * 1px);
8
- // start-btn-css-vars
9
- height: calc(var(--height-button-m) * 1px);
10
- padding-inline-start: calc(var(--spacing-button-m-padding_left) * 1px);
11
- padding-inline-end: calc(var(--spacing-button-m-padding_right) * 1px);
7
+ --btn-line-height: var(--height-button-m);
8
+ height: var(--height-button-m);
9
+ padding-inline-start: var(--spacing-button-m-padding_left);
10
+ padding-inline-end: var(--spacing-button-m-padding_right);
12
11
  border-radius: var(--btn-border-radius);
13
12
  border: 0 solid var(--btn-border-color);
14
- // font-family: var(--en-single-f-c-s-fontFamily);
15
- font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
13
+ /* font-family: var(--en-single-f-c-s-fontFamily); */
14
+ font-size: var(--en-single-f-c-s-fontSize);
16
15
  font-weight: var(--en-single-f-c-s-fontWeight);
17
16
  line-height: var(--btn-line-height);
18
17
  background-color: var(--color-button-primary-bg-default);
@@ -45,7 +44,7 @@
45
44
  display: flex;
46
45
  align-items: center;
47
46
  justify-content: center;
48
- gap: calc(var(--spacing-button-m_icon-margin_y) * 1px);
47
+ gap: var(--spacing-button-m_icon-margin_y);
49
48
  // gap: 4px;
50
49
  // --spacing-button-l_icon-margin_y
51
50
  // --spacing-button-m_icon-margin_y
@@ -99,12 +98,12 @@
99
98
  border-color: transparent;
100
99
  background-color: transparent;
101
100
  color: var(--color-button-border-text-default);
102
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
101
+ font-size: var(--en-single-f-b-r-fontSize);
103
102
  font-weight: var(--en-single-f-c-r-fontWeight);
104
103
  line-height: 1;
105
104
  padding: 0;
106
- min-width: calc(var(--height-button-m) * 1px);
107
- height: calc(var(--height-button-m) * 1px);
105
+ min-width: var(--height-button-m);
106
+ height: var(--height-button-m);
108
107
 
109
108
  &:active {
110
109
  border-color: transparent;
@@ -120,45 +119,45 @@
120
119
 
121
120
  .@{prefix}-inner {
122
121
  flex-direction: column;
123
- gap: calc(var(--spacing-button-icon_m_text-margin_top) * 1px);
122
+ gap: var(--spacing-button-icon_m_text-margin_top);
124
123
  }
125
124
 
126
125
  &.@{prefix}-small {
127
- font-size: calc(var(--en-single-f-a-r-fontSize) * 1px);
126
+ font-size: var(--en-single-f-a-r-fontSize);
128
127
  font-weight: var(--en-single-f-c-r-fontWeight);
129
128
  padding: 0;
130
- min-width: calc(var(--height-button-s) * 1px);
131
- height: calc(var(--height-button-s) * 1px);
129
+ min-width: var(--height-button-s);
130
+ height: var(--height-button-s);
132
131
 
133
132
  .@{prefix}-inner {
134
- gap: calc(var(--spacing-button-icon_s_text-margin_top) * 1px);
133
+ gap: var(--spacing-button-icon_s_text-margin_top);
135
134
  }
136
135
  }
137
136
 
138
137
  &.@{prefix}-medium {
139
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
138
+ font-size: var(--en-single-f-b-r-fontSize);
140
139
  font-weight: var(--en-single-f-c-r-fontWeight);
141
140
  padding: 0;
142
- min-width: calc(var(--height-button-m) * 1px);
143
- height: calc(var(--height-button-m) * 1px);
141
+ min-width: var(--height-button-m);
142
+ height: var(--height-button-m);
144
143
 
145
144
  .@{prefix}-inner {
146
- gap: calc(var(--spacing-button-icon_m_text-margin_top) * 1px);
145
+ gap: var(--spacing-button-icon_m_text-margin_top);
147
146
  }
148
147
  }
149
148
 
150
149
  &.@{prefix}-large {
151
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
150
+ font-size: var(--en-single-f-c-r-fontSize);
152
151
  font-weight: var(--en-single-f-c-r-fontWeight);
153
152
  padding: 0;
154
- min-width: calc(var(--height-button-l) * 1px);
155
- height: calc(var(--height-button-l) * 1px);
153
+ min-width: var(--height-button-l);
154
+ height: var(--height-button-l);
156
155
 
157
156
  .@{prefix}-inner {
158
- gap: calc(var(--spacing-button-icon_l_text-margin_top) * 1px);
157
+ gap: var(--spacing-button-icon_l_text-margin_top);
159
158
  }
160
159
  }
161
- }
160
+ }
162
161
 
163
162
  &-primary {
164
163
  background-color: var(--color-button-primary-bg-default);
@@ -347,24 +346,24 @@
347
346
  }
348
347
 
349
348
  .@{prefix}-inner {
350
- gap: calc(var(--spacing-button-m_icon-margin_y) * 0.5px);
349
+ gap: calc(var(--spacing-button-m_icon-margin_y) * 0.5);
351
350
  }
352
351
 
353
352
  .@{prefix}-small {
354
353
  .@{prefix}-inner {
355
- gap: calc(var(--spacing-button-s_icon-margin_y) * 0.5px);
354
+ gap: calc(var(--spacing-button-s_icon-margin_y) * 0.5);
356
355
  }
357
356
  }
358
357
 
359
358
  .@{prefix}-medium {
360
359
  .@{prefix}-inner {
361
- gap: calc(var(--spacing-button-m_icon-margin_y) * 0.5px);
360
+ gap: calc(var(--spacing-button-m_icon-margin_y) * 0.5);
362
361
  }
363
362
  }
364
363
 
365
364
  .@{prefix}-large {
366
365
  .@{prefix}-inner {
367
- gap: calc(var(--spacing-button-l_icon-margin_y) * 0.5px);
366
+ gap: calc(var(--spacing-button-l_icon-margin_y) * 0.5);
368
367
  }
369
368
  }
370
369
  }
@@ -378,47 +377,45 @@
378
377
  // Button Sizes
379
378
  //
380
379
  &-small {
381
- --btn-border-radius: calc(var(--radius-button-s) * 1px);
382
- --btn-line-height: calc(var(--height-button-s) * 1px);
383
- height: calc(var(--height-button-s) * 1px);
384
- padding-inline-start: calc(var(--spacing-button-s-padding_left) * 1px);
385
- padding-inline-end: calc(var(--spacing-button-s-padding_right) * 1px);
386
- // font-family: var(--en-single-f-c-r-fontFamily);
387
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
388
- font-weight: var(--en-single-f-c-r-fontWeight);
389
-
390
- .@{prefix}-inner {
391
- gap: calc(var(--spacing-button-s_icon-margin_y) * 1px);
392
- }
380
+ --btn-border-radius: var(--radius-button-s);
381
+ --btn-line-height: var(--height-button-s);
382
+ height: var(--height-button-s);
383
+ padding-inline-start: var(--spacing-button-s-padding_left);
384
+ padding-inline-end: var(--spacing-button-s-padding_right);
385
+ font-size: var(--en-single-f-c-r-fontSize);
386
+ font-weight: var(--en-single-f-c-r-fontWeight);
387
+
388
+ .@{prefix}-inner {
389
+ gap: var(--spacing-button-s_icon-margin_y);
393
390
  }
391
+ }
394
392
 
395
- &-medium {
396
- --btn-border-radius: calc(var(--radius-button-m) * 1px);
397
- --btn-line-height: calc(var(--height-button-m) * 1px);
398
- height: calc(var(--height-button-m) * 1px);
399
- padding-inline-start: calc(var(--spacing-button-m-padding_left) * 1px);
400
- padding-inline-end: calc(var(--spacing-button-m-padding_right) * 1px);
401
- // font-family: var(--en-single-f-c-s-fontFamily);
402
- font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
393
+ &-medium {
394
+ --btn-border-radius: var(--radius-button-m);
395
+ --btn-line-height: var(--height-button-m);
396
+ height: var(--height-button-m);
397
+ padding-inline-start: var(--spacing-button-m-padding_left);
398
+ padding-inline-end: var(--spacing-button-m-padding_right);
399
+ font-size: var(--en-single-f-c-s-fontSize);
403
400
 
404
- .@{prefix}-inner {
405
- gap: calc(var(--spacing-button-m_icon-margin_y) * 1px);
406
- }
401
+ .@{prefix}-inner {
402
+ gap: var(--spacing-button-m_icon-margin_y);
407
403
  }
404
+ }
408
405
 
409
- &-large {
410
- --btn-border-radius: calc(var(--radius-button-l) * 1px);
411
- --btn-line-height: calc(var(--height-button-l) * 1px);
412
- height: calc(var(--height-button-l) * 1px);
413
- padding-inline-start: calc(var(--spacing-button-l-padding_left) * 1px);
414
- padding-inline-end: calc(var(--spacing-button-l-padding_right) * 1px);
415
- // font-family: var(--en-single-f-d-s-fontFamily);
416
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
406
+ &-large {
407
+ --btn-border-radius: var(--radius-button-l);
408
+ --btn-line-height: var(--height-button-l);
409
+ height: var(--height-button-l);
410
+ padding-inline-start: var(--spacing-button-l-padding_left);
411
+ padding-inline-end: var(--spacing-button-l-padding_right);
412
+ font-size: var(--en-single-f-d-s-fontSize);
417
413
 
418
- .@{prefix}-inner {
419
- gap: calc(var(--spacing-button-l_icon-margin_y) * 1px);
420
- }
414
+ .@{prefix}-inner {
415
+ gap: var(--spacing-button-l_icon-margin_y);
421
416
  }
417
+ }
418
+
422
419
 
423
420
  //
424
421
  // Button Business
@@ -427,21 +424,20 @@
427
424
  display: flex;
428
425
  align-items: center;
429
426
  justify-content: center;
430
- width: calc(var(--height-button-l) * 3px);
431
- height: calc(var(--height-button-l) * 1px);
427
+ width: calc(var(--height-button-l) * 3);
428
+ height:var(--height-button-l);
432
429
  background-color: var(--color-button-sell-bg-default);
433
- border-radius: calc(var(--radius-button-m) * 1px);
430
+ border-radius: var(--radius-button-m);
434
431
  color: var(--color-button-sell-text-default);
435
- // font-family: var(--en-single-f-d-s-fontFamily);
436
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
432
+ font-size: var(--en-single-f-d-s-fontSize);
437
433
 
438
434
  &::after {
439
435
  content: '';
440
436
  position: absolute;
441
437
  inset-inline-end: -9px;
442
- width: calc(var(--height-button-l) * 1px);
443
- height: calc(var(--height-button-l) * 1px);
444
- border-radius: calc(var(--radius-button-m) * 1px);
438
+ width: var(--height-button-l);
439
+ height: var(--height-button-l);
440
+ border-radius: var(--radius-button-m);
445
441
  background-color: var(--color-button-sell-bg-default);
446
442
  transform: skewX(-21deg);
447
443
  z-index: 0;
@@ -470,21 +466,20 @@
470
466
  display: flex;
471
467
  align-items: center;
472
468
  justify-content: center;
473
- width: calc(var(--height-button-l) * 3px);
474
- height: calc(var(--height-button-l) * 1px);
469
+ width: calc(var(--height-button-l) * 3);
470
+ height: var(--height-button-l);
475
471
  background-color: var(--color-button-buy-bg-default);
476
- border-radius: calc(var(--radius-button-m) * 1px);
472
+ border-radius: var(--radius-button-m);
477
473
  color: var(--color-button-buy-text-default);
478
- // font-family: var(--en-single-f-d-s-fontFamily);
479
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
474
+ font-size: var(--en-single-f-d-s-fontSize);
480
475
 
481
476
  &::after {
482
477
  content: '';
483
478
  position: absolute;
484
479
  inset-inline-start: -9px;
485
- width: calc(var(--height-button-l) * 1px);
486
- height: calc(var(--height-button-l) * 1px);
487
- border-radius: calc(var(--radius-button-m) * 1px);
480
+ width: var(--height-button-l);
481
+ height: var(--height-button-l);
482
+ border-radius: var(--radius-button-m);
488
483
  background-color: var(--color-button-buy-bg-default);
489
484
  transform: skewX(-21deg);
490
485
  z-index: 0;
@@ -533,21 +528,21 @@
533
528
  &-round {
534
529
  --btn-border-radius: 999em;
535
530
  padding-inline: 0;
536
- width: calc(var(--height-button-m) * 1px);
531
+ width: var(--height-button-m);
537
532
 
538
533
  &.@{prefix}-small {
539
- width: calc(var(--height-button-s) * 1px);
540
- padding-inline: 0;
534
+ width: var(--height-button-s);
535
+ padding-inline: 0;
541
536
  }
542
537
 
543
538
  &.@{prefix}-medium {
544
- width: calc(var(--height-button-m) * 1px);
545
- padding-inline: 0;
539
+ width: var(--height-button-m);
540
+ padding-inline: 0;
546
541
  }
547
542
 
548
543
  &.@{prefix}-large {
549
- width: calc(var(--height-button-l) * 1px);
550
- padding-inline: 0;
544
+ width: var(--height-button-l);
545
+ padding-inline: 0;
551
546
  }
552
547
  }
553
548
  }
@@ -42,7 +42,7 @@ export default {
42
42
  inheritAttrs: false, // 确保 $attrs 不绑定到根元素
43
43
 
44
44
  mounted() {
45
- console.log(Locale);
45
+ // console.log(Locale);
46
46
  }
47
47
  };
48
48
  </script>
@@ -3,41 +3,38 @@
3
3
  }
4
4
 
5
5
  .van-calendar__header-subtitle {
6
- height: calc(var(--height-datepicker-title-month_year) * 1px);
7
- line-height: calc(var(--height-datepicker-title-month_year) * 1px);
6
+ height: var(--height-datepicker-title-month_year);
7
+ line-height: var(--height-datepicker-title-month_year);
8
8
  color: var(--color-datepicker-title-month_year);
9
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
9
+ font-size: var(--en-single-f-d-s-fontSize);
10
10
  font-weight: var(--en-single-f-d-s-fontWeight);
11
11
  }
12
12
 
13
13
  .van-calendar__weekdays {
14
14
  padding: 0 20px;
15
- height: calc(var(--height-datepicker-week) * 1px);
15
+ height: var(--height-datepicker-week);
16
16
  color: var(--color-datepicker-text-week);
17
17
  }
18
18
 
19
19
  .van-calendar__weekday {
20
- line-height: calc(var(--height-datepicker-week) * 1px);
21
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
20
+ line-height: var(--height-datepicker-week);
21
+ font-size: var(--en-single-f-b-r-fontSize);
22
22
  font-weight: var(--en-single-f-b-r-fontWeight);
23
23
  }
24
24
 
25
25
  .van-calendar__days {
26
26
  display: flex;
27
- // grid-template-columns: repeat(7,1fr);
28
- // grid-column-gap: calc(var(--spacing-datepicker-date-margin_y) * 1px);
29
27
  padding: 0 20px;
30
28
  }
31
29
 
32
30
  .van-calendar__day {
33
- // width: calc(var(--height-datepicker-date) * 1px);
34
- height: calc(var(--height-datepicker-date) * 1px);
35
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
31
+ height: var(--height-datepicker-date);
32
+ font-size: var(--en-single-f-d-s-fontSize);
36
33
  font-weight: var(--en-single-f-d-s-fontWeight);
37
34
  color: var(--color-datepicker-date-text-default);
38
35
  background-color: var(--color-datepicker-date-bg-default);
39
- margin-block-start: calc(var(--spacing-datepicker-date-margin_top) * 1px);
40
- margin-block-end: calc(var(--spacing-datepicker-date-margin_bottom) * 1px);
36
+ margin-block-start: var(--spacing-datepicker-date-margin_top);
37
+ margin-block-end: var(--spacing-datepicker-date-margin_bottom);
41
38
 
42
39
  &--disabled {
43
40
  color: var(--color-datepicker-date-text-disable);
@@ -45,44 +42,20 @@
45
42
  }
46
43
 
47
44
  &--start {
48
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
45
+ font-size: var(--en-single-f-d-s-fontSize);
49
46
  font-weight: var(--en-single-f-d-s-fontWeight);
50
47
  color: var(--color-datepicker-date-text-active);
51
- // background-color: var(--color-datepicker-date-bg-active);
52
- // border-radius: calc(var(--height-datepicker-date) * 0.5px) 0 0 calc(var(--height-datepicker-date) * 0.5px);
53
48
  border-radius: 0;
54
- // background: url(./start.png) center center no-repeat;
55
49
  background-image: url(./start.png) !important;
56
50
  background-position: center center !important;
57
51
  background-repeat: no-repeat !important;
58
52
  background-size: cover !important;
59
- // &::after{
60
- // content: '';
61
- // position: absolute;
62
- // right: 0;
63
- // top: 0;
64
- // bottom: 0;
65
- // background-color: #1BC47D;
66
- // }
67
53
  }
68
54
 
69
55
  &--middle {
70
56
  color: var(--color-datepicker-date-text-default) !important;
71
57
  background-color: var(--color-datepicker-date_mask-bg-active);
72
58
 
73
- // &::after,&::before{
74
- // content: "";
75
- // display: block;
76
- // position: absolute;
77
- // top: 0;
78
- // width: 4px;
79
- // height: 100%;
80
- // background-color: var(--color-datepicker-date_mask-bg-active);
81
- // opacity: 1;
82
- // }
83
- // &::before{
84
- // left: 0;
85
- // }
86
59
  &::after {
87
60
  background-color: transparent;
88
61
  opacity: 1;
@@ -90,11 +63,10 @@
90
63
  }
91
64
 
92
65
  &--end {
93
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
66
+ font-size: var(--en-single-f-d-s-fontSize);
94
67
  font-weight: var(--en-single-f-d-s-fontWeight);
95
68
  color: var(--color-datepicker-date-text-active);
96
69
  background-color: var(--color-datepicker-date-bg-active);
97
- // border-radius:0 calc(var(--height-datepicker-date) * 0.5px) calc(var(--height-datepicker-date) * 0.5px) 0;
98
70
  border-radius: 0;
99
71
  background-image: url(./end.png) !important;
100
72
  background-position: center center !important;
@@ -121,17 +93,16 @@
121
93
  font-size: 18px;
122
94
  }
123
95
 
124
-
125
96
  .vd-calendar-input {
126
- padding-block-start: calc(var(--spacing-datepicker-range_picker-margin_top) * 1px);
127
- padding-block-end: calc(var(--spacing-datepicker-range_picker-margin_bottom) * 1px);
128
- padding-inline-start: calc(var(--spacing-datepicker-padding_y) * 1px);
129
- padding-inline-end: calc(var(--spacing-datepicker-padding_y) * 1px);
97
+ padding-block-start: var(--spacing-datepicker-range_picker-margin_top);
98
+ padding-block-end: var(--spacing-datepicker-range_picker-margin_bottom);
99
+ padding-inline-start: var(--spacing-datepicker-padding_y);
100
+ padding-inline-end: var(--spacing-datepicker-padding_y);
130
101
 
131
102
  &-inner {
132
103
  display: flex;
133
104
  align-items: center;
134
- border-radius: calc(var(--radius-datepicker-range_picker_bg) * 1px);
105
+ border-radius: var(--radius-datepicker-range_picker_bg);
135
106
  background-color: var(--color-datepicker-range_picker-bg);
136
107
  }
137
108
 
@@ -139,9 +110,9 @@
139
110
  width: 100%;
140
111
  text-align: center;
141
112
  background-color: transparent;
142
- height: calc(var(--height-datepicker-range_picker_bg) * 1px);
143
- line-height: calc(var(--height-datepicker-range_picker_bg) * 1px);
144
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
113
+ height: var(--height-datepicker-range_picker_bg);
114
+ line-height: var(--height-datepicker-range_picker_bg);
115
+ font-size: var(--en-single-f-d-r-fontSize);
145
116
  font-weight: var(--en-single-f-d-r-fontWeight);
146
117
  color: var(--color-datepicker-range_picker-text-active);
147
118
 
@@ -151,8 +122,8 @@
151
122
  }
152
123
 
153
124
  &__line {
154
- width: calc(var(--width-datepicker-range_picker_divider) * 1px);
155
- height: calc(var(--height-datepicker-range_picker_divider) * 1px);
125
+ width: var(--width-datepicker-range_picker_divider);
126
+ height: var(--height-datepicker-range_picker_divider);
156
127
  background-color: var(--color-datepicker-range_picker_divider);
157
128
  }
158
129
  }
@@ -162,6 +133,6 @@
162
133
  }
163
134
 
164
135
  .van-picker__frame {
165
- left: calc(var(--spacing-datepicker-padding_y) * 1px);
166
- right: calc(var(--spacing-datepicker-padding_y) * 1px);
136
+ left: var(--spacing-datepicker-padding_y);
137
+ right: var(--spacing-datepicker-padding_y);
167
138
  }
@@ -44,11 +44,15 @@
44
44
  </label>
45
45
  </template>
46
46
  <script>
47
- import { findComponentUpward } from "./assist";
47
+ import { findComponentUpward } from "../utils/assist";
48
+ import VdIcon from '../icon';
48
49
  const prefixCls = "vd-checkbox";
49
50
 
50
51
  export default {
51
52
  name: "vd-checkbox",
53
+ components: {
54
+ VdIcon
55
+ },
52
56
  props: {
53
57
  value: [String, Number, Boolean], // 复选框的当前值
54
58
  checkboxButton: Boolean, // 是否为复选框按钮
@@ -12,35 +12,36 @@
12
12
  // 普通状态
13
13
  .@{checkbox-prefix-cls} {
14
14
 
15
- &__input{
15
+ &__input {
16
16
  position: relative;
17
- margin-inline-end: calc(var(--spacing-check_radio-icon-margin_right) * 1px);
18
- width: calc(var(--icon-check_radio-sizing) * 1px);
19
- height: calc(var(--icon-check_radio-sizing) * 1px);
17
+ margin-inline-end: var(--spacing-check_radio-icon-margin_right);
18
+ width: var(--icon-check_radio-sizing);
19
+ height: var(--icon-check_radio-sizing);
20
20
  }
21
21
 
22
22
  &__text {
23
23
  color: var(--color-check_radio-text-default);
24
- font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
24
+ font-size: var(--en-single-f-d-r-fontSize);
25
25
  font-weight: var(--en-single-f-d-r-fontWeight);
26
26
  }
27
27
 
28
28
  &__description {
29
29
  line-height: 1;
30
- margin-top: calc(var(--spacing-check_radio-text-margin_top) * 1px);
30
+ margin-top: var(--spacing-check_radio-text-margin_top);
31
31
  color: var(--color-check_radio-text_describe-default);
32
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
32
+ font-size: var(--en-single-f-b-r-fontSize);
33
33
  font-weight: var(--en-single-f-b-r-fontWeight);
34
34
  }
35
35
 
36
36
  .@{checkbox-icon-prefix-cls} {
37
37
  display: block;
38
- width: calc(var(--icon-check_radio-sizing) * 1px);
39
- height: calc(var(--icon-check_radio-sizing) * 1px);
38
+ width: var(--icon-check_radio-sizing);
39
+ height: var(--icon-check_radio-sizing);
40
40
  position: relative;
41
41
  top: 0;
42
42
  left: 0;
43
- &::before{
43
+
44
+ &::before {
44
45
  position: absolute;
45
46
  box-sizing: border-box;
46
47
  content: ' ';
@@ -49,10 +50,9 @@
49
50
  right: -50%;
50
51
  bottom: -50%;
51
52
  left: -50%;
52
- border: 0 solid var(--color-check_radio-default);
53
+ border: 3px solid var(--color-check_radio-default);
53
54
  -webkit-transform: scale(0.5);
54
55
  transform: scale(0.5);
55
- border-width: 3px;
56
56
  }
57
57
  }
58
58
 
@@ -68,16 +68,16 @@
68
68
  cursor: pointer;
69
69
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
70
70
  opacity: 0;
71
-
72
71
  }
73
72
  }
74
73
 
74
+
75
75
  // 选中状态
76
76
  .@{checkbox-prefix-cls}--checked {
77
77
 
78
78
  .@{checkbox-prefix-cls} {
79
79
  &__text {
80
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
80
+ font-size: var(--en-single-f-d-s-fontSize);
81
81
  font-weight: var(--en-single-f-d-s-fontWeight);
82
82
  }
83
83
  }
@@ -139,7 +139,7 @@
139
139
 
140
140
  & + .@{checkbox-prefix-cls}__label {
141
141
  .@{checkbox-prefix-cls}__text {
142
- font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
142
+ font-size: var(--en-single-f-d-s-fontSize);
143
143
  font-weight: var(--en-single-f-d-s-fontWeight);
144
144
  }
145
145
  }
@@ -183,54 +183,52 @@
183
183
  background-color: var(--color-check_radio-check_bg-default);
184
184
 
185
185
  &--large {
186
- height: calc(var(--height-check_radio-check_button_l) * 1px);
187
- border-radius: calc(var(--radius-check_radio-check_l) * 1px);
186
+ height: var(--height-check_radio-check_button_l);
187
+ border-radius: var(--radius-check_radio-check_l);
188
188
 
189
189
  .@{checkbox-button-prefix-cls}__text {
190
- margin-block-start: calc(var(--spacing-check_radio-check_icon-margin_bottom) * 1px);
190
+ margin-block-start: var(--spacing-check_radio-check_icon-margin_bottom);
191
191
  font-size: 12px;
192
- // color: rgba(0, 0, 0, 0.85);
193
192
  color: var(--color-check_radio-radio_button_text-default);
194
193
  }
195
194
 
196
195
  }
197
196
 
198
197
  &--medium {
199
- height: calc(var(--height-check_radio-check_button_m) * 1px);
200
- border-radius: calc(var(--radius-check_radio-m) * 1px);
198
+ height: var(--height-check_radio-check_button_m);
199
+ border-radius: var(--radius-check_radio-m);
201
200
 
202
201
  .@{checkbox-button-prefix-cls}{
203
202
  &__description {
204
- margin-block-start: calc(var(--spacing-check_radio-check_describe-margin_top) * 1px);
203
+ margin-block-start: var(--spacing-check_radio-check_describe-margin_top);
205
204
  font-size: 11px;
206
- // color: rgba(0, 0, 0, 0.3);
207
205
  color: var(--color-check_radio-check_button_text_describe-default);
208
206
  }
209
207
  }
210
208
  }
211
209
 
212
- &--small {
213
- height: calc(var(--height-check_radio-check_button_s) * 1px);
214
- border-radius: calc(var(--radius-check_radio-s) * 1px);
210
+ &--small {
215
211
  display: flex;
216
212
  flex-direction: row;
213
+ height: var(--height-check_radio-check_button_s);
214
+ border-radius: var(--radius-check_radio-s);
217
215
  }
218
216
 
219
217
 
220
218
  &__icon--large {
221
219
  color: var(--color-check_radio-check_button_icon-default);
222
- font-size: calc(var(--icon-check_radio-check_l) * 1px);
220
+ font-size: var(--icon-check_radio-check_l);
223
221
  }
224
222
 
225
223
  &__icon--small {
226
- font-size: calc(var(--icon-check_radio-check_s) * 1px);
224
+ font-size: var(--icon-check_radio-check_s);
227
225
  color: var(--text-color-h2);
228
- margin-inline-end: calc(var(--spacing-check_radio-check_icon-margin_right) * 1px);
226
+ margin-inline-end: var(--spacing-check_radio-check_icon-margin_right);
229
227
  }
230
228
 
231
229
  &__text {
232
230
  color: var(--color-check_radio-radio_button_text-default);
233
- font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
231
+ font-size: var(--en-single-f-c-r-fontSize);
234
232
  font-weight: var(--en-single-f-c-r-fontWeight);
235
233
  }
236
234
 
@@ -240,7 +238,7 @@
240
238
 
241
239
  .@{checkbox-button-prefix-cls}__text {
242
240
  color: var(--color-check_radio-radio_button_text-active);
243
- font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
241
+ font-size: var(--en-single-f-c-s-fontSize);
244
242
  font-weight: var(--en-single-f-c-s-fontWeight);
245
243
  }
246
244
 
@@ -276,7 +274,7 @@
276
274
  .@{checkbox-prefix-cls}-group {
277
275
  display: flex;
278
276
  flex-direction: column;
279
- gap: calc(var(--spacing-check_radio-group-margin_x)*1px);
277
+ gap: var(--spacing-check_radio-group-margin_x);
280
278
 
281
279
  &__card{
282
280
  display: flex;
@@ -0,0 +1,7 @@
1
+ import CheckboxGroup from './index.vue';
2
+
3
+ CheckboxGroup.install = function (Vue) {
4
+ Vue.component(CheckboxGroup.name, CheckboxGroup);
5
+ };
6
+
7
+ export default CheckboxGroup;