api mock 地址替换 (#1408)

This commit is contained in:
liaoxuezhi 2021-01-19 10:20:09 +08:00 committed by GitHub
parent b67f75b580
commit 4dfe5cf32a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
67 changed files with 404 additions and 393 deletions

View File

@ -1,73 +1,78 @@
import React = require('react');
import {render, cleanup} from 'react-testing-library';
import '../../../src/themes/default';
import {
render as amisRender
} from '../../../src/index';
import {render as amisRender} from '../../../src/index';
import {makeEnv, wait} from '../../helper';
import { clearStoresCache } from '../../../src/factory';
import {clearStoresCache} from '../../../src/factory';
afterEach(() => {
cleanup();
clearStoresCache();
cleanup();
clearStoresCache();
});
test('Renderer:service', async () => {
const fetcher = jest.fn().mockImplementation(() => Promise.resolve({
const fetcher = jest.fn().mockImplementation(() =>
Promise.resolve({
data: {
status: 0,
msg: 'ok',
data: {
status: 0,
msg: 'ok',
data: {
controls: [
{type: "text", label: "动态字段1", name: "dy_1", required: true},
{type: "text", label: "动态字段2", name: "dy_2"}
]
}
controls: [
{type: 'text', label: '动态字段1', name: 'dy_1', required: true},
{type: 'text', label: '动态字段2', name: 'dy_2'}
]
}
}));
}
})
);
const {
container
} = render(amisRender({
const {container} = render(
amisRender(
{
type: 'form',
title: 'The form',
controls: [
{
name: 'tpl',
type: 'select',
label: '模板',
inline: true,
required: true,
value: 'tpl1',
options: [
{
label: '模板1',
value: 'tpl1'
},
{
label: '模板2',
value: 'tpl2'
},
{
label: '模板3',
value: 'tpl3'
}
]
},
{
type: 'service',
className: 'm-t',
initFetchSchemaOn: 'data.tpl',
schemaApi: 'https://houtai.baidu.com/api/mock2/service/form?tpl=$tpl'
}
{
name: 'tpl',
type: 'select',
label: '模板',
inline: true,
required: true,
value: 'tpl1',
options: [
{
label: '模板1',
value: 'tpl1'
},
{
label: '模板2',
value: 'tpl2'
},
{
label: '模板3',
value: 'tpl3'
}
]
},
{
type: 'service',
className: 'm-t',
initFetchSchemaOn: 'data.tpl',
schemaApi:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/form?tpl=$tpl'
}
],
submitText: null,
actions: []
}, {}, makeEnv({
},
{},
makeEnv({
fetcher
})));
})
)
);
await wait(100);
expect(fetcher).toHaveBeenCalled();
expect(container).toMatchSnapshot();
});
await wait(100);
expect(fetcher).toHaveBeenCalled();
expect(container).toMatchSnapshot();
});

View File

@ -162,7 +162,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"type": "button",
"actionType": "ajax",
"confirmText": "确认要发出这个请求?",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
}
```
@ -175,7 +175,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"label": "ajax请求",
"type": "button",
"actionType": "ajax",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
}
```
@ -188,7 +188,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"label": "ajax请求",
"type": "button",
"actionType": "ajax",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"redirect": "./getting-started"
}
```
@ -200,7 +200,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"label": "ajax请求",
"type": "button",
"actionType": "ajax",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"redirect": "https://www.baidu.com/"
}
```
@ -212,7 +212,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"type": "button",
"label": "ajax 反馈弹框",
"actionType": "ajax",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"feedback": {
"title": "操作成功",
"body": "xxx 已操作成功"
@ -235,7 +235,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"type": "button",
"label": "ajax 请求",
"actionType": "ajax",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"reload": "crud"
},
{
@ -244,7 +244,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
{
"type": "crud",
"name": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -287,7 +287,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"type": "button",
"label": "ajax 请求",
"actionType": "ajax",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"messages": {
"success": "成功了!欧耶",
"failed": "失败了呢。。"
@ -358,7 +358,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"title": "表单设置",
"body": {
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"controls": [
{
"type": "text",
@ -390,7 +390,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
"title": "表单设置",
"body": {
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=1",
"controls": [
{
"type": "text",
@ -450,7 +450,7 @@ Action 行为按钮,是触发页面行为的主要方法之一
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",

View File

@ -15,7 +15,7 @@ order: 34
```schema: scope="body"
{
"type": "chart",
"api": "https://houtai.baidu.com/api/mock2/chart/chart",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart",
"interval": 5000
}
```
@ -122,7 +122,7 @@ order: 34
},
{
"type": "chart",
"api": "https://houtai.baidu.com/api/mock2/chart/chart1"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart1"
}
]
}
@ -236,7 +236,7 @@ order: 34
},
{
"type": "chart",
"api": "https://houtai.baidu.com/api/mock2/chart/chart1"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart1"
}
]
}
@ -251,7 +251,7 @@ order: 34
```schema: scope="body"
{
"type": "chart",
"api": "https://houtai.baidu.com/api/mock2/chart/chart1"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart1"
}
```
@ -306,13 +306,13 @@ order: 34
"type": "chart",
"name": "chart1",
"initFetch": false,
"api": "https://houtai.baidu.com/api/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"
},
{
"type": "chart",
"name": "chart2",
"initFetch": false,
"api": "https://houtai.baidu.com/api/mock2/chart/chart2?name=$name"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/chart/chart2?name=$name"
}
]
}

