mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: bug fix
This commit is contained in:
@@ -122,7 +122,7 @@ body {
|
||||
height: 24px !important;
|
||||
width: 24px !important;
|
||||
font-size: 16px !important;
|
||||
border-radius: 4px;
|
||||
border-radius: 6px;
|
||||
color: #646a73 !important;
|
||||
|
||||
&[aria-expanded='true'] {
|
||||
|
||||
@@ -46,7 +46,12 @@ const doDeleteComponent = (e: MouseEvent) => {
|
||||
<template>
|
||||
<div class="component-bar-main" :class="{ 'bar-hidden': !active }">
|
||||
<div>
|
||||
<el-dropdown ref="curDropdown" trigger="click" placement="bottom-end">
|
||||
<el-dropdown
|
||||
popper-class="bar-main_popper"
|
||||
ref="curDropdown"
|
||||
trigger="click"
|
||||
placement="bottom-end"
|
||||
>
|
||||
<el-icon class="bar-more">
|
||||
<el-tooltip :content="t('dashboard.more')" placement="bottom">
|
||||
<icon name="icon_more_outlined"><icon_more_outlined class="svg-icon" /></icon>
|
||||
@@ -106,3 +111,50 @@ const doDeleteComponent = (e: MouseEvent) => {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="less">
|
||||
.bar-main_popper {
|
||||
box-shadow: 0px 4px 8px 0px #1f23291a !important;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #dee0e3 !important;
|
||||
width: 120px !important;
|
||||
min-width: 120px !important;
|
||||
padding: 0 !important;
|
||||
|
||||
.handle-icon {
|
||||
color: #646a73;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.ed-dropdown-menu__item--divided {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.ed-dropdown-menu__item {
|
||||
position: relative;
|
||||
padding-left: 12px;
|
||||
background: none;
|
||||
color: #1f2329;
|
||||
|
||||
&:focus {
|
||||
background: none;
|
||||
color: #1f2329;
|
||||
}
|
||||
&:hover {
|
||||
background: none;
|
||||
color: #1f2329;
|
||||
&::after {
|
||||
content: '';
|
||||
width: 112px;
|
||||
height: 32px;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #1f23291a;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script lang="ts" setup>
|
||||
import { Icon } from '@/components/icon-custom'
|
||||
import icon_more_outlined from '@/assets/svg/icon_more_outlined.svg'
|
||||
import type { Placement } from 'element-plus-secondary'
|
||||
|
||||
@@ -43,18 +42,14 @@ const emit = defineEmits(['handleCommand'])
|
||||
@command="handleCommand"
|
||||
>
|
||||
<el-icon class="hover-icon" :class="inTable && 'hover-icon-in-table'" @click.stop>
|
||||
<Icon>
|
||||
<component :is="iconName || icon_more_outlined" class="svg-icon"></component>
|
||||
</Icon>
|
||||
<component :is="iconName || icon_more_outlined" class="svg-icon"></component>
|
||||
</el-icon>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu :persistent="false">
|
||||
<template v-for="ele in menuList" :key="ele">
|
||||
<el-dropdown-item :divided="ele.divided" :command="ele.command" :disabled="ele.disabled">
|
||||
<el-icon v-if="ele.svgName" class="handle-icon" :style="{ fontSize: iconSize }">
|
||||
<Icon>
|
||||
<component :is="ele.svgName" class="svg-icon"></component>
|
||||
</Icon>
|
||||
<component :is="ele.svgName"></component>
|
||||
</el-icon>
|
||||
{{ ele.label }}
|
||||
</el-dropdown-item>
|
||||
@@ -66,10 +61,47 @@ const emit = defineEmits(['handleCommand'])
|
||||
|
||||
<style lang="less">
|
||||
.menu-more_popper {
|
||||
margin-top: -2px !important;
|
||||
box-shadow: 0px 4px 8px 0px #1f23291a !important;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #dee0e3 !important;
|
||||
width: 120px !important;
|
||||
min-width: 120px !important;
|
||||
padding: 0 !important;
|
||||
|
||||
.handle-icon {
|
||||
color: #646a73;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.ed-dropdown-menu__item--divided {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.ed-dropdown-menu__item {
|
||||
position: relative;
|
||||
padding-left: 12px;
|
||||
background: none;
|
||||
color: #1f2329;
|
||||
&:focus {
|
||||
background: none;
|
||||
color: #1f2329;
|
||||
}
|
||||
&:hover {
|
||||
background: none;
|
||||
color: #1f2329;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
width: 112px;
|
||||
height: 32px;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #1f23291a;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -438,7 +438,7 @@ defineExpose({
|
||||
<HandleMore
|
||||
:menu-list="state.menuList"
|
||||
:icon-name="icon_more_outlined"
|
||||
placement="bottom-start"
|
||||
placement="bottom-end"
|
||||
@handle-command="(opt: string) => operation(opt, data)"
|
||||
></HandleMore>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user