统一 amis 称呼

This commit is contained in:
wuduoyi 2020-08-21 15:28:22 +08:00
parent 3ed51c6d05
commit 9223d8fbb2
48 changed files with 5359 additions and 5675 deletions

View File

@ -71,7 +71,7 @@ CRUD即增删改查组件主要用来展现数据列表并支持各类
} }
``` ```
如果无法知道数据总数,只能知道是否有下一页,请返回如下格式,AMIS 会简单生成一个简单版本的分页控件。 如果无法知道数据总数,只能知道是否有下一页,请返回如下格式,amis 会简单生成一个简单版本的分页控件。
```json ```json
{ {

View File

@ -28,6 +28,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"body": { "body": {
"type": "crud", "type": "crud",
"draggable": true, "draggable": true,
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample", "api": "https://houtai.baidu.com/api/sample",
"keepItemSelectionOnPageChange": true, "keepItemSelectionOnPageChange": true,
"filter": { "filter": {

View File

@ -351,7 +351,7 @@ JSSDK 的代码从以下地址获取:
<html lang="zh"> <html lang="zh">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title>AMIS Demo</title> <title>amis demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta <meta
name="viewport" name="viewport"
@ -379,7 +379,7 @@ JSSDK 的代码从以下地址获取:
let amis = amisRequire('amis/embed'); let amis = amisRequire('amis/embed');
let amisScoped = amis.embed('#root', { let amisScoped = amis.embed('#root', {
type: 'page', type: 'page',
title: 'AMIS Demo', title: 'amis demo',
body: 'hello world' body: 'hello world'
}); });
})(); })();
@ -397,7 +397,7 @@ let amisScoped = amis.embed(
'#root', '#root',
{ {
type: 'page', type: 'page',
title: 'AMIS Demo', title: 'amis demo',
body: 'This is a simple amis page.' body: 'This is a simple amis page.'
}, },
{ {

View File

@ -33,7 +33,7 @@ export default class DocSearch extends React.Component {
} }
onSearch(query) { onSearch(query) {
query = query.toLowerCase(); query = query.trim().toLowerCase();
if (query === '') { if (query === '') {
this.setState({searchResults: []}); this.setState({searchResults: []});
return; return;

View File

@ -18,23 +18,17 @@
}, },
"type": { "type": {
"description": "指定为按钮", "description": "指定为按钮",
"enum": [ "enum": ["button", "submit", "reset"],
"button",
"submit",
"reset"
],
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Action 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#action", "description": "amis Action 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#action",
"allOf": [ "allOf": [
{ {
"$ref": "https://houtai.baidu.com/v2/schemas/action.json#/definitions/baseButton" "$ref": "https://houtai.baidu.com/v2/schemas/action.json#/definitions/baseButton"
@ -53,9 +47,7 @@
}, },
"actionType": { "actionType": {
"description": "当前 Action 为 ajax 类型,用来发送 ajax 请求。", "description": "当前 Action 为 ajax 类型,用来发送 ajax 请求。",
"enum": [ "enum": ["ajax"],
"ajax"
],
"type": "string" "type": "string"
}, },
"api": { "api": {
@ -79,10 +71,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["actionType", "api"],
"actionType",
"api"
],
"type": "object" "type": "object"
}, },
"baseAction": { "baseAction": {
@ -201,14 +190,7 @@
}, },
"level": { "level": {
"description": "按钮级别", "description": "按钮级别",
"enum": [ "enum": ["info", "success", "warning", "danger", "link", "primary"],
"info",
"success",
"warning",
"danger",
"link",
"primary"
],
"type": "string" "type": "string"
}, },
"primary": { "primary": {
@ -218,13 +200,7 @@
}, },
"size": { "size": {
"description": "按钮大小", "description": "按钮大小",
"enum": [ "enum": ["xs", "sm", "md", "lg", ""],
"xs",
"sm",
"md",
"lg",
""
],
"type": "string" "type": "string"
}, },
"tooltip": { "tooltip": {
@ -234,21 +210,12 @@
"tooltipPlacement": { "tooltipPlacement": {
"default": "top", "default": "top",
"description": "按钮提示文字显示的位置", "description": "按钮提示文字显示的位置",
"enum": [ "enum": ["left", "top", "right", "bottom"],
"left",
"top",
"right",
"bottom"
],
"type": "string" "type": "string"
}, },
"type": { "type": {
"description": "按钮类型", "description": "按钮类型",
"enum": [ "enum": ["button", "submit", "reset"],
"button",
"submit",
"reset"
],
"type": "string" "type": "string"
}, },
"visible": { "visible": {
@ -266,15 +233,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "Action 类型", "description": "Action 类型",
"enum": [ "enum": ["prev", "next", "cancel", "close", "submit", "confirm", ""],
"prev",
"next",
"cancel",
"close",
"submit",
"confirm",
""
],
"type": "string" "type": "string"
}, },
"confirmText": { "confirmText": {
@ -293,9 +252,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "当前 Action 为 copy 类型,用来复制内容到剪切板。", "description": "当前 Action 为 copy 类型,用来复制内容到剪切板。",
"enum": [ "enum": ["copy"],
"copy"
],
"type": "string" "type": "string"
}, },
"copy": { "copy": {
@ -303,10 +260,7 @@
"description": "copy 到剪切板的内容" "description": "copy 到剪切板的内容"
} }
}, },
"required": [ "required": ["actionType", "copy"],
"actionType",
"copy"
],
"type": "object" "type": "object"
}, },
"dialogAction": { "dialogAction": {
@ -314,9 +268,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "当前 Action 为 dialog 类型,用来做弹窗操作。", "description": "当前 Action 为 dialog 类型,用来做弹窗操作。",
"enum": [ "enum": ["dialog"],
"dialog"
],
"type": "string" "type": "string"
}, },
"dialog": { "dialog": {
@ -332,10 +284,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["actionType", "dialog"],
"actionType",
"dialog"
],
"type": "object" "type": "object"
}, },
"drawerAction": { "drawerAction": {
@ -343,9 +292,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "当前 Action 为 drawer 类型,用来做抽出式弹窗操作。", "description": "当前 Action 为 drawer 类型,用来做抽出式弹窗操作。",
"enum": [ "enum": ["drawer"],
"drawer"
],
"type": "string" "type": "string"
}, },
"drawer": { "drawer": {
@ -361,10 +308,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["actionType", "drawer"],
"actionType",
"drawer"
],
"type": "object" "type": "object"
}, },
"linkAction": { "linkAction": {
@ -372,9 +316,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "当前 Action 为 link 类型, 用来做站内跳转。", "description": "当前 Action 为 link 类型, 用来做站内跳转。",
"enum": [ "enum": ["link"],
"link"
],
"type": "string" "type": "string"
}, },
"confirmText": { "confirmText": {
@ -386,10 +328,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["actionType", "link"],
"actionType",
"link"
],
"type": "object" "type": "object"
}, },
"reloadAction": { "reloadAction": {
@ -397,9 +336,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "当前 Action 为 reload 类型,用来让目标组件刷新数据。", "description": "当前 Action 为 reload 类型,用来让目标组件刷新数据。",
"enum": [ "enum": ["reload"],
"reload"
],
"type": "string" "type": "string"
}, },
"confirmText": { "confirmText": {
@ -411,10 +348,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["actionType", "reload"],
"actionType",
"reload"
],
"type": "object" "type": "object"
}, },
"urlAction": { "urlAction": {
@ -422,9 +356,7 @@
"properties": { "properties": {
"actionType": { "actionType": {
"description": "当前 Action 为 url 类型,用来做站外跳转。", "description": "当前 Action 为 url 类型,用来做站外跳转。",
"enum": [ "enum": ["url"],
"url"
],
"type": "string" "type": "string"
}, },
"blank": { "blank": {
@ -442,24 +374,17 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["actionType", "url"],
"actionType",
"url"
],
"type": "object" "type": "object"
}, },
"test": { "test": {
"properties": { "properties": {
"type": { "type": {
"enum": [ "enum": ["button", "submit", "reset"]
"button",
"submit",
"reset"
]
} }
} }
} }
}, },
"description": "AMis Action 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#action", "description": "amis Action 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#action",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Alert", "description": "amis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Alert",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -46,12 +44,7 @@
}, },
"level": { "level": {
"description": "提示类型", "description": "提示类型",
"enum": [ "enum": ["info", "success", "warning", "danger"]
"info",
"success",
"warning",
"danger"
]
}, },
"showCloseButton": { "showCloseButton": {
"description": "是否显示关闭按钮", "description": "是否显示关闭按钮",
@ -67,6 +60,6 @@
} }
} }
}, },
"description": "AMis Alert 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Alert", "description": "amis Alert 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Alert",
"type": "object" "type": "object"
} }

