安装
推荐使用 npm
- 安装最新版本
npm install ant-design-vue --save
- 安装指定版本
这里采用了1.1.7版本举例
npm install ant-design-vue@1.1.7
安装完成package.json
如下:
"dependencies": {
"ant-design-vue": "^1.1.7",
},
- 卸载
npm uninstall ant-design-vue
卸载完成如下效果
PS C:\Gitee\ant-design-demo> npm uninstall ant-design-vue
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
removed 25 packages and audited 865 packages in 9.536s
94 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
引入组件
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
Vue.use(Antd);