UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

40 lines (38 loc) 1.16 kB
import { PropType, ExtractPropTypes } from 'vue'; import { ComicSize } from '../../../utils'; export type Prop = { children?: string; label?: string; value?: string; separator?: string; }; export type CascaderChilds = { label?: string; value?: string; children?: CascaderChilds; disabled?: boolean; [key: string]: any; }[]; export declare const cascaderProps: { readonly modelValue: { readonly type: PropType<any[]>; readonly default: readonly []; }; readonly options: { readonly type: PropType<CascaderChilds>; readonly default: readonly []; }; readonly size: PropType<ComicSize>; readonly disabled: BooleanConstructor; readonly clearable: BooleanConstructor; readonly arbitrarily: BooleanConstructor; readonly placeholder: StringConstructor; readonly prop: PropType<Prop>; }; export type CascaderProps = ExtractPropTypes<typeof cascaderProps>; export declare const cascaderEmits: { "update:modelValue": (val: any[]) => boolean; change: (val: any[]) => boolean; clear: () => boolean; }; export type CascaderEmits = typeof cascaderEmits;