vuetify.js

Display Vuetify tooltip on disabled button

房东的猫 提交于 2020-04-06 04:42:26
问题 I am having difficulty displaying a tooltip on a button that is disabled with Vuetify. I've made sure the tooltip can be displayed when the button is enabled, this works as expected. I think that this question is related, but I'm not well-versed enough to know if this applies to a v-btn . I attempted to create a custom class and add that to the specific v-btn element but I did not have any luck. Example HTML <div id="app"> <v-app id="inspire"> <v-container fluid class="text-xs-center"> <v

How to stop select from opening when closing chip in vuetify?

霸气de小男生 提交于 2020-03-22 09:37:26
问题 For this example from vuetify.com https://codepen.io/anon/pen/RqoxXY?&editors=101 autocomplete with chips, when I cancel a chip, how do I get it to not make the select menu open? i tried @click.stop="..." but it doesn't work on the chip event Thanks 回答1: I found that if you remove box prop from your v-autocomplete , it won't open the menu when you remove a chips by clicking on the cross. CodePen 来源: https://stackoverflow.com/questions/53268291/how-to-stop-select-from-opening-when-closing-chip

How to make v-tabs-items and v-tab-item fill height

大憨熊 提交于 2020-03-22 09:29:17
问题 I am following the example: https://vuetifyjs.com/en/components/tabs#content <v-tabs-items v-model="model"> <v-tab-item v-for="i in 3" :key="i" :value="`tab-${i}`" > <v-card flat> <v-card-text v-text="text"></v-card-text> </v-card> </v-tab-item> </v-tabs-items> However, I want v-card to take the rest of height. How can I achieve it? 回答1: The approach given by amatyjajo above works well, but if you are working with components inside a scoped style block, you'll need to use a deep selector to

V-data-table controlling expanded items via v-slot:body

落爺英雄遲暮 提交于 2020-03-22 06:26:10
问题 The documentation on vuetify 2.0 v-data-tables doesn't specify how to control the expanded items via the v-slot:body. I have a table i need to specify with the body v-slot and would like to use the expand feature. Expected behavior is by clicking the button in one column in the table, the row expands below. I'm using the v-slot:body as i will need to fully customize the column content. I'm migrating the code from vuetify 1.5 where props.expanded enabled this functionality. Codepen: https:/

V-data-table controlling expanded items via v-slot:body

眉间皱痕 提交于 2020-03-22 06:25:58
问题 The documentation on vuetify 2.0 v-data-tables doesn't specify how to control the expanded items via the v-slot:body. I have a table i need to specify with the body v-slot and would like to use the expand feature. Expected behavior is by clicking the button in one column in the table, the row expands below. I'm using the v-slot:body as i will need to fully customize the column content. I'm migrating the code from vuetify 1.5 where props.expanded enabled this functionality. Codepen: https:/

Unknown custom element: <v-app> - did you register the component correctly? For recursive components

南笙酒味 提交于 2020-03-20 06:12:29
问题 Hey i have a problem with import vuetify to project... what i do wrong? [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. app.js import Vue from "vue"; import Vuetify from "./plugins/vuetify"; import store from "~/store"; import router from "~/router"; import App from "~/components/App"; Vue.config.productionTip = false; /* eslint-disable no-new */ new Vue({ store, router, Vuetify, ...App }); App

Unknown custom element: <v-app> - did you register the component correctly? For recursive components

自古美人都是妖i 提交于 2020-03-20 06:08:10
问题 Hey i have a problem with import vuetify to project... what i do wrong? [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option. app.js import Vue from "vue"; import Vuetify from "./plugins/vuetify"; import store from "~/store"; import router from "~/router"; import App from "~/components/App"; Vue.config.productionTip = false; /* eslint-disable no-new */ new Vue({ store, router, Vuetify, ...App }); App

Hide a particular header and it's corresponding column in vuetify datatable

白昼怎懂夜的黑 提交于 2020-03-19 05:35:30
问题 it's listed here that we can attach some class to it and it will be taken care of .i'm still confused on how to use this. https://github.com/vuetifyjs/vuetify/pull/1863 The codepen https://codepen.io/anon/pen/OBMZgB suppose i want to hide the calories column. then how should i do it. 回答1: The headers object can be a computed property, so you don't need CSS to hide it. Have your computedHeaders function filter your headers array. computed: { computedHeaders () { return this.headers.filter(...

How to make font size responsive using vuetify?

前提是你 提交于 2020-03-16 07:04:00
问题 In vuetify they have helper classes for typography. for example, .display-4 goods for h1 . here the full list. When I choose display-1 for some element, In all resolutions the class gets the same font size (34px). I was expecting to: .display-4 will have font size of 34px in screen wide of 1024px. .display-4 will have font size of 18px in screen wide of 300px. According to this I have two questions, why is that? and how to make my font size elements be responsive using vuetify? 回答1: Update

How to pull data from a Vuetify Datatable selected row

依然范特西╮ 提交于 2020-03-02 07:41:33
问题 I have a Vuetify Datatable <v-data-table :headers="headers" :items="members" item-key="id" v-model="selected" :search="search" > <template slot="items" slot-scope="props"> <tr :active="props.selected" @click="select(props.item)"> <td>{{ props.item.name }}</td> <td class="text-xs-right">{{ props.item.FirstName}}</td> <td class="text-xs-right">{{ props.item.LastName }}</td> <td class="text-xs-right">{{ props.item.email }}</td> <td class="text-xs-right">{{ props.item.department}}</td> <td class=