ant-design / ant-design/pro-components
🐛[BUG] DrawerForm size 类型错误.resizable属性不能用
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
1. 需要支持 antd6 [ResizableConfig](https://ant-design.antgroup.com/components/drawer-cn?locale=zh-CN&tab=design#resizableconfig) api 配置,目前设置了不生效.
1. antd6 `size ` 属性是支持 string 的 `'default' | 'large' | number | string` ,但是给 DrawerForm 的 width 设置 '50vw' ts 提示类型错误. (antd6 已经用 size 替代了 width ,DrawerForm是否最外层也新加一个 size 字段呢? 与antd6 保持一致. )
[antd6](https://codesandbox.io/p/devbox/yu-she-kuan-du-antd-6-5-1-forked-92f3w7?workspaceId=ws_2roJxHfyoYcoc1EN6ohJ8C) 目前的效果.
Contributor guide
Research direction
Start at the DrawerForm API and its width, size, and resizable prop types, using the linked antd6 ResizableConfig documentation and demo as the reference. Verify that antd6-compatible ResizableConfig settings work and that a string such as '50vw' is accepted for sizing, with behavior matching the demo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100