|
|
@ -1,16 +1,15 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { inject, ref, useTable } from '#imports' |
|
|
|
import { MetaInj, inject, useTable } from '#imports' |
|
|
|
import { MetaInj, RightSidebarInj } from '~/context' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const meta = inject(MetaInj)! |
|
|
|
const meta = inject(MetaInj)! |
|
|
|
|
|
|
|
|
|
|
|
const { deleteTable } = useTable() |
|
|
|
const { deleteTable } = useTable() |
|
|
|
|
|
|
|
|
|
|
|
const sidebarOpen = inject(RightSidebarInj, ref(true)) |
|
|
|
const { isOpen } = useSidebar({ storageKey: 'nc-right-sidebar' }) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-tooltip :placement="sidebarOpen ? 'bottomRight' : 'left'"> |
|
|
|
<a-tooltip :placement="isOpen ? 'bottomRight' : 'left'"> |
|
|
|
<template #title> {{ $t('activity.deleteTable') }} </template> |
|
|
|
<template #title> {{ $t('activity.deleteTable') }} </template> |
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-sidebar-right-item hover:after:bg-red-500 group"> |
|
|
|
<div class="nc-sidebar-right-item hover:after:bg-red-500 group"> |
|
|
|