Commit b05c4b0c by fukai

调整MulRowInput

parent e1af7026
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:rows="rows" :rows="rows"
v-bind="attrs" v-bind:disabled="isDisable" v-bind="attrs" v-bind:disabled="isDisable"
:value="value" :value="value"
@input="onInput($event,value)" @input="onInput"
> >
<template v-slot:suffix> <template v-slot:suffix>
<slot name="suffix"></slot> <slot name="suffix"></slot>
...@@ -53,19 +53,7 @@ export default { ...@@ -53,19 +53,7 @@ export default {
} }
}, },
computed: { computed: {
model: {
get () {
return this.value
},
set (newVal) {
newVal = this.formatVal(newVal);
console.log(newVal)
this.$emit('input', newVal)
setTimeout(()=>{
this.setCursorPosition(this.$position)
},0)
}
},
mode () { mode () {
return this.$store.state.Status.mode return this.$store.state.Status.mode
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment