alibaba / alibaba/lowcode-engine
希望可以使用到 @alilc/lowcode-plugin-outline-pane 和 @alilc/lowcode-plugin-schema 等官方插件的功能,但是展示位置走自定义,目前这两个插件的位置均固定在了 leftArea。
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
希望可以使用到 @alilc/lowcode-plugin-outline-pane 和 @alilc/lowcode-plugin-schema 等官方插件的功能,但是展示位置走自定义,目前这两个插件的位置均固定在了 leftArea。
---
尝试使用 https://lowcode-engine.cn/site/docs/faq/faq010 提到的插件面板调整位置;
具体执行代码为:
skeleton.add({
area: 'topArea',
type: 'Widget',
name: 'outlinePane',
index: -1
});
控制台提醒:react-dom.development.js:14483 Uncaught Error: n(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
如果设置了 content 的话则无法达到改变 outlinePane plugin 位置的效果,而是新增了一个顶部的 icon;
skeleton.add({
area: 'topArea',
type: 'Widget',
name: 'outlinePane',
index: -1,
content: () => 'xxx',
props: { icon: () => 'x' /* ReactElement 也可以 */ },
});
## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**
@alilc/lowcode-engine 1.2.2
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.