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

### 🧐 问题描述 我使用了 ProCard 组件(@ant-design/pro-card),发现其 onChange 事件无法捕获到很多子组件的数据变更事件,比如 ProFormSelect(下拉框)等 请问是设计如此还是我使用问题 ### 💻 示例代码 ```html console.log("onCollapse: %s", collapse)} > // ERROR,无法触发ProCard.onChange // 添加文件的时候可以触发,取消添加的时候不能触发 // OK,可以触发ProCard.onChange ``` ### 🚑 其他信息 又单独写了个demo:https://codesandbox.io/s/drawer-biao-dan-forked-7u3ovo?file=/index.tsx -...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 ### 💻 示例代码 ### 🚑 其他信息

### 🐛 bug 描述 添加 width 属性到 ProFormText 等组件,值为 md/lg/xs/sm/... 皆可。 本地开发环境显示正常。 生产环境打包后,缺少了包含 ".pro-field-md" 等类名的样式表。 在 umi4 和 umi3 中表现略有不同,umi4 似乎是样式chunk加载时机问题。 这里提供umi3的复现步骤。 ### 📷 复现步骤 ```bash npm i @ant-design/pro-cli -g...

1.主要是想实现服务端多列排序 2.复现例子: 2.1: ant design table 点击排序,可以正常返回数据 https://codesandbox.io/s/shai-xuan-he-pai-xu-antd-4-21-7-forked-8xdvtd?file=/demo.js 2.2 ant design protable 点击排序,出现异常错误 https://codesandbox.io/s/wu-cha-xun-biao-dan-forked-lkc7k7?file=/App.tsx:2866-2903 实际调试返回的数据格式也很奇怪,只有一个排序的时候返回的是一个对象,点了两个列排序后返回空数组?

直接以官网演示代码为例 https://procomponents.ant.design/components/editable-table/#%E4%B8%8E-formitem-%E9%85%8D%E5%90%88 ![22(98L870J%{$7W`)G7IEWH](https://user-images.githubusercontent.com/9448445/181454374-f67335a4-bc16-4fd6-a29d-72569d84e7cb.png) 问题1. 多行编辑时,点击编辑行删除按钮 会将其他编辑行数据清除 或者 变为保存 问题2. 将数据全部删除后,点击添加一行数据出现 自动添加 活动名称1或者 活动名称2 ![image](https://user-images.githubusercontent.com/9448445/181454592-7967b455-dc66-46fc-bf67-23102fcae998.png) 问题3 本地运行演示代码 首次点击编辑行 删除 出现下图 警告 ![image](https://user-images.githubusercontent.com/9448445/181458439-715ffaa6-3582-419a-8c34-e4c42fe6c1b4.png)

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 umi4初始项目,切换至react 18,顶部菜单模式快速切换会导致错误。 这可能是rc-overflow组件中的一个错误,但是先来这里求助看看。 ``` The above error occurred in the component: at Overflow (http://localhost:8000/umi.js:102780:32) at InheritableContextProvider (http://localhost:8000/umi.js:99946:23) at http://localhost:8000/umi.js:98548:32 at http://localhost:8000/umi.js:42028:53 at Menu (http://localhost:8000/umi.js:42147:90)...

### 🧐 问题描述 1.编辑行使用了自定义组件,value是一个对象 2.外部改变tableData 3.现象:普通字段的更新会触发渲染,嵌套对象的字段更新不变 4.打印log发现,自定义组件内部接收的还是旧值 5.查看文档发现,setRowData有特殊处理会浅比较,内部处理会不会跟这个有关,这是一个bug吗,有没有什么解决办法

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 https://procomponents.ant.design/components/layout#%E8%87%AA%E5%AE%9A%E4%B9%89-menu-%E7%9A%84%E5%86%85%E5%AE%B9 根据组件文档中的自定义menu样式修改后,menu点击无效 ### 📷 复现步骤 在app.tsx中的export const layout: RunTimeLayoutConfig的return中添加下面这两行后,点击左侧菜单无效,进不去页面 menuItemRender: (item, dom) => pre {dom}, subMenuItemRender: (_, dom) => pre {dom} ### 🏞 期望结果...

环境:官方 npx create-umi myapp 创建的示例 复现操作:登录页面,选择账户登录,在键盘输入与删除操作时,可见页面抖动 ![image](https://user-images.githubusercontent.com/34680966/181191187-f103ac25-39ef-448e-b955-3b8344fa3fd1.png) ![image](https://user-images.githubusercontent.com/34680966/181191779-3ca18305-75ea-4cbe-b411-e669d994b03b.png) antd 有类似 issue :https://github.com/ant-design/ant-design/issues/28056

比如说我现在的下拉列表字段名是goodsName ![image](https://user-images.githubusercontent.com/56161847/181184458-f01b4167-35e7-48f8-ad1a-0853a5cf5f7e.png) onFinish是在项目里已经封装好的公用组件,如果是单个表单我知道可以使用values.label和values.value添加字段,但是如果onFinish是在项目里已经封装好的公用组件,我在onFinish提交的时候怎样在values怎样把这个选择的对象label和value一起拿到提交呢?有没有其他方法在特定的场景下修改要提交的字段名呢? ![image](https://user-images.githubusercontent.com/56161847/181184990-58b54bb2-0bc0-40dc-bc72-33784aa9080d.png)