diff --git a/sites/docs/docs/api/model/nodeModel.en.md b/sites/docs/docs/api/model/nodeModel.en.md index 0ceebe76c..a75ea0bb9 100644 --- a/sites/docs/docs/api/model/nodeModel.en.md +++ b/sites/docs/docs/api/model/nodeModel.en.md @@ -122,7 +122,7 @@ they can do so by overriding the GetNodeStyleProperty method on `nodeModel`. ### getNodeStyle -Support for rewriting, custom node style attributes, which defaults +Support for rewriting, custom node style attributes,which defaults to [theme baseNode](../theme.en.md#basenode) ```tsx | pure @@ -492,8 +492,6 @@ const { anchors } = node Parameters:`anchorId?: string` -## @action - ### updateText Parameters diff --git a/sites/docs/docs/api/model/nodeModel.zh.md b/sites/docs/docs/api/model/nodeModel.zh.md index acf56fa20..2d47f517d 100644 --- a/sites/docs/docs/api/model/nodeModel.zh.md +++ b/sites/docs/docs/api/model/nodeModel.zh.md @@ -106,14 +106,14 @@ LogicFlow 在`model`上还维护一些属性,开发者可以通过这些属性 LogicFlow 所有的节点最终都是以 SVG DOM 的方式渲染。但是除了形状属性之外,所有的其他属于 svg 的属性都不会直接存在`nodeModel`。当开发者想要对 SVG DOM -添加更多的 svg 属性 +添加更多的 svg 属性 时,可以通过重写`nodeModel`上获取节点样式属性方法来实现。 ## 方法 ### getNodeStyle -支持重写,自定义节点样式属性, 默认为[主题 baseNode](../theme.zh.md#basenode) +支持重写,自定义节点样式属性,默认为[主题 baseNode](../theme.zh.md#basenode) ```tsx | pure class UserTaskModel extends RectNodeModel { @@ -449,7 +449,7 @@ class UserTaskModel extends RectNodeModel { | targetAnchor | `Model.AnchorConfig` | ✅ | 目标锚点 | | edgeId | `string` | - | 调整后边的 id | -返回值 `LogicFlow.ConnectRuleResult` +返回值 `LogicFlow.ConnectRuleResult` 详见issues ### getRotateControlStyle @@ -484,8 +484,6 @@ const { anchors } = node 入参:`anchorId?: string` -## @action - ### updateText 修改节点文本内容