feat(web): 尝试优化流程图性能

This commit is contained in:
2025-07-06 22:39:26 +08:00
parent 187c565da4
commit 03d0d9d85b
10 changed files with 110 additions and 44 deletions

View File

@@ -1,12 +1,14 @@
import {create} from 'zustand/react'
export const useDataStore = create<{
export type DataStoreState = {
data: Record<string, any>,
getData: () => Record<string, any>,
setData: (data: Record<string, any>) => void,
getDataById: (id: string) => any,
setDataById: (id: string, data: any) => void,
}>((set, get) => ({
}
export const useDataStore = create<DataStoreState>((set, get) => ({
data: {},
getData: () => get().data,
setData: (data) => set({