chore: init project
This commit is contained in:
32
packages/business/layouts/src/basic/tabs/tabs.vue
Normal file
32
packages/business/layouts/src/basic/tabs/tabs.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<script lang="ts" setup>
|
||||
import { TabsView } from '@vben-core/tabs-ui';
|
||||
|
||||
import { useTabs } from './use-tabs';
|
||||
|
||||
defineOptions({
|
||||
name: 'LayoutTabs',
|
||||
});
|
||||
|
||||
defineProps<{ showIcon?: boolean }>();
|
||||
|
||||
const {
|
||||
createContextMenus,
|
||||
currentActive,
|
||||
currentTabs,
|
||||
handleClick,
|
||||
handleClose,
|
||||
handleUnPushPin,
|
||||
} = useTabs();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<TabsView
|
||||
:show-icon="showIcon"
|
||||
:tabs="currentTabs"
|
||||
:menus="createContextMenus"
|
||||
:active="currentActive"
|
||||
@update:active="handleClick"
|
||||
@close="handleClose"
|
||||
@un-push-pin="handleUnPushPin"
|
||||
/>
|
||||
</template>
|
Reference in New Issue
Block a user