如何解决使用 nativescript playground vue 禁用按钮条件
当文本字段中没有输入任何内容时,我无法禁用提交按钮。这是我的结帐组件,它是一个子组件。
<template>
<StackLayout>
<Label class="h1 text-center" text="Cart" style="color:black" />
<Label class="h2 text-center" text="(select a lesson to remove it)"
style="color:black" />
<ListView for="lesson in cart" @itemTap="onItemTap"
style="color:black" height="auto" minHeight="250">
<v-template>
<StackLayout>
<Label :text="lesson.subject" />
<Label :text="`price: ${lesson.price}`" />
<Label :text="`spaces: ${lesson.availableInventory}`" />
</StackLayout>
</v-template>
</ListView>
<TextField style="color:black;" hint="name" v-model="order.name" />
<TextField style="color:black;" hint="phone" v-model="order.phone" />
<Button @tap="submitOrder" text="Submit Order">
</StackLayout>
</template>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。