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

折叠面板 Collapse #3408

Closed
iZaiZaiA opened this issue Aug 2, 2022 · 4 comments · Fixed by #3441
Closed

折叠面板 Collapse #3408

iZaiZaiA opened this issue Aug 2, 2022 · 4 comments · Fixed by #3441
Labels
feature request New feature or request priority: low

Comments

@iZaiZaiA
Copy link

iZaiZaiA commented Aug 2, 2022

This function solves the problem (这个功能解决的问题)

现在业务场景中有个需求,就是,可能其中一个或多个,根据接口返回的数据状态,禁止展开。
比如,1-3条数据正常,可正常展开,4-6条数据,不允许展开,7-9条数据可展开。

Expected API (期望的 API)

希望,n-collapse-item 组件,增加一个是否可展开(或是否禁用)的参数。

@github-actions github-actions bot added the feature request New feature or request label Aug 2, 2022
@Sepush
Copy link
Collaborator

Sepush commented Aug 2, 2022

根据你的数据 设置一下 default-expanded-names 应该能做到

@iZaiZaiA
Copy link
Author

iZaiZaiA commented Aug 2, 2022

根据你的数据 设置一下 default-expanded-names 应该能做到

不能像饿了么那样,直接有个属性吗?,如果用 default-expanded-names 的话,处理起来,就比较麻烦。没有 disabled 简单。

image

@Sepush
Copy link
Collaborator

Sepush commented Aug 2, 2022

可以加

@07akioni
Copy link
Collaborator

07akioni commented Aug 2, 2022

感觉可以加一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants