alibaba / alibaba/lowcode-engine

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

Offen
#515 0 Kommentare 0 Reaktionen 1 zugewiesene Person Zugewiesen an @liujuping Auf GitHub ansehen
enhancement WIP
Vorherrschende Sprache
TypeScript
Sterne
15.9k
Forks
2.7k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.