UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

40 lines (39 loc) 808 B
/** * props */ export interface Props { data?: any[] | null; modelValue?: string | string[]; decollator?: string; placeholder?: string; last?: boolean; disabled?: boolean; fields?: { label: string; value: string; children: string; }; clear?: boolean; } /** * 级联选择器返回结果类型 */ export interface CascaderResult { display: string | number | undefined; value: string; label: string; currentSelect: { id: string | number; value: string; label: string; name: string; }; } /** * 组件事件 */ export type Emits = { (event: 'update:modelValue', value: string | string[] | undefined): void; (event: 'change', value: CascaderResult): void; (event: 'clear'): void; };