mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-09 08:57:14 +08:00
style: 优化树列表更多按钮样式(PR by 番茄大佬)
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
</template>
|
||||
<template #extra="node">
|
||||
<a-trigger trigger="click" align-point animation-name="slide-dynamic-origin" auto-fit-transform-origin position="bl" scroll-to-close>
|
||||
<icon-more-vertical v-if="has.hasPermOr(['system:dict:update', 'system:dict:delete'])" class="action" />
|
||||
<icon-more v-if="has.hasPermOr(['system:dict:update', 'system:dict:delete'])" class="action" />
|
||||
<template #content>
|
||||
<RightMenu :data="node" @on-menu-item-click="onMenuItemClick" />
|
||||
</template>
|
||||
@@ -156,6 +156,14 @@ onMounted(() => {
|
||||
margin: 5px 0;
|
||||
.action {
|
||||
opacity: 0;
|
||||
margin-right: 8px;
|
||||
padding: 4px;
|
||||
transition: all 0.25s;
|
||||
border-radius: 8px;
|
||||
|
||||
&:hover{
|
||||
background-color: var(--color-bg-1);
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
background-color: var(--color-secondary-hover);
|
||||
|
@@ -30,7 +30,7 @@
|
||||
</template>
|
||||
<template #extra="node">
|
||||
<a-trigger trigger="click" align-point animation-name="slide-dynamic-origin" auto-fit-transform-origin position="bl" scroll-to-close>
|
||||
<icon-more-vertical v-if="has.hasPermOr(['system:role:update', 'system:role:delete'])" class="action" />
|
||||
<icon-more v-if="has.hasPermOr(['system:role:update', 'system:role:delete'])" class="action" />
|
||||
<template #content>
|
||||
<RightMenu :data="node" @on-menu-item-click="onMenuItemClick" />
|
||||
</template>
|
||||
@@ -156,6 +156,14 @@ onMounted(() => {
|
||||
margin: 5px 0;
|
||||
.action {
|
||||
opacity: 0;
|
||||
margin-right: 8px;
|
||||
padding: 4px;
|
||||
transition: all 0.25s;
|
||||
border-radius: 8px;
|
||||
|
||||
&:hover{
|
||||
background-color: var(--color-bg-1);
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
background-color: var(--color-secondary-hover);
|
||||
|
Reference in New Issue
Block a user