REACT_react使用antd-mobile UI框架

怼烎@ 2022-10-11 01:08 304阅读 0赞

安装

npm install antd-mobile —save

public/index.html

  1. <script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
  2. <script> if ('addEventListener' in document) { document.addEventListener('DOMContentLoaded', function() { FastClick.attach(document.body); }, false); } if(!window.Promise) { document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"'+'>'+'<'+'/'+'script>'); } </script>

index.js

  1. import 'antd-mobile/dist/antd-mobile.css';

使用

  1. import { Button } from 'antd-mobile';
  2. <Button type="primary">primary</Button>

发表评论

表情:
评论列表 (有 0 条评论,304人围观)

还没有评论,来说两句吧...

相关阅读

    相关 前端 UI 框架

    判断大致标椎 判断使用场景(PC, 移动Web, 小程序, 响应式) 组件丰富,成熟的模板,方便集成 成熟的社区,成熟的生态 介绍几个比较常用的

    相关 UI框架

    一,框架构成:目录分别有bin,lib,page,report,test\_case,(百度网盘) 1.bin>run.py ![1404644-2018092209221