焦点
This commit is contained in:
@@ -27,22 +27,8 @@
|
|||||||
event: 'input'
|
event: 'input'
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
value: String,
|
value: String
|
||||||
focused: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
focused() {
|
|
||||||
this.focusState = this.focused
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
if (this.focused) {
|
|
||||||
this.focusState = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
handleFocus () {
|
handleFocus () {
|
||||||
this.focusState = true
|
this.focusState = true
|
||||||
|
|||||||
Reference in New Issue
Block a user