@layui/layui-vue
Version:
a component library for Vue 3 base on layui-vue
103 lines (102 loc) • 3.57 kB
TypeScript
/** __vue_virtual_code_placeholder */
import type { CascaderPanelItemProps } from "@layui/component/component/cascaderPanel/interface";
import type { CascaderProps } from "./interface";
import "./index.less";
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CascaderProps>, {
options: undefined;
modelValue: string;
decollator: string;
placeholder: string;
onlyLastLevel: boolean;
allowClear: boolean;
disabled: boolean;
trigger: () => string[];
changeOnSelect: boolean;
replaceFields: () => {
label: string;
value: string;
children: string;
};
multiple: boolean;
lazy: boolean;
load: undefined;
checkStrictly: boolean;
fullpath: boolean;
minCollapsedNum: number;
collapseTagsTooltip: boolean;
}>, {
getSelectLabel: import("vue").ComputedRef<string | string[]>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "change" | "update:modelValue")[], "clear" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CascaderProps>, {
options: undefined;
modelValue: string;
decollator: string;
placeholder: string;
onlyLastLevel: boolean;
allowClear: boolean;
disabled: boolean;
trigger: () => string[];
changeOnSelect: boolean;
replaceFields: () => {
label: string;
value: string;
children: string;
};
multiple: boolean;
lazy: boolean;
load: undefined;
checkStrictly: boolean;
fullpath: boolean;
minCollapsedNum: number;
collapseTagsTooltip: boolean;
}>>> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onClear?: ((...args: any[]) => any) | undefined;
onChange?: ((...args: any[]) => any) | undefined;
}, {
disabled: boolean;
multiple: boolean;
load: import("@layui/component/component/cascaderPanel/interface").CascaderPanelLazyloadFunction;
options: CascaderPanelItemProps[];
trigger: import("./interface").DropdownTrigger | import("./interface").DropdownTrigger[];
modelValue: string | string[];
allowClear: boolean;
placeholder: string;
replaceFields: {
label?: string | undefined;
value?: string | undefined;
children?: string | undefined;
};
decollator: string;
onlyLastLevel: boolean;
lazy: boolean;
checkStrictly: boolean;
changeOnSelect: boolean;
fullpath: boolean;
minCollapsedNum: number;
collapseTagsTooltip: boolean;
}, {}>, Partial<Record<any, (_: {}) => any>> & {
default?(_: {}): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};