安装 npm i antd.使用组件时,从 antd 中引入 import {Button} from 'antd'.给入口文件添加全局样式. 如果组件样式不生效,在app.css 文件中 引入下面代码 '; @import 'antd/dist/reset.css