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

View File

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