Text
容器属性
所有组件配置的第一层均支持容器属性
组件属性 componentsProps
| Name | Type | Default | 是否支持 Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | 组件的 className | |
| style | object | 组件的 style | ||
| content | number | string | 文本内容 | ||
| fontSize | number | string | 文字大小,css 属性 | ||
| fontWeight | number | string | 文字粗细,css 属性 | ||
| color | string | 文字颜色,css 属性 | ||
| formatter | 'localeDateTime' | 'localeDate' | 'localTime' | 'age' | 文字显示默认提供的格式 | ||
| prefix | string | 文字的前缀,如果有链接,不会被包含在链接里面 | ||
| suffix | string | 文字的后缀,如果有链接,不会被包含在链接里面 | ||
| href | ConditionalPropertyPropType(string) | ✔️ | 文字的链接地址 | |
| hrefIsSiteBased | bool | false | 如果值为 false 并且此链接位于 pbc 下,href 将自动拼接上 pbc 的 token 作为 basename,移动端将自动拼接上 mobile 的前缀 | |
| suppressBasePath | bool | false | 是否直接链接不通过 react router 的 base path | |
| suppressInheritIncludeDeleted | bool | false | 是否禁止自动继承当前页面的 include_deleted 属性,此属性一般在当前页面 url 的 search params 里 | |
| target | string | html 链接的 target 属性 |
JS API
通过 formApi.getFieldApi() 获取的接口如下:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | 组件的根 DOM 元素 |