View File

@ -19,7 +19,7 @@ CRUD即增删改查组件主要用来展现数据列表并支持各类
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"syncLocation": false,
"columns": [
{
@ -282,7 +282,7 @@ Table 模式支持 [Table](./table) 中的所有功能。
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"syncLocation": false,
"columns": [
{
@ -316,7 +316,7 @@ List 模式支持 [List](./list) 中的所有功能。
```schema: scope="body"
{
"type": "crud",
"api": "raw:https://houtai.baidu.com/api/mock2/crud/permissions",
"api": "raw:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/permissions",
"mode": "list",
"placeholder": "当前组内, 还没有配置任何权限.",
"syncLocation": false,
@ -362,7 +362,7 @@ List 模式支持 [List](./list) 中的所有功能。
"icon": "fa fa-times",
"confirmText": "您确定要移除该权限?",
"actionType": "ajax",
"api": "delete:https://houtai.baidu.com/api/mock2/notFound"
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/notFound"
}
]
}
@ -376,7 +376,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/mock2/crud/users",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/users",
"syncLocation": false,
"mode": "cards",
"defaultParams": {
@ -456,7 +456,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
"label": "移除",
"confirmText": "您确定要移除该用户?",
"actionType": "ajax",
"api": "delete:https://houtai.baidu.com/api/mock2/notFound"
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/notFound"
}
]
}
@ -473,7 +473,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"filter": {
"title": "条件搜索",
"controls": [
@ -525,7 +525,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"defaultParams": {
"perPage": 50
},
@ -568,7 +568,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"interval": 3000,
"columns": [
{
@ -613,7 +613,7 @@ Cards 模式支持 [Cards](./cards) 中的所有功能。
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"columns": [
{
"name": "id",
@ -647,7 +647,7 @@ amis 只负责生成排序组件,并将排序参数传递给接口,而不会
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"columns": [
{
"name": "id",
@ -680,7 +680,7 @@ amis 只负责生成搜索组件,并将搜索参数传递给接口,而不会
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"columns": [
{
"name": "id",
@ -723,8 +723,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"quickSaveApi": "https://houtai.baidu.com/api/sample/bulkUpdate",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -747,8 +747,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"quickSaveApi": "https://houtai.baidu.com/api/sample/bulkUpdate",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -780,8 +780,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"quickSaveApi": "https://houtai.baidu.com/api/sample/bulkUpdate",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate",
"columns": [
{
"name": "id",
@ -815,8 +815,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"quickSaveItemApi": "https://houtai.baidu.com/api/sample/$id",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"quickSaveItemApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id",
"columns": [
{
"name": "id",
@ -849,7 +849,7 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"columns": [
{
"name": "id",
@ -870,7 +870,7 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口,
"X"
],
"saveImmediately": {
"api": "https://houtai.baidu.com/api/sample/$id"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
}
}
}
@ -886,7 +886,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"headerToolbar": [
{
"type": "tpl",
@ -962,7 +962,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"headerToolbar": [],
"footerToolbar": ["switch-per-page", "pagination"],
"columns": [
@ -985,7 +985,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"X"
],
"saveImmediately": {
"api": "https://houtai.baidu.com/api/sample/$id"
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/$id"
}
}
}
@ -1101,7 +1101,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"headerToolbar": [
"bulkActions"
],
@ -1109,7 +1109,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"label": "批量删除",
"actionType": "ajax",
"api": "delete:https://houtai.baidu.com/api/sample/${ids|raw}",
"api": "delete:https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/${ids|raw}",
"confirmText": "确定要批量删除?"
},
{
@ -1119,7 +1119,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
"title": "批量编辑",
"body": {
"type": "form",
"api": "https://houtai.baidu.com/api/sample/bulkUpdate2",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample/bulkUpdate2",
"controls": [
{
"type": "hidden",
@ -1182,7 +1182,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"headerToolbar": ["statistics"],
"columns": [
{
@ -1221,7 +1221,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"headerToolbar": ["load-more"],
"columns": [
{
@ -1342,7 +1342,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"filter": {
"title": "条件搜索",
"controls": [
@ -1398,7 +1398,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"draggable": true,
"columns": [
{
@ -1469,7 +1469,7 @@ crud 组件支持通过配置`headerToolbar`和`footerToolbar`属性,实现在
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"draggable": true,
"columns": [
{
@ -1600,7 +1600,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"loadDataOnce": true,
"columns": [
{
@ -1638,7 +1638,7 @@ CRUD 中不限制有多少个单条操作、添加一个操作对应的添加一
{
"type": "crud",
"syncLocation": false,
"api": "https://houtai.baidu.com/api/sample",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample",
"loadDataOnce": true,
"source": "${rows | filter:engine:match:keywords}",
"filter":{

View File

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

View File

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

View File

@ -15,7 +15,7 @@ order: 4
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -42,7 +42,7 @@ order: 4
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -64,7 +64,7 @@ order: 4
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -371,7 +371,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -390,7 +390,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "number",
@ -419,7 +419,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -439,7 +439,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -462,7 +462,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -480,7 +480,7 @@ order: 1
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -502,7 +502,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -525,7 +525,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -585,7 +585,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveFormFailed?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveFormFailed?waitSeconds=1",
"controls": [
{
"name": "test2",
@ -622,7 +622,7 @@ Combo 类型的表单项,要实现服务端校验,可以使用 `路径key`
"type": "form",
"debug": true,
"mode": "horizontal",
"api": "https://houtai.baidu.com/api/mock2/form/saveFormFailedCombo?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveFormFailedCombo?waitSeconds=1",
"controls": [
{
"type": "combo",

View File

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

View File

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

View File

@ -15,13 +15,13 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "image",
"name": "image",
"label": "image",
"reciever": "https://houtai.baidu.com/api/upload/file"
"reciever": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
}
]
}
@ -48,14 +48,14 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "image",
"name": "image",
"label": "限制只能上传jpg图片",
"accept": ".jpg",
"reciever": "https://houtai.baidu.com/api/upload/file"
"reciever": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
}
]
}
@ -68,14 +68,14 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "image",
"name": "image",
"label": "限制只能上传jpg图片",
"accept": ".jpg",
"reciever": "https://houtai.baidu.com/api/upload/file",
"reciever": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"crop": true
}
]
@ -89,13 +89,13 @@ order: 27
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "image",
"name": "image",
"label": "image",
"reciever": "https://houtai.baidu.com/api/upload/file",
"reciever": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file",
"autoFill": {
"myUrl": "${url}"
}

View File

@ -19,7 +19,7 @@ order: 24
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -44,7 +44,7 @@ order: 24
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -356,7 +356,7 @@ Form 默认会在底部渲染一个提交按钮,用于执行表单的提交行
```schema: scope="body"
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/mock2/form/initData",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData",
"title": "编辑用户信息",
"controls": [
{
@ -383,7 +383,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/mock2/page/initData",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"interval": 3000,
"title": "表单",
"controls": [
@ -401,7 +401,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/mock2/page/initData",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"interval": 3000,
"title": "表单",
"stopAutoRefreshWhen": "this.date % 5",
@ -495,7 +495,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/saveForm",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/saveForm",
"title": "用户信息",
"controls": [
{
@ -552,7 +552,7 @@ Form 支持轮询初始化接口,步骤如下:
"type": "form",
"initApi": {
"method": "put",
"url": "https://houtai.baidu.com/api/mock2/page/initData",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"data": {
"&": "$$$$",
"_from": "browser"
@ -587,8 +587,8 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/mock2/page/initData",
"asyncApi": "https://houtai.baidu.com/api/mock2/page/initData",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"asyncApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"title": "用户信息",
"controls": [
{
@ -684,7 +684,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"resetAfterSubmit": true,
"controls": [
{
@ -712,7 +712,7 @@ Form 支持轮询初始化接口,步骤如下:
```schema: scope="body"
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/mock2/page/initData",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"redirect": "/user/list",
"title": "用户信息",
"controls": [
@ -738,7 +738,7 @@ Form 支持轮询初始化接口,步骤如下:
[
{
"type": "form",
"initApi": "https://houtai.baidu.com/api/mock2/page/initData",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"title": "用户信息",
"reload": "my_service",
"controls": [
@ -757,7 +757,7 @@ Form 支持轮询初始化接口,步骤如下:
{
"type": "service",
"name": "my_service",
"api": "https://houtai.baidu.com/api/mock2/page/initData",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"body": "service初识数据"
}
]
@ -787,7 +787,7 @@ Form 支持轮询初始化接口,步骤如下:
{
"type": "form",
"name": "detailForm",
"initApi": "https://houtai.baidu.com/api/mock2/page/initData?keywords=${keywords}",
"initApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData?keywords=${keywords}",
"controls": [
{
"label": "名称",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,7 +13,7 @@ order: 31
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "nested-select",
@ -60,7 +60,7 @@ order: 31
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "nested-select",
@ -146,7 +146,7 @@ order: 31
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "nested-select",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,11 +13,11 @@ order: 49
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/page/initData",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"controls": [
{
"type": "text",
@ -47,7 +47,7 @@ order: 49
```schema: scope="form-item"
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/page/initData",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"body": {
"type": "text",
"text": "现在是:${date}"
@ -60,7 +60,7 @@ order: 49
```schema: scope="form-item"
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/page/initData",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"controls": [
{
"type": "text",
@ -88,7 +88,7 @@ Service 中的`api`和`schemaApi`都支持**接口联动**。
{
"title": "",
"type": "form",
"api": "https://houtai.baidu.com/api/mock/saveForm?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock/saveForm?waitSeconds=1",
"mode": "horizontal",
"controls": [
{
@ -115,7 +115,7 @@ Service 中的`api`和`schemaApi`都支持**接口联动**。
},
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?tpl=${tpl}",
"controls": [
{
"label": "名称",
@ -164,7 +164,7 @@ Service 中的`api`和`schemaApi`都支持**接口联动**。
```schema: scope="form-item"
{
"type": "service",
"schemaApi": "https://houtai.baidu.com/api/mock2/service/schema?type=controls"
"schemaApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/schema?type=controls"
}
```

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",
@ -57,7 +57,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree-select",
@ -100,7 +100,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",
@ -186,7 +186,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",
@ -270,7 +270,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",
@ -356,7 +356,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",
@ -404,7 +404,7 @@ order: 59
{
"type": "form",
"debug": true,
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",
@ -466,7 +466,7 @@ order: 59
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "tree",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -19,7 +19,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/page/initData",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"body": {
"type": "panel",
"title": "$title",
@ -50,7 +50,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/crud/table?perPage=5",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/table?perPage=5",
"body": [
{
"type": "table",
@ -188,7 +188,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
```schema: scope="body"
{
"type": "service",
"schemaApi": "https://houtai.baidu.com/api/mock2/service/schema?type=tabs"
"schemaApi": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/service/schema?type=tabs"
}
```
@ -224,7 +224,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
{
"title": "",
"type": "form",
"api": "https://houtai.baidu.com/api/mock/saveForm?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock/saveForm?waitSeconds=1",
"mode": "horizontal",
"controls": [
{
@ -251,7 +251,7 @@ amis 中部分组件,作为展示组件,自身没有**使用接口初始化
},
{
"type": "service",
"api": "https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/initData?tpl=${tpl}",
"controls": [
{
"label": "名称",

View File

@ -15,7 +15,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=5",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"body": [
{
"type": "table",
@ -310,7 +310,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -332,7 +332,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -354,7 +354,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=5",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"body": [
{
"type": "table",
@ -404,7 +404,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=5",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"className": "w-xxl",
"body": [
{
@ -457,7 +457,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -477,7 +477,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -501,7 +501,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -526,7 +526,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -599,7 +599,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"affixHeader": false,
"combineNum": 1,
"columns": [
@ -633,7 +633,7 @@ order: 67
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -846,7 +846,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=5",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"body": [
{
"type": "table",
@ -1028,7 +1028,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=5",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=5",
"body": [
{
"type": "table",
@ -1086,7 +1086,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=10",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"body": [
{
"type": "table",
@ -1135,7 +1135,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=10",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"body": [
{
"type": "table",
@ -1173,7 +1173,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=10",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"body": [
{
"type": "table",
@ -1219,7 +1219,7 @@ order: 67
```schema: scope="body"
{
"type": "service",
"api": "https://houtai.baidu.com/api/sample?perPage=10",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?perPage=10",
"body": [
{
"type": "table",

View File

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

View File

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

View File

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

View File

@ -70,7 +70,7 @@ order: 12
```schema: scope="body"
{
"type": "form",
"api": "https://houtai.baidu.com/api/mock2/form/saveForm",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"controls": [
{
"type": "text",
@ -111,7 +111,7 @@ order: 12
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"data": {
"userName": "${name}",
"userEmail": "${email}"
@ -162,7 +162,7 @@ order: 12
}
},
"api": {
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"method": "post",
"data": {
"name": "${name}",
@ -214,7 +214,7 @@ order: 12
}
},
"api": {
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"method": "post",
"data": {
"name": "${name}",
@ -266,7 +266,7 @@ order: 12
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"data": {
"items": {
"$table": {

View File

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

View File

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

View File

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

View File

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

View File

@ -133,7 +133,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"data": {
"myName": "${name}",
"myEmail": "${email}"
@ -175,7 +175,7 @@ API 还支持配置对象类型
"title": "默认JSON格式",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"data":{
"&": "$$$$" // 获取表单数据域中的所有值
}
@ -204,7 +204,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"dataType": "form"
},
"controls": [
@ -231,7 +231,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"dataType": "form-data"
},
"controls": [
@ -256,7 +256,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm"
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm"
},
"controls": [
{
@ -285,7 +285,7 @@ API 还支持配置对象类型
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"headers": {
"my-header": "aaa"
}
@ -342,7 +342,7 @@ API 还支持配置对象类型
"name": "b",
"source": {
"method": "get",
"url": "https://houtai.baidu.com/api/mock2/options/level2?a=${a}",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/options/level2?a=${a}",
"sendOn": "this.a === 2"
},
"description": "只有<code>选项1</code>选择<code>B</code>的时候,才触发<code>选项2</code><code>source</code>接口重新拉取"
@ -361,7 +361,7 @@ API 还支持配置对象类型
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -370,7 +370,7 @@ API 还支持配置对象类型
{
"type": "service",
"label": "数据",
"api": "https://houtai.baidu.com/api/mock2/page/initData",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"body": {
"type": "tpl",
"tpl": "当前日期是:${date}"
@ -387,7 +387,7 @@ API 还支持配置对象类型
```schema: scope="body"
{
"type": "crud",
"api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample?waitSeconds=1",
"columns": [
{
"name": "id",
@ -398,7 +398,7 @@ API 还支持配置对象类型
"label": "数据",
"api": {
"method": "get",
"url": "https://houtai.baidu.com/api/mock2/page/initData",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/page/initData",
"cache": 2000
},
"body": {
@ -486,7 +486,7 @@ function (api) {
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"requestAdaptor": "return {\n ...api,\n data: {\n ...api.data, // 获取暴露的 api 中的 data 变量\n foo: 'bar' // 新添加数据\n }\n}"
},
"controls": [
@ -528,7 +528,8 @@ const schema = {
type: 'form',
api: {
method: 'post',
url: 'https://houtai.baidu.com/api/mock2/form/saveForm',
url:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm',
requestAdaptor: function (api) {
return {
...api,
@ -592,7 +593,7 @@ function (payload, responsee) {
"type": "form",
"api": {
"method": "post",
"url": "https://houtai.baidu.com/api/mock2/form/saveForm",
"url": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"adaptor": "return {\n ...payload,\n status: payload.code === 200 ? 0 : payload.code\n}"
},
"controls": [
@ -632,7 +633,8 @@ const schema = {
type: 'form',
api: {
method: 'post',
url: 'https://houtai.baidu.com/api/mock2/form/saveForm',
url:
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm',
adaptor: function (payload, response) {
return {
...payload,

View File

@ -642,7 +642,9 @@ if (fis.project.currentMedia() === 'publish') {
/(\\?(?:'|"))((?:get|post|delete|put)\:)?\/api\/mock2?/gi,
function (_, qutoa, method) {
return (
qutoa + (method || '') + 'https://houtai.baidu.com/api/mock2'
qutoa +
(method || '') +
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2'
);
}
)
@ -650,7 +652,9 @@ if (fis.project.currentMedia() === 'publish') {
/(\\?(?:'|"))((?:get|post|delete|put)\:)?\/api\/sample/gi,
function (_, qutoa, method) {
return (
qutoa + (method || '') + 'https://houtai.baidu.com/api/sample'
qutoa +
(method || '') +
'https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/sample'
);
}
);