Open xd15332538931 opened 4 months ago
import以后是否在当前组件的components里注册了Viewer组件
components: {
Viewer,
},
</viewer>
<button type="button" @click="show">Show</button>
</div>
我再vue2中使用你github上提供的component 例子 报错
Unknown custom element:
</viewer>
<button type="button" @click="show">Show</button>
</div>
我再vue2中 这样引入还是 提示 Unknown custom element: <viewer> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
无法复现,线上例子单独引入component也没有问题 https://codepen.io/mirari/pen/PowNyEY
我通过 import { component as Viewer} from 'v-viewer' 引入 提示 Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. 这是怎么回事