mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 12:06:55 +00:00
* chore: sync various Signed-off-by: mertmit <mertmit99@gmail.com> * test: ws scope Signed-off-by: mertmit <mertmit99@gmail.com> * fix(nc-gui): ncSubmenu right icon visibility issue * fix(nc-gui): use viewTypeAlias in all the places --------- Signed-off-by: mertmit <mertmit99@gmail.com> Co-authored-by: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com>
35 lines
1.0 KiB
Vue
35 lines
1.0 KiB
Vue
<script lang="ts" setup>
|
|
import { Panel, PanelPosition } from '@vue-flow/additional-components'
|
|
import type { ERDConfig } from './utils'
|
|
import MiFullscreen from '~icons/material-symbols/fullscreen'
|
|
import MiFullscreenExit from '~icons/material-symbols/fullscreen-exit'
|
|
|
|
const props = defineProps<{
|
|
config: ERDConfig
|
|
}>()
|
|
|
|
const emit = defineEmits(['toggleFullScreen'])
|
|
|
|
const { config } = toRefs(props)
|
|
|
|
const toggleFullScreen = () => {
|
|
emit('toggleFullScreen')
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<Panel
|
|
class="text-xs rounded-md p-2 z-50 nc-erd-histogram cursor-pointer shadow-md transition-colors"
|
|
:class="{
|
|
'text-white bg-brand-500 md:(hover:bg-brand-600)': config.isFullScreen,
|
|
'border-1 border-gray-200 bg-white hover:bg-gray-100': !config.isFullScreen,
|
|
}"
|
|
:position="PanelPosition.BottomRight"
|
|
>
|
|
<div class="flex">
|
|
<MiFullscreenExit v-if="config.isFullScreen" class="h-5 w-5" @click="toggleFullScreen" />
|
|
<MiFullscreen v-else class="h-5 w-5" @click="toggleFullScreen" />
|
|
</div>
|
|
</Panel>
|
|
</template>
|