扫码通用组件放出设置value值的方法
This commit is contained in:
parent
6219f2675a
commit
c05a68a630
@ -33,6 +33,13 @@
|
||||
code.value = value.detail.value;
|
||||
emit('scan-change', value.detail.value);
|
||||
}
|
||||
|
||||
const onSetValue = (value) => {
|
||||
code.value = value;
|
||||
}
|
||||
defineExpose({
|
||||
onSetValue
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user