mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-12 22:29:59 +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() {
|
mounted() {
|
||||||
this.getImage()
|
this.getImage()
|
||||||
|
setTimeout(() => {
|
||||||
|
this.focusProductValue()
|
||||||
|
}, 1000)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.unsubscribe()
|
this.unsubscribe()
|
||||||
@ -171,7 +174,9 @@ export default {
|
|||||||
return imageBuffer
|
return imageBuffer
|
||||||
},
|
},
|
||||||
focusProductValue() {
|
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,
|
formatPercent,
|
||||||
formatPrice,
|
formatPrice,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user