|
|
@ -5,7 +5,6 @@ import GithubButton from 'vue-github-button' |
|
|
|
import { |
|
|
|
import { |
|
|
|
Empty, |
|
|
|
Empty, |
|
|
|
computed, |
|
|
|
computed, |
|
|
|
inject, |
|
|
|
|
|
|
|
reactive, |
|
|
|
reactive, |
|
|
|
ref, |
|
|
|
ref, |
|
|
|
resolveComponent, |
|
|
|
resolveComponent, |
|
|
@ -36,8 +35,6 @@ const { isUIAllowed } = useUIPermission() |
|
|
|
|
|
|
|
|
|
|
|
const [searchActive, toggleSearchActive] = useToggle() |
|
|
|
const [searchActive, toggleSearchActive] = useToggle() |
|
|
|
|
|
|
|
|
|
|
|
const isLocked = inject('TreeViewIsLockedInj') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let key = $ref(0) |
|
|
|
let key = $ref(0) |
|
|
|
|
|
|
|
|
|
|
|
const menuRef = $ref<HTMLLIElement>() |
|
|
|
const menuRef = $ref<HTMLLIElement>() |
|
|
@ -349,7 +346,7 @@ function openTableCreateDialog() { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<a-dropdown |
|
|
|
<a-dropdown |
|
|
|
v-if="!isSharedBase && !isLocked && (isUIAllowed('table-rename') || isUIAllowed('table-delete'))" |
|
|
|
v-if="!isSharedBase && (isUIAllowed('table-rename') || isUIAllowed('table-delete'))" |
|
|
|
:trigger="['click']" |
|
|
|
:trigger="['click']" |
|
|
|
@click.stop |
|
|
|
@click.stop |
|
|
|
> |
|
|
|
> |
|
|
@ -383,7 +380,7 @@ function openTableCreateDialog() { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="!isLocked && !isSharedBase" #overlay> |
|
|
|
<template v-if="!isSharedBase" #overlay> |
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
<a-menu class="!py-0 rounded text-sm"> |
|
|
|
<template v-if="contextMenuTarget.type === 'table'"> |
|
|
|
<template v-if="contextMenuTarget.type === 'table'"> |
|
|
|
<a-menu-item v-if="isUIAllowed('table-rename')" @click="openRenameTableDialog(contextMenuTarget.value, true)"> |
|
|
|
<a-menu-item v-if="isUIAllowed('table-rename')" @click="openRenameTableDialog(contextMenuTarget.value, true)"> |
|
|
|