Merge pull request #877 from nwind/master

统一 amis 称呼
This commit is contained in:
liaoxuezhi 2020-08-21 15:40:13 +08:00 committed by GitHub
commit db4562853b
48 changed files with 5359 additions and 5675 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -23,14 +23,12 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "AMis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Alert",
"description": "amis Wrapper 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Alert",
"properties": {
"$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -46,12 +44,7 @@
},
"level": {
"description": "提示类型",
"enum": [
"info",
"success",
"warning",
"danger"
]
"enum": ["info", "success", "warning", "danger"]
},
"showCloseButton": {
"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"
}

View File

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

View File

@ -21,9 +21,7 @@
"description": "指定为提交按钮类型"
}
},
"required": [
"type"
],
"required": ["type"],
"type": "object"
}
],
@ -36,7 +34,7 @@
}
},
"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": {
"$ref": {
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
@ -75,18 +73,13 @@
},
"size": {
"description": "按钮大小",
"enum": [
"xs",
"sm",
"md",
"lg"
],
"enum": ["xs", "sm", "md", "lg"],
"type": "string"
}
},
"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"
}

View File

@ -23,15 +23,13 @@
"type": "string"
}
},
"required": [
"type"
],
"required": ["type"],
"type": "object"
}
],
"definitions": {
"common": {
"description": "AMis Card 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Card",
"description": "amis Card 渲染器格式说明。https://baidu.github.io/amis/docs/renderers/Card",
"properties": {
"$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"
}

View File

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

View File

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

View File

@ -23,15 +23,13 @@
"type": "string"
}
},
"required": [
"type"
],
"required": ["type"],
"type": "object"
}
],
"definitions": {
"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": {
"$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"
}

View File

@ -23,14 +23,12 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "AMis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"description": "amis collapse 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#wrapper",
"properties": {
"$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"
}

View File

@ -23,9 +23,7 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"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"
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -34,7 +34,7 @@
}
},
"common": {
"description": "AMis Form 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#form",
"description": "amis Form 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#form",
"dependencies": {
"checkInterval": ["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"
}

View File

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

View File

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

View File

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

View File

@ -22,9 +22,7 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
@ -55,7 +53,7 @@
"type": "array"
},
"common": {
"description": "AMis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#grid",
"description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#grid",
"properties": {
"$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"
}

View File

@ -23,9 +23,7 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
@ -48,7 +46,7 @@
"type": "array"
},
"common": {
"description": "AMis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
"description": "amis Grid 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#hbox",
"properties": {
"$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"
}

View File

@ -23,14 +23,12 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "AMis iframe 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#iframe",
"description": "amis iframe 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#iframe",
"properties": {
"$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"
}

View File

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

View File

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

View File

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

View File

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

View File

@ -23,14 +23,12 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "AMis Nav 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#nav",
"description": "amis Nav 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#nav",
"properties": {
"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"
}

View File

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

View File

@ -11,7 +11,7 @@
"description": "服务端 API 地址, 可以配置 `$varName` 做变量替换",
"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"
},
{
@ -27,18 +27,13 @@
"dataType": {
"default": "json",
"description": "发送体的格式",
"enum": [
"form-data",
"json"
],
"enum": ["form-data", "json"],
"type": "string"
},
"responseType": {
"default": "",
"description": "接口返回数据类型,当做文件下载时请配置为 blob。",
"enum": [
"blob"
],
"enum": ["blob"],
"type": "string"
},
"headers": {
@ -47,12 +42,7 @@
},
"method": {
"default": "get",
"enum": [
"get",
"post",
"put",
"delete"
]
"enum": ["get", "post", "put", "delete"]
},
"url": {
"$ref": "#/definitions/url",
@ -63,9 +53,7 @@
"description": "设置发送条件"
}
},
"required": [
"url"
],
"required": ["url"],
"type": "object"
}
]
@ -123,9 +111,7 @@
"type": "string"
}
},
"required": [
"type"
],
"required": ["type"],
"title": "自定义渲染器",
"type": "object"
},
@ -403,7 +389,7 @@
"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": {
"$schema": {
"description": "绑定 JSON 格式说明,可忽略!",
@ -499,9 +485,6 @@
"description": "定义可复用类型,方便子节点引用"
}
},
"required": [
"$schema",
"type"
],
"required": ["$schema", "type"],
"type": "object"
}

View File

@ -23,14 +23,12 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "AMis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"description": "amis Panel 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#panel",
"properties": {
"$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",
"type": "object"
}

View File

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

View File

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

View File

@ -23,15 +23,13 @@
"type": "string"
}
},
"required": [
"type"
],
"required": ["type"],
"type": "object"
}
],
"definitions": {
"common": {
"description": "AMis Service 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#service",
"description": "amis Service 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#service",
"properties": {
"$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"
}

View File

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

View File

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

View File

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

View File

@ -23,14 +23,12 @@
"type": "string"
}
},
"required": [
"type"
]
"required": ["type"]
}
],
"definitions": {
"common": {
"description": "AMis Tabs 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tabs",
"description": "amis Tabs 渲染器格式说明。https://baidu.github.io/amis/docs/renderers#tabs",
"properties": {
"$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"
}

View File

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

View File

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

View File

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

View File

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