@bos-alpha/progress
Version:
进度管理
40 lines (39 loc) • 1.05 kB
TypeScript
import React from 'react';
import 'dayjs/locale/zh-cn';
export interface FormItem {
name: string;
label: string;
placeholder?: string | [string, string];
inputType?: 'select' | 'dateRange' | 'dateTime' | 'upload' | 'input' | 'buttons';
options?: {
label: string;
value: string;
}[];
extra?: string;
dateRangeNames?: string[];
disabled?: boolean;
dataType?: 'fileSize' | 'dateTime';
format?: string;
copy?: boolean;
allowClear?: boolean;
rules?: any[];
colSpan?: number;
buttons?: React.ReactNode[];
}
interface PropsType {
readOnly?: boolean;
span?: number;
labelCol?: number;
items: FormItem[];
values?: any;
isReset?: boolean;
isFooterBtns?: boolean;
onSubmit?: (formParams: any) => void;
onCancel?: () => void;
}
/**
*
* 管理员中心 表格数据条件筛选
*/
export declare const CustomForm: ({ readOnly, span, labelCol, items, values, isReset, isFooterBtns, onSubmit, onCancel }: PropsType) => JSX.Element;
export {};