alibaba / alibaba/lowcode-engine
「focusNodeSelector」 配置无法通过已有 API 进行设置
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
## **Describe the bug (required)** / **详细描述 bug(必填)**
'focusNodeSelector' 配置无法通过 API 设置
---
## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**
1.在 demo 的 src/universal/plugin.tsx 新增下面的代码

```
config.set('focusNodeSelector', () => {
return 111;
})
```
2.在引擎的 https://github.com/alibaba/lowcode-engine/blob/3d176cb5345f9c712457f2d2545e03541ffcb585/packages/designer/src/document/document-model.ts#L100
新增断点
3.

这里获取到的 selector 不是 config 设置的。没有 api 能设置到这里。
## **Expected behavior (required)** / **预期行为(必填,非常重要)**
能通过公共 API 设置
---
## **Screenshots (optional)** / **bug 截图(可选)**
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题
---
## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**

> (this information can be collected via [the manual plugin](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png) / 版本信息可[通过低代码用户手册插件收集](https://img.alicdn.com/imgextra/i1/O1CN0115zonY1IsgbkZ2ir7_!!6000000000949-2-tps-3066-1650.png))
## **Additional context (optional)** / **更多额外信息(可选)**
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.