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

🏆 Use Ant Design like a Pro!

Results 843 pro-components issues
Sort by recently updated
recently updated
newest added

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 ProformList下的子表单项的transform方法在提交表单的时候不会执行。当ProFormList使用initialValue赋初始值的时候,点击提交按钮,并不会执行transform方法,需要点击 (+添加一行数据) 按钮,这个时候提交才会执行transform方法,并且再次点击提交按钮,依然不会执行transform方法; 这个问题在之前的使用中是不存在,今天重新执行 npm install 之后,发现了这个问题。 ### 📷 复现步骤 import {PageContainer, ProForm, ProFormDatePicker, ProFormList, ProFormText,} from '@ant-design/pro-components'; import React from 'react'; const Welcome:...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 ProFormSelect 在"@ant-design/pro-components": "^2.4.4",版本配置了request函数,函数里面的异常会被组件内部吃掉,抛不出来,追了下,里面有try catch 然后没往外抛, 试了新版本 "@ant-design/pro-components": "^2.7.15",也存在同样问题 ### 💻 示例代码 ` { throw new Error('8888'); // 这里的异常不会被抛出 }} /> `

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 ![CleanShot 2024-09-03 at 09 54 07@2x](https://github.com/user-attachments/assets/522aff8e-c211-4bae-810a-6d8ba5ef9418) ### 📷 复现步骤 [Codesandbox ](https://codesandbox.io/p/sandbox/cha-xun-wu-an-niu-biao-ge-x5fcj4?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522cm0lrvrtl00063b6iy90rv47o%2522%252C%2522sizes%2522%253A%255B100%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522cm0lrvrtl00023b6il8tsx5gt%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522cm0lrvrtl00033b6i9p718rju%2522%257D%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522cm0lrvrtl00053b6it9tf6f32%2522%257D%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cm0lrvrtl00023b6il8tsx5gt%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm0lrvrtl00013b6ioc3gdvi6%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252Findex.html%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522cm0lrvrtl00023b6il8tsx5gt%2522%252C%2522activeTabId%2522%253A%2522cm0lrvrtl00013b6ioc3gdvi6%2522%257D%252C%2522cm0lrvrtl00053b6it9tf6f32%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cm0lrvrtl00043b6irzf9ro5p%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%257D%255D%252C%2522id%2522%253A%2522cm0lrvrtl00053b6it9tf6f32%2522%252C%2522activeTabId%2522%253A%2522cm0lrvrtl00043b6irzf9ro5p%2522%257D%252C%2522cm0lrvrtl00033b6i9p718rju%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522cm0lrvrtl00033b6i9p718rju%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D) ### 🏞 期望结果 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本: [e.g....

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🔩 所属模块或组件 `ProFormList` ### 🥰 需求描述 目前`ProFormList`已经支持`transform`,希望可以支持`convertValue`,在回填之前转换数据。 ### ⛰ 功能需求适用场景 `ProFormList`的值默认是数组,如`[ { key: 'text1', value: 'hello' }, { key: 'text2', value: 'hi' } ]`,如果后端需要对象类型,如`{ text1: 'hello', text2:...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 ### 💻 示例代码 ![image](https://github.com/user-attachments/assets/f63a2140-28fe-487a-a825-6bcb0a6f70de) ### 🚑 其他信息

在tablePro使用金额组件,开启一行编辑模式时候,页面报错 📷 复现步骤 | Recurrence steps ![image](https://github.com/user-attachments/assets/d779592d-c1b5-439d-86e3-a2b92d809d87) ![image](https://github.com/user-attachments/assets/a52512d3-3a7f-4a32-a79c-18107a694977) 使用 "antd": "5.20.2",版本的有问题,使用 "antd": "5.16.5",没有问题 🏞 期望结果 | Expected results ![image](https://github.com/user-attachments/assets/80ffca52-e142-42f0-b159-39a22057ad68) 💻 复现代码 | Recurrence code © 版本信息 Ant Design Pro 版本:...

使用Protable,通过编辑行数据方式,保存Product Status的状态Invalid 到Valid,点击保存 通过另一个客户端也将该数据从Product Status的状态Valid 切换 Invalid 点击search按钮,显示数据是正常的的,但是点击编辑的时候,Product Status的状态还是为Invalid,测试说明table的编辑行form表单使用缓存,并没有读取列表请求来的新数据 ![image](https://github.com/user-attachments/assets/48637a0f-18bd-4bbd-bd5f-9850feda6046) ![image](https://github.com/user-attachments/assets/68ee6f2f-9c18-45c7-83e7-b2e9c2c3f1aa) ![image](https://github.com/user-attachments/assets/190670ad-23fb-402b-885b-de340c95bc43) ![image](https://github.com/user-attachments/assets/71111422-11ae-49b3-834f-089f599a28e4) 📷 复现步骤 | Recurrence steps 在浏览器打开两个tab,同时编辑一条数据,点击搜索刷新列表,再次编辑那一行,发现走的是缓存,并没有读取新的数据 🏞 期望结果 | Expected results 希望每次读取新的数据 💻 复现代码 | Recurrence code...

### 🥰 需求描述 checkCard暴露一个属性`color`, 几个基本色卡(红/黄/蓝/绿)就可以 ### ⛰ 功能需求适用场景 作为选择题的时候, 显示为蓝色 显示答案的时候, 正确的选项显示为绿色 错误的选项显示为红色

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 proformselect的params定义为函数或对象,但是当params为函数时,不起作用 ``` params?: ((record: Entity, column: ProSchema) => Record) | Record; ``` ### 📷 复现步骤 ``` { dataIndex: 'select', label: 'select', valueType: 'select', params:...

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 在官网的ProLayout组件的【黑色主紧凑主题】、【黑色主题】demo失效。 ### 📷 复现步骤 进入如下链接,https://procomponents.ant.design/components/layout?tab=api#packages-layout-src-components-layout-tab-api-demo-dark 点击右侧的,【黑色主紧凑主题】、【黑色主题】 ![image](https://github.com/user-attachments/assets/a0a9ec05-11e8-4fd8-85c2-4a8753ce8d1c) ### 🏞 期望结果 能够正确配置黑色主题 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本: 官网示例 - umi 版本...