收藏
回答

taro如何引入weui?

别告诉我去taro社区!!!

回答关注问题邀请回答
收藏

2 个回答

  • BellaZhao🌷
    BellaZhao🌷
    04-02

    在 app.config.ts 中配置

    useExtendedLib: {
      weui: true,
    },
    usingComponents: {
      'mp-badge': 'weui-miniprogram/badge/badge',
      'mp-cell': 'weui-miniprogram/cell/cell',
      'mp-cells': 'weui-miniprogram/cells/cells',
      'mp-checkbox': 'weui-miniprogram/checkbox/checkbox',
      'mp-checkbox-group': 'weui-miniprogram/checkbox-group/checkbox-group',
      'mp-form-page': 'weui-miniprogram/form-page/form-page',
      'mp-half-screen-dialog': 'weui-miniprogram/half-screen-dialog/half-screen-dialog',
      'mp-icon': 'weui-miniprogram/icon/icon',
      'mp-loading': 'weui-miniprogram/loading/loading',
      'mp-navigation-bar': 'weui-miniprogram/navigation-bar/navigation-bar',
      'mp-tabbar': 'weui-miniprogram/tabbar/tabbar',
      'mp-slideview': 'weui-miniprogram/slideview/slideview',
      'mp-dialog': 'weui-miniprogram/dialog/dialog',
    },
    
    04-02
    有用
    回复
  • Mr.Zhao
    Mr.Zhao
    2022-07-08

    去uniapp论坛提问

    2022-07-08
    有用
    回复 5
    • xac
      xac
      2022-07-08
      2022-07-08
      回复
    • Mr.Zhao
      Mr.Zhao
      2022-07-08回复xac
      你说引入weui  就很模糊  什么样的weui  npm包?
      2022-07-08
      回复
    • xac
      xac
      2022-07-08回复Mr.Zhao
      小程序weui组件库
      2022-07-08
      回复
    • Mr.Zhao
      Mr.Zhao
      2022-07-08回复xac
      npm install 这种方式的吗    应该没有taro版本的吧
      2022-07-08
      回复
    • Cjiang
      Cjiang
      2022-07-22回复xac
      查看下 链接下 https://github.com/Tencent/weui-wxss/
      的README.md,引入方式
      2022-07-22
      回复
登录 后发表内容