iov-design 2.15.60 → 2.15.62

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 (242) hide show
  1. package/README.md +148 -148
  2. package/lib/alert.js +24 -105
  3. package/lib/aside.js +24 -34
  4. package/lib/autocomplete.js +36 -240
  5. package/lib/avatar.js +21 -20
  6. package/lib/backtop.js +27 -52
  7. package/lib/badge.js +30 -58
  8. package/lib/breadcrumb-item.js +24 -53
  9. package/lib/breadcrumb.js +24 -37
  10. package/lib/button-group.js +24 -29
  11. package/lib/button.js +38 -60
  12. package/lib/calendar.js +29 -146
  13. package/lib/card.js +24 -51
  14. package/lib/carousel-item.js +30 -68
  15. package/lib/carousel.js +27 -159
  16. package/lib/cascader-panel.js +41 -64
  17. package/lib/cascader.js +37 -470
  18. package/lib/checkbox-button.js +28 -164
  19. package/lib/checkbox-group.js +24 -37
  20. package/lib/checkbox.js +35 -189
  21. package/lib/col.js +1 -0
  22. package/lib/collapse-item.js +27 -125
  23. package/lib/collapse.js +24 -37
  24. package/lib/color-picker.js +104 -424
  25. package/lib/container.js +24 -34
  26. package/lib/date-picker.js +126 -1981
  27. package/lib/descriptions-item.js +1 -0
  28. package/lib/descriptions.js +1 -0
  29. package/lib/dialog.js +24 -137
  30. package/lib/divider.js +29 -64
  31. package/lib/drawer.js +24 -139
  32. package/lib/dropdown-item.js +27 -45
  33. package/lib/dropdown-menu.js +24 -51
  34. package/lib/dropdown.js +21 -20
  35. package/lib/empty.js +24 -61
  36. package/lib/footer.js +24 -34
  37. package/lib/form-item.js +42 -128
  38. package/lib/form.js +27 -40
  39. package/lib/header.js +24 -34
  40. package/lib/icon.js +24 -29
  41. package/lib/image.js +36 -220
  42. package/lib/index.js +1 -1
  43. package/lib/infinite-scroll.js +1 -0
  44. package/lib/input-number.js +30 -163
  45. package/lib/input.js +42 -274
  46. package/lib/iov-design.common.js +1635 -11132
  47. package/lib/link.js +31 -56
  48. package/lib/loading.js +24 -77
  49. package/lib/locale/format.js +10 -10
  50. package/lib/main.js +24 -29
  51. package/lib/menu-item-group.js +24 -40
  52. package/lib/menu-item.js +27 -83
  53. package/lib/menu.js +21 -20
  54. package/lib/message-box.js +24 -321
  55. package/lib/message.js +30 -82
  56. package/lib/mixins/migrating.js +20 -20
  57. package/lib/notification.js +24 -109
  58. package/lib/option-group.js +24 -50
  59. package/lib/option.js +27 -76
  60. package/lib/page-header.js +24 -56
  61. package/lib/pagination.js +24 -97
  62. package/lib/popconfirm.js +24 -97
  63. package/lib/popover.js +24 -89
  64. package/lib/progress.js +30 -133
  65. package/lib/radio-button.js +29 -111
  66. package/lib/radio-group.js +24 -39
  67. package/lib/radio.js +36 -152
  68. package/lib/rate.js +24 -94
  69. package/lib/result.js +72 -187
  70. package/lib/row.js +1 -0
  71. package/lib/scrollbar.js +1 -0
  72. package/lib/select.js +48 -637
  73. package/lib/skeleton-item.js +36 -68
  74. package/lib/skeleton.js +28 -70
  75. package/lib/slider.js +36 -267
  76. package/lib/spinner.js +24 -51
  77. package/lib/statistic.js +24 -76
  78. package/lib/step.js +29 -118
  79. package/lib/steps.js +27 -40
  80. package/lib/submenu.js +21 -20
  81. package/lib/switch.js +24 -130
  82. package/lib/tab-pane.js +24 -52
  83. package/lib/table-column.js +1 -0
  84. package/lib/table.js +93 -633
  85. package/lib/tabs.js +34 -49
  86. package/lib/tag.js +21 -20
  87. package/lib/theme-chalk/autocomplete.css +1 -1
  88. package/lib/theme-chalk/base.css +1 -1
  89. package/lib/theme-chalk/cascader.css +1 -1
  90. package/lib/theme-chalk/date-picker.css +1 -1
  91. package/lib/theme-chalk/index.css +1 -1
  92. package/lib/theme-chalk/input-number.css +1 -1
  93. package/lib/theme-chalk/input.css +1 -1
  94. package/lib/theme-chalk/iovfont.css +1 -1
  95. package/lib/theme-chalk/link.css +1 -1
  96. package/lib/theme-chalk/message-box.css +1 -1
  97. package/lib/theme-chalk/pagination.css +1 -1
  98. package/lib/theme-chalk/select.css +1 -1
  99. package/lib/theme-chalk/slider.css +1 -1
  100. package/lib/theme-chalk/time-picker.css +1 -1
  101. package/lib/theme-chalk/transfer.css +1 -1
  102. package/lib/time-picker.js +58 -820
  103. package/lib/time-select.js +42 -303
  104. package/lib/timeline-item.js +29 -75
  105. package/lib/timeline.js +21 -20
  106. package/lib/tooltip.js +1 -0
  107. package/lib/transfer.js +36 -299
  108. package/lib/tree.js +54 -243
  109. package/lib/upload.js +86 -654
  110. package/lib/utils/clickoutside.js +7 -7
  111. package/lib/utils/vue-popper.js +7 -7
  112. package/package.json +154 -154
  113. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  114. package/packages/autocomplete/src/autocomplete.vue +285 -285
  115. package/packages/button/src/button.vue +90 -90
  116. package/packages/calendar/src/date-table.vue +200 -200
  117. package/packages/calendar/src/main.vue +280 -280
  118. package/packages/carousel/src/item.vue +138 -138
  119. package/packages/carousel/src/main.vue +315 -315
  120. package/packages/cascader/src/cascader.vue +776 -776
  121. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  122. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  123. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  124. package/packages/cascader-panel/src/node.js +166 -166
  125. package/packages/cascader-panel/src/store.js +58 -58
  126. package/packages/checkbox/src/checkbox-button.vue +199 -199
  127. package/packages/checkbox/src/checkbox-group.vue +49 -49
  128. package/packages/checkbox/src/checkbox.vue +225 -225
  129. package/packages/collapse/src/collapse-item.vue +114 -114
  130. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  131. package/packages/color-picker/src/main.vue +188 -188
  132. package/packages/date-picker/src/basic/date-table.vue +441 -441
  133. package/packages/date-picker/src/basic/month-table.vue +269 -269
  134. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  135. package/packages/date-picker/src/basic/year-table.vue +111 -111
  136. package/packages/date-picker/src/panel/date-range.vue +680 -680
  137. package/packages/date-picker/src/panel/date.vue +609 -609
  138. package/packages/date-picker/src/panel/month-range.vue +289 -289
  139. package/packages/date-picker/src/panel/time-range.vue +248 -248
  140. package/packages/date-picker/src/panel/time-select.vue +178 -178
  141. package/packages/date-picker/src/panel/time.vue +186 -186
  142. package/packages/date-picker/src/picker.vue +967 -967
  143. package/packages/descriptions/src/index.js +180 -180
  144. package/packages/dialog/src/component.vue +262 -262
  145. package/packages/drawer/src/main.vue +205 -205
  146. package/packages/dropdown/src/dropdown-item.vue +37 -37
  147. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  148. package/packages/dropdown/src/dropdown.vue +293 -293
  149. package/packages/empty/src/index.vue +70 -70
  150. package/packages/form/src/form-item.vue +324 -324
  151. package/packages/form/src/form.vue +182 -182
  152. package/packages/image/src/image-viewer.vue +330 -330
  153. package/packages/image/src/main.vue +249 -249
  154. package/packages/infinite-scroll/src/main.js +150 -150
  155. package/packages/input/src/input.vue +477 -477
  156. package/packages/input-number/src/input-number.vue +283 -283
  157. package/packages/loading/src/directive.js +133 -133
  158. package/packages/loading/src/index.js +106 -106
  159. package/packages/menu/src/menu-item.vue +112 -112
  160. package/packages/menu/src/menu.vue +325 -325
  161. package/packages/menu/src/submenu.vue +349 -349
  162. package/packages/message/src/main.js +91 -91
  163. package/packages/message-box/src/main.js +216 -216
  164. package/packages/message-box/src/main.vue +333 -333
  165. package/packages/notification/src/main.js +94 -94
  166. package/packages/page-header/src/main.vue +30 -30
  167. package/packages/pagination/src/pagination.js +390 -390
  168. package/packages/popconfirm/src/main.vue +104 -104
  169. package/packages/popover/src/main.vue +239 -239
  170. package/packages/radio/src/radio-button.vue +115 -115
  171. package/packages/radio/src/radio-group.vue +115 -115
  172. package/packages/radio/src/radio.vue +148 -148
  173. package/packages/rate/src/main.vue +348 -348
  174. package/packages/scrollbar/src/bar.js +92 -92
  175. package/packages/scrollbar/src/main.js +130 -130
  176. package/packages/select/src/option-group.vue +60 -60
  177. package/packages/select/src/option.vue +171 -171
  178. package/packages/select/src/select-dropdown.vue +74 -74
  179. package/packages/select/src/select.vue +979 -979
  180. package/packages/slider/src/button.vue +238 -238
  181. package/packages/slider/src/main.vue +427 -427
  182. package/packages/statistic/src/main.vue +204 -204
  183. package/packages/steps/src/steps.vue +68 -68
  184. package/packages/switch/src/component.vue +182 -182
  185. package/packages/table/src/config.js +153 -153
  186. package/packages/table/src/filter-panel.vue +194 -194
  187. package/packages/table/src/store/current.js +76 -76
  188. package/packages/table/src/store/helper.js +41 -41
  189. package/packages/table/src/store/index.js +147 -147
  190. package/packages/table/src/store/watcher.js +502 -502
  191. package/packages/table/src/table-body.js +469 -469
  192. package/packages/table/src/table-column.js +328 -328
  193. package/packages/table/src/table-header.js +571 -571
  194. package/packages/table/src/table-layout.js +249 -249
  195. package/packages/table/src/table-row.js +101 -101
  196. package/packages/table/src/table.vue +740 -740
  197. package/packages/table/src/util.js +273 -273
  198. package/packages/tabs/src/tab-bar.vue +57 -57
  199. package/packages/tabs/src/tab-nav.vue +294 -294
  200. package/packages/tabs/src/tabs.vue +201 -201
  201. package/packages/theme-chalk/src/button.scss +416 -416
  202. package/packages/theme-chalk/src/cascader.scss +252 -252
  203. package/packages/theme-chalk/src/checkbox.scss +419 -419
  204. package/packages/theme-chalk/src/common/var.scss +795 -795
  205. package/packages/theme-chalk/src/form.scss +201 -201
  206. package/packages/theme-chalk/src/input.scss +591 -591
  207. package/packages/theme-chalk/src/iovfont.scss +818 -803
  208. package/packages/theme-chalk/src/link.scss +8 -8
  209. package/packages/theme-chalk/src/message-box.scss +207 -207
  210. package/packages/theme-chalk/src/mixins/_button.scss +136 -136
  211. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  212. package/packages/theme-chalk/src/radio-button.scss +115 -115
  213. package/packages/theme-chalk/src/select.scss +270 -270
  214. package/packages/theme-chalk/src/tabs.scss +755 -755
  215. package/packages/theme-chalk/src/upload.scss +568 -568
  216. package/packages/tooltip/src/main.js +242 -242
  217. package/packages/transfer/src/main.vue +231 -231
  218. package/packages/transfer/src/transfer-panel.vue +251 -251
  219. package/packages/tree/src/model/node.js +484 -484
  220. package/packages/tree/src/tree-node.vue +279 -279
  221. package/packages/tree/src/tree.vue +496 -496
  222. package/packages/upload/src/index.vue +420 -420
  223. package/packages/upload/src/upload-file.vue +98 -98
  224. package/packages/upload/src/upload-list.vue +115 -115
  225. package/packages/upload/src/upload-picture.vue +98 -98
  226. package/packages/upload/src/upload.vue +231 -231
  227. package/packages/upload/src/utils.js +31 -31
  228. package/src/directives/repeat-click.js +26 -26
  229. package/src/index.js +259 -259
  230. package/src/locale/format.js +46 -46
  231. package/src/locale/index.js +48 -48
  232. package/src/locale/lang/lo-LA.js +126 -126
  233. package/src/mixins/locale.js +9 -9
  234. package/src/mixins/migrating.js +54 -54
  235. package/src/transitions/collapse-transition.js +77 -77
  236. package/src/utils/clickoutside.js +76 -76
  237. package/src/utils/date-util.js +282 -282
  238. package/src/utils/popup/index.js +218 -218
  239. package/src/utils/popup/popup-manager.js +194 -194
  240. package/src/utils/util.js +245 -245
  241. package/src/utils/vdom.js +5 -5
  242. package/src/utils/vue-popper.js +198 -198
