"view-design": "^4.0.0",
"vue": "^2.5.2",
https://www.iviewui.com/docs/introduce
使用npm
npm install view-design --save
或使用
在 webpack 入口页面 main.js 中如下配置(Vue模板中的main.js):
import Vue from 'vue'
import App from './App'
import router from './router'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
Vue.use(ViewUI);
Vue.config.productionTip = false;
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
});
安装scss
使用npm将以下的模块都装上
"less": "^2.7.3",
"less-loader": "^4.0.5",
"node-sass": "^4.9.4",
"sass-loader": "^7.1.0",
使用scss
<style scoped lang="scss">
//
</style>