vuetify.js

How to resize the image in vue

爷,独闯天下 提交于 2020-05-09 10:41:31
问题 I upload image from nodejs to vue And put the image in v-card But the image is cut off how to resize the image by not cutting? 回答1: look this site. practice step by step https://www.npmjs.com/package/vue-image-upload-resize 回答2: Use 'contain' attribute in v-img <v-img src="/picture.png" alt="" contain <!-- causes picture not to be cropped --> height="100px" width="150px"> </v-img> check https://vuetifyjs.com/en/components/images#api for more information 回答3: I understand this question has

How do I make a striped table in vuetify v-data-table?

只谈情不闲聊 提交于 2020-05-08 08:09:46
问题 I have a table <v-data-table :headers="headers" :items="bookings" class="elevation-1" :search="search" > <template slot="items" slot-scope="props"> <td>{{ props.item.date }}</td> <td>{{ props.item.time }}</td> <td>{{ props.item.vehicle }}</td> </template> </v-data-table> Made in vuetify, It works all fine, I just need to make alternate rows into different colors. Or the give the bootstrap .table-striped class to the table. 回答1: You could achieve that by using the following CSS rule : tbody tr

Vuetify Tabs change active when scroll

自闭症网瘾萝莉.ら 提交于 2020-04-30 11:46:46
问题 I've vuetify tabs implemented with vue-scrollto that when you click a tab it will scroll to a position. <v-tabs centered grow color="#009EE2" > <div class="slider-background" /> <v-tabs-slider /> <v-tooltip bottom v-for="(tab, key) in tabs" :key="key" color="#009EE2" > <template v-slot:activator="{on}"> <v-tab v-on="on" v-scroll-to="{ el: tab.scrollTo, container: scrollContainer, duration: 300, easing: 'linear', offset: -120, force: true, cancelable:true }" > <v-icon v-text="tab.icon" /> </v

Vuetify Tabs change active when scroll

断了今生、忘了曾经 提交于 2020-04-30 11:44:05
问题 I've vuetify tabs implemented with vue-scrollto that when you click a tab it will scroll to a position. <v-tabs centered grow color="#009EE2" > <div class="slider-background" /> <v-tabs-slider /> <v-tooltip bottom v-for="(tab, key) in tabs" :key="key" color="#009EE2" > <template v-slot:activator="{on}"> <v-tab v-on="on" v-scroll-to="{ el: tab.scrollTo, container: scrollContainer, duration: 300, easing: 'linear', offset: -120, force: true, cancelable:true }" > <v-icon v-text="tab.icon" /> </v

How to make font size responsive using vuetify?

十年热恋 提交于 2020-04-30 10:12:50
问题 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

has anyone has success with vuetify and Laravel 7?

我的梦境 提交于 2020-04-30 06:32:28
问题 I am been trying to install vuetify in more than one project that I am building with laravel 7. I managed to make it work once, but every successive attempt just breaks vuejs itself. I have been following the webpack instructions in the quickstart guide to no avail. I haven't been able to find any blog posts etc that deal with laravel 7 and it seems that something in the update from 6 has changed how it interacts with vuetify. If anyone has good installation steps for getting vuetify into a

Integrate existing static html website into existing vue js web app

不问归期 提交于 2020-04-18 07:12:09
问题 I created a contact form with vue and vuetify as a new vue project. Now I would like to integrate it into the existing static html page. I tried to add the vue app as a vue instance which didn't seem to be the right approach. Would it be easier to existing html & css code into the new light weight vue project setup? Can you recommend a simple github project as an example which includes vue just as an instance into an existing website? 回答1: Vue's can be praised for many reasons but one of the

How to go to a new route by clicking in a button in Vuetify?

十年热恋 提交于 2020-04-18 03:49:57
问题 i'm a beginner in Vuetify , and I'm develloping my first application, and my question is : How by clicking on the "HEREEEEEEEEEEEEEEEEE" button in the navbar list the programm will route to a file called pass.vue (which is in the same folder ) ? <template> <div> <v-toolbar dark prominent src="https://cdn.vuetifyjs.com/images/backgrounds/vbanner.jpg" > <v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon> <v-toolbar-title>Workers</v-toolbar-title> </v-toolbar> <v-navigation

Always Getting an Error of “Trailing Spaces not Allowed” in VueJS

笑着哭i 提交于 2020-04-17 22:19:52
问题 My project uses Vue and Vuetify and whenever I compile, this error always come out in my CLI: " Trailing spaces not allowed src\App.vue:39:11" I am using ESlint but I already added the comment "/* eslint-disable eol-last */ " but the rules are still not being disabled.I am new to this framework. here is my App.vue file: <template> <div id="app"> <div class="header"> <h4>VUE.js SPA</h4> </div> <v-card class="align-left"> <v-navigation-drawer permanent> <v-list-item> <v-list-item-content> <v

Vuetify input autocomplete bug

こ雲淡風輕ζ 提交于 2020-04-16 08:24:08
问题 I tried to google it a couple of times but got no luck, basically, when the page loads since the password is on autosave the v-text-field doesn't understand it and renders the passaword content in front of the label, is there any workaround or fix for that? Here is a ss: https://i.stack.imgur.com/RtemT.png The login component: <template> <div> <v-card class="elevation-12"> <v-toolbar color="primary" dark flat> <v-toolbar-title>Login</v-toolbar-title> </v-toolbar> <v-card-text> <v-form> <v