From 5db0c126eb723010646a336bf7115de49e5fc669 Mon Sep 17 00:00:00 2001 From: "wuyue.xht" Date: Fri, 29 May 2020 13:29:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/runtime/package.json | 2 +- packages/runtime/src/core/provider.ts | 2 +- packages/runtime/src/core/runApp.ts | 22 ---------------------- 3 files changed, 2 insertions(+), 24 deletions(-) diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 276e1cc32..095b2e785 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@ali/lowcode-runtime", - "version": "0.8.14", + "version": "0.8.15", "description": "Runtime for Ali lowCode engine", "files": [ "es", diff --git a/packages/runtime/src/core/provider.ts b/packages/runtime/src/core/provider.ts index 907dd4903..fc116e4ef 100644 --- a/packages/runtime/src/core/provider.ts +++ b/packages/runtime/src/core/provider.ts @@ -182,7 +182,7 @@ export default class Provider implements IProvider { } getAppData(): any { - throw new Error('Method called "getPageData" not implemented.'); + throw new Error('Method called "getAppData" not implemented.'); } getPageData(pageId?: string): any { diff --git a/packages/runtime/src/core/runApp.ts b/packages/runtime/src/core/runApp.ts index 6fb287f99..3dea9fb92 100644 --- a/packages/runtime/src/core/runApp.ts +++ b/packages/runtime/src/core/runApp.ts @@ -23,28 +23,6 @@ export interface IAppConfig { [key: string]: any; } -// export interface IRecoreAppConfig { -// history?: HistoryMode; -// globalComponents?: IComponents; -// globalUtils?: IUtils; -// containerId?: string; -// } - -// function transformConfig(config: IAppConfig | (() => IAppConfig)): IRecoreAppConfig { -// if (!config) { -// return {}; -// } -// if (typeof config === 'function') { -// config = config(); -// } -// return { -// history: config.history, -// globalComponents: config.components, -// globalUtils: config.utils, -// containerId: config.containerId, -// }; -// } - export default function runApp() { const provider = app.getProvider(); if (!provider) {