-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: jackhoo_98 <jackhoo_98@foxmail.com>
- Loading branch information
1 parent
c1c40a6
commit 9cc5ddf
Showing
4 changed files
with
55 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,45 @@ | ||
<template> | ||
<VbenCard title="文本省略示例"> | ||
<VbenCard title="Ellipsis 基本使用"> | ||
<VbenEllipsis> | ||
<template #tooltip> | ||
<div style="width: 500px"> | ||
{{ text }} | ||
</div> | ||
</template> | ||
{{ text }} | ||
</VbenEllipsis> | ||
</VbenCard> | ||
<VbenCard title="Ellipsis 多行省略"> | ||
<VbenEllipsis :line-clamp="2"> {{ text }}</VbenEllipsis> | ||
</VbenCard> | ||
<VbenCard title="Ellipsis 点击展开"> | ||
<VbenEllipsis expand-trigger="click" line-clamp="2" :tooltip="false">{{ | ||
text | ||
}}</VbenEllipsis> | ||
</VbenCard> | ||
<VbenCard title="Ellipsis 定制 Tooltip 内容"> | ||
<VbenEllipsis style="max-width: 240px"> | ||
住在我心里孤独的 孤独的海怪 痛苦之王 开始厌倦 深海的光 停滞的海浪 | ||
<template #tooltip> | ||
<div style="text-align: center"> | ||
《秦皇岛》<br />住在我心里孤独的<br />孤独的海怪 痛苦之王<br />开始厌倦 | ||
深海的光 停滞的海浪 | ||
</div> | ||
</template> | ||
</VbenEllipsis> | ||
</VbenCard> | ||
</VbenCard> | ||
</template> | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
const text = ref( | ||
` | ||
Vben3 是一个免费开源的中后台模版。使用了最新的vue3,vite4,TypeScript等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。 | ||
Vben3 是一个免费开源的中后台模版。使用了最新的vue3,vite4,TypeScript等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。 | ||
Vben3 是一个免费开源的中后台模版。使用了最新的vue3,vite4,TypeScript等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。 | ||
Vben3 是一个免费开源的中后台模版。使用了最新的vue3,vite4,TypeScript等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。 | ||
`, | ||
) | ||
</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