mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-01 22:10:27 +00:00
25 lines
552 B
TypeScript
25 lines
552 B
TypeScript
import { InterpretDataSource } from '@ali/lowcode-types';
|
|
|
|
// 这里仅仅是数据源部分的 schema:
|
|
// @see: https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#XMeF5
|
|
export const DATA_SOURCE_SCHEMA: InterpretDataSource = {
|
|
list: [
|
|
{
|
|
id: 'user',
|
|
isInit: true,
|
|
type: 'fetch',
|
|
options: {
|
|
uri: 'https://mocks.alibaba-inc.com/user.json',
|
|
},
|
|
dataHandler: {
|
|
type: 'JSFunction',
|
|
value: `
|
|
function dataHandler(response) {
|
|
return response.data;
|
|
}
|
|
`,
|
|
},
|
|
},
|
|
],
|
|
};
|