Commit 4f894070 by wusiyi

fix: 修改单件打单无法正确聚焦问题 #ID: 1000181

parent 3172ddf9
......@@ -72,10 +72,10 @@
</el-form-item>
<el-form-item>
<el-input
ref="testingInput"
ref="testingInputRef"
v-model="barcode"
style="width: 400px"
placeholder="'请输入生产单号/ 主SKU'"
placeholder="请输入生产单号/ 主SKU"
@keyup.enter="barcodeInput"
></el-input>
</el-form-item>
......@@ -445,6 +445,8 @@ function keyDown(e: KeyboardEvent) {
}
const testingInputRef = ref<HTMLInputElement | null>(null)
async function inputActive() {
console.log('focus')
await nextTick()
;(testingInputRef.value as HTMLInputElement)?.focus()
}
......
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