|
|
@ -6,7 +6,7 @@ import { notification } from 'ant-design-vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import Sortable from 'sortablejs' |
|
|
|
import Sortable from 'sortablejs' |
|
|
|
import RenameableMenuItem from './RenameableMenuItem.vue' |
|
|
|
import RenameableMenuItem from './RenameableMenuItem.vue' |
|
|
|
import { inject, onMounted, ref, useApi, useRouter, watch } from '#imports' |
|
|
|
import { inject, onMounted, ref, useApi, useRoute, useRouter, watch } from '#imports' |
|
|
|
import { extractSdkResponseErrorMsg } from '~/utils' |
|
|
|
import { extractSdkResponseErrorMsg } from '~/utils' |
|
|
|
import { ActiveViewInj, ViewListInj } from '~/context' |
|
|
|
import { ActiveViewInj, ViewListInj } from '~/context' |
|
|
|
|
|
|
|
|
|
|
@ -26,6 +26,8 @@ const { api } = useApi() |
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
const router = useRouter() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
|
|
|
|
/** Selected view(s) for menu */ |
|
|
|
/** Selected view(s) for menu */ |
|
|
|
const selected = ref<string[]>([]) |
|
|
|
const selected = ref<string[]>([]) |
|
|
|
|
|
|
|
|
|
|
@ -192,7 +194,7 @@ function onDeleted() { |
|
|
|
:key="view.id" |
|
|
|
:key="view.id" |
|
|
|
:view="view" |
|
|
|
:view="view" |
|
|
|
class="transition-all ease-in duration-300" |
|
|
|
class="transition-all ease-in duration-300" |
|
|
|
:class="[isMarked === view.id ? 'bg-gray-200' : '']" |
|
|
|
:class="[isMarked === view.id ? 'bg-gray-200' : '', route.params.viewTitle.includes(view.title) ? 'bg-blue-500/15' : '']" |
|
|
|
@change-view="changeView" |
|
|
|
@change-view="changeView" |
|
|
|
@open-modal="$emit('openModal', $event)" |
|
|
|
@open-modal="$emit('openModal', $event)" |
|
|
|
@delete="onDelete" |
|
|
|
@delete="onDelete" |
|
|
|