style: 💄 Update styles

This commit is contained in:
viarotel 2024-07-26 13:38:31 +08:00
parent 792525a492
commit 8bae34d2b3
2 changed files with 6 additions and 2 deletions

View File

@ -19,10 +19,10 @@
type: 'default',
content: $t(item.tips || item.label),
circle: true,
plain: true,
borderless: true,
size: 'small',
effect: 'light',
buttonClass: '!active:bg-primary-500 !active:text-white',
...slotProps,
}"
>

View File

@ -2,7 +2,7 @@
<el-tooltip>
<ElButton
v-bind="{ ...$props }"
:class="{ '!border-none': borderless }"
:class="[{ '!border-none': borderless }, buttonClass]"
@click="emit('click', $event)"
>
<slot name="icon"></slot>
@ -22,6 +22,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
buttonClass: {
type: [String, Array, Object],
default: '',
},
})
const emit = defineEmits(['click'])