NervJS / taro-plugin-inject

Taro 小程序端平台中间层插件
31 stars 7 forks source link

添加新组件后,其他基础组件不可用 #18

Open DaiShengloda opened 1 year ago

DaiShengloda commented 1 year ago

"@tarojs/cli": "3.5.5", "@tarojs/plugin-inject": "^1.0.2",

exports.alipay = { // 为组件添加属性、方法 components: { Mkt: { mode: "", boothCode: "", version: "", collapseLimit: "", title: "", }, ZmgoCard: { key: 0, sellerId: "", activityId: "", sceneCode: "", sellerSite: "" } }, // 新增的组件需要写映射 componentsMap: { Mkt: 'mkt', // 新增Mkt组件 ZmgoCard: 'zmgo-card', //芝麻go组件 } }

在支付宝端添加了以上两个新组件后,编译成功后Taro/component里面除了View、Text组件可以用,其他Button、Image、Canvas灯基础组件在页面里面都显示不出来了,dom节点都找不到?

molunhui commented 1 year ago

+1

fangxiaoxingit commented 1 year ago

给 Button 加了个 bindagreeprivacyauthorization ,其他有opentype 的 button 就没法用了