mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: jsonp handler rename
This commit is contained in:
parent
dcdcf287af
commit
cf3a61a8e8
@ -1 +0,0 @@
|
||||
export type * from '../../es/handlers/fetch';
|
||||
@ -1 +0,0 @@
|
||||
module.exports = require('../../lib/handlers/fetch').default;
|
||||
@ -1 +0,0 @@
|
||||
export type * from '../../es/handlers/mtop';
|
||||
@ -1 +0,0 @@
|
||||
module.exports = require('../../lib/handlers/mtop').default;
|
||||
@ -1 +0,0 @@
|
||||
export type * from '../../es/handlers/url-params';
|
||||
@ -1 +0,0 @@
|
||||
module.exports = require('../../lib/handlers/url-params').default;
|
||||
@ -19,13 +19,19 @@ import { create } from '@ali/lowcode-datasource-engine/interpret';
|
||||
// 面向出码,需要给处理过后的内容
|
||||
import { create } from '@ali/lowcode-datasource-engine/runtime';
|
||||
|
||||
import { createFetchHandler } from '@ali/lowcode-datasource-fetch-handler';
|
||||
|
||||
import { createMtopHandler } from '@ali/lowcode-datasource-mtop-handler';
|
||||
|
||||
// dataSource 可以是 schema 协议内容 或者是运行时的转化后的配置内容 (出码专用)
|
||||
|
||||
|
||||
// context 上下文(setState 为必选)
|
||||
const dsf = create(dataSource, context, {
|
||||
const dataSourceEngine = create(dataSource, context, {
|
||||
requestHandlersMap: { // 可选参数,以下内容为当前默认的内容
|
||||
urlParams: handlersMap.urlParams('?bar=1&test=2'),
|
||||
mtop: mtophandlers,
|
||||
fetch: createFetchHandler,
|
||||
mtop: createMtopHandler
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@ali/datasource-jsonp-handler",
|
||||
"name": "@ali/lowcode-datasource-jsonp-handler",
|
||||
"version": "1.0.0-alpha.1",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user