@aplus-frontend/ui
Version:
66 lines (65 loc) • 2.53 kB
TypeScript
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextPasswordProps, ApFieldTextProps, ApFieldTreeSelectProps } from '../../ap-field';
import { ApFormItemProps } from '../interface';
export type ApFormItemTextProps = ApFormItemProps & {
field?: Omit<ApFieldTextProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemTextPasswordProps = ApFormItemProps & {
field?: Omit<ApFieldTextPasswordProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemTextAreaProps = Omit<ApFormItemProps, 'bordered'> & {
field?: Omit<ApFieldTextAreaProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemNumberProps = ApFormItemProps & {
field?: Omit<ApFieldNumberProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemDateProps = ApFormItemProps & {
field?: Omit<ApFieldDateProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemDateRangeProps = ApFormItemProps & {
field?: Omit<ApFieldDateRangeProps, 'value' | 'onUpdate:value'>;
placeholder?: [string, string];
disabled?: boolean;
};
export type ApFormItemRadioProps = Omit<ApFormItemProps, 'bordered'> & {
field?: Omit<ApFieldRadioProps, 'value' | 'onUpdate:value'>;
disabled?: boolean;
};
export type ApFormItemSelectProps = ApFormItemProps & {
field?: Omit<ApFieldSelectProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemSwitchProps = Omit<ApFormItemProps, 'bordered'> & {
field?: Omit<ApFieldSwitchProps, 'checked' | 'onUpdate:checked'>;
disabled?: boolean;
};
export type ApFormItemCheckboxProps = Omit<ApFormItemProps, 'bordered'> & {
field?: Omit<ApFieldCheckboxProps, 'value' | 'onUpdate:value'>;
disabled?: boolean;
};
export type ApFormItemTreeSelectProps = ApFormItemProps & {
field?: Omit<ApFieldTreeSelectProps, 'value' | 'onUpdate:value'>;
placeholder?: string;
disabled?: boolean;
};
export type ApFormItemTextGroupProps = {
/**
* ApFormItem 控件所有支持的
*/
size?: SizeType;
/**
* 是否启用紧凑模式
*/
compact?: boolean;
};