|
|
@ -1,15 +1,17 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { inject, useTable } from '#imports' |
|
|
|
import { inject, ref, useTable } from '#imports' |
|
|
|
import { MetaInj } from '~/context' |
|
|
|
import { MetaInj, RightSidebarInj } from '~/context' |
|
|
|
import MdiDeleteIcon from '~icons/mdi/delete-outline' |
|
|
|
import MdiDeleteIcon from '~icons/mdi/delete-outline' |
|
|
|
|
|
|
|
|
|
|
|
const meta = inject(MetaInj) |
|
|
|
const meta = inject(MetaInj) |
|
|
|
|
|
|
|
|
|
|
|
const { deleteTable } = useTable() |
|
|
|
const { deleteTable } = useTable() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const sidebarOpen = inject(RightSidebarInj, ref(true)) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-tooltip placement="left"> |
|
|
|
<a-tooltip :placement="sidebarOpen ? '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"> |
|
|
|