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

Mod: 增加动态控制列表某个操作按钮是否渲染 #91

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open

Mod: 增加动态控制列表某个操作按钮是否渲染 #91

wants to merge 1 commit into from

Conversation

cshaptx4869
Copy link
Contributor

@cshaptx4869 cshaptx4869 commented Sep 6, 2021

用来动态控制表格某一行的某个按钮元素是否显示
比如有打印小票权限时,列表中只有待打印状态的才显示打印按钮
只需配置 render 参数,对应的回调函数返回布尔值即可
使用方法如图:https://foruda.gitee.com/images/1664253526289692405/856bcb80_5507348.png
效果展示如图:https://foruda.gitee.com/images/1664253098250117486/d6c85a37_5507348.png

@zhongshaofa
Copy link
Owner

toolbar和operate增加none类型 #81

跟这个PR的想法类似,可以看一下是不是你想要的效果

@cshaptx4869
Copy link
Contributor Author

cshaptx4869 commented Sep 6, 2021

toolbar和operate增加none类型 #81

跟这个PR的想法类似,可以看一下是不是你想要的效果

不一样的 他的是根据某个class做一些自定义按钮监听事件 而我的是根据某一行数据的某一个字段来判断是否需要渲染某个操作列按钮

@cshaptx4869 cshaptx4869 changed the title Add: 增加列operat操作栏的render参数 Mod: 增加列operat操作栏的render参数 Sep 7, 2021
@cshaptx4869 cshaptx4869 changed the title Mod: 增加列operat操作栏的render参数 Mod: 根据数据动态控制列表操作按钮是否显示 Sep 12, 2022
@cshaptx4869 cshaptx4869 changed the title Mod: 根据数据动态控制列表操作按钮是否显示 Mod: 根据数据动态控制列表某个操作按钮是否显示 Sep 12, 2022
@cshaptx4869 cshaptx4869 changed the title Mod: 根据数据动态控制列表某个操作按钮是否显示 Mod: 增加动态控制列表某个操作按钮是否渲染 Sep 29, 2022
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