import React from 'react'; export interface NavigationItemType { /** * 导航项id */ id: string; /** * 导航名称 */ name: string; /** * 导航路径 */ path: string; /** * 导航标题 */ title: string; /** * 导航图标 */ icon?: React.ReactNode; /** * 资源访问的url */ url?: string; } /** * 单表单首页设置 */ export interface FormAppHomePageSettings { /** * 主标题 */ title?: string; /** * 副标题 */ subtitle?: string; /** * 徽标url */ logo?: string; /** * 标题图片 */ titleImg?: string; /** * 头部背景url */ appBarBgUrl?: string; /** * 头部背景颜色,可以是渐变色 */ appBarBgColor?: string; /** * 是否显示导航回退按钮 */ showBackButton?: boolean; /** * 指定回退的链接。在指定了`showBackButton`为`true`时起作用。不指定,则调用`history.goBack()`。 */ backUrl?: string; /** * 标题垂直位置,在titleImg存在时起作用 */ titleYPos?: number; /** * 标题水平位置,在titleImg存在时起作用 */ titleXPos?: number; } export interface FormAppHomePageContextInterface { settings: FormAppHomePageSettings; /** * 导航项 */ navigationItems: NavigationItemType[]; /** * 是否具有起草的权限 */ enableCreate: boolean; /** * 当前选中的导航选项 */ selectedNavigationItem?: NavigationItemType; /** * 加载导航数据 */ fetch(): Promise; /** * 表单标题 */ title: string; } /** * 单表单首页上下文 */ declare const FormAppHomePageContext: React.Context; export default FormAppHomePageContext;