alibaba / lowcode-engine

An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系
https://lowcode-engine.cn
MIT License
14.66k stars 2.55k forks source link

点击出码,Sandbox 中报错 Slot is not defined #1458

Closed smallersoup closed 1 year ago

smallersoup commented 1 year ago

Describe the bug (required) / 详细描述 bug(必填)

A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述

最新版 ca4ac6e ,进入 demo-general 目录,npm start 启动后,不进行任何修改,直接点击 出码,预览报错: 32061673180480_ pic

版本:

$ node -v
v14.17.0
$ npm -v
6.14.13

To Reproduce (required) / 如何复现 bug?

Steps to reproduce the behavior: / 详细复现步骤:


nvm install v14.17.0
nvm use v14.17.0
cd ~/github

wget https://github.com/alibaba/lowcode-demo/archive/refs/heads/main.zip
unzip main.zip
cd lowcode-demo-main

cd demo-general
npm install
npm run start

预览正常:

image image

Expected behavior (required) / 预期行为

预期:Sandbox 中可以看到和预览一样的效果。


Environments (please complete the following information) (required): / 请提供如下信息(必填)

LeoYuan commented 1 year ago

image

@liujuping render 导出模式不应该有 Slot 节点,麻烦看一下

mixtan commented 1 year ago

出码的源码中不应该有Slot组件的,把Slot改成div标准就好了,这个需要官方修复 @JackLian 修改Slot之前报错未定义组件: Dingtalk_20230110154854

修改Slot之后正常了: Dingtalk_2023011015491118

JackLian commented 1 year ago

demo中已修改