File tree 2 files changed +38
-25
lines changed
2 files changed +38
-25
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Vue.component('vue-input-ui', VueInputUi);
54
54
| v-model | String/Int | true | - | - |
55
55
| id | String | false | VueInputUi | - |
56
56
| label | String | false | Enter Text | - |
57
- | type | String | no | text | text or number |
57
+ | type | String | no | text | [ text| number| textarea ] |
58
58
| size | String ` sm or lg ` | no | false | |
59
59
| color | String ` HEX ` | no | dogderblue | |
60
60
| hint* | String | no | - | |
@@ -64,6 +64,7 @@ Vue.component('vue-input-ui', VueInputUi);
64
64
| required | Boolean | no | false | |
65
65
| readonly | Boolean | no | false | |
66
66
| clearable | Boolean | no | false | |
67
+ | loader | Boolean | no | false | |
67
68
68
69
## Contribution
69
70
Original file line number Diff line number Diff line change 70
70
v-if =" loader"
71
71
class =" loader"
72
72
:class =" { textarea }"
73
- />
73
+ >
74
+ <div
75
+ class =" loader__progress-bar"
76
+ :style =" [loaderProgressBarBg]"
77
+ />
78
+ </div >
74
79
</div >
75
80
</template >
76
81
114
119
? { color: ` ${ this .valid ? this .validColor : this .color } ` }
115
120
: null
116
121
},
122
+ loaderProgressBarBg () {
123
+ return { backgroundColor: this .color }
124
+ },
117
125
inputValue: {
118
126
get () {
119
127
return this .value
163
171
}
164
172
.field.vue-input-ui {
165
173
position : relative ;
174
+ border-radius : 4px ;
175
+ overflow : hidden ;
176
+
166
177
& .is-dark {
167
178
.field-label {
168
179
color : rgba (white , 0.70 );
327
338
.lm-text-danger {
328
339
color : orangered !important ;
329
340
}
341
+
342
+ .loader {
343
+ top : -2px ;
344
+ height : 2px ;
345
+ width : 100% ;
346
+ position : relative ;
347
+ overflow : hidden ;
348
+ border-radius : 4px ;
349
+
350
+ & .textarea {
351
+ top : -7px ;
352
+ }
353
+
354
+ & __progress-bar {
355
+ display : block ;
356
+ position : absolute ;
357
+ content : ' ' ;
358
+ left : -200px ;
359
+ width : 200px ;
360
+ height : 2px ;
361
+ animation : loading 2s linear infinite ;
362
+ }
363
+ }
364
+
330
365
& .is-dark {
331
366
::-webkit-input-placeholder { /* WebKit, Blink, Edge */
332
367
color : rgba (white , 0.70 );
413
448
}
414
449
}
415
450
}
416
- .loader {
417
- top : -2px ;
418
- height : 2px ;
419
- width : 100% ;
420
- position : relative ;
421
- overflow : hidden ;
422
- border-radius : 2px ;
423
-
424
- & .textarea {
425
- top : -7px ;
426
- }
427
-
428
- & ::before {
429
- display : block ;
430
- position : absolute ;
431
- content : ' ' ;
432
- left : -200px ;
433
- width : 200px ;
434
- height : 2px ;
435
- background-color : rgba (black , 0.2 );
436
- animation : loading 2s linear infinite ;
437
- }
438
- }
439
451
440
452
@keyframes loading {
441
453
from {
You can’t perform that action at this time.
0 commit comments