-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
193 additions
and
38 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
packages/docs/page-config/ui-elements/layout/examples/AllSlots.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<script setup lang="ts"> | ||
const showLeftSidebar = ref(true) | ||
const showRightSidebar = ref(true) | ||
</script> | ||
|
||
<template> | ||
<VaLayout style="height: 500px"> | ||
<template #top> | ||
<VaNavbar color="primary"> | ||
<template #left> | ||
<VaButton @click="showLeftSidebar = !showLeftSidebar" :icon="showLeftSidebar ? 'menu_open' : 'menu'" /> | ||
</template> | ||
Hello! | ||
<template #right> | ||
<VaButton @click="showRightSidebar = !showRightSidebar" :icon="showRightSidebar ? 'menu_open' : 'menu'" /> | ||
</template> | ||
</VaNavbar> | ||
</template> | ||
|
||
<template #left> | ||
<VaSidebar v-model="showLeftSidebar"> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="home" /> Home | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="phone" /> About | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
</VaSidebar> | ||
</template> | ||
|
||
<template #content> | ||
<div class="p-4"> | ||
<h1>Content</h1> | ||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, voluptatum.</p> | ||
</div> | ||
</template> | ||
|
||
<template #right> | ||
<VaSidebar v-model="showRightSidebar"> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="home" /> Home | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="phone" /> About | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
</VaSidebar> | ||
</template> | ||
|
||
<template #bottom> | ||
Footer! | ||
</template> | ||
</VaLayout> | ||
</template> |
67 changes: 67 additions & 0 deletions
67
packages/docs/page-config/ui-elements/layout/examples/Order.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<script setup lang="ts"> | ||
const showLeftSidebar = ref(true) | ||
const showRightSidebar = ref(true) | ||
</script> | ||
|
||
<template> | ||
<VaLayout | ||
:left-order="1" | ||
:top-order="2" | ||
style="height: 500px" | ||
> | ||
<template #top> | ||
<VaNavbar color="primary"> | ||
<template #left> | ||
<VaButton @click="showLeftSidebar = !showLeftSidebar" :icon="showLeftSidebar ? 'menu_open' : 'menu'" /> | ||
</template> | ||
Hello! | ||
<template #right> | ||
<VaButton @click="showRightSidebar = !showRightSidebar" :icon="showRightSidebar ? 'menu_open' : 'menu'" /> | ||
</template> | ||
</VaNavbar> | ||
</template> | ||
|
||
<template #left> | ||
<VaSidebar v-model="showLeftSidebar"> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="home" /> Home | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="phone" /> About | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
</VaSidebar> | ||
</template> | ||
|
||
<template #content> | ||
<div class="p-4"> | ||
<h1>Content</h1> | ||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam, voluptatum.</p> | ||
</div> | ||
</template> | ||
|
||
<template #right> | ||
<VaSidebar v-model="showRightSidebar"> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="home" /> Home | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
<VaSidebarItem> | ||
<VaSidebarItemContent> | ||
<VaIcon name="phone" /> About | ||
</VaSidebarItemContent> | ||
</VaSidebarItem> | ||
</VaSidebar> | ||
</template> | ||
|
||
<template #bottom> | ||
<VaNavbar color="primary"> | ||
Footer | ||
</VaNavbar> | ||
</template> | ||
</VaLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters