@tendaui/components 1.3.0 → 1.3.1

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 (142) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +176 -176
  3. package/button/_example/ghost.tsx +2 -5
  4. package/color-picker/utils/color-picker/cmyk.ts +89 -89
  5. package/color-picker/utils/color-picker/color.ts +467 -467
  6. package/color-picker/utils/color-picker/constants.ts +187 -187
  7. package/color-picker/utils/color-picker/draggable.ts +99 -99
  8. package/color-picker/utils/color-picker/format.ts +90 -90
  9. package/color-picker/utils/color-picker/gradient.ts +237 -237
  10. package/color-picker/utils/color-picker/index.ts +7 -7
  11. package/color-picker/utils/color-picker/types.ts +33 -33
  12. package/dialog/hooks/useDialogPosition.ts +35 -35
  13. package/form/type.ts +519 -519
  14. package/global-config/default-config.ts +95 -95
  15. package/global-config/locale/ar_KW.ts +259 -259
  16. package/global-config/locale/en_US.ts +265 -265
  17. package/global-config/locale/it_IT.ts +264 -264
  18. package/global-config/locale/ja_JP.ts +264 -264
  19. package/global-config/locale/ko_KR.ts +264 -264
  20. package/global-config/locale/ru_RU.ts +277 -277
  21. package/global-config/locale/zh_CN.ts +265 -265
  22. package/global-config/locale/zh_TW.ts +265 -265
  23. package/global-config/mobile/default-config.ts +6 -6
  24. package/global-config/mobile/locale/ar_KW.ts +112 -112
  25. package/global-config/mobile/locale/en_US.ts +113 -113
  26. package/global-config/mobile/locale/it_IT.ts +113 -113
  27. package/global-config/mobile/locale/ja_JP.ts +100 -100
  28. package/global-config/mobile/locale/ko_KR.ts +100 -100
  29. package/global-config/mobile/locale/ru_RU.ts +112 -112
  30. package/global-config/mobile/locale/zh_CN.ts +100 -100
  31. package/global-config/mobile/locale/zh_TW.ts +100 -100
  32. package/global-config/t.ts +111 -111
  33. package/input-number/InputNumber.tsx +124 -124
  34. package/input-number/defaultProps.ts +17 -17
  35. package/input-number/index.ts +9 -9
  36. package/input-number/style/css.js +1 -1
  37. package/input-number/style/index.js +1 -1
  38. package/input-number/useInputNumber.tsx +270 -270
  39. package/list/ListItem.tsx +36 -36
  40. package/list/ListItemMeta.tsx +40 -40
  41. package/list/defaultProps.ts +11 -11
  42. package/list/hooks/useListVirtualScroll.ts +82 -82
  43. package/list/style/css.js +1 -1
  44. package/list/style/index.js +1 -1
  45. package/locale/LocalReceiver.ts +55 -55
  46. package/locale/ar_KW.ts +7 -7
  47. package/locale/en_US.ts +7 -7
  48. package/locale/it_IT.ts +6 -6
  49. package/locale/ja_JP.ts +6 -6
  50. package/locale/ko_KR.ts +6 -6
  51. package/locale/ru_RU.ts +6 -6
  52. package/locale/zh_CN.ts +5 -5
  53. package/locale/zh_TW.ts +7 -7
  54. package/package.json +2 -2
  55. package/radio/_example/default.tsx +2 -2
  56. package/select/type.ts +382 -382
  57. package/select-input/type.ts +280 -280
  58. package/slider/SliderHandleButton.tsx +50 -50
  59. package/slider/defaultProps.ts +15 -15
  60. package/slider/style/css.js +1 -1
  61. package/slider/style/index.js +1 -1
  62. package/styles/_global.scss +40 -40
  63. package/styles/_vars.scss +374 -374
  64. package/styles/components/alert/_index.scss +175 -175
  65. package/styles/components/alert/_vars.scss +41 -41
  66. package/styles/components/badge/_index.scss +71 -71
  67. package/styles/components/badge/_vars.scss +26 -26
  68. package/styles/components/button/_index.scss +499 -499
  69. package/styles/components/button/_mixins.scss +40 -40
  70. package/styles/components/button/_vars.scss +121 -121
  71. package/styles/components/checkbox/_index.scss +158 -158
  72. package/styles/components/checkbox/_var.scss +59 -59
  73. package/styles/components/color-picker/_index.scss +586 -586
  74. package/styles/components/color-picker/_vars.scss +79 -79
  75. package/styles/components/dialog/_animate.scss +133 -133
  76. package/styles/components/dialog/_index.scss +310 -310
  77. package/styles/components/dialog/_vars.scss +60 -60
  78. package/styles/components/drawer/_index.scss +206 -206
  79. package/styles/components/drawer/_var.scss +55 -55
  80. package/styles/components/fireworks/_index.scss +86 -86
  81. package/styles/components/fireworks/_vars.scss +5 -5
  82. package/styles/components/form/_index.scss +175 -175
  83. package/styles/components/form/_mixins.scss +74 -74
  84. package/styles/components/form/_vars.scss +101 -101
  85. package/styles/components/input/_index.scss +350 -350
  86. package/styles/components/input/_mixins.scss +120 -120
  87. package/styles/components/input/_vars.scss +130 -130
  88. package/styles/components/input-number/_index.scss +327 -327
  89. package/styles/components/input-number/_vars.scss +56 -56
  90. package/styles/components/ip-input/_index.scss +277 -277
  91. package/styles/components/layout/_index.scss +47 -47
  92. package/styles/components/layout/_vars.scss +19 -19
  93. package/styles/components/layout/doc.scss +74 -74
  94. package/styles/components/list/_index.scss +172 -172
  95. package/styles/components/list/_vars.scss +42 -42
  96. package/styles/components/loading/_index.scss +113 -113
  97. package/styles/components/loading/_vars.scss +40 -40
  98. package/styles/components/notification/_index.scss +140 -140
  99. package/styles/components/notification/_mixins.scss +13 -13
  100. package/styles/components/notification/_vars.scss +60 -60
  101. package/styles/components/popup/_index.scss +78 -78
  102. package/styles/components/popup/_mixin.scss +149 -149
  103. package/styles/components/popup/_vars.scss +33 -33
  104. package/styles/components/radio/_index.scss +376 -376
  105. package/styles/components/radio/_vars.scss +89 -89
  106. package/styles/components/select/_index.scss +291 -291
  107. package/styles/components/select/_var.scss +64 -64
  108. package/styles/components/select-input/_index.scss +5 -5
  109. package/styles/components/select-input/_var.scss +4 -4
  110. package/styles/components/slider/_index.scss +241 -241
  111. package/styles/components/slider/_vars.scss +51 -51
  112. package/styles/components/switch/_index.scss +175 -175
  113. package/styles/components/switch/_vars.scss +63 -63
  114. package/styles/components/table/_index.scss +194 -194
  115. package/styles/components/table/_var.scss +52 -52
  116. package/styles/components/tabs/_index.scss +165 -165
  117. package/styles/components/tabs/_mixins.scss +11 -11
  118. package/styles/components/tabs/_vars.scss +72 -72
  119. package/styles/components/tag/_index.scss +317 -317
  120. package/styles/components/tag/_var.scss +86 -86
  121. package/styles/components/tag-input/_index.scss +164 -164
  122. package/styles/components/tag-input/_vars.scss +17 -17
  123. package/styles/mixins/_focus.scss +8 -8
  124. package/styles/mixins/_layout.scss +32 -32
  125. package/styles/mixins/_reset.scss +11 -11
  126. package/styles/mixins/_scrollbar.scss +32 -32
  127. package/styles/mixins/_text.scss +50 -50
  128. package/styles/themes/_dark.scss +169 -169
  129. package/styles/themes/_font.scss +69 -69
  130. package/styles/themes/_index.scss +5 -5
  131. package/styles/themes/_light.scss +170 -170
  132. package/styles/themes/_radius.scss +9 -9
  133. package/styles/themes/_size.scss +68 -68
  134. package/styles/utilities/_animation.scss +58 -58
  135. package/styles/utilities/_tips.scss +10 -10
  136. package/switch/_example/with-label.tsx +1 -1
  137. package/utils/input-number/large-number.ts +423 -423
  138. package/utils/input-number/number.ts +257 -257
  139. package/utils/log/index.ts +3 -3
  140. package/utils/log/log.ts +29 -29
  141. package/utils/log/types.ts +9 -9
  142. package/utils/style.ts +58 -58
