IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    vue2 中引入 Ant Design 报错问题

    子舒的博客发表于 2023-06-06 00:00:00
    love 0
    https://1x.antdv.com/docs/vue/getting-started-cn/ 根据 Ant Design 官方文档,在 vue2 中安装组件时使用指令: npm i --save ant-design-vue 但在实际操作中会出现问题,它仅适用于 vue3 项目,在 vue2 中需要带上相匹配的版本号。 npm i --save ant-design-vue@1.7.8 // main.js import Antd from 'ant-design-vue'; import 'ant-design-vue/dist/antd.css'; Vue.use(Antd);


沪ICP备19023445号-2号
友情链接