pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🏆 Use Ant Design like a Pro!

Results 761 pro-components issues
Sort by recently updated
recently updated
newest added
trafficstars

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 antd 如何监听浏览器返回事件,我现在使用以下几种方式,但是hashchange和popstate这两个事件我监听不到 ### 💻 示例代码 const myHistory = useHistory(); useEffect(() => { const handle = () => { console.log(2132444); localStore.setItem('addDetail', JSON.stringify(formRef.current?.getFieldsValue())); }; const visibHandle =...

Default show all filter form items in the Pro Table. If the user wants to display fewer items, they can click to show less.

### 🐛 bug 描述 项目package.json 依赖`@ant-design/pro-components@ 2.4.4` 和 `[email protected]` 版本。重新安装依赖提示 ```sh 10:26:55 AM [vite] hmr update /src/App.tsx ✘ [ERROR] No matching export in "node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/antd/es/index.js" for import "ColorPicker" node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@ant-design/pro-field/es/components/ColorPicker/index.js:4:9: 4 │...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 ### 💻 示例代码 ```typescript { console.log('current:', current); setCurrent(current) }} stepsRender={(steps, defaultDom) => { console.log('steps:', steps, defaultDom); return { console.log(event); }}>{defaultDom}; }} ``` 想通过使用 stepsRender来实现,但是没有current参数,不知道当前是第几步,请问如何实现 ###...

### 🐛 bug 描述 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DomWrapper4 which is inside StrictMode. Instead, add a ref directly to the element you...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 在Schema Form - JSON 表单或antd普通表单中,编辑时将某个有值的字段清空,那么在点onFinish的时候这个被清空的字段会被过滤掉,这样就会在提交到后端的时候这个字段被认为是未做修改的。所以是不是可以考虑表单中的字段不管有没有值都保留字段? ### 📷 复现步骤 如官网https://procomponents.ant.design/components/schema-form的 示例 ### 🏞 期望结果 表单中的字段不管有没有值都保留字段?或者有什么方法能解决呢? ### 💻 复现代码 官网https://procomponents.ant.design/components/schema-form的 示例 ### © 版本信息 - ProComponents...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 ProForm 下使用Row套用ProFormDependency在大屏返回null未隐藏 ### 📷 复现步骤 在Row 设置column >2 情况下如果ProFormDependency返回null数据,在Row Col套用下不会自动隐藏,会占用空间,但在Row column 设置为2就正常隐藏ProFormDependency占用空间 ### 🏞 期望结果 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本:...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 根据定义数据控制columns列数展示,更新后search中定义select下拉框无法获取到options ### 💻 示例代码 ### 🚑 其他信息

AI Reply

2023 年 02 月 发布 ProComponent 2.0 之后,我们一直在做着兼容 antd@4 和 antd@5 的工作,随着时间的推进,2022 年 11 月发布的 antd5 覆盖率已经超过了百分之 60,最近社区也做了一份文件调查,72% 的用户也已经升级到了 antd@5。ProComponent 也是时候轻装上阵去掉 antd@4 的支持来换取更小的包大小,更好的试用体验。 ![image.png](https://cdn.nlark.com/yuque/0/2024/png/84868/1708493784335-85b95620-4871-4b27-81df-9f0988c98b45.png#averageHue=%23bddceb&clientId=u0ef4f100-df2d-4&from=paste&height=383&id=ueaa94c08&originHeight=766&originWidth=1718&originalType=binary&ratio=2&rotation=0&showTitle=false&size=839514&status=done&style=shadow&taskId=u36441f43-bd00-43c9-9b9c-67b99cdc13d&title=&width=859) 3.0 中我们主要会做的以下的一些非兼容性操作 - 去除 antd@4 的兼容性...

🎨 By Design

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🔩 所属模块或组件 率属组件:ProTable ### 🥰 需求描述 antd的5.14.0版本的Table组件支持了堆叠列,但是ProTable好像根据columns里的fixed属性对列进行了排序,希望可以增加设置,禁用proTable的排序 ### ⛰ 功能需求适用场景 滚动时能更好的固定表格中间的操作列