【发布时间】:2020-12-01 20:07:24
【问题描述】:
我在我的工作中制作了一个应用程序。在文本区域中,像我的标题一样发生错误。我用谷歌搜索了同样的问题并阅读了它,但我对这类问题非常了解。
我的目标是我想使用文字作为对象。 但我认为规则不能使用文字对象。 我是超级初学者,我的英语不太好。 如果你明白请问我!
<template>
<v-card width="600" persistent>
<v-card-tex>
<v-row>
<v-col cols="8">
<v-textarea
filed
dense
v-model="testtext"
:rules="v=>!!v||'this is required!'"></v-textarea>
</v-col>
</v-row>
</v-card-tex>
</v-card>
</template>
<script lang="ts">
import {Vue} from 'nuxt-property-decorator'
export default class extends Vue{
testtext:string= `test`
}
</script>
【问题讨论】:
标签: typescript vue.js vuetify.js