mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-16 07:22:01 +08:00
style(login): 优化登录按钮的样式类名处理
使用 cn 工具函数替代手动拼接样式类名,使代码更简洁易读
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user