Tag

Labels, often used to display rows of data with characteristic variables.

Scenes to be used

  • customer type

  • Product Types

  • the current state of the object

Example

{
"state": {
"bind": "status",
"view": {
"type": "Tag",
"props": {
"options": [
{
"label": "On",
"value": "enabled",
"color": "#41b883"
},
{
"label": "Close",
"value": "disabled",
"color": "#f50"
}
]
}
}
}
}

Props

interface IProps extends TagProps {
options: Array<Option>
remote?: Request
pure?: boolean
}
interface Option {
label: string
value: string
color?: string
}
interface Request {
api: string
params?: { [key: string]: Common.DynamicValue }
}

API

PropertiesDescriptionTypeDefaultRequiredVersion
optionspossible optionsArray<Option>-no
remoteuse the requested dataRequest-no
pureno styleboolean-no

Value

PropertiesDescriptionTypeRequired
labeltextstringyes
colorbackground colorstringno

Option

PropertiesDescriptionTypeRequired
labeltextstringyes
valueoption valuestring | numberyes
colorbackground colorstringno

For other properties, see Antd Tag

Tag

Labels, often used to display rows of data with characteristic variables.

Scenes to be used

  • customer type

  • Product Types

  • the current state of the object

Example

{
"state": {
"bind": "status",
"view": {
"type": "Tag",
"props": {
"options": [
{
"label": "On",
"value": "enabled",
"color": "#41b883"
},
{
"label": "Close",
"value": "disabled",
"color": "#f50"
}
]
}
}
}
}

Props

interface IProps extends TagProps {
options: Array<Option>
remote?: Request
pure?: boolean
}
interface Option {
label: string
value: string
color?: string
}
interface Request {
api: string
params?: { [key: string]: Common.DynamicValue }
}

API

PropertiesDescriptionTypeDefaultRequiredVersion
optionspossible optionsArray<Option>-no
remoteuse the requested dataRequest-no
pureno styleboolean-no

Value

PropertiesDescriptionTypeRequired
labeltextstringyes
colorbackground colorstringno

Option

PropertiesDescriptionTypeRequired
labeltextstringyes
valueoption valuestring | numberyes
colorbackground colorstringno

For other properties, see Antd Tag