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

feat(components): support displaying and hiding permission buttons in… #590

Closed
wants to merge 1 commit into from

Conversation

Azir-11
Copy link
Member

@Azir-11 Azir-11 commented Aug 7, 2024

支持表头主动显隐按钮与对按钮权限的支持

@honghuangdc
Copy link
Member

  1. 作为组件最好保证组件内的纯净,组件的状态都通过props去决定
  2. 可以设计一个属性,表示按钮的集合,包含按钮的key,文本,图标,按钮属性,排序等

@honghuangdc
Copy link
Member

  1. 作为组件最好保证组件内的纯净,组件的状态都通过props去决定
  2. 可以设计一个属性,表示按钮的集合,包含按钮的key,文本,图标,按钮属性,排序等

至于hasAuth控制按钮的展示,这个最好放到应用组件的地方

@Azir-11 Azir-11 closed this Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants