fix: cannot set highlight style for link action button (#5780)

This commit is contained in:
gchust 2024-12-03 19:19:41 +08:00 committed by GitHub
parent c4873828fa
commit 38e79d41af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1606,12 +1606,13 @@ export function useLinkActionProps(componentProps?: any) {
const { t } = useTranslation();
const url = componentPropsValue?.['url'];
const searchParams = componentPropsValue?.['params'] || [];
const type = componentPropsValue?.['type'] || 'default';
const openInNewWindow = fieldSchema?.['x-component-props']?.['openInNewWindow'];
const { parseURLAndParams } = useParseURLAndParams();
const basenameOfCurrentRouter = useRouterBasename();
return {
type: 'default',
type,
async onClick() {
if (!url) {
message.warning(t('Please configure the URL'));