1 | import React from 'react';
|
2 | export declare type SelectSource = 'option' | 'selection' | 'input' | 'clear';
|
3 | export declare type Key = string | number;
|
4 | export declare type RawValueType = string | number;
|
5 | export interface LabelValueType {
|
6 | key?: Key;
|
7 | value?: RawValueType;
|
8 | label?: React.ReactNode;
|
9 |
|
10 | halfChecked?: boolean;
|
11 | }
|
12 | export declare type DefaultValueType = RawValueType | RawValueType[] | LabelValueType | LabelValueType[];
|
13 | export interface DataNode {
|
14 | value?: RawValueType;
|
15 | title?: React.ReactNode;
|
16 | label?: React.ReactNode;
|
17 | key?: Key;
|
18 | disabled?: boolean;
|
19 | disableCheckbox?: boolean;
|
20 | checkable?: boolean;
|
21 | children?: DataNode[];
|
22 |
|
23 | [prop: string]: any;
|
24 | }
|
25 | export interface InnerDataNode extends DataNode {
|
26 | key: Key;
|
27 | value: RawValueType;
|
28 | label?: React.ReactNode;
|
29 | children?: InnerDataNode[];
|
30 | }
|
31 | export interface LegacyDataNode extends DataNode {
|
32 | props: any;
|
33 | }
|
34 | export interface TreeDataNode extends DataNode {
|
35 | key: Key;
|
36 | children?: TreeDataNode[];
|
37 | }
|
38 | export interface FlattenDataNode {
|
39 | data: DataNode;
|
40 | key: Key;
|
41 | level: number;
|
42 | }
|
43 | export interface SimpleModeConfig {
|
44 | id?: Key;
|
45 | pId?: Key;
|
46 | rootPId?: Key;
|
47 | }
|
48 |
|
49 | export interface LegacyCheckedNode {
|
50 | pos: string;
|
51 | node: React.ReactElement;
|
52 | children?: LegacyCheckedNode[];
|
53 | }
|
54 | export interface ChangeEventExtra {
|
55 |
|
56 | preValue: LabelValueType[];
|
57 | triggerValue: RawValueType;
|
58 |
|
59 | selected?: boolean;
|
60 |
|
61 | checked?: boolean;
|
62 |
|
63 | triggerNode: React.ReactElement;
|
64 |
|
65 | allCheckedNodes: LegacyCheckedNode[];
|
66 | }
|