| | |
| | | <FullscreenExitOutlined @click="toggle" v-else /> |
| | | </Tooltip> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { defineComponent } from 'vue'; |
| | | <script lang="ts" setup> |
| | | import { Tooltip } from 'ant-design-vue'; |
| | | import { FullscreenOutlined, FullscreenExitOutlined } from '@ant-design/icons-vue'; |
| | | import { useFullscreen } from '@vueuse/core'; |
| | | import { useI18n } from '/@/hooks/web/useI18n'; |
| | | import { useI18n } from '@/hooks/web/useI18n'; |
| | | import { useTableContext } from '../../hooks/useTableContext'; |
| | | |
| | | export default defineComponent({ |
| | | name: 'FullScreenSetting', |
| | | components: { |
| | | FullscreenExitOutlined, |
| | | FullscreenOutlined, |
| | | Tooltip, |
| | | }, |
| | | defineOptions({ name: 'FullScreenSetting' }); |
| | | |
| | | setup() { |
| | | const table = useTableContext(); |
| | | const { t } = useI18n(); |
| | | const { toggle, isFullscreen } = useFullscreen(table.wrapRef); |
| | | |
| | | return { |
| | | toggle, |
| | | isFullscreen, |
| | | t, |
| | | }; |
| | | }, |
| | | }); |
| | | const table = useTableContext(); |
| | | const { t } = useI18n(); |
| | | const { toggle, isFullscreen } = useFullscreen(table.wrapRef); |
| | | </script> |