docs: 将 cfc 的 mock 接口放到项目中支持文档离线访问;将大部分图片外联都放入项目中管理 (#2366)

This commit is contained in:
吴多益 2021-08-09 18:05:01 +08:00 committed by GitHub
parent 771c676424
commit f8bbc6a440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
182 changed files with 14562 additions and 1418 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ node_modules
/package-lock.json
/schema.json
/npm
/mock/cfc/cfc.zip

View File

@ -5,6 +5,7 @@
"typescript.tsdk": "node_modules/typescript/lib",
"gitHistory.showEditorTitleMenuBarIcons": false,
"search.exclude": {
"examples/docs.json": true
"examples/docs.json": true,
"examples/components/EChartsEditor/option-parts/**/*": true
}
}

View File

@ -58,8 +58,7 @@ test('Renderer:service', async () => {
type: 'service',
className: 'm-t',
initFetchSchemaOn: 'data.tpl',
schemaApi:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/form?tpl=$tpl'
schemaApi: '/api/mock2/service/form?tpl=$tpl'
}
],
submitText: null,

View File

@ -182,7 +182,7 @@ icon 也可以是 url 地址,比如
"type": "button",
"actionType": "ajax",
"confirmText": "确认要发出这个请求?",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
"api": "/api/mock2/form/saveForm"
}
```
@ -195,7 +195,7 @@ icon 也可以是 url 地址,比如
"label": "ajax请求",
"type": "button",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
"api": "/api/mock2/form/saveForm"
}
```
@ -208,7 +208,7 @@ icon 也可以是 url 地址,比如
"label": "ajax请求",
"type": "button",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"redirect": "../docs/start/getting-started"
}
```
@ -220,7 +220,7 @@ icon 也可以是 url 地址,比如
"label": "ajax请求",
"type": "button",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"redirect": "https://www.baidu.com/"
}
```
@ -232,7 +232,7 @@ icon 也可以是 url 地址,比如
"type": "button",
"label": "ajax 反馈弹框",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"feedback": {
"title": "操作成功",
"body": "xxx 已操作成功"
@ -255,7 +255,7 @@ icon 也可以是 url 地址,比如
"type": "button",
"label": "ajax 请求",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"reload": "crud"
},
{
@ -264,7 +264,7 @@ icon 也可以是 url 地址,比如
{
"type": "crud",
"name": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -307,7 +307,7 @@ icon 也可以是 url 地址,比如
"type": "button",
"label": "ajax 请求",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"messages": {
"success": "成功了!欧耶",
"failed": "失败了呢。。"
@ -343,7 +343,7 @@ icon 也可以是 url 地址,比如
"countDown": 60,
"countDownTpl": "${timeLeft} 秒后重发",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?phone=${phone}"
"api": "/api/mock2/form/saveForm?phone=${phone}"
}
}
]
@ -413,7 +413,7 @@ icon 也可以是 url 地址,比如
```schema: scope="body"
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/mail/mailInfo",
"initApi": "/api/mock2/mail/mailInfo",
"body": {
"label": "发送邮件",
"type": "button",
@ -449,7 +449,7 @@ icon 也可以是 url 地址,比如
"title": "表单设置",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -469,14 +469,14 @@ icon 也可以是 url 地址,比如
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"name": "myForm",
"body": [
{
"type": "select",
"name": "group",
"label": "分组",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getOptions"
"source": "/api/mock2/form/getOptions"
},
{
"label": "新增分组",
@ -488,7 +488,7 @@ icon 也可以是 url 地址,比如
"title": "新增分组",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -524,7 +524,7 @@ icon 也可以是 url 地址,比如
"title": "表单设置",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"api": "/api/mock2/form/saveForm?waitSeconds=1",
"body": [
{
"type": "input-text",
@ -584,7 +584,7 @@ icon 也可以是 url 地址,比如
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -625,7 +625,7 @@ icon 也可以是 url 地址,比如
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",

View File

@ -18,7 +18,7 @@ order: 31
"subTitle": "副标题",
"description": "这是一段描述",
"avatarClassName": "pull-left thumb-md avatar b-3x m-r",
"avatar": "raw:http://hiphotos.baidu.com/fex/%70%69%63/item/c9fcc3cec3fdfc03ccabb38edd3f8794a4c22630.jpg"
"avatar": "raw:http://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg"
},
"body": "这里是内容",
"actions": [

View File

@ -36,7 +36,7 @@ order: 33
"type": "page",
"body": {
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/carousel",
"api": "/api/mock2/options/carousel",
"body": {
"type": "carousel",
"name": "imageList"

View File

@ -15,7 +15,7 @@ order: 34
```schema: scope="body"
{
"type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart",
"api": "/api/mock2/chart/chart",
"interval": 5000
}
```
@ -124,7 +124,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
},
{
"type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart1"
"api": "/api/mock2/chart/chart1"
}
]
}
@ -139,7 +139,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
```schema: scope="body"
{
"type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chartData",
"api": "/api/mock2/chart/chartData",
"config": {
"xAxis": {
"type": "category",
@ -177,7 +177,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chartData",
"api": "/api/mock2/chart/chartData",
"interval": 3000,
"body": [
{
@ -308,7 +308,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
},
{
"type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart1"
"api": "/api/mock2/chart/chart1"
}
]
}
@ -323,7 +323,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
```schema: scope="body"
{
"type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart1"
"api": "/api/mock2/chart/chart1"
}
```
@ -378,13 +378,13 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
"type": "chart",
"name": "chart1",
"initFetch": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"
"api": "/api/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"
},
{
"type": "chart",
"name": "chart2",
"initFetch": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart2?name=$name"
"api": "/api/mock2/chart/chart2?name=$name"
}
]
}

View File

