获取焦点优化
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<span class="filter_label">木箱</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1" :focused="true" @handleChange="handleChange1"
|
||||
<search-box ref="scanChild" v-model="val1" @handleChange="handleChange1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -95,6 +95,9 @@
|
||||
created () {
|
||||
this._stivtQuery(this.val1, this.val2)
|
||||
},
|
||||
mounted () {
|
||||
this.$refs.scanChild.handleFocus()
|
||||
},
|
||||
methods: {
|
||||
handleChange1 (e) {
|
||||
this._stivtQuery(e, this.val2)
|
||||
|
||||
Reference in New Issue
Block a user