style(login): 优化登录按钮的样式类名处理

使用 cn 工具函数替代手动拼接样式类名,使代码更简洁易读
This commit is contained in:
dap
2026-03-10 19:32:56 +08:00
parent 486ce6a567
commit a3f8cd8f96

View File

@@ -10,7 +10,7 @@ import { $t } from '@vben/locales';
import { useVbenForm } from '@vben-core/form-ui';
import { VbenButton, VbenCheckbox } from '@vben-core/shadcn-ui';
import { cloneDeep } from '@vben-core/shared/utils';
import { cloneDeep, cn } from '@vben-core/shared/utils';
import Title from './auth-title.vue';
import ThirdPartyLogin from './third-party-login.vue';
@@ -134,9 +134,7 @@ defineExpose({
</span>
</div>
<VbenButton
:class="{
'cursor-wait': loading,
}"
:class="cn({ 'cursor-wait': loading }, 'h-10')"
:loading="loading"
aria-label="login"
class="w-full"