@dazhicheng/ui 1.6.23 → 1.6.25
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-api-component/index.d.ts +24 -35
- package/dist/components/tt-area/TtArea.d.ts +3 -0
- package/dist/components/tt-area/index.d.ts +1 -1
- package/dist/components/tt-button/components/AddButton.d.ts +3 -0
- package/dist/components/tt-button/index.d.ts +260 -589
- package/dist/components/tt-checkbox/index.d.ts +26 -35
- package/dist/components/tt-drawer/index.d.ts +306 -299
- package/dist/components/tt-drawer/src/{RenderDrawer.vue.d.ts → RenderDrawer.d.ts} +149 -146
- package/dist/components/tt-drawer/src/components/{DrawerFooter.vue.d.ts → DrawerFooter.d.ts} +18 -16
- package/dist/components/tt-drawer/src/components/{DrawerHeader.vue.d.ts → DrawerHeader.d.ts} +4 -3
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.d.ts +2 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.d.ts +2 -2
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +4 -2
- package/dist/components/tt-empty/index.d.ts +10 -8
- package/dist/components/tt-form/src/components/{ExpandableArrow.vue.d.ts → ExpandableArrow.d.ts} +5 -4
- package/dist/components/tt-form/src/components/{FormActions.vue.d.ts → FormActions.d.ts} +6 -5
- package/dist/components/tt-form/src/components/{FormElInput.vue.d.ts → FormElInput.d.ts} +105 -101
- package/dist/components/tt-form/src/components/Slot.d.ts +4 -4
- package/dist/components/tt-form/src/form/{FormControl.vue.d.ts → FormControl.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormDescription.vue.d.ts → FormDescription.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormItem.vue.d.ts → FormItem.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{FormLabel.vue.d.ts → FormLabel.d.ts} +2 -1
- package/dist/components/tt-form/src/form/FormMessage.d.ts +3 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.d.ts +9 -0
- package/dist/components/tt-form/src/form/{FormWarnMessage.vue.d.ts → FormWarnMessage.d.ts} +2 -1
- package/dist/components/tt-form/src/form/{RenderContent.vue.d.ts → RenderContent.d.ts} +4 -4
- package/dist/components/tt-form/src/form/index.d.ts +8 -8
- package/dist/components/tt-form/src/form/useFormField.d.ts +6 -5
- package/dist/components/tt-form/src/form-render/{FormField.vue.d.ts → FormField.d.ts} +2 -1
- package/dist/components/tt-form/src/form-render/FormFieldContact.d.ts +6 -6
- package/dist/components/tt-form/src/form-render/{FormLabel.vue.d.ts → FormLabel.d.ts} +3 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +14 -11
- package/dist/components/tt-form/src/form-render/context.d.ts +5 -4
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +7 -6
- package/dist/components/tt-form/src/form-render/expandable.d.ts +4 -3
- package/dist/components/tt-form/src/form-render/{form.vue.d.ts → form.d.ts} +9 -8
- package/dist/components/tt-form/src/form-render/index.d.ts +3 -3
- package/dist/components/tt-form/src/formApi.d.ts +3 -3
- package/dist/components/tt-form/src/group-form/{GroupForm.vue.d.ts → GroupForm.d.ts} +7 -5
- package/dist/components/tt-form/src/group-form/{GroupSection.vue.d.ts → GroupSection.d.ts} +7 -5
- package/dist/components/tt-form/src/group-form/{LazyFormField.vue.d.ts → LazyFormField.d.ts} +5 -3
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +7 -5
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +3 -2
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +2 -2
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +2 -2
- package/dist/components/tt-form/src/index.d.ts +217 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -1
- package/dist/components/tt-form/src/useFormContext.d.ts +2 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +61 -337
- package/dist/components/tt-icon/components/AddIcon.d.ts +8 -0
- package/dist/components/tt-icon/components/SubIcon.d.ts +8 -0
- package/dist/components/tt-icon/index.d.ts +24 -115
- package/dist/components/tt-image/index.d.ts +45 -41
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +30 -26
- package/dist/components/tt-image/tt-image.d.ts +36 -34
- package/dist/components/tt-loading/index.d.ts +5 -2
- package/dist/components/tt-loading/src/loading.d.ts +13 -0
- package/dist/components/tt-log/index.d.ts +7 -6
- package/dist/components/tt-modal/index.d.ts +371 -364
- package/dist/components/tt-modal/src/{RenderModal.vue.d.ts → RenderModal.d.ts} +118 -115
- package/dist/components/tt-modal/src/components/{ModalFooter.vue.d.ts → ModalFooter.d.ts} +26 -23
- package/dist/components/tt-modal/src/components/{ModalHeader.vue.d.ts → ModalHeader.d.ts} +4 -3
- package/dist/components/tt-modal/src/components/{ModalWrapper.vue.d.ts → ModalWrapper.d.ts} +27 -24
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +32 -29
- package/dist/components/tt-modal/src/typing.d.ts +2 -2
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +2 -1
- package/dist/components/tt-modal-form/hooks/useModalFormSlot.d.ts +3 -2
- package/dist/components/tt-modal-form/index.d.ts +46 -2
- package/dist/components/tt-modal-form/useModalForm.d.ts +4 -3
- package/dist/components/tt-nav-anchor/index.d.ts +15 -12
- package/dist/components/tt-nav-anchor/src/{TtNavAnchor.vue.d.ts → TtNavAnchor.d.ts} +4 -4
- package/dist/components/tt-panel-select/index.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/{PanelLeft.vue.d.ts → PanelLeft.d.ts} +4 -3
- package/dist/components/tt-panel-select/src/components/{PanelMiddle.vue.d.ts → PanelMiddle.d.ts} +83 -80
- package/dist/components/tt-panel-select/src/components/{PanelRight.vue.d.ts → PanelRight.d.ts} +34 -32
- package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +7 -6
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +5 -5
- package/dist/components/tt-panel-select/src/{index.vue.d.ts → index.d.ts} +84 -80
- package/dist/components/tt-radio-group/index.d.ts +31 -50
- package/dist/components/tt-select/index.d.ts +1 -1
- package/dist/components/tt-select/src/{Select.vue.d.ts → Select.d.ts} +146 -141
- package/dist/components/tt-select/src/components/{SelectTable.vue.d.ts → SelectTable.d.ts} +40 -36
- package/dist/components/tt-select/src/components/{Table.vue.d.ts → Table.d.ts} +41 -38
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +4 -3
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +287 -279
- package/dist/components/tt-table/src/{Table.vue.d.ts → Table.d.ts} +209 -204
- package/dist/components/tt-table/src/{TableForm.vue.d.ts → TableForm.d.ts} +83 -80
- package/dist/components/tt-table/src/components/RowContext.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableAction.vue.d.ts → TableAction.d.ts} +4 -4
- package/dist/components/tt-table/src/components/TableButtons.d.ts +5 -5
- package/dist/components/tt-table/src/components/{TableColumnModal.vue.d.ts → TableColumnModal.d.ts} +5 -4
- package/dist/components/tt-table/src/components/{TableToolbarTools.vue.d.ts → TableToolbarTools.d.ts} +7 -6
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +45 -44
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +33 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +112 -110
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +2 -2
- package/dist/components/tt-table/src/props.d.ts +19 -17
- package/dist/components/tt-table/src/utils/table-api.d.ts +4 -4
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +2 -1
- package/dist/components/tt-text/index.d.ts +34 -59
- package/dist/components/tt-upload/index.d.ts +317 -311
- package/dist/components/tt-upload/src/TtUpload.d.ts +519 -0
- package/dist/components/tt-upload/src/typing.d.ts +49 -47
- package/dist/hooks/useDataPermissionOptions.js +76 -72
- package/dist/hooks/useLoading.d.ts +2 -2
- package/dist/hooks/useScreenshotOss.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/package.json +2 -2
- package/dist/components/tt-api-component/index.vue.d.ts +0 -34
- package/dist/components/tt-area/TtArea.vue.d.ts +0 -2
- package/dist/components/tt-button/components/AddButton.vue.d.ts +0 -2
- package/dist/components/tt-button/index.vue.d.ts +0 -466
- package/dist/components/tt-checkbox/index.vue.d.ts +0 -28
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +0 -2
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +0 -8
- package/dist/components/tt-form/src/index.vue.d.ts +0 -216
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +0 -298
- package/dist/components/tt-icon/components/AddIcon.vue.d.ts +0 -7
- package/dist/components/tt-icon/components/SubIcon.vue.d.ts +0 -7
- package/dist/components/tt-icon/index.vue.d.ts +0 -32
- package/dist/components/tt-loading/src/loading.vue.d.ts +0 -12
- package/dist/components/tt-log/index.vue.d.ts +0 -5
- package/dist/components/tt-modal-form/index.vue.d.ts +0 -45
- package/dist/components/tt-radio-group/index.vue.d.ts +0 -33
- package/dist/components/tt-text/index.vue.d.ts +0 -50
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +0 -517
package/dist/components/tt-panel-select/src/components/{PanelLeft.vue.d.ts → PanelLeft.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PanelSelectValue } from '../types';
|
|
2
2
|
import { PanelTreeNode } from '../hooks/usePanelData';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
prefixCls: string;
|
|
5
6
|
keyword: string;
|
|
@@ -7,11 +8,11 @@ type __VLS_Props = {
|
|
|
7
8
|
expandedKeys: PanelSelectValue[];
|
|
8
9
|
leftPlaceholder: string;
|
|
9
10
|
};
|
|
10
|
-
declare const _default:
|
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
12
|
select: (node: PanelTreeNode) => any;
|
|
12
13
|
"update:keyword": (value: string) => any;
|
|
13
|
-
}, string,
|
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
15
|
onSelect?: ((node: PanelTreeNode) => any) | undefined;
|
|
15
16
|
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
18
|
export default _default;
|
package/dist/components/tt-panel-select/src/components/{PanelMiddle.vue.d.ts → PanelMiddle.d.ts}
RENAMED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
|
-
import { PanelSelectValue, PanelMiddleProps } from '../types';
|
|
1
|
+
import { nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ShallowRef, ComputedRef, Ref, CSSProperties, GlobalComponents, GlobalDirectives, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
2
|
+
import { PanelSelectValue, PanelMiddleProps, PanelSelectSeparator } from '../types';
|
|
3
|
+
import { ComponentSize, InputModelModifiers, InputType, InputAutoSize, InputProps, ScrollbarDirection, ScrollbarProps } from 'element-plus';
|
|
4
|
+
import { IconPropType } from 'element-plus/es/utils/index.mjs';
|
|
5
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
3
6
|
declare function scrollToGroup(groupValue: PanelSelectValue): Promise<void>;
|
|
4
|
-
declare const _default:
|
|
7
|
+
declare const _default: DefineComponent<PanelMiddleProps, {
|
|
5
8
|
scrollToGroup: typeof scrollToGroup;
|
|
6
9
|
inputFocus: () => void;
|
|
7
|
-
}, {}, {}, {},
|
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
11
|
"update:keyword": (value: string) => any;
|
|
9
12
|
checkAll: (checked: boolean) => any;
|
|
10
13
|
allCheck: (checked: boolean) => any;
|
|
11
14
|
groupCheck: (groupValue: PanelSelectValue, checked: boolean) => any;
|
|
12
15
|
optionCheck: (value: PanelSelectValue, checked: boolean) => any;
|
|
13
16
|
optionsCheck: (values: PanelSelectValue[], checked: boolean) => any;
|
|
14
|
-
}, string,
|
|
17
|
+
}, string, PublicProps, Readonly<PanelMiddleProps> & Readonly<{
|
|
15
18
|
"onUpdate:keyword"?: ((value: string) => any) | undefined;
|
|
16
19
|
onCheckAll?: ((checked: boolean) => any) | undefined;
|
|
17
20
|
onAllCheck?: ((checked: boolean) => any) | undefined;
|
|
@@ -22,22 +25,22 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
22
25
|
disabled: boolean;
|
|
23
26
|
scrollToGroupValue: PanelSelectValue;
|
|
24
27
|
pasteSearch: boolean;
|
|
25
|
-
separator:
|
|
26
|
-
}, {}, {}, {}, string,
|
|
28
|
+
separator: PanelSelectSeparator;
|
|
29
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
30
|
searchInputRef: ({
|
|
28
|
-
$:
|
|
31
|
+
$: ComponentInternalInstance;
|
|
29
32
|
$data: {};
|
|
30
33
|
$props: {
|
|
31
34
|
readonly id?: string | undefined;
|
|
32
|
-
readonly size?:
|
|
35
|
+
readonly size?: ComponentSize | undefined;
|
|
33
36
|
readonly disabled?: boolean | undefined;
|
|
34
37
|
readonly modelValue?: string | number | null | undefined | undefined;
|
|
35
|
-
readonly modelModifiers?:
|
|
38
|
+
readonly modelModifiers?: InputModelModifiers | undefined;
|
|
36
39
|
readonly maxlength?: string | number | undefined;
|
|
37
40
|
readonly minlength?: string | number | undefined;
|
|
38
|
-
readonly type?:
|
|
41
|
+
readonly type?: InputType | undefined;
|
|
39
42
|
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
40
|
-
readonly autosize?:
|
|
43
|
+
readonly autosize?: InputAutoSize | undefined;
|
|
41
44
|
readonly autocomplete?: string | undefined;
|
|
42
45
|
readonly formatter?: ((value: string) => string) | undefined;
|
|
43
46
|
readonly parser?: ((value: string) => string) | undefined;
|
|
@@ -45,16 +48,16 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
45
48
|
readonly form?: string | undefined;
|
|
46
49
|
readonly readonly?: boolean | undefined;
|
|
47
50
|
readonly clearable?: boolean | undefined;
|
|
48
|
-
readonly clearIcon?:
|
|
51
|
+
readonly clearIcon?: IconPropType | undefined;
|
|
49
52
|
readonly showPassword?: boolean | undefined;
|
|
50
53
|
readonly showWordLimit?: boolean | undefined;
|
|
51
54
|
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
52
|
-
readonly suffixIcon?:
|
|
53
|
-
readonly prefixIcon?:
|
|
55
|
+
readonly suffixIcon?: IconPropType | undefined;
|
|
56
|
+
readonly prefixIcon?: IconPropType | undefined;
|
|
54
57
|
readonly containerRole?: string | undefined;
|
|
55
58
|
readonly tabindex?: string | number | undefined;
|
|
56
59
|
readonly validateEvent?: boolean | undefined;
|
|
57
|
-
readonly inputStyle?:
|
|
60
|
+
readonly inputStyle?: StyleValue;
|
|
58
61
|
readonly autofocus?: boolean | undefined;
|
|
59
62
|
readonly rows?: number | undefined;
|
|
60
63
|
readonly ariaLabel?: string | undefined;
|
|
@@ -73,7 +76,7 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
73
76
|
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
74
77
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
75
78
|
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
76
|
-
} &
|
|
79
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
77
80
|
$attrs: {
|
|
78
81
|
[x: string]: unknown;
|
|
79
82
|
};
|
|
@@ -81,14 +84,14 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
81
84
|
[x: string]: unknown;
|
|
82
85
|
};
|
|
83
86
|
$slots: Readonly<{
|
|
84
|
-
[name: string]:
|
|
87
|
+
[name: string]: Slot<any> | undefined;
|
|
85
88
|
}>;
|
|
86
|
-
$root:
|
|
87
|
-
$parent:
|
|
89
|
+
$root: ComponentPublicInstance | null;
|
|
90
|
+
$parent: ComponentPublicInstance | null;
|
|
88
91
|
$host: Element | null;
|
|
89
92
|
$emit: ((event: "input", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
90
93
|
$el: any;
|
|
91
|
-
$options:
|
|
94
|
+
$options: ComponentOptionsBase<Readonly< InputProps> & Readonly<{
|
|
92
95
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
93
96
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
94
97
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -102,19 +105,19 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
102
105
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
103
106
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
104
107
|
}>, {
|
|
105
|
-
input:
|
|
106
|
-
textarea:
|
|
107
|
-
ref:
|
|
108
|
-
textareaStyle:
|
|
109
|
-
autosize:
|
|
110
|
-
isComposing:
|
|
111
|
-
passwordVisible:
|
|
108
|
+
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
109
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
110
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
111
|
+
textareaStyle: ComputedRef<StyleValue>;
|
|
112
|
+
autosize: Ref< InputAutoSize | undefined, InputAutoSize | undefined>;
|
|
113
|
+
isComposing: Ref<boolean, boolean>;
|
|
114
|
+
passwordVisible: Ref<boolean, boolean>;
|
|
112
115
|
focus: () => void | undefined;
|
|
113
116
|
blur: () => void | undefined;
|
|
114
117
|
select: () => void;
|
|
115
118
|
clear: (evt?: MouseEvent) => void;
|
|
116
119
|
resizeTextarea: () => void;
|
|
117
|
-
}, {}, {}, {},
|
|
120
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
118
121
|
blur: (evt: FocusEvent) => void;
|
|
119
122
|
change: (value: string, evt?: Event | undefined) => void;
|
|
120
123
|
compositionend: (evt: CompositionEvent) => void;
|
|
@@ -128,18 +131,18 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
128
131
|
"update:modelValue": (value: string) => void;
|
|
129
132
|
clear: (evt: MouseEvent | undefined) => void;
|
|
130
133
|
}, string, {
|
|
131
|
-
type:
|
|
134
|
+
type: InputType;
|
|
132
135
|
disabled: boolean;
|
|
133
136
|
modelValue: string | number | null;
|
|
134
|
-
modelModifiers:
|
|
137
|
+
modelModifiers: InputModelModifiers;
|
|
135
138
|
autocomplete: string;
|
|
136
|
-
clearIcon:
|
|
139
|
+
clearIcon: IconPropType;
|
|
137
140
|
wordLimitPosition: "inside" | "outside";
|
|
138
141
|
tabindex: string | number;
|
|
139
142
|
validateEvent: boolean;
|
|
140
|
-
inputStyle: string | false |
|
|
143
|
+
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
141
144
|
rows: number;
|
|
142
|
-
}, {}, string, {},
|
|
145
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
143
146
|
beforeCreate?: (() => void) | (() => void)[];
|
|
144
147
|
created?: (() => void) | (() => void)[];
|
|
145
148
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -152,26 +155,26 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
152
155
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
153
156
|
destroyed?: (() => void) | (() => void)[];
|
|
154
157
|
unmounted?: (() => void) | (() => void)[];
|
|
155
|
-
renderTracked?: ((e:
|
|
156
|
-
renderTriggered?: ((e:
|
|
157
|
-
errorCaptured?: ((err: unknown, instance:
|
|
158
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
159
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
160
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
158
161
|
};
|
|
159
162
|
$forceUpdate: () => void;
|
|
160
163
|
$nextTick: typeof nextTick;
|
|
161
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R,
|
|
164
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
162
165
|
} & Readonly<{
|
|
163
|
-
type:
|
|
166
|
+
type: InputType;
|
|
164
167
|
disabled: boolean;
|
|
165
168
|
modelValue: string | number | null;
|
|
166
|
-
modelModifiers:
|
|
169
|
+
modelModifiers: InputModelModifiers;
|
|
167
170
|
autocomplete: string;
|
|
168
|
-
clearIcon:
|
|
171
|
+
clearIcon: IconPropType;
|
|
169
172
|
wordLimitPosition: "inside" | "outside";
|
|
170
173
|
tabindex: string | number;
|
|
171
174
|
validateEvent: boolean;
|
|
172
|
-
inputStyle: string | false |
|
|
175
|
+
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
173
176
|
rows: number;
|
|
174
|
-
}> & Omit<Readonly<
|
|
177
|
+
}> & Omit<Readonly< InputProps> & Readonly<{
|
|
175
178
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
176
179
|
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
177
180
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
@@ -184,20 +187,20 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
184
187
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
185
188
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
186
189
|
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
187
|
-
}>, "input" | "select" | "textarea" | "blur" | "focus" | "disabled" | "clear" | "type" | "ref" | "tabindex" | "modelValue" | "validateEvent" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> &
|
|
188
|
-
input:
|
|
189
|
-
textarea:
|
|
190
|
-
ref:
|
|
191
|
-
textareaStyle:
|
|
192
|
-
autosize:
|
|
193
|
-
isComposing:
|
|
194
|
-
passwordVisible:
|
|
190
|
+
}>, "input" | "select" | "textarea" | "blur" | "focus" | "disabled" | "clear" | "type" | "ref" | "tabindex" | "modelValue" | "validateEvent" | "autocomplete" | "clearIcon" | "inputStyle" | "modelModifiers" | "autosize" | "wordLimitPosition" | "rows" | "textareaStyle" | "isComposing" | "passwordVisible" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
191
|
+
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
192
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
193
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
194
|
+
textareaStyle: ComputedRef<StyleValue>;
|
|
195
|
+
autosize: Ref< InputAutoSize | undefined, InputAutoSize | undefined>;
|
|
196
|
+
isComposing: Ref<boolean, boolean>;
|
|
197
|
+
passwordVisible: Ref<boolean, boolean>;
|
|
195
198
|
focus: () => void | undefined;
|
|
196
199
|
blur: () => void | undefined;
|
|
197
200
|
select: () => void;
|
|
198
201
|
clear: (evt?: MouseEvent) => void;
|
|
199
202
|
resizeTextarea: () => void;
|
|
200
|
-
}> & {} &
|
|
203
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
201
204
|
$slots: {
|
|
202
205
|
prepend?: (props: {}) => any;
|
|
203
206
|
} & {
|
|
@@ -213,17 +216,17 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
213
216
|
};
|
|
214
217
|
}) | null;
|
|
215
218
|
scrollbarRef: ({
|
|
216
|
-
$:
|
|
219
|
+
$: ComponentInternalInstance;
|
|
217
220
|
$data: {};
|
|
218
221
|
$props: {
|
|
219
222
|
readonly distance?: number | undefined;
|
|
220
223
|
readonly height?: number | string | undefined;
|
|
221
224
|
readonly maxHeight?: number | string | undefined;
|
|
222
225
|
readonly native?: boolean | undefined;
|
|
223
|
-
readonly wrapStyle?:
|
|
226
|
+
readonly wrapStyle?: StyleValue;
|
|
224
227
|
readonly wrapClass?: string | string[] | undefined;
|
|
225
228
|
readonly viewClass?: string | string[] | undefined;
|
|
226
|
-
readonly viewStyle?:
|
|
229
|
+
readonly viewStyle?: StyleValue;
|
|
227
230
|
readonly noresize?: boolean | undefined;
|
|
228
231
|
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
229
232
|
readonly always?: boolean | undefined;
|
|
@@ -237,8 +240,8 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
237
240
|
scrollTop: number;
|
|
238
241
|
scrollLeft: number;
|
|
239
242
|
}) => any) | undefined | undefined;
|
|
240
|
-
readonly "onEnd-reached"?: ((direction:
|
|
241
|
-
} &
|
|
243
|
+
readonly "onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined | undefined;
|
|
244
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
242
245
|
$attrs: {
|
|
243
246
|
[x: string]: unknown;
|
|
244
247
|
};
|
|
@@ -246,24 +249,24 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
246
249
|
[x: string]: unknown;
|
|
247
250
|
};
|
|
248
251
|
$slots: Readonly<{
|
|
249
|
-
[name: string]:
|
|
252
|
+
[name: string]: Slot<any> | undefined;
|
|
250
253
|
}>;
|
|
251
|
-
$root:
|
|
252
|
-
$parent:
|
|
254
|
+
$root: ComponentPublicInstance | null;
|
|
255
|
+
$parent: ComponentPublicInstance | null;
|
|
253
256
|
$host: Element | null;
|
|
254
257
|
$emit: ((event: "scroll", args_0: {
|
|
255
258
|
scrollTop: number;
|
|
256
259
|
scrollLeft: number;
|
|
257
|
-
}) => void) & ((event: "end-reached", direction:
|
|
260
|
+
}) => void) & ((event: "end-reached", direction: ScrollbarDirection) => void);
|
|
258
261
|
$el: any;
|
|
259
|
-
$options:
|
|
262
|
+
$options: ComponentOptionsBase<Readonly< ScrollbarProps> & Readonly<{
|
|
260
263
|
onScroll?: ((args_0: {
|
|
261
264
|
scrollTop: number;
|
|
262
265
|
scrollLeft: number;
|
|
263
266
|
}) => any) | undefined;
|
|
264
|
-
"onEnd-reached"?: ((direction:
|
|
267
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
265
268
|
}>, {
|
|
266
|
-
wrapRef:
|
|
269
|
+
wrapRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
267
270
|
update: () => void;
|
|
268
271
|
scrollTo: {
|
|
269
272
|
(xCord: number, yCord?: number): void;
|
|
@@ -272,24 +275,24 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
272
275
|
setScrollTop: (value: number) => void;
|
|
273
276
|
setScrollLeft: (value: number) => void;
|
|
274
277
|
handleScroll: () => void;
|
|
275
|
-
}, {}, {}, {},
|
|
278
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
276
279
|
scroll: (args_0: {
|
|
277
280
|
scrollTop: number;
|
|
278
281
|
scrollLeft: number;
|
|
279
282
|
}) => void;
|
|
280
|
-
"end-reached": (direction:
|
|
283
|
+
"end-reached": (direction: ScrollbarDirection) => void;
|
|
281
284
|
}, string, {
|
|
282
285
|
tabindex: number | string;
|
|
283
286
|
height: number | string;
|
|
284
287
|
maxHeight: number | string;
|
|
285
288
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
286
289
|
distance: number;
|
|
287
|
-
wrapStyle: string | false |
|
|
290
|
+
wrapStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
288
291
|
wrapClass: string | string[];
|
|
289
292
|
viewClass: string | string[];
|
|
290
|
-
viewStyle: string | false |
|
|
293
|
+
viewStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
291
294
|
minSize: number;
|
|
292
|
-
}, {}, string, {},
|
|
295
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
293
296
|
beforeCreate?: (() => void) | (() => void)[];
|
|
294
297
|
created?: (() => void) | (() => void)[];
|
|
295
298
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -302,32 +305,32 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
302
305
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
303
306
|
destroyed?: (() => void) | (() => void)[];
|
|
304
307
|
unmounted?: (() => void) | (() => void)[];
|
|
305
|
-
renderTracked?: ((e:
|
|
306
|
-
renderTriggered?: ((e:
|
|
307
|
-
errorCaptured?: ((err: unknown, instance:
|
|
308
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
309
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
310
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
308
311
|
};
|
|
309
312
|
$forceUpdate: () => void;
|
|
310
313
|
$nextTick: typeof nextTick;
|
|
311
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R,
|
|
314
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
312
315
|
} & Readonly<{
|
|
313
316
|
tabindex: number | string;
|
|
314
317
|
height: number | string;
|
|
315
318
|
maxHeight: number | string;
|
|
316
319
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
317
320
|
distance: number;
|
|
318
|
-
wrapStyle: string | false |
|
|
321
|
+
wrapStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
319
322
|
wrapClass: string | string[];
|
|
320
323
|
viewClass: string | string[];
|
|
321
|
-
viewStyle: string | false |
|
|
324
|
+
viewStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
322
325
|
minSize: number;
|
|
323
|
-
}> & Omit<Readonly<
|
|
326
|
+
}> & Omit<Readonly< ScrollbarProps> & Readonly<{
|
|
324
327
|
onScroll?: ((args_0: {
|
|
325
328
|
scrollTop: number;
|
|
326
329
|
scrollLeft: number;
|
|
327
330
|
}) => any) | undefined;
|
|
328
|
-
"onEnd-reached"?: ((direction:
|
|
329
|
-
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> &
|
|
330
|
-
wrapRef:
|
|
331
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
332
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & ShallowUnwrapRef<{
|
|
333
|
+
wrapRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
331
334
|
update: () => void;
|
|
332
335
|
scrollTo: {
|
|
333
336
|
(xCord: number, yCord?: number): void;
|
|
@@ -336,7 +339,7 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
|
|
|
336
339
|
setScrollTop: (value: number) => void;
|
|
337
340
|
setScrollLeft: (value: number) => void;
|
|
338
341
|
handleScroll: () => void;
|
|
339
|
-
}> & {} &
|
|
342
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
340
343
|
$slots: {
|
|
341
344
|
default?: (props: {}) => any;
|
|
342
345
|
};
|
package/dist/components/tt-panel-select/src/components/{PanelRight.vue.d.ts → PanelRight.d.ts}
RENAMED
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
1
|
+
import { nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, CSSProperties, GlobalComponents, GlobalDirectives, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
2
2
|
import { PanelTreeNode } from '../hooks/usePanelData';
|
|
3
3
|
import { PanelSelectValue } from '../types';
|
|
4
|
+
import { ScrollbarDirection, ScrollbarProps } from 'element-plus';
|
|
5
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
6
|
type __VLS_Props = {
|
|
5
7
|
prefixCls: string;
|
|
6
8
|
multiple: boolean;
|
|
7
9
|
selectedOptions: PanelTreeNode[];
|
|
8
10
|
disabled: boolean;
|
|
9
11
|
};
|
|
10
|
-
declare const _default:
|
|
12
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
13
|
remove: (value: PanelSelectValue) => any;
|
|
12
14
|
clearAll: () => any;
|
|
13
|
-
}, string,
|
|
15
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
16
|
onRemove?: ((value: PanelSelectValue) => any) | undefined;
|
|
15
17
|
onClearAll?: (() => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string,
|
|
18
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
17
19
|
scrollbarRef: ({
|
|
18
|
-
$:
|
|
20
|
+
$: ComponentInternalInstance;
|
|
19
21
|
$data: {};
|
|
20
22
|
$props: {
|
|
21
23
|
readonly distance?: number | undefined;
|
|
22
24
|
readonly height?: number | string | undefined;
|
|
23
25
|
readonly maxHeight?: number | string | undefined;
|
|
24
26
|
readonly native?: boolean | undefined;
|
|
25
|
-
readonly wrapStyle?:
|
|
27
|
+
readonly wrapStyle?: StyleValue;
|
|
26
28
|
readonly wrapClass?: string | string[] | undefined;
|
|
27
29
|
readonly viewClass?: string | string[] | undefined;
|
|
28
|
-
readonly viewStyle?:
|
|
30
|
+
readonly viewStyle?: StyleValue;
|
|
29
31
|
readonly noresize?: boolean | undefined;
|
|
30
32
|
readonly tag?: (keyof HTMLElementTagNameMap | (string & {})) | undefined;
|
|
31
33
|
readonly always?: boolean | undefined;
|
|
@@ -39,8 +41,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
39
41
|
scrollTop: number;
|
|
40
42
|
scrollLeft: number;
|
|
41
43
|
}) => any) | undefined | undefined;
|
|
42
|
-
readonly "onEnd-reached"?: ((direction:
|
|
43
|
-
} &
|
|
44
|
+
readonly "onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined | undefined;
|
|
45
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
44
46
|
$attrs: {
|
|
45
47
|
[x: string]: unknown;
|
|
46
48
|
};
|
|
@@ -48,24 +50,24 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
48
50
|
[x: string]: unknown;
|
|
49
51
|
};
|
|
50
52
|
$slots: Readonly<{
|
|
51
|
-
[name: string]:
|
|
53
|
+
[name: string]: Slot<any> | undefined;
|
|
52
54
|
}>;
|
|
53
|
-
$root:
|
|
54
|
-
$parent:
|
|
55
|
+
$root: ComponentPublicInstance | null;
|
|
56
|
+
$parent: ComponentPublicInstance | null;
|
|
55
57
|
$host: Element | null;
|
|
56
58
|
$emit: ((event: "scroll", args_0: {
|
|
57
59
|
scrollTop: number;
|
|
58
60
|
scrollLeft: number;
|
|
59
|
-
}) => void) & ((event: "end-reached", direction:
|
|
61
|
+
}) => void) & ((event: "end-reached", direction: ScrollbarDirection) => void);
|
|
60
62
|
$el: any;
|
|
61
|
-
$options:
|
|
63
|
+
$options: ComponentOptionsBase<Readonly< ScrollbarProps> & Readonly<{
|
|
62
64
|
onScroll?: ((args_0: {
|
|
63
65
|
scrollTop: number;
|
|
64
66
|
scrollLeft: number;
|
|
65
67
|
}) => any) | undefined;
|
|
66
|
-
"onEnd-reached"?: ((direction:
|
|
68
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
67
69
|
}>, {
|
|
68
|
-
wrapRef:
|
|
70
|
+
wrapRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
69
71
|
update: () => void;
|
|
70
72
|
scrollTo: {
|
|
71
73
|
(xCord: number, yCord?: number): void;
|
|
@@ -74,24 +76,24 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
74
76
|
setScrollTop: (value: number) => void;
|
|
75
77
|
setScrollLeft: (value: number) => void;
|
|
76
78
|
handleScroll: () => void;
|
|
77
|
-
}, {}, {}, {},
|
|
79
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
78
80
|
scroll: (args_0: {
|
|
79
81
|
scrollTop: number;
|
|
80
82
|
scrollLeft: number;
|
|
81
83
|
}) => void;
|
|
82
|
-
"end-reached": (direction:
|
|
84
|
+
"end-reached": (direction: ScrollbarDirection) => void;
|
|
83
85
|
}, string, {
|
|
84
86
|
tabindex: number | string;
|
|
85
87
|
height: number | string;
|
|
86
88
|
maxHeight: number | string;
|
|
87
89
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
88
90
|
distance: number;
|
|
89
|
-
wrapStyle: string | false |
|
|
91
|
+
wrapStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
90
92
|
wrapClass: string | string[];
|
|
91
93
|
viewClass: string | string[];
|
|
92
|
-
viewStyle: string | false |
|
|
94
|
+
viewStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
93
95
|
minSize: number;
|
|
94
|
-
}, {}, string, {},
|
|
96
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
95
97
|
beforeCreate?: (() => void) | (() => void)[];
|
|
96
98
|
created?: (() => void) | (() => void)[];
|
|
97
99
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -104,32 +106,32 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
104
106
|
beforeUnmount?: (() => void) | (() => void)[];
|
|
105
107
|
destroyed?: (() => void) | (() => void)[];
|
|
106
108
|
unmounted?: (() => void) | (() => void)[];
|
|
107
|
-
renderTracked?: ((e:
|
|
108
|
-
renderTriggered?: ((e:
|
|
109
|
-
errorCaptured?: ((err: unknown, instance:
|
|
109
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
110
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
111
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
110
112
|
};
|
|
111
113
|
$forceUpdate: () => void;
|
|
112
114
|
$nextTick: typeof nextTick;
|
|
113
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R,
|
|
115
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
114
116
|
} & Readonly<{
|
|
115
117
|
tabindex: number | string;
|
|
116
118
|
height: number | string;
|
|
117
119
|
maxHeight: number | string;
|
|
118
120
|
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
119
121
|
distance: number;
|
|
120
|
-
wrapStyle: string | false |
|
|
122
|
+
wrapStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
121
123
|
wrapClass: string | string[];
|
|
122
124
|
viewClass: string | string[];
|
|
123
|
-
viewStyle: string | false |
|
|
125
|
+
viewStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
124
126
|
minSize: number;
|
|
125
|
-
}> & Omit<Readonly<
|
|
127
|
+
}> & Omit<Readonly< ScrollbarProps> & Readonly<{
|
|
126
128
|
onScroll?: ((args_0: {
|
|
127
129
|
scrollTop: number;
|
|
128
130
|
scrollLeft: number;
|
|
129
131
|
}) => any) | undefined;
|
|
130
|
-
"onEnd-reached"?: ((direction:
|
|
131
|
-
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> &
|
|
132
|
-
wrapRef:
|
|
132
|
+
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
|
133
|
+
}>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & ShallowUnwrapRef<{
|
|
134
|
+
wrapRef: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
133
135
|
update: () => void;
|
|
134
136
|
scrollTo: {
|
|
135
137
|
(xCord: number, yCord?: number): void;
|
|
@@ -138,7 +140,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
138
140
|
setScrollTop: (value: number) => void;
|
|
139
141
|
setScrollLeft: (value: number) => void;
|
|
140
142
|
handleScroll: () => void;
|
|
141
|
-
}> & {} &
|
|
143
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
142
144
|
$slots: {
|
|
143
145
|
default?: (props: {}) => any;
|
|
144
146
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PanelContainerProps, PanelSelectOption, PanelSelectValue } from '../types';
|
|
2
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
3
|
/**
|
|
3
4
|
* 面板内部统一使用的树节点结构。
|
|
4
5
|
*/
|
|
@@ -25,13 +26,13 @@ export type OptionGroup = {
|
|
|
25
26
|
* @param props 组件 props
|
|
26
27
|
*/
|
|
27
28
|
export declare function usePanelSelectData(props: PanelContainerProps): {
|
|
28
|
-
loading:
|
|
29
|
+
loading: Ref<boolean, boolean>;
|
|
29
30
|
fetchApi: () => Promise<void>;
|
|
30
|
-
treeOptions:
|
|
31
|
-
navTreeOptions:
|
|
32
|
-
navNodes:
|
|
33
|
-
leafNodes:
|
|
31
|
+
treeOptions: ComputedRef<PanelTreeNode[]>;
|
|
32
|
+
navTreeOptions: ComputedRef<PanelTreeNode[]>;
|
|
33
|
+
navNodes: ComputedRef<PanelTreeNode[]>;
|
|
34
|
+
leafNodes: ComputedRef<PanelTreeNode[]>;
|
|
34
35
|
filterNodes: (nodes: PanelTreeNode[], keyword: string) => PanelTreeNode[];
|
|
35
36
|
buildOptionGroups: (nodes: PanelTreeNode[], keyword: string) => OptionGroup[];
|
|
36
|
-
isFirstLoaded:
|
|
37
|
+
isFirstLoaded: Ref<boolean, boolean>;
|
|
37
38
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ref, WritableComputedRef } from 'vue';
|
|
1
|
+
import { Ref, WritableComputedRef, ComputedRef } from 'vue';
|
|
2
2
|
import { PanelSelectModelValue, PanelSelectValue } from '../types';
|
|
3
3
|
import { OptionGroup, PanelTreeNode } from './usePanelData';
|
|
4
4
|
type UsePanelSelectSelectionParams = {
|
|
@@ -13,10 +13,10 @@ type UsePanelSelectSelectionParams = {
|
|
|
13
13
|
* @param params 选择逻辑所需的响应式参数
|
|
14
14
|
*/
|
|
15
15
|
export declare function usePanelSelectSelection(params: UsePanelSelectSelectionParams): {
|
|
16
|
-
selectedOptions:
|
|
17
|
-
selectedValueSet:
|
|
18
|
-
isAllChecked:
|
|
19
|
-
isIndeterminate:
|
|
16
|
+
selectedOptions: ComputedRef<PanelTreeNode[]>;
|
|
17
|
+
selectedValueSet: ComputedRef<Set<PanelSelectValue>>;
|
|
18
|
+
isAllChecked: ComputedRef<boolean>;
|
|
19
|
+
isIndeterminate: ComputedRef<boolean>;
|
|
20
20
|
getGroupCheckCount: (group: OptionGroup) => {
|
|
21
21
|
enabledCount: number;
|
|
22
22
|
checkedCount: number;
|