Paragraph

Description

text ellipsis, expand and packup...

Examples

add the ability of expand

add the ability of expand and collapse

add style for expand collapse button

customize expand collapse button

customize view more btn

Identify newlines

omit effect show

text not exceed

Normal ellipsis

end of line will be long word

start of line will be punctuation

API

Props

参数说明类型默认值
ellipsis省略配置EllipsisConfigEllipsisConfig(必选)

EllipsisConfig

参数说明类型默认值
recognizeLineBreaks是否识别换行符booleanfalse
rows当超出多少行省略number(必选)
expandable是否启用展开功能booleanfalse
expandStyle设置展开按钮样式CSSProperties{}
packupable是否启用收起功能booleanfalse
packupStyle设置收起按钮样式CSSProperties{}

Slot

name说明
suffix展开按钮
packup按钮

最近更新: