From 1f45b0502836b3045fe64b01a92444e3057d5888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E5=BD=AC?= Date: Tue, 1 Sep 2020 12:47:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Esimulatorurl=EF=BC=8C?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E8=AE=BE=E7=BD=AEcdn=E4=BD=BF=E7=94=A8simula?= =?UTF-8?q?tor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/src/editor/config.js | 6 ++++++ packages/designer/src/builtin-simulator/host.ts | 4 ++-- packages/plugin-designer/src/index.tsx | 9 +++++++-- packages/rax-simulator-renderer/package.json | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/demo/src/editor/config.js b/packages/demo/src/editor/config.js index 88d9b7248..7223c6031 100644 --- a/packages/demo/src/editor/config.js +++ b/packages/demo/src/editor/config.js @@ -120,6 +120,12 @@ export default { init: async function init(editor) { const assets = await editor.utils.get('./assets.json'); editor.set('assets', assets); + const simulatorUrl = [ + 'https://dev.g.alicdn.com/ali-lowcode/ali-lowcode-engine/0.9.50/react-simulator-renderer.css', + 'https://dev.g.alicdn.com/ali-lowcode/ali-lowcode-engine/0.9.50/react-simulator-renderer.js', + ]; + editor.set('simulatorUrl', simulatorUrl); + // editor.set('renderEnv', 'rax'); const schema = await editor.utils.get('./schema.json'); editor.set('schema', schema); diff --git a/packages/designer/src/builtin-simulator/host.ts b/packages/designer/src/builtin-simulator/host.ts index 370892f17..20e417675 100644 --- a/packages/designer/src/builtin-simulator/host.ts +++ b/packages/designer/src/builtin-simulator/host.ts @@ -225,7 +225,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost { @@ -24,6 +26,7 @@ export default class DesignerPlugin extends PureComponent ); diff --git a/packages/rax-simulator-renderer/package.json b/packages/rax-simulator-renderer/package.json index 8d7ecbdfd..a44d95f6b 100644 --- a/packages/rax-simulator-renderer/package.json +++ b/packages/rax-simulator-renderer/package.json @@ -55,5 +55,5 @@ "publishConfig": { "registry": "https://registry.npm.alibaba-inc.com" }, - "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.4-0/build/index.html" + "homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.5-0/build/index.html" }