alibaba / alibaba/lowcode-engine

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

Abierto
#515 0 comentarios 0 reacciones 1 asignado Asignado a @liujuping Ver en GitHub
enhancement WIP
Lenguaje dominante
TypeScript
Estrellas
15.9k
Forks
2.7k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.