- 将Button控件的'text'属性改为'label'(符合bricks-framework规范) - 移除所有嵌套的'style'对象,将样式属性直接放在options顶层 - 确保所有UI文件符合bricks-framework最佳实践
34 lines
682 B
XML
34 lines
682 B
XML
{
|
|
"widgettype": "Form",
|
|
"options": {
|
|
"title": "服务详情",
|
|
"fields": [
|
|
{
|
|
"name": "name",
|
|
"label": "服务名称",
|
|
"uitype": "str",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "service_url",
|
|
"label": "服务地址",
|
|
"uitype": "str",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "description",
|
|
"label": "描述",
|
|
"uitype": "text"
|
|
}
|
|
],
|
|
"submit_url": "/hermes-web-cli/services/{id}"
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "submited",
|
|
"actiontype": "script",
|
|
"script": "await bricks.show_resp_message_or_error(event.params)"
|
|
}
|
|
]
|
|
} |