@vue-studio/h5-components
Version:
Vue Component base Vant4
31 lines (30 loc) • 771 B
TypeScript
import type { CascaderOption } from 'vant';
export interface CascaderProps {
modelValue?: number[] | string[] | CascaderOption[];
options: CascaderOption[];
fieldNames?: {
text?: string;
value?: string;
children?: string;
};
title?: string;
labelInValue?: boolean;
showAll?: boolean;
readonly?: boolean;
disabled?: boolean;
loading?: boolean;
}
export interface CascaderFinishEventParams {
value: string | number;
selectedOptions: CascaderOption[];
tabIndex: number;
}
export interface CascaderClickTabEventParams {
tabIndex: number;
title: string;
}
export interface CascaderChangeEventParams {
value: string | number;
selectedOptions: CascaderOption[];
tabIndex: number;
}