mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
905 B
30 lines
905 B
<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 bg-white border-1 rounded-md p-2 border-gray-200 z-50 nc-erd-histogram cursor-pointer hover:bg-gray-100 shadow-md" |
|
: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>
|
|
|