View File

@ -22,14 +22,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Audio 渲染器,用来生成音频播放器", "description": "amis Audio 渲染器,用来生成音频播放器",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -67,13 +65,7 @@
"description": "可以配置控制器", "description": "可以配置控制器",
"items": { "items": {
"type": "string", "type": "string",
"enum": [ "enum": ["rates", "play", "time", "process", "volume"]
"rates",
"play",
"time",
"process",
"volume"
]
} }
} }
} }
@ -86,7 +78,7 @@
} }
} }
}, },
"description": "AMis Audio 渲染器,用来生成视频播放器", "description": "amis Audio 渲染器,用来生成视频播放器",
"id": "https://houtai.baidu.com/v2/schemas/audio.json#", "id": "https://houtai.baidu.com/v2/schemas/audio.json#",
"type": "object" "type": "object"
} }

View File

@ -21,9 +21,7 @@
"description": "指定为提交按钮类型" "description": "指定为提交按钮类型"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
@ -36,7 +34,7 @@
} }
}, },
"common": { "common": {
"description": "AMis Button Group 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#buttongroup", "description": "amis Button Group 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#buttongroup",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -75,18 +73,13 @@
}, },
"size": { "size": {
"description": "按钮大小", "description": "按钮大小",
"enum": [ "enum": ["xs", "sm", "md", "lg"],
"xs",
"sm",
"md",
"lg"
],
"type": "string" "type": "string"
} }
}, },
"type": "object" "type": "object"
} }
}, },
"description": "AMis Button Group 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#buttongroup", "description": "amis Button Group 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#buttongroup",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Card 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Card", "description": "amis Card 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Card",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -88,6 +86,6 @@
} }
} }
}, },
"description": "AMis Card 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Card", "description": "amis Card 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Card",
"type": "object" "type": "object"
} }

