优化按钮组件逻辑.

This commit is contained in:
lijiahang
2024-09-29 10:20:45 +08:00
parent ef57040e1d
commit 3b1d6ab8a4
24 changed files with 417 additions and 275 deletions

View File

@@ -17,7 +17,7 @@
<template #leftHandle>
<!-- 角色授权 -->
<a-button v-permission="['asset:host-key:grant']"
class="card-header-icon-wrapper"
class="card-header-button"
@click="$router.push({ name: GrantRouteName, query: { key: GrantKey.HOST_KEY_ROLE }})">
角色授权
<template #icon>
@@ -26,7 +26,7 @@
</a-button>
<!-- 用户授权 -->
<a-button v-permission="['asset:host-key:grant']"
class="card-header-icon-wrapper"
class="card-header-button"
@click="$router.push({ name: GrantRouteName, query: { key: GrantKey.HOST_KEY_USER }})">
用户授权
<template #icon>
@@ -42,7 +42,7 @@
<template #extra="{ record }">
<a-space>
<!-- 更多操作 -->
<a-dropdown trigger="hover">
<a-dropdown trigger="hover" :popup-max-height="false">
<icon-more class="card-extra-icon" />
<template #content>
<!-- 详情 -->