We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
在实际业务中,右侧悬浮的操作列是必须的。灵活可控的操作列能增强表格能力。
贴上一个vben的解决方案,对于options提供额外的参数用来描述操作列。 例如:tooltip、icon、auth、tooltip、ifShow、 disabled等等函数。
actionColumn: { width: 115, align: 'center', title: '操作', dataIndex: 'action', fixed: 'right', customRender: ({ record }) => { const actions: ActionItem[] = [ { tooltip: '提交审核', color: 'success', auth: 'parkms:owner_cut:submit', icon: IconEnum.CHECK, ifShow: record.status == 0 || record.status == -1, disabled: record.status != 2, onClick: () => { submitAudit(record); }, }, ]; return h(TableAction, { actions, outside: false }); }, },
未发现
The text was updated successfully, but these errors were encountered:
官网文档不是都有吗
Sorry, something went wrong.
他想要一个封装好直接可以用的TableAction组件
我的建议是你可以自己写,vben也是二次封装的
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
这个需求解决了什么问题:
在实际业务中,右侧悬浮的操作列是必须的。灵活可控的操作列能增强表格能力。
建议的 API 是什么样的:
贴上一个vben的解决方案,对于options提供额外的参数用来描述操作列。
例如:tooltip、icon、auth、tooltip、ifShow、 disabled等等函数。
actionColumn: { width: 115, align: 'center', title: '操作', dataIndex: 'action', fixed: 'right', customRender: ({ record }) => { const actions: ActionItem[] = [ { tooltip: '提交审核', color: 'success', auth: 'parkms:owner_cut:submit', icon: IconEnum.CHECK, ifShow: record.status == 0 || record.status == -1, disabled: record.status != 2, onClick: () => { submitAudit(record); }, }, ]; return h(TableAction, { actions, outside: false }); }, },
是否已有其他不错的替代方案:
未发现
是否使用当前最新版本?
The text was updated successfully, but these errors were encountered: