Skip to content

Commit cbfcde5

Browse files
authored
fix(button): fix the issue where the loading attribute of the button's multi-terminal template does not take effect (#3232)
1 parent f12877b commit cbfcde5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vue/src/button/src/mobile-first.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
gcls(`size-${size || 'default'}`),
1313
gcls(
1414
`type-${type || 'default'}${icon ? '-icon' : state.plain ? '-plain' : ''}${
15-
state.buttonDisabled ? '-disabled' : ''
15+
state.buttonDisabled || loading ? '-disabled' : ''
1616
}`
1717
),
1818
gcls(state.round ? 'is-round' : 'no-round'),

packages/vue/src/button/src/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const classes = {
5353
'button-icon': '-mt-0.5 sm:text-base fill-current',
5454
'button-icon-default': 'text-color-icon-primary hover:text-color-icon-hover active:text-color-icon-active',
5555
'button-icon-disabled': 'text-color-icon-disabled hover:cursor-not-allowed',
56-
'loading-svg': 'animate-spin-2 mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5',
56+
'loading-svg': 'animate-spin mr-1 fill-current -left-0.5 -right-0.5 -top-0.5 -bottom-0.5',
5757
'button-link':
5858
'text-color-link hover:text-color-link-hover active:color-link-hover active:hover:text-color-link-hover sm:hover:text-color-link-hover',
5959
'button-banner': ' w-[calc(100%-theme(spacing.8))] mx-4'

0 commit comments

Comments
 (0)