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

表格工具栏buttonRender无效 #25

Open
guangxs opened this issue Feb 13, 2025 · 0 comments
Open

表格工具栏buttonRender无效 #25

guangxs opened this issue Feb 13, 2025 · 0 comments

Comments

@guangxs
Copy link

guangxs commented Feb 13, 2025

配置:VxeTable.gridOptions.toolbarConfig.buttons[{buttonRender}] 无效
(同级别的dropdowns可以使用)

示例:

{
	toolbarConfig: {
		buttons: [
			{ name: 'A', buttonRender: { name: 'VxeButton', props: { status: 'primary', content: 'AC' } } },
			{ code: 'b', buttonRender: { name: 'VxeButton', props: { status: 'primary', content: 'BC' } } },
			{ name: 'C', code: 'c', buttonRender: { name: 'VxeButton', props: { status: 'primary', content: 'CC' } } },
			{ buttonRender: { name: 'VxeButton', props: { status: 'primary', content: 'DD' } } }
		],
	},
}

效果:

Image

使用过程使用渲染其他组件也无效,如badge组件,这个buttonRender目前无法使用

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

No branches or pull requests

1 participant