# 使用指南
// 按需引入需要在 app.scss 中引入对应样式 text.scss
import { ClText } from "mp-colorui";
# 一般用法
# 参数说明
# Text 参数
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| size | 文字大小 | string | xsmall,small,normal,large,xlarge,xxlarge,slarge,xslarge | normal |
| textColor | 文字颜色 | string | 参考文档 默认色-标准色 | black |
| bgColor | 文字背景色 | string | 参考文档 默认色 | - |
| cut | 是否显示省略号 | boolean | true,false | false |
| align | 文字对齐方式 | string | left,center,right | left |
| special | 特殊需求 | string | firstUpper,upper,lower | - |
| text | 文字内容 | string | - | - |
| lineSpacing | 行间距 | string | number | none,small,normal,large | none |
| fontSpacing | 字间距 | string | number | none,small,normal,large | none |
| fontWeight | 字体粗细 | string | number | normal,bold,bolder,lighter | normal |
部分功能需扫码预览才能正常显示。
