mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-24 07:30:15 +01:00
style: 💄 Update styles
This commit is contained in:
parent
792525a492
commit
8bae34d2b3
@ -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,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user