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';
|
2024-07-08 14:30:19 +00:00
|
|
|
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>
|