View File

@ -23,9 +23,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
@ -165,7 +163,7 @@
} }
}, },
"common": { "common": {
"description": "AMis cards 渲染器格式说明。", "description": "amis cards 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -379,6 +377,6 @@
} }
} }
}, },
"description": "AMis cards 渲染器格式说明。", "description": "amis cards 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -22,14 +22,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Video 渲染器,用来生成视频播放器", "description": "amis Video 渲染器,用来生成视频播放器",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -52,7 +50,6 @@
"description": "配置容器 className" "description": "配置容器 className"
}, },
"width": { "width": {
"description": "设置宽度", "description": "设置宽度",
"oneOf": [ "oneOf": [
{ {
@ -89,10 +86,7 @@
"type": "array", "type": "array",
"items": { "items": {
"type": "string", "type": "string",
"const": [ "const": ["dots", "arrows"]
"dots",
"arrows"
]
} }
}, },
@ -104,10 +98,7 @@
"animation": { "animation": {
"type": "string", "type": "string",
"description": "动画类型", "description": "动画类型",
"enum": [ "enum": ["fade", "slide"]
"fade",
"slide"
]
}, },
"itemSchema": { "itemSchema": {
"type": "object", "type": "object",
@ -134,7 +125,7 @@
} }
} }
}, },
"description": "AMis 轮播渲染器", "description": "amis 轮播渲染器",
"id": "https://houtai.baidu.com/v2/schemas/carousel.json#", "id": "https://houtai.baidu.com/v2/schemas/carousel.json#",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Chart 渲染器采用echarts渲染格式说明。https://baidu.github.io/amis/docs/renderers#chart", "description": "amis Chart 渲染器采用echarts渲染格式说明。https://baidu.github.io/amis/docs/renderers#chart",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -107,6 +105,6 @@
} }
} }
}, },
"description": "AMis Chart 渲染器采用echarts渲染格式说明。https://baidu.github.io/amis/docs/renderers#chart", "description": "amis Chart 渲染器采用echarts渲染格式说明。https://baidu.github.io/amis/docs/renderers#chart",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper", "description": "amis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -76,6 +74,6 @@
} }
} }
}, },
"description": "AMis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper", "description": "amis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"type": "object" "type": "object"
} }

View File

@ -23,9 +23,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
@ -61,6 +59,6 @@
} }
} }
}, },
"description": "AMis container 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Types#container", "description": "amis container 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Types#container",
"type": "object" "type": "object"
} }

View File

