vdesign-ui 0.2.1 → 0.2.3

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 (107) 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 +76 -28
  7. package/dist/components/activityviews/style.less +59 -45
  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 +9 -1
  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 +35 -20
  27. package/dist/components/empty/style.less +33 -36
  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 -4
  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/popup/index.js +7 -0
  51. package/dist/components/popup/index.vue +243 -0
  52. package/dist/components/radio/index.js +1 -1
  53. package/dist/components/radio/index.vue +1 -1
  54. package/dist/components/radio/style.less +35 -43
  55. package/dist/components/radio-group/index.js +6 -0
  56. package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
  57. package/dist/components/result/completed-dark.png +0 -0
  58. package/dist/components/result/completed.png +0 -0
  59. package/dist/components/result/error-dark.png +0 -0
  60. package/dist/components/result/error.png +0 -0
  61. package/dist/components/result/index.vue +1 -2
  62. package/dist/components/result/style.less +22 -20
  63. package/dist/components/result/wait-dark.png +0 -0
  64. package/dist/components/result/wait.png +0 -0
  65. package/dist/components/{input/search → search}/index.vue +4 -0
  66. package/dist/components/selector/index.vue +4 -0
  67. package/dist/components/selector/style.less +96 -100
  68. package/dist/components/skeleton/index.vue +156 -92
  69. package/dist/components/skeleton/style.less +112 -107
  70. package/dist/components/slider/index.vue +1 -1
  71. package/dist/components/slider/style.less +41 -37
  72. package/dist/components/step/style.less +3 -4
  73. package/dist/components/step-item/index.vue +12 -3
  74. package/dist/components/step-item/style.less +61 -60
  75. package/dist/components/{input/stepper → stepper}/index.vue +5 -1
  76. package/dist/components/switch/style.less +8 -8
  77. package/dist/components/tab/index.js +7 -0
  78. package/dist/components/tabs/index.vue +4 -0
  79. package/dist/components/tabs/style.less +97 -105
  80. package/dist/components/tag/style.less +35 -35
  81. package/dist/components/title/index.vue +4 -0
  82. package/dist/components/title/style.less +164 -170
  83. package/dist/components/toast/index.js +9 -3
  84. package/dist/components/toast/style.less +8 -8
  85. package/dist/components/upload/index.vue +4 -0
  86. package/dist/components/upload/style.less +22 -31
  87. package/dist/components/utils/env.js +2 -0
  88. package/dist/token.css +1278 -1278
  89. package/dist/vdesign-ui.common.js +1315 -1076
  90. package/dist/vdesign-ui.css +1 -1
  91. package/dist/vdesign-ui.umd.js +1315 -1076
  92. package/dist/vdesign-ui.umd.min.js +3 -3
  93. package/package.json +1 -1
  94. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  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/wait-dark.6aa28731.png +0 -0
  100. /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
  101. /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
  102. /package/dist/components/{input/password → password}/index.js +0 -0
  103. /package/dist/components/{input/password → password}/index.vue +0 -0
  104. /package/dist/components/{input/search → search}/index.js +0 -0
  105. /package/dist/components/{input/stepper → stepper}/index.js +0 -0
  106. /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
  107. /package/dist/components/{checkbox → utils}/assist.js +0 -0
@@ -1,66 +1,54 @@
1
1
  @badge-prefix-cls: vd-badge;
2
2
 
3
- .@{badge-prefix-cls}{
3
+ .@{badge-prefix-cls} {
4
4
  position: relative;
5
5
  display: inline-flex;
6
6
  line-height: 1;
7
- &__content{
7
+
8
+ &__content {
8
9
  text-align: center;
9
10
  white-space: nowrap;
10
11
  background-color: var(--color-badge-bg);
11
- border-radius: calc(var(--radius-badge-count) * 1px);
12
+ border-radius: var(--radius-badge-count);
12
13
  color: var(--color-badge-text);
13
14
  display: inline-block;
14
- font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
15
+ font-size: var(--en-single-f-b-r-fontSize);
15
16
  font-weight: var(--en-single-f-b-r-fontWeight);
16
- min-width: calc(var(--height-badge-count) * 1px);
17
- height: calc(var(--height-badge-count) * 1px);
18
- // line-height: calc(var(--height-badge-count) * 1px);
19
- padding: calc(var(--spacing-badge-count-padding_x) * 1px) calc(var(--spacing-badge-count-padding_y) * 1px);
20
- // padding: 0 4px;
21
-
22
- // &::before {
23
- // content: '';
24
- // display: inline-block;
25
- // vertical-align: middle;
26
- // width: 0;
27
- // height: 100%;
28
- // margin-top: 1px;
29
- // }
17
+ min-width: var(--height-badge-count);
18
+ height: var(--height-badge-count);
19
+ padding: var(--spacing-badge-count-padding_x) var(--spacing-badge-count-padding_y);
30
20
  }
31
- .vd-is-dot{
21
+
22
+ .vd-is-dot {
32
23
  background-color: transparent;
33
- &::before{
24
+ &::before {
34
25
  content: '';
35
26
  display: inline-block;
36
- width: calc(var(--width-badge-dot) * 1px);
37
- height: calc(var(--height-badge-dot) * 1px);
27
+ width: var(--width-badge-dot);
28
+ height: var(--height-badge-dot);
38
29
  background-color: var(--color-badge-bg);
39
- border-radius: calc(var(--radius-badge-count) * 1px);
40
-
30
+ border-radius: var(--radius-badge-count);
41
31
  }
42
-
43
32
  }
44
33
 
45
- .vd-is-fixed{
34
+ .vd-is-fixed {
46
35
  position: absolute;
47
36
  top: 0;
48
37
  right: 0;
49
- transform: translate(50%,-50%);
38
+ transform: translate(50%, -50%);
50
39
  }
51
40
 
52
- .vd-ltr{
41
+ .vd-ltr {
53
42
  direction: ltr;
54
43
  }
55
44
  }
56
45
 
57
-
58
- [lang = 'ar']{
59
- .@{badge-prefix-cls}{
60
- .vd-is-fixed{
46
+ [lang='ar'] {
47
+ .@{badge-prefix-cls} {
48
+ .vd-is-fixed {
61
49
  left: 0;
62
50
  right: auto;
63
- transform: translate(-50%,-50%);
51
+ transform: translate(-50%, -50%);
64
52
  }
65
53
  }
66
- }
54
+ }
@@ -8,8 +8,12 @@
8
8
  </button>
9
9
  </template>
10
10
  <script>
11
+ import VdIcon from '../icon';
11
12
  export default {
12
13
  name: 'vd-button',
14
+ components: {
15
+ VdIcon
16
+ },
13
17
  props: {
14
18
  type: {
15
19
  type: String,
@@ -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, // 是否为复选框按钮