v-viewer icon indicating copy to clipboard operation
v-viewer copied to clipboard

使用官网component组件形式的例子 提示组件没注册

Open xd15332538931 opened this issue 2 years ago • 4 comments

我通过 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. 这是怎么回事

xd15332538931 avatar Apr 12 '24 03:04 xd15332538931

import以后是否在当前组件的components里注册了Viewer组件

components: {
      Viewer,
    },

mirari avatar Apr 12 '24 03:04 mirari

我再vue2中使用你github上提供的component 例子 报错

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

xd15332538931 avatar Apr 12 '24 08:04 xd15332538931

xd15332538931 avatar Apr 12 '24 08:04 xd15332538931

无法复现,线上例子单独引入component也没有问题 https://codepen.io/mirari/pen/PowNyEY

mirari avatar Apr 15 '24 02:04 mirari