chore: update uikit -> ui-kit
This commit is contained in:
2
packages/@core/ui-kit/tabs-ui/src/widgets/index.ts
Normal file
2
packages/@core/ui-kit/tabs-ui/src/widgets/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default as TabsToolMore } from './tool-more.vue';
|
||||
export { default as TabsToolScreen } from './tool-screen.vue';
|
18
packages/@core/ui-kit/tabs-ui/src/widgets/tool-more.vue
Normal file
18
packages/@core/ui-kit/tabs-ui/src/widgets/tool-more.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script lang="ts" setup>
|
||||
import type { DropdownMenuProps } from '@vben-core/shadcn-ui';
|
||||
|
||||
import { IcRoundMoreVert } from '@vben-core/iconify';
|
||||
import { VbenDropdownMenu } from '@vben-core/shadcn-ui';
|
||||
|
||||
defineProps<DropdownMenuProps>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VbenDropdownMenu :menus="menus">
|
||||
<div
|
||||
class="flex-center hover:bg-accent hover:text-foreground text-muted-foreground border-border h-full cursor-pointer border-l px-2 text-lg font-semibold"
|
||||
>
|
||||
<IcRoundMoreVert />
|
||||
</div>
|
||||
</VbenDropdownMenu>
|
||||
</template>
|
19
packages/@core/ui-kit/tabs-ui/src/widgets/tool-screen.vue
Normal file
19
packages/@core/ui-kit/tabs-ui/src/widgets/tool-screen.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script lang="ts" setup>
|
||||
import { IcRoundFitScreen, IcTwotoneFitScreen } from '@vben-core/iconify';
|
||||
|
||||
const screen = defineModel<boolean>('screen');
|
||||
|
||||
function toggleScreen() {
|
||||
screen.value = !screen.value;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="flex-center hover:bg-accent hover:text-foreground text-muted-foreground border-border h-full cursor-pointer border-l px-2 text-lg font-semibold"
|
||||
@click="toggleScreen"
|
||||
>
|
||||
<IcTwotoneFitScreen v-if="screen" />
|
||||
<IcRoundFitScreen v-else />
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user