feat(web): 增加表单数据校验
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
import {filter, find, isEqual} from 'licia'
|
||||
import {create} from 'zustand/react'
|
||||
|
||||
export type FlowStoreState = {
|
||||
export const useFlowStore = create<{
|
||||
nodes: Node[],
|
||||
getNodes: () => Node[],
|
||||
onNodesChange: OnNodesChange,
|
||||
@@ -26,9 +26,7 @@ export type FlowStoreState = {
|
||||
setEdges: (edges: Edge[]) => void,
|
||||
|
||||
onConnect: OnConnect,
|
||||
}
|
||||
|
||||
export const useFlowStore = create<FlowStoreState>((set, get) => ({
|
||||
}>((set, get) => ({
|
||||
nodes: [],
|
||||
getNodes: () => get().nodes,
|
||||
onNodesChange: changes => {
|
||||
|
||||
Reference in New Issue
Block a user