vuetify.js

Vuetify Standard Setup (babel/eslint) image failed to load

ぐ巨炮叔叔 提交于 2020-06-10 00:32:52
问题 I'm working on a VueJS project and am trying to load an image on a carousel. I am using the standard setup and have the image in the assets folder. I reference the image URL with <v-carousel-item src="@/assets/promo1.jpg"> But this throws an Image Load Failed error when I run the server using npm run serve . console.js?66f6:36 [Vuetify] Image load failed src: @/assets/promo1.jpg found in ---> <VImg> <VCarouselItem> <VCarousel> <Home> at src/views/Home.vue <VApp> <App> at src/App.vue <Root> If

Vuetify Standard Setup (babel/eslint) image failed to load

拜拜、爱过 提交于 2020-06-10 00:29:34
问题 I'm working on a VueJS project and am trying to load an image on a carousel. I am using the standard setup and have the image in the assets folder. I reference the image URL with <v-carousel-item src="@/assets/promo1.jpg"> But this throws an Image Load Failed error when I run the server using npm run serve . console.js?66f6:36 [Vuetify] Image load failed src: @/assets/promo1.jpg found in ---> <VImg> <VCarouselItem> <VCarousel> <Home> at src/views/Home.vue <VApp> <App> at src/App.vue <Root> If

v-tabs in vuetify is not taking 100% height

二次信任 提交于 2020-06-08 07:39:23
问题 The v-tabs component doesn't take 100% height. Upon inspecting, I could see that all the tab items (i.e. tab contents) are being wrapped inside a <div class='v-tab__items'> your content </div> How do target the v-tab__items class? Or is there another way to achieve the same? I have tried the height API from Vuetify, which did not yeild the desired result. Any help is appreciated :) 回答1: Context I'm posting an answer here since I found this question when searching to solve my own problem. In

v-tabs in vuetify is not taking 100% height

我是研究僧i 提交于 2020-06-08 07:38:39
问题 The v-tabs component doesn't take 100% height. Upon inspecting, I could see that all the tab items (i.e. tab contents) are being wrapped inside a <div class='v-tab__items'> your content </div> How do target the v-tab__items class? Or is there another way to achieve the same? I have tried the height API from Vuetify, which did not yeild the desired result. Any help is appreciated :) 回答1: Context I'm posting an answer here since I found this question when searching to solve my own problem. In

Collapse or expand Groups in vuetify 2 data-table

这一生的挚爱 提交于 2020-06-01 07:45:07
问题 I have a table where I have a number of items shown all grouped by a string property. By default these groups are all expanded. https://vuetifyjs.com/en/components/data-tables/#grouped-rows Is there anyway to collapse all the groups or expand them at once ? Ie have a collapse all button above the table. I have search but can't find a solution. Thanks 回答1: The latest Vuetify does pass the isOpen and toggle values in the group.header slot. You could customize this slot to track $refs for each

transition-group without wrapping in a span

和自甴很熟 提交于 2020-06-01 07:36:46
问题 I am trying to apply a transition to a Vuetify v-data-table so that when I delete a tbody in my table, it fades out instead of just vanishing off the screen. If I wrap the tbody in a transition-group the tbody fades out as expected. However, it's wrapped in a span tag which means all of the columns in the tbody get shoved into the first column of my table. I know I can specify a different tag other than a span, but they all cause my table layout to break. How can I apply a fade transition to

How can I make title bar dynamic on vuetify?

社会主义新天地 提交于 2020-06-01 05:41:27
问题 I see vuetify project have title bar. But the title in public/index.html. Outside src folder So I had trouble making it dynamic. Every page must have different title. If it's same, it's very influential on SEO My public/index.html like this : <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <title>test-vuetify</title>

Unable to call v-show and @click on same button with vue.js

久未见 提交于 2020-05-31 03:52:06
问题 I'm trying to display text on button based on data variable and call a function for vue.js axios method. I'm able to show text on button based on data variable but unable to call axios post method .I'm getting below error. When I click the button, url "http://localhost:8085/#/applicationtab/3" changes to http://localhost:8085/?#/applicationtab/3. <span v-if="user.user_role_id ==results.desk_user_role_id"> <button small color="primary" style="width:400px;" @click="forward" v-show="forwardTo">{

Vuetify + prerender-spa-plugin

走远了吗. 提交于 2020-05-30 08:42:08
问题 So I am using vuetify with "baseline" layout (from the documentation : https://vuetifyjs.com/en/examples/layouts/baseline). I set one page as pre rendered with : configureWebpack: { plugins: [ new PrerenderSPAPlugin({ // Required - The path to the webpack-outputted app to prerender. staticDir: path.join(__dirname, 'dist'), // Required - Routes to render. routes: [ '/about' ], }) ] } The page generated is fine. I made a compare with the html content from SPA and it's the same. However when the

dynamic height of table (vuetify)

﹥>﹥吖頭↗ 提交于 2020-05-29 06:48:33
问题 App.vue <template> <v-app id="inspire"> <v-navigation-drawer v-model="drawer" app > <v-list dense> <v-list-item link> <v-list-item-action> <v-icon>mdi-home</v-icon> </v-list-item-action> <v-list-item-content> <v-list-item-title>Home</v-list-item-title> </v-list-item-content> </v-list-item> <v-list-item link> <v-list-item-action> <v-icon>mdi-contact-mail</v-icon> </v-list-item-action> <v-list-item-content> <v-list-item-title>Contact</v-list-item-title> </v-list-item-content> </v-list-item> </v