diff --git a/__tests__/renderers/Form/service.test.tsx b/__tests__/renderers/Form/service.test.tsx index 59d602fe4..2f2610169 100644 --- a/__tests__/renderers/Form/service.test.tsx +++ b/__tests__/renderers/Form/service.test.tsx @@ -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(); -}); \ No newline at end of file + await wait(100); + expect(fetcher).toHaveBeenCalled(); + expect(container).toMatchSnapshot(); +}); diff --git a/docs/zh-CN/components/action.md b/docs/zh-CN/components/action.md index 7de030c62..7affe5372 100755 --- a/docs/zh-CN/components/action.md +++ b/docs/zh-CN/components/action.md @@ -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", diff --git a/docs/zh-CN/components/chart.md b/docs/zh-CN/components/chart.md index 617dbd547..25dea5e0e 100755 --- a/docs/zh-CN/components/chart.md +++ b/docs/zh-CN/components/chart.md @@ -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" } ] } diff --git a/docs/zh-CN/components/crud.md b/docs/zh-CN/components/crud.md index 3ba7f6399..5daf9b376 100755 --- a/docs/zh-CN/components/crud.md +++ b/docs/zh-CN/components/crud.md @@ -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":{ diff --git a/docs/zh-CN/components/dialog.md b/docs/zh-CN/components/dialog.md index 506460e26..a8215642c 100755 --- a/docs/zh-CN/components/dialog.md +++ b/docs/zh-CN/components/dialog.md @@ -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": "操作成功", diff --git a/docs/zh-CN/components/form/button-group.md b/docs/zh-CN/components/form/button-group.md index 7ba47655e..7a9cbb724 100755 --- a/docs/zh-CN/components/form/button-group.md +++ b/docs/zh-CN/components/form/button-group.md @@ -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": [ { diff --git a/docs/zh-CN/components/form/button.md b/docs/zh-CN/components/form/button.md index 8d516775f..f68781aea 100755 --- a/docs/zh-CN/components/form/button.md +++ b/docs/zh-CN/components/form/button.md @@ -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", diff --git a/docs/zh-CN/components/form/chain-select.md b/docs/zh-CN/components/form/chain-select.md index a6c268cfd..a4463152a 100755 --- a/docs/zh-CN/components/form/chain-select.md +++ b/docs/zh-CN/components/form/chain-select.md @@ -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" } ] diff --git a/docs/zh-CN/components/form/checkboxes.md b/docs/zh-CN/components/form/checkboxes.md index f337fdec7..a425f7d15 100755 --- a/docs/zh-CN/components/form/checkboxes.md +++ b/docs/zh-CN/components/form/checkboxes.md @@ -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", diff --git a/docs/zh-CN/components/form/city.md b/docs/zh-CN/components/form/city.md index deca8a67b..24c4a4b0d 100755 --- a/docs/zh-CN/components/form/city.md +++ b/docs/zh-CN/components/form/city.md @@ -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", diff --git a/docs/zh-CN/components/form/color.md b/docs/zh-CN/components/form/color.md index ac6424cee..956b7d7d1 100755 --- a/docs/zh-CN/components/form/color.md +++ b/docs/zh-CN/components/form/color.md @@ -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", diff --git a/docs/zh-CN/components/form/combo.md b/docs/zh-CN/components/form/combo.md index 923efa5fe..762bfe234 100755 --- a/docs/zh-CN/components/form/combo.md +++ b/docs/zh-CN/components/form/combo.md @@ -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", diff --git a/docs/zh-CN/components/form/date-range.md b/docs/zh-CN/components/form/date-range.md index eadbdf6da..ac03c2b66 100755 --- a/docs/zh-CN/components/form/date-range.md +++ b/docs/zh-CN/components/form/date-range.md @@ -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": [ { diff --git a/docs/zh-CN/components/form/date.md b/docs/zh-CN/components/form/date.md index f84c61051..96e258ea8 100755 --- a/docs/zh-CN/components/form/date.md +++ b/docs/zh-CN/components/form/date.md @@ -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", diff --git a/docs/zh-CN/components/form/datetime-range.md b/docs/zh-CN/components/form/datetime-range.md index b03314c45..7a5765c3d 100755 --- a/docs/zh-CN/components/form/datetime-range.md +++ b/docs/zh-CN/components/form/datetime-range.md @@ -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", diff --git a/docs/zh-CN/components/form/datetime.md b/docs/zh-CN/components/form/datetime.md index f751a126d..3bd49bb20 100755 --- a/docs/zh-CN/components/form/datetime.md +++ b/docs/zh-CN/components/form/datetime.md @@ -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", diff --git a/docs/zh-CN/components/form/diff-editor.md b/docs/zh-CN/components/form/diff-editor.md index ff055c05b..a7c0872ff 100755 --- a/docs/zh-CN/components/form/diff-editor.md +++ b/docs/zh-CN/components/form/diff-editor.md @@ -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" diff --git a/docs/zh-CN/components/form/editor.md b/docs/zh-CN/components/form/editor.md index 401c26a3c..8ef21c12e 100755 --- a/docs/zh-CN/components/form/editor.md +++ b/docs/zh-CN/components/form/editor.md @@ -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", diff --git a/docs/zh-CN/components/form/fieldset.md b/docs/zh-CN/components/form/fieldset.md index 59302b8f7..602eb9af0 100755 --- a/docs/zh-CN/components/form/fieldset.md +++ b/docs/zh-CN/components/form/fieldset.md @@ -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", diff --git a/docs/zh-CN/components/form/file.md b/docs/zh-CN/components/form/file.md index 307b0904a..b2d9eca0b 100755 --- a/docs/zh-CN/components/form/file.md +++ b/docs/zh-CN/components/form/file.md @@ -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}" } diff --git a/docs/zh-CN/components/form/formitem.md b/docs/zh-CN/components/form/formitem.md index a2089e5a6..4f55e3da1 100755 --- a/docs/zh-CN/components/form/formitem.md +++ b/docs/zh-CN/components/form/formitem.md @@ -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", diff --git a/docs/zh-CN/components/form/grid.md b/docs/zh-CN/components/form/grid.md index a6b066cdd..5c51ea424 100755 --- a/docs/zh-CN/components/form/grid.md +++ b/docs/zh-CN/components/form/grid.md @@ -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", diff --git a/docs/zh-CN/components/form/hidden.md b/docs/zh-CN/components/form/hidden.md index 20478730d..0a38b39fe 100755 --- a/docs/zh-CN/components/form/hidden.md +++ b/docs/zh-CN/components/form/hidden.md @@ -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": [ { diff --git a/docs/zh-CN/components/form/image.md b/docs/zh-CN/components/form/image.md index 021f8cc62..9431692f2 100755 --- a/docs/zh-CN/components/form/image.md +++ b/docs/zh-CN/components/form/image.md @@ -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}" } diff --git a/docs/zh-CN/components/form/index.md b/docs/zh-CN/components/form/index.md index 901283d83..91b998205 100755 --- a/docs/zh-CN/components/form/index.md +++ b/docs/zh-CN/components/form/index.md @@ -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": "名称", diff --git a/docs/zh-CN/components/form/input-group.md b/docs/zh-CN/components/form/input-group.md index d77c0765a..20b3161d4 100755 --- a/docs/zh-CN/components/form/input-group.md +++ b/docs/zh-CN/components/form/input-group.md @@ -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", diff --git a/docs/zh-CN/components/form/list.md b/docs/zh-CN/components/form/list.md index aecfea7ad..10649d3d5 100755 --- a/docs/zh-CN/components/form/list.md +++ b/docs/zh-CN/components/form/list.md @@ -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", diff --git a/docs/zh-CN/components/form/location.md b/docs/zh-CN/components/form/location.md index 72427a7db..35afe2f6f 100644 --- a/docs/zh-CN/components/form/location.md +++ b/docs/zh-CN/components/form/location.md @@ -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": [ { diff --git a/docs/zh-CN/components/form/matrix.md b/docs/zh-CN/components/form/matrix.md index 7e3765975..7e9766886 100755 --- a/docs/zh-CN/components/form/matrix.md +++ b/docs/zh-CN/components/form/matrix.md @@ -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", diff --git a/docs/zh-CN/components/form/month.md b/docs/zh-CN/components/form/month.md index 6708fb3b1..103f79a46 100755 --- a/docs/zh-CN/components/form/month.md +++ b/docs/zh-CN/components/form/month.md @@ -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", diff --git a/docs/zh-CN/components/form/nestedselect.md b/docs/zh-CN/components/form/nestedselect.md index 343126c53..f3419faef 100755 --- a/docs/zh-CN/components/form/nestedselect.md +++ b/docs/zh-CN/components/form/nestedselect.md @@ -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", diff --git a/docs/zh-CN/components/form/number.md b/docs/zh-CN/components/form/number.md index 17a0c6605..c4f28e2b0 100755 --- a/docs/zh-CN/components/form/number.md +++ b/docs/zh-CN/components/form/number.md @@ -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", diff --git a/docs/zh-CN/components/form/options.md b/docs/zh-CN/components/form/options.md index d8a3a755e..f311f9f43 100755 --- a/docs/zh-CN/components/form/options.md +++ b/docs/zh-CN/components/form/options.md @@ -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", diff --git a/docs/zh-CN/components/form/panel.md b/docs/zh-CN/components/form/panel.md index 4a7212f4c..8f96f4073 100755 --- a/docs/zh-CN/components/form/panel.md +++ b/docs/zh-CN/components/form/panel.md @@ -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", diff --git a/docs/zh-CN/components/form/picker.md b/docs/zh-CN/components/form/picker.md index 7c83cd009..6fea4ff4c 100755 --- a/docs/zh-CN/components/form/picker.md +++ b/docs/zh-CN/components/form/picker.md @@ -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 diff --git a/docs/zh-CN/components/form/quarter.md b/docs/zh-CN/components/form/quarter.md index 191faac02..9bb0bc437 100644 --- a/docs/zh-CN/components/form/quarter.md +++ b/docs/zh-CN/components/form/quarter.md @@ -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", diff --git a/docs/zh-CN/components/form/range.md b/docs/zh-CN/components/form/range.md index e2dee2e36..c5de308ec 100755 --- a/docs/zh-CN/components/form/range.md +++ b/docs/zh-CN/components/form/range.md @@ -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", diff --git a/docs/zh-CN/components/form/rating.md b/docs/zh-CN/components/form/rating.md index 3c066a38f..0239eaba7 100755 --- a/docs/zh-CN/components/form/rating.md +++ b/docs/zh-CN/components/form/rating.md @@ -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", diff --git a/docs/zh-CN/components/form/repeat.md b/docs/zh-CN/components/form/repeat.md index 731d011ce..9814f9187 100755 --- a/docs/zh-CN/components/form/repeat.md +++ b/docs/zh-CN/components/form/repeat.md @@ -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", diff --git a/docs/zh-CN/components/form/rich-text.md b/docs/zh-CN/components/form/rich-text.md index 4a1f70efc..e44e10666 100755 --- a/docs/zh-CN/components/form/rich-text.md +++ b/docs/zh-CN/components/form/rich-text.md @@ -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", diff --git a/docs/zh-CN/components/form/service.md b/docs/zh-CN/components/form/service.md index 593037be3..849185d29 100755 --- a/docs/zh-CN/components/form/service.md +++ b/docs/zh-CN/components/form/service.md @@ -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" } ``` diff --git a/docs/zh-CN/components/form/switch.md b/docs/zh-CN/components/form/switch.md index 92ff78509..70a7cb47a 100755 --- a/docs/zh-CN/components/form/switch.md +++ b/docs/zh-CN/components/form/switch.md @@ -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", diff --git a/docs/zh-CN/components/form/table.md b/docs/zh-CN/components/form/table.md index 7b141bd94..0a6cf0971 100755 --- a/docs/zh-CN/components/form/table.md +++ b/docs/zh-CN/components/form/table.md @@ -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", diff --git a/docs/zh-CN/components/form/tabs-transfer.md b/docs/zh-CN/components/form/tabs-transfer.md index bfbf5e342..e4f61627f 100644 --- a/docs/zh-CN/components/form/tabs-transfer.md +++ b/docs/zh-CN/components/form/tabs-transfer.md @@ -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": "组合穿梭器", diff --git a/docs/zh-CN/components/form/text.md b/docs/zh-CN/components/form/text.md index cc6b685be..631b462f0 100755 --- a/docs/zh-CN/components/form/text.md +++ b/docs/zh-CN/components/form/text.md @@ -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", diff --git a/docs/zh-CN/components/form/textarea.md b/docs/zh-CN/components/form/textarea.md index fa13c8b06..d562e4437 100755 --- a/docs/zh-CN/components/form/textarea.md +++ b/docs/zh-CN/components/form/textarea.md @@ -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", diff --git a/docs/zh-CN/components/form/time.md b/docs/zh-CN/components/form/time.md index c24c5086f..465093672 100755 --- a/docs/zh-CN/components/form/time.md +++ b/docs/zh-CN/components/form/time.md @@ -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", diff --git a/docs/zh-CN/components/form/transfer.md b/docs/zh-CN/components/form/transfer.md index a15485c1c..6ed5cee11 100644 --- a/docs/zh-CN/components/form/transfer.md +++ b/docs/zh-CN/components/form/transfer.md @@ -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": [ diff --git a/docs/zh-CN/components/form/tree.md b/docs/zh-CN/components/form/tree.md index 687891ffa..e88f00e80 100755 --- a/docs/zh-CN/components/form/tree.md +++ b/docs/zh-CN/components/form/tree.md @@ -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", diff --git a/docs/zh-CN/components/form/treeselect.md b/docs/zh-CN/components/form/treeselect.md index e2735feb2..f68339215 100755 --- a/docs/zh-CN/components/form/treeselect.md +++ b/docs/zh-CN/components/form/treeselect.md @@ -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", diff --git a/docs/zh-CN/components/form/uuid.md b/docs/zh-CN/components/form/uuid.md index 96282a53a..dbed2bf2c 100644 --- a/docs/zh-CN/components/form/uuid.md +++ b/docs/zh-CN/components/form/uuid.md @@ -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": [ { diff --git a/docs/zh-CN/components/form/year.md b/docs/zh-CN/components/form/year.md index 8769463c7..0c7e4882b 100644 --- a/docs/zh-CN/components/form/year.md +++ b/docs/zh-CN/components/form/year.md @@ -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", diff --git a/docs/zh-CN/components/list.md b/docs/zh-CN/components/list.md index 3e6571d55..736e5063e 100755 --- a/docs/zh-CN/components/list.md +++ b/docs/zh-CN/components/list.md @@ -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", diff --git a/docs/zh-CN/components/page.md b/docs/zh-CN/components/page.md index 75e4bc5d1..4df3e8250 100755 --- a/docs/zh-CN/components/page.md +++ b/docs/zh-CN/components/page.md @@ -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": [ diff --git a/docs/zh-CN/components/pagination-wrapper.md b/docs/zh-CN/components/pagination-wrapper.md index 04c12942d..1d0d8e2b4 100644 --- a/docs/zh-CN/components/pagination-wrapper.md +++ b/docs/zh-CN/components/pagination-wrapper.md @@ -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", diff --git a/docs/zh-CN/components/service.md b/docs/zh-CN/components/service.md index 495b251a5..f84552762 100755 --- a/docs/zh-CN/components/service.md +++ b/docs/zh-CN/components/service.md @@ -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": "名称", diff --git a/docs/zh-CN/components/table.md b/docs/zh-CN/components/table.md index 8b25fb0a6..67dfcc770 100755 --- a/docs/zh-CN/components/table.md +++ b/docs/zh-CN/components/table.md @@ -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", diff --git a/docs/zh-CN/components/tasks.md b/docs/zh-CN/components/tasks.md index 0993bed43..0645d2761 100755 --- a/docs/zh-CN/components/tasks.md +++ b/docs/zh-CN/components/tasks.md @@ -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" }, "为了演示,目前获取的状态都是随机出现的。"] diff --git a/docs/zh-CN/components/wizard.md b/docs/zh-CN/components/wizard.md index 0f07d5a23..973aacdf4 100755 --- a/docs/zh-CN/components/wizard.md +++ b/docs/zh-CN/components/wizard.md @@ -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": [ { diff --git a/docs/zh-CN/concepts/action.md b/docs/zh-CN/concepts/action.md index da83cff98..7651a6467 100644 --- a/docs/zh-CN/concepts/action.md +++ b/docs/zh-CN/concepts/action.md @@ -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" } ``` diff --git a/docs/zh-CN/concepts/data-mapping.md b/docs/zh-CN/concepts/data-mapping.md index 60989871e..fc794fc29 100755 --- a/docs/zh-CN/concepts/data-mapping.md +++ b/docs/zh-CN/concepts/data-mapping.md @@ -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": { diff --git a/docs/zh-CN/concepts/datascope-and-datachain.md b/docs/zh-CN/concepts/datascope-and-datachain.md index a698320e4..0a766d85b 100755 --- a/docs/zh-CN/concepts/datascope-and-datachain.md +++ b/docs/zh-CN/concepts/datascope-and-datachain.md @@ -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", diff --git a/docs/zh-CN/concepts/linkage.md b/docs/zh-CN/concepts/linkage.md index abbbd20a5..5ac0ad3ef 100755 --- a/docs/zh-CN/concepts/linkage.md +++ b/docs/zh-CN/concepts/linkage.md @@ -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": "切换选项1的值,会触发选项2source 接口重新拉取" } ], @@ -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": "只有选项1选择B的时候,才触发选项2source接口重新拉取" @@ -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", diff --git a/docs/zh-CN/concepts/schema.md b/docs/zh-CN/concepts/schema.md index d7d2df3fd..3c4ceb446 100755 --- a/docs/zh-CN/concepts/schema.md +++ b/docs/zh-CN/concepts/schema.md @@ -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" diff --git a/docs/zh-CN/index.md b/docs/zh-CN/index.md index c77761b18..fc47dcaf6 100644 --- a/docs/zh-CN/index.md +++ b/docs/zh-CN/index.md @@ -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" } ] } diff --git a/docs/zh-CN/types/api.md b/docs/zh-CN/types/api.md index 6ff88fdc9..a7d7fe972 100755 --- a/docs/zh-CN/types/api.md +++ b/docs/zh-CN/types/api.md @@ -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": "只有选项1选择B的时候,才触发选项2source接口重新拉取" @@ -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, diff --git a/fis-conf.js b/fis-conf.js index aef942b93..f170747a7 100644 --- a/fis-conf.js +++ b/fis-conf.js @@ -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' ); } );