Text
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Whether Variable Pattern | is supported Description |
|---|---|---|---|---|
| className | string | ✔️ | className of the component | |
| style | object | style of the component | ||
| content | number | string | Text content | ||
| fontSize | number | string | Text size, css property | ||
| fontWeight | number | string | Text weight, CSS attribute | ||
| color | string | Text color, css attribute | ||
| formatter | 'localeDateTime' | 'localeDate' | 'localTime' | 'age' | The text displays the format | ||
| prefix | string | The prefix of the text, if there is a link, will not be included in the link | ||
| suffix | string | The text suffix, if there is a link, will not be included in the link | ||
| href | [ConditionalPropertyPropType] (api-for-props/conditional-property-prop-type) (string) | ✔️ | The link address of the text | |
| hrefIsSiteBased | bool | false | If the value is 'false' and the link is under PBC, the href will automatically splice the 'token' of PBC as 'basename', and the mobile app will automatically splice the prefix | |
| suppressBasePath | bool | false | Whether or not to directly link through the base path | |
| suppressInheritIncludeDeleted | bool | false | Whether to prohibit the automatic inheritance of the 'include_deleted' attribute of the current page, which is usually in the search params of the current page URL | |
| target | string | html link's target attribute |
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | The root DOM element of the component |