@@ -1,591 +1,591 @@
1
- @import "mixins/mixins";
2
- @import "common/var";
3
-
4
- @include b(textarea) {
5
- position: relative;
6
- display: block;
7
- width: 100%;
8
- vertical-align: bottom;
9
- font-size: $--font-size-base;
10
-
11
- @include e(inner) {
12
- display: block;
13
- resize: vertical;
14
- padding: 5px 12px;
15
- line-height: 1.5;
16
- box-sizing: border-box;
17
- width: 100%;
18
- font-size: inherit;
19
- color: $--input-font-color;
20
- background-color: $--input-background-color;
21
- background-image: none;
22
- border: $--input-border;
23
- border-radius: $--input-border-radius;
24
- transition: $--border-transition-base;
25
-
26
- &::placeholder {
27
- color: $--input-placeholder-color;
28
- }
29
-
30
- &:hover {
31
- border-color: $--input-hover-border;
32
- }
33
-
34
- &:focus {
35
- outline: none;
36
- border-color: $--input-focus-border;
37
- box-shadow: $--input-box-shadow;
38
- }
39
- }
40
-
41
- & .el-input__count {
42
- color: $--color-text-1;
43
- background: $--color-white;
44
- position: absolute;
45
- font-size: 12px;
46
- bottom: 5px;
47
- right: 10px;
48
- }
49
-
50
- @include when(disabled) {
51
- .el-textarea__inner {
52
- background-color: $--input-disabled-fill;
53
- border-color: $--input-disabled-border;
54
- color: $--input-disabled-color;
55
- cursor: not-allowed;
56
-
57
- &::placeholder {
58
- color: $--input-disabled-placeholder-color;
59
- }
60
- }
61
- }
62
-
63
- @include when(exceed) {
64
- .el-textarea__inner {
65
- border-color: $--color-danger;
66
- }
67
-
68
- .el-input__count {
69
- color: $--color-danger;
70
- }
71
- }
72
- }
73
-
74
- @include b(input) {
75
- position: relative;
76
- font-size: $--font-size-base;
77
- display: block;
78
- width: 100%;
79
- @include scroll-bar;
80
-
81
- & .el-input__clear {
82
- cursor: pointer;
83
- display: flex;
84
- align-items: center;
85
-
86
- &:before {
87
- margin-right: -12px;
88
- color: $--input-icon-color;
89
- font-size: 10px;
90
- position: relative;
91
- line-height: 1;
92
- }
93
- &:after {
94
- border-radius: 100%;
95
- width: 14px;
96
- height: 14px;
97
- background: $--color-fill-3;
98
- }
99
-
100
- &:hover {
101
- &:before {
102
- color: $--color-white;
103
- }
104
- &:after {
105
- background: $--color-fill-5;
106
- }
107
- }
108
- }
109
-
110
- & .el-input__count {
111
- height: 100%;
112
- display: inline-flex;
113
- align-items: center;
114
- color: $--color-info;
115
- font-size: 12px;
116
-
117
- .el-input__count-inner {
118
- background: $--color-white;
119
- line-height: initial;
120
- display: inline-block;
121
- padding: 0 5px;
122
- }
123
- }
124
-
125
- @include e(inner) {
126
- -webkit-appearance: none;
127
- background-color: $--input-background-color;
128
- background-image: none;
129
- border-radius: $--input-border-radius;
130
- border: $--input-border;
131
- box-sizing: border-box;
132
- color: $--input-font-color;
133
- display: block;
134
- font-size: inherit;
135
- height: $--input-height;
136
- line-height: $--input-height;
137
- outline: none;
138
- padding: 0 12px;
139
- transition: $--border-transition-base;
140
- width: 100%;
141
-
142
- &::-ms-reveal {
143
- display: none;
144
- }
145
-
146
- &::placeholder {
147
- color: $--input-placeholder-color;
148
- }
149
-
150
- &:hover {
151
- border-color: $--input-hover-border;
152
- }
153
-
154
- &:focus {
155
- outline: none;
156
- border-color: $--input-focus-border;
157
- box-shadow: $--input-box-shadow;
158
- }
159
- }
160
- @include e((prefix, suffix)) {
161
- .el-input__icon {
162
- line-height: $--input-height - 2px;
163
- display: flex;
164
- align-items: center;
165
- }
166
- }
167
- @include e(suffix) {
168
- padding-left: 8px;
169
- position: absolute;
170
- right: 1px;
171
- top: 1px;
172
- bottom: 1px;
173
- text-align: center;
174
- color: $--input-icon-color;
175
- border-radius: $--input-border-radius;
176
- border-top-left-radius: 0;
177
- border-bottom-left-radius: 0;
178
- background: $--input-background-color;
179
- pointer-events: none;
180
- z-index: 2;
181
- display: flex;
182
- align-items: center;
183
- box-sizing: border-box;
184
- }
185
-
186
- @include e(suffix-inner) {
187
- pointer-events: all;
188
- display: flex;
189
- align-items: center;
190
- }
191
-
192
- @include e(prefix) {
193
- padding-left: 8px;
194
- position: absolute;
195
- left: 1px;
196
- top: 1px;
197
- bottom: 1px;
198
- text-align: center;
199
- color: $--input-icon-color;
200
- border-radius: $--input-border-radius;
201
- // background: $--input-background-color;
202
- z-index: 2;
203
- display: flex;
204
- align-items: center;
205
- box-sizing: border-box;
206
- }
207
-
208
- @include e(icon) {
209
- padding-right: 8px;
210
- height: 100%;
211
- width: auto;
212
- font-size: 14px;
213
- text-align: center;
214
- line-height: $--input-height;
215
- cursor: pointer;
216
-
217
- &:after {
218
- content: '';
219
- }
220
- }
221
-
222
- @include e(validateIcon) {
223
- pointer-events: none;
224
- }
225
-
226
- @include when(active) {
227
- .el-input__inner {
228
- outline: none;
229
- border-color: $--input-focus-border;
230
- }
231
- }
232
-
233
- @include when(disabled) {
234
- .el-input__inner {
235
- background-color: $--input-disabled-fill;
236
- border-color: $--input-disabled-border;
237
- color: $--input-color-disabled;
238
- cursor: not-allowed;
239
-
240
- &::placeholder {
241
- color: $--input-disabled-placeholder-color;
242
- }
243
- }
244
-
245
- .el-input__icon {
246
- cursor: not-allowed;
247
- color: $--color-fill-4;
248
- }
249
- .el-input__prefix,
250
- .el-input__suffix,
251
- .el-input-group__prefix-label,
252
- .el-input-group__suffix-label {
253
- background-color: $--input-disabled-fill;
254
- }
255
- }
256
-
257
- @include when(exceed) {
258
- .el-input__inner {
259
- border-color: $--color-danger;
260
- }
261
-
262
- .el-input__suffix {
263
- .el-input__count {
264
- color: $--color-danger;
265
- }
266
- }
267
- }
268
-
269
- @include m(suffix) {
270
- .el-input__inner {
271
- padding-right: 30px;
272
- }
273
- }
274
-
275
- @include m(prefix) {
276
- .el-input__inner {
277
- padding-left: 30px;
278
- }
279
- }
280
-
281
- @include m(medium) {
282
- font-size: $--input-medium-font-size;
283
-
284
- @include e(inner) {
285
- height: $--input-medium-height;
286
- }
287
-
288
- .el-input__icon {
289
- line-height: $--input-medium-height;
290
- }
291
-
292
- .el-input-group__prepend,
293
- .el-input-group__append {
294
- height: $--input-medium-height;
295
- line-height: $--input-medium-height;
296
- }
297
- .el-input-group__prefix-label,
298
- .el-input-group__suffix-label {
299
- height: $--input-medium-height - 2px;
300
- line-height: $--input-medium-height - 2px;
301
- }
302
-
303
- .el-input-group--prefix,
304
- .el-input-group--suffix {
305
- height: $--input-medium-height;
306
- .el-input__inner {
307
- height: $--input-medium-height - 2px;
308
- line-height: $--input-medium-height - 2px;
309
- }
310
- .el-input__icon {
311
- line-height: $--input-medium-height - 2px;
312
- }
313
- }
314
- }
315
- @include m(small) {
316
- font-size: $--input-small-font-size;
317
-
318
- @include e(inner) {
319
- height: $--input-small-height;
320
- }
321
-
322
- .el-input__icon {
323
- line-height: $--input-small-height;
324
- }
325
-
326
- .el-input-group__prepend,
327
- .el-input-group__append {
328
- height: $--input-small-height;
329
- line-height: $--input-small-height;
330
- }
331
- .el-input-group__prefix-label,
332
- .el-input-group__suffix-label {
333
- height: $--input-small-height - 2px;
334
- line-height: $--input-small-height - 2px;
335
- }
336
-
337
- .el-input-group--prefix,
338
- .el-input-group--suffix {
339
- height: $--input-small-height;
340
- .el-input__inner {
341
- height: $--input-small-height - 2px;
342
- line-height: $--input-small-height - 2px;
343
- }
344
- .el-input__icon {
345
- line-height: $--input-small-height - 2px;
346
- }
347
- }
348
- }
349
- @include m(mini) {
350
- font-size: $--input-mini-font-size;
351
-
352
- @include e(inner) {
353
- height: $--input-mini-height;
354
- }
355
-
356
- .el-input__icon {
357
- line-height: $--input-mini-height;
358
- }
359
-
360
- .el-input-group__prepend,
361
- .el-input-group__append {
362
- height: $--input-mini-height;
363
- line-height: $--input-mini-height;
364
- }
365
- .el-input-group__prefix-label,
366
- .el-input-group__suffix-label {
367
- height: $--input-mini-height - 2px;
368
- line-height: $--input-mini-height - 2px;
369
- }
370
-
371
- .el-input-group--prefix,
372
- .el-input-group--suffix {
373
- height: $--input-mini-height;
374
- .el-input__inner {
375
- height: $--input-mini-height - 2px;
376
- line-height: $--input-mini-height - 2px;
377
- }
378
- .el-input__icon {
379
- line-height: $--input-mini-height - 2px;
380
- }
381
- }
382
- }
383
- }
384
-
385
- @include b(input-group) {
386
- display: flex;
387
- align-items: center;
388
- width: 100%;
389
-
390
- > .el-input__inner {
391
- display: block;
392
- // border-radius: 0;
393
- }
394
- > .el-input-group__inner {
395
- z-index: 1;
396
- }
397
- .el-input-group__inner {
398
- flex: 1;
399
- display: flex;
400
- position: relative;
401
- align-items: center;
402
- }
403
- @include m(append) {
404
- .el-input__inner,
405
- .el-input-group__inner {
406
- border-top-right-radius: 0;
407
- border-bottom-right-radius: 0;
408
- }
409
- }
410
- @include m(prepend) {
411
- .el-input__inner,
412
- .el-input-group__inner {
413
- border-top-left-radius: 0;
414
- border-bottom-left-radius: 0;
415
- }
416
- }
417
- @include m((prefix, suffix)) {
418
- color: $--input-font-color;
419
- background-color: $--input-background-color;
420
- background-image: none;
421
- border: $--input-border;
422
- box-sizing: border-box;
423
- border-radius: $--input-border-radius;
424
- transition: $--border-transition-base;
425
- z-index: 1;
426
- &:hover {
427
- border-color: $--input-hover-border;
428
- &.is-disabled {
429
- border-color: $--input-disabled-border;
430
- }
431
- }
432
- &:focus {
433
- outline: none;
434
- }
435
- &.is-focus {
436
- outline: none;
437
- border-color: $--input-focus-border;
438
- box-shadow: $--input-box-shadow;
439
- z-index: 2;
440
- }
441
- &.is-disabled {
442
- background-color: $--input-disabled-fill;
443
- }
444
- .el-input__inner,
445
- &:focus {
446
- margin: 0 auto;
447
- border: 0 none;
448
- box-shadow: none;
449
- padding-right: 8px;
450
- height: $--input-height - 2px;
451
- }
452
- .el-input-group__prepend {
453
- border: 0 none;
454
- border-right: 1px solid $--input-border-color !important;
455
- }
456
- .el-input-group__append {
457
- border: 0 none;
458
- border-left: 1px solid $--input-border-color !important;
459
- }
460
- }
461
- @include e((prefix-label, suffix-label)) {
462
- color: $--color-text-4;
463
- position: relative;
464
- padding: 0 0 0 12px;
465
- white-space: nowrap;
466
- display: flex;
467
- align-items: center;
468
- border-radius: $--input-border-radius;
469
- height: $--input-height - 2px;
470
- line-height: $--input-height - 2px;
471
- box-sizing: border-box;
472
-
473
- &:focus {
474
- outline: none;
475
- }
476
- .el-select {
477
- .el-input__inner {
478
- color: $--color-text-4;
479
- }
480
- .el-input.is-focus .el-input__inner {
481
- border: 0 none;
482
- box-shadow: none;
483
- }
484
- }
485
- }
486
-
487
- @include e(prefix-label) {
488
- .el-select {
489
- margin-left: -12px;
490
- }
491
- }
492
-
493
- @include e(suffix-label) {
494
- padding: 0 12px 0 0;
495
- display: inline;
496
- .el-select {
497
- margin-right: -12px;
498
- }
499
- }
500
-
501
- @include e((append, prepend)) {
502
- background-color: $--background-color-base;
503
- color: $--color-info;
504
- display: block;
505
- position: relative;
506
- border: $--border-base;
507
- border-radius: $--input-border-radius;
508
- padding: 0 12px;
509
- white-space: nowrap;
510
- box-sizing: border-box;
511
- display: flex;
512
- align-items: center;
513
-
514
- &:focus {
515
- outline: none;
516
- border-color: $--input-focus-border;
517
- box-shadow: $--input-box-shadow;
518
- }
519
-
520
- &.is-select,
521
- &.is-button {
522
- border: 0 none;
523
- padding: 0;
524
- .el-input__suffix {
525
- background: none;
526
- }
527
- .el-input.is-focus,
528
- .el-input:hover,
529
- .el-input__inner:focus {
530
- z-index: 2;
531
- }
532
- }
533
- .is-focus {
534
- .el-input__inner {
535
- background: #fff;
536
- z-index: 2;
537
- }
538
- }
539
- }
540
-
541
- @include e(prepend) {
542
- margin-right: -1px;
543
- border-top-right-radius: 0;
544
- border-bottom-right-radius: 0;
545
- height: $--input-height;
546
- line-height: $--input-height;
547
- .el-button {
548
- position: relative;
549
- border-radius: $--input-border-radius;
550
- border-top-right-radius: 0;
551
- border-bottom-right-radius: 0;
552
- }
553
- .el-input__inner {
554
- padding: 0 12px;
555
- position: relative;
556
- background: $--color-fill-1;
557
- border-radius: $--input-border-radius;
558
- border-top-right-radius: 0;
559
- border-bottom-right-radius: 0;
560
- }
561
- }
562
-
563
- @include e(append) {
564
- margin-left: -1px;
565
- border-top-left-radius: 0;
566
- border-bottom-left-radius: 0;
567
- height: $--input-height;
568
- line-height: $--input-height;
569
- .el-button {
570
- position: relative;
571
- border-radius: $--input-border-radius;
572
- border-top-left-radius: 0;
573
- border-bottom-left-radius: 0;
574
- }
575
- .el-input__inner {
576
- padding: 0 12px;
577
- position: relative;
578
- border-radius: $--input-border-radius;
579
- background: $--color-fill-1;
580
- border-top-left-radius: 0;
581
- border-bottom-left-radius: 0;
582
- }
583
- }
584
- }
585
-
586
- /** disalbe default clear on IE */
587
- .el-input__inner::-ms-clear {
588
- display: none;
589
- width: 0;
590
- height: 0;
591
- }
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(textarea) {
5
+ position: relative;
6
+ display: block;
7
+ width: 100%;
8
+ vertical-align: bottom;
9
+ font-size: $--font-size-base;
10
+
11
+ @include e(inner) {
12
+ display: block;
13
+ resize: vertical;
14
+ padding: 5px 12px;
15
+ line-height: 1.5;
16
+ box-sizing: border-box;
17
+ width: 100%;
18
+ font-size: inherit;
19
+ color: $--input-font-color;
20
+ background-color: $--input-background-color;
21
+ background-image: none;
22
+ border: $--input-border;
23
+ border-radius: $--input-border-radius;
24
+ transition: $--border-transition-base;
25
+
26
+ &::placeholder {
27
+ color: $--input-placeholder-color;
28
+ }
29
+
30
+ &:hover {
31
+ border-color: $--input-hover-border;
32
+ }
33
+
34
+ &:focus {
35
+ outline: none;
36
+ border-color: $--input-focus-border;
37
+ box-shadow: $--input-box-shadow;
38
+ }
39
+ }
40
+
41
+ & .el-input__count {
42
+ color: $--color-text-2;
43
+ background: $--color-white;
44
+ position: absolute;
45
+ font-size: 12px;
46
+ bottom: 5px;
47
+ right: 10px;
48
+ }
49
+
50
+ @include when(disabled) {
51
+ .el-textarea__inner {
52
+ background-color: $--input-disabled-fill;
53
+ border-color: $--input-disabled-border;
54
+ color: $--input-disabled-color;
55
+ cursor: not-allowed;
56
+
57
+ &::placeholder {
58
+ color: $--input-disabled-placeholder-color;
59
+ }
60
+ }
61
+ }
62
+
63
+ @include when(exceed) {
64
+ .el-textarea__inner {
65
+ border-color: $--color-danger;
66
+ }
67
+
68
+ .el-input__count {
69
+ color: $--color-danger;
70
+ }
71
+ }
72
+ }
73
+
74
+ @include b(input) {
75
+ position: relative;
76
+ font-size: $--font-size-base;
77
+ display: block;
78
+ width: 100%;
79
+ @include scroll-bar;
80
+
81
+ & .el-input__clear {
82
+ cursor: pointer;
83
+ display: flex;
84
+ align-items: center;
85
+
86
+ &:before {
87
+ margin-right: -12px;
88
+ color: $--input-icon-color;
89
+ font-size: 10px;
90
+ position: relative;
91
+ line-height: 1;
92
+ }
93
+ &:after {
94
+ border-radius: 100%;
95
+ width: 14px;
96
+ height: 14px;
97
+ background: $--color-fill-3;
98
+ }
99
+
100
+ &:hover {
101
+ &:before {
102
+ color: $--color-white;
103
+ }
104
+ &:after {
105
+ background: $--color-fill-5;
106
+ }
107
+ }
108
+ }
109
+
110
+ & .el-input__count {
111
+ height: 100%;
112
+ display: inline-flex;
113
+ align-items: center;
114
+ color: $--color-text-2;
115
+ font-size: 12px;
116
+
117
+ .el-input__count-inner {
118
+ background: $--color-white;
119
+ line-height: initial;
120
+ display: inline-block;
121
+ padding: 0 5px;
122
+ }
123
+ }
124
+
125
+ @include e(inner) {
126
+ -webkit-appearance: none;
127
+ background-color: $--input-background-color;
128
+ background-image: none;
129
+ border-radius: $--input-border-radius;
130
+ border: $--input-border;
131
+ box-sizing: border-box;
132
+ color: $--input-font-color;
133
+ display: block;
134
+ font-size: inherit;
135
+ height: $--input-height;
136
+ line-height: $--input-height;
137
+ outline: none;
138
+ padding: 0 12px;
139
+ transition: $--border-transition-base;
140
+ width: 100%;
141
+
142
+ &::-ms-reveal {
143
+ display: none;
144
+ }
145
+
146
+ &::placeholder {
147
+ color: $--input-placeholder-color;
148
+ }
149
+
150
+ &:hover {
151
+ border-color: $--input-hover-border;
152
+ }
153
+
154
+ &:focus {
155
+ outline: none;
156
+ border-color: $--input-focus-border;
157
+ box-shadow: $--input-box-shadow;
158
+ }
159
+ }
160
+ @include e((prefix, suffix)) {
161
+ .el-input__icon {
162
+ line-height: $--input-height - 2px;
163
+ display: flex;
164
+ align-items: center;
165
+ }
166
+ }
167
+ @include e(suffix) {
168
+ padding-left: 8px;
169
+ position: absolute;
170
+ right: 1px;
171
+ top: 1px;
172
+ bottom: 1px;
173
+ text-align: center;
174
+ color: $--input-icon-color;
175
+ border-radius: $--input-border-radius;
176
+ border-top-left-radius: 0;
177
+ border-bottom-left-radius: 0;
178
+ background: $--input-background-color;
179
+ pointer-events: none;
180
+ z-index: 2;
181
+ display: flex;
182
+ align-items: center;
183
+ box-sizing: border-box;
184
+ }
185
+
186
+ @include e(suffix-inner) {
187
+ pointer-events: all;
188
+ display: flex;
189
+ align-items: center;
190
+ }
191
+
192
+ @include e(prefix) {
193
+ padding-left: 8px;
194
+ position: absolute;
195
+ left: 1px;
196
+ top: 1px;
197
+ bottom: 1px;
198
+ text-align: center;
199
+ color: $--input-icon-color;
200
+ border-radius: $--input-border-radius;
201
+ // background: $--input-background-color;
202
+ z-index: 2;
203
+ display: flex;
204
+ align-items: center;
205
+ box-sizing: border-box;
206
+ }
207
+
208
+ @include e(icon) {
209
+ padding-right: 8px;
210
+ height: 100%;
211
+ width: auto;
212
+ font-size: 14px;
213
+ text-align: center;
214
+ line-height: $--input-height;
215
+ cursor: pointer;
216
+
217
+ &:after {
218
+ content: '';
219
+ }
220
+ }
221
+
222
+ @include e(validateIcon) {
223
+ pointer-events: none;
224
+ }
225
+
226
+ @include when(active) {
227
+ .el-input__inner {
228
+ outline: none;
229
+ border-color: $--input-focus-border;
230
+ }
231
+ }
232
+
233
+ @include when(disabled) {
234
+ .el-input__inner {
235
+ background-color: $--input-disabled-fill;
236
+ border-color: $--input-disabled-border;
237
+ color: $--input-color-disabled;
238
+ cursor: not-allowed;
239
+
240
+ &::placeholder {
241
+ color: $--input-disabled-placeholder-color;
242
+ }
243
+ }
244
+
245
+ .el-input__icon {
246
+ cursor: not-allowed;
247
+ color: $--color-fill-4;
248
+ }
249
+ .el-input__prefix,
250
+ .el-input__suffix,
251
+ .el-input-group__prefix-label,
252
+ .el-input-group__suffix-label {
253
+ background-color: $--input-disabled-fill;
254
+ }
255
+ }
256
+
257
+ @include when(exceed) {
258
+ .el-input__inner {
259
+ border-color: $--color-danger;
260
+ }
261
+
262
+ .el-input__suffix {
263
+ .el-input__count {
264
+ color: $--color-danger;
265
+ }
266
+ }
267
+ }
268
+
269
+ @include m(suffix) {
270
+ .el-input__inner {
271
+ padding-right: 30px;
272
+ }
273
+ }
274
+
275
+ @include m(prefix) {
276
+ .el-input__inner {
277
+ padding-left: 30px;
278
+ }
279
+ }
280
+
281
+ @include m(medium) {
282
+ font-size: $--input-medium-font-size;
283
+
284
+ @include e(inner) {
285
+ height: $--input-medium-height;
286
+ }
287
+
288
+ .el-input__icon {
289
+ line-height: $--input-medium-height;
290
+ }
291
+
292
+ .el-input-group__prepend,
293
+ .el-input-group__append {
294
+ height: $--input-medium-height;
295
+ line-height: $--input-medium-height;
296
+ }
297
+ .el-input-group__prefix-label,
298
+ .el-input-group__suffix-label {
299
+ height: $--input-medium-height - 2px;
300
+ line-height: $--input-medium-height - 2px;
301
+ }
302
+
303
+ .el-input-group--prefix,
304
+ .el-input-group--suffix {
305
+ height: $--input-medium-height;
306
+ .el-input__inner {
307
+ height: $--input-medium-height - 2px;
308
+ line-height: $--input-medium-height - 2px;
309
+ }
310
+ .el-input__icon {
311
+ line-height: $--input-medium-height - 2px;
312
+ }
313
+ }
314
+ }
315
+ @include m(small) {
316
+ font-size: $--input-small-font-size;
317
+
318
+ @include e(inner) {
319
+ height: $--input-small-height;
320
+ }
321
+
322
+ .el-input__icon {
323
+ line-height: $--input-small-height;
324
+ }
325
+
326
+ .el-input-group__prepend,
327
+ .el-input-group__append {
328
+ height: $--input-small-height;
329
+ line-height: $--input-small-height;
330
+ }
331
+ .el-input-group__prefix-label,
332
+ .el-input-group__suffix-label {
333
+ height: $--input-small-height - 2px;
334
+ line-height: $--input-small-height - 2px;
335
+ }
336
+
337
+ .el-input-group--prefix,
338
+ .el-input-group--suffix {
339
+ height: $--input-small-height;
340
+ .el-input__inner {
341
+ height: $--input-small-height - 2px;
342
+ line-height: $--input-small-height - 2px;
343
+ }
344
+ .el-input__icon {
345
+ line-height: $--input-small-height - 2px;
346
+ }
347
+ }
348
+ }
349
+ @include m(mini) {
350
+ font-size: $--input-mini-font-size;
351
+
352
+ @include e(inner) {
353
+ height: $--input-mini-height;
354
+ }
355
+
356
+ .el-input__icon {
357
+ line-height: $--input-mini-height;
358
+ }
359
+
360
+ .el-input-group__prepend,
361
+ .el-input-group__append {
362
+ height: $--input-mini-height;
363
+ line-height: $--input-mini-height;
364
+ }
365
+ .el-input-group__prefix-label,
366
+ .el-input-group__suffix-label {
367
+ height: $--input-mini-height - 2px;
368
+ line-height: $--input-mini-height - 2px;
369
+ }
370
+
371
+ .el-input-group--prefix,
372
+ .el-input-group--suffix {
373
+ height: $--input-mini-height;
374
+ .el-input__inner {
375
+ height: $--input-mini-height - 2px;
376
+ line-height: $--input-mini-height - 2px;
377
+ }
378
+ .el-input__icon {
379
+ line-height: $--input-mini-height - 2px;
380
+ }
381
+ }
382
+ }
383
+ }
384
+
385
+ @include b(input-group) {
386
+ display: flex;
387
+ align-items: center;
388
+ width: 100%;
389
+
390
+ > .el-input__inner {
391
+ display: block;
392
+ // border-radius: 0;
393
+ }
394
+ > .el-input-group__inner {
395
+ z-index: 1;
396
+ }
397
+ .el-input-group__inner {
398
+ flex: 1;
399
+ display: flex;
400
+ position: relative;
401
+ align-items: center;
402
+ }
403
+ @include m(append) {
404
+ .el-input__inner,
405
+ .el-input-group__inner {
406
+ border-top-right-radius: 0;
407
+ border-bottom-right-radius: 0;
408
+ }
409
+ }
410
+ @include m(prepend) {
411
+ .el-input__inner,
412
+ .el-input-group__inner {
413
+ border-top-left-radius: 0;
414
+ border-bottom-left-radius: 0;
415
+ }
416
+ }
417
+ @include m((prefix, suffix)) {
418
+ color: $--input-font-color;
419
+ background-color: $--input-background-color;
420
+ background-image: none;
421
+ border: $--input-border;
422
+ box-sizing: border-box;
423
+ border-radius: $--input-border-radius;
424
+ transition: $--border-transition-base;
425
+ z-index: 1;
426
+ &:hover {
427
+ border-color: $--input-hover-border;
428
+ &.is-disabled {
429
+ border-color: $--input-disabled-border;
430
+ }
431
+ }
432
+ &:focus {
433
+ outline: none;
434
+ }
435
+ &.is-focus {
436
+ outline: none;
437
+ border-color: $--input-focus-border;
438
+ box-shadow: $--input-box-shadow;
439
+ z-index: 2;
440
+ }
441
+ &.is-disabled {
442
+ background-color: $--input-disabled-fill;
443
+ }
444
+ .el-input__inner,
445
+ &:focus {
446
+ margin: 0 auto;
447
+ border: 0 none;
448
+ box-shadow: none;
449
+ padding-right: 8px;
450
+ height: $--input-height - 2px;
451
+ }
452
+ .el-input-group__prepend {
453
+ border: 0 none;
454
+ border-right: 1px solid $--input-border-color !important;
455
+ }
456
+ .el-input-group__append {
457
+ border: 0 none;
458
+ border-left: 1px solid $--input-border-color !important;
459
+ }
460
+ }
461
+ @include e((prefix-label, suffix-label)) {
462
+ color: $--color-text-4;
463
+ position: relative;
464
+ padding: 0 0 0 12px;
465
+ white-space: nowrap;
466
+ display: flex;
467
+ align-items: center;
468
+ border-radius: $--input-border-radius;
469
+ height: $--input-height - 2px;
470
+ line-height: $--input-height - 2px;
471
+ box-sizing: border-box;
472
+
473
+ &:focus {
474
+ outline: none;
475
+ }
476
+ .el-select {
477
+ .el-input__inner {
478
+ color: $--color-text-4;
479
+ }
480
+ .el-input.is-focus .el-input__inner {
481
+ border: 0 none;
482
+ box-shadow: none;
483
+ }
484
+ }
485
+ }
486
+
487
+ @include e(prefix-label) {
488
+ .el-select {
489
+ margin-left: -12px;
490
+ }
491
+ }
492
+
493
+ @include e(suffix-label) {
494
+ padding: 0 12px 0 0;
495
+ display: inline;
496
+ .el-select {
497
+ margin-right: -12px;
498
+ }
499
+ }
500
+
501
+ @include e((append, prepend)) {
502
+ background-color: $--background-color-base;
503
+ color: $--color-info;
504
+ display: block;
505
+ position: relative;
506
+ border: $--border-base;
507
+ border-radius: $--input-border-radius;
508
+ padding: 0 12px;
509
+ white-space: nowrap;
510
+ box-sizing: border-box;
511
+ display: flex;
512
+ align-items: center;
513
+
514
+ &:focus {
515
+ outline: none;
516
+ border-color: $--input-focus-border;
517
+ box-shadow: $--input-box-shadow;
518
+ }
519
+
520
+ &.is-select,
521
+ &.is-button {
522
+ border: 0 none;
523
+ padding: 0;
524
+ .el-input__suffix {
525
+ background: none;
526
+ }
527
+ .el-input.is-focus,
528
+ .el-input:hover,
529
+ .el-input__inner:focus {
530
+ z-index: 2;
531
+ }
532
+ }
533
+ .is-focus {
534
+ .el-input__inner {
535
+ background: #fff;
536
+ z-index: 2;
537
+ }
538
+ }
539
+ }
540
+
541
+ @include e(prepend) {
542
+ margin-right: -1px;
543
+ border-top-right-radius: 0;
544
+ border-bottom-right-radius: 0;
545
+ height: $--input-height;
546
+ line-height: $--input-height;
547
+ .el-button {
548
+ position: relative;
549
+ border-radius: $--input-border-radius;
550
+ border-top-right-radius: 0;
551
+ border-bottom-right-radius: 0;
552
+ }
553
+ .el-input__inner {
554
+ padding: 0 12px;
555
+ position: relative;
556
+ background: $--color-fill-1;
557
+ border-radius: $--input-border-radius;
558
+ border-top-right-radius: 0;
559
+ border-bottom-right-radius: 0;
560
+ }
561
+ }
562
+
563
+ @include e(append) {
564
+ margin-left: -1px;
565
+ border-top-left-radius: 0;
566
+ border-bottom-left-radius: 0;
567
+ height: $--input-height;
568
+ line-height: $--input-height;
569
+ .el-button {
570
+ position: relative;
571
+ border-radius: $--input-border-radius;
572
+ border-top-left-radius: 0;
573
+ border-bottom-left-radius: 0;
574
+ }
575
+ .el-input__inner {
576
+ padding: 0 12px;
577
+ position: relative;
578
+ border-radius: $--input-border-radius;
579
+ background: $--color-fill-1;
580
+ border-top-left-radius: 0;
581
+ border-bottom-left-radius: 0;
582
+ }
583
+ }
584
+ }
585
+
586
+ /** disalbe default clear on IE */
587
+ .el-input__inner::-ms-clear {
588
+ display: none;
589
+ width: 0;
590
+ height: 0;
591
+ }