admin-vben/packages/@core/ui-kit/tabs-ui/src/tabs-view.vue

25 lines
545 B
Vue
Raw Normal View History

2024-05-25 14:10:21 +00:00
<script setup lang="ts">
import type { TabItem } from '@vben-core/typings';
import { useForwardPropsEmits } from '@vben-core/shadcn-ui';
import { ChromeTabs } from './components';
import { TabsProps } from './types';
2024-05-25 14:10:21 +00:00
interface Props extends TabsProps {}
defineOptions({
name: 'TabsView',
});
const props = withDefaults(defineProps<Props>(), {});
const emit = defineEmits<{ close: [string]; unPushPin: [TabItem] }>();
const forward = useForwardPropsEmits(props, emit);
</script>
<template>
<ChromeTabs v-bind="forward" />
</template>