UNPKG

taro-manage-layout

Version:
40 lines (39 loc) 1.24 kB
export type MessageTypeProps = "success" | "error" | "warning" | "primary"; export type MenusProps = { id: number; label: string; element?: any; watermark?: string; }; export type MenusListProps = MenusProps[]; export interface storeProps { /** 当前菜单 */ menus: MenusProps | undefined; /** 选择菜单 */ onSelectMenu: (data: MenusProps) => void; /** 菜单列表 */ menus_list: MenusListProps; /** 控制菜单显示状态 */ menus_visible: boolean; setMenusList: (data: MenusListProps) => void; /** 切换菜单显示状态 */ onSwitchMenusVisible: () => void; /** loading状态 */ loading: boolean; /** 设置loading状态 */ setLoading: (state: boolean) => void; /** 消息提示类型 */ message_type: MessageTypeProps | undefined; /** 消息提示内容 */ message_value?: string; /** 消息提示状态 */ message_visible: boolean; /** 展示消息提示 */ showMessage: (data: { type: MessageTypeProps; title: string; }) => void; /** 隐藏消息提示 */ hideMessage: () => void; } export declare const store: import("zustand").UseBoundStore<import("zustand").StoreApi<storeProps>>;