@aplus-frontend/ui
Version:
17 lines (16 loc) • 786 B
TypeScript
import { ComputedRef } from 'vue';
import { ApFieldTextPasswordProps, ApFieldTextProps, ApFieldTextAreaProps, ApFieldNumberProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldSelectProps, BasicApFieldProps } from '../interface';
type FieldType = {
Text: ApFieldTextProps;
TextArea: ApFieldTextAreaProps;
Number: ApFieldNumberProps;
Date: ApFieldDateProps;
DateRange: ApFieldDateRangeProps;
Select: ApFieldSelectProps;
TextPassword: ApFieldTextPasswordProps;
};
type FieldNames = keyof FieldType;
export declare const useDefaultPlaceholder: <FieldName extends FieldNames>(fieldName: FieldName, props: BasicApFieldProps<{
placeholder?: FieldType[FieldName]["placeholder"];
}>) => ComputedRef<FieldType[FieldName]["placeholder"] | undefined>;
export {};