下载antd安装包

npm i antd --save

或者

yarn add antd

引入样式(index.js)

import 'antd/dist/antd.css'

组件中按需引入

例:import {Button} from "antd"

使用

<Button></Button>

 

posted on 2021-12-04 10:28  林多多  阅读(173)  评论(0)    收藏  举报