@ -18,21 +18,17 @@
"description": "绑定 JSON 格式说明,可忽略!" "description": "绑定 JSON 格式说明,可忽略!"
}, },
"type": { "type": {
"enum": [ "enum": ["crud"],
"crud"
],
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis crud 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#crud", "description": "amis crud 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#crud",
"allOf": [ "allOf": [
{ {
"$ref": "https://houtai.baidu.com/v2/schemas/crud.json#/definitions/commonProps" "$ref": "https://houtai.baidu.com/v2/schemas/crud.json#/definitions/commonProps"
@ -52,10 +48,7 @@
"if": { "if": {
"properties": { "properties": {
"mode": { "mode": {
"enum": [ "enum": ["cards", "grid"]
"cards",
"grid"
]
} }
} }
}, },
@ -235,6 +228,6 @@
} }
} }
}, },
"description": "AMis crud 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#crud", "description": "amis crud 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#crud",
"type": "object" "type": "object"
} }

View File

@ -19,23 +19,17 @@
}, },
"type": { "type": {
"description": "指定为日期展示类型", "description": "指定为日期展示类型",
"enum": [ "enum": ["date", "datetime", "time"],
"date",
"datetime",
"time"
],
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis date 渲染器格式说明。", "description": "amis date 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -62,15 +56,11 @@
"test": { "test": {
"properties": { "properties": {
"type": { "type": {
"enum": [ "enum": ["date", "datetime", "time"]
"date",
"datetime",
"time"
]
} }
} }
} }
}, },
"description": "AMis date 渲染器格式说明。", "description": "amis date 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Dialog 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dialog", "description": "amis Dialog 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dialog",
"properties": { "properties": {
"actions": { "actions": {
"description": "默认不用填写,自动会创建确认和取消按钮。", "description": "默认不用填写,自动会创建确认和取消按钮。",
@ -85,12 +83,7 @@
}, },
"size": { "size": {
"description": "Dialog 大小", "description": "Dialog 大小",
"enum": [ "enum": ["xs", "sm", "md", "lg"]
"xs",
"sm",
"md",
"lg"
]
}, },
"title": { "title": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
@ -107,6 +100,6 @@
} }
} }
}, },
"description": "AMis Dialog 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dialog", "description": "amis Dialog 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dialog",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis plain 渲染器格式说明。", "description": "amis plain 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -45,13 +43,11 @@
"test": { "test": {
"properties": { "properties": {
"type": { "type": {
"enum": [ "enum": ["divider"]
"divider"
]
} }
} }
} }
}, },
"description": "AMis plain 渲染器格式说明。", "description": "amis plain 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis drawer 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#drawer", "description": "amis drawer 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#drawer",
"properties": { "properties": {
"actions": { "actions": {
"description": "默认不用填写,自动会创建确认和取消按钮。", "description": "默认不用填写,自动会创建确认和取消按钮。",
@ -85,13 +83,7 @@
}, },
"size": { "size": {
"description": "drawer 大小", "description": "drawer 大小",
"enum": [ "enum": ["xs", "sm", "md", "lg", "xl"]
"xs",
"sm",
"md",
"lg",
"xl"
]
}, },
"title": { "title": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/container",
@ -108,6 +100,6 @@
} }
} }
}, },
"description": "AMis drawer 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#drawer", "description": "amis drawer 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#drawer",
"type": "object" "type": "object"
} }

View File

@ -21,15 +21,13 @@
"description": "指定为 DropDown Button 类型" "description": "指定为 DropDown Button 类型"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Dropdown Button 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dropdown-button", "description": "amis Dropdown Button 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dropdown-button",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -109,14 +107,7 @@
}, },
"level": { "level": {
"description": "按钮级别", "description": "按钮级别",
"enum": [ "enum": ["info", "success", "warning", "danger", "link", "primary"],
"info",
"success",
"warning",
"danger",
"link",
"primary"
],
"type": "string" "type": "string"
}, },
"primary": { "primary": {
@ -126,14 +117,7 @@
}, },
"size": { "size": {
"description": "按钮大小", "description": "按钮大小",
"enum": [ "enum": ["xs", "sm", "md", "lg", "", "base"],
"xs",
"sm",
"md",
"lg",
"",
"base"
],
"type": "string" "type": "string"
}, },
"tooltip": { "tooltip": {
@ -141,9 +125,7 @@
"type": "string" "type": "string"
}, },
"type": { "type": {
"enum": [ "enum": ["dropdown-button"],
"dropdown-button"
],
"type": "string" "type": "string"
}, },
"visibleOn": { "visibleOn": {
@ -170,5 +152,5 @@
} }
}, },
"dependencies": {}, "dependencies": {},
"description": "AMis Dropdown Button 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dropdown-button" "description": "amis Dropdown Button 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#dropdown-button"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis each 渲染器格式说明。", "description": "amis each 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -55,6 +53,6 @@
} }
} }
}, },
"description": "AMis each 渲染器格式说明。", "description": "amis each 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -34,7 +34,7 @@
} }
}, },
"common": { "common": {
"description": "AMis Form 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#form", "description": "amis Form 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#form",
"dependencies": { "dependencies": {
"checkInterval": ["asyncApi"], "checkInterval": ["asyncApi"],
"finishedField": ["asyncApi"] "finishedField": ["asyncApi"]
@ -1263,6 +1263,6 @@
] ]
} }
}, },
"description": "AMis Form 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#form", "description": "amis Form 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#form",
"type": "object" "type": "object"
} }

