修改订单管理
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m28s

This commit is contained in:
sexygoat
2026-02-28 16:49:28 +08:00
parent ce1032c7f9
commit 7b459b5c8d
6 changed files with 219 additions and 21 deletions

View File

@@ -4,7 +4,13 @@
<Transition name="context-menu" @before-enter="onBeforeEnter" @after-leave="onAfterLeave">
<div v-show="visible" :style="menuStyle" class="context-menu">
<ul class="menu-list" :style="menuListStyle">
<template v-for="item in menuItems" :key="item.key">
<!-- 无权限提示 -->
<li v-if="menuItems.length === 0" class="menu-item no-permission" :style="menuItemStyle">
<span class="menu-label">您暂无更多权限</span>
</li>
<!-- 菜单项 -->
<template v-else v-for="item in menuItems" :key="item.key">
<!-- 普通菜单项 -->
<li
v-if="!item.children"
@@ -249,10 +255,23 @@
user-select: none;
transition: background-color 0.15s ease;
&:hover:not(.is-disabled) {
&:hover:not(.is-disabled):not(.no-permission) {
background-color: rgba(var(--art-gray-200-rgb), 0.7);
}
&.no-permission {
justify-content: center;
color: var(--el-text-color-secondary);
cursor: default;
.menu-label {
color: var(--el-text-color-secondary);
text-align: center;
white-space: normal;
word-break: break-all;
}
}
&.has-line {
margin-bottom: 10px;