Fix colors, replace Dropdown with Select, add clear layout
This commit is contained in:
18
app/layouts/clear.vue
Normal file
18
app/layouts/clear.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div class="flex flex-1">
|
||||
<div class="w-full">
|
||||
<header v-if="slots.header">
|
||||
<slot name="header" />
|
||||
</header>
|
||||
<main class="h-screen">
|
||||
<slot />
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useSlots } from 'vue'
|
||||
|
||||
const slots = useSlots()
|
||||
</script>
|
||||
@ -1,20 +1,25 @@
|
||||
<template>
|
||||
<div class="flex">
|
||||
<div class="w-full">
|
||||
<header v-if="slots.header">
|
||||
<slot name="header" />
|
||||
</header>
|
||||
<main class="h-screen">
|
||||
<slot />
|
||||
</main>
|
||||
<AppSidebar />
|
||||
<SidebarInset>
|
||||
<div class="flex flex-1">
|
||||
<div class="w-full">
|
||||
<header v-if="slots.header">
|
||||
<slot name="header" />
|
||||
</header>
|
||||
<main class="h-screen">
|
||||
<slot />
|
||||
</main>
|
||||
</div>
|
||||
<aside v-if="slots.sidebar" class="w-full hidden sm:block">
|
||||
<slot name="sidebar" />
|
||||
</aside>
|
||||
</div>
|
||||
<aside v-if="slots.sidebar" class="w-full">
|
||||
<slot name="sidebar" />
|
||||
</aside>
|
||||
</div>
|
||||
</SidebarInset>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useSlots } from 'vue'
|
||||
import AppSidebar from '@/components/ui/sidebar/AppSidebar.vue';
|
||||
import SidebarInset from '@/components/ui/sidebar/SidebarInset.vue';
|
||||
const slots = useSlots()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user