View File

@ -21,15 +21,13 @@
"description": "指定为 fieldSet 类型渲染器" "description": "指定为 fieldSet 类型渲染器"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis FieldSet 渲染器格式说明", "description": "amis FieldSet 渲染器格式说明",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -78,12 +76,7 @@
}, },
"size": { "size": {
"description": "大小", "description": "大小",
"enum": [ "enum": ["xs", "sm", "md", "lg"],
"xs",
"sm",
"md",
"lg"
],
"type": "string" "type": "string"
}, },
"horizontal": { "horizontal": {
@ -99,17 +92,11 @@
"leftFixed": { "leftFixed": {
"oneOf": [ "oneOf": [
{ {
"type":"string", "type": "string",
"const": [ "const": ["", "xs", "sm", "md", "lg"]
"",
"xs",
"sm",
"md",
"lg"
]
}, },
{ {
"type":"boolean" "type": "boolean"
} }
] ]
} }
@ -119,11 +106,7 @@
"mode": { "mode": {
"description": "配置当前表单项展示模式", "description": "配置当前表单项展示模式",
"type": "string", "type": "string",
"enum": [ "enum": ["normal", "inline", "horizontal"]
"normal",
"inline",
"horizontal"
]
} }
}, },
"type": "object" "type": "object"
@ -136,6 +119,6 @@
} }
} }
}, },
"description": "AMis FieldSet 渲染器格式说明", "description": "amis FieldSet 渲染器格式说明",
"type": "object" "type": "object"
} }

View File

@ -21,14 +21,12 @@
"description": "指定渲染器类型为表单 Input Group 类型,能让多个表单在一行。" "description": "指定渲染器类型为表单 Input Group 类型,能让多个表单在一行。"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis 表单集合渲染器格式说明,能让多个表单在一行显示", "description": "amis 表单集合渲染器格式说明,能让多个表单在一行显示",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -57,9 +55,7 @@
"type": "string" "type": "string"
}, },
{ {
"enum": [ "enum": [false]
false
]
} }
] ]
}, },
@ -94,7 +90,7 @@
"type": ["string", "number"] "type": ["string", "number"]
}, },
{ {
"type":"boolean" "type": "boolean"
} }
] ]
} }
@ -104,11 +100,7 @@
"mode": { "mode": {
"description": "配置当前表单项展示模式", "description": "配置当前表单项展示模式",
"type": "string", "type": "string",
"enum": [ "enum": ["normal", "inline", "horizontal"]
"normal",
"inline",
"horizontal"
]
} }
}, },
"type": "object" "type": "object"
@ -121,6 +113,6 @@
} }
} }
}, },
"description": "AMis 表单集合渲染器格式说明,能让多个表单在一行显示", "description": "amis 表单集合渲染器格式说明,能让多个表单在一行显示",
"type": "object" "type": "object"
} }

View File

@ -21,14 +21,12 @@
"description": "指定当前 JSON 为 tabs 渲染器。" "description": "指定当前 JSON 为 tabs 渲染器。"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Tabs 渲染器格式说明", "description": "amis Tabs 渲染器格式说明",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -112,11 +110,7 @@
"mode": { "mode": {
"default": "normal", "default": "normal",
"description": "表单展示方式可以是normal、horizontal 或者 inline。示例https://baidu.github.io/amis/docs/demo/forms/mode", "description": "表单展示方式可以是normal、horizontal 或者 inline。示例https://baidu.github.io/amis/docs/demo/forms/mode",
"enum": [ "enum": ["normal", "horizontal", "inline"],
"normal",
"horizontal",
"inline"
],
"type": "string" "type": "string"
}, },
"title": { "title": {
@ -142,6 +136,6 @@
} }
} }
}, },
"description": "AMis Tabs 渲染器格式说明", "description": "amis Tabs 渲染器格式说明",
"type": "object" "type": "object"
} }

