yanzhen-design-vue
Version:
20 lines (19 loc) • 697 B
TypeScript
export type CascaderValue = string | number;
export type CascaderLabel = string | number | null | undefined;
export declare enum CascaderOption {
VALUE = "value",
LABEL = "label",
CHILDREN = "children",
DISABLED = "disabled"
}
export declare const cascaderOptionType: readonly [CascaderOption.VALUE, CascaderOption.LABEL, CascaderOption.CHILDREN, CascaderOption.DISABLED];
export interface CascaderItem {
[CascaderOption.VALUE]: CascaderValue;
[CascaderOption.LABEL]: CascaderLabel;
[CascaderOption.CHILDREN]?: CascaderItem[];
[CascaderOption.DISABLED]?: boolean;
isLeaf?: boolean;
dataRef?: any;
info?: Record<string, any>;
[k: string]: unknown;
}