安裝完之后main里面// The Vue build version to load with the `import` command// (runtime-only or standalone) has been set in webpack.base.conf with an alias.import Vue from 'vue'import App from './App'import router from './router'import Mint from 'mint-ui';
Vue.use(Mint);
Vue.config.productionTip = false/* eslint-disable no-new */new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'})然后我用它組件的時候沒用樣式,樣式難道要單獨引用嗎
1 回答

天涯盡頭無女友
TA貢獻(xiàn)1831條經(jīng)驗 獲得超9個贊
樣式需要單獨引入的
import Vue from 'vue'import MintUI from 'mint-ui'import 'mint-ui/lib/style.css'Vue.use(MintUI)
- 1 回答
- 0 關(guān)注
- 418 瀏覽
添加回答
舉報
0/150
提交
取消