/// import type { CustomQuery, FormItem } from '@sinoform/types'; import type { FormState } from '@sinoui/rx-form-state'; import type { RestPageResponseInfo } from '@sinoui/use-rest-page-api'; export interface CustomListPageContextType { /** * 表格数据源 */ dataSource: RestPageResponseInfo; /** * 表单id */ formId: string; /** * 定制列表的类型 */ listType: string; /** * 查询区域formState */ searchConditionsFormState: FormState; /** * 展示列(通过自定义列转化为标准配置之后的列配置) */ columns: FormItem[]; /** * 定制查询条件配置 */ customQuery?: CustomQuery[]; /** * 搜索 * */ onSearch?: () => void; /** * 重置 */ onReset?: () => void; /** * 可用于定制的所有表单项 */ allFields: FormItem[]; /** * 请求接口 */ url: string; /** * 查询条件是否默认展开: 0折叠 1展开 */ defaultExpandQuery?: '0' | '1'; } /** * 自定义列表页上下文 */ declare const CustomListPageContext: import("react").Context; export default CustomListPageContext;