feat(web): 增加表单数据校验

This commit is contained in:
v-zhangjc9
2025-07-11 11:07:50 +08:00
parent 863638deaa
commit ac2b6b1611
10 changed files with 131 additions and 58 deletions

View File

@@ -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 => {