@ -19,7 +19,7 @@ CRUD即增删改查组件主要用来展现数据列表并支持各类
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"syncLocation": false,
"columns": [
{
@ -282,7 +282,7 @@ Table 模式支持 [Table](./table) 中的所有功能。
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"syncLocation": false,
"columns": [
{
@ -318,7 +318,7 @@ List 模式支持 [List](./list) 中的所有功能。
```schema: scope="body"
{
"type": "crud",
"api": "raw:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/permissions",
"api": "raw:/api/mock2/crud/permissions",
"mode": "list",
"placeholder": "当前组内, 还没有配置任何权限.",
"syncLocation": false,
@ -364,7 +364,7 @@ List 模式支持 [List](./list) 中的所有功能。
"icon": "fa fa-times",
"confirmText": "您确定要移除该权限?",
"actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/notFound"
"api": "delete:/api/mock2/notFound"
}
]
}
@ -378,7 +378,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/users",
"api": "/api/mock2/crud/users",
"syncLocation": false,
"mode": "cards",
"defaultParams": {
@ -458,7 +458,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
"label": "移除",
"confirmText": "您确定要移除该用户?",
"actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/notFound"
"api": "delete:/api/mock2/notFound"
}
]
}
@ -475,7 +475,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"filter": {
"title": "条件搜索",
"body": [
@ -527,7 +527,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"defaultParams": {
"perPage": 50
},
@ -570,7 +570,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"interval": 3000,
"columns": [
{
@ -615,7 +615,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [
{
"name": "id",
@ -649,7 +649,7 @@ amis 只负责生成排序组件,并将排序参数传递给接口,而不会
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [
{
"name": "id",
@ -682,7 +682,7 @@ amis 只负责生成搜索组件,并将搜索参数传递给接口,而不会
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [
{
"name": "id",
@ -725,8 +725,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"api": "/api/sample",
"quickSaveApi": "/api/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -749,8 +749,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"api": "/api/sample",
"quickSaveApi": "/api/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -780,8 +780,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"api": "/api/sample",
"quickSaveApi": "/api/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -824,8 +824,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"api": "/api/sample",
"quickSaveApi": "/api/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -859,8 +859,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id",
"api": "/api/sample",
"quickSaveItemApi": "/api/sample/$id",
"columns": [
{
"name": "id",
@ -893,7 +893,7 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [
{
"name": "id",
@ -914,7 +914,7 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
"X"
],
"saveImmediately": {
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
"api": "/api/sample/$id"
}
}
}
@ -930,8 +930,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"api": "/api/sample",
"quickSaveApi": "/api/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -955,7 +955,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": [
{
"type": "tpl",
@ -1043,7 +1043,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"type": "crud",
"name": "myCRUD",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": [
{
"label": "点击弹框",
@ -1087,7 +1087,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": [],
"footerToolbar": ["switch-per-page", "pagination"],
"columns": [
@ -1110,7 +1110,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"X"
],
"saveImmediately": {
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
"api": "/api/sample/$id"
}
}
}
@ -1226,7 +1226,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": [
"bulkActions"
],
@ -1234,7 +1234,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"label": "批量删除",
"actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}",
"api": "delete:/api/sample/${ids|raw}",
"confirmText": "确定要批量删除?"
},
{
@ -1244,7 +1244,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"title": "批量编辑",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2",
"api": "/api/sample/bulkUpdate2",
"body": [
{
"type": "hidden",
@ -1318,7 +1318,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": [
"bulkActions"
],
@ -1328,7 +1328,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"label": "批量删除",
"actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}",
"api": "delete:/api/sample/${ids|raw}",
"confirmText": "确定要批量删除?"
},
{
@ -1338,7 +1338,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"title": "批量编辑",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2",
"api": "/api/sample/bulkUpdate2",
"body": [
{
"type": "hidden",
@ -1391,7 +1391,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": ["statistics"],
"columns": [
{
@ -1430,7 +1430,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": ["load-more"],
"columns": [
{
@ -1512,7 +1512,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"headerToolbar": ["export-excel"],
"columns": [
{
@ -1556,7 +1556,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"headerToolbar": [{
"type": "export-excel",
"label": "全量导出 Excel",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample"
"api": "/api/sample"
}],
"columns": [
{
@ -1601,7 +1601,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"type": "export-excel",
"label": "自定义导出 Excel",
"filename": "自定义文件名${test}",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample"
"api": "/api/sample"
}],
"columns": [
{
@ -1640,7 +1640,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"filter": {
"title": "条件搜索",
"body": [
@ -1696,7 +1696,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"draggable": true,
"columns": [
{
@ -1767,7 +1767,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"draggable": true,
"columns": [
{
@ -1898,7 +1898,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"loadDataOnce": true,
"columns": [
{
@ -1936,7 +1936,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
{
"type": "crud",
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"loadDataOnce": true,
"source": "${rows | filter:engine:match:keywords}",
"filter":{
@ -1991,7 +1991,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/crud/dynamic?waitSeconds=1"
"api": "/api/crud/dynamic?waitSeconds=1"
}
```

View File

@ -90,7 +90,7 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"draggable": true,
"columns": [
{
@ -147,7 +147,7 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"draggable": true,
"columns": [
{
@ -271,13 +271,13 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"type": "button",
"label": "默认的 ajax 请求",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1"
"api": "/api/mock2/form/saveForm?waitSeconds=1"
},
{
"type": "button",
"label": "ajax 请求成功后关闭弹框",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"api": "/api/mock2/form/saveForm?waitSeconds=1",
"close": true
}
]
@ -335,7 +335,7 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"title": "在弹框中的表单",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
"api": "/api/mock2/form/saveForm?waitSeconds=2",
"body": [
{
"type": "input-text",
@ -385,12 +385,12 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"actionType": "ajax",
"primary": true,
"type": "button",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2"
"api": "/api/mock2/form/saveForm?waitSeconds=2"
}
],
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
"api": "/api/mock2/form/saveForm?waitSeconds=2",
"body": [
{
"type": "input-text",
@ -441,12 +441,12 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"actionType": "ajax",
"primary": true,
"type": "button",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2"
"api": "/api/mock2/form/saveForm?waitSeconds=2"
}
],
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
"api": "/api/mock2/form/saveForm?waitSeconds=2",
"body": [
{
"type": "input-text",
@ -484,7 +484,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"type": "button",
"label": "Feedback",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?waitSeconds=2",
"api": "/api/mock2/form/initData?waitSeconds=2",
"tooltip": "点击我后会发送一个请求,请求回来后,弹出一个框。",
"feedback": {
"title": "操作成功",
@ -512,7 +512,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"title": "提示",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
"api": "/api/mock2/form/saveForm?waitSeconds=2",
"body": [
{
"type": "input-text",
@ -556,7 +556,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"label": "ajax请求 Feedback",
"actionType": "ajax",
"close": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?waitSeconds=1",
"api": "/api/mock2/form/initData?waitSeconds=1",
"feedback": {
"body": "feedback弹框中不请求接口了直接点击按钮关闭",
"actions": [
@ -585,7 +585,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"dialog": {
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
"api": "/api/mock2/form/saveForm?waitSeconds=2",
"body": [
{
"type": "input-text",
@ -616,7 +616,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"feedback": {
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"api": "/api/mock2/form/saveForm?waitSeconds=1",
"body": [
{
"type": "tpl",
@ -639,11 +639,11 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"label": "ajax Feedback",
"actionType": "ajax",
"close": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"api": "/api/mock2/form/saveForm?waitSeconds=1",
"feedback": {
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"api": "/api/mock2/form/saveForm?waitSeconds=1",
"body": [
{
"type": "tpl",
@ -681,7 +681,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"title": "提示",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?waitSeconds=1",
"api": "/api/mock2/form/initData?waitSeconds=1",
"body": [
{
"type": "tpl",
@ -724,7 +724,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"type": "button",
"label": "条件feedback",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?waitSeconds=1",
"api": "/api/mock2/form/initData?waitSeconds=1",
"feedback": {
"visibleOn": "!(this.date % 2)",
"title": "操作成功",

View File

@ -15,7 +15,7 @@ order: 6
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -16,13 +16,13 @@ order: 7
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "select3",
"type": "chained-select",
"label": "级联下拉",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4",
"source": "/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4",
"value": "a,b"
}
]

View File

@ -15,7 +15,7 @@ order: 9
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "checkboxes",
@ -51,7 +51,7 @@ order: 9
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "checkboxes",
@ -88,7 +88,7 @@ order: 9
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "checkboxes1",

View File

@ -20,7 +20,7 @@ order: 12
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -52,7 +52,7 @@ order: 12
{
"type": "form",
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -108,7 +108,7 @@ order: 12
{
"type": "form",
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -163,7 +163,7 @@ order: 12
{
"type": "form",
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -221,7 +221,7 @@ order: 12
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -276,7 +276,7 @@ order: 12
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -359,7 +359,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -402,7 +402,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",
@ -584,7 +584,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -615,7 +615,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -651,7 +651,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -688,7 +688,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -724,7 +724,7 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "combo",

View File

@ -68,7 +68,7 @@ icon:
"label": "动态选项",
"type": "select",
"name": "select2",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getOptions?waitSeconds=1"
"source": "/api/mock2/form/getOptions?waitSeconds=1"
},
{
"label": "日期",
@ -347,7 +347,7 @@ type Value = ValueGroup;
"label": "A",
"type": "select",
"name": "a",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getOptions?waitSeconds=1",
"source": "/api/mock2/form/getOptions?waitSeconds=1",
"searchable": true
}
]
@ -370,7 +370,7 @@ type Value = ValueGroup;
"label": "条件组件",
"name": "conditions",
"description": "适合让用户自己拼查询条件,然后后端根据数据生成 query where",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/condition-fields?a=${a}&waitSeconds=2"
"source": "/api/condition-fields?a=${a}&waitSeconds=2"
}
]
}

View File

@ -13,7 +13,7 @@ order: 17
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "diff-editor",
@ -33,7 +33,7 @@ order: 17
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "diff-editor",
@ -59,7 +59,7 @@ order: 17
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"data": {
"value1": "hello world",
"value2": "hello wrold"

View File

@ -15,7 +15,7 @@ order: 19
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "editor",
@ -35,7 +35,7 @@ order: 19
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "editor",
@ -54,7 +54,7 @@ order: 19
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "json-editor",
@ -76,7 +76,7 @@ order: 19
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "editor",

View File

@ -17,7 +17,7 @@ FieldSet 是用于分组展示表单项的一种容器型组件,可以折叠
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "fieldSet",
@ -87,7 +87,7 @@ FieldSet 是用于分组展示表单项的一种容器型组件,可以折叠
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "fieldSet",
@ -118,7 +118,7 @@ FieldSet 是用于分组展示表单项的一种容器型组件,可以折叠
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "fieldSet",
@ -152,7 +152,7 @@ fieldSet 的另一种标题展现样式,不同的是展开的时候收起文
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "fieldSet",

View File

@ -437,7 +437,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -456,7 +456,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-number",
@ -485,7 +485,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -505,7 +505,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -528,7 +528,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -546,7 +546,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -568,7 +568,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -591,7 +591,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -688,7 +688,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveFormFailed?waitSeconds=1",
"api": "/api/mock2/form/saveFormFailed?waitSeconds=1",
"body": [
{
"name": "test2",
@ -725,7 +725,7 @@ Combo 类型的表单项,要实现服务端校验,可以使用 `路径key`
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveFormFailedCombo?waitSeconds=1",
"api": "/api/mock2/form/saveFormFailedCombo?waitSeconds=1",
"body": [
{
"type": "combo",
@ -805,7 +805,7 @@ Table 类型的表单项,要实现服务端校验,可以使用 `路径key`
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveFormFailedTable?waitSeconds=1",
"api": "/api/mock2/form/saveFormFailedTable?waitSeconds=1",
"body": [
{
"label": "Table 服务端校验",

View File

@ -15,7 +15,7 @@ order: 26
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -19,7 +19,7 @@ order: 24
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -44,7 +44,7 @@ order: 24
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -395,7 +395,7 @@ Form 默认会在底部渲染一个提交按钮,用于执行表单的提交行
```schema: scope="body"
{
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData",
"initApi": "/api/mock2/form/initData",
"title": "编辑用户信息",
"body": [
{
@ -441,7 +441,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"interval": 3000,
"title": "表单",
"body": [
@ -459,7 +459,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"interval": 3000,
"title": "表单",
"stopAutoRefreshWhen": "this.date % 5",
@ -553,7 +553,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/saveForm",
"api": "/api/saveForm",
"title": "用户信息",
"body": [
{
@ -610,7 +610,7 @@ Form 支持轮询初始化接口,步骤如下:
"type": "form",
"initApi": {
"method": "put",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"url": "/api/mock2/page/initData",
"data": {
"&": "$$$$",
"_from": "browser"
@ -645,8 +645,8 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"asyncApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"asyncApi": "/api/mock2/page/initData",
"title": "用户信息",
"body": [
{
@ -674,7 +674,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema:scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/form/saveForm",
"api": "/api/form/saveForm",
"rules": [
{
"rule": "!(data.a && data.b)",
@ -775,7 +775,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"resetAfterSubmit": true,
"body": [
{
@ -803,7 +803,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"redirect": "/user/list",
"title": "用户信息",
"body": [
@ -829,7 +829,7 @@ Form 支持轮询初始化接口,步骤如下:
[
{
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"title": "用户信息",
"reload": "my_service",
"body": [
@ -848,7 +848,7 @@ Form 支持轮询初始化接口,步骤如下:
{
"type": "service",
"name": "my_service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"api": "/api/mock2/page/initData",
"body": "service初识数据"
}
]
@ -878,7 +878,7 @@ Form 支持轮询初始化接口,步骤如下:
{
"type": "form",
"name": "detailForm",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData?keywords=${keywords}",
"initApi": "/api/mock2/page/initData?keywords=${keywords}",
"body": [
{
"label": "名称",
@ -925,7 +925,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"preventEnterSubmit": true,
"body": [
{

View File

@ -16,7 +16,7 @@ order: 10
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "city",
@ -38,7 +38,7 @@ order: 10
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "city",
@ -59,7 +59,7 @@ order: 10
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "city",

View File

@ -13,7 +13,7 @@ order: 11
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-color",
@ -37,7 +37,7 @@ order: 11
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-color",

View File

@ -13,7 +13,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date-range",
@ -29,7 +29,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -13,7 +13,7 @@ order: 13
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -33,7 +33,7 @@ order: 13
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -55,7 +55,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -74,7 +74,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -100,7 +100,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -120,7 +120,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -152,7 +152,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -180,7 +180,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -203,7 +203,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -229,7 +229,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -271,7 +271,7 @@ order: 13
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-date",
@ -295,7 +295,7 @@ order: 13
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "static-date",
@ -319,7 +319,7 @@ order: 13
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "native-date",

View File

@ -13,7 +13,7 @@ order: 16
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime-range",

View File

@ -13,7 +13,7 @@ order: 14
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -33,7 +33,7 @@ order: 14
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -55,7 +55,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -74,7 +74,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -100,7 +100,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -120,7 +120,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -150,7 +150,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -178,7 +178,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -201,7 +201,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -227,7 +227,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -255,7 +255,7 @@ order: 14
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-datetime",
@ -279,7 +279,7 @@ order: 14
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "static-date",

View File

@ -15,14 +15,14 @@ order: 21
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-file",
"name": "file",
"label": "File",
"accept": "*",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
"receiver": "/api/upload/file"
}
]
}
@ -49,14 +49,14 @@ order: 21
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-file",
"name": "file",
"label": "限制只能上传csv文件",
"accept": ".csv",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
"receiver": "/api/upload/file"
}
]
}
@ -71,7 +71,7 @@ order: 21
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -98,14 +98,14 @@ order: 21
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-file",
"name": "file",
"label": "File",
"accept": "*",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"receiver": "/api/upload/file",
"autoFill": {
"myUrl": "${url}"
}
@ -151,14 +151,14 @@ order: 21
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-file",
"name": "file",
"label": "File",
"multiple": true,
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"receiver": "/api/upload/file",
"autoFill": {
"myUrl": "${items|pick:url}",
"lastUrl": "${items|last|pick:url}"

View File

@ -15,7 +15,7 @@ order: 28
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-group",

View File

@ -15,13 +15,13 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-image",
"name": "image",
"label": "image",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
"receiver": "/api/upload/file"
}
]
}
@ -48,14 +48,14 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-image",
"name": "image",
"label": "限制只能上传jpg图片",
"accept": ".jpg",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
"receiver": "/api/upload/file"
}
]
}
@ -70,7 +70,7 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-image",
@ -80,7 +80,7 @@ order: 27
"limit": {
"minWidth": 1000
},
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
"receiver": "/api/upload/file"
}
]
}
@ -91,14 +91,14 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-image",
"name": "image",
"label": "限制只能上传jpg图片",
"accept": ".jpg",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"receiver": "/api/upload/file",
"crop": true
}
]
@ -112,13 +112,13 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-image",
"name": "image",
"label": "image",
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"receiver": "/api/upload/file",
"autoFill": {
"myUrl": "${url}"
}
@ -164,14 +164,14 @@ order: 27
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-image",
"name": "image",
"label": "image",
"multiple": true,
"receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"receiver": "/api/upload/file",
"autoFill": {
"myUrl": "${items|pick:url}",
"lastUrl": "${items|last|pick:url}"

View File

@ -13,7 +13,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month-range",
@ -29,7 +29,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -13,7 +13,7 @@ order: 81
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month",
@ -33,7 +33,7 @@ order: 81
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month",
@ -55,7 +55,7 @@ order: 81
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month",
@ -74,7 +74,7 @@ order: 81
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month",
@ -100,7 +100,7 @@ order: 81
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month",
@ -120,7 +120,7 @@ order: 81
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-month",

View File

@ -13,7 +13,7 @@ order: 32
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-number",
@ -31,7 +31,7 @@ order: 32
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "native-number",

View File

@ -13,7 +13,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-quarter-range",
@ -29,7 +29,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -13,7 +13,7 @@ order: 62
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-quarter",

View File

@ -17,7 +17,7 @@ order: 38
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-range",
@ -36,7 +36,7 @@ order: 38
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-range",

View File

@ -13,7 +13,7 @@ order: 37
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-rating",

View File

@ -13,7 +13,7 @@ order: 39
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-repeat",

View File

@ -15,7 +15,7 @@ order: 47
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-rich-text",
@ -35,7 +35,7 @@ order: 47
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-rich-text",
@ -62,7 +62,7 @@ order: 47
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-rich-text",

View File

@ -32,7 +32,7 @@ order: 54
}
]
},
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type":"input-table",
@ -61,7 +61,7 @@ order: 54
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type":"input-table",
@ -106,7 +106,7 @@ order: 54
}
]
},
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-table",
@ -158,7 +158,7 @@ order: 54
}
]
},
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-table",
@ -204,7 +204,7 @@ order: 54
}
]
},
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-table",
@ -249,7 +249,7 @@ order: 54
}
]
},
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-table",
@ -283,7 +283,7 @@ order: 54
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -316,7 +316,7 @@ order: 54
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",

View File

@ -13,7 +13,7 @@ order: 56
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "text",
@ -31,7 +31,7 @@ order: 56
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "text",
@ -73,7 +73,7 @@ order: 56
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "text",
@ -96,7 +96,7 @@ order: 56
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "text",
@ -115,7 +115,7 @@ order: 56
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "text",

View File

@ -13,7 +13,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time-range",
@ -29,7 +29,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -49,7 +49,7 @@ order: 15
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -13,7 +13,7 @@ order: 58
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -33,7 +33,7 @@ order: 58
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -55,7 +55,7 @@ order: 58
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -74,7 +74,7 @@ order: 58
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -96,7 +96,7 @@ order: 58
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -122,7 +122,7 @@ order: 58
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -142,7 +142,7 @@ order: 58
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-time",
@ -170,7 +170,7 @@ order: 58
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "native-time",

View File

@ -15,7 +15,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -67,7 +67,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "tree-select",
@ -111,7 +111,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -165,7 +165,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -251,7 +251,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -335,7 +335,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -421,7 +421,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -469,7 +469,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -531,7 +531,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
@ -579,13 +579,13 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
"name": "tree",
"label": "Tree",
"deferApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/deferOptions?label=${label}&waitSeconds=2",
"deferApi": "/api/mock2/form/deferOptions?label=${label}&waitSeconds=2",
"options": [
{
"label": "Folder A",

View File

@ -13,7 +13,7 @@ order: 61
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-year",

View File

@ -15,7 +15,7 @@ ListSelect 一般用来实现选择,可以单选也可以多选,和 Radio/Ch
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "list-select",
@ -42,7 +42,7 @@ ListSelect 一般用来实现选择,可以单选也可以多选,和 Radio/Ch
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "list-select",

View File

@ -15,7 +15,7 @@ order: 30
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -15,7 +15,7 @@ order: 30
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -51,7 +51,7 @@ order: 30
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -88,7 +88,7 @@ order: 30
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "matrix",
@ -166,7 +166,7 @@ order: 30
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "matrix-checkboxes",
@ -202,7 +202,7 @@ cell 模式,指全部选项中只能单选某个单元格
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "matrix-checkboxes",
@ -239,7 +239,7 @@ row 模式,每行只能单选某个单元格
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "matrix-checkboxes",

View File

@ -13,7 +13,7 @@ order: 31
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "nested-select",
@ -91,7 +91,7 @@ order: 31
},
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "nested-select",
@ -111,13 +111,13 @@ order: 31
"type": "page",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "nested-select",
"name": "nestedSelect",
"label": "级联选择器",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getTreeOptions"
"source": "/api/mock2/form/getTreeOptions"
}
]
}
@ -132,7 +132,7 @@ order: 31
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "nested-select",
@ -218,7 +218,7 @@ order: 31
{
"type": "form",
"debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "nested-select",

View File

@ -202,7 +202,7 @@ order: 2
"label": "选项",
"type": "select",
"name": "select",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getOptions?waitSeconds=1"
"source": "/api/mock2/form/getOptions?waitSeconds=1"
}
]
}
@ -777,7 +777,7 @@ order: 2
"name": "select",
"type": "select",
"label": "选项自动补全",
"autoComplete": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/autoComplete?term=$term",
"autoComplete": "/api/mock2/options/autoComplete?term=$term",
"placeholder": "请输入"
}
]
@ -1049,7 +1049,7 @@ order: 2
"label": "选项",
"type": "select",
"name": "select",
"addApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"addApi": "/api/mock2/form/saveForm",
"options": [
{
"label":"A",
@ -1196,7 +1196,7 @@ order: 2
"label": "选项",
"type": "select",
"name": "select",
"editApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"editApi": "/api/mock2/form/saveForm",
"options": [
{
"label":"A",
@ -1241,7 +1241,7 @@ order: 2
"label": "选项",
"type": "select",
"name": "select",
"deleteApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"deleteApi": "/api/mock2/form/saveForm",
"options": [
{
"label":"A",
@ -1270,7 +1270,7 @@ order: 2
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -1310,7 +1310,7 @@ order: 2
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -13,7 +13,7 @@ order: 35
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-password",

View File

@ -17,7 +17,7 @@ order: 35
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "picker",
@ -49,7 +49,7 @@ order: 35
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -59,15 +59,15 @@ order: 35
"valueField": "id",
"labelField": "engine",
"label": "多选",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"source": "/api/sample",
"size": "lg",
"value": "4,5",
"multiple": true,
"pickerSchema": {
"mode": "table",
"name": "thelist",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id",
"quickSaveApi": "/api/sample/bulkUpdate",
"quickSaveItemApi": "/api/sample/$id",
"draggable": true,
"headerToolbar": {
"wrapWithPanel": false,
@ -255,7 +255,7 @@ order: 35
"icon": "fa fa-times text-danger",
"actionType": "ajax",
"confirmText": "您确认要删除?",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
"api": "delete:/api/sample/$id"
}
],
"toggled": true
@ -274,7 +274,7 @@ order: 35
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "picker",
@ -284,15 +284,15 @@ order: 35
"labelField": "engine",
"label": "Picker",
"embed": true,
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"source": "/api/sample",
"size": "lg",
"value": "4,5",
"multiple": true,
"pickerSchema": {
"mode": "table",
"name": "thelist",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id",
"quickSaveApi": "/api/sample/bulkUpdate",
"quickSaveItemApi": "/api/sample/$id",
"draggable": true,
"headerToolbar": {
"wrapWithPanel": false,
@ -480,7 +480,7 @@ order: 35
"icon": "fa fa-times text-danger",
"actionType": "ajax",
"confirmText": "您确认要删除?",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
"api": "delete:/api/sample/$id"
}
],
"toggled": true

View File

@ -13,7 +13,7 @@ order: 51
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "switch",

View File

@ -12,7 +12,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "组合穿梭器",

View File

@ -13,7 +13,7 @@ order: 57
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"name": "textarea",

View File

@ -12,7 +12,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "默认",
@ -56,7 +56,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "分组",
@ -113,7 +113,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "表格形式",
@ -172,7 +172,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "树型展示",
@ -230,7 +230,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "级联选择",
@ -288,7 +288,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "带搜索",
@ -348,14 +348,14 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "延时加载",
"type": "transfer",
"name": "transfer7",
"selectMode": "tree",
"deferApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/deferOptions?label=${label}",
"deferApi": "/api/mock2/form/deferOptions?label=${label}",
"options": [
{
"label": "法师",
@ -398,7 +398,7 @@ icon:
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"label": "关联选择模式",
@ -406,7 +406,7 @@ icon:
"name": "b",
"sortable": true,
"searchable": true,
"deferApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock/form/deferOptions?label=${label}",
"deferApi": "/api/mock/form/deferOptions?label=${label}",
"selectMode": "associated",
"leftMode": "tree",
"leftOptions": [

View File

@ -13,7 +13,7 @@ order: 60
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "tree-select",

View File

@ -15,7 +15,7 @@ order: 30
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{
@ -35,7 +35,7 @@ order: 30
```schema:height="200" scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"debug": true,
"body": [
{

View File

@ -15,7 +15,7 @@ order: 56
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"api": "/api/sample?perPage=5",
"body": [
{
"type": "panel",

View File

@ -180,7 +180,7 @@ List 的内容、Card 卡片的内容配置同上
"type": "mapping",
"name": "type",
"label": "映射",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mapping"
"source": "/api/mapping"
}
]
}
@ -198,7 +198,7 @@ List 的内容、Card 卡片的内容配置同上
{
"type": "form",
"initApi": {
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mapping",
"url": "/api/mapping",
"method": "get",
"responseData": {
"zidian": "$$$$",

View File

@ -31,7 +31,7 @@ order: 58
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "group",

View File

@ -114,7 +114,7 @@ order: 58
{
"type": "nav",
"stacked": true,
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/options/nav?parentId=${value}"
"source": "/api/options/nav?parentId=${value}"
}
```

View File

@ -28,7 +28,7 @@ Page 组件是 amis 页面 JSON 配置中顶级容器组件,是整个页面配
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -76,7 +76,7 @@ Page 默认将页面分为几个区域,分别是**内容区(`body`**、**
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"body": [
{
"type": "tpl",
@ -98,7 +98,7 @@ Page 默认将页面分为几个区域,分别是**内容区(`body`**、**
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"interval": 3000,
"body": [
{
@ -114,7 +114,7 @@ Page 默认将页面分为几个区域,分别是**内容区(`body`**、**
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"stopAutoRefreshWhen": "this.time % 5", // 当时间戳能被5整除时停止轮询
"interval": 3000,
"body": [

View File

@ -16,7 +16,7 @@ order: 59
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/table",
"api": "/api/mock2/crud/table",
"body": [
{
"type": "pagination-wrapper",

View File

@ -14,7 +14,7 @@ icon:
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData?keywords=${keywords}",
"initApi": "/api/mock2/page/initData?keywords=${keywords}",
"body": [
{
"type": "search-box",
@ -34,7 +34,7 @@ icon:
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData?keywords=${keywords}",
"initApi": "/api/mock2/page/initData?keywords=${keywords}",
"body": [
{
"type": "search-box",
@ -55,7 +55,7 @@ icon:
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"syncLocation": false,
"headerToolbar": [
{
@ -102,7 +102,7 @@ icon:
"body": [
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData?keywords=${keywords}",
"api": "/api/mock2/page/initData?keywords=${keywords}",
"body": [
{
"type": "search-box",

View File

@ -19,7 +19,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"api": "/api/mock2/page/initData",
"body": {
"type": "panel",
"title": "$title",
@ -50,7 +50,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/table?perPage=5",
"api": "/api/mock2/crud/table?perPage=5",
"body": [
{
"type": "table",
@ -188,7 +188,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="body"
{
"type": "service",
"schemaApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/schema?type=tabs"
"schemaApi": "/api/mock2/service/schema?type=tabs"
}
```
@ -242,7 +242,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="form-item2"
{
"type": "service",
"schemaApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/schema?type=controls"
"schemaApi": "/api/mock2/service/schema?type=controls"
}
```
@ -279,7 +279,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
{
"title": "",
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock/saveForm?waitSeconds=1",
"api": "/api/mock/saveForm?waitSeconds=1",
"mode": "horizontal",
"body": [
{
@ -306,7 +306,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
},
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?tpl=${tpl}",
"api": "/api/mock2/form/initData?tpl=${tpl}",
"body": [
{
"label": "名称",
@ -345,7 +345,7 @@ Service 支持通过 WebSocket 获取数据,只需要设置 ws由于无示
```json
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"api": "/api/mock2/page/initData",
"ws": "ws://localhost:8777",
"body": {
"type": "panel",

View File

@ -101,7 +101,7 @@ order: 68
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/steps/get",
"initApi": "/api/mock2/steps/get",
"body": [
{
"type": "steps",
@ -132,7 +132,7 @@ order: 68
"type": "page",
"body": {
"type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/steps/steps",
"initApi": "/api/mock2/steps/steps",
"body": [
{
"type": "steps",
@ -157,7 +157,7 @@ order: 68
{
"type": "steps",
"name": "steps",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/steps/steps"
"source": "/api/mock2/steps/steps"
}
]
}

View File

@ -15,7 +15,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"api": "/api/sample?perPage=5",
"body": [
{
"type": "table",
@ -310,7 +310,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -332,7 +332,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -354,7 +354,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"api": "/api/sample?perPage=5",
"body": [
{
"type": "table",
@ -404,7 +404,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"api": "/api/sample?perPage=5",
"className": "w-xxl",
"body": [
{
@ -457,7 +457,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -477,7 +477,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -501,7 +501,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -526,7 +526,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -558,7 +558,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -631,7 +631,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"affixHeader": false,
"combineNum": 1,
"columns": [
@ -665,7 +665,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -878,7 +878,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"api": "/api/sample?perPage=5",
"body": [
{
"type": "table",
@ -1062,7 +1062,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"api": "/api/sample?perPage=5",
"body": [
{
"type": "table",
@ -1120,7 +1120,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"api": "/api/sample?perPage=10",
"body": [
{
"type": "table",
@ -1169,7 +1169,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"api": "/api/sample?perPage=10",
"body": [
{
"type": "table",
@ -1207,7 +1207,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"api": "/api/sample?perPage=10",
"body": [
{
"type": "table",
@ -1253,7 +1253,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"api": "/api/sample?perPage=10",
"body": [
{
"type": "table",

View File

@ -69,7 +69,7 @@ order: 69
{
"type": "tasks",
"name": "tasks",
"checkApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/task"
"checkApi": "/api/mock2/task"
},
"为了演示,目前获取的状态都是随机出现的。"]

View File

@ -15,7 +15,7 @@ order: 73
```schema: scope="body"
{
"type": "wizard",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
"api": "/api/mock2/form/saveForm?waitSeconds=2",
"mode": "vertical",
"steps": [
{

View File

@ -25,7 +25,7 @@ order: 12
"type": "action",
"label": "发出一个请求",
"actionType": "ajax",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
"api": "/api/mock2/form/saveForm"
}
```

View File

@ -70,7 +70,7 @@ order: 12
```schema: scope="body"
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",
@ -111,7 +111,7 @@ order: 12
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"data": {
"userName": "${name}",
"userEmail": "${email}"
@ -162,7 +162,7 @@ order: 12
}
},
"api": {
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"method": "post",
"data": {
"name": "${name}",
@ -214,7 +214,7 @@ order: 12
}
},
"api": {
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"method": "post",
"data": {
"name": "${name}",
@ -266,7 +266,7 @@ order: 12
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"data": {
"items": {
"$table": {
@ -1598,7 +1598,7 @@ ${xxx | map[:filterName][:...args]}
"mode": "horizontal",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"data": {
"test": "${combo2|pick:text|map:toInt|map:date:LLL:x}"
}

View File

@ -49,7 +49,7 @@ order: 10
```schema
{
"type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"initApi": "/api/mock2/page/initData",
"body": "date is ${date}"
}
```
@ -340,7 +340,7 @@ page
"type": "page",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"api": "/api/mock2/form/saveForm",
"body": [
{
"type": "input-text",

View File

@ -110,7 +110,7 @@ order: 14
"type": "select",
"size": "sm",
"name": "b",
"source": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/level2?a=${a}",
"source": "/api/mock2/options/level2?a=${a}",
"description": "切换<code>选项1</code>的值,会触发<code>选项2</code><code>source</code> 接口重新拉取"
}
],
@ -182,7 +182,7 @@ order: 14
"name": "b",
"source": {
"method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/level2?a=${a}",
"url": "/api/mock2/options/level2?a=${a}",
"sendOn": "this.a === 2"
},
"description": "只有<code>选项1</code>选择<code>B</code>的时候,才触发<code>选项2</code><code>source</code>接口重新拉取"
@ -219,7 +219,7 @@ order: 14
"label": "Select",
"source": {
"method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/getOptions?waitSeconds=1",
"url": "/api/mock2/form/getOptions?waitSeconds=1",
"data": {
"a": "${keyword}"
}
@ -259,7 +259,7 @@ order: 14
},
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [
{
"name": "id",
@ -306,7 +306,7 @@ order: 14
{
"type": "crud",
"name": "my_crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [
{
"name": "id",

View File

@ -243,7 +243,7 @@ Page
}, {
"type": "crud",
"className": "m-t-sm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"columns": [{
"name": "id",
"label": "ID"

View File

@ -29,7 +29,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"type": "crud",
"draggable": true,
"syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"api": "/api/sample",
"keepItemSelectionOnPageChange": true,
"filter": {
"title": "筛选",
@ -51,7 +51,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"type": "button",
"label": "批量删除",
"actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}",
"api": "delete:/api/sample/${ids|raw}",
"confirmText": "确定要批量删除?"
},
{
@ -63,7 +63,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"name": "sample-bulk-edit",
"body": {
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2",
"api": "/api/sample/bulkUpdate2",
"body": [
{
"type": "hidden",
@ -79,8 +79,8 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
}
}
],
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id",
"quickSaveApi": "/api/sample/bulkUpdate",
"quickSaveItemApi": "/api/sample/$id",
"filterTogglable": true,
"headerToolbar": [
"filter-toggler",
@ -90,7 +90,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"label": "重置测试数据",
"actionType": "ajax",
"size": "sm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/reset"
"api": "/api/sample/reset"
},
"export-excel",
{
@ -157,7 +157,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"actionType": "ajax",
"label": "删除",
"confirmText": "您确认要删除?",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
"api": "delete:/api/sample/$id"
}
]
}

View File

@ -143,7 +143,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"data": {
"myName": "${name}",
"myEmail": "${email}"
@ -196,7 +196,7 @@ API 还支持配置对象类型
"title": "默认JSON格式",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"data":{
"&": "$$$$" // 获取表单数据域中的所有值
}
@ -225,7 +225,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"dataType": "form"
},
"body": [
@ -252,7 +252,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"dataType": "form-data"
},
"body": [
@ -277,7 +277,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
"url": "/api/mock2/form/saveForm"
},
"body": [
{
@ -306,7 +306,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"headers": {
"my-header": "aaa"
}
@ -363,7 +363,7 @@ API 还支持配置对象类型
"name": "b",
"source": {
"method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/level2?a=${a}",
"url": "/api/mock2/options/level2?a=${a}",
"sendOn": "this.a === 2"
},
"description": "只有<code>选项1</code>选择<code>B</code>的时候,才触发<code>选项2</code><code>source</code>接口重新拉取"
@ -382,7 +382,7 @@ API 还支持配置对象类型
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -391,7 +391,7 @@ API 还支持配置对象类型
{
"type": "service",
"label": "数据",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"api": "/api/mock2/page/initData",
"body": {
"type": "tpl",
"tpl": "当前日期是:${date}"
@ -408,7 +408,7 @@ API 还支持配置对象类型
```schema: scope="body"
{
"type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"api": "/api/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -419,7 +419,7 @@ API 还支持配置对象类型
"label": "数据",
"api": {
"method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"url": "/api/mock2/page/initData",
"cache": 2000
},
"body": {
@ -539,7 +539,7 @@ function (api) {
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"requestAdaptor": "return {\n ...api,\n data: {\n ...api.data, // 获取暴露的 api 中的 data 变量\n foo: 'bar' // 新添加数据\n }\n}"
},
"body": [
@ -581,8 +581,7 @@ const schema = {
type: 'form',
api: {
method: 'post',
url:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm',
url: '/api/mock2/form/saveForm',
requestAdaptor: function (api) {
return {
...api,
@ -646,7 +645,7 @@ function (payload, response) {
"type": "form",
"api": {
"method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"url": "/api/mock2/form/saveForm",
"adaptor": "return {\n ...payload,\n status: payload.code === 200 ? 0 : payload.code\n}"
},
"body": [
@ -686,8 +685,7 @@ const schema = {
type: 'form',
api: {
method: 'post',
url:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm',
url: '/api/mock2/form/saveForm',
adaptor: function (payload, response) {
return {
...payload,
@ -853,7 +851,7 @@ Content-Disposition: attachment; filename="download.pdf"
"name": "b",
"source": {
"method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/level2",
"url": "/api/mock2/options/level2",
"trackExpression": "${a}"
},
"description": "切换<code>选项1</code>的值,会触发<code>选项2</code><code>source</code> 接口重新拉取"

View File

@ -82,15 +82,13 @@ export default {
label: '表单',
url: '/form',
icon: 'fa fa-plus',
schemaApi:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/schema?type=form'
schemaApi: '/api/mock2/service/schema?type=form'
},
{
label: '列表',
url: '/crud/list',
icon: 'fa fa-list',
schemaApi:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/schema?type=crud'
schemaApi: '/api/mock2/service/schema?type=crud'
}
]
},

View File

@ -5,8 +5,7 @@ export default {
type: 'audio',
autoPlay: false,
rates: [1.0, 1.5, 2.0],
src:
'https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3'
src: __uri('../static/audio/chicane-poppiholla-original-radio-edit.mp3')
},
{
type: 'form',
@ -22,15 +21,17 @@ export default {
subTitle: '专辑名称',
description: 'description',
avatarClassName: 'pull-left thumb-md avatar m-r no-border',
avatar:
'http://hiphotos.baidu.com/fex/%70%69%63/item/c9fcc3cec3fdfc03ccabb38edd3f8794a4c22630.jpg'
avatar: __uri(
'../static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'
)
}
},
{
type: 'audio',
className: 'v-middle no-border',
src:
'https://amis.bj.bcebos.com/amis/2019-7/1562137295708/chicane-poppiholla-original-radio-edit%20(1).mp3',
src: __uri(
'../static/audio/chicane-poppiholla-original-radio-edit.mp3'
),
controls: ['play']
}
]

View File

@ -4,8 +4,7 @@ export default {
type: 'nav',
name: 'nav',
stacked: true,
source:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/options/nav?parentId=${value}&waitSeconds=2'
source: '/api/options/nav?parentId=${value}&waitSeconds=2'
},
toolbar: [
{

View File

@ -3,7 +3,6 @@ export default {
subTitle: '返回表格数据的同时返回列信息',
body: {
type: 'crud',
api:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/crud/dynamic?waitSeconds=1'
api: '/api/crud/dynamic?waitSeconds=1'
}
};

View File

@ -9,8 +9,6 @@ const table = {
grade: 'U',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 56,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -24,8 +22,6 @@ const table = {
grade: 'C',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 55,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -39,8 +35,6 @@ const table = {
grade: 'C',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 55,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -54,8 +48,6 @@ const table = {
grade: 'U',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 56,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -69,8 +61,6 @@ const table = {
grade: 'C',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 55,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -84,8 +74,6 @@ const table = {
grade: 'C',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 55,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -99,8 +87,6 @@ const table = {
grade: 'U',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 56,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -114,8 +100,6 @@ const table = {
grade: 'C',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 55,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -129,8 +113,6 @@ const table = {
grade: 'C',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 55,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',
@ -144,8 +126,6 @@ const table = {
grade: 'U',
progress: 50,
status: true,
image:
'http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg',
weight: 56,
others: null,
createdAt: '2017-11-17T08:47:50.000Z',

View File

@ -3,9 +3,9 @@ export default {
title: '轮播图',
data: {
carousel0: [
'https://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg',
'https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png',
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg'
__uri('../static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'),
__uri('../static/photo/da6376bf988c.jpg'),
__uri('../static/photo/3893101144.jpg')
],
carousel1: [
{
@ -13,12 +13,12 @@ export default {
'<div style="width: 100%; height: 300px; background: #e3e3e3; text-align: center; line-height: 300px;">carousel data in form</div>'
},
{
image:
'https://hiphotos.baidu.com/fex/%70%69%63/item/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'
image: __uri(
'../static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44.jpg'
)
},
{
image:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg'
image: __uri('../static/photo/3893101144.jpg')
}
]
},
@ -35,16 +35,14 @@ export default {
height: '300',
options: [
{
image:
'https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png'
image: __uri('../static/photo/da6376bf988c.jpg')
},
{
html:
'<div style="width: 100%; height: 300px; background: #e3e3e3; text-align: center; line-height: 300px;">carousel data</div>'
},
{
image:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg'
image: __uri('../static/photo/3893101144.jpg')
}
]
}

View File

@ -466,20 +466,17 @@ export default {
desc: '支持放张图片',
options: [
{
image:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg',
image: __uri('../../static/photo/3893101144.jpg'),
value: 1,
label: '图片1'
},
{
image:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg',
image: __uri('../../static/photo/3893101144.jpg'),
value: 2,
label: '图片2'
},
{
image:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg',
image: __uri('../../static/photo/3893101144.jpg'),
value: 3,
label: '图片3'
}
@ -847,8 +844,7 @@ export default {
type: 'input-image',
name: 'image',
label: '图片有默认占位图',
frameImage:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg',
frameImage: __uri('../../static/photo/3893101144.jpg'),
fixedSize: true,
fixedSizeClassName: 'h-32'
},

View File

@ -2,38 +2,27 @@ export default {
title: '所有 Form 元素列举',
data: {
id: 1,
image:
'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg',
image: __uri('../../static/photo/3893101144.jpg'),
images: [
{
image:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692722/4f3cb4202335.jpeg@s_0,w_216,l_1,f_jpg,q_80',
src:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692722/4f3cb4202335.jpeg'
image: __uri('../../static/photo/4f3cb4202335.jpg'),
src: __uri('../../static/photo/4f3cb4202335.jpg')
},
{
image:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692942/d8e4992057f9.jpeg@s_0,w_216,l_1,f_jpg,q_80',
src:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395692942/d8e4992057f9.jpeg'
image: __uri('../../static/photo/d8e4992057f9.jpg'),
src: __uri('../../static/photo/d8e4992057f9.jpg')
},
{
image:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693148/1314a2a3d3f6.jpeg@s_0,w_216,l_1,f_jpg,q_80',
src:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693148/1314a2a3d3f6.jpeg'
image: __uri('../../static/photo/1314a2a3d3f6.jpg'),
src: __uri('../../static/photo/1314a2a3d3f6.jpg')
},
{
image:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693379/8f2e79f82be0.jpeg@s_0,w_216,l_1,f_jpg,q_80',
src:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693379/8f2e79f82be0.jpeg'
image: __uri('../../static/photo/8f2e79f82be0.jpg'),
src: __uri('../../static/photo/8f2e79f82be0.jpg')
},
{
image:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693566/552b175ef11d.jpeg@s_0,w_216,l_1,f_jpg,q_80',
src:
'https://internal-amis-res.cdn.bcebos.com/images/2020-1/1578395693566/552b175ef11d.jpeg'
image: __uri('../../static/photo/552b175ef11d.jpg'),
src: __uri('../../static/photo/552b175ef11d.jpg')
}
]
},

View File

@ -13,10 +13,8 @@ export default {
'00:20': '',
'00:30': ''
},
src:
'https://amis.bj.bcebos.com/amis/2019-12/1577157317579/trailer_hd.mp4',
poster:
'https://internal-amis-res.cdn.bcebos.com/images/2019-12/1577157239810/da6376bf988c.png'
src: __uri('../static/video/trailer_hd.mp4'),
poster: __uri('../static/photo/da6376bf988c.jpg')
}
]
};

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="284px" height="89px" viewBox="0 0 284 89" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
<title>编组</title>
<desc>Created with Sketch.</desc>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

File diff suppressed because one or more lines are too long

2513
examples/static/iconfont.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 694 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Some files were not shown because too many files have changed in this diff Show More