mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
Add focus to Price Query (#576)
* Add focus to Price Query * minimal change
This commit is contained in:
parent
3d62e27a6a
commit
4368cf71c9
@ -137,6 +137,9 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
this.getImage()
|
||||
setTimeout(() => {
|
||||
this.focusProductValue()
|
||||
}, 1000)
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.unsubscribe()
|
||||
@ -171,7 +174,9 @@ export default {
|
||||
return imageBuffer
|
||||
},
|
||||
focusProductValue() {
|
||||
this.$refs.ProductValue[0].$children[0].$children[0].$children[1].$children[0].focus()
|
||||
if (!this.isEmptyValue(this.$refs.ProductValue[0])) {
|
||||
this.$refs.ProductValue[0].$children[0].$children[0].$children[1].$children[0].focus()
|
||||
}
|
||||
},
|
||||
formatPercent,
|
||||
formatPrice,
|
||||
|
Loading…
x
Reference in New Issue
Block a user