1.0.0-preview.0 • Published 4 years ago
@cc-dev-kit-test/console-components-truncate v1.0.0-preview.0
@alicloud/console-components-truncate
用于截断超长文本。
基本用法
比较常见的使用方式: MDXInstruction:importDemo:BasicDemo
根据容器的宽度自动截断: MDXInstruction:importDemo:AutoWidthDemo
在宽度截断模式下,可以截断任何可渲染元素,不只是 string: MDXInstruction:importDemo:NonStringDemo
可以自定义省略符号。不过注意,如果省略符号不是...
的话,会在宽度截断模式下造成“字符在中间被截断”(在浏览器中没办法支持那么“智能”的截断):
MDXInstruction:importDemo:CustomOmissionDemo
每当 children 变化的时候,Truncate 会自动检查是否需要截断: MDXInstruction:importDemo:DynamicChildrenDemo
可以自定义 tootip 的 max-width: MDXInstruction:importDemo:TooltipMaxWidthDemo
设置 tooltip 样式: MDXInstruction:importDemo:PopupStyleDemo
APIs
1.0.10-preview.0
4 years ago
1.0.9-preview.5
4 years ago
1.0.9-preview.4
4 years ago
1.0.9-preview.3
4 years ago
1.0.9-preview.2
4 years ago
1.0.9-preview.1
4 years ago
1.0.9-preview.0
4 years ago
1.0.8-preview.0
4 years ago
1.0.0-preview.0
4 years ago