View File

@ -22,9 +22,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
@ -55,7 +53,7 @@
"type": "array" "type": "array"
}, },
"common": { "common": {
"description": "AMis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#grid", "description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#grid",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -203,6 +201,6 @@
} }
} }
}, },
"description": "AMis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#grid", "description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#grid",
"type": "object" "type": "object"
} }

View File

@ -23,9 +23,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
@ -48,7 +46,7 @@
"type": "array" "type": "array"
}, },
"common": { "common": {
"description": "AMis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox", "description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -80,6 +78,6 @@
} }
} }
}, },
"description": "AMis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox", "description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis iframe 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#iframe", "description": "amis iframe 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#iframe",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -79,6 +77,6 @@
} }
} }
}, },
"description": "AMis iframe 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#iframe", "description": "amis iframe 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#iframe",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis image 渲染器格式说明。", "description": "amis image 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -67,6 +65,6 @@
} }
} }
}, },
"description": "AMis image 渲染器格式说明。", "description": "amis image 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Json 渲染器格式说明。", "description": "amis Json 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -55,6 +53,6 @@
} }
} }
}, },
"description": "AMis Json 渲染器格式说明。", "description": "amis Json 渲染器格式说明。",
"type": "object" "type": "object"
} }amis

View File

@ -23,9 +23,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
@ -55,7 +53,7 @@
] ]
}, },
"common": { "common": {
"description": "AMis list 渲染器格式说明。", "description": "amis list 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -301,6 +299,6 @@
} }
} }
}, },
"description": "AMis list 渲染器格式说明。", "description": "amis list 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -19,22 +19,17 @@
}, },
"type": { "type": {
"description": "指定为映射展示类型", "description": "指定为映射展示类型",
"enum": [ "enum": ["mapping", "map"],
"mapping",
"map"
],
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis mapping 渲染器格式说明。", "description": "amis mapping 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -62,14 +57,11 @@
"test": { "test": {
"properties": { "properties": {
"type": { "type": {
"enum": [ "enum": ["map", "mapping"]
"map",
"mapping"
]
} }
} }
} }
}, },
"description": "AMis mapping 渲染器格式说明。", "description": "amis mapping 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Nav 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#nav", "description": "amis Nav 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#nav",
"properties": { "properties": {
"className": { "className": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
@ -74,6 +72,6 @@
} }
} }
}, },
"description": "AMis Nav 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#nav", "description": "amis Nav 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#nav",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis operation 渲染器格式说明。", "description": "amis operation 渲染器格式说明。",
"properties": { "properties": {
"buttons": { "buttons": {
"description": "操作按钮集合", "description": "操作按钮集合",
@ -58,6 +56,6 @@
} }
} }
}, },
"description": "AMis operation 渲染器格式说明。", "description": "amis operation 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -11,7 +11,7 @@
"description": "服务端 API 地址, 可以配置 `$varName` 做变量替换", "description": "服务端 API 地址, 可以配置 `$varName` 做变量替换",
"oneOf": [ "oneOf": [
{ {
"descriptions": "例如: `get:http://www.baidu.com/` 可以使用 $var 或者 ${var} 从容器 data 中获取变量。\n 注意:为了不暴露 API 地址,默认会被替换成 AMis 中转,如果不想被转义请这样配置 `raw:http://www.baidu.com` \n 另外,如果代理的话,默认只能请求内网服务,如需访问外网服务,请这样配置 `external:http://www.com/api/doXX`", "descriptions": "例如: `get:http://www.baidu.com/` 可以使用 $var 或者 ${var} 从容器 data 中获取变量。\n 注意:为了不暴露 API 地址,默认会被替换成 amis 中转,如果不想被转义请这样配置 `raw:http://www.baidu.com` \n 另外,如果代理的话,默认只能请求内网服务,如需访问外网服务,请这样配置 `external:http://www.com/api/doXX`",
"type": "string" "type": "string"
}, },
{ {
@ -27,18 +27,13 @@
"dataType": { "dataType": {
"default": "json", "default": "json",
"description": "发送体的格式", "description": "发送体的格式",
"enum": [ "enum": ["form-data", "json"],
"form-data",
"json"
],
"type": "string" "type": "string"
}, },
"responseType": { "responseType": {
"default": "", "default": "",
"description": "接口返回数据类型,当做文件下载时请配置为 blob。", "description": "接口返回数据类型,当做文件下载时请配置为 blob。",
"enum": [ "enum": ["blob"],
"blob"
],
"type": "string" "type": "string"
}, },
"headers": { "headers": {
@ -47,12 +42,7 @@
}, },
"method": { "method": {
"default": "get", "default": "get",
"enum": [ "enum": ["get", "post", "put", "delete"]
"get",
"post",
"put",
"delete"
]
}, },
"url": { "url": {
"$ref": "#/definitions/url", "$ref": "#/definitions/url",
@ -63,9 +53,7 @@
"description": "设置发送条件" "description": "设置发送条件"
} }
}, },
"required": [ "required": ["url"],
"url"
],
"type": "object" "type": "object"
} }
] ]
@ -123,9 +111,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"title": "自定义渲染器", "title": "自定义渲染器",
"type": "object" "type": "object"
}, },
@ -403,7 +389,7 @@
"type": "string" "type": "string"
} }
}, },
"description": "AMis Page 渲染器。详情请见https://baidu.github.io/amis/docs/renderers#page", "description": "amis Page 渲染器。详情请见https://baidu.github.io/amis/docs/renderers#page",
"properties": { "properties": {
"$schema": { "$schema": {
"description": "绑定 JSON 格式说明,可忽略!", "description": "绑定 JSON 格式说明,可忽略!",
@ -499,9 +485,6 @@
"description": "定义可复用类型,方便子节点引用" "description": "定义可复用类型,方便子节点引用"
} }
}, },
"required": [ "required": ["$schema", "type"],
"$schema",
"type"
],
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel", "description": "amis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -92,7 +90,7 @@
} }
} }
}, },
"description": "AMis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel", "description": "amis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"title": "Panel", "title": "Panel",
"type": "object" "type": "object"
} }

