🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
* 安装iview ~~~  npm install view-design --save --registry=https://registry.npm.taobao.org ~~~ * 在main.js引入iview ~~~  import Vue from "vue";  import App from "./App.vue";  import router from "./router";  import store from "./store";  ​  import ViewUI from 'view-design';  import 'view-design/dist/styles/iview.css';  Vue.use(ViewUI);  ​  Vue.config.productionTip = false;  ​  new Vue({    router,    store,    render: h => h(App)  }).$mount("#app");  ​ ~~~ * 在Home组件测试iview是否引入成功 ~~~  <Button type="primary">Primary</Button>  <Button type="dashed">Dashed</Button> ~~~ ![](https://img.kancloud.cn/48/5c/485c64da3b931caaeb31fd35e121972b_2610x1508.png)