Skip to content

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

@yimuc

Description

@yimuc

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

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

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed / 老铁,赚 PR 的机会来了

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions