@vue-studio/h5-components
Version:
Vue Component base Vant4
19 lines (18 loc) • 567 B
TypeScript
import type { PickerOption } from 'vant';
export type SingleValueType = number | string | PickerOption;
export type MultipleValueType = number[] | string[] | PickerOption[];
export interface SelectProps {
modelValue?: number | string | PickerOption | number[] | string[] | PickerOption[];
options: PickerOption[];
fieldNames?: {
text?: string;
value?: string;
children?: string;
};
title?: string;
labelInValue?: boolean;
multiple?: boolean;
readonly?: boolean;
disabled?: boolean;
loading?: boolean;
}