test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
34 lines (33 loc) • 772 B
TypeScript
export interface CascaderPane {
nodes: [];
selectedNode: CascaderOption | null;
paneKey: string;
}
export interface CascaderOption {
text?: string;
value?: number | string;
paneKey?: string;
disabled?: boolean;
children?: CascaderOption[];
leaf?: boolean;
level?: number;
loading?: boolean;
root?: boolean;
}
export interface CascaderConfig {
value?: string;
text?: string;
children?: string;
}
export type CascaderValue = Exclude<CascaderOption['value'], undefined>[];
export interface CascaderOptionKey {
textKey: string;
valueKey: string;
childrenKey: string;
}
export interface CascaderFormat {
topId?: string | number | null;
idKey?: string;
pidKey?: string;
sortKey?: string;
}