ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.31k stars 1.36k forks source link

🐛[BUG]ProFormDatePicker只读模式下,报错 #7593

Closed SummyGitHub closed 1 year ago

SummyGitHub commented 1 year ago

🐛 ProFormDatePicker只读模式下,报错

当 DatePicker的 format为数组时,只读模式下,发生错误

📷 复现步骤

<ProForm
    readonly={true}
    dateFormatter={(value) => {
       return value.format('YYYY-MM-DD');
    }}
>
    <ProFormDatePicker name="date" label="日期" fieldProps={{ format: ['YYYY-MM-DD', 'YYYY/MM/DD'] }}>. 
    </ProFormDatePicker>
</ProForm>

🏞 期望结果

只读模式可以正常显示

💻 复现代码

© 版本信息

🚑 其他信息

image

github-actions[bot] commented 1 year ago

以下的 Issues 可能会帮助到你 / The following issues may help you