fix(button): fix the issue where the loading attribute of the button's multi-terminal template does not take effect (#3232)

This commit is contained in:
申君健 2025-04-06 19:03:30 -07:00 committed by GitHub
parent f12877b8e0
commit cbfcde549a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
gcls(`size-${size || 'default'}`),
gcls(
`type-${type || 'default'}${icon ? '-icon' : state.plain ? '-plain' : ''}${
state.buttonDisabled ? '-disabled' : ''
state.buttonDisabled || loading ? '-disabled' : ''
}`
),
gcls(state.round ? 'is-round' : 'no-round'),

View File

@ -53,7 +53,7 @@ export const classes = {
'button-icon': '-mt-0.5 sm:text-base fill-current',
'button-icon-default': 'text-color-icon-primary hover:text-color-icon-hover active:text-color-icon-active',
'button-icon-disabled': 'text-color-icon-disabled hover:cursor-not-allowed',
'loading-svg': 'animate-spin-2 mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5',
'loading-svg': 'animate-spin mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5',
'button-link':
'text-color-link hover:text-color-link-hover active:color-link-hover active:hover:text-color-link-hover sm:hover:text-color-link-hover',
'button-banner': ' w-[calc(100%-theme(spacing.8))] mx-4'