wip
This commit is contained in:
parent
c49e5a80be
commit
190486d841
69 changed files with 284 additions and 284 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue