mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-02-17 10:58:38 +01:00
perf: 💄 Optimize the display effect of the quick operation bar
This commit is contained in:
parent
38f854b6db
commit
7b3c4db83a
@ -16,9 +16,11 @@
|
||||
<template #default="{ ...slotProps } = {}">
|
||||
<EleTooltipButton
|
||||
v-bind="{
|
||||
text: true,
|
||||
type: 'default',
|
||||
content: $t(item.tips || item.label),
|
||||
circle: true,
|
||||
plain: true,
|
||||
borderless: true,
|
||||
size: 'small',
|
||||
effect: 'light',
|
||||
...slotProps,
|
||||
|
@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<el-tooltip>
|
||||
<ElButton v-bind="{ ...$props }" @click="emit('click', $event)">
|
||||
<ElButton
|
||||
v-bind="{ ...$props }"
|
||||
:class="{ '!border-none': borderless }"
|
||||
@click="emit('click', $event)"
|
||||
>
|
||||
<slot name="icon"></slot>
|
||||
<slot></slot>
|
||||
</ElButton>
|
||||
@ -13,6 +17,11 @@ import { ElButton } from 'element-plus'
|
||||
|
||||
const props = defineProps({
|
||||
...ElButton.props,
|
||||
|
||||
borderless: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
})
|
||||
|
||||
const emit = defineEmits(['click'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user