Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix: Some minor features optimization #84

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions src/FlowView/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ description: 基础画布容器

### FlowView

| 属性名 | 类型 | 描述 | 默认值 | 必选 |
| ----------------- | ------------------------------------------------ | -------------- | ------ | ---- |
| nodes | `FlowViewNode` | 边数据 | - | - |
| edges | `FlowViewEdge` | 节点数据 | - | - |
| className | `string` | 边数据 | - | - |
| style | `CSSProperties` | 节点数据 | - | - |
| miniMap | `boolean` | 边数据 | - | - |
| autoLayout | `boolean` | 自动布局 | true | - |
| background | `boolean` | 节点数据 | - | - |
| children | `React.ReactNode` | 边数据 | - | - |
| nodeTypes | `Record<string, React.ComponentType<NodeProps>>` | 节点类型 | - | - |
| edgeTypes | `Record<string, React.ComponentType<EdgeProps>>` | 边缘类型 | - | - |
| minZoom | `number` | 最小缩放比例 | - | - |
| maxZoom | `number` | 最大缩放比例 | - | - |
| stepLessZooming | `boolean` | 无级缩放监听 | - | - |
| layoutOptions | `LayoutOptions` | 自动布局参数 | - | - |
| beforeNodesChange | `(changes: NodeChange[]) => boolean` | 节点变化前回调 | - | - |
| beforeEdgesChange | `(changes: EdgeChange[]) => boolean` | 边缘变化前回调 | - | - |
| beforeConnect | `(connection: Connection) => boolean` | 连接前回调 | - | - |
| 属性名 | 类型 | 描述 | 默认值 | 必选 |
| ----------------- | ------------------------------------------------ | ---------------- | ------ | ---- |
| nodes | `FlowViewNode` | 边数据 | - | - |
| edges | `FlowViewEdge` | 节点数据 | - | - |
| className | `string` | 类名 | - | - |
| style | `CSSProperties` | 样式 | - | - |
| miniMap | `boolean` | 是否开启小地图 | - | - |
| autoLayout | `boolean` | 自动布局 | true | - |
| background | `boolean` | 是否打开默认背景 | - | - |
| children | `React.ReactNode` | 子组件 | - | - |
| nodeTypes | `Record<string, React.ComponentType<NodeProps>>` | 节点类型 | - | - |
| edgeTypes | `Record<string, React.ComponentType<EdgeProps>>` | 边缘类型 | - | - |
| minZoom | `number` | 最小缩放比例 | - | - |
| maxZoom | `number` | 最大缩放比例 | - | - |
| stepLessZooming | `boolean` | 无级缩放监听 | - | - |
| layoutOptions | `LayoutOptions` | 自动布局参数 | - | - |
| beforeNodesChange | `(changes: NodeChange[]) => boolean` | 节点变化前回调 | - | - |
| beforeEdgesChange | `(changes: EdgeChange[]) => boolean` | 边缘变化前回调 | - | - |
| beforeConnect | `(connection: Connection) => boolean` | 连接前回调 | - | - |

#### LayoutOptions

Expand Down
Loading