mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
4b5a9bf279
* docs(components): [text] line-clamp prop and update example * test(components): [text] line-clamp test * fix(components): [text] not support multi-line ellipsis * docs: updata --------- Co-authored-by: qiang <qw13131wang@gmail.com>
14 lines
393 B
Vue
14 lines
393 B
Vue
<template>
|
|
<el-text class="w-150px mb-2" truncated>
|
|
Self element set width 100px
|
|
</el-text>
|
|
<el-row class="w-150px mb-2">
|
|
<el-text truncated>Squeezed by parent element</el-text>
|
|
</el-row>
|
|
<el-text line-clamp="2">
|
|
The -webkit-line-clamp CSS property<br />
|
|
allows limiting of the contents of<br />
|
|
a block to the specified number of lines.
|
|
</el-text>
|
|
</template>
|