English 中文(简体)
A. 地理坐标
原标题:Change background color of vuetify v-text-field

我有一张标语,有两个文本领域和一个纽州。 其背景非常蓝色,我希望投入领域为白人。 出于某种原因,无论我试图做什么,他们都保持透明。

“Input

电子邮件领域模板:

<v-text-field
    v-model="email"
    color="primary"
    label="E-Mail"
    variant="outlined"
>
</v-text-field>

<代码>color=原始>,只要外地有重点,将改变大纲的颜色。

我怎么能够把投入领域划一?

问题回答

如在上所说,Documentation

您可使用<条码>bg-color,以改变<条码>v-text-field的背景。

In short, you can add background color in your text field by doing..

<v-text-field
    v-model="email"
    color="primary"
    label="E-Mail"
    variant="outlined"
    bg-color="white" <!-- Add here. -->
>
</v-text-field>

Demo

仅加一字

<template>
  <v-text-field
    v-model="email"
    color="primary"
    label="E-Mail"
    variant="outlined"
    :style="{ background:  white  }"
  ></v-text-field>
</template>

填满的变量,如<代码>solo-填满 目标<代码>.v-field__overlay<>/code>要素,您对概述的备选案文可以采取相同做法:

.v-field--variant-outlined .v-field__overlay {
  background-color: #fff;
}




相关问题
Vuetify3: how to open v-dialog near its button

The vuetify docs suggest that dialogs should appear relative to their parent activator,unless v-model is used, in which case the dialog will not appear to be activated by any specific element, and ...

Positional relationship between footer and navigation

https://docus.dev/api/composables I want to create a layout like this site using vuetify, but when the footer and navigation-drawer settings do not work and the footer is not completely visible As ...

A. 地理坐标

我有一张标语,有两个文本领域和一个纽州。 其背景非常蓝色,我希望投入领域为白人。 出于某种原因,无论我试图做什么,他们都保持透明。

Vue3 Vuetify v-navigation-drawer closes at page reload

I have a parent component Items.vue and a child FiltersMenu.vue. FiltersMenu has a vuetify panel which is displayed if the drawer variable is true. When I check or uncheck the box, I have the url ...

VUE Change append icon after axios response

i have vue data-table which have column named quality (dropdown with append icon) i need to change append icon after get axios response(successfully update data) if dropdown changed in each row. Here ...

Vue 3 Options -> Composition Vuetify

Why isn t the "startDate" reflected within the v-text field of my v-date-picker after mounting when after setting startDate with the response from the getApplication function? My child ...

热门标签