Skip to content

Commit

Permalink
perf: 💄 Optimize the display effect of the quick operation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Jul 25, 2024
1 parent 38f854b commit 7b3c4db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/Quick/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 10 additions & 1 deletion src/plugins/element-plus/expands/EleTooltipButton/index.vue
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -13,6 +17,11 @@ import { ElButton } from 'element-plus'
const props = defineProps({
...ElButton.props,
borderless: {
type: Boolean,
default: false,
},
})
const emit = defineEmits(['click'])
Expand Down

0 comments on commit 7b3c4db

Please sign in to comment.