vuetify.js

<v-card> - did you register the component correctly?

眉间皱痕 提交于 2019-12-01 14:11:05
I'm new in Vuetify and Vue.js. I try to make v-card layout but failed. Be honest i copy paste this code : https://github.com/vuetifyjs/vuetifyjs.com/blob/master/src/examples/layouts/centered.vue And when i run i get error : vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <v-card> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <Login> at src/views/Login.vue <VApp> <App> at src/App.vue <Root> I already install vuetify but still error. Any solution ? Updated : If i import the vuetify, i get another error

How to create a gradient css with an arrow down connected to a container

心已入冬 提交于 2019-12-01 13:16:52
I'm trying to put an triangle/arrow under the v-container with some gradient colour but I don't know how to "merge" the gradient. If I create the arrow with CSS the gradient won't match. Any ideas about how to achieve this? Here is the code: HTML: <div id="app"> <v-container fluid pa-0 class="gradient white--text"> <v-layout row wrap text-xs-center> <v-flex xs12> <h1 class="display-1 my-5">Lorem Ipsum</h1> </v-flex> </v-layout> </v-container> <div class="bottom-arrow"></div> </div> CSS: .gradient{ height: 300px; background: rgb(0,105,173); background: linear-gradient(45deg, rgba(0,105,173,1) 0

<v-card> - did you register the component correctly?

心已入冬 提交于 2019-12-01 12:55:56
问题 I'm new in Vuetify and Vue.js. I try to make v-card layout but failed. Be honest i copy paste this code : https://github.com/vuetifyjs/vuetifyjs.com/blob/master/src/examples/layouts/centered.vue And when i run i get error : vue.runtime.esm.js?2b0e:587 [Vue warn]: Unknown custom element: <v-card> - did you register the component correctly? For recursive components, make sure to provide the "name" option. found in ---> <Login> at src/views/Login.vue <VApp> <App> at src/App.vue <Root> I already

Vuetify - How to highlight row on click in v-data-table

久未见 提交于 2019-12-01 10:26:47
问题 How to highlight the selected row in v-data-table? i tried to modified the data by adding flag variable selected in the Example In the above example click on a row will be highlighted by adding class called primary. If it is a static data it is working fine, but if it is dynamic data like getting data from API, the data in the data table will always be refreshed, if i change the pagination and sort and all. For example, in my case, if i sort the column the data will come from the API and data

How to remove padding or margin in Vuetify?

耗尽温柔 提交于 2019-12-01 06:14:40
The doc tells me I can use a helper class to change padding/margin. I want to remove padding from an input field, so the class I need is pa-0 ( {property}{direction}-{size} ): <v-text-field v-model="mon" pa-0 solo></v-text-field> JSFiddle here Doesn't work. Any idea? EDIT: I realise I obtain a completely different markup in my JSFiddle compared to my local setup, which compounds my confusion: Markup generated by Vuetify locally (here I want to remove vertical padding inside the <input> element and horizontal padding on <div class="v-input__slot"> element): <div class="v-input v-text-field v

How to remove padding or margin in Vuetify?

孤街浪徒 提交于 2019-12-01 05:19:46
问题 The doc tells me I can use a helper class to change padding/margin. I want to remove padding from an input field, so the class I need is pa-0 ( {property}{direction}-{size} ): <v-text-field v-model="mon" pa-0 solo></v-text-field> JSFiddle here Doesn't work. Any idea? EDIT: I realise I obtain a completely different markup in my JSFiddle compared to my local setup, which compounds my confusion: Markup generated by Vuetify locally (here I want to remove vertical padding inside the <input>

Styling an icon defined with prepend-icon in Vuetify

余生长醉 提交于 2019-12-01 04:21:32
Normally to style an icon in Vuetify we'll do something like <v-icon large color="primary">comment</v-icon> How do we get the same effect while using the prepend-icon prop like here <v-list-group prepend-icon="comment"> The documentation says prepend-icon uses same syntax as v-icon but no concrete example is provided for my use case Target it properly and apply style. For example in v-list-group : .v-list__group__header__prepend-icon .v-icon { color: red; } But note for example v-text-field append icon .v-input__icon--append .v-icon { color: purple; } NOTE: If it's not working, and you are

Why align-end does not work in vuetify

风流意气都作罢 提交于 2019-12-01 02:55:41
问题 I use vuetify layout, and I wanna make button at right side, but I found align-end which is vuetify property does not work, I use offset-xs9 to make button right side, but the button is being center in v-flex , how to make it on end ? help thanks code like: <div id="app"> <v-app id="inspire"> <v-layout row wrap align-end> <v-flex xs3 offset-xs9 align-end> <div> <v-btn primary dark>Normal</v-btn> </div> </v-flex> </v-layout> </v-app> </div> and online codepen 回答1: Vuetify's grid uses flexbox.

Wrapping v-icon with v-tooltip inside text-field?

自作多情 提交于 2019-12-01 00:10:38
I need help with creating a text-field, which has an icon inside with a tooltip attached to the icon. My code: <v-text-field v-model="url"> <span slot="label">Url <v-tooltip bottom> <v-icon slot="activator" color="primary" dark >home</v-icon> <span>Tooltip</span> </v-tooltip> </span> </v-text-field> Any ideas? Thanks. Since v1.1 we can use append (and prepend ) slots for this: <v-text-field v-model="url" label="URL"> <v-tooltip slot="append" bottom> <v-icon slot="activator" color="primary" dark>home</v-icon> <span>Tooltip</span> </v-tooltip> </v-text-field> Codepen In vuetify version 2.0.7 I

How To change theme colors on Nuxt/Vuetify starter template

拟墨画扇 提交于 2019-11-30 19:29:02
Change colors I'm trying to use Vue with Nuxt and Vuetify for the styles, on Vuetify exists many templates, one of them brings all. I tried to add colors on /assets/style/app.styl without effect. Also on /plugins/vueitfy.js add something like: Vue.use(Vuetify, { theme: { header: '#48393C', footer: '#2f3542' } }) Without effects, i think that the last way is the best way for do it. There are two options to change the color theme 1. from the /plugins/vueitfy.js Vue.use(Vuetify, { theme: { primary: '#2c3e50', secondary: '#1abc9c', accent: '#2980b9', error: '#e74c3c', action: '#23DB2A' }}) From