This commit is contained in:
syuilo 2020-09-05 10:06:59 +09:00
parent c49e5a80be
commit 190486d841
69 changed files with 284 additions and 284 deletions

View file

@ -169,9 +169,9 @@ export default defineComponent({
},
v(v) {
if (this.type === 'number') {
this.$emit('input', parseFloat(v));
this.$emit('update:value', parseFloat(v));
} else {
this.$emit('input', v);
this.$emit('update:value', v);
}
this.invalid = this.$refs.input.validity.badInput;
@ -228,7 +228,7 @@ export default defineComponent({
},
onChangeFile() {
this.v = Array.from((this.$refs.file as any).files);
this.$emit('input', this.v);
this.$emit('update:value', this.v);
this.$emit('change', this.v);
},
onInput(ev) {

View file

@ -13,7 +13,7 @@
:autofocus="autofocus"
@focus="focused = true"
@blur="focused = false"
@input="$emit('input', $event.target.value)"
@input="$emit('update:value', $event.target.value)"
/>
</div>
</template>

View file

@ -58,7 +58,7 @@ export default defineComponent({
return this.value;
},
set(v) {
this.$emit('input', v);
this.$emit('update:value', v);
}
},
filled(): boolean {

View file

@ -74,7 +74,7 @@ export default defineComponent({
},
onInput(ev) {
this.changed = true;
this.$emit('input', ev.target.value);
this.$emit('update:value', ev.target.value);
}
}
});