feat: 完善迭代器嵌套使用问题,重构事件配置处理代码
* feat(editor,core,data-source,dep,schema,ui,utils,vue-runtime-help): 完善迭代器 * test: 完善测试用例 * chore: 构建 * feat: 迭代器嵌套事件传递数据 --------- Co-authored-by: roymondchen <roymondchen@tencent.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
import { union } from 'lodash-es';
|
||||
|
||||
import type { AppCore } from '@tmagic/schema';
|
||||
import type { default as TMagicApp } from '@tmagic/core';
|
||||
import { getDepNodeIds, getNodes, isPage } from '@tmagic/utils';
|
||||
|
||||
import DataSourceManager from './DataSourceManager';
|
||||
@@ -26,12 +26,12 @@ import { updateNode } from './utils';
|
||||
|
||||
/**
|
||||
* 创建数据源管理器
|
||||
* @param app AppCore
|
||||
* @param useMock 是否使用mock数据
|
||||
* @param initialData 初始化数据,ssr数据可以由此传入
|
||||
* @returns DataSourceManager | undefined
|
||||
* @param {TMagicApp} app
|
||||
* @param {boolean} useMock 是否使用mock数据
|
||||
* @param {DataSourceManagerData} initialData 初始化数据,ssr数据可以由此传入
|
||||
* @returns {DataSourceManager | undefined}
|
||||
*/
|
||||
export const createDataSourceManager = (app: AppCore, useMock?: boolean, initialData?: DataSourceManagerData) => {
|
||||
export const createDataSourceManager = (app: TMagicApp, useMock?: boolean, initialData?: DataSourceManagerData) => {
|
||||
const { dsl, platform } = app;
|
||||
if (!dsl?.dataSources) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user