alibaba/lowcode-engine

@alilc/lowcode-plugin-simulator-select Bug

Open

#2,711 建立於 2023年11月29日

在 GitHub 查看
 (1 留言) (0 反應) (1 負責人)TypeScript (12,714 star) (2,228 fork)batch import
help wanted

描述

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. / 请清晰和精确的描述你预期的行为

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

貢獻者指南

@alilc/lowcode-plugin-simulator-select Bug · alibaba/lowcode-engine#2711 | Good First Issue