9***@qq.com
9***@qq.com
  • 发布:2021-05-19 11:01
  • 更新:2021-05-19 11:01
  • 阅读:377

使用barcode组件时,报<barcode>标签 is not defined

分类:nvue

<template>
<view>
<barcode id='1' class="barcode" autostart="true" ref="barcode" background="rgb(0,0,0)" frameColor="#1C86EE" scanbarColor="#1C86EE" :filters="fil" @marked="success1" @error="fail1"></barcode>
<button class="btn" @click="toStart">开始扫码识别</button>
<button class="btn" @click="tocancel">取消扫码识别</button>
<button class="btn" @click="toFlash">开启闪光灯</button>
<button class="btn" @click="toscan">预览</button>
</view>
</template>

引用uniapp官方样例,为什么报<barcode>配件未注册或是未定义,这个barcode组件需要怎么引入进来?

2021-05-19 11:01 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复