tuple FormLabelAlign (#19543)

This commit is contained in:
Amumu 2019-11-04 11:24:23 +08:00 committed by 偏右
parent 15d8494cf2
commit 3402f656ad

View File

@ -14,7 +14,9 @@ import FormContext, { FormContextProps } from './context';
const ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '');
export type FormLabelAlign = 'left' | 'right';
const FormLabelAligns = tuple('left', 'right');
export type FormLabelAlign = (typeof FormLabelAligns)[number];
export interface FormItemProps {
prefixCls?: string;