Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(comp:text): ellipsis doesn't work when there're line breaks (#1730)
- Loading branch information
Showing
3 changed files
with
24 additions
and
7 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,7 @@ | ||
--- | ||
order: 1 | ||
title: | ||
zh: 多行内容 | ||
en: Multiple lines | ||
--- | ||
|
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,11 @@ | ||
<script lang="ts" setup> | ||
const lines = Array.from(new Array(20)).map((_, idx) => `192.168.0.1 ${idx}`) | ||
</script> | ||
|
||
<template> | ||
<IxText class="demo-text-expand-lines" :ellipsis="{ rows: 4, expandable: true }"> | ||
<template v-for="line in lines" :key="line"> | ||
<span>{{ line }}<br /></span> | ||
</template> | ||
</IxText> | ||
</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