Skip to main content

Action Configuration

Configuration Parameters Description

data

Optional, data that the action can receive must comply with the JSON Schema specification.

The low-code editor will also render the Added Actions in the component's Events panel based on this configuration.

meta

Optional, solely for information display in the low-code platform.

meta.title

Optional, alias of the action, recommended to be in Chinese.

meta.description

Optional, description of the action, recommended to be in Chinese.

Configuration Example

src/configs/actions/showToast.json

{
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_action.json",
"data": {
"type": "object",
"properties": {
"title": {
"title": "Title",
"type": "string",
"default": "Prompt content"
},
"icon": {
"title": "Icon",
"type": "string",
"default": "success",
"x-component": "radio",
"enum": [
{
"label": "success",
"value": "success"
},
{
"label": "loading",
"value": "loading"
},
{
"label": "none",
"value": "none"
}
]
},
"duration": {
"title": "Prompt Delay Time",
"type": "number",
"default": 1500
}
}
},
"meta": {
"title": "Custom Prompt",
"description": "Custom Prompt"
}
}