alibaba / alibaba/lowcode-engine

「focusNodeSelector」 配置无法通过已有 API 进行设置

Aperta
#515 0 commenti 0 reazioni 1 assegnatario Assegnata a @liujuping Vedi su GitHub
enhancement WIP
Lingua principale
TypeScript
Stelle
15.9k
Fork
2.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## **Describe the bug (required)** / **详细描述 bug(必填)**

'focusNodeSelector' 配置无法通过 API 设置

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**

1.在 demo 的 src/universal/plugin.tsx 新增下面的代码
![image](https://user-images.githubusercontent.com/11935995/169250569-24921240-be21-4e25-ba3e-29e820f53a8f.png)

```
config.set('focusNodeSelector', () => {
return 111;
})
```

2.在引擎的 https://github.com/alibaba/lowcode-engine/blob/3d176cb5345f9c712457f2d2545e03541ffcb585/packages/designer/src/document/document-model.ts#L100

新增断点

3.
![image](https://user-images.githubusercontent.com/11935995/169250462-b5533cdf-9dca-4398-b792-497a2a4b878b.png)

这里获取到的 selector 不是 config 设置的。没有 api 能设置到这里。

## **Expected behavior (required)** / **预期行为(必填,非常重要)**

能通过公共 API 设置

---

## **Screenshots (optional)** / **bug 截图(可选)**
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题

---

## **Environments (please complete the following information) (required):** / **请提供如下信息(必填)**

![image](https://user-images.githubusercontent.com/11935995/169251128-e606da1f-27b8-4d1e-8c3b-a2e3bb073200.png)

> (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. / 可以追加更多的额外信息,帮助定位问题

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.