tdesign-pro-component
Version:
ProComponents tdesign-vue-next + Vue3 + TS
27 lines (26 loc) • 833 B
TypeScript
import { PromiseFunction, ValueType } from '@tdesign-pro-component/utils';
import { FormItemProps, FormRule, RadioGroupProps } from 'tdesign-vue-next';
export interface ProFormRadioProps {
name: string;
data: RadioOptionProps[] | PromiseFunction<RadioOptionProps[]>;
modelValue: ValueType;
label?: string;
rules?: FormRule[];
formItemProps?: FormItemProps;
labelWidth?: string | number;
labelAlign?: 'left' | 'top' | 'right';
labelName?: string;
valueName?: string;
button?: boolean;
radioProps?: RadioGroupProps;
disabled?: boolean;
readonly?: boolean;
variant?: "outline" | "primary-filled" | "default-filled";
}
export interface RadioOptionProps {
label?: string;
value?: ValueType;
allowUncheck?: boolean;
disabled?: boolean;
[name: string]: any;
}