Vuetify text field border missing

2019-01-26 14:52发布

I'm trying to implement Veutify's text field

This is what it looks like for me right now: enter image description here

And this is what it looks like when the text field is in focus: enter image description here

These are my imports in main.js

import Vue from 'vue';
import Vuetify from 'vuetify';
Vue.use(Vuetify);

Am I missing an import or something?

1条回答
\"骚年 ilove
2楼-- · 2019-01-26 15:49

I ran in the same issue, you need to wrap your application in a <v-app>.

The reason is that the border's color depends on the theme you're using. If you try to inspect the documentation you will see that the border's rule is something like .application--light .input-group .input-group__details: application--light is indeed a class added by v-app.

查看更多
登录 后发表回答