-
Notifications
You must be signed in to change notification settings - Fork 17
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
7 changed files
with
55 additions
and
133 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,12 @@ | ||
<template> | ||
<ShadcnButton @click="defaultValue = !defaultValue">Open</ShadcnButton> | ||
<ShadcnDrawer v-model="defaultValue" title="Title"> | ||
<ShadcnTooltip content="Position" position="top"> | ||
<ShadcnButton>Top</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip content="Position" position="bottom"> | ||
<ShadcnButton>Bottom</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip content="Position" position="left"> | ||
<ShadcnButton>Left</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip content="Position" class="mr-20" position="right"> | ||
<ShadcnButton>Right</ShadcnButton> | ||
</ShadcnTooltip> | ||
<template #footer> | ||
<ShadcnButton @click="defaultValue = !defaultValue">Close</ShadcnButton> | ||
</template> | ||
</ShadcnDrawer> | ||
<ShadcnTooltip :content="content" position="top"> | ||
<ShadcnButton>Top</ShadcnButton> | ||
</ShadcnTooltip> | ||
<div class="mt-12"/> | ||
<ShadcnTooltip :content="content" position="left"> | ||
<ShadcnButton>Left</ShadcnButton> | ||
</ShadcnTooltip> | ||
|
||
<div class="flex h-screen bg-green-50"> | ||
<div class="mx-36 my-36"> | ||
|
||
<ShadcnTooltip content="Position" position="top" delay="500"> | ||
<ShadcnButton>Top Delay</ShadcnButton> | ||
</ShadcnTooltip> | ||
|
||
<ShadcnSpace wrap> | ||
<ShadcnTooltip arrow content="Position" position="top"> | ||
<ShadcnButton>Top</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip arrow :content="content" position="top"> | ||
<ShadcnButton>Top</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip arrow :content="content" position="bottom"> | ||
<ShadcnButton>Bottom</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip arrow :content="content" position="left"> | ||
<ShadcnButton>Left</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip arrow :content="content" position="right"> | ||
<ShadcnButton>Right</ShadcnButton> | ||
</ShadcnTooltip> | ||
</ShadcnSpace> | ||
</div> | ||
</div> | ||
<ShadcnButton @click="defaultValue = !defaultValue">Open</ShadcnButton> | ||
|
||
<ShadcnDrawer v-model="defaultValue" title="Title"> | ||
<ShadcnTooltip content="Position" position="top"> | ||
<ShadcnButton>Top</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip content="Position" position="bottom"> | ||
<ShadcnButton>Bottom</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip content="Position" position="left"> | ||
<ShadcnButton>Left</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnTooltip content="Position" position="right"> | ||
<ShadcnButton>Right</ShadcnButton> | ||
</ShadcnTooltip> | ||
<template #footer> | ||
<ShadcnButton @click="defaultValue = !defaultValue">Close</ShadcnButton> | ||
</template> | ||
</ShadcnDrawer> | ||
<div class="mt-12"></div> | ||
<ShadcnTooltip :content="content" position="bottom"> | ||
<ShadcnButton>Bottom</ShadcnButton> | ||
</ShadcnTooltip> | ||
<ShadcnButton @click="modal = true">Click</ShadcnButton> | ||
<ShadcnModal v-model="modal" title="Custom Width" width="200" height="300"> | ||
<div class="flex items-center justify-center h-32">Content</div> | ||
</ShadcnModal> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
import { ref } from 'vue'; | ||
const defaultValue = ref(false) | ||
const content = ref( | ||
'Steve Jobs (English: Steve Jobs) is an American entrepreneur, marketer and inventor. He is one of the co-founders of Apple and has served as chairman and CEO. He is also the founder and CEO of NeXT and the founder and former CEO of Pixar Animation. He was a member of the board of directors of the Walt Disney Company in 2006. The place where Apple\'s press conference was held in September 2017 was named Steve Jobs Theater after him.') | ||
const modal = ref(false); | ||
</script> |
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
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