fix: 修复tabs已知问题

This commit is contained in:
vben
2024-05-25 22:10:21 +08:00
parent 977d108ca0
commit 352119cc3a
16 changed files with 188 additions and 139 deletions

View File

@@ -0,0 +1,24 @@
<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 './interface';
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>