Skip to content

Commit

Permalink
docs: update Node to IPublicModelNode
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored and JackLian committed Nov 10, 2023
1 parent 3b14a79 commit 6320867
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/docs/api/configOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ config.set('enableCondition', false)
类型定义

```typescript
focusNodeSelector?: (rootNode: Node) => Node;
focusNodeSelector?: (rootNode: IPublicModelNode) => Node;
```

#### supportVariableGlobally - 全局变量配置
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/api/model/dragon.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ from(shell: Element, boost: (e: MouseEvent) => IPublicTypeDragNodeDataObject | n
* @param dragObject 拖拽对象
* @param boostEvent 拖拽初始时事件
*/
boost(dragObject: IPublicTypeDragObject, boostEvent: MouseEvent | DragEvent, fromRglNode?: Node | IPublicModelNode): void;
boost(dragObject: IPublicTypeDragObject, boostEvent: MouseEvent | DragEvent, fromRglNode?: IPublicModelNode): void;
```

### addSensor
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/api/model/modal-nodes-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ hideModalNodes(): void;
/**
* 设置指定节点为可见态
* set specific model node as visible
* @param node Node
* @param node IPublicModelNode
*/
setVisible(node: IPublicModelNode): void;
```
Expand All @@ -86,7 +86,7 @@ setVisible(node: IPublicModelNode): void;
/**
* 设置指定节点为不可见态
* set specific model node as invisible
* @param node Node
* @param node IPublicModelNode
*/
setInvisible(node: IPublicModelNode): void;
```
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/api/model/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,6 @@ getRGL(): {
isRGLContainerNode: boolean;
isRGLNode: boolean;
isRGL: boolean;
rglNode: Node | null;
rglNode: IPublicModelNode | null;
}
```
6 changes: 3 additions & 3 deletions docs/docs/guide/expand/editor/pluginContextMenu.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sidebar_position: 6

```typescript
import { plugins } from '@alilc/lowcode-engine';
import { IPublicModelPluginContext } from '@alilc/lowcode-types';
import { IPublicModelPluginContext, IPublicModelNode } from '@alilc/lowcode-types';
import { Icon, Message } from '@alifd/next';

const addHelloAction = (ctx: IPublicModelPluginContext) => {
Expand All @@ -23,11 +23,11 @@ const addHelloAction = (ctx: IPublicModelPluginContext) => {
content: {
icon: <Icon type="atm" />,
title: 'hello',
action(node: Node) {
action(node: IPublicModelNode) {
Message.show('Welcome to Low-Code engine');
},
},
condition: (node: Node) => {
condition: (node: IPublicModelNode) => {
return node.componentMeta.componentName === 'NextTable';
},
important: true,
Expand Down

0 comments on commit 6320867

Please sign in to comment.