-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.0.0-alpha.9
Environment
vue@3.2.21 ant-design-vue@3.0.0-alpha.11
Reproduction link
https://github.com/xpromise/ant-design-vue-report
Steps to reproduce
<Textarea v-model:value="formState.desc" /> 确定 取消 <script setup> import { reactive } from "vue"; import { Card, Form, FormItem, Input, Textarea, Button } from "ant-design-vue"; const formState = reactive({ name: "", desc: "", }); const rules = reactive({ name: [{ required: true, message: "请输入名称", trigger: "blur" }], desc: [{ required: true, message: "请输入描述", trigger: "blur" }], }); const { validateInfos, validate } = Form.useForm(formState, rules); const submit = async () => { await validate(); }; </script>What is expected?
失去焦点触发表单验证
What is actually happening?
什么都没有发生