@webitel/ui-sdk 3.1.97 → 3.1.98
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.
- package/dist/ui-sdk.common.js +18 -17
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +18 -17
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-input/wt-input.vue +5 -3
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
:min="numberMin"
|
|
32
32
|
:placeholder="placeholder || label"
|
|
33
33
|
:type="inputType"
|
|
34
|
-
:value="
|
|
34
|
+
:value="inputValue"
|
|
35
35
|
class="wt-input__input"
|
|
36
36
|
@input="inputHandler"
|
|
37
37
|
@keyup="$emit('keyup', $event)"
|
|
@@ -80,14 +80,12 @@ export default {
|
|
|
80
80
|
props: {
|
|
81
81
|
value: {
|
|
82
82
|
type: [String, Number],
|
|
83
|
-
default: '',
|
|
84
83
|
},
|
|
85
84
|
/**
|
|
86
85
|
* Current input modelValue (`v-model`)
|
|
87
86
|
*/
|
|
88
87
|
modelValue: {
|
|
89
88
|
type: [String, Number],
|
|
90
|
-
default: '',
|
|
91
89
|
},
|
|
92
90
|
/**
|
|
93
91
|
* Form input label
|
|
@@ -199,6 +197,10 @@ export default {
|
|
|
199
197
|
},
|
|
200
198
|
|
|
201
199
|
computed: {
|
|
200
|
+
inputValue() {
|
|
201
|
+
return this.value !== undefined ? this.value : this.modelValue;
|
|
202
|
+
},
|
|
203
|
+
|
|
202
204
|
hasLabel() {
|
|
203
205
|
return !!(this.label || this.$slots.label);
|
|
204
206
|
},
|