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

### 🧐 问题描述 build报错,使用了EditableProTable, ProCard, ProFormField 拷贝了示例里面的代码,tsconfig.json里有"exclude": ["node_modules"],为什么还会解析 ### 💻 示例代码 之前typescript:'4.9.5' 升级成5.1.6就好了 ### 🚑 其他信息 ![0505ff0fd0c3aaf210ed00265865148](https://github.com/ant-design/pro-components/assets/45223166/ca17eb45-1e6c-4eac-941c-8b248f16b149)

### 🐛 bug 描述 ProTable在大于2.7.0版本时编译文件会报React is not define的错误,在本地开发模式正常。 ### 📷 复现步骤 "dependencies": { "@ant-design/charts": "^1.3.6", "@ant-design/icons": "^4.8.0", "@ant-design/pro-card": "^2.5.26", "@ant-design/pro-components": "2.7.0", "@ant-design/pro-form": "^2.23.0", "@ant-design/pro-layout": "^7.17.15", "@ant-design/use-emotion-css": "1.0.4", "antd": "^5.2.2" }

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 组件打开搜索远程获取数据,获得搜索结果后,点击其中一个,会清空结果,然后触发 request,resetAfterSelect无效 ### 📷 复现步骤 1.输入搜索,获得下拉菜单 2.点击其中一个 3.搜索结果清空,除非request ### 🏞 期望结果 与antd 的一样效果,获得搜索结果后,没有重新输入新搜索字段的情况下,保留上一次搜索结果,可重复选择 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本: 2.6.28 ###...

### 🐛 bug 描述 在ProTable渲染后再点击按钮“开启勾选”给react hook赋值其rowSelection属性,勾选时最左列的checkbox并未被选中(如果一开始就给到rowSelection属性,则正常),我的Button的onClick事件中给到的rowSelection属性和被注释的rowSelection内容完全一致。 ### 📷 复现步骤 ![876eee46c926d84812e4cc57938c5ed](https://github.com/ant-design/pro-components/assets/32770514/72b7e67d-1afb-414b-bdf9-65cc77a8ccf7) ### 🏞 期望结果 ![e31c5f537dbc7eac0631b6f03958dba](https://github.com/ant-design/pro-components/assets/32770514/b56f8039-98c7-408a-9e27-d8d644a7bf01) ### 💻 复现代码 ``` import React, { useState, useRef } from 'react' import { Button, Space,...

Failed to compile. ./node_modules/@ant-design/pro-form/es/components/FormItemRender/index.d.ts:24:41 Type error: Type parameter declaration expected. 22 | }[]> = T[number]['name']; 23 | export declare function useControlModel({ value, onChange, id }: WithControlPropsType, model?: T): ControlModelType; >...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 EditableProTable需要和表格外的数据进行联动,使用`name="table"`属性结合完成数据联动, 但是addEditRecord()方法新增子项失效,无法新增子项且会删除已存在子项,注释掉`name="table"`后新增子项就可以实现。 ### 📷 复现步骤 ` // 新增子项触发方法 { actionRef.current?.addEditRecord?.( { id: (Math.random() * 1000000).toFixed(0), title: '新的一行', parentKey: record.id, }, { newRecordType: 'dataSource', parentKey:...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 I would like to register another onclick event for the option initialization button. Is there a way? ### 💻 示例代码 ### 🚑 其他信息 ![protable_issue](https://github.com/ant-design/pro-components/assets/61037204/64325395-7ecd-4469-9879-e3f911578bfd)

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 项目是22年10月左右开始的,初始化时的相关版本如图: ![image](https://github.com/ant-design/pro-components/assets/12961611/f0dc516d-b8e8-4db8-b2d0-496566f1c606) ![image](https://github.com/ant-design/pro-components/assets/12961611/dfb61b3b-b442-4220-b378-0cbf55314e04) 后面隔了几个月,把lock文件删除了,装的新版本发现打包后登录页不加载表单样式,登录后其它组件都正常。 ![image](https://github.com/ant-design/pro-components/assets/12961611/567e6763-6e25-4dee-a7a0-79d9fb66cab4) ### 📷 复现步骤 最近经过单独升级pro-form版本发现,升级到2.3.0开始就会出现这个问题,去看了下源码的版本对比,不清楚是不是和loader升级有关 ![image](https://github.com/ant-design/pro-components/assets/12961611/b6e674c5-7307-4374-92e5-729711443a41) ![image](https://github.com/ant-design/pro-components/assets/12961611/98391850-b166-4d87-a85f-3b9cb6d1f80a) ### 🏞 期望结果 截止到今天(24.4.16)即使删除lock,把各组件的版本全升级到对应版本号的最新,其它问题没有,就这个登录页打包后异常,是更新后项目中哪里有配置要改吗?我需要如何做

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 ### 📷 复现步骤 ![image](https://github.com/ant-design/pro-components/assets/55881178/de701c52-5d0f-48ad-aef2-e83223197681) ![image](https://github.com/ant-design/pro-components/assets/55881178/6e34f5d4-b14a-43e7-b00a-c462ed4443b8) ![image](https://github.com/ant-design/pro-components/assets/55881178/78ef674e-2aab-4f81-99e5-2032a91a2ea9) ![image](https://github.com/ant-design/pro-components/assets/55881178/70312a1a-dd6e-4168-b76a-6b7a45991737) 少一个类名,直接使用表单项是没问题的,但是包装成组件之后 出现问题 ### 🏞 期望结果 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本: [e.g. 2.7.0] -...