cqzhong
cqzhong
  • 发布:2024-07-25 10:48
  • 更新:2024-07-25 10:48
  • 阅读:148

vue3 uniapp使用vant-weapp将标签识别为组件

分类:uni-app

创建wxcomponents并且将@van/weapp/dist的全部内容放到wxcomponents

在pages.json文件公共配置中添加usingComponents

在App.vue中引入

在组件中使用

但是还是报警告 这是为什么呢

警告为van-button
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement

求大佬告知

2024-07-25 10:48 负责人:无 分享
已邀请:

要回复问题请先登录注册