Skip to content

a-date-picker 选择999出现NaN #8343

@perfectDefect

Description

@perfectDefect
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.14

Environment

window11

Reproduction link

<a-form-item label="生日:" name="birthday">

  <a-date-picker v-model:value="formData.birthday" value-format="YYYY-MM-DD" />

</a-form-item>
<script setup>

const formRef = ref();

let formData = ref({});

const formRules = {
birthday: [{ required: true, trigger: "change", message: "选择生日!" }],
};

const layout = {

labelCol: {
span: 3,
},
]
wrapperCol: {
span: 21,
},

};

</script>

Steps to reproduce

选择999年日期点击确定在打开日期组建

What is expected?

999-01-01

What is actually happening?

NaN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions