Skip to content

form-date-picker 表单的日期组件defaultPickerValue属性无效 #1518

@blacksmithDong

Description

@blacksmithDong

组件

form-date-picker

基础库版本

v3.4.0

  • 1.x
  • 2.x

设备机型

手机系统

  • iOS
  • Android
  • HarmonyOS

APP

组件库版本

v3.4.0

预期行为

设置defaultPickerValue后唤起日期选择的时候时间为对应的默认值时间

复现步骤

  1. 引入form-date-picker组件
  2. 设置defaultPickerValue默认时间

复现 demo

<form-date-picker
       label="时间"
       name="time"
       ref="handleRef"
       position="vertical"
       placeholder="请选择"
       format="YYYY-MM-DD"
       defaultPickerValue="{{defaultValue}}"
       min="1990-01-01"
       max="{{maxDate}}"
       arrow
/>

原因

表单组件没有对日期组件的defaultPickerValue属性值进行透传导致无效

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions