Skip to content

the declared prop name is error when passed to component #1221

@semi-aurora

Description

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

Version

1.3.16

Environment

Vue2.6.10,antd vue 1.3.16/1.3.17-beta1

Reproduction link

https://github.com/vueComponent/ant-design-vue/releases/tag/1.3.16

Steps to reproduce

<a-date-picker
placeholder="请选择日期和时间"
format="YYYY-MM-DD HH:mm:ss"
:disabledDate="disabledDate"
:disabledTime="disabledDateTime"
:showTime="{ minuteStep: 'minuteStep',secondStep:'30' }"
></a-date-picker>
[Vue tip]: Prop "disableddate" is passed to component <Anonymous>, but the declared prop name is "disabledDate". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "disabled-date" instead of "disabledDate".
...
same with showtime,disabledtime

What is expected?

like demo https://vue.ant.design/components/date-picker-cn/

What is actually happening?

showTime is not working

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions