-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(playground): add tooltip playground
- Loading branch information
RicardoErii
committed
Feb 20, 2023
1 parent
66f1643
commit ba494be
Showing
1 changed file
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<script setup lang="ts"> | ||
import { LButton, LToolTip } from 'lucky-design' | ||
const onSuccess = (res: any) => { | ||
// console.log(res) | ||
} | ||
const onProgress = (ev: ProgressEvent<XMLHttpRequestEventTarget>) => { | ||
// console.log(ev) | ||
} | ||
const beforeUpload = (file: File) => { | ||
// console.log(file) | ||
return Promise.resolve() | ||
} | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div class="container"> | ||
<p> | ||
<LToolTip content="阿斯顿撒旦" placement="bottom"> | ||
<LButton text="测试" type="primary" /> | ||
</LToolTip> | ||
</p> | ||
<p> | ||
<LToolTip content="阿斯顿撒旦" placement="top"> | ||
<LButton text="测试" type="primary" /> | ||
</LToolTip> | ||
</p> | ||
<p> | ||
<LToolTip content="阿斯顿撒旦" placement="left"> | ||
<LButton text="测试" type="primary" /> | ||
</LToolTip> | ||
</p> | ||
<p> | ||
<LToolTip content="阿斯顿撒旦" placement="right"> | ||
<LButton text="测试" type="primary" /> | ||
</LToolTip> | ||
</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-evenly; | ||
width: 100%; | ||
height: 200px; | ||
flex-direction: row; | ||
} | ||
</style> |