feat(Style): add multi-line ellipsis classes (#4690)

This commit is contained in:
neverland
2019-10-11 14:48:02 +08:00
committed by GitHub
parent a47122ce19
commit 79322ea892
7 changed files with 44 additions and 15 deletions
+9 -1
View File
@@ -10,7 +10,15 @@ When the text content length exceeds the maximum container width, the excess tex
```html
<div class="van-ellipsis">
This is a paragraph of 250px width limit, the back will be omitted.
This is a paragraph that displays up to one line of text, and the rest of the text will be omitted.
</div>
<div class="van-multi-ellipsis--l2">
This is a paragraph that displays up to two lines of text, and the rest of the text will be omitted.
</div>
<div class="van-multi-ellipsis--l3">
This is a paragraph that displays up to three lines of text, and the rest of the text will be omitted.
</div>
```