|
|
@ -29,6 +29,7 @@ import { |
|
|
|
useTheme, |
|
|
|
useTheme, |
|
|
|
useUIPermission, |
|
|
|
useUIPermission, |
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
import { TableType } from 'nocodb-sdk' |
|
|
|
|
|
|
|
|
|
|
|
definePageMeta({ |
|
|
|
definePageMeta({ |
|
|
|
hideHeader: true, |
|
|
|
hideHeader: true, |
|
|
@ -65,6 +66,19 @@ const dataSourcesState = ref<string>('') |
|
|
|
|
|
|
|
|
|
|
|
const dropdownOpen = ref(false) |
|
|
|
const dropdownOpen = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { activeTab } = useTabs() |
|
|
|
|
|
|
|
const { metas } = useMetas() |
|
|
|
|
|
|
|
// const { tables } = useProject() |
|
|
|
|
|
|
|
// const activeTable = computed(() => ([TabType.TABLE, TabType.VIEW].includes(activeTab.value?.type) ? activeTab.value.id : null)) |
|
|
|
|
|
|
|
const meta = computed<TableType | undefined>(() => activeTab.value && metas.value[activeTab.value.id!]) |
|
|
|
|
|
|
|
provide(MetaInj, meta) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Sidebar ref */ |
|
|
|
/** Sidebar ref */ |
|
|
|
const sidebar = ref() |
|
|
|
const sidebar = ref() |
|
|
|
|
|
|
|
|
|
|
@ -585,6 +599,10 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- v-show="isMobileRightSidebarOpen" --> |
|
|
|
|
|
|
|
<!-- meta: {{ JSON.stringify(meta) }} <br /> |
|
|
|
|
|
|
|
isMobileMode: {{ JSON.stringify(isMobileMode) }} <br /> --> |
|
|
|
|
|
|
|
<SmartsheetSidebarMobile v-if="meta && isMobileMode" class="nc-left-sidebar-mobile" /> |
|
|
|
<LazyDashboardTreeView @create-base-dlg="toggleDialog(true, 'dataSources')" /> |
|
|
|
<LazyDashboardTreeView @create-base-dlg="toggleDialog(true, 'dataSources')" /> |
|
|
|
</a-layout-sider> |
|
|
|
</a-layout-sider> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|