alibaba / alibaba/lowcode-engine

skeleton.add中,extraConfig参数含 props 属性时,IWidgetBaseConfig中props失效

Open
#475 3 comments 0 reactions 1 assignee Assigned to @liujuping View on GitHub
bug
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

```
const widget = ctx.skeleton.add(
{
area: 'leftArea',
name: 'demoPane',
type: 'PanelDock',
content:

demo
,
props: {
align: 'bottom',
icon: ,
description: '页面源码',
width: 720,
},
}
, {
props: {},
});
```

在Dock中,.add(pane, {{helper: 1}},可以在pane中this.props.config.helper调用。
在PanelDock 中,.add(pane, {{helper: 1}},可以在pane中this.props.config 、 this.props中都没有helper

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.