@dazhicheng/ui 1.5.109 → 1.5.111

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.
Files changed (36) hide show
  1. package/dist/api/dataTypeContext.d.ts +1 -1
  2. package/dist/components/tt-button/index.d.ts +259 -1204
  3. package/dist/components/tt-button/index.vue.d.ts +148 -688
  4. package/dist/components/tt-drawer/index.d.ts +457 -2389
  5. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +290 -1394
  6. package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +1 -1
  7. package/dist/components/tt-form/src/hooks/useSelectCollapse.d.ts +14 -0
  8. package/dist/components/tt-form-item-error-tooltip/index.d.ts +198 -1170
  9. package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +99 -585
  10. package/dist/components/tt-image/index.d.ts +8 -8
  11. package/dist/components/tt-image/src/components/ImageViewer.d.ts +4 -4
  12. package/dist/components/tt-image/tt-image.d.ts +12 -12
  13. package/dist/components/tt-modal/index.d.ts +30 -30
  14. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +12 -12
  15. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +5 -5
  16. package/dist/components/tt-panel-select/src/components/PanelLeft.vue.d.ts +17 -0
  17. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +162 -0
  18. package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +15 -0
  19. package/dist/components/tt-panel-select/src/components/panel.types.d.ts +12 -0
  20. package/dist/components/tt-panel-select/src/hooks/usePanelSelectData.d.ts +28 -0
  21. package/dist/components/tt-panel-select/src/hooks/usePanelSelectData.shared.d.ts +1 -0
  22. package/dist/components/tt-panel-select/src/hooks/usePanelSelectSelection.d.ts +21 -0
  23. package/dist/components/tt-panel-select/src/props.d.ts +41 -0
  24. package/dist/components/tt-table/index.d.ts +52 -322
  25. package/dist/components/tt-table/src/Table.vue.d.ts +104 -644
  26. package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +1 -1
  27. package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +199 -1171
  28. package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +104 -644
  29. package/dist/components/tt-upload/index.d.ts +47 -47
  30. package/dist/components/tt-upload/src/TtUpload.d.ts +47 -47
  31. package/dist/components/tt-upload/src/typing.d.ts +24 -24
  32. package/dist/hooks/useFormSchemasLink.d.ts +3 -18
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +9874 -9098
  35. package/dist/style.css +1 -1
  36. package/package.json +12 -12
@@ -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 | import('vue').Component) & {}) | (() => string | import('vue').Component) | ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component))[], unknown, unknown> | undefined;
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
+ };
@@ -0,0 +1,28 @@
1
+ import { PanelContainerProps, PanelSelectOption, PanelSelectValue } from '../props';
2
+ export type PanelTreeNode = PanelSelectOption & {
3
+ label: string;
4
+ value: PanelSelectValue;
5
+ disabled?: boolean;
6
+ children?: PanelTreeNode[];
7
+ parentValue?: PanelSelectValue | null;
8
+ level: number;
9
+ path: PanelTreeNode[];
10
+ raw: PanelSelectOption;
11
+ };
12
+ export type OptionGroup = {
13
+ value: PanelSelectValue;
14
+ label: string;
15
+ options: PanelTreeNode[];
16
+ };
17
+ export declare function usePanelSelectData(props: PanelContainerProps): {
18
+ loading: import('vue').Ref<boolean, boolean>;
19
+ fetchApi: () => Promise<void>;
20
+ treeOptions: import('vue').ComputedRef<PanelTreeNode[]>;
21
+ navTreeOptions: import('vue').ComputedRef<PanelTreeNode[]>;
22
+ navNodes: import('vue').ComputedRef<PanelTreeNode[]>;
23
+ leafNodes: import('vue').ComputedRef<PanelTreeNode[]>;
24
+ filterNodes: <T extends {
25
+ label: string;
26
+ }>(nodes: T[], keyword: string) => T[];
27
+ buildOptionGroups: (nodes: PanelTreeNode[], keyword: string) => OptionGroup[];
28
+ };
@@ -0,0 +1 @@
1
+ export declare function usePanelSelectData(): void;
@@ -0,0 +1,21 @@
1
+ import { Ref, WritableComputedRef } from 'vue';
2
+ import { OptionGroup, PanelTreeNode } from './usePanelSelectData';
3
+ import { PanelSelectModelValue, PanelSelectValue } from '../props';
4
+ type UsePanelSelectSelectionParams = {
5
+ multiple: Readonly<Ref<boolean>>;
6
+ modelValue: Ref<PanelSelectModelValue>;
7
+ selectedValues: WritableComputedRef<PanelSelectValue[]>;
8
+ leafNodes: Readonly<Ref<PanelTreeNode[]>>;
9
+ };
10
+ export declare function usePanelSelectSelection(params: UsePanelSelectSelectionParams): {
11
+ selectedOptions: import('vue').ComputedRef<PanelTreeNode[]>;
12
+ isAllChecked: import('vue').ComputedRef<boolean>;
13
+ isIndeterminate: import('vue').ComputedRef<boolean>;
14
+ isGroupChecked: (group: OptionGroup) => boolean;
15
+ isGroupIndeterminate: (group: OptionGroup) => boolean;
16
+ handleGroupCheck: (group: OptionGroup, checked: boolean) => void;
17
+ handleOptionCheck: (value: PanelSelectValue, checked: boolean) => void;
18
+ handleCheckAll: (checked: boolean) => void;
19
+ removeSelected: (value: PanelSelectValue) => void;
20
+ };
21
+ export {};
@@ -0,0 +1,41 @@
1
+ import { AnyPromiseFunction, Recordable } from '../../../../../utils/src';
2
+ export type PanelSelectValue = string | number;
3
+ export type PanelSelectModelValue = PanelSelectValue | PanelSelectValue[] | undefined;
4
+ export interface PanelSelectOption extends Recordable {
5
+ label?: string;
6
+ value?: PanelSelectValue;
7
+ disabled?: boolean;
8
+ children?: PanelSelectOption[];
9
+ }
10
+ export interface PanelContainerProps {
11
+ /** 是否展示左侧导航栏 */
12
+ showNav?: boolean;
13
+ /** 是否多选 */
14
+ multiple?: boolean;
15
+ /** 远程加载数据 */
16
+ api?: (arg?: any) => Promise<PanelSelectOption[] | Recordable>;
17
+ /** 传递给 api 的参数 */
18
+ params?: Recordable;
19
+ /** 从 api 返回结果中提取数组的字段名 */
20
+ resultField?: string;
21
+ /** 直接传入的数据,支持树结构或平铺结构 */
22
+ options?: PanelSelectOption[];
23
+ /** label 字段名 */
24
+ labelField?: string;
25
+ /** value 字段名 */
26
+ valueField?: string;
27
+ /** disabled 字段名 */
28
+ disabledField?: string;
29
+ /** children 字段名,传树结构时使用 */
30
+ childrenField?: string;
31
+ /** parent 字段名,传平铺结构时用于转树 */
32
+ parentField?: string;
33
+ /** 根节点 parent 值 */
34
+ rootParentValue?: PanelSelectValue | null;
35
+ /** 是否立即请求远程数据 */
36
+ immediate?: boolean;
37
+ /** 请求前处理参数 */
38
+ beforeFetch?: AnyPromiseFunction<any, any>;
39
+ /** 请求后处理返回值 */
40
+ afterFetch?: AnyPromiseFunction<any, any>;
41
+ }