v-text-field textarea 默认高度变化?

2022-01-25 00:00:00 vue.js vue-component vuejs2 vuetify.js

I am using v-text-filed and in that, I am using textarea. I want to change the default height of textarea and make it small. Is it possible to do this?

            <v-text-field
              name="input-1"
              label="Label Text"
              textarea
            ></v-text-field>

解决方案

add rows property

<v-text-field
    name="input-1"
    label="Label Text"
    textarea
    rows="2"
></v-text-field>

相关文章