forms/input/CInputScanCode.vue | ●●●●● patch | view | raw | blame | history |
forms/input/CInputScanCode.vue
@@ -52,6 +52,8 @@ itemRes: Object, // 占位提示 placeholder: String, // 由业务层调用app onScaning: Function, }, data() { return { @@ -96,10 +98,12 @@ }, }); } else if (type === 'app') { // TODO:扫码 setTimeout(() => { if (this.onScaning) { this.onScaning(res => { this.scaning = false; }, 1000); this.itemRes.onChange(res.result); }); } } }, },