1.0.6 • Published 8 months ago

@logicflow/react-node-registry v1.0.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 months ago

@logicflow/react-node-registry

LogicFlow Shape for rendering React components.

Installation

npm install @logicflow/react-node-registry

or

yarn add @logicflow/react-node-registry

or

pnpm add @logicflow/react-node-registry

Usage

用户自定义 React 节点 CustomReactComp

我们需要将该内容注册到某个地方

  1. 如果基于默认的 HTML 节点,只是调整节点里面的内容,
register({
  type: 'custom-react-shape',
  view: ReactComponent,
  model: ReactNodeModel,
}, lf)
  1. 注册节点
  2. view 为 React 组件(基于 HTMLNode 自定义)
  3. model 为节点数据模型
1.0.6

8 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.1-beta.4

11 months ago

0.0.1-beta.3

11 months ago

0.0.1-beta.2

11 months ago

0.0.1-beta.1

11 months ago

0.0.1-beta.0

12 months ago