snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
14 lines (13 loc) • 427 B
TypeScript
type State = Record<string, any>;
interface UseStateResult {
removeProperty: (key: string) => void;
setProperty: (key: string, value: any) => void;
state: State;
}
/**
* 自定义 Hook: useState
* @param {State} initialState - 初始状态对象
* @returns {UseStateResult} - 返回包含状态对象和更新状态的函数
*/
export declare function useState(initialState?: State): UseStateResult;
export {};