Commit ed5d24ce authored by CenXinYi's avatar CenXinYi

通过虚拟DOM自动获取焦点

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 4d9b4de9
......@@ -5,6 +5,7 @@
<el-form-item label="pn" prop="pn">
<el-input
ref="autoGetFocusInput"
v-model="queryEntity.entity.pn"
placeholder="请输入pn"
clearable
......@@ -427,6 +428,9 @@ export default {
created() {
this.getList()
},
mounted() {
this.$refs.autoGetFocusInput.focus()
},
methods: {
/** TODO:查询工序库的出入库记录列表 */
......
......@@ -5,6 +5,7 @@
<el-form-item label="pn" prop="pn">
<el-input
ref="autoGetFocusInput"
v-model="queryEntity.entity.pn"
placeholder="请输入pn"
clearable
......@@ -381,6 +382,9 @@ export default {
created() {
this.getList()
},
mounted() {
this.$refs.autoGetFocusInput.focus()
},
methods: {
/** TODO:查询工序库的出入库记录列表 */
......
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