mirror of
https://github.com/enso-org/enso.git
synced 2024-12-19 04:01:46 +03:00
16 lines
323 B
Vue
16 lines
323 B
Vue
|
<script setup lang="ts">
|
||
|
import { ref } from 'vue'
|
||
|
|
||
|
import { useNavigator } from '@/util/navigator'
|
||
|
|
||
|
const viewportNode = ref<HTMLElement>()
|
||
|
|
||
|
const navigator = useNavigator(viewportNode)
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div ref="viewportNode" class="NavigatorWrapper">
|
||
|
<slot :navigator="navigator"></slot>
|
||
|
</div>
|
||
|
</template>
|