View File

@ -19,21 +19,16 @@
}, },
"type": { "type": {
"description": "指定为纯文本类型的渲染器,不支持 html 标签。", "description": "指定为纯文本类型的渲染器,不支持 html 标签。",
"enum": [ "enum": ["plain", "text"],
"plain",
"text"
],
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis plain 渲染器格式说明。", "description": "amis plain 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -66,14 +61,11 @@
"test": { "test": {
"properties": { "properties": {
"type": { "type": {
"enum": [ "enum": ["plain", "text"]
"plain",
"text"
]
} }
} }
} }
}, },
"description": "AMis plain 渲染器格式说明。", "description": "amis plain 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis progress 渲染器格式说明。", "description": "amis progress 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -70,6 +68,6 @@
} }
} }
}, },
"description": "AMis progress 渲染器格式说明。", "description": "amis progress 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Service 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#service", "description": "amis Service 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#service",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -97,6 +95,6 @@
} }
} }
}, },
"description": "AMis Service 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#service", "description": "amis Service 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#service",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis status 渲染器格式说明。", "description": "amis status 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -62,6 +60,6 @@
} }
} }
}, },
"description": "AMis status 渲染器格式说明。", "description": "amis status 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,15 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"],
"type"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis switch 渲染器格式说明。", "description": "amis switch 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -67,6 +65,6 @@
} }
} }
}, },
"description": "AMis switch 渲染器格式说明。", "description": "amis switch 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,9 +23,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
@ -136,11 +134,7 @@
"properties": { "properties": {
"fixed": { "fixed": {
"description": "配置是否固定当前列", "description": "配置是否固定当前列",
"enum": [ "enum": ["left", "right", "none"],
"left",
"right",
"none"
],
"type": "string" "type": "string"
}, },
"label": { "label": {
@ -218,7 +212,7 @@
"type": "array" "type": "array"
}, },
"common": { "common": {
"description": "AMis table 渲染器格式说明。", "description": "amis table 渲染器格式说明。",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -260,11 +254,7 @@
"properties": { "properties": {
"expand": { "expand": {
"description": "设置默认展开情况", "description": "设置默认展开情况",
"enum": [ "enum": ["first", "all", "none"],
"first",
"all",
"none"
],
"type": "string" "type": "string"
} }
}, },
@ -313,9 +303,7 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
}, },
"test": { "test": {
"properties": { "properties": {
@ -325,6 +313,6 @@
} }
} }
}, },
"description": "AMis table 渲染器格式说明。", "description": "amis table 渲染器格式说明。",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Tabs 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tabs", "description": "amis Tabs 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tabs",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -131,6 +129,6 @@
} }
} }
}, },
"description": "AMis Tabs 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tabs", "description": "amis Tabs 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tabs",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Tasks 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tasks", "description": "amis Tasks 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tasks",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -76,14 +74,7 @@
}, },
"status": { "status": {
"description": "任务状态: \n0: 初始状态,不可操作。\n1: 就绪,可操作状态。\n2: 进行中,还没有结束。\n3有错误不可重试。\n4: 已正常结束。\n5有错误且可以重试。", "description": "任务状态: \n0: 初始状态,不可操作。\n1: 就绪,可操作状态。\n2: 进行中,还没有结束。\n3有错误不可重试。\n4: 已正常结束。\n5有错误且可以重试。",
"enum": [ "enum": [0, 1, 2, 3, 4, 5],
0,
1,
2,
3,
4,
5
],
"type": "number" "type": "number"
} }
}, },
@ -135,14 +126,7 @@
"type": "array" "type": "array"
}, },
"statusTextMap": { "statusTextMap": {
"default": [ "default": ["未开始", "就绪", "进行中", "出错", "已完成", "出错"],
"未开始",
"就绪",
"进行中",
"出错",
"已完成",
"出错"
],
"description": "状态显示对应的文字显示配置。", "description": "状态显示对应的文字显示配置。",
"type": "array" "type": "array"
}, },
@ -170,6 +154,6 @@
} }
} }
}, },
"description": "AMis Tasks 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tasks", "description": "amis Tasks 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tasks",
"type": "object" "type": "object"
} }

