-
-
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
2.0.0-beta.10
Environment
vue3
Reproduction link
https://gist.github.com/810505339/e6f4069938e72a133a867cefc5f94a90
Steps to reproduce
export default defineComponent(() => {
const form = reactive({
name: ''
})
const rules = reactive({
name: [
{
required: true,
message: 'Please input Activity name',
},
{
min: 3,
max: 5,
message: 'Length should be 3 to 5',
trigger: 'blur',
}
],
})
// const {resetFields, validate, validateInfos} = useForm(form, rules);
return () => (<>
<a-input v-model={[form.name, 'value']}/>
</>)
})
What is expected?
正常验证
What is actually happening?
验证时候value一直为空