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 /package-lock.json
/schema.json /schema.json
/npm /npm
/mock/cfc/cfc.zip

View File

@ -5,6 +5,7 @@
"typescript.tsdk": "node_modules/typescript/lib", "typescript.tsdk": "node_modules/typescript/lib",
"gitHistory.showEditorTitleMenuBarIcons": false, "gitHistory.showEditorTitleMenuBarIcons": false,
"search.exclude": { "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', type: 'service',
className: 'm-t', className: 'm-t',
initFetchSchemaOn: 'data.tpl', initFetchSchemaOn: 'data.tpl',
schemaApi: schemaApi: '/api/mock2/service/form?tpl=$tpl'
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/form?tpl=$tpl'
} }
], ],
submitText: null, submitText: null,

View File

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

View File

@ -18,7 +18,7 @@ order: 31
"subTitle": "副标题", "subTitle": "副标题",
"description": "这是一段描述", "description": "这是一段描述",
"avatarClassName": "pull-left thumb-md avatar b-3x m-r", "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": "这里是内容", "body": "这里是内容",
"actions": [ "actions": [

View File

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

View File

@ -15,7 +15,7 @@ order: 34
```schema: scope="body" ```schema: scope="body"
{ {
"type": "chart", "type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart", "api": "/api/mock2/chart/chart",
"interval": 5000 "interval": 5000
} }
``` ```
@ -124,7 +124,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
}, },
{ {
"type": "chart", "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" ```schema: scope="body"
{ {
"type": "chart", "type": "chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chartData", "api": "/api/mock2/chart/chartData",
"config": { "config": {
"xAxis": { "xAxis": {
"type": "category", "type": "category",
@ -177,7 +177,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chartData", "api": "/api/mock2/chart/chartData",
"interval": 3000, "interval": 3000,
"body": [ "body": [
{ {
@ -308,7 +308,7 @@ api 返回支持两种格式,一种是直接返回完整 echarts 配置,数
}, },
{ {
"type": "chart", "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" ```schema: scope="body"
{ {
"type": "chart", "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", "type": "chart",
"name": "chart1", "name": "chart1",
"initFetch": false, "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", "type": "chart",
"name": "chart2", "name": "chart2",
"initFetch": false, "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" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"syncLocation": false, "syncLocation": false,
"columns": [ "columns": [
{ {
@ -282,7 +282,7 @@ Table 模式支持 [Table](./table) 中的所有功能。
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"syncLocation": false, "syncLocation": false,
"columns": [ "columns": [
{ {
@ -318,7 +318,7 @@ List 模式支持 [List](./list) 中的所有功能。
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "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", "mode": "list",
"placeholder": "当前组内, 还没有配置任何权限.", "placeholder": "当前组内, 还没有配置任何权限.",
"syncLocation": false, "syncLocation": false,
@ -364,7 +364,7 @@ List 模式支持 [List](./list) 中的所有功能。
"icon": "fa fa-times", "icon": "fa fa-times",
"confirmText": "您确定要移除该权限?", "confirmText": "您确定要移除该权限?",
"actionType": "ajax", "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" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/users", "api": "/api/mock2/crud/users",
"syncLocation": false, "syncLocation": false,
"mode": "cards", "mode": "cards",
"defaultParams": { "defaultParams": {
@ -458,7 +458,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
"label": "移除", "label": "移除",
"confirmText": "您确定要移除该用户?", "confirmText": "您确定要移除该用户?",
"actionType": "ajax", "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", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"filter": { "filter": {
"title": "条件搜索", "title": "条件搜索",
"body": [ "body": [
@ -527,7 +527,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"defaultParams": { "defaultParams": {
"perPage": 50 "perPage": 50
}, },
@ -570,7 +570,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"interval": 3000, "interval": 3000,
"columns": [ "columns": [
{ {
@ -615,7 +615,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -649,7 +649,7 @@ amis 只负责生成排序组件,并将排序参数传递给接口,而不会
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -682,7 +682,7 @@ amis 只负责生成搜索组件,并将搜索参数传递给接口,而不会
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -725,8 +725,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate", "quickSaveApi": "/api/sample/bulkUpdate",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -749,8 +749,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate", "quickSaveApi": "/api/sample/bulkUpdate",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -780,8 +780,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate", "quickSaveApi": "/api/sample/bulkUpdate",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -824,8 +824,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate", "quickSaveApi": "/api/sample/bulkUpdate",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -859,8 +859,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id", "quickSaveItemApi": "/api/sample/$id",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -893,7 +893,7 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -914,7 +914,7 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
"X" "X"
], ],
"saveImmediately": { "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", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate", "quickSaveApi": "/api/sample/bulkUpdate",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -955,7 +955,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": [ "headerToolbar": [
{ {
"type": "tpl", "type": "tpl",
@ -1043,7 +1043,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"type": "crud", "type": "crud",
"name": "myCRUD", "name": "myCRUD",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": [ "headerToolbar": [
{ {
"label": "点击弹框", "label": "点击弹框",
@ -1087,7 +1087,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": [], "headerToolbar": [],
"footerToolbar": ["switch-per-page", "pagination"], "footerToolbar": ["switch-per-page", "pagination"],
"columns": [ "columns": [
@ -1110,7 +1110,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"X" "X"
], ],
"saveImmediately": { "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", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": [ "headerToolbar": [
"bulkActions" "bulkActions"
], ],
@ -1234,7 +1234,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"label": "批量删除", "label": "批量删除",
"actionType": "ajax", "actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}", "api": "delete:/api/sample/${ids|raw}",
"confirmText": "确定要批量删除?" "confirmText": "确定要批量删除?"
}, },
{ {
@ -1244,7 +1244,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"title": "批量编辑", "title": "批量编辑",
"body": { "body": {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2", "api": "/api/sample/bulkUpdate2",
"body": [ "body": [
{ {
"type": "hidden", "type": "hidden",
@ -1318,7 +1318,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": [ "headerToolbar": [
"bulkActions" "bulkActions"
], ],
@ -1328,7 +1328,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"label": "批量删除", "label": "批量删除",
"actionType": "ajax", "actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}", "api": "delete:/api/sample/${ids|raw}",
"confirmText": "确定要批量删除?" "confirmText": "确定要批量删除?"
}, },
{ {
@ -1338,7 +1338,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"title": "批量编辑", "title": "批量编辑",
"body": { "body": {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2", "api": "/api/sample/bulkUpdate2",
"body": [ "body": [
{ {
"type": "hidden", "type": "hidden",
@ -1391,7 +1391,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": ["statistics"], "headerToolbar": ["statistics"],
"columns": [ "columns": [
{ {
@ -1430,7 +1430,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": ["load-more"], "headerToolbar": ["load-more"],
"columns": [ "columns": [
{ {
@ -1512,7 +1512,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"headerToolbar": ["export-excel"], "headerToolbar": ["export-excel"],
"columns": [ "columns": [
{ {
@ -1556,7 +1556,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"headerToolbar": [{ "headerToolbar": [{
"type": "export-excel", "type": "export-excel",
"label": "全量导出 Excel", "label": "全量导出 Excel",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample" "api": "/api/sample"
}], }],
"columns": [ "columns": [
{ {
@ -1601,7 +1601,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"type": "export-excel", "type": "export-excel",
"label": "自定义导出 Excel", "label": "自定义导出 Excel",
"filename": "自定义文件名${test}", "filename": "自定义文件名${test}",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample" "api": "/api/sample"
}], }],
"columns": [ "columns": [
{ {
@ -1640,7 +1640,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"filter": { "filter": {
"title": "条件搜索", "title": "条件搜索",
"body": [ "body": [
@ -1696,7 +1696,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"draggable": true, "draggable": true,
"columns": [ "columns": [
{ {
@ -1767,7 +1767,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"draggable": true, "draggable": true,
"columns": [ "columns": [
{ {
@ -1898,7 +1898,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"loadDataOnce": true, "loadDataOnce": true,
"columns": [ "columns": [
{ {
@ -1936,7 +1936,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
{ {
"type": "crud", "type": "crud",
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"loadDataOnce": true, "loadDataOnce": true,
"source": "${rows | filter:engine:match:keywords}", "source": "${rows | filter:engine:match:keywords}",
"filter":{ "filter":{
@ -1991,7 +1991,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "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" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"draggable": true, "draggable": true,
"columns": [ "columns": [
{ {
@ -147,7 +147,7 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"draggable": true, "draggable": true,
"columns": [ "columns": [
{ {
@ -271,13 +271,13 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"type": "button", "type": "button",
"label": "默认的 ajax 请求", "label": "默认的 ajax 请求",
"actionType": "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", "type": "button",
"label": "ajax 请求成功后关闭弹框", "label": "ajax 请求成功后关闭弹框",
"actionType": "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 "close": true
} }
] ]
@ -335,7 +335,7 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"title": "在弹框中的表单", "title": "在弹框中的表单",
"body": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -385,12 +385,12 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"actionType": "ajax", "actionType": "ajax",
"primary": true, "primary": true,
"type": "button", "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": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -441,12 +441,12 @@ Dialog 弹框 主要由 [Action](./action) 触发,主要展示一个对话框
"actionType": "ajax", "actionType": "ajax",
"primary": true, "primary": true,
"type": "button", "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": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -484,7 +484,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"type": "button", "type": "button",
"label": "Feedback", "label": "Feedback",
"actionType": "ajax", "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": "点击我后会发送一个请求,请求回来后,弹出一个框。", "tooltip": "点击我后会发送一个请求,请求回来后,弹出一个框。",
"feedback": { "feedback": {
"title": "操作成功", "title": "操作成功",
@ -512,7 +512,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"title": "提示", "title": "提示",
"body": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -556,7 +556,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"label": "ajax请求 Feedback", "label": "ajax请求 Feedback",
"actionType": "ajax", "actionType": "ajax",
"close": true, "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": { "feedback": {
"body": "feedback弹框中不请求接口了直接点击按钮关闭", "body": "feedback弹框中不请求接口了直接点击按钮关闭",
"actions": [ "actions": [
@ -585,7 +585,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"dialog": { "dialog": {
"body": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -616,7 +616,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"feedback": { "feedback": {
"body": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "tpl", "type": "tpl",
@ -639,11 +639,11 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"label": "ajax Feedback", "label": "ajax Feedback",
"actionType": "ajax", "actionType": "ajax",
"close": true, "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": { "feedback": {
"body": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "tpl", "type": "tpl",
@ -681,7 +681,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"title": "提示", "title": "提示",
"body": { "body": {
"type": "form", "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": [ "body": [
{ {
"type": "tpl", "type": "tpl",
@ -724,7 +724,7 @@ feedback 反馈弹框是指,在 ajax 请求后,可以显示一个弹框,
"type": "button", "type": "button",
"label": "条件feedback", "label": "条件feedback",
"actionType": "ajax", "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": { "feedback": {
"visibleOn": "!(this.date % 2)", "visibleOn": "!(this.date % 2)",
"title": "操作成功", "title": "操作成功",

View File

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

View File

@ -16,13 +16,13 @@ order: 7
{ {
"type": "form", "type": "form",
"debug": true, "debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"name": "select3", "name": "select3",
"type": "chained-select", "type": "chained-select",
"label": "级联下拉", "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" "value": "a,b"
} }
] ]

View File

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

View File

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

View File

@ -68,7 +68,7 @@ icon:
"label": "动态选项", "label": "动态选项",
"type": "select", "type": "select",
"name": "select2", "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": "日期", "label": "日期",
@ -347,7 +347,7 @@ type Value = ValueGroup;
"label": "A", "label": "A",
"type": "select", "type": "select",
"name": "a", "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 "searchable": true
} }
] ]
@ -370,7 +370,7 @@ type Value = ValueGroup;
"label": "条件组件", "label": "条件组件",
"name": "conditions", "name": "conditions",
"description": "适合让用户自己拼查询条件,然后后端根据数据生成 query where", "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" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "diff-editor", "type": "diff-editor",
@ -33,7 +33,7 @@ order: 17
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "diff-editor", "type": "diff-editor",
@ -59,7 +59,7 @@ order: 17
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"data": { "data": {
"value1": "hello world", "value1": "hello world",
"value2": "hello wrold" "value2": "hello wrold"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ order: 47
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-rich-text", "type": "input-rich-text",
@ -35,7 +35,7 @@ order: 47
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-rich-text", "type": "input-rich-text",
@ -62,7 +62,7 @@ order: 47
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-rich-text", "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": [ "body": [
{ {
"type":"input-table", "type":"input-table",
@ -61,7 +61,7 @@ order: 54
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type":"input-table", "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": [ "body": [
{ {
"type": "input-table", "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": [ "body": [
{ {
"type": "input-table", "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": [ "body": [
{ {
"type": "input-table", "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": [ "body": [
{ {
"type": "input-table", "type": "input-table",
@ -283,7 +283,7 @@ order: 54
"type": "form", "type": "form",
"debug": true, "debug": true,
"mode": "horizontal", "mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -316,7 +316,7 @@ order: 54
"type": "form", "type": "form",
"debug": true, "debug": true,
"mode": "horizontal", "mode": "horizontal",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-text", "type": "input-text",

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ order: 59
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -67,7 +67,7 @@ order: 59
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "tree-select", "type": "tree-select",
@ -111,7 +111,7 @@ order: 59
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -165,7 +165,7 @@ order: 59
{ {
"type": "form", "type": "form",
"debug": true, "debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -251,7 +251,7 @@ order: 59
{ {
"type": "form", "type": "form",
"debug": true, "debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -335,7 +335,7 @@ order: 59
{ {
"type": "form", "type": "form",
"debug": true, "debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -421,7 +421,7 @@ order: 59
{ {
"type": "form", "type": "form",
"debug": true, "debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -469,7 +469,7 @@ order: 59
{ {
"type": "form", "type": "form",
"debug": true, "debug": true,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -531,7 +531,7 @@ order: 59
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
@ -579,13 +579,13 @@ order: 59
```schema: scope="body" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-tree", "type": "input-tree",
"name": "tree", "name": "tree",
"label": "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": [ "options": [
{ {
"label": "Folder A", "label": "Folder A",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -114,7 +114,7 @@ order: 58
{ {
"type": "nav", "type": "nav",
"stacked": true, "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" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -76,7 +76,7 @@ Page 默认将页面分为几个区域,分别是**内容区(`body`**、**
```schema ```schema
{ {
"type": "page", "type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData", "initApi": "/api/mock2/page/initData",
"body": [ "body": [
{ {
"type": "tpl", "type": "tpl",
@ -98,7 +98,7 @@ Page 默认将页面分为几个区域,分别是**内容区(`body`**、**
```schema ```schema
{ {
"type": "page", "type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData", "initApi": "/api/mock2/page/initData",
"interval": 3000, "interval": 3000,
"body": [ "body": [
{ {
@ -114,7 +114,7 @@ Page 默认将页面分为几个区域,分别是**内容区(`body`**、**
```schema ```schema
{ {
"type": "page", "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整除时停止轮询 "stopAutoRefreshWhen": "this.time % 5", // 当时间戳能被5整除时停止轮询
"interval": 3000, "interval": 3000,
"body": [ "body": [

View File

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

View File

@ -14,7 +14,7 @@ icon:
```schema ```schema
{ {
"type": "page", "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": [ "body": [
{ {
"type": "search-box", "type": "search-box",
@ -34,7 +34,7 @@ icon:
```schema ```schema
{ {
"type": "page", "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": [ "body": [
{ {
"type": "search-box", "type": "search-box",
@ -55,7 +55,7 @@ icon:
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"syncLocation": false, "syncLocation": false,
"headerToolbar": [ "headerToolbar": [
{ {
@ -102,7 +102,7 @@ icon:
"body": [ "body": [
{ {
"type": "service", "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": [ "body": [
{ {
"type": "search-box", "type": "search-box",

View File

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

View File

@ -101,7 +101,7 @@ order: 68
```schema ```schema
{ {
"type": "page", "type": "page",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/steps/get", "initApi": "/api/mock2/steps/get",
"body": [ "body": [
{ {
"type": "steps", "type": "steps",
@ -132,7 +132,7 @@ order: 68
"type": "page", "type": "page",
"body": { "body": {
"type": "form", "type": "form",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/steps/steps", "initApi": "/api/mock2/steps/steps",
"body": [ "body": [
{ {
"type": "steps", "type": "steps",
@ -157,7 +157,7 @@ order: 68
{ {
"type": "steps", "type": "steps",
"name": "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" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5", "api": "/api/sample?perPage=5",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -310,7 +310,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -332,7 +332,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -354,7 +354,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5", "api": "/api/sample?perPage=5",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -404,7 +404,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5", "api": "/api/sample?perPage=5",
"className": "w-xxl", "className": "w-xxl",
"body": [ "body": [
{ {
@ -457,7 +457,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -477,7 +477,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -501,7 +501,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -526,7 +526,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -558,7 +558,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -631,7 +631,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"affixHeader": false, "affixHeader": false,
"combineNum": 1, "combineNum": 1,
"columns": [ "columns": [
@ -665,7 +665,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -878,7 +878,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5", "api": "/api/sample?perPage=5",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -1062,7 +1062,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5", "api": "/api/sample?perPage=5",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -1120,7 +1120,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10", "api": "/api/sample?perPage=10",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -1169,7 +1169,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10", "api": "/api/sample?perPage=10",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -1207,7 +1207,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10", "api": "/api/sample?perPage=10",
"body": [ "body": [
{ {
"type": "table", "type": "table",
@ -1253,7 +1253,7 @@ order: 67
```schema: scope="body" ```schema: scope="body"
{ {
"type": "service", "type": "service",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10", "api": "/api/sample?perPage=10",
"body": [ "body": [
{ {
"type": "table", "type": "table",

View File

@ -69,7 +69,7 @@ order: 69
{ {
"type": "tasks", "type": "tasks",
"name": "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" ```schema: scope="body"
{ {
"type": "wizard", "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", "mode": "vertical",
"steps": [ "steps": [
{ {

View File

@ -25,7 +25,7 @@ order: 12
"type": "action", "type": "action",
"label": "发出一个请求", "label": "发出一个请求",
"actionType": "ajax", "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" ```schema: scope="body"
{ {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "api": "/api/mock2/form/saveForm",
"body": [ "body": [
{ {
"type": "input-text", "type": "input-text",
@ -111,7 +111,7 @@ order: 12
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"data": { "data": {
"userName": "${name}", "userName": "${name}",
"userEmail": "${email}" "userEmail": "${email}"
@ -162,7 +162,7 @@ order: 12
} }
}, },
"api": { "api": {
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"method": "post", "method": "post",
"data": { "data": {
"name": "${name}", "name": "${name}",
@ -214,7 +214,7 @@ order: 12
} }
}, },
"api": { "api": {
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"method": "post", "method": "post",
"data": { "data": {
"name": "${name}", "name": "${name}",
@ -266,7 +266,7 @@ order: 12
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"data": { "data": {
"items": { "items": {
"$table": { "$table": {
@ -1598,7 +1598,7 @@ ${xxx | map[:filterName][:...args]}
"mode": "horizontal", "mode": "horizontal",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"data": { "data": {
"test": "${combo2|pick:text|map:toInt|map:date:LLL:x}" "test": "${combo2|pick:text|map:toInt|map:date:LLL:x}"
} }

View File

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

View File

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

View File

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

View File

@ -29,7 +29,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"type": "crud", "type": "crud",
"draggable": true, "draggable": true,
"syncLocation": false, "syncLocation": false,
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample", "api": "/api/sample",
"keepItemSelectionOnPageChange": true, "keepItemSelectionOnPageChange": true,
"filter": { "filter": {
"title": "筛选", "title": "筛选",
@ -51,7 +51,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"type": "button", "type": "button",
"label": "批量删除", "label": "批量删除",
"actionType": "ajax", "actionType": "ajax",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}", "api": "delete:/api/sample/${ids|raw}",
"confirmText": "确定要批量删除?" "confirmText": "确定要批量删除?"
}, },
{ {
@ -63,7 +63,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"name": "sample-bulk-edit", "name": "sample-bulk-edit",
"body": { "body": {
"type": "form", "type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2", "api": "/api/sample/bulkUpdate2",
"body": [ "body": [
{ {
"type": "hidden", "type": "hidden",
@ -79,8 +79,8 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
} }
} }
], ],
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate", "quickSaveApi": "/api/sample/bulkUpdate",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id", "quickSaveItemApi": "/api/sample/$id",
"filterTogglable": true, "filterTogglable": true,
"headerToolbar": [ "headerToolbar": [
"filter-toggler", "filter-toggler",
@ -90,7 +90,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"label": "重置测试数据", "label": "重置测试数据",
"actionType": "ajax", "actionType": "ajax",
"size": "sm", "size": "sm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/reset" "api": "/api/sample/reset"
}, },
"export-excel", "export-excel",
{ {
@ -157,7 +157,7 @@ amis 是一个低代码前端框架,它使用 JSON 配置来生成页面,可
"actionType": "ajax", "actionType": "ajax",
"label": "删除", "label": "删除",
"confirmText": "您确认要删除?", "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", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"data": { "data": {
"myName": "${name}", "myName": "${name}",
"myEmail": "${email}" "myEmail": "${email}"
@ -196,7 +196,7 @@ API 还支持配置对象类型
"title": "默认JSON格式", "title": "默认JSON格式",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"data":{ "data":{
"&": "$$$$" // 获取表单数据域中的所有值 "&": "$$$$" // 获取表单数据域中的所有值
} }
@ -225,7 +225,7 @@ API 还支持配置对象类型
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"dataType": "form" "dataType": "form"
}, },
"body": [ "body": [
@ -252,7 +252,7 @@ API 还支持配置对象类型
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"dataType": "form-data" "dataType": "form-data"
}, },
"body": [ "body": [
@ -277,7 +277,7 @@ API 还支持配置对象类型
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm" "url": "/api/mock2/form/saveForm"
}, },
"body": [ "body": [
{ {
@ -306,7 +306,7 @@ API 还支持配置对象类型
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "method": "post",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", "url": "/api/mock2/form/saveForm",
"headers": { "headers": {
"my-header": "aaa" "my-header": "aaa"
} }
@ -363,7 +363,7 @@ API 还支持配置对象类型
"name": "b", "name": "b",
"source": { "source": {
"method": "get", "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" "sendOn": "this.a === 2"
}, },
"description": "只有<code>选项1</code>选择<code>B</code>的时候,才触发<code>选项2</code><code>source</code>接口重新拉取" "description": "只有<code>选项1</code>选择<code>B</code>的时候,才触发<code>选项2</code><code>source</code>接口重新拉取"
@ -382,7 +382,7 @@ API 还支持配置对象类型
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -391,7 +391,7 @@ API 还支持配置对象类型
{ {
"type": "service", "type": "service",
"label": "数据", "label": "数据",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData", "api": "/api/mock2/page/initData",
"body": { "body": {
"type": "tpl", "type": "tpl",
"tpl": "当前日期是:${date}" "tpl": "当前日期是:${date}"
@ -408,7 +408,7 @@ API 还支持配置对象类型
```schema: scope="body" ```schema: scope="body"
{ {
"type": "crud", "type": "crud",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1", "api": "/api/sample?waitSeconds=1",
"columns": [ "columns": [
{ {
"name": "id", "name": "id",
@ -419,7 +419,7 @@ API 还支持配置对象类型
"label": "数据", "label": "数据",
"api": { "api": {
"method": "get", "method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData", "url": "/api/mock2/page/initData",
"cache": 2000 "cache": 2000
}, },
"body": { "body": {
@ -539,7 +539,7 @@ function (api) {
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "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}" "requestAdaptor": "return {\n ...api,\n data: {\n ...api.data, // 获取暴露的 api 中的 data 变量\n foo: 'bar' // 新添加数据\n }\n}"
}, },
"body": [ "body": [
@ -581,8 +581,7 @@ const schema = {
type: 'form', type: 'form',
api: { api: {
method: 'post', method: 'post',
url: url: '/api/mock2/form/saveForm',
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm',
requestAdaptor: function (api) { requestAdaptor: function (api) {
return { return {
...api, ...api,
@ -646,7 +645,7 @@ function (payload, response) {
"type": "form", "type": "form",
"api": { "api": {
"method": "post", "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}" "adaptor": "return {\n ...payload,\n status: payload.code === 200 ? 0 : payload.code\n}"
}, },
"body": [ "body": [
@ -686,8 +685,7 @@ const schema = {
type: 'form', type: 'form',
api: { api: {
method: 'post', method: 'post',
url: url: '/api/mock2/form/saveForm',
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm',
adaptor: function (payload, response) { adaptor: function (payload, response) {
return { return {
...payload, ...payload,
@ -853,7 +851,7 @@ Content-Disposition: attachment; filename="download.pdf"
"name": "b", "name": "b",
"source": { "source": {
"method": "get", "method": "get",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/level2", "url": "/api/mock2/options/level2",
"trackExpression": "${a}" "trackExpression": "${a}"
}, },
"description": "切换<code>选项1</code>的值,会触发<code>选项2</code><code>source</code> 接口重新拉取" "description": "切换<code>选项1</code>的值,会触发<code>选项2</code><code>source</code> 接口重新拉取"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <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> <title>编组</title>
<desc>Created with Sketch.</desc> <desc>Created with Sketch.</desc>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <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