View File

@ -20,21 +20,16 @@
}, },
"type": { "type": {
"description": "指定为 TPL 类型的渲染器", "description": "指定为 TPL 类型的渲染器",
"enum": [ "enum": ["tpl", "html"],
"tpl",
"html"
],
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Tpl 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tpl", "description": "amis Tpl 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tpl",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -79,10 +74,7 @@
"properties": { "properties": {
"type": { "type": {
"description": "指定为 TPL 类型的渲染器", "description": "指定为 TPL 类型的渲染器",
"enum": [ "enum": ["tpl", "html"],
"tpl",
"html"
],
"type": "string" "type": "string"
} }
} }
@ -92,5 +84,5 @@
"type": "string" "type": "string"
} }
}, },
"description": "AMis Tpl 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tpl" "description": "amis Tpl 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tpl"
} }

View File

@ -22,14 +22,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Video 渲染器,用来生成视频播放器", "description": "amis Video 渲染器,用来生成视频播放器",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -126,7 +124,7 @@
} }
} }
}, },
"description": "AMis Video 渲染器,用来生成视频播放器", "description": "amis Video 渲染器,用来生成视频播放器",
"id": "https://houtai.baidu.com/v2/schemas/video.json#", "id": "https://houtai.baidu.com/v2/schemas/video.json#",
"type": "object" "type": "object"
} }

View File

@ -23,16 +23,13 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type", "steps"],
"type",
"steps"
],
"type": "object" "type": "object"
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Wizard 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wizard", "description": "amis Wizard 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wizard",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -110,10 +107,7 @@
"type": "object" "type": "object"
}, },
"mode": { "mode": {
"enum": [ "enum": ["vertical", "horizontal"],
"vertical",
"horizontal"
],
"default": "horizontal", "default": "horizontal",
"description": "展示模式", "description": "展示模式",
"type": "string" "type": "string"
@ -193,6 +187,6 @@
} }
} }
}, },
"description": "AMis Wizard 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wizard", "description": "amis Wizard 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wizard",
"type": "object" "type": "object"
} }

View File

@ -23,14 +23,12 @@
"type": "string" "type": "string"
} }
}, },
"required": [ "required": ["type"]
"type"
]
} }
], ],
"definitions": { "definitions": {
"common": { "common": {
"description": "AMis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Wrapper", "description": "amis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Wrapper",
"properties": { "properties": {
"$ref": { "$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref", "$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -47,14 +45,7 @@
}, },
"size": { "size": {
"description": "容器内边距大小", "description": "容器内边距大小",
"enum": [ "enum": ["xs", "sm", "md", "lg", "none", ""]
"xs",
"sm",
"md",
"lg",
"none",
""
]
} }
} }
}, },
@ -66,6 +57,6 @@
} }
} }
}, },
"description": "AMis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Wrapper", "description": "amis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Wrapper",
"type": "object" "type": "object"
} }