Files
ff-dist/dist/pages.d.ts
T
2026-08-11 13:47:48 +08:00

34 lines
1.3 KiB
TypeScript

import React from 'react';
/**
* 渲染一个数据列表页(DataListHelper),base62 编码的查询参数会先解码再传下去
* @param {Object} props
* @param {string} props.component 数据列表编码(listCode)
* @param {Object} [props.$props] props 的类型/来源配置,须解析出 base62params 字段
*/
declare function DataListPage({ component, $props }: {
component: string;
$props?: any;
}): React.JSX.Element;
/**
* 按组件名动态加载并渲染一个自定义页面组件,加载失败时显示错误信息,未指定 component 时显示空状态
* @param {Object} props
* @param {string} [props.component] 要加载的组件名(通过 core.getWidgetComponent 解析)
* @param {Object} [props.$setting] 传给目标组件的 $setting
* @param {Object} [props.$props] 传给目标组件的 props 类型/来源配置(经 useWidgetProps 解析)
*/
declare function CustomPage({ component, $setting, $props }: {
component?: string;
$setting?: any;
$props?: any;
}): React.DetailedReactHTMLElement<any, HTMLElement>;
/** 空页面,渲染 Empty 占位内容 */
declare function EmptyPage(): React.JSX.Element;
/** 404 占位页面 */
declare function NotFoundPage(): string;
export { CustomPage, DataListPage, EmptyPage, NotFoundPage };