From 5b8bc2d7236f2b5c9eb19307bdaf05dde2421191 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Thu, 20 Aug 2020 16:40:42 +0800 Subject: [PATCH] fix doc --- docs/components/action.md | 79 ++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 43 deletions(-) diff --git a/docs/components/action.md b/docs/components/action.md index c36522cd..bfb580a6 100755 --- a/docs/components/action.md +++ b/docs/components/action.md @@ -252,16 +252,15 @@ Action 行为按钮,是触发页面行为的主要方法之一 ### 单页跳转 -```schema:height="100" +```schema:height="100" scope="body" { - "body": { "label": "进入介绍页", "type": "button", "level": "info", "actionType": "link", "link": "../index" - } } + ``` ** 属性表 ** @@ -273,15 +272,13 @@ Action 行为按钮,是触发页面行为的主要方法之一 ### 直接跳转 -```schema:height="100" +```schema:height="100" scope="body" { - "body": { "label": "打开 Baidu", "type": "button", "level": "success", "actionType": "url", "url": "http://www.baidu.com/" - } } ``` @@ -297,26 +294,24 @@ Action 行为按钮,是触发页面行为的主要方法之一 ## 弹框 -```schema:height="100" +```schema:height="100" scope="body" { - "body": { - "label": "Dialog Form", - "type": "button", - "level": "primary", - "actionType": "dialog", - "dialog": { - "title": "表单设置", - "body": { - "type": "form", - "api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1", - "controls": [ - { - "type": "text", - "name": "text", - "label": "文本" - } - ] - } + "label": "Dialog Form", + "type": "button", + "level": "primary", + "actionType": "dialog", + "dialog": { + "title": "表单设置", + "body": { + "type": "form", + "api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1", + "controls": [ + { + "type": "text", + "name": "text", + "label": "文本" + } + ] } } } @@ -332,28 +327,26 @@ Action 行为按钮,是触发页面行为的主要方法之一 ## 抽屉 -```schema:height="100" - { +```schema:height="100" scope="body" +{ + "label": "Drawer Form", + "type": "button", + "actionType": "drawer", + "drawer": { + "title": "表单设置", "body": { - "label": "Drawer Form", - "type": "button", - "actionType": "drawer", - "drawer": { - "title": "表单设置", - "body": { - "type": "form", - "api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1", - "controls": [ - { - "type": "text", - "name": "text", - "label": "文本" - } - ] + "type": "form", + "api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1", + "controls": [ + { + "type": "text", + "name": "text", + "label": "文本" } - } + ] } } +} ``` ** 属性表 **