【发布时间】:2018-03-13 11:31:26
【问题描述】:
customizing theme Vuetify's guide 没有显示完整的一页代码,当我尝试线索时,没有工作。请参阅 codepen 的试用示例。
<div id="app" light>
<v-app id="inspire">
<v-container grid-list-md text-xs-center>
<v-layout row wrap>
<v-flex xs12>
<v-card color="primary"> <!-- need to CHANGE here! -->
<v-card-text><b>Hello</b> - test 123 </v-card-text>
</v-card>
</v-flex>
<v-flex xs12 >
<v-card dark color="secondary">
<v-card-text>Bye - test.</v-card-text>
</v-card>
</v-flex>
</v-layout>
</v-container>
</v-app>
</div>
使用指南的线索,没有效果
Vue.use(Vuetify, { // IGNORING ALL
theme: {
primary: 'red',
secondary: '#b0bec5',
accent: '#8c9eff',
error: '#b71c1c'
}
});
new Vue({ // NO EFFECT HERE
el: '#app',
});
注意:也尝试其他类似
var xx = new Vue({ el: '#app' })
xx.use(Vuetify, { theme: {...} })
但没有效果。
【问题讨论】:
标签: vue.js vuejs2 vuetify.js