@qqt-product/ui 15.0.0 → 16.0.1
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/index.es.js +85508 -82878
- package/dist/index.umd.js +143 -161
- package/dist/lib/components/audit-modal/index.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +4 -4
- package/dist/lib/components/audit-modal/src/component/afterSignModal.vue.d.ts +232 -0
- package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +15 -4
- package/dist/lib/components/basicTitle/index.d.ts +96 -0
- package/dist/lib/components/basicTitle/src/BasicHelp.d.ts +99 -0
- package/dist/lib/components/basicTitle/src/BasicTitle.vue.d.ts +123 -0
- package/dist/lib/components/breadcrumb/index.d.ts +2 -7
- package/dist/lib/components/card-list-layout/index.d.ts +1 -1
- package/dist/lib/components/card-list-layout/src/index.vue.d.ts +1 -1
- package/dist/lib/components/cascader/index.d.ts +3 -3
- package/dist/lib/components/cascader/src/cascader-types.d.ts +1 -1
- package/dist/lib/components/cascader/src/cascader.vue.d.ts +3 -3
- package/dist/lib/components/checkbox/index.d.ts +4 -4
- package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
- package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/dist/lib/components/code-editor-model/index.d.ts +5 -0
- package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +23 -9
- package/dist/lib/components/countdown/index.d.ts +2 -2
- package/dist/lib/components/countdown/src/countdown.d.ts +2 -2
- package/dist/lib/components/currency/index.d.ts +3 -3
- package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
- package/dist/lib/components/custom-remote-select/src/type.d.ts +7 -0
- package/dist/lib/components/detail-grid/index.d.ts +14 -4
- package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +14 -4
- package/dist/lib/components/detail-page-layout/index.d.ts +10 -0
- package/dist/lib/components/detail-page-layout/src/detail-page-layout.vue.d.ts +11 -1
- package/dist/lib/components/edit-form/index.d.ts +2 -2
- package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
- package/dist/lib/components/edit-grid/index.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +4 -0
- package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +14 -4
- package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +1 -1
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +1 -0
- package/dist/lib/components/empty/index.d.ts +2 -2
- package/dist/lib/components/flow-view/index.d.ts +1 -1
- package/dist/lib/components/flow-view/src/flow-view.d.ts +1 -1
- package/dist/lib/components/import-modal/index.d.ts +2 -2
- package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +2 -2
- package/dist/lib/components/index.d.ts +6 -1
- package/dist/lib/components/ladder-price/index.d.ts +2 -2
- package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +2 -2
- package/dist/lib/components/layout/index.d.ts +8 -3
- package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
- package/dist/lib/components/layout/src/index.vue.d.ts +8 -3
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +7 -2
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +7 -2
- package/dist/lib/components/layout-anchor/index.d.ts +5 -0
- package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +5 -0
- package/dist/lib/components/layout-pattern/index.d.ts +1 -170
- package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +1 -169
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/columnSetting/columnSetting.vue.d.ts +1 -0
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +6 -6
- package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -2
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/menu/index.d.ts +2 -80
- package/dist/lib/components/modal/index.d.ts +1364 -0
- package/dist/lib/components/modal/src/BasicModal.vue.d.ts +1358 -0
- package/dist/lib/components/modal/src/components/Modal.d.ts +255 -0
- package/dist/lib/components/modal/src/components/ModalClose.vue.d.ts +56 -0
- package/dist/lib/components/modal/src/components/ModalFooter.vue.d.ts +262 -0
- package/dist/lib/components/modal/src/components/ModalHeader.vue.d.ts +19 -0
- package/dist/lib/components/modal/src/components/ModalWrapper.vue.d.ts +102 -0
- package/dist/lib/components/modal/src/hooks/useModal.d.ts +6 -0
- package/dist/lib/components/modal/src/hooks/useModalContext.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalDrag.d.ts +7 -0
- package/dist/lib/components/modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/dist/lib/components/modal/src/props.d.ts +150 -0
- package/dist/lib/components/modal/src/typing.d.ts +204 -0
- package/dist/lib/components/page-layout/index.d.ts +175 -2
- package/dist/lib/components/{layout-pattern/src/hook/use-audit-button-hook.d.ts → page-layout/src/hook/use-audit-button.d.ts} +59 -3
- package/dist/lib/components/page-layout/src/hook/use-custom-format.d.ts +9 -0
- package/dist/lib/components/page-layout/src/hook/use-excel-import.d.ts +42 -0
- package/dist/lib/components/page-layout/src/hook/use-file-upload.d.ts +64 -0
- package/dist/lib/components/page-layout/src/hook/use-grid-events.d.ts +26 -0
- package/dist/lib/components/page-layout/src/hook/use-promise-step.d.ts +33 -1
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +174 -1
- package/dist/lib/components/page-layout/src/util.d.ts +18 -2
- package/dist/lib/components/radio/index.d.ts +4 -4
- package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
- package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/dist/lib/components/relation-graph/index.d.ts +6 -0
- package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +89 -0
- package/dist/lib/components/remote-select/index.d.ts +2 -2
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +2 -2
- package/dist/lib/components/sale-template/index.d.ts +2 -1
- package/dist/lib/components/scrollContainer/index.d.ts +14 -0
- package/dist/lib/components/scrollContainer/src/ScrollContainer.vue.d.ts +10 -0
- package/dist/lib/components/scrollContainer/src/typing.d.ts +17 -0
- package/dist/lib/components/scrollbar/index.d.ts +80 -0
- package/dist/lib/components/scrollbar/src/Scrollbar.vue.d.ts +73 -0
- package/dist/lib/components/scrollbar/src/bar.d.ts +15 -0
- package/dist/lib/components/scrollbar/src/types.d.ts +18 -0
- package/dist/lib/components/scrollbar/src/util.d.ts +8 -0
- package/dist/lib/components/select/index.d.ts +2 -2
- package/dist/lib/components/select/src/select.vue.d.ts +2 -2
- package/dist/lib/components/select-modal/index.d.ts +2 -2
- package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +2 -2
- package/dist/lib/components/tree-select/index.d.ts +2 -2
- package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +2 -2
- package/dist/lib/components/upload-file/index.d.ts +4 -4
- package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +4 -4
- package/dist/lib/components/upload-image/index.d.ts +6 -4
- package/dist/lib/components/upload-image/src/preview.vue.d.ts +16 -0
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +6 -4
- package/dist/lib/hooks/core/useAttrs.d.ts +9 -0
- package/dist/lib/hooks/core/useContext.d.ts +11 -0
- package/dist/lib/hooks/core/useTimeout.d.ts +11 -0
- package/dist/lib/hooks/event/useScrollTo.d.ts +10 -0
- package/dist/lib/hooks/event/useWindowSizeFn.d.ts +7 -0
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/types/index.d.ts +32 -0
- package/dist/lib/utils/domUtils.d.ts +36 -0
- package/dist/lib/utils/event/index.d.ts +3 -0
- package/dist/lib/utils/helper/tsxHelper.d.ts +13 -0
- package/dist/lib/utils/index.d.ts +7 -0
- package/dist/lib/utils/is.d.ts +22 -0
- package/dist/lib/utils/log.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +15 -13
- /package/dist/lib/components/page-layout/src/hook/{use-merge-defaultValues-hook.d.ts → use-merge-defaultValues.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-page-data-hook.d.ts → use-page-data.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-ref-instance-hook.d.ts → use-ref-instance.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-remote-config-hook.d.ts → use-remote-config.d.ts} +0 -0
- /package/dist/lib/components/page-layout/src/hook/{use-uid-hook.d.ts → use-uid.d.ts} +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
3
|
+
/**
|
|
4
|
+
* copy from element-ui
|
|
5
|
+
*/
|
|
6
|
+
import Scrollbar from './src/Scrollbar.vue';
|
|
7
|
+
export { Scrollbar };
|
|
8
|
+
export type { ScrollbarType } from './src/types';
|
|
9
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
10
|
+
native: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
wrapStyle: {
|
|
15
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
wrapClass: {
|
|
19
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
viewClass: {
|
|
23
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
viewStyle: {
|
|
27
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
noresize: BooleanConstructor;
|
|
31
|
+
tag: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
moveX: Ref<number>;
|
|
37
|
+
moveY: Ref<number>;
|
|
38
|
+
sizeWidth: Ref<string>;
|
|
39
|
+
sizeHeight: Ref<string>;
|
|
40
|
+
style: ComputedRef<string | Recordable<any>>;
|
|
41
|
+
wrap: Ref<any>;
|
|
42
|
+
resize: Ref<any>;
|
|
43
|
+
update: () => void;
|
|
44
|
+
handleScroll: () => void;
|
|
45
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
46
|
+
native: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
wrapStyle: {
|
|
51
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
wrapClass: {
|
|
55
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
viewClass: {
|
|
59
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
viewStyle: {
|
|
63
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
noresize: BooleanConstructor;
|
|
67
|
+
tag: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}>>, {
|
|
72
|
+
tag: string;
|
|
73
|
+
native: boolean;
|
|
74
|
+
wrapStyle: string | unknown[];
|
|
75
|
+
wrapClass: string | unknown[];
|
|
76
|
+
viewClass: string | unknown[];
|
|
77
|
+
viewStyle: string | unknown[];
|
|
78
|
+
noresize: boolean;
|
|
79
|
+
}, {}>>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<{
|
|
3
|
+
native: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
wrapStyle: {
|
|
8
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
wrapClass: {
|
|
12
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
viewClass: {
|
|
16
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
viewStyle: {
|
|
20
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
noresize: BooleanConstructor;
|
|
24
|
+
tag: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
moveX: Ref<number>;
|
|
30
|
+
moveY: Ref<number>;
|
|
31
|
+
sizeWidth: Ref<string>;
|
|
32
|
+
sizeHeight: Ref<string>;
|
|
33
|
+
style: ComputedRef<string | Recordable<any>>;
|
|
34
|
+
wrap: Ref<any>;
|
|
35
|
+
resize: Ref<any>;
|
|
36
|
+
update: () => void;
|
|
37
|
+
handleScroll: () => void;
|
|
38
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
39
|
+
native: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
wrapStyle: {
|
|
44
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
wrapClass: {
|
|
48
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
viewClass: {
|
|
52
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
viewStyle: {
|
|
56
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
noresize: BooleanConstructor;
|
|
60
|
+
tag: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>>, {
|
|
65
|
+
tag: string;
|
|
66
|
+
native: boolean;
|
|
67
|
+
wrapStyle: string | unknown[];
|
|
68
|
+
wrapClass: string | unknown[];
|
|
69
|
+
viewClass: string | unknown[];
|
|
70
|
+
viewStyle: string | unknown[];
|
|
71
|
+
noresize: boolean;
|
|
72
|
+
}, {}>;
|
|
73
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
|
+
vertical: BooleanConstructor;
|
|
4
|
+
size: StringConstructor;
|
|
5
|
+
move: NumberConstructor;
|
|
6
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
9
|
+
vertical: BooleanConstructor;
|
|
10
|
+
size: StringConstructor;
|
|
11
|
+
move: NumberConstructor;
|
|
12
|
+
}>>, {
|
|
13
|
+
vertical: boolean;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface BarMapItem {
|
|
2
|
+
offset: string
|
|
3
|
+
scroll: string
|
|
4
|
+
scrollSize: string
|
|
5
|
+
size: string
|
|
6
|
+
key: string
|
|
7
|
+
axis: string
|
|
8
|
+
client: string
|
|
9
|
+
direction: string
|
|
10
|
+
}
|
|
11
|
+
export interface BarMap {
|
|
12
|
+
vertical: BarMapItem
|
|
13
|
+
horizontal: BarMapItem
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ScrollbarType {
|
|
17
|
+
wrap: ElRef
|
|
18
|
+
}
|
|
@@ -51,7 +51,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
51
51
|
}[]>;
|
|
52
52
|
dictCode: Ref<string>;
|
|
53
53
|
onChange: (value: string | string[], options: SelectOption | SelectOption[]) => void;
|
|
54
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
54
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
55
55
|
readonly value: {
|
|
56
56
|
readonly type: StringConstructor;
|
|
57
57
|
readonly default: "";
|
|
@@ -85,10 +85,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
85
85
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
}, {
|
|
88
|
+
readonly value: string;
|
|
88
89
|
readonly onChange: ((args: MixSelectArgs) => void) | ((args: MixSelectArgs) => void)[];
|
|
89
90
|
readonly busAccount: string;
|
|
90
91
|
readonly mode: "multiple" | "tags" | "combobox";
|
|
91
|
-
readonly value: string;
|
|
92
92
|
readonly options: SelectOption[];
|
|
93
93
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
94
94
|
readonly dictCode: string;
|
|
@@ -47,7 +47,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
47
47
|
}[]>;
|
|
48
48
|
dictCode: Ref<string>;
|
|
49
49
|
onChange: (value: string | string[], options: SelectOption | SelectOption[]) => void;
|
|
50
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
50
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
51
51
|
readonly value: {
|
|
52
52
|
readonly type: StringConstructor;
|
|
53
53
|
readonly default: "";
|
|
@@ -81,10 +81,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
81
81
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
}, {
|
|
84
|
+
readonly value: string;
|
|
84
85
|
readonly onChange: ((args: MixSelectArgs) => void) | ((args: MixSelectArgs) => void)[];
|
|
85
86
|
readonly busAccount: string;
|
|
86
87
|
readonly mode: "multiple" | "tags" | "combobox";
|
|
87
|
-
readonly value: string;
|
|
88
88
|
readonly options: SelectOption[];
|
|
89
89
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
90
90
|
readonly dictCode: string;
|
|
@@ -47,10 +47,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
47
47
|
tableConfig?: VxeTableProps<VxeTableDataRow> | undefined;
|
|
48
48
|
placeholder?: string | undefined;
|
|
49
49
|
selectModal?: ModalType | undefined;
|
|
50
|
+
key?: string | number | symbol | undefined;
|
|
50
51
|
style?: unknown;
|
|
51
52
|
readonly handleListData?: Function | undefined;
|
|
52
53
|
class?: unknown;
|
|
53
|
-
key?: string | number | symbol | undefined;
|
|
54
54
|
ref?: VNodeRef | undefined;
|
|
55
55
|
ref_for?: boolean | undefined;
|
|
56
56
|
ref_key?: string | undefined;
|
|
@@ -381,9 +381,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
381
381
|
default: unknown;
|
|
382
382
|
};
|
|
383
383
|
}>>, {
|
|
384
|
+
value: string;
|
|
384
385
|
row: Record<string | number, unknown>;
|
|
385
386
|
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
386
|
-
value: string;
|
|
387
387
|
config: Config;
|
|
388
388
|
idx: number;
|
|
389
389
|
}, {}>>;
|
|
@@ -43,10 +43,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
43
43
|
tableConfig?: VxeTableProps<VxeTableDataRow> | undefined;
|
|
44
44
|
placeholder?: string | undefined;
|
|
45
45
|
selectModal?: ModalType | undefined;
|
|
46
|
+
key?: string | number | symbol | undefined;
|
|
46
47
|
style?: unknown;
|
|
47
48
|
readonly handleListData?: Function | undefined;
|
|
48
49
|
class?: unknown;
|
|
49
|
-
key?: string | number | symbol | undefined;
|
|
50
50
|
ref?: VNodeRef | undefined;
|
|
51
51
|
ref_for?: boolean | undefined;
|
|
52
52
|
ref_key?: string | undefined;
|
|
@@ -377,9 +377,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
377
377
|
default: unknown;
|
|
378
378
|
};
|
|
379
379
|
}>>, {
|
|
380
|
+
value: string;
|
|
380
381
|
row: Record<string | number, unknown>;
|
|
381
382
|
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
382
|
-
value: string;
|
|
383
383
|
config: Config;
|
|
384
384
|
idx: number;
|
|
385
385
|
}, {}>;
|
|
@@ -62,7 +62,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
62
62
|
multiple: Ref<boolean>;
|
|
63
63
|
onChange: (value: string | string[], label: string | string[], extra: any) => void;
|
|
64
64
|
searchValue: Ref<string>;
|
|
65
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
65
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
66
66
|
readonly value: {
|
|
67
67
|
readonly type: StringConstructor;
|
|
68
68
|
readonly default: "";
|
|
@@ -103,10 +103,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
103
103
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
104
104
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
105
105
|
}, {
|
|
106
|
+
readonly value: string;
|
|
106
107
|
readonly params: RecordString;
|
|
107
108
|
readonly onChange: ((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[];
|
|
108
109
|
readonly multiple: boolean;
|
|
109
|
-
readonly value: string;
|
|
110
110
|
readonly options: TreeNode[];
|
|
111
111
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
112
112
|
readonly fieldNames: FieldNames;
|
|
@@ -58,7 +58,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
58
58
|
multiple: Ref<boolean>;
|
|
59
59
|
onChange: (value: string | string[], label: string | string[], extra: any) => void;
|
|
60
60
|
searchValue: Ref<string>;
|
|
61
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("
|
|
61
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
62
62
|
readonly value: {
|
|
63
63
|
readonly type: StringConstructor;
|
|
64
64
|
readonly default: "";
|
|
@@ -99,10 +99,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
99
99
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
}, {
|
|
102
|
+
readonly value: string;
|
|
102
103
|
readonly params: RecordString;
|
|
103
104
|
readonly onChange: ((payload: TreeSelectPayload) => void) | ((payload: TreeSelectPayload) => void)[];
|
|
104
105
|
readonly multiple: boolean;
|
|
105
|
-
readonly value: string;
|
|
106
106
|
readonly options: TreeNode[];
|
|
107
107
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
108
108
|
readonly fieldNames: FieldNames;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { SrmI18n } from '../../utils/type';
|
|
2
2
|
import type { UploadFile } from 'ant-design-vue';
|
|
3
|
-
import type { DefaultOptionType } from 'ant-design-vue/
|
|
4
|
-
import type { UploadFileStatus, FileType } from 'ant-design-vue/
|
|
5
|
-
import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
|
|
3
|
+
import type { DefaultOptionType } from 'ant-design-vue/es/select';
|
|
4
|
+
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
6
5
|
import type { RecordString } from '../select-modal';
|
|
7
6
|
import type { Data, FileTypeList } from './src/upload-file-types';
|
|
8
7
|
import type { UserInfo, CurrentRow } from '../edit-page-layout';
|
|
@@ -133,7 +132,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
133
132
|
};
|
|
134
133
|
}, {
|
|
135
134
|
visible: Ref<boolean>;
|
|
136
|
-
validateInfos:
|
|
135
|
+
validateInfos: any;
|
|
137
136
|
limitSize: Ref<number>;
|
|
138
137
|
acceptNew: Ref<string>;
|
|
139
138
|
handleConfirm: () => void;
|
|
@@ -215,6 +214,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
215
214
|
status?: UploadFileStatus | undefined;
|
|
216
215
|
percent?: number | undefined;
|
|
217
216
|
thumbUrl?: string | undefined;
|
|
217
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
218
218
|
originFileObj?: FileType | undefined;
|
|
219
219
|
response?: any;
|
|
220
220
|
error?: any;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { SrmI18n } from '../../../utils/type';
|
|
2
|
-
import type { DefaultOptionType } from 'ant-design-vue/
|
|
3
|
-
import type { UploadFileStatus, FileType } from 'ant-design-vue/
|
|
4
|
-
import type { validateInfos } from 'ant-design-vue/lib/form/useForm';
|
|
2
|
+
import type { DefaultOptionType } from 'ant-design-vue/es/select';
|
|
3
|
+
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
5
4
|
import type { Data, FileTypeList } from './upload-file-types';
|
|
6
5
|
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
7
6
|
import type { UploadFile } from 'ant-design-vue';
|
|
@@ -125,7 +124,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
125
124
|
};
|
|
126
125
|
}, {
|
|
127
126
|
visible: Ref<boolean>;
|
|
128
|
-
validateInfos:
|
|
127
|
+
validateInfos: any;
|
|
129
128
|
limitSize: Ref<number>;
|
|
130
129
|
acceptNew: Ref<string>;
|
|
131
130
|
handleConfirm: () => void;
|
|
@@ -207,6 +206,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
207
206
|
status?: UploadFileStatus | undefined;
|
|
208
207
|
percent?: number | undefined;
|
|
209
208
|
thumbUrl?: string | undefined;
|
|
209
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
210
210
|
originFileObj?: FileType | undefined;
|
|
211
211
|
response?: any;
|
|
212
212
|
error?: any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { RegisterFn } from '../modal';
|
|
1
2
|
import type { SrmI18n } from '../../utils/type';
|
|
2
3
|
import type { UploadFiles } from './src/upload-image-type';
|
|
3
4
|
import type { UploadFile } from 'ant-design-vue';
|
|
4
|
-
import type { UploadFileStatus, FileType } from 'ant-design-vue/
|
|
5
|
+
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
5
6
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
6
7
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
7
8
|
import QUploadImage from './src/upload-image.vue';
|
|
@@ -135,6 +136,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
135
136
|
status?: UploadFileStatus | undefined;
|
|
136
137
|
percent?: number | undefined;
|
|
137
138
|
thumbUrl?: string | undefined;
|
|
139
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
138
140
|
originFileObj?: FileType | undefined;
|
|
139
141
|
response?: any;
|
|
140
142
|
error?: any;
|
|
@@ -150,11 +152,11 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
150
152
|
uploadStatues: Ref<boolean>;
|
|
151
153
|
beforeUpload: (file: UploadFile<any>, uploadFiles: UploadFile<any>[]) => boolean;
|
|
152
154
|
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
153
|
-
handleCancel: () => void;
|
|
154
155
|
handlePreview: (file: UploadFiles) => Promise<void>;
|
|
155
156
|
isImageUrlFun: () => boolean;
|
|
156
157
|
srmI18n: SrmI18n;
|
|
157
|
-
|
|
158
|
+
register: RegisterFn;
|
|
159
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
158
160
|
readonly value: {
|
|
159
161
|
readonly type: StringConstructor;
|
|
160
162
|
readonly default: "";
|
|
@@ -207,11 +209,11 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
207
209
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
208
210
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
209
211
|
}, {
|
|
212
|
+
readonly value: string;
|
|
210
213
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
211
214
|
readonly businessType: string;
|
|
212
215
|
readonly accept: string;
|
|
213
216
|
readonly multiple: boolean;
|
|
214
|
-
readonly value: string;
|
|
215
217
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
216
218
|
readonly disabled: boolean;
|
|
217
219
|
readonly actionRoutePath: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RegisterFn } from '../../modal';
|
|
2
|
+
import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
declare const _sfc_main: DefineComponent<{
|
|
4
|
+
readonly url: {
|
|
5
|
+
readonly type: PropType<string>;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
url: Ref<string | undefined> | undefined;
|
|
9
|
+
register: RegisterFn;
|
|
10
|
+
handleOnload: () => void;
|
|
11
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
12
|
+
readonly url: {
|
|
13
|
+
readonly type: PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
}>>, {}, {}>;
|
|
16
|
+
export default _sfc_main;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { RegisterFn } from '../../modal';
|
|
1
2
|
import type { SrmI18n } from '../../../utils/type';
|
|
2
|
-
import type { UploadFileStatus, FileType } from 'ant-design-vue/
|
|
3
|
+
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
3
4
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
5
|
import { UploadFiles } from './upload-image-type';
|
|
5
6
|
import type { UploadFile } from 'ant-design-vue';
|
|
@@ -131,6 +132,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
131
132
|
status?: UploadFileStatus | undefined;
|
|
132
133
|
percent?: number | undefined;
|
|
133
134
|
thumbUrl?: string | undefined;
|
|
135
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
134
136
|
originFileObj?: FileType | undefined;
|
|
135
137
|
response?: any;
|
|
136
138
|
error?: any;
|
|
@@ -146,11 +148,11 @@ declare const _sfc_main: DefineComponent<{
|
|
|
146
148
|
uploadStatues: Ref<boolean>;
|
|
147
149
|
beforeUpload: (file: UploadFile, uploadFiles: UploadFile[]) => boolean;
|
|
148
150
|
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
149
|
-
handleCancel: () => void;
|
|
150
151
|
handlePreview: (file: UploadFiles) => Promise<void>;
|
|
151
152
|
isImageUrlFun: () => boolean;
|
|
152
153
|
srmI18n: SrmI18n;
|
|
153
|
-
|
|
154
|
+
register: RegisterFn;
|
|
155
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
154
156
|
readonly value: {
|
|
155
157
|
readonly type: StringConstructor;
|
|
156
158
|
readonly default: "";
|
|
@@ -203,11 +205,11 @@ declare const _sfc_main: DefineComponent<{
|
|
|
203
205
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
204
206
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
205
207
|
}, {
|
|
208
|
+
readonly value: string;
|
|
206
209
|
readonly onChange: ((value: string) => void) | ((value: string) => void)[];
|
|
207
210
|
readonly businessType: string;
|
|
208
211
|
readonly accept: string;
|
|
209
212
|
readonly multiple: boolean;
|
|
210
|
-
readonly value: string;
|
|
211
213
|
readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
|
|
212
214
|
readonly disabled: boolean;
|
|
213
215
|
readonly actionRoutePath: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
interface Params {
|
|
3
|
+
excludeListeners?: boolean;
|
|
4
|
+
excludeKeys?: string[];
|
|
5
|
+
excludeDefaultKeys?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function entries<T>(obj: Recordable<T>): [string, T][];
|
|
8
|
+
export declare function useAttrs(params?: Params): Ref<Recordable> | {};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export interface CreateContextOptions {
|
|
3
|
+
readonly?: boolean;
|
|
4
|
+
createProvider?: boolean;
|
|
5
|
+
native?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function createContext<T>(context: any, key?: InjectionKey<T>, options?: CreateContextOptions): {
|
|
8
|
+
state: any;
|
|
9
|
+
};
|
|
10
|
+
export declare function useContext<T>(key: InjectionKey<T>, native?: boolean): T;
|
|
11
|
+
export declare function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?: boolean): T;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export declare function useTimeoutFn(handle: Fn<any>, wait: number, native?: boolean): {
|
|
3
|
+
readyRef: Ref<boolean>;
|
|
4
|
+
stop: () => void;
|
|
5
|
+
start: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function useTimeoutRef(wait: number): {
|
|
8
|
+
readyRef: Ref<boolean>;
|
|
9
|
+
stop: () => void;
|
|
10
|
+
start: () => void;
|
|
11
|
+
};
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -10,11 +10,12 @@ export * as GlobalPageLayoutTypes from './components/edit-page-layout/src/types'
|
|
|
10
10
|
export { LAYOUT_PROPS_TOKEN, LAYOUT_PROPS_TOKEN_DEFAULT_VALUE } from './components/edit-page-layout/src/token';
|
|
11
11
|
export * as GlobalListPageLayoutTypes from './components/list-page-layout/src/types';
|
|
12
12
|
import usePromiseStepHook from './components/page-layout/src/hook/use-promise-step';
|
|
13
|
-
import useRefInstanceHook from './components/page-layout/src/hook/use-ref-instance
|
|
13
|
+
import useRefInstanceHook from './components/page-layout/src/hook/use-ref-instance';
|
|
14
14
|
import useChartHook from './components/useChart/index';
|
|
15
15
|
import useButtonFunctionHook from './components/list-page-layout/src/hooks/use-button-function-hook';
|
|
16
16
|
import useExportXlsHook from './components/list-page-layout/src/hooks/export-xls-hook';
|
|
17
17
|
export { usePromiseStepHook, useRefInstanceHook, useChartHook, useButtonFunctionHook, useExportXlsHook };
|
|
18
|
+
export { useModalContext, useModal, useModalInner } from './components/modal';
|
|
18
19
|
export * from './components/page-layout/src/constant';
|
|
19
20
|
export { LAYOUT_CONFIG_TOKEN, LAYOUT_CONFIG_TOKEN_DEFAULT_VALUE, DEFAULT_VALUE_TOKEN, DEFAULT_VALUE_TOKEN_DEFAULT_VALUE, LAYOUT_PAGE_DATA_TOKEN, LAYOUT_PAGE_DATA_TOKEN_DEFAULT_VALUE, } from './components/page-layout/src/token';
|
|
20
21
|
export { getRemoteJsFilePath, loadJS, requireInjection } from './components/page-layout/src/util';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare interface Fn<T = any, R = T> {
|
|
2
|
+
(...arg: T[]): R
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare interface PromiseFn<T = any, R = T> {
|
|
6
|
+
(...arg: T[]): Promise<R>
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare type RefType<T> = T | null
|
|
10
|
+
|
|
11
|
+
declare type LabelValueOptions = {
|
|
12
|
+
label: string
|
|
13
|
+
value: any
|
|
14
|
+
[key: string]: string | number | boolean
|
|
15
|
+
}[]
|
|
16
|
+
|
|
17
|
+
declare type EmitType = (event: string, ...args: any[]) => void
|
|
18
|
+
|
|
19
|
+
declare type TargetContext = '_self' | '_blank'
|
|
20
|
+
|
|
21
|
+
// declare type Nullable<T> = T | null
|
|
22
|
+
declare type TimeoutHandle = ReturnType<typeof setTimeout>
|
|
23
|
+
|
|
24
|
+
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
25
|
+
$el: T
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null
|
|
29
|
+
|
|
30
|
+
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|
|
31
|
+
|
|
32
|
+
declare type Recordable<T = any> = Record<string, T>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { FunctionArgs } from '@vueuse/core';
|
|
2
|
+
export interface ViewportOffsetResult {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
right: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
rightIncludeBody: number;
|
|
8
|
+
bottomIncludeBody: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function getBoundingClientRect(element: Element): DOMRect | number;
|
|
11
|
+
export declare function hasClass(el: Element, cls: string): boolean;
|
|
12
|
+
export declare function addClass(el: Element, cls: string): void;
|
|
13
|
+
export declare function removeClass(el: Element, cls: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Get the left and top offset of the current element
|
|
16
|
+
* left: the distance between the leftmost element and the left side of the document
|
|
17
|
+
* top: the distance from the top of the element to the top of the document
|
|
18
|
+
* right: the distance from the far right of the element to the right of the document
|
|
19
|
+
* bottom: the distance from the bottom of the element to the bottom of the document
|
|
20
|
+
* rightIncludeBody: the distance between the leftmost element and the right side of the document
|
|
21
|
+
* bottomIncludeBody: the distance from the bottom of the element to the bottom of the document
|
|
22
|
+
*
|
|
23
|
+
* @description:
|
|
24
|
+
*/
|
|
25
|
+
export declare function getViewportOffset(element: Element): ViewportOffsetResult;
|
|
26
|
+
export declare function hackCss(attr: string, value: string): any;
|
|
27
|
+
export declare function on(element: Element | HTMLElement | Document | Window, event: string, handler: EventListenerOrEventListenerObject): void;
|
|
28
|
+
export declare function off(element: Element | HTMLElement | Document | Window, event: string, handler: Fn): void;
|
|
29
|
+
export declare function once(el: HTMLElement, event: string, fn: EventListener): void;
|
|
30
|
+
export declare function useRafThrottle<T extends FunctionArgs>(fn: T): T;
|
|
31
|
+
/**
|
|
32
|
+
* 查找父级元素,直到找到符合条件的元素
|
|
33
|
+
* @param element 当前元素
|
|
34
|
+
* @param checkFn 判断条件
|
|
35
|
+
*/
|
|
36
|
+
export declare function queryParentElement(element: HTMLElement, checkFn: (node: HTMLElement) => boolean): HTMLElement | null;
|