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

@alilc/lowcode-plugin-simulator-select Bug #2711

Open yimuc opened 11 months ago

yimuc commented 11 months ago

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

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

使用 @alilc/lowcode-plugin-simulator-select 包,初始化项目,画布大小的输入框里默认不会填入当前画布宽度,而是0。


To Reproduce (required) / 如何复现 bug?(必填,非常重要)

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

https://github.com/alibaba/lowcode-plugins/blob/a0ad0224b48607f867891b7bfb6ddf78c6753aad/packages/plugin-simulator-size/src/index.tsx#L32 这里根据css取当前画布宽度,应该是当前插件引入的css还没构建渲染树,所以取宽度没生效


Expected behavior (required) / 预期行为(必填,非常重要)

A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为

项目初始化,画布大小输入框填入当前画布宽度。

github-actions[bot] commented 11 months ago

Hello @yifeishu-com. We totally like your proposal/feedback, PR wanted。

你好 @yifeishu-com,我们完全同意你的提议/反馈,欢迎 PR。