vuetify.js

Vuetify CSS comes after my own CSS with Nuxt 2.0

安稳与你 提交于 2019-12-06 11:40:22
In my test project https://github.com/alechance/nuxt-vuetify-lodash I'm trying to write my own CSS. However Vuetify CSS always comes after my CSS in my <head> , any idea how I can order my styles so my CSS comes after? I do not want to end up writing important! 来源: https://stackoverflow.com/questions/53087096/vuetify-css-comes-after-my-own-css-with-nuxt-2-0

How to use stylus block level import with Vuetify styles

柔情痞子 提交于 2019-12-06 11:36:30
问题 Using a stylus block level import: # vuetify-style.styl .myapp @import '~vuetify/src/stylus/main' This is to ensure that the vuetify css doesn't interfere with elements from other parts of the page which aren't using vuetify. But unfortunately it doesn't work, I can't compile it. ERROR Failed to compile with 1 errors 2:13:28 pm error in ./src/stylus/main.styl Module build failed (from ./node_modules/stylus-loader/index.js): Error: node_modules/vuetify/src/stylus/settings/_el evations.styl:85

Vue JS Vuetify menu named slot “activator” is not binding to the template, but going to “default”

喜你入骨 提交于 2019-12-06 09:33:22
I cannot seem to get the example code for a Vuetify v-menu to work inside my PWA app, but it works normally in a Fiddle (e.g. https://jsfiddle.net/tjw13yz4/27/ ) The problem is: the activator slot content doesn't appear. By debugging the vuetify source code, I have found that the activator template turns up under the "default" slot (where all the hidden content is), not in the named activator slot (where the visible button/click area should be). I have simplified my app to the bare bones (originally I had dynamic components, forms, APIs etc) so I've reduced it down to just a v-menu inside the

Fresh project fail to compile after installing vuetify in vue.js

大憨熊 提交于 2019-12-06 06:39:01
i have a problem in vue.js, i have created a new project using webstorm and it runs with no problem at all and i can see vue logo. in next step i want to install vuetify but i get errors as below list: Failed to compile. ./src/plugins/vuetify.js Module not found: Error: Can't resolve 'vuetify/lib' in 'PATH TO MY PROJECT' TypeError: Cannot read property 'match' of undefined ERROR TypeError: Cannot read property 'match' of undefined TypeError: Cannot read property 'match' of undefined at VuetifyLoaderPlugin.apply (/home/tina/WebstormProjects/tinalasttry/node_modules/vuetify-loader/lib/plugin.js

v-tooltip doesn't show component behind it

眉间皱痕 提交于 2019-12-06 06:32:13
I'm trying to implement v-tooltip following the example in their documentation but I cannot make it work. If I copy the example, i receive this error: [Vue warn]: Property or method "on" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. if I declare property on the btn doesn't show up at all. This is the template: <v-tooltip bottom> <template v-slot:activator="{ on }"> <v-btn color="primary" dark v-on="on">Bottom</v-btn> </template> <span>Bottom tooltip<

How to validate Vuetify text field asynchronously?

我的梦境 提交于 2019-12-06 02:45:52
问题 Text fields in Vuetify have rules props, which take an array of functions returning true or an error string. How to make them async, so that the validation could be made server-side using XHR? Something like: <v-text-field :rules="[v => { axios.get('/check?value=' + val).then(() => { return true }) }]"> 回答1: One solution is to set the error-messages prop: <v-text-field v-model="input" :error-messages="errors"> and use the watch method: new Vue({ data () { return { input: '', errors: [] } },

Change default font in vuetify is not working (vue-cli 3) [Vuetify 1.X]

江枫思渺然 提交于 2019-12-05 23:46:30
问题 I'm aware of the question change-default-font-in-vuetify in SO, but it doesn't address my problem as it was posted before vue-cli-3 came out, so the ideas there don't apply here as that, the official docs from Vuetify on how to change themes and other options don't have any valid step for when the project is created with vue-cli 3. So far my attempts go like this: - vue create fooproject (using default config, but even if I don't use the default but cherrypick what I want in the project and

Vuetify breakpoints not working in Nuxt.js

蹲街弑〆低调 提交于 2019-12-05 17:15:38
I'm working on a project using Nuxt.js as SSR engine and Vuetify as styling framework. In one of my templates I have such code: <v-layout row wrap align-center :class="{ 'mb-4': $vuetify.breakpoint.smAndDown }">...</v-layout> As you can see, I want to apply mb-4 class only if I am on small screens and smaller ones. But when I load this on desktop large screen and inspect element, this class is attached even though screen resolution does not match logic for applying this class. However, styling is back to expected when I resize browser window. I've tried to manually dispatch 'resize' event in

Internationalization with Vuetify

你。 提交于 2019-12-05 13:55:28
I'm trying to make an app with multiple languages. I did what the documentation says but it does not work. this my code. window.Vue = require('vue'); import Vuetify from './Vuetify/vuetify'; import en from './Vuetify/Lang/en/en.ts'; import es from './Vuetify/Lang/es/es.ts'; Vue.use(Vuetify, { lang: { locales: { es, en, }, current: 'es' } }) const app = new Vue({ el: '#app', components: { "vue-landing": require('./components/ExampleComponent.vue'), }, created() { this.$vuetify.lang.current = 'es' }, }).$mount('#app'); In my component <template> <v-content> {{ $vuetify.t('noDataText') }} </v

Cannot find module 'vuetify-loader/lib/plugin'

风流意气都作罢 提交于 2019-12-05 07:24:05
问题 When I load vuetify via the vue-cli3, I get an error when i do npm run serve, saying there is a missing loader. Docs etc and searches have come up blank. This is a fresh project, no code loaded. Just following the instructions from the vuetify site. Can anyone help? 回答1: I've got the same issues while creating new Vuetify app by official guide. After adding vuetify: vue add vuetify The missing step was installing new npm dependencies with: npm install Later I run npm run serve and it started