iview 安裝 引入iview ...
iview 安裝
npm install iview --save
引入iview
import Vue from 'vue' import App from './App' import router from './router' import iView from 'iview' //引入ivew庫 import 'iview/dist/styles/iview.css' // 使用 CSS Vue.config.productionTip = false Vue.use(iView) /* eslint-disable no-new */ new Vue({ el: '#app', router, template: '<App/>', components: { App } })