--- name: element-plus-text description: Element Plus Text component (el-text) API documentation. Triggers when user wants to use, implement, or asks about el-text or Text component. --- # Text 组件 API ## Attributes | Name | Description | Type | Default | | ------------------- | ------------------ | ------------------------------------------------------------------ | ------- | | type | text type | ^[enum]`'primary' \| 'success' \| 'warning' \| 'danger' \| 'info'` | — | | size | text size | ^[enum]`'large' \| 'default' \| 'small'` | default | | truncated | render ellipsis | ^[boolean] | false | | line-clamp ^(2.4.0) | maximum lines | ^[string] / ^[number] | — | | tag | custom element tag | ^[string] | span | ## Slots | Name | Description | | ------- | --------------- | | default | default content | ## 参考 - 官方文档: https://element-plus.org/en-US/component/text.html