vdesign-ui 0.2.9 → 0.2.12

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 (165) hide show
  1. package/README.md +78 -78
  2. package/dist/components/actionbar/index.js +8 -8
  3. package/dist/components/actionbar/index.vue +39 -39
  4. package/dist/components/actionbar/style.less +44 -44
  5. package/dist/components/actionbar-cell/index.js +7 -7
  6. package/dist/components/actionbar-cell/index.vue +38 -38
  7. package/dist/components/actions/index.js +6 -6
  8. package/dist/components/actions/index.vue +76 -76
  9. package/dist/components/actions/style.less +109 -109
  10. package/dist/components/actions-cell/index.js +6 -6
  11. package/dist/components/actions-cell/index.vue +94 -94
  12. package/dist/components/actions-cell/style.less +38 -38
  13. package/dist/components/activityviews/index.js +8 -8
  14. package/dist/components/activityviews/index.vue +192 -192
  15. package/dist/components/activityviews/style.less +151 -151
  16. package/dist/components/badge/index.js +8 -8
  17. package/dist/components/badge/index.vue +49 -49
  18. package/dist/components/badge/style.less +54 -54
  19. package/dist/components/button/index.js +8 -8
  20. package/dist/components/button/index.vue +93 -93
  21. package/dist/components/button/style.less +558 -558
  22. package/dist/components/calendar/index-element.vue +84 -84
  23. package/dist/components/calendar/index.js +7 -7
  24. package/dist/components/calendar/index.vue +52 -52
  25. package/dist/components/calendar/style.less +138 -138
  26. package/dist/components/checkbox/index.js +8 -8
  27. package/dist/components/checkbox/index.vue +161 -161
  28. package/dist/components/checkbox/style.less +288 -288
  29. package/dist/components/checkbox-group/index.js +7 -7
  30. package/dist/components/checkbox-group/index.vue +69 -69
  31. package/dist/components/common/state/index.vue +33 -33
  32. package/dist/components/common/state/style.less +47 -47
  33. package/dist/components/data-list/index.js +10 -10
  34. package/dist/components/data-list/index.vue +19 -19
  35. package/dist/components/data-list/style.less +623 -623
  36. package/dist/components/datetime-picker/index.js +7 -7
  37. package/dist/components/datetime-picker/index.vue +37 -37
  38. package/dist/components/datetime-picker/style.less +23 -23
  39. package/dist/components/dialog/index.js +8 -8
  40. package/dist/components/dialog/index.vue +164 -164
  41. package/dist/components/dialog/overlay-manager.js +18 -18
  42. package/dist/components/dialog/style.less +138 -138
  43. package/dist/components/divider/index.js +8 -8
  44. package/dist/components/divider/index.vue +54 -54
  45. package/dist/components/divider/style.less +92 -92
  46. package/dist/components/dropdown/index.js +8 -8
  47. package/dist/components/dropdown/index.vue +218 -218
  48. package/dist/components/dropdown/style.less +432 -432
  49. package/dist/components/empty/index.js +8 -8
  50. package/dist/components/empty/index.vue +138 -138
  51. package/dist/components/empty/style.less +60 -60
  52. package/dist/components/footer/index.js +6 -6
  53. package/dist/components/footer/index.vue +33 -33
  54. package/dist/components/footer/style.less +20 -20
  55. package/dist/components/footnav/index.js +6 -6
  56. package/dist/components/footnav/index.vue +93 -93
  57. package/dist/components/footnav/style.less +22 -22
  58. package/dist/components/footnav-item/index.js +6 -6
  59. package/dist/components/footnav-item/index.vue +50 -50
  60. package/dist/components/footnav-item/style.less +39 -39
  61. package/dist/components/form/index.js +6 -6
  62. package/dist/components/form/index.vue +12 -12
  63. package/dist/components/headnav/index.js +6 -6
  64. package/dist/components/headnav/index.vue +185 -185
  65. package/dist/components/headnav/style.less +231 -231
  66. package/dist/components/icon/font/iconfont.css +163 -163
  67. package/dist/components/icon/font/iconfont.js +5 -5
  68. package/dist/components/icon/index.js +9 -9
  69. package/dist/components/icon/index.vue +96 -96
  70. package/dist/components/icon/style.less +44 -44
  71. package/dist/components/input/calcTextareaHeight.js +162 -162
  72. package/dist/components/input/index.js +8 -8
  73. package/dist/components/input/index.vue +345 -345
  74. package/dist/components/input/style.less +470 -470
  75. package/dist/components/list/index.js +8 -8
  76. package/dist/components/list/index.vue +152 -152
  77. package/dist/components/list/style.less +213 -213
  78. package/dist/components/loading/index.js +6 -6
  79. package/dist/components/loading/index.vue +68 -68
  80. package/dist/components/loading/style.less +53 -53
  81. package/dist/components/mixins/clickoutside.js +81 -81
  82. package/dist/components/mixins/languageMixin.js +41 -41
  83. package/dist/components/mixins/outlineConfigPlugin.js +45 -45
  84. package/dist/components/mixins/themeMixin.js +43 -43
  85. package/dist/components/noticebar/index.js +8 -8
  86. package/dist/components/noticebar/index.vue +258 -258
  87. package/dist/components/noticebar/style.less +328 -328
  88. package/dist/components/overlay/index.js +8 -8
  89. package/dist/components/overlay/index.vue +184 -184
  90. package/dist/components/overlay/style.less +23 -23
  91. package/dist/components/pagebreak/index.js +6 -6
  92. package/dist/components/pagebreak/index.vue +67 -67
  93. package/dist/components/pagebreak/style.less +41 -41
  94. package/dist/components/password/index.js +8 -8
  95. package/dist/components/password/index.vue +60 -60
  96. package/dist/components/popover/index.js +8 -8
  97. package/dist/components/popover/index.vue +100 -100
  98. package/dist/components/popover/style.less +346 -346
  99. package/dist/components/popover/vue-popover.vue +314 -314
  100. package/dist/components/popup/index.js +7 -7
  101. package/dist/components/popup/index.vue +243 -243
  102. package/dist/components/radio/index.js +8 -8
  103. package/dist/components/radio/index.vue +184 -184
  104. package/dist/components/radio/style.less +293 -293
  105. package/dist/components/radio-group/index.js +6 -6
  106. package/dist/components/radio-group/index.vue +58 -58
  107. package/dist/components/result/index.js +8 -8
  108. package/dist/components/result/index.vue +73 -73
  109. package/dist/components/result/style.less +43 -43
  110. package/dist/components/search/index.js +8 -8
  111. package/dist/components/search/index.vue +66 -66
  112. package/dist/components/selector/index.js +8 -8
  113. package/dist/components/selector/index.vue +161 -161
  114. package/dist/components/selector/style.less +484 -484
  115. package/dist/components/skeleton/index.js +6 -6
  116. package/dist/components/skeleton/index.vue +207 -206
  117. package/dist/components/skeleton/style.less +196 -196
  118. package/dist/components/slider/draggable.js +49 -49
  119. package/dist/components/slider/index.js +6 -6
  120. package/dist/components/slider/index.vue +167 -167
  121. package/dist/components/slider/style.less +99 -99
  122. package/dist/components/slider/utils.js +59 -59
  123. package/dist/components/step/index.js +7 -7
  124. package/dist/components/step/index.vue +48 -48
  125. package/dist/components/step/style.less +57 -57
  126. package/dist/components/step-item/index.js +7 -7
  127. package/dist/components/step-item/index.vue +126 -126
  128. package/dist/components/step-item/style.less +362 -362
  129. package/dist/components/stepper/index.js +8 -8
  130. package/dist/components/stepper/index.vue +146 -146
  131. package/dist/components/style/index.vue +42 -42
  132. package/dist/components/switch/index.js +8 -8
  133. package/dist/components/switch/index.vue +72 -72
  134. package/dist/components/switch/style.less +56 -56
  135. package/dist/components/tab/index.js +7 -7
  136. package/dist/components/tab/index.vue +94 -93
  137. package/dist/components/tabs/index.js +8 -8
  138. package/dist/components/tabs/index.vue +281 -271
  139. package/dist/components/tabs/style.less +408 -409
  140. package/dist/components/tag/index.js +6 -6
  141. package/dist/components/tag/index.vue +64 -64
  142. package/dist/components/tag/style.less +210 -210
  143. package/dist/components/title/index.js +8 -8
  144. package/dist/components/title/index.vue +99 -99
  145. package/dist/components/title/style.less +187 -187
  146. package/dist/components/toast/index.js +97 -86
  147. package/dist/components/toast/index.vue +49 -49
  148. package/dist/components/toast/style.less +57 -57
  149. package/dist/components/transition/index.js +8 -8
  150. package/dist/components/transition/index.vue +13 -13
  151. package/dist/components/transition/style.less +208 -208
  152. package/dist/components/upload/index.js +6 -6
  153. package/dist/components/upload/index.vue +106 -106
  154. package/dist/components/upload/style.less +147 -147
  155. package/dist/components/utils/assist.js +34 -34
  156. package/dist/components/utils/env.js +21 -21
  157. package/dist/locale/ar.js +97 -97
  158. package/dist/locale/en.js +97 -97
  159. package/dist/locale/zh.js +97 -97
  160. package/dist/token.css +2988 -2988
  161. package/dist/vdesign-ui.common.js +308 -8512
  162. package/dist/vdesign-ui.css +1 -1
  163. package/dist/vdesign-ui.umd.js +312 -8516
  164. package/dist/vdesign-ui.umd.min.js +2 -8
  165. package/package.json +113 -113
