ados-rcm 1.1.39 → 1.1.41
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ import { IABaseProps } from '../ABase/ABase';
|
|
6
6
|
import { TIcons } from '../AIcon/AIcon';
|
7
7
|
import { Resources } from '../AResource/AResource';
|
8
8
|
import { TActionRef } from '../ATypes/ATypes';
|
9
|
-
import { IATreeItemProps } from './ATreeItem';
|
9
|
+
import { IATreeItemProps, IIndentProps } from './ATreeItem';
|
10
10
|
export interface IATreeSearchResult<T> {
|
11
11
|
/**
|
12
12
|
* keyword : string
|
@@ -107,7 +107,7 @@ export interface IATreeProps<T extends IATreeItem<T>> extends IABaseProps {
|
|
107
107
|
*
|
108
108
|
* Description : indents of ATree
|
109
109
|
*/
|
110
|
-
indents
|
110
|
+
indents?(props: IIndentProps): {
|
111
111
|
callapsed?: React.ReactNode;
|
112
112
|
expanded?: React.ReactNode;
|
113
113
|
isLast?: React.ReactNode;
|
@@ -9,7 +9,7 @@ export interface IATreeItemProps<T> {
|
|
9
9
|
item: T;
|
10
10
|
selectDisabled?: (item: T) => boolean | string | undefined;
|
11
11
|
isParentDisabled?: boolean | string;
|
12
|
-
extIndents?: {
|
12
|
+
extIndents?: (props: IIndentProps) => {
|
13
13
|
callapsed?: React.ReactNode;
|
14
14
|
expanded?: React.ReactNode;
|
15
15
|
isLast?: React.ReactNode;
|
@@ -42,9 +42,14 @@ export interface IATreeItemProps<T> {
|
|
42
42
|
TreeItemStyle?: TCanCallback<IATreeItemProps<T>, React.CSSProperties>;
|
43
43
|
TreeItemClassName?: TCanCallback<IATreeItemProps<T>, string>;
|
44
44
|
}
|
45
|
-
|
45
|
+
declare enum EIndentState {
|
46
46
|
Collapsed = "Collapsed",
|
47
47
|
Expanded = "Expanded",
|
48
48
|
IsLast = "IsLast"
|
49
49
|
}
|
50
50
|
export declare const ATreeItem: <T extends IATreeItem<T>>(props: IATreeItemProps<T>) => React.ReactNode;
|
51
|
+
export interface IIndentProps {
|
52
|
+
iconWidth: number;
|
53
|
+
isLast?: boolean;
|
54
|
+
}
|
55
|
+
export {};
|