UNPKG

xph-form

Version:

This is a configurable form component that supports React

15 lines (14 loc) 899 B
import { RuleObject } from "antd/es/form"; import { TComponentPropsMap, TFormItemProps } from "./types"; /** * @description 生成placeholder */ export declare function createPlaceholderMessage(component: keyof TComponentPropsMap): "" | "请输入" | "请选择"; export declare function setComponentRuleType(rule: RuleObject, component: keyof TComponentPropsMap, valueFormat: string): void; /** 时间类型组件集合 */ export declare const dateComponents: string[]; /** 判断当前项是否需要监听表单的model值 */ export declare const isNeedWatchModel: (itemProps: TFormItemProps) => boolean; /** 有些文件本地创建预览地址后由于编码问题会出现乱码,所以这里需对这些乱码的文件进行编码配置,让浏览器以正确的编码读文件 */ export declare const getFileEncodingType: (type: any) => any; export declare function buildUUID(): string;