@@ -1,289 +1,289 @@
1
- @checkbox-prefix-cls: vd-checkbox;
2
- @checkbox-button-prefix-cls: vd-checkbox-button;
3
- @checkbox-icon-prefix-cls: ~"@{checkbox-prefix-cls}__icon";
4
-
5
- .@{checkbox-prefix-cls} {
6
- cursor: pointer;
7
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
8
- display: flex;
9
- -webkit-tap-highlight-color: transparent;
10
- }
11
-
12
- // 普通状态
13
- .@{checkbox-prefix-cls} {
14
-
15
- &__input {
16
- position: relative;
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
- }
21
-
22
- &__text {
23
- color: var(--color-check_radio-text-default);
24
- font-size: var(--en-single-f-d-r-fontSize);
25
- font-weight: var(--en-single-f-d-r-fontWeight);
26
- }
27
-
28
- &__description {
29
- line-height: 1;
30
- margin-top: var(--spacing-check_radio-text-margin_top);
31
- color: var(--color-check_radio-text_describe-default);
32
- font-size: var(--en-single-f-b-r-fontSize);
33
- font-weight: var(--en-single-f-b-r-fontWeight);
34
- }
35
-
36
- .@{checkbox-icon-prefix-cls} {
37
- display: block;
38
- width: var(--icon-check_radio-sizing);
39
- height: var(--icon-check_radio-sizing);
40
- position: relative;
41
- top: 0;
42
- left: 0;
43
-
44
- &::before {
45
- position: absolute;
46
- box-sizing: border-box;
47
- content: ' ';
48
- pointer-events: none;
49
- top: -50%;
50
- right: -50%;
51
- bottom: -50%;
52
- left: -50%;
53
- border: 3px solid var(--color-check_radio-default);
54
- -webkit-transform: scale(0.5);
55
- transform: scale(0.5);
56
- }
57
- }
58
-
59
- &__original {
60
- width: 100%;
61
- height: 100%;
62
- position: absolute;
63
- top: 0;
64
- bottom: 0;
65
- left: 0;
66
- right: 0;
67
- z-index: 1;
68
- cursor: pointer;
69
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
70
- opacity: 0;
71
- }
72
- }
73
-
74
-
75
- // 选中状态
76
- .@{checkbox-prefix-cls}--checked {
77
-
78
- .@{checkbox-prefix-cls} {
79
- &__text {
80
- font-size: var(--en-single-f-d-s-fontSize);
81
- font-weight: var(--en-single-f-d-s-fontWeight);
82
- }
83
- }
84
-
85
- .@{checkbox-icon-prefix-cls} {
86
- background: var(--color-check_radio-active);
87
- border-radius: 2px;
88
- border: 0;
89
- &::after{
90
- content: "";
91
- box-sizing: content-box;
92
- display: table;
93
- width: 4px;
94
- height: 8px;
95
- position: absolute;
96
- top: 2px;
97
- left: 5px;
98
- border: 2px solid var(--bg-color-1);
99
- border-top: 0;
100
- border-left: 0;
101
- transform: rotate(45deg) scale(1);
102
- }
103
- &::before{
104
- display: none;
105
- }
106
- }
107
- }
108
-
109
-
110
- // 禁用
111
- .@{checkbox-prefix-cls}--disabled {
112
- cursor: not-allowed;
113
- // opacity: var(--opacity-30);
114
-
115
- .@{checkbox-icon-prefix-cls} {
116
- &::before{
117
- border-color: var(--color-check_radio-disable);
118
- }
119
- }
120
-
121
- .@{checkbox-prefix-cls}__text{
122
- color: var(--color-check_radio-text-disable);
123
- }
124
-
125
- .@{checkbox-prefix-cls}__description{
126
- color: var(--color-check_radio-text_describe-disable);
127
- }
128
-
129
- }
130
-
131
- .@{checkbox-prefix-cls}--checked.@{checkbox-prefix-cls}--disabled{
132
- .@{checkbox-icon-prefix-cls} {
133
- background: var(--color-check_radio-active-disable);
134
- }
135
- }
136
-
137
- // 半选状态
138
- .@{checkbox-prefix-cls}--indeterminate {
139
-
140
- & + .@{checkbox-prefix-cls}__label {
141
- .@{checkbox-prefix-cls}__text {
142
- font-size: var(--en-single-f-d-s-fontSize);
143
- font-weight: var(--en-single-f-d-s-fontWeight);
144
- }
145
- }
146
-
147
- .@{checkbox-icon-prefix-cls} {
148
- background: #1BC47D;
149
- border-radius: 2px;
150
- border: 0;
151
- &::after{
152
- content: "";
153
- width: 9px;
154
- height: 2px;
155
- position: absolute;
156
- left: 50%;
157
- top: 50%;
158
- transform: translate(-50%, -50%);
159
- border: 0;
160
- background-color: var(--bg-color-1);
161
- }
162
-
163
- &::before{
164
- display: none;
165
- }
166
- }
167
-
168
- }
169
-
170
-
171
-
172
-
173
-
174
- .@{checkbox-button-prefix-cls}{
175
- position: relative;
176
- display: inline-flex;
177
- align-items: center;
178
- flex-direction: column;
179
- justify-content: center;
180
- line-height: 1;
181
- width: 100%;
182
- -webkit-tap-highlight-color: transparent;
183
- background-color: var(--color-check_radio-check_bg-default);
184
-
185
- &--large {
186
- height: var(--height-check_radio-check_button_l);
187
- border-radius: var(--radius-check_radio-check_l);
188
-
189
- .@{checkbox-button-prefix-cls}__text {
190
- margin-block-start: var(--spacing-check_radio-check_icon-margin_bottom);
191
- font-size: 12px;
192
- color: var(--color-check_radio-radio_button_text-default);
193
- }
194
-
195
- }
196
-
197
- &--medium {
198
- height: var(--height-check_radio-check_button_m);
199
- border-radius: var(--radius-check_radio-m);
200
-
201
- .@{checkbox-button-prefix-cls}{
202
- &__description {
203
- margin-block-start: var(--spacing-check_radio-check_describe-margin_top);
204
- font-size: 11px;
205
- color: var(--color-check_radio-check_button_text_describe-default);
206
- }
207
- }
208
- }
209
-
210
- &--small {
211
- display: flex;
212
- flex-direction: row;
213
- height: var(--height-check_radio-check_button_s);
214
- border-radius: var(--radius-check_radio-s);
215
- }
216
-
217
-
218
- &__icon--large {
219
- color: var(--color-check_radio-check_button_icon-default);
220
- font-size: var(--icon-check_radio-check_l);
221
- }
222
-
223
- &__icon--small {
224
- font-size: var(--icon-check_radio-check_s);
225
- color: var(--text-color-h2);
226
- margin-inline-end: var(--spacing-check_radio-check_icon-margin_right);
227
- }
228
-
229
- &__text {
230
- color: var(--color-check_radio-radio_button_text-default);
231
- font-size: var(--en-single-f-c-r-fontSize);
232
- font-weight: var(--en-single-f-c-r-fontWeight);
233
- }
234
-
235
- &--checked {
236
- background-color: var(--color-check_radio-check_bg-active);
237
- border-color: var(--color-check_radio-radio_border-active);
238
-
239
- .@{checkbox-button-prefix-cls}__text {
240
- color: var(--color-check_radio-radio_button_text-active);
241
- font-size: var(--en-single-f-c-s-fontSize);
242
- font-weight: var(--en-single-f-c-s-fontWeight);
243
- }
244
-
245
- .@{checkbox-button-prefix-cls}__icon--large,
246
- .@{checkbox-button-prefix-cls}__icon--small,
247
- .@{checkbox-button-prefix-cls}__description {
248
- color: var(--color-check_radio-check_button_icon-active);
249
- }
250
-
251
- &.@{checkbox-button-prefix-cls}{
252
- &--large{
253
- .@{checkbox-button-prefix-cls}__text {
254
- font-size: 12px;
255
- }
256
- }
257
-
258
- }
259
- }
260
-
261
- &--disabled{
262
- cursor: not-allowed;
263
- .@{checkbox-button-prefix-cls}__text {
264
- color: var(--color-check_radio-radio_button_text-disable);
265
- }
266
- .@{checkbox-button-prefix-cls}__icon--large,
267
- .@{checkbox-button-prefix-cls}__icon--small,
268
- .@{checkbox-button-prefix-cls}__description{
269
- color: var(--color-check_radio-check_button_icon-disable);
270
- }
271
- }
272
- }
273
-
274
- .@{checkbox-prefix-cls}-group {
275
- display: flex;
276
- flex-direction: column;
277
- gap: var(--spacing-check_radio-group-margin_x);
278
-
279
- &__card{
280
- display: flex;
281
- flex-wrap: wrap;
282
- flex-direction: row;
283
- gap: 12px;
284
- }
285
-
286
- .@{checkbox-button-prefix-cls}{
287
- flex: 1;
288
- }
1
+ @checkbox-prefix-cls: vd-checkbox;
2
+ @checkbox-button-prefix-cls: vd-checkbox-button;
3
+ @checkbox-icon-prefix-cls: ~"@{checkbox-prefix-cls}__icon";
4
+
5
+ .@{checkbox-prefix-cls} {
6
+ cursor: pointer;
7
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
8
+ display: flex;
9
+ -webkit-tap-highlight-color: transparent;
10
+ }
11
+
12
+ // 普通状态
13
+ .@{checkbox-prefix-cls} {
14
+
15
+ &__input {
16
+ position: relative;
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
+ }
21
+
22
+ &__text {
23
+ color: var(--color-check_radio-text-default);
24
+ font-size: var(--en-single-f-d-r-fontSize);
25
+ font-weight: var(--en-single-f-d-r-fontWeight);
26
+ }
27
+
28
+ &__description {
29
+ line-height: 1;
30
+ margin-top: var(--spacing-check_radio-text-margin_top);
31
+ color: var(--color-check_radio-text_describe-default);
32
+ font-size: var(--en-single-f-b-r-fontSize);
33
+ font-weight: var(--en-single-f-b-r-fontWeight);
34
+ }
35
+
36
+ .@{checkbox-icon-prefix-cls} {
37
+ display: block;
38
+ width: var(--icon-check_radio-sizing);
39
+ height: var(--icon-check_radio-sizing);
40
+ position: relative;
41
+ top: 0;
42
+ left: 0;
43
+
44
+ &::before {
45
+ position: absolute;
46
+ box-sizing: border-box;
47
+ content: ' ';
48
+ pointer-events: none;
49
+ top: -50%;
50
+ right: -50%;
51
+ bottom: -50%;
52
+ left: -50%;
53
+ border: 3px solid var(--color-check_radio-default);
54
+ -webkit-transform: scale(0.5);
55
+ transform: scale(0.5);
56
+ }
57
+ }
58
+
59
+ &__original {
60
+ width: 100%;
61
+ height: 100%;
62
+ position: absolute;
63
+ top: 0;
64
+ bottom: 0;
65
+ left: 0;
66
+ right: 0;
67
+ z-index: 1;
68
+ cursor: pointer;
69
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
70
+ opacity: 0;
71
+ }
72
+ }
73
+
74
+
75
+ // 选中状态
76
+ .@{checkbox-prefix-cls}--checked {
77
+
78
+ .@{checkbox-prefix-cls} {
79
+ &__text {
80
+ font-size: var(--en-single-f-d-s-fontSize);
81
+ font-weight: var(--en-single-f-d-s-fontWeight);
82
+ }
83
+ }
84
+
85
+ .@{checkbox-icon-prefix-cls} {
86
+ background: var(--color-check_radio-active);
87
+ border-radius: 2px;
88
+ border: 0;
89
+ &::after{
90
+ content: "";
91
+ box-sizing: content-box;
92
+ display: table;
93
+ width: 4px;
94
+ height: 8px;
95
+ position: absolute;
96
+ top: 2px;
97
+ left: 5px;
98
+ border: 2px solid var(--bg-color-1);
99
+ border-top: 0;
100
+ border-left: 0;
101
+ transform: rotate(45deg) scale(1);
102
+ }
103
+ &::before{
104
+ display: none;
105
+ }
106
+ }
107
+ }
108
+
109
+
110
+ // 禁用
111
+ .@{checkbox-prefix-cls}--disabled {
112
+ cursor: not-allowed;
113
+ // opacity: var(--opacity-30);
114
+
115
+ .@{checkbox-icon-prefix-cls} {
116
+ &::before{
117
+ border-color: var(--color-check_radio-disable);
118
+ }
119
+ }
120
+
121
+ .@{checkbox-prefix-cls}__text{
122
+ color: var(--color-check_radio-text-disable);
123
+ }
124
+
125
+ .@{checkbox-prefix-cls}__description{
126
+ color: var(--color-check_radio-text_describe-disable);
127
+ }
128
+
129
+ }
130
+
131
+ .@{checkbox-prefix-cls}--checked.@{checkbox-prefix-cls}--disabled{
132
+ .@{checkbox-icon-prefix-cls} {
133
+ background: var(--color-check_radio-active-disable);
134
+ }
135
+ }
136
+
137
+ // 半选状态
138
+ .@{checkbox-prefix-cls}--indeterminate {
139
+
140
+ & + .@{checkbox-prefix-cls}__label {
141
+ .@{checkbox-prefix-cls}__text {
142
+ font-size: var(--en-single-f-d-s-fontSize);
143
+ font-weight: var(--en-single-f-d-s-fontWeight);
144
+ }
145
+ }
146
+
147
+ .@{checkbox-icon-prefix-cls} {
148
+ background: #1BC47D;
149
+ border-radius: 2px;
150
+ border: 0;
151
+ &::after{
152
+ content: "";
153
+ width: 9px;
154
+ height: 2px;
155
+ position: absolute;
156
+ left: 50%;
157
+ top: 50%;
158
+ transform: translate(-50%, -50%);
159
+ border: 0;
160
+ background-color: var(--bg-color-1);
161
+ }
162
+
163
+ &::before{
164
+ display: none;
165
+ }
166
+ }
167
+
168
+ }
169
+
170
+
171
+
172
+
173
+
174
+ .@{checkbox-button-prefix-cls}{
175
+ position: relative;
176
+ display: inline-flex;
177
+ align-items: center;
178
+ flex-direction: column;
179
+ justify-content: center;
180
+ line-height: 1;
181
+ width: 100%;
182
+ -webkit-tap-highlight-color: transparent;
183
+ background-color: var(--color-check_radio-check_bg-default);
184
+
185
+ &--large {
186
+ height: var(--height-check_radio-check_button_l);
187
+ border-radius: var(--radius-check_radio-check_l);
188
+
189
+ .@{checkbox-button-prefix-cls}__text {
190
+ margin-block-start: var(--spacing-check_radio-check_icon-margin_bottom);
191
+ font-size: 12px;
192
+ color: var(--color-check_radio-radio_button_text-default);
193
+ }
194
+
195
+ }
196
+
197
+ &--medium {
198
+ height: var(--height-check_radio-check_button_m);
199
+ border-radius: var(--radius-check_radio-m);
200
+
201
+ .@{checkbox-button-prefix-cls}{
202
+ &__description {
203
+ margin-block-start: var(--spacing-check_radio-check_describe-margin_top);
204
+ font-size: 11px;
205
+ color: var(--color-check_radio-check_button_text_describe-default);
206
+ }
207
+ }
208
+ }
209
+
210
+ &--small {
211
+ display: flex;
212
+ flex-direction: row;
213
+ height: var(--height-check_radio-check_button_s);
214
+ border-radius: var(--radius-check_radio-s);
215
+ }
216
+
217
+
218
+ &__icon--large {
219
+ color: var(--color-check_radio-check_button_icon-default);
220
+ font-size: var(--icon-check_radio-check_l);
221
+ }
222
+
223
+ &__icon--small {
224
+ font-size: var(--icon-check_radio-check_s);
225
+ color: var(--text-color-h2);
226
+ margin-inline-end: var(--spacing-check_radio-check_icon-margin_right);
227
+ }
228
+
229
+ &__text {
230
+ color: var(--color-check_radio-radio_button_text-default);
231
+ font-size: var(--en-single-f-c-r-fontSize);
232
+ font-weight: var(--en-single-f-c-r-fontWeight);
233
+ }
234
+
235
+ &--checked {
236
+ background-color: var(--color-check_radio-check_bg-active);
237
+ border-color: var(--color-check_radio-radio_border-active);
238
+
239
+ .@{checkbox-button-prefix-cls}__text {
240
+ color: var(--color-check_radio-radio_button_text-active);
241
+ font-size: var(--en-single-f-c-s-fontSize);
242
+ font-weight: var(--en-single-f-c-s-fontWeight);
243
+ }
244
+
245
+ .@{checkbox-button-prefix-cls}__icon--large,
246
+ .@{checkbox-button-prefix-cls}__icon--small,
247
+ .@{checkbox-button-prefix-cls}__description {
248
+ color: var(--color-check_radio-check_button_icon-active);
249
+ }
250
+
251
+ &.@{checkbox-button-prefix-cls}{
252
+ &--large{
253
+ .@{checkbox-button-prefix-cls}__text {
254
+ font-size: 12px;
255
+ }
256
+ }
257
+
258
+ }
259
+ }
260
+
261
+ &--disabled{
262
+ cursor: not-allowed;
263
+ .@{checkbox-button-prefix-cls}__text {
264
+ color: var(--color-check_radio-radio_button_text-disable);
265
+ }
266
+ .@{checkbox-button-prefix-cls}__icon--large,
267
+ .@{checkbox-button-prefix-cls}__icon--small,
268
+ .@{checkbox-button-prefix-cls}__description{
269
+ color: var(--color-check_radio-check_button_icon-disable);
270
+ }
271
+ }
272
+ }
273
+
274
+ .@{checkbox-prefix-cls}-group {
275
+ display: flex;
276
+ flex-direction: column;
277
+ gap: var(--spacing-check_radio-group-margin_x);
278
+
279
+ &__card{
280
+ display: flex;
281
+ flex-wrap: wrap;
282
+ flex-direction: row;
283
+ gap: 12px;
284
+ }
285
+
286
+ .@{checkbox-button-prefix-cls}{
287
+ flex: 1;
288
+ }
289
289
  }
@@ -1,7 +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;
1
+ import CheckboxGroup from './index.vue';
2
+
3
+ CheckboxGroup.install = function (Vue) {
4
+ Vue.component(CheckboxGroup.name, CheckboxGroup);
5
+ };
6
+
7
+ export default CheckboxGroup;