pro-components
pro-components copied to clipboard
🏆 Use Ant Design like a Pro!
提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 ProTable组件列设置功能第一次拖拽后点击重置再次拖拽数据混乱了(应该是使用了的第一次拖拽的数据) ### 📷 复现步骤 1.把第二列拖拽到最后 2.点击重置按钮 3.把第一列拖拽到第二列后面 结果:排序乱了 ### 🏞 期望结果 期望按重置后的顺序排列 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本: [e.g. 4.0.0] -...
提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 ### 💻 示例代码 ### 🚑 其他信息
"antd": "~5.12.7", "@ant-design/pro-components": "~2.6.44", 使用方式: { title: '描述', dataIndex: 'description', width: 180, ellipsis: false, renderText(description) { return {description}; }, },
### 🐛 bug 描述 代码如下,dev模式下可以正常运行,但build上线之后出问题 ``` [ ]} /> ``` 已经改用Form.Item + ColorPicker 做了替补,忘了截图了。但应该可以复现出来。 版本大约是 "@ant-design/pro-components": "^2.6.43", "antd": "^5.11.5",
### 🐛 bug 描述 混合模式下更改侧边栏背景色,当侧边栏收起后,鼠标滑过的浮层2级菜单背景色没有更改成功,仍然是白色。 `colorBgMenuItemCollapsedElevated`配置没有生效。 ### 📷 复现步骤 sider配置 ``` sider: { colorMenuBackground: '#001529', colorBgMenuItemCollapsedElevated: '#001529', colorBgMenuItemActive: '#001529', colorTextMenuTitle: '#fff', colorTextMenu: '#fff', // colorTextMenuSecondary: '#fff', colorTextMenuActive: '#fff', colorTextMenuSelected: '#fff',...
提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 BetaSchemaForm的valueEnum传入一个函数(row)=>xxx时,row一直是undefined,无法获取到值 文档里说可以传函数的:https://github.com/ant-design/pro-components/blob/817898fabd2f199113ebb8a063d1ffbf0ab22829/docs/components/schema.md#%E8%87%AA%E5%AE%9A%E4%B9%89-valuetype ### 📷 复现步骤 codesandbox.io: https://codesandbox.io/p/sandbox/shi-yong-proformdependency-forked-llfyp9?file=%2FApp.tsx%3A32%2C25&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%2522cls17y0sd0007356ma48cgpwz%2522%252C%2522sizes%2522%253A%255B70%252C30%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%2522cls17y0sd0003356mlcnn7udc%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%2522cls17y0sd0004356mah1rcuny%2522%257D%255D%252C%2522sizes%2522%253A%255B100%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%2522cls17y0sd0006356my2csi576%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522cls17y0sd0003356mlcnn7udc%2522%253A%257B%2522id%2522%253A%2522cls17y0sd0003356mlcnn7udc%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cls18o4ic0002356kut78t8fy%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A32%252C%2522startColumn%2522%253A25%252C%2522endLineNumber%2522%253A32%252C%2522endColumn%2522%253A25%257D%255D%252C%2522filepath%2522%253A%2522%252FApp.tsx%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522activeTabId%2522%253A%2522cls18o4ic0002356kut78t8fy%2522%257D%252C%2522cls17y0sd0006356my2csi576%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522cls17y0sd0005356m5khsz4lo%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522cls17y0sd0006356my2csi576%2522%252C%2522activeTabId%2522%253A%2522cls17y0sd0005356m5khsz4lo%2522%257D%252C%2522cls17y0sd0004356mah1rcuny%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522cls17y0sd0004356mah1rcuny%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D ### 🏞 期望结果 (row)=>{ // 希望这里能获取到row表单内容 } ### 💻 复现代码 见上方sandbox 或者: ```js import type { ProFormColumnsType...
提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🧐 问题描述 BetaSchemaForm 的 FormList 里, columns上的方法中如何获得list的下标 ### 💻 示例代码 ``` const valueEnum = { all: { text: '全部', status: 'Default' }, open: { text: '未解决', status:...
提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🔩 所属模块或组件 BetaSchemaForm -> group (packages/form/src/components/Group/index.tsx) ### 🥰 需求描述 ```tsx // packages/form/src/components/Group/index.tsx:98 const [childrenDoms, hiddenDoms] = useMemo(() => { const hiddenChildren: React.ReactNode[] = []; const childrenList =...
提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 表头分组的情况下,二级表头的拖动无效,一级表头是正常的。 ### 📷 复现步骤 https://oss-images-1310293673.cos.ap-chongqing.myqcloud.com/static/2024/01/2024-01-30/[email protected] ### 🏞 期望结果 ### 💻 复现代码 https://codesandbox.io/p/sandbox/cha-xun-biao-ge-forked-33rznw ### © 版本信息 - ProComponents 版本: [e.g. 2.6.48] - umi 版本 -...
https://pro-components.antdigital.dev/~demos/packages-layout-src-components-layout-tab-api-demo-base?layout=mix&splitMenus=true 