@layui/layui-vue
Version:
a component library for Vue 3 base on layui-vue
35 lines (34 loc) • 1.31 kB
TypeScript
import type { CascaderPanelItemProps, CascaderPanelLazyloadFunction } from "@layui/component/component/cascaderPanel/interface";
import type { DropdownTeleportProps } from "@layui/component/component/dropdown/interface";
import type { StyleValue } from "vue";
export type CascaderSize = "lg" | "md" | "sm" | "xs";
export type DropdownTrigger = "click" | "hover" | "focus" | "contextMenu";
export interface CascaderProps {
options?: Array<CascaderPanelItemProps>;
modelValue?: string | Array<string>;
decollator?: string;
placeholder?: string;
onlyLastLevel?: boolean;
disabled?: boolean;
replaceFields?: {
label?: string;
value?: string;
children?: string;
};
allowClear?: boolean;
size?: CascaderSize;
trigger?: DropdownTrigger | DropdownTrigger[];
contentClass?: string | Array<string | object> | object;
contentStyle?: StyleValue;
changeOnSelect?: boolean;
multiple?: boolean;
lazy?: boolean;
load?: CascaderPanelLazyloadFunction;
checkStrictly?: boolean;
fullpath?: boolean;
search?: boolean;
searchMethod?: (value: string) => Array<CascaderPanelItemProps>;
minCollapsedNum?: number;
collapseTagsTooltip?: boolean;
teleportProps?: DropdownTeleportProps;
}