From 8b1372bb17f1541514f654546c1a2c9f0e059b3e Mon Sep 17 00:00:00 2001
From: lethe <1443646652@qq.com>
Date: Wed, 22 Aug 2018 17:05:04 +0800
Subject: [PATCH] =?UTF-8?q?[new=20feature]=20=E6=96=B0=E5=A2=9E=E5=86=85?=
=?UTF-8?q?=E7=BD=AE=E6=A0=B7=E5=BC=8F=E7=B1=BBvan-multi-ellipsis--l2?=
=?UTF-8?q?=E3=80=81van-multi-ellipsis--l3=20(#456)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/common/README.md | 6 ++++++
packages/common/style/ellipsis.pcss | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/packages/common/README.md b/packages/common/README.md
index 907b7be3..3dec9550 100644
--- a/packages/common/README.md
+++ b/packages/common/README.md
@@ -13,6 +13,12 @@ Vant 中默认包含了一些常用样式,可以直接通过 className 的方
```html
这是一段宽度限制 250px 的文字,后面的内容会省略
+
+
+这是一段最多显示两行的文字,后面的内容会省略
+
+
+这是一段最多显示三行的文字,后面的内容会省略
```
### 1px 边框
diff --git a/packages/common/style/ellipsis.pcss b/packages/common/style/ellipsis.pcss
index ab36d2db..0dde3ac7 100644
--- a/packages/common/style/ellipsis.pcss
+++ b/packages/common/style/ellipsis.pcss
@@ -3,3 +3,11 @@
.van-ellipsis {
@mixin ellipsis;
}
+
+.van-multi-ellipsis--l2 {
+ @mixin multi-ellipsis 2
+}
+
+.van-multi-ellipsis--l3 {
+ @mixin multi-ellipsis 3
+}