vuetify.js

Vuejs Vuetify color theme not working

别来无恙 提交于 2019-12-11 02:25:39
问题 I am using vuejs with vuetify, I put a Basic vuetify template and tried to Change the Color theme but the Color will not Switch. I do not get any Errors in my console and my Cache is cleared aswell. The main.js Code: import Vue from 'vue'; import Vuetify from 'vuetify'; import 'vuetify/dist/vuetify.min.css'; import colors from 'vuetify/es5/util/colors'; Vue.use(Vuetify, { theme: { primary: colors.indigo.base, // #E53935 secondary: colors.indigo.base, // #FFCDD2 accent: colors.indigo.base //

Center v-switch inside a v-flex

蓝咒 提交于 2019-12-10 22:13:42
问题 I would like to center the v-switch element inside a v-flex horizontally and I already tried this here: vuetify center items into v-flex, but it seems not to work for the v-switch element. Whether I wrap it inside a div class like this: <v-flex xs12 md2 > <div class="text-xs-center"> <v-switch @click="someFunction()" label="Some Label Name" color="black" value="secondary" hide-details ></v-switch> </div> </v-flex> Or I use the class directly inside the v-flex : <v-flex xs12 md2 text-xs-center

Prop value in Vuejs child component not available to bind to element attribute

笑着哭i 提交于 2019-12-10 19:27:57
问题 I am working on an admin app in Vuejs with Vuetify, and I have three fields in a form for a user to select a hex color value. To make it easier for the user, I have implemented a color picker based off of this codepen. Here is the ColorPickerButton component: <template> <div ref="colorpicker" class="color-picker-outer"> <span class="color-picker-inner" v-bind:style="{ 'background-color': colorValue}" @click="togglePicker"></span> <chrome-picker :value="colors" @input="updateFromPicker" v-if=

Changing the Vuetify carousel height

放肆的年华 提交于 2019-12-10 16:58:30
问题 Is it possible to reduce the height of a <v-carousel> ? I saw in the documentation that they were working on it, but has it been implemented yet? If not is there a work around? I'm just trying to set a max height. 回答1: There's no need to use CSS neither important on it. You can use one prop to change the height: Name: height Default: 500 Type: number | string Sets the component height Eg. <v-carousel height="500px"> <v-carousel-item v-for="(item,i) in items" :key="i" :src="item.src" ></v

How to set all object properties to null in JavaScript?

人盡茶涼 提交于 2019-12-10 16:27:59
问题 I am using Vue and suddenly some of the computed css using vuetify is not working. The way I declare an object is personal_info : {} and in my template, I could just do personal_info.name and other more in every v-model of text input. I have no errors but suddenly the vuetify has a class called input-group--dirty that will elevate the label of the text input whenever it's not empty. But suddenly, it's not working. It looks like this: As you can see, the text and label are overlapping. The

Vue CLI 3 + Vuetify - Not working on IE 11 (Babel does not transpile?)

萝らか妹 提交于 2019-12-10 15:23:53
问题 I’m using Vue CLI 3 with Vuetify for my project. It works well on Chrome and iOS 12, but it shows blank page on IE11 and iOS Safari < 12. The console in IE11 shows: SCRIPT1003: Expected ':' I think it’s because Babel does not transpile the ES6 syntax (arrow function, spread, etc) to ES5 syntax. I still see it in the compiled code after running yarn build. Here is my babel.config.js: //bable.config.js module.exports = { presets: [ [ '@vue/app', { useBuiltIns: 'entry' }] ] } Here is my

File Upload using vuetify 2 v-file-input and axios

有些话、适合烂在心里 提交于 2019-12-10 15:13:02
问题 First of all, i've checked questions file-upload-in-vuetify and vuetify-file-uploads. But the solutions there didn't work. I'm trying to use vuetify 2 <v-file-input> to send multiple PDF files. I created the FormData object and appended all my files but when i attempt to submit it doesn't reach my backend. I just get an empty object. this is my code: Template: <v-layout> <v-flex> <v-file-input show-size counter chips multiple label="Arquivo Geral" ref="myfile" v-model="files"></v-file-input>

Vuetify external pagination not displaying page numbers

别来无恙 提交于 2019-12-10 14:34:51
问题 I have a v-data-table and I'm trying to add pagination to it. I've followed the example docs here I can't see what I'm doing wrong. When my component is created it makes a call to my backend to populate a list of items. Then this is passed to the data table. I also have a search bar and if I enter anything in it the page numbers pop up then. HTML <v-data-table :headers="headers" :items="incidents" :search="search" :pagination.sync="pagination" hide-actions class="elevation-1" item-key=

Vuetify - How to trigger method when clear a v-text-field

廉价感情. 提交于 2019-12-10 13:35:49
问题 is there a way to call a method while clearing a text-field with Vuetify? <v-text-field class="mt-2 mb-0" clearable solo v-model="searchQuery" append-icon="search" @click:append-outer="searchCos" label="Nom de compagnies ou mots-clés"> </v-text-field> ... onClear() { doSomethingHere } Thanks Francis 回答1: You can use the @click:clear="()" so you can clear your text at the same time it will call the function. Here's the example https://codepen.io/anon/pen/ePmLOg?editors=1010 回答2: Use the clear

Vuetify Menu not working: Property or method “on” is not defined on the instance but referenced during render

大城市里の小女人 提交于 2019-12-10 13:21:34
问题 I am copying an first example from the official documentation Vuetify about Menus, but the result is an error : "Property or method "on" is not defined on the instance but referenced during render". <template> <v-app> <div class="text-xs-center"> <v-menu offset-y> <template v-slot:activator="{ on }"> <v-btn color="primary" dark v-on="on" > Dropdown </v-btn> </template> <v-list> <v-list-tile v-for="(item, index) in items" :key="index" @click="" > <v-list-tile-title>{{ item.title }}</v-list