|
|
@ -1,6 +1,6 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { onKeyUp, useDebounceFn, useMagicKeys, useVModel, whenever } from '@vueuse/core' |
|
|
|
import { onKeyUp, useDebounceFn, useVModel } from '@vueuse/core' |
|
|
|
import { onClickOutside } from '#imports' |
|
|
|
import { iconMap, onClickOutside } from '#imports' |
|
|
|
import type { CommandPaletteType } from '~/lib' |
|
|
|
import type { CommandPaletteType } from '~/lib' |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps<{ |
|
|
|
const props = defineProps<{ |
|
|
@ -12,8 +12,12 @@ const emits = defineEmits(['update:open']) |
|
|
|
|
|
|
|
|
|
|
|
const vOpen = useVModel(props, 'open', emits) |
|
|
|
const vOpen = useVModel(props, 'open', emits) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const search = ref('') |
|
|
|
|
|
|
|
|
|
|
|
const modalEl = ref<HTMLElement>() |
|
|
|
const modalEl = ref<HTMLElement>() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const cmdInputEl = ref<HTMLInputElement>() |
|
|
|
|
|
|
|
|
|
|
|
const { user } = useGlobal() |
|
|
|
const { user } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const viewStore = useViewsStore() |
|
|
|
const viewStore = useViewsStore() |
|
|
@ -22,14 +26,26 @@ const { recentViews, activeView } = storeToRefs(viewStore) |
|
|
|
|
|
|
|
|
|
|
|
const selected: Ref<string> = ref('') |
|
|
|
const selected: Ref<string> = ref('') |
|
|
|
|
|
|
|
|
|
|
|
const newView: Ref< |
|
|
|
const newView = ref< |
|
|
|
| { |
|
|
|
| { |
|
|
|
viewId: string | null |
|
|
|
viewId: string | null |
|
|
|
tableId: string |
|
|
|
tableId: string |
|
|
|
baseId: string |
|
|
|
baseId: string |
|
|
|
} |
|
|
|
} |
|
|
|
| undefined |
|
|
|
| undefined |
|
|
|
> = ref() |
|
|
|
>() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const filteredViews = computed(() => { |
|
|
|
|
|
|
|
if (!recentViews.value) return [] |
|
|
|
|
|
|
|
const filtered = recentViews.value.filter((v) => { |
|
|
|
|
|
|
|
if (search.value === '') return true |
|
|
|
|
|
|
|
return v.viewName.toLowerCase().includes(search.value.toLowerCase()) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
if (filtered[0]) { |
|
|
|
|
|
|
|
selected.value = filtered[0]?.tableID + filtered[0]?.viewName |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return filtered |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const changeView = useDebounceFn( |
|
|
|
const changeView = useDebounceFn( |
|
|
|
async ({ viewId, tableId, baseId }: { viewId: string | null; tableId: string; baseId: string }) => { |
|
|
|
async ({ viewId, tableId, baseId }: { viewId: string | null; tableId: string; baseId: string }) => { |
|
|
@ -39,36 +55,26 @@ const changeView = useDebounceFn( |
|
|
|
200, |
|
|
|
200, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const keys = useMagicKeys() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { current } = keys |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onKeyUp('Enter', async () => { |
|
|
|
onKeyUp('Enter', async () => { |
|
|
|
if (vOpen.value && newView.value) { |
|
|
|
if (vOpen.value && newView.value) { |
|
|
|
|
|
|
|
search.value = '' |
|
|
|
await changeView({ viewId: newView.value.viewId, tableId: newView.value.tableId, baseId: newView.value.baseId }) |
|
|
|
await changeView({ viewId: newView.value.viewId, tableId: newView.value.tableId, baseId: newView.value.baseId }) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
function scrollToTarget() { |
|
|
|
function scrollToTarget() { |
|
|
|
const element = document.querySelector('.cmdk-action.selected') |
|
|
|
const element = document.querySelector('.cmdk-action.selected') |
|
|
|
const headerOffset = 45 |
|
|
|
element?.scrollIntoView() |
|
|
|
const elementPosition = element?.getBoundingClientRect().top |
|
|
|
|
|
|
|
const offsetPosition = elementPosition! + window.pageYOffset - headerOffset |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.scrollTo({ |
|
|
|
|
|
|
|
top: offsetPosition, |
|
|
|
|
|
|
|
behavior: 'smooth', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const moveUp = () => { |
|
|
|
const moveUp = () => { |
|
|
|
if (!recentViews.value.length) return |
|
|
|
if (!filteredViews.value.length) return |
|
|
|
const index = recentViews.value.findIndex((v) => v.tableID + v.viewName === selected.value) |
|
|
|
const index = filteredViews.value.findIndex((v) => v.tableID + v.viewName === selected.value) |
|
|
|
if (index === 0) { |
|
|
|
if (index === 0) { |
|
|
|
selected.value = |
|
|
|
selected.value = |
|
|
|
recentViews.value[recentViews.value.length - 1].tableID + recentViews.value[recentViews.value.length - 1].viewName |
|
|
|
filteredViews.value[filteredViews.value.length - 1].tableID + filteredViews.value[filteredViews.value.length - 1].viewName |
|
|
|
|
|
|
|
|
|
|
|
const cmdOption = recentViews.value[recentViews.value.length - 1] |
|
|
|
const cmdOption = filteredViews.value[filteredViews.value.length - 1] |
|
|
|
newView.value = { |
|
|
|
newView.value = { |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
tableId: cmdOption.tableID, |
|
|
|
tableId: cmdOption.tableID, |
|
|
@ -76,25 +82,25 @@ const moveUp = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
document.querySelector('.actions')?.scrollTo({ top: 99999, behavior: 'smooth' }) |
|
|
|
document.querySelector('.actions')?.scrollTo({ top: 99999, behavior: 'smooth' }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
selected.value = recentViews.value[index - 1].tableID + recentViews.value[index - 1].viewName |
|
|
|
selected.value = filteredViews.value[index - 1].tableID + filteredViews.value[index - 1].viewName |
|
|
|
const cmdOption = recentViews.value[index - 1] |
|
|
|
const cmdOption = filteredViews.value[index - 1] |
|
|
|
scrollToTarget() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newView.value = { |
|
|
|
newView.value = { |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
tableId: cmdOption.tableID, |
|
|
|
tableId: cmdOption.tableID, |
|
|
|
baseId: cmdOption.baseId, |
|
|
|
baseId: cmdOption.baseId, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
nextTick(() => scrollToTarget()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const moveDown = () => { |
|
|
|
const moveDown = () => { |
|
|
|
if (!recentViews.value.length) return |
|
|
|
if (!filteredViews.value.length) return |
|
|
|
const index = recentViews.value.findIndex((v) => v.tableID + v.viewName === selected.value) |
|
|
|
const index = filteredViews.value.findIndex((v) => v.tableID + v.viewName === selected.value) |
|
|
|
if (index === recentViews.value.length - 1) { |
|
|
|
if (index === filteredViews.value.length - 1) { |
|
|
|
selected.value = recentViews.value[0].tableID + recentViews.value[0].viewName |
|
|
|
selected.value = filteredViews.value[0].tableID + filteredViews.value[0].viewName |
|
|
|
|
|
|
|
|
|
|
|
const cmdOption = recentViews.value[0] |
|
|
|
const cmdOption = filteredViews.value[0] |
|
|
|
newView.value = { |
|
|
|
newView.value = { |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
tableId: cmdOption.tableID, |
|
|
|
tableId: cmdOption.tableID, |
|
|
@ -102,91 +108,74 @@ const moveDown = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
document.querySelector('.actions')?.scrollTo({ top: 0, behavior: 'smooth' }) |
|
|
|
document.querySelector('.actions')?.scrollTo({ top: 0, behavior: 'smooth' }) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
selected.value = recentViews.value[index + 1].tableID + recentViews.value[index + 1].viewName |
|
|
|
selected.value = filteredViews.value[index + 1].tableID + filteredViews.value[index + 1].viewName |
|
|
|
const cmdOption = recentViews.value[index + 1] |
|
|
|
const cmdOption = filteredViews.value[index + 1] |
|
|
|
|
|
|
|
|
|
|
|
scrollToTarget() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newView.value = { |
|
|
|
newView.value = { |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
viewId: cmdOption.viewId ?? null, |
|
|
|
tableId: cmdOption.tableID, |
|
|
|
tableId: cmdOption.tableID, |
|
|
|
baseId: cmdOption.baseId, |
|
|
|
baseId: cmdOption.baseId, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
nextTick(() => scrollToTarget()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
whenever(keys['Ctrl+Shift+L'], async () => { |
|
|
|
|
|
|
|
if (!user.value) return |
|
|
|
|
|
|
|
vOpen.value = true |
|
|
|
|
|
|
|
moveUp() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys['Meta+Shift+L'], async () => { |
|
|
|
|
|
|
|
if (!user.value) return |
|
|
|
|
|
|
|
vOpen.value = true |
|
|
|
|
|
|
|
moveUp() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.ctrl_l, async () => { |
|
|
|
|
|
|
|
if (!user.value) return |
|
|
|
|
|
|
|
if (current.has('shift')) return |
|
|
|
|
|
|
|
vOpen.value = true |
|
|
|
|
|
|
|
moveDown() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.meta_l, async () => { |
|
|
|
|
|
|
|
if (!user.value) return |
|
|
|
|
|
|
|
if (current.has('shift')) return |
|
|
|
|
|
|
|
vOpen.value = true |
|
|
|
|
|
|
|
moveDown() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.arrowup, () => { |
|
|
|
|
|
|
|
if (vOpen.value) moveUp() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.arrowdown, () => { |
|
|
|
|
|
|
|
if (vOpen.value) moveDown() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const hide = () => { |
|
|
|
const hide = () => { |
|
|
|
vOpen.value = false |
|
|
|
vOpen.value = false |
|
|
|
|
|
|
|
search.value = '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.Escape, () => { |
|
|
|
onClickOutside(modalEl, () => { |
|
|
|
if (vOpen.value) hide() |
|
|
|
hide() |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.ctrl_k, () => { |
|
|
|
|
|
|
|
if (vOpen.value) hide() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.meta_k, () => { |
|
|
|
|
|
|
|
if (vOpen.value) hide() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.ctrl_j, () => { |
|
|
|
|
|
|
|
if (vOpen.value) hide() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
whenever(keys.meta_j, () => { |
|
|
|
|
|
|
|
if (vOpen.value) hide() |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onClickOutside(modalEl, () => { |
|
|
|
useEventListener('keydown', (e: KeyboardEvent) => { |
|
|
|
if (vOpen.value) hide() |
|
|
|
if (e.key === 'Escape') { |
|
|
|
|
|
|
|
hide() |
|
|
|
|
|
|
|
} else if (e.key === 'Enter') { |
|
|
|
|
|
|
|
if (newView.value) { |
|
|
|
|
|
|
|
changeView({ viewId: newView.value.viewId, tableId: newView.value.tableId, baseId: newView.value.baseId }) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (e.key === 'ArrowUp') { |
|
|
|
|
|
|
|
if (!vOpen.value) return |
|
|
|
|
|
|
|
e.preventDefault() |
|
|
|
|
|
|
|
moveUp() |
|
|
|
|
|
|
|
} else if (e.key === 'ArrowDown') { |
|
|
|
|
|
|
|
if (!vOpen.value) return |
|
|
|
|
|
|
|
e.preventDefault() |
|
|
|
|
|
|
|
moveDown() |
|
|
|
|
|
|
|
} else if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.key.toLowerCase() === 'l') { |
|
|
|
|
|
|
|
if (!user.value) return |
|
|
|
|
|
|
|
if (!vOpen.value) { |
|
|
|
|
|
|
|
vOpen.value = true |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
moveUp() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === 'l') { |
|
|
|
|
|
|
|
if (!user.value) return |
|
|
|
|
|
|
|
if (!vOpen.value) { |
|
|
|
|
|
|
|
vOpen.value = true |
|
|
|
|
|
|
|
} else moveDown() |
|
|
|
|
|
|
|
} else if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'k') { |
|
|
|
|
|
|
|
hide() |
|
|
|
|
|
|
|
} else if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'j') { |
|
|
|
|
|
|
|
hide() |
|
|
|
|
|
|
|
} else if (vOpen.value) { |
|
|
|
|
|
|
|
cmdInputEl.value?.focus() |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
onMounted(() => { |
|
|
|
document.querySelector('.cmdOpt-list')?.focus() |
|
|
|
document.querySelector('.cmdOpt-list')?.focus() |
|
|
|
if (!activeView.value) return |
|
|
|
if (!activeView.value || !filteredViews.value.length) return |
|
|
|
const index = recentViews.value.findIndex( |
|
|
|
const index = filteredViews.value.findIndex( |
|
|
|
(v) => v.viewName === activeView.value?.name && v.tableID === activeView.value?.tableId, |
|
|
|
(v) => v.viewName === activeView.value?.title && v.tableID === activeView.value?.fk_model_id, |
|
|
|
) |
|
|
|
) |
|
|
|
if (index + 1 > recentViews.value.length) { |
|
|
|
if (index + 1 > filteredViews.value.length) { |
|
|
|
selected.value = recentViews.value[0].tableID + recentViews.value[0].viewName |
|
|
|
selected.value = filteredViews.value[0].tableID + filteredViews.value[0].viewName |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
selected.value = recentViews.value[index + 1].tableID + recentViews.value[index + 1].viewName |
|
|
|
if (!filteredViews.value[index + 1]) return |
|
|
|
|
|
|
|
selected.value = filteredViews.value[index + 1].tableID + filteredViews.value[index + 1].viewName |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -194,45 +183,64 @@ onMounted(() => { |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div v-if="vOpen" class="cmdk-modal cmdl-modal" :class="{ 'cmdk-modal-active cmdl-modal-active': vOpen }"> |
|
|
|
<div v-if="vOpen" class="cmdk-modal cmdl-modal" :class="{ 'cmdk-modal-active cmdl-modal-active': vOpen }"> |
|
|
|
<div ref="modalEl" class="cmdk-modal-content cmdl-modal-content relative h-[25.25rem]"> |
|
|
|
<div ref="modalEl" class="cmdk-modal-content cmdl-modal-content relative h-[25.25rem]"> |
|
|
|
|
|
|
|
<div class="cmdk-input-wrapper"> |
|
|
|
|
|
|
|
<GeneralIcon class="h-4 w-4 text-gray-500" icon="search" /> |
|
|
|
|
|
|
|
<input ref="cmdInputEl" v-model="search" class="cmdk-input" placeholder="Search" type="text" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="flex items-center bg-white w-full z-[50]"> |
|
|
|
<div class="flex items-center bg-white w-full z-[50]"> |
|
|
|
<div class="text-sm p-4 text-gray-500">Recent Views</div> |
|
|
|
<div class="text-sm px-4 py-2 text-gray-500">Recent Views</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex flex-col shrink grow overflow-hidden shadow-[rgb(0_0_0_/_50%)_0px_16px_70px] max-w-[650px] p-0"> |
|
|
|
<div class="flex flex-col shrink grow overflow-hidden shadow-[rgb(0_0_0_/_50%)_0px_16px_70px] max-w-[650px] p-0"> |
|
|
|
<div class="scroll-smooth actions overflow-auto nc-scrollbar-md relative m-0 px-0 py-2"> |
|
|
|
<div class="scroll-smooth actions overflow-auto nc-scrollbar-md mb-10 relative mx-0 px-0 py-2"> |
|
|
|
<div v-if="recentViews.length < 1" class="flex flex-col p-4 items-start justify-center text-md">No recent views</div> |
|
|
|
<div v-if="filteredViews.length < 1" class="flex flex-col p-4 items-start justify-center text-md">No recent views</div> |
|
|
|
<div v-else class="flex mb-10 flex-col cmdOpt-list w-full"> |
|
|
|
<div v-else class="flex flex-col cmdOpt-list w-full"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-for="cmdOption of recentViews" |
|
|
|
v-for="cmdOption of filteredViews" |
|
|
|
:key="cmdOption.tableID + cmdOption.viewName" |
|
|
|
:key="cmdOption.tableID + cmdOption.viewName" |
|
|
|
v-e="['a:cmdL:changeView']" |
|
|
|
v-e="['a:cmdL:changeView']" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
selected: selected === cmdOption.tableID + cmdOption.viewName, |
|
|
|
selected: selected === cmdOption.tableID + cmdOption.viewName, |
|
|
|
}" |
|
|
|
}" |
|
|
|
class="cmdk-action" |
|
|
|
class="cmdk-action" |
|
|
|
@click="changeView({ viewId: cmdOption.viewId, tableId: cmdOption.tableID, baseId: cmdOption.baseId })" |
|
|
|
@click="changeView({ viewId: cmdOption.viewId!, tableId: cmdOption.tableID, baseId: cmdOption.baseId })" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="cmdk-action-content !flex w-full"> |
|
|
|
<div class="cmdk-action-content"> |
|
|
|
<div class="flex gap-2 w-full flex-grow-1 items-center"> |
|
|
|
<div class="flex w-1/2 items-center"> |
|
|
|
<GeneralViewIcon :meta="{ type: cmdOption.viewType }" /> |
|
|
|
<div class="flex gap-2"> |
|
|
|
<a-tooltip overlay-class-name="!px-2 !py-1 !rounded-lg"> |
|
|
|
<GeneralViewIcon :meta="{ type: cmdOption.viewType }" class="mt-0.5" /> |
|
|
|
<template #title> |
|
|
|
<a-tooltip overlay-class-name="!px-2 !py-1 !rounded-lg"> |
|
|
|
{{ cmdOption.isDefault ? $t('title.defaultView') : cmdOption.viewName }} |
|
|
|
<template #title> |
|
|
|
</template> |
|
|
|
{{ cmdOption.viewName }} |
|
|
|
<span class="max-w- truncate capitalize"> |
|
|
|
</template> |
|
|
|
{{ cmdOption.isDefault ? $t('title.defaultView') : cmdOption.viewName }} |
|
|
|
<span class="truncate max-w-56 capitalize"> |
|
|
|
</span> |
|
|
|
{{ cmdOption.viewName }} |
|
|
|
</a-tooltip> |
|
|
|
</span> |
|
|
|
|
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex gap-2 bg-gray-100 px-2 py-1 rounded-md text-gray-600 items-center"> |
|
|
|
<div class="flex w-1/2 justify-end text-gray-600"> |
|
|
|
<component :is="iconMap.project" class="w-4 h-4 text-transparent" /> |
|
|
|
<div class="flex gap-2 px-2 py-1 rounded-md items-center"> |
|
|
|
<a-tooltip overlay-class-name="!px-2 !py-1 !rounded-lg"> |
|
|
|
<component :is="iconMap.projectGray" class="w-3 h-3 text-transparent" /> |
|
|
|
<template #title> |
|
|
|
<a-tooltip overlay-class-name="!px-2 !py-1 !rounded-lg"> |
|
|
|
{{ cmdOption.baseName }} |
|
|
|
<template #title> |
|
|
|
</template> |
|
|
|
{{ cmdOption.baseName }} |
|
|
|
<span class="max-w-32 truncate capitalize"> |
|
|
|
</template> |
|
|
|
{{ cmdOption.baseName }} |
|
|
|
<span class="max-w-32 text-xs truncate capitalize"> |
|
|
|
</span> |
|
|
|
{{ cmdOption.baseName }} |
|
|
|
</a-tooltip> |
|
|
|
</span> |
|
|
|
|
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
<span class="text-bold"> / </span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<component :is="iconMap.table" class="w-3 h-3 text-transparent" /> |
|
|
|
|
|
|
|
<a-tooltip overlay-class-name="!px-2 !py-1 !rounded-lg"> |
|
|
|
|
|
|
|
<template #title> |
|
|
|
|
|
|
|
{{ cmdOption.tableName }} |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<span class="max-w-28 text-xs truncate capitalize"> |
|
|
|
|
|
|
|
{{ cmdOption.tableName }} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|