Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProList expandable 的expandIcon无效 #1710

Closed
TingzhouJia opened this issue Jan 20, 2021 · 1 comment · Fixed by #1771
Closed

ProList expandable 的expandIcon无效 #1710

TingzhouJia opened this issue Jan 20, 2021 · 1 comment · Fixed by #1771

Comments

@TingzhouJia
Copy link

🧐 问题描述

ProList expandable 的expandIcon无效,然后想问下怎么配置expandIcon位置?

                expandable={{
                  expandRowByClick:true,
                  expandedRowKeys,
                  defaultExpandAllRows: false,
                  onExpandedRowsChange: setExpandedRowKeys,
                  expandIcon:({ expanded, }) => {
                
                    return (<IconFont type="icon-expand" style={{ fontSize: "32px" }} rotate={expanded ? 180 : 0} />)
                  },
                  
                }}
@chenshuai2144
Copy link
Contributor

这个好像是不支持的,ProList的 expandIcon 和 antd 的相比功能弱了不少

@chenshuai2144 chenshuai2144 changed the title ProList expandable ProList expandable 的expandIcon无效 Jan 21, 2021
DerrickTel added a commit to DerrickTel/pro-components that referenced this issue Jan 27, 2021
chenshuai2144 added a commit that referenced this issue Jan 29, 2021
* ✨ feat(list): support expandIcon(#1710)

* 🎨 chore: Delete unused variables

* 🐛 fix(list): fix Typescript type error

* 🐛 fix(list): fix test

* fix error

* fix ts

* ✨ feat(list): add expandIcon test

* 🐛 fix(list): fix test

Co-authored-by: chenshuai2144 <qixian.cs@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants