@dazhicheng/ui 1.5.108 → 1.5.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/tt-button/index.d.ts +259 -1204
- package/dist/components/tt-button/index.vue.d.ts +148 -688
- package/dist/components/tt-drawer/index.d.ts +457 -2389
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +290 -1394
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +1 -1
- package/dist/components/tt-form/src/hooks/useSelectCollapse.d.ts +14 -0
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +198 -1170
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +99 -585
- package/dist/components/tt-image/index.d.ts +8 -8
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +4 -4
- package/dist/components/tt-image/tt-image.d.ts +12 -12
- package/dist/components/tt-modal/index.d.ts +30 -30
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +12 -12
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +5 -5
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.d.ts +17 -0
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +162 -0
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +15 -0
- package/dist/components/tt-panel-select/src/components/panel.types.d.ts +12 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelectSelection.d.ts +1 -0
- package/dist/components/tt-table/index.d.ts +52 -322
- package/dist/components/tt-table/src/Table.vue.d.ts +104 -644
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +1 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +199 -1171
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +104 -644
- package/dist/components/tt-upload/index.d.ts +47 -47
- package/dist/components/tt-upload/src/TtUpload.d.ts +47 -47
- package/dist/components/tt-upload/src/typing.d.ts +24 -24
- package/dist/index.js +9357 -9111
- package/dist/style.css +1 -1
- package/package.json +12 -12
- package/dist/components/tt-panel-select/index.d.ts +0 -15
- package/dist/components/tt-panel-select/src/components/Panel.vue.d.ts +0 -33
- package/dist/components/tt-panel-select/src/index.vue.d.ts +0 -14
|
@@ -7,10 +7,10 @@ export declare function setDefaultModalProps(props: Partial<ModalProps>): void;
|
|
|
7
7
|
export declare function useModalRender<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions, MODAL_KEY?: symbol): readonly [import('vue').DefineSetupFnComponent<TParentModalProps, {}, {}, TParentModalProps & {}, import('vue').PublicProps>, TtModalExtendedModalApi] | readonly [import('vue').DefineSetupFnComponent<ModalProps, {}, {}, Partial<{
|
|
8
8
|
title: any;
|
|
9
9
|
showClose: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
10
|
-
appendTo: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>))[], unknown, unknown>;
|
|
10
|
+
appendTo: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
11
11
|
fullscreen: boolean;
|
|
12
12
|
visible: boolean;
|
|
13
|
-
transition: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition))[], unknown, unknown>;
|
|
13
|
+
transition: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | null)[], unknown, unknown>;
|
|
14
14
|
size: "small" | "medium" | "mini";
|
|
15
15
|
center: boolean;
|
|
16
16
|
height: any;
|
|
@@ -51,7 +51,7 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
51
51
|
}> & Omit<{
|
|
52
52
|
readonly title: any;
|
|
53
53
|
readonly showClose: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
54
|
-
readonly appendTo: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>))[], unknown, unknown>;
|
|
54
|
+
readonly appendTo: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | ((new (...args: any[]) => string | HTMLElement) | (() => import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>) | null)[], unknown, unknown>;
|
|
55
55
|
readonly fullscreen: boolean;
|
|
56
56
|
readonly visible: boolean;
|
|
57
57
|
readonly size: "small" | "medium" | "mini";
|
|
@@ -91,14 +91,14 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
91
91
|
readonly zIndex?: number | undefined;
|
|
92
92
|
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
|
|
93
93
|
readonly top?: string | undefined;
|
|
94
|
-
readonly transition?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition))[], unknown, unknown> | undefined;
|
|
94
|
+
readonly transition?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | null)[], unknown, unknown> | undefined;
|
|
95
95
|
readonly width?: string | number | undefined;
|
|
96
96
|
readonly overflow?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
97
97
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
98
98
|
readonly loadingTip?: string | undefined;
|
|
99
99
|
readonly modalClass?: string | undefined;
|
|
100
100
|
readonly alignCenter?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
101
|
-
readonly closeIcon?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string |
|
|
101
|
+
readonly closeIcon?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown> | undefined;
|
|
102
102
|
readonly headerClass?: string | undefined;
|
|
103
103
|
readonly bodyClass?: string | undefined;
|
|
104
104
|
readonly footerClass?: string | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PanelSelectValue } from '../props';
|
|
2
|
+
import { PanelTreeNode } from '../hooks/usePanelSelectData';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
prefixCls: string;
|
|
5
|
+
showNav: boolean;
|
|
6
|
+
keyword: string;
|
|
7
|
+
treeData: PanelTreeNode[];
|
|
8
|
+
expandedKeys: PanelSelectValue[];
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
select: (node: PanelTreeNode) => any;
|
|
12
|
+
"update:keyword": (value: string) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onSelect?: ((node: PanelTreeNode) => any) | undefined;
|
|
15
|
+
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
import { PanelSelectValue } from '../props';
|
|
3
|
+
import { MiddleRow } from './panel.types';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
prefixCls: string;
|
|
6
|
+
multiple: boolean;
|
|
7
|
+
keyword: string;
|
|
8
|
+
rows: MiddleRow[];
|
|
9
|
+
optionPerRow: number;
|
|
10
|
+
rowHeight: number;
|
|
11
|
+
selectedValues: PanelSelectValue[];
|
|
12
|
+
isAllChecked: boolean;
|
|
13
|
+
isIndeterminate: boolean;
|
|
14
|
+
scrollToGroupValue?: PanelSelectValue;
|
|
15
|
+
groupCheckedMap: Record<string, boolean>;
|
|
16
|
+
groupIndeterminateMap: Record<string, boolean>;
|
|
17
|
+
};
|
|
18
|
+
declare function scrollToGroup(groupValue: PanelSelectValue): Promise<void>;
|
|
19
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
20
|
+
scrollToGroup: typeof scrollToGroup;
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
checkAll: (checked: boolean) => any;
|
|
23
|
+
"update:keyword": (value: string) => any;
|
|
24
|
+
groupCheck: (groupValue: PanelSelectValue, checked: boolean) => any;
|
|
25
|
+
optionCheck: (value: PanelSelectValue, checked: boolean) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
+
onCheckAll?: ((checked: boolean) => any) | undefined;
|
|
28
|
+
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
29
|
+
onGroupCheck?: ((groupValue: PanelSelectValue, checked: boolean) => any) | undefined;
|
|
30
|
+
onOptionCheck?: ((value: PanelSelectValue, checked: boolean) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
32
|
+
scrollbarRef: ({
|
|
33
|
+
$: import('vue').ComponentInternalInstance;
|
|
34
|
+
$data: {};
|
|
35
|
+
$props: {
|
|
36
|
+
readonly distance?: number | undefined;
|
|
37
|
+
readonly height?: number | string | undefined;
|
|
38
|
+
readonly maxHeight?: number | string | undefined;
|
|
39
|
+
readonly native?: boolean | undefined;
|
|
40
|
+
readonly wrapStyle?: import('vue').StyleValue;
|
|
41
|
+
readonly wrapClass?: string | string[] | undefined;
|
|
42
|
+
readonly viewClass?: string | string[] | undefined;
|
|
43
|
+
readonly viewStyle?: import('vue').StyleValue;
|
|
44
|
+
readonly noresize?: boolean | undefined;
|
|
45
|
+
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
46
|
+
readonly always?: boolean | undefined;
|
|
47
|
+
readonly minSize?: number | undefined;
|
|
48
|
+
readonly tabindex?: number | string | undefined;
|
|
49
|
+
readonly id?: string | undefined;
|
|
50
|
+
readonly role?: string | undefined;
|
|
51
|
+
readonly ariaLabel?: string | undefined;
|
|
52
|
+
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
53
|
+
readonly onScroll?: ((args_0: {
|
|
54
|
+
scrollTop: number;
|
|
55
|
+
scrollLeft: number;
|
|
56
|
+
}) => any) | undefined | undefined;
|
|
57
|
+
readonly "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
|
|
58
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
59
|
+
$attrs: {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
$refs: {
|
|
63
|
+
[x: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
$slots: Readonly<{
|
|
66
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
69
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
70
|
+
$host: Element | null;
|
|
71
|
+
$emit: ((event: "scroll", args_0: {
|
|
72
|
+
scrollTop: number;
|
|
73
|
+
scrollLeft: number;
|
|
74
|
+
}) => void) & ((event: "end-reached", direction: import('element-plus').ScrollbarDirection) => void);
|
|
75
|
+
$el: any;
|
|
76
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').ScrollbarProps> & Readonly<{
|
|
77
|
+
onScroll?: ((args_0: {
|
|
78
|
+
scrollTop: number;
|
|
79
|
+
scrollLeft: number;
|
|
80
|
+
}) => any) | undefined;
|
|
81
|
+
"onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
|
|
82
|
+
}>, {
|
|
83
|
+
wrapRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
84
|
+
update: () => void;
|
|
85
|
+
scrollTo: {
|
|
86
|
+
(xCord: number, yCord?: number): void;
|
|
87
|
+
(options: ScrollToOptions): void;
|
|
88
|
+
};
|
|
89
|
+
setScrollTop: (value: number) => void;
|
|
90
|
+
setScrollLeft: (value: number) => void;
|
|
91
|
+
handleScroll: () => void;
|
|
92
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
93
|
+
scroll: (args_0: {
|
|
94
|
+
scrollTop: number;
|
|
95
|
+
scrollLeft: number;
|
|
96
|
+
}) => void;
|
|
97
|
+
"end-reached": (direction: import('element-plus').ScrollbarDirection) => void;
|
|
98
|
+
}, string, {
|
|
99
|
+
tabindex: number | string;
|
|
100
|
+
height: number | string;
|
|
101
|
+
maxHeight: number | string;
|
|
102
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
103
|
+
distance: number;
|
|
104
|
+
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
105
|
+
wrapClass: string | string[];
|
|
106
|
+
viewClass: string | string[];
|
|
107
|
+
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
108
|
+
minSize: number;
|
|
109
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
110
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
111
|
+
created?: (() => void) | (() => void)[];
|
|
112
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
113
|
+
mounted?: (() => void) | (() => void)[];
|
|
114
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
115
|
+
updated?: (() => void) | (() => void)[];
|
|
116
|
+
activated?: (() => void) | (() => void)[];
|
|
117
|
+
deactivated?: (() => void) | (() => void)[];
|
|
118
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
119
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
120
|
+
destroyed?: (() => void) | (() => void)[];
|
|
121
|
+
unmounted?: (() => void) | (() => void)[];
|
|
122
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
123
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
124
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
125
|
+
};
|
|
126
|
+
$forceUpdate: () => void;
|
|
127
|
+
$nextTick: typeof nextTick;
|
|
128
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
129
|
+
} & Readonly<{
|
|
130
|
+
tabindex: number | string;
|
|
131
|
+
height: number | string;
|
|
132
|
+
maxHeight: number | string;
|
|
133
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
134
|
+
distance: number;
|
|
135
|
+
wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
136
|
+
wrapClass: string | string[];
|
|
137
|
+
viewClass: string | string[];
|
|
138
|
+
viewStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
|
|
139
|
+
minSize: number;
|
|
140
|
+
}> & Omit<Readonly<import('element-plus').ScrollbarProps> & Readonly<{
|
|
141
|
+
onScroll?: ((args_0: {
|
|
142
|
+
scrollTop: number;
|
|
143
|
+
scrollLeft: number;
|
|
144
|
+
}) => any) | undefined;
|
|
145
|
+
"onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
|
|
146
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & import('vue').ShallowUnwrapRef<{
|
|
147
|
+
wrapRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
148
|
+
update: () => void;
|
|
149
|
+
scrollTo: {
|
|
150
|
+
(xCord: number, yCord?: number): void;
|
|
151
|
+
(options: ScrollToOptions): void;
|
|
152
|
+
};
|
|
153
|
+
setScrollTop: (value: number) => void;
|
|
154
|
+
setScrollLeft: (value: number) => void;
|
|
155
|
+
handleScroll: () => void;
|
|
156
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
157
|
+
$slots: {
|
|
158
|
+
default?: (props: {}) => any;
|
|
159
|
+
};
|
|
160
|
+
}) | null;
|
|
161
|
+
}, HTMLDivElement>;
|
|
162
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PanelTreeNode } from '../hooks/usePanelSelectData';
|
|
2
|
+
import { PanelSelectValue } from '../props';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
prefixCls: string;
|
|
5
|
+
multiple: boolean;
|
|
6
|
+
selectedOptions: PanelTreeNode[];
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
remove: (value: PanelSelectValue) => any;
|
|
10
|
+
clearAll: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onRemove?: ((value: PanelSelectValue) => any) | undefined;
|
|
13
|
+
onClearAll?: (() => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OptionGroup, PanelTreeNode } from '../hooks/usePanelSelectData';
|
|
2
|
+
export type MiddleRow = {
|
|
3
|
+
key: string;
|
|
4
|
+
type: "group";
|
|
5
|
+
group: OptionGroup;
|
|
6
|
+
} | {
|
|
7
|
+
key: string;
|
|
8
|
+
type: "options";
|
|
9
|
+
group: OptionGroup;
|
|
10
|
+
options: PanelTreeNode[];
|
|
11
|
+
isLast: boolean;
|
|
12
|
+
};
|
|
@@ -14,6 +14,7 @@ export declare function usePanelSelectSelection(params: UsePanelSelectSelectionP
|
|
|
14
14
|
isGroupChecked: (group: OptionGroup) => boolean;
|
|
15
15
|
isGroupIndeterminate: (group: OptionGroup) => boolean;
|
|
16
16
|
handleGroupCheck: (group: OptionGroup, checked: boolean) => void;
|
|
17
|
+
handleOptionCheck: (value: PanelSelectValue, checked: boolean) => void;
|
|
17
18
|
handleCheckAll: (checked: boolean) => void;
|
|
18
19
|
removeSelected: (value: PanelSelectValue) => void;
|
|
19
20
|
};
|