在react项目中按需使用antd-mobile

antd-mobile是一款支持react的移动端UI库,那么我们怎么完美的使用呢?

安装
npm install antd-mobile --save
npm install babel-plugin-import --save-dev

babel配置

"plugins": [
    ["import", { libraryName: "antd-mobile", style: "css" }] // `style: true` 会加载 less 文件
  ]
7047742-57d131de1c7b9baf.png
image.png

猜你喜欢

转载自blog.csdn.net/weixin_34248487/article/details/87603489