@antdv/pro-field
Version:
原子信息组件,统一 ProForm、ProTable、ProList、Filter 等组件里面的字段定义。
51 lines (50 loc) • 6.13 kB
TypeScript
import type { Key, ProFieldFCMode, ProSchemaValueEnumMap, ProSchemaValueEnumObj } from '@antdv/pro-utils';
import type { ExtractPublicPropTypes, Ref, VNode } from 'vue';
export declare const proFieldLightProps: {
readonly labelRef: import("@antdv/pro-utils").VueTypeValidateDef<HTMLElement, import("@antdv/pro-utils").ValidatorFunction<HTMLElement>>;
readonly clearRef: import("@antdv/pro-utils").VueTypeValidateDef<HTMLElement, import("@antdv/pro-utils").ValidatorFunction<HTMLElement>>;
readonly labelTrigger: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
};
export type ProFieldLightProps = ExtractPublicPropTypes<typeof proFieldLightProps>;
export declare const baseProFieldProps: {
readonly text: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly fieldProps: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly mode: import("@antdv/pro-utils").VueTypeValidateDef<ProFieldFCMode, import("@antdv/pro-utils").ValidatorFunction<ProFieldFCMode>>;
readonly plain: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly light: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly label: import("@antdv/pro-utils").VueTypeValidateDef<import("@antdv/pro-utils").VueNode, import("@antdv/pro-utils").ValidatorFunction<import("@antdv/pro-utils").VueNode>>;
readonly valueEnum: import("@antdv/pro-utils").VueTypeValidateDef<ProSchemaValueEnumObj | ProSchemaValueEnumMap, import("@antdv/pro-utils").ValidatorFunction<ProSchemaValueEnumObj | ProSchemaValueEnumMap>>;
readonly proFieldKey: import("@antdv/pro-utils").VueTypeDef<Key>;
};
export type BaseProFieldProps = ExtractPublicPropTypes<typeof baseProFieldProps>;
export declare const proRenderFieldProps: {
readonly render: import("@antdv/pro-utils").VueTypeValidateDef<(text: any, props: Ref<Omit<ProFieldFCRenderProps, "value" | "onChange">>, dom: VNode) => VNode, import("@antdv/pro-utils").ValidatorFunction<(text: any, props: Ref<Omit<ProFieldFCRenderProps, "value" | "onChange">>, dom: VNode) => VNode>>;
readonly renderFormItem: import("@antdv/pro-utils").VueTypeValidateDef<(text: any, props: Ref<ProFieldFCRenderProps>, dom: VNode) => VNode | null, import("@antdv/pro-utils").ValidatorFunction<(text: any, props: Ref<ProFieldFCRenderProps>, dom: VNode) => VNode | null>>;
};
export type ProRenderFieldProps = ExtractPublicPropTypes<typeof proRenderFieldProps>;
export declare function buildProFieldProp<T extends Record<string, any>>(extraProps: T): {
readonly render: import("@antdv/pro-utils").VueTypeValidateDef<(text: any, props: Ref<Omit<ProFieldFCRenderProps, "value" | "onChange">>, dom: VNode) => VNode, import("@antdv/pro-utils").ValidatorFunction<(text: any, props: Ref<Omit<ProFieldFCRenderProps, "value" | "onChange">>, dom: VNode) => VNode>>;
readonly renderFormItem: import("@antdv/pro-utils").VueTypeValidateDef<(text: any, props: Ref<ProFieldFCRenderProps>, dom: VNode) => VNode | null, import("@antdv/pro-utils").ValidatorFunction<(text: any, props: Ref<ProFieldFCRenderProps>, dom: VNode) => VNode | null>>;
readonly text: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly fieldProps: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly mode: import("@antdv/pro-utils").VueTypeValidateDef<ProFieldFCMode, import("@antdv/pro-utils").ValidatorFunction<ProFieldFCMode>>;
readonly plain: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly light: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly label: import("@antdv/pro-utils").VueTypeValidateDef<import("@antdv/pro-utils").VueNode, import("@antdv/pro-utils").ValidatorFunction<import("@antdv/pro-utils").VueNode>>;
readonly valueEnum: import("@antdv/pro-utils").VueTypeValidateDef<ProSchemaValueEnumObj | ProSchemaValueEnumMap, import("@antdv/pro-utils").ValidatorFunction<ProSchemaValueEnumObj | ProSchemaValueEnumMap>>;
readonly proFieldKey: import("@antdv/pro-utils").VueTypeDef<Key>;
} & T;
export declare const proFieldFCRenderProps: {
readonly text: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly fieldProps: import("@antdv/pro-utils").VueTypeValidateDef<any, import("@antdv/pro-utils").ValidatorFunction<any>>;
readonly mode: import("@antdv/pro-utils").VueTypeValidateDef<ProFieldFCMode, import("@antdv/pro-utils").ValidatorFunction<ProFieldFCMode>>;
readonly plain: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly light: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly label: import("@antdv/pro-utils").VueTypeValidateDef<import("@antdv/pro-utils").VueNode, import("@antdv/pro-utils").ValidatorFunction<import("@antdv/pro-utils").VueNode>>;
readonly valueEnum: import("@antdv/pro-utils").VueTypeValidateDef<ProSchemaValueEnumObj | ProSchemaValueEnumMap, import("@antdv/pro-utils").ValidatorFunction<ProSchemaValueEnumObj | ProSchemaValueEnumMap>>;
readonly proFieldKey: import("@antdv/pro-utils").VueTypeDef<Key>;
readonly readonly: import("@antdv/pro-utils").VueTypeValidateDef<boolean, import("@antdv/pro-utils").ValidatorFunction<boolean>>;
readonly placeholder: import("@antdv/pro-utils").VueTypeDef<string | string[]>;
readonly onChange: import("@antdv/pro-utils").VueTypeValidateDef<(...rest: any[]) => void, import("@antdv/pro-utils").ValidatorFunction<(...rest: any[]) => void>>;
};
export type ProFieldFCRenderProps = ExtractPublicPropTypes<typeof proFieldFCRenderProps>;