@@ -1,350 +1,350 @@
1
- @use "../../_vars.scss" as *;
2
- @use './_vars.scss' as *;
3
- @use './_mixins.scss' as *;
4
- @use '../../mixins/_text.scss' as *;
5
- @use './_map.scss' as *;
6
-
7
- @use '../../mixins/_reset.scss' as *;
8
- @use '../../utilities/_tips.scss' as *;
9
-
10
- .#{$prefix}-input {
11
- @include reset;
12
- @include input-status(success);
13
- @include input-status(warning);
14
- @include input-status(error);
15
- width: 100%;
16
- position: relative;
17
- box-sizing: border-box;
18
- height: $input-height-default;
19
- @include input-base;
20
-
21
- // borderless mode
22
- &--borderless:not(&--focused) {
23
- border-color: transparent;
24
- transition: $input-inner-transition;
25
-
26
- &:hover {
27
- border-color: $component-border;
28
- background-color: $bg-color-container-hover;
29
- cursor: pointer;
30
- }
31
-
32
- &.#{$prefix}-is-disabled {
33
- border: none;
34
- background-color: $input-bg-color-disabled;
35
- }
36
- }
37
-
38
- &--focused {
39
- border-color: $input-border-color-default-focus;
40
- box-shadow: $input-box-shadow-focus;
41
- z-index: 1;
42
- }
43
-
44
- :focus-visible {
45
- outline: none;
46
- }
47
-
48
- // 真正的输入框
49
- &__inner {
50
- flex: 1;
51
- border: none;
52
- outline: none;
53
- padding: 0;
54
- max-width: 100%;
55
- min-width: 0;
56
- color: $input-text-color-default;
57
- font: inherit;
58
- background-color: transparent;
59
- box-sizing: border-box;
60
- @include text-ellipsis;
61
-
62
- &::placeholder {
63
- color: $input-placeholder-color;
64
- }
65
-
66
- &:placeholder-shown {
67
- text-overflow: ellipsis;
68
- width: 100%;
69
- }
70
-
71
- // 隐藏Edge浏览器默认的密码框样�?
72
- &[type='password']::-ms-reveal {
73
- display: none;
74
- }
75
-
76
- &[type='search']::-webkit-search-decoration,
77
- &[type='search']::-webkit-search-cancel-button,
78
- &[type='search']::-webkit-search-results-button,
79
- &[type='search']::-webkit-search-results-decoration {
80
- appearance: none;
81
- }
82
-
83
- &.#{$prefix}-input--soft-hidden {
84
- width: 0;
85
- }
86
- }
87
-
88
- // 底部的额外消�?
89
- &__extra {
90
- font: $input-extra-font;
91
- color: $input-extra-color-default;
92
- }
93
-
94
- // 输入框后面的状态图�?
95
- &__status {
96
- position: absolute;
97
- right: $input-status-position-right;
98
- top: 0;
99
- }
100
-
101
- &.#{$prefix}-input--suffix > span.#{$prefix}-input__clear {
102
- opacity: 0;
103
- visibility: hidden;
104
- transition: $input-inner-transition;
105
- }
106
-
107
- &.#{$prefix}-input--suffix:hover > span.#{$prefix}-input__clear {
108
- opacity: 1;
109
- visibility: visible;
110
- }
111
-
112
- // 输入框状�?
113
-
114
- @include input-readonly;
115
- @include input-disabled;
116
-
117
- // 输入框的前置、后置图�?
118
- @include input-fix-position(prefix);
119
- @include input-fix-position(suffix);
120
-
121
- .#{$prefix}-input__suffix-clear {
122
- cursor: pointer;
123
- width: 1em;
124
- height: 1em;
125
- }
126
-
127
- // 输入框大�?
128
- &.#{$prefix}-size-l {
129
- height: $input-height-l;
130
- font: $input-font-l;
131
- padding: $input-padding-l;
132
- }
133
-
134
- &.#{$prefix}-size-s {
135
- height: $input-height-s;
136
- font: $input-font-s;
137
- }
138
-
139
- .#{$prefix}-input__prefix,
140
- .#{$prefix}-input__suffix {
141
- > .t-icon {
142
- font-size: $input-inner-icon-font-size;
143
- }
144
- }
145
-
146
- .#{$prefix}-input__prefix {
147
- > .t-icon {
148
- color: $input-inner-prefix-icon-color;
149
- }
150
-
151
- &:not(:empty) {
152
- margin-right: $comp-margin-s;
153
- }
154
- }
155
-
156
- .#{$prefix}-input__suffix {
157
- > .t-icon {
158
- color: $input-inner-suffix-icon-color;
159
- transition: all $anim-duration-base linear;
160
-
161
- &:hover {
162
- color: $input-inner-suffix-icon-color-hover;
163
- transition: all $anim-duration-base linear;
164
- }
165
- }
166
-
167
- &:not(:empty) {
168
- margin-left: $comp-margin-s;
169
- }
170
- }
171
-
172
- // 输入框被聚焦
173
- &.#{$prefix}-is-focused {
174
- .#{$prefix}-input__prefix {
175
- > .t-icon {
176
- color: $input-border-color-default-focus;
177
- }
178
- }
179
- .#{$prefix}-input__suffix {
180
- // 特殊使用�?suffix icon
181
- > .t-icon-time,
182
- .t-icon-calendar {
183
- color: $input-border-color-default-focus;
184
- }
185
- }
186
- }
187
- }
188
-
189
- // 输入框组
190
- .#{$prefix}-input-group {
191
- position: relative;
192
- display: inline-flex;
193
- align-items: stretch;
194
-
195
- .#{$prefix}-input__wrap {
196
- border-radius: 0;
197
-
198
- &:first-child {
199
- border-radius: $input-border-radius 0 0 $input-border-radius;
200
- }
201
-
202
- &:last-child {
203
- border-radius: 0 $border-radius-default $border-radius-default 0;
204
- }
205
- }
206
-
207
- .#{$prefix}-button,
208
- .#{$prefix}-select {
209
- border-radius: 0;
210
-
211
- &:not(:first-child) {
212
- margin-left: $input-group-first-child-margin-left;
213
- }
214
- }
215
-
216
- .#{$prefix}-input__wrap {
217
- &:not(:first-child) {
218
- .#{$prefix}-input {
219
- margin-left: $input-group-first-child-margin-left;
220
- }
221
- }
222
-
223
- &:first-child {
224
- .#{$prefix}-input {
225
- border-radius: $input-border-radius 0 0 $input-border-radius;
226
- }
227
- }
228
-
229
- &:last-child {
230
- .#{$prefix}-input {
231
- border-radius: 0 $input-border-radius $input-border-radius 0;
232
- }
233
- }
234
- }
235
-
236
- .#{$prefix}-button,
237
- .#{$prefix}-select {
238
- &:first-child {
239
- border-radius: $input-border-radius 0 0 $input-border-radius;
240
- }
241
-
242
- &:last-child {
243
- border-radius: 0 $input-border-radius $input-border-radius 0;
244
- }
245
- }
246
-
247
- &--separate {
248
- .#{$prefix}-input__wrap + .#{$prefix}-input__wrap {
249
- margin-left: $input-margin-distance-default;
250
- }
251
-
252
- .#{$prefix}-button,
253
- .#{$prefix}-select {
254
- border-radius: $input-border-radius;
255
-
256
- &:first-child {
257
- border-radius: $input-border-radius 0 0 $input-border-radius;
258
- }
259
-
260
- &:last-child {
261
- border-radius: 0 $input-border-radius $input-border-radius 0;
262
- }
263
- }
264
-
265
- .#{$prefix}-input__wrap {
266
- .#{$prefix}-input {
267
- border-radius: $input-border-radius;
268
-
269
- &:first-child {
270
- border-radius: $input-border-radius;
271
- }
272
-
273
- &:last-child {
274
- border-radius: $input-border-radius;
275
- }
276
- }
277
- }
278
- }
279
-
280
- .#{$prefix}-input__inner,
281
- .#{$prefix}-button,
282
- .#{$prefix}-select {
283
- position: relative;
284
- z-index: 0;
285
-
286
- &:hover,
287
- &:focus,
288
- &:active {
289
- z-index: 1;
290
- }
291
- }
292
- }
293
-
294
- .#{$prefix}-input__wrap {
295
- width: 100%;
296
- }
297
-
298
- .#{$prefix}-input__tips {
299
- height: auto;
300
- min-height: $input-tips-min-height;
301
- font: $input-tips-font;
302
- position: absolute;
303
- }
304
-
305
- .#{$prefix}-input__tips--default {
306
- color: $input-text-color-tips;
307
- }
308
-
309
- .#{$prefix}-input__tips--success {
310
- color: $input-text-color-success;
311
- }
312
-
313
- .#{$prefix}-input__tips--warning {
314
- color: $input-text-color-warning;
315
- }
316
-
317
- .#{$prefix}-input__tips--error {
318
- color: $input-text-color-error;
319
- }
320
-
321
- .#{$prefix}-align-center > .#{$prefix}-input__inner {
322
- text-align: center;
323
- }
324
-
325
- .#{$prefix}-align-right > .#{$prefix}-input__inner {
326
- text-align: right;
327
- }
328
-
329
- .#{$prefix}-input__input-pre {
330
- position: absolute;
331
- visibility: hidden;
332
- white-space: pre;
333
- display: block;
334
- }
335
-
336
- .#{$prefix}-input--auto-width {
337
- width: fit-content;
338
- min-width: 60px;
339
- }
340
-
341
- // 字数限制数字
342
- .#{$prefix}-input__limit-number {
343
- font: $input-font;
344
- color: $input-limit-color;
345
- background: $input-bg-color-default;
346
-
347
- &.#{$prefix}-is-disabled {
348
- background: $input-bg-color-disabled;
349
- }
350
- }
1
+ @use "../../_vars.scss" as *;
2
+ @use './_vars.scss' as *;
3
+ @use './_mixins.scss' as *;
4
+ @use '../../mixins/_text.scss' as *;
5
+ @use './_map.scss' as *;
6
+
7
+ @use '../../mixins/_reset.scss' as *;
8
+ @use '../../utilities/_tips.scss' as *;
9
+
10
+ .#{$prefix}-input {
11
+ @include reset;
12
+ @include input-status(success);
13
+ @include input-status(warning);
14
+ @include input-status(error);
15
+ width: 100%;
16
+ position: relative;
17
+ box-sizing: border-box;
18
+ height: $input-height-default;
19
+ @include input-base;
20
+
21
+ // borderless mode
22
+ &--borderless:not(&--focused) {
23
+ border-color: transparent;
24
+ transition: $input-inner-transition;
25
+
26
+ &:hover {
27
+ border-color: $component-border;
28
+ background-color: $bg-color-container-hover;
29
+ cursor: pointer;
30
+ }
31
+
32
+ &.#{$prefix}-is-disabled {
33
+ border: none;
34
+ background-color: $input-bg-color-disabled;
35
+ }
36
+ }
37
+
38
+ &--focused {
39
+ border-color: $input-border-color-default-focus;
40
+ box-shadow: $input-box-shadow-focus;
41
+ z-index: 1;
42
+ }
43
+
44
+ :focus-visible {
45
+ outline: none;
46
+ }
47
+
48
+ // 真正的输入框
49
+ &__inner {
50
+ flex: 1;
51
+ border: none;
52
+ outline: none;
53
+ padding: 0;
54
+ max-width: 100%;
55
+ min-width: 0;
56
+ color: $input-text-color-default;
57
+ font: inherit;
58
+ background-color: transparent;
59
+ box-sizing: border-box;
60
+ @include text-ellipsis;
61
+
62
+ &::placeholder {
63
+ color: $input-placeholder-color;
64
+ }
65
+
66
+ &:placeholder-shown {
67
+ text-overflow: ellipsis;
68
+ width: 100%;
69
+ }
70
+
71
+ // 隐藏Edge浏览器默认的密码框样�?
72
+ &[type='password']::-ms-reveal {
73
+ display: none;
74
+ }
75
+
76
+ &[type='search']::-webkit-search-decoration,
77
+ &[type='search']::-webkit-search-cancel-button,
78
+ &[type='search']::-webkit-search-results-button,
79
+ &[type='search']::-webkit-search-results-decoration {
80
+ appearance: none;
81
+ }
82
+
83
+ &.#{$prefix}-input--soft-hidden {
84
+ width: 0;
85
+ }
86
+ }
87
+
88
+ // 底部的额外消�?
89
+ &__extra {
90
+ font: $input-extra-font;
91
+ color: $input-extra-color-default;
92
+ }
93
+
94
+ // 输入框后面的状态图�?
95
+ &__status {
96
+ position: absolute;
97
+ right: $input-status-position-right;
98
+ top: 0;
99
+ }
100
+
101
+ &.#{$prefix}-input--suffix > span.#{$prefix}-input__clear {
102
+ opacity: 0;
103
+ visibility: hidden;
104
+ transition: $input-inner-transition;
105
+ }
106
+
107
+ &.#{$prefix}-input--suffix:hover > span.#{$prefix}-input__clear {
108
+ opacity: 1;
109
+ visibility: visible;
110
+ }
111
+
112
+ // 输入框状�?
113
+
114
+ @include input-readonly;
115
+ @include input-disabled;
116
+
117
+ // 输入框的前置、后置图�?
118
+ @include input-fix-position(prefix);
119
+ @include input-fix-position(suffix);
120
+
121
+ .#{$prefix}-input__suffix-clear {
122
+ cursor: pointer;
123
+ width: 1em;
124
+ height: 1em;
125
+ }
126
+
127
+ // 输入框大�?
128
+ &.#{$prefix}-size-l {
129
+ height: $input-height-l;
130
+ font: $input-font-l;
131
+ padding: $input-padding-l;
132
+ }
133
+
134
+ &.#{$prefix}-size-s {
135
+ height: $input-height-s;
136
+ font: $input-font-s;
137
+ }
138
+
139
+ .#{$prefix}-input__prefix,
140
+ .#{$prefix}-input__suffix {
141
+ > .t-icon {
142
+ font-size: $input-inner-icon-font-size;
143
+ }
144
+ }
145
+
146
+ .#{$prefix}-input__prefix {
147
+ > .t-icon {
148
+ color: $input-inner-prefix-icon-color;
149
+ }
150
+
151
+ &:not(:empty) {
152
+ margin-right: $comp-margin-s;
153
+ }
154
+ }
155
+
156
+ .#{$prefix}-input__suffix {
157
+ > .t-icon {
158
+ color: $input-inner-suffix-icon-color;
159
+ transition: all $anim-duration-base linear;
160
+
161
+ &:hover {
162
+ color: $input-inner-suffix-icon-color-hover;
163
+ transition: all $anim-duration-base linear;
164
+ }
165
+ }
166
+
167
+ &:not(:empty) {
168
+ margin-left: $comp-margin-s;
169
+ }
170
+ }
171
+
172
+ // 输入框被聚焦
173
+ &.#{$prefix}-is-focused {
174
+ .#{$prefix}-input__prefix {
175
+ > .t-icon {
176
+ color: $input-border-color-default-focus;
177
+ }
178
+ }
179
+ .#{$prefix}-input__suffix {
180
+ // 特殊使用�?suffix icon
181
+ > .t-icon-time,
182
+ .t-icon-calendar {
183
+ color: $input-border-color-default-focus;
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ // 输入框组
190
+ .#{$prefix}-input-group {
191
+ position: relative;
192
+ display: inline-flex;
193
+ align-items: stretch;
194
+
195
+ .#{$prefix}-input__wrap {
196
+ border-radius: 0;
197
+
198
+ &:first-child {
199
+ border-radius: $input-border-radius 0 0 $input-border-radius;
200
+ }
201
+
202
+ &:last-child {
203
+ border-radius: 0 $border-radius-default $border-radius-default 0;
204
+ }
205
+ }
206
+
207
+ .#{$prefix}-button,
208
+ .#{$prefix}-select {
209
+ border-radius: 0;
210
+
211
+ &:not(:first-child) {
212
+ margin-left: $input-group-first-child-margin-left;
213
+ }
214
+ }
215
+
216
+ .#{$prefix}-input__wrap {
217
+ &:not(:first-child) {
218
+ .#{$prefix}-input {
219
+ margin-left: $input-group-first-child-margin-left;
220
+ }
221
+ }
222
+
223
+ &:first-child {
224
+ .#{$prefix}-input {
225
+ border-radius: $input-border-radius 0 0 $input-border-radius;
226
+ }
227
+ }
228
+
229
+ &:last-child {
230
+ .#{$prefix}-input {
231
+ border-radius: 0 $input-border-radius $input-border-radius 0;
232
+ }
233
+ }
234
+ }
235
+
236
+ .#{$prefix}-button,
237
+ .#{$prefix}-select {
238
+ &:first-child {
239
+ border-radius: $input-border-radius 0 0 $input-border-radius;
240
+ }
241
+
242
+ &:last-child {
243
+ border-radius: 0 $input-border-radius $input-border-radius 0;
244
+ }
245
+ }
246
+
247
+ &--separate {
248
+ .#{$prefix}-input__wrap + .#{$prefix}-input__wrap {
249
+ margin-left: $input-margin-distance-default;
250
+ }
251
+
252
+ .#{$prefix}-button,
253
+ .#{$prefix}-select {
254
+ border-radius: $input-border-radius;
255
+
256
+ &:first-child {
257
+ border-radius: $input-border-radius 0 0 $input-border-radius;
258
+ }
259
+
260
+ &:last-child {
261
+ border-radius: 0 $input-border-radius $input-border-radius 0;
262
+ }
263
+ }
264
+
265
+ .#{$prefix}-input__wrap {
266
+ .#{$prefix}-input {
267
+ border-radius: $input-border-radius;
268
+
269
+ &:first-child {
270
+ border-radius: $input-border-radius;
271
+ }
272
+
273
+ &:last-child {
274
+ border-radius: $input-border-radius;
275
+ }
276
+ }
277
+ }
278
+ }
279
+
280
+ .#{$prefix}-input__inner,
281
+ .#{$prefix}-button,
282
+ .#{$prefix}-select {
283
+ position: relative;
284
+ z-index: 0;
285
+
286
+ &:hover,
287
+ &:focus,
288
+ &:active {
289
+ z-index: 1;
290
+ }
291
+ }
292
+ }
293
+
294
+ .#{$prefix}-input__wrap {
295
+ width: 100%;
296
+ }
297
+
298
+ .#{$prefix}-input__tips {
299
+ height: auto;
300
+ min-height: $input-tips-min-height;
301
+ font: $input-tips-font;
302
+ position: absolute;
303
+ }
304
+
305
+ .#{$prefix}-input__tips--default {
306
+ color: $input-text-color-tips;
307
+ }
308
+
309
+ .#{$prefix}-input__tips--success {
310
+ color: $input-text-color-success;
311
+ }
312
+
313
+ .#{$prefix}-input__tips--warning {
314
+ color: $input-text-color-warning;
315
+ }
316
+
317
+ .#{$prefix}-input__tips--error {
318
+ color: $input-text-color-error;
319
+ }
320
+
321
+ .#{$prefix}-align-center > .#{$prefix}-input__inner {
322
+ text-align: center;
323
+ }
324
+
325
+ .#{$prefix}-align-right > .#{$prefix}-input__inner {
326
+ text-align: right;
327
+ }
328
+
329
+ .#{$prefix}-input__input-pre {
330
+ position: absolute;
331
+ visibility: hidden;
332
+ white-space: pre;
333
+ display: block;
334
+ }
335
+
336
+ .#{$prefix}-input--auto-width {
337
+ width: fit-content;
338
+ min-width: 60px;
339
+ }
340
+
341
+ // 字数限制数字
342
+ .#{$prefix}-input__limit-number {
343
+ font: $input-font;
344
+ color: $input-limit-color;
345
+ background: $input-bg-color-default;
346
+
347
+ &.#{$prefix}-is-disabled {
348
+ background: $input-bg-color-disabled;
349
+ }
350
+ }