alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.47k stars 1.49k forks source link

[Bug Report] DatePicker组件使用picker=week模式,无法受控 #4049

Open jay4q opened 11 months ago

jay4q commented 11 months ago

Reproduction link

Edit on CodeSandbox

Steps to reproduce

打开链接:https://antd5.formilyjs.org/zh-CN/components/date-picker#json-schema-%E6%A1%88%E4%BE%8B ,使用【周选择器】

What is expected?

在picker='week'模式下,组件可正常受控

What is actually happening?

在picker='week'模式下,无论选择哪一周,永远显示【2023第51周】(提问题的这周),不受控

Package

@formily/antd-v5@2.3.1


个人本地开发也是这个问题

janryWang commented 10 months ago

这个会不会是 antd 的问题啊,正常如果不受控,那所有属性都会不受控