This commit is contained in:
RickCole21 2020-08-20 16:40:42 +08:00
parent ce9d8879f5
commit 5b8bc2d723
1 changed files with 36 additions and 43 deletions

View File

@ -252,16 +252,15 @@ Action 行为按钮,是触发页面行为的主要方法之一
### 单页跳转 ### 单页跳转
```schema:height="100" ```schema:height="100" scope="body"
{ {
"body": {
"label": "进入介绍页", "label": "进入介绍页",
"type": "button", "type": "button",
"level": "info", "level": "info",
"actionType": "link", "actionType": "link",
"link": "../index" "link": "../index"
}
} }
``` ```
** 属性表 ** ** 属性表 **
@ -273,15 +272,13 @@ Action 行为按钮,是触发页面行为的主要方法之一
### 直接跳转 ### 直接跳转
```schema:height="100" ```schema:height="100" scope="body"
{ {
"body": {
"label": "打开 Baidu", "label": "打开 Baidu",
"type": "button", "type": "button",
"level": "success", "level": "success",
"actionType": "url", "actionType": "url",
"url": "http://www.baidu.com/" "url": "http://www.baidu.com/"
}
} }
``` ```
@ -297,26 +294,24 @@ Action 行为按钮,是触发页面行为的主要方法之一
## 弹框 ## 弹框
```schema:height="100" ```schema:height="100" scope="body"
{ {
"body": { "label": "Dialog Form",
"label": "Dialog Form", "type": "button",
"type": "button", "level": "primary",
"level": "primary", "actionType": "dialog",
"actionType": "dialog", "dialog": {
"dialog": { "title": "表单设置",
"title": "表单设置", "body": {
"body": { "type": "form",
"type": "form", "api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1", "controls": [
"controls": [ {
{ "type": "text",
"type": "text", "name": "text",
"name": "text", "label": "文本"
"label": "文本" }
} ]
]
}
} }
} }
} }
@ -332,28 +327,26 @@ Action 行为按钮,是触发页面行为的主要方法之一
## 抽屉 ## 抽屉
```schema:height="100" ```schema:height="100" scope="body"
{ {
"label": "Drawer Form",
"type": "button",
"actionType": "drawer",
"drawer": {
"title": "表单设置",
"body": { "body": {
"label": "Drawer Form", "type": "form",
"type": "button", "api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",
"actionType": "drawer", "controls": [
"drawer": { {
"title": "表单设置", "type": "text",
"body": { "name": "text",
"type": "form", "label": "文本"
"api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",
"controls": [
{
"type": "text",
"name": "text",
"label": "文本"
}
]
} }
} ]
} }
} }
}
``` ```
** 属性表 ** ** 属性表 **