@hb-hellotech/hb-ui 2.4.2 → 2.5.0
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/App.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/HbListTable.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/src/HbTableColumnSet.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +51 -24
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts +280 -85
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts +173 -39
- package/dist/components/func_comp/hb_func_file_preview/src/file_preview.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_icon_list/constants.d.ts +11 -0
- package/dist/components/func_comp/hb_func_icon_list/constants.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_icon_list/index.d.ts +9 -0
- package/dist/components/func_comp/hb_func_icon_list/index.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_icon_list/src/icon_list.d.ts +38 -0
- package/dist/components/func_comp/hb_func_icon_list/src/icon_list.d.ts.map +1 -0
- package/dist/components/func_comp/hb_ui_config/constants.d.ts +2 -0
- package/dist/components/func_comp/hb_ui_config/constants.d.ts.map +1 -0
- package/dist/components/func_comp/hb_ui_config/index.d.ts +1 -1
- package/dist/components/func_comp/hb_ui_config/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_ui_config/src/hbUiConfig.d.ts.map +1 -1
- package/dist/components/func_comp/index.d.ts +2 -1
- package/dist/components/func_comp/index.d.ts.map +1 -1
- package/dist/components/hooks/index.d.ts +1 -0
- package/dist/components/hooks/index.d.ts.map +1 -1
- package/dist/components/hooks/useFilePreview.d.ts +123 -3
- package/dist/components/hooks/useFilePreview.d.ts.map +1 -1
- package/dist/components/hooks/useIconfont.d.ts +27 -0
- package/dist/components/hooks/useIconfont.d.ts.map +1 -0
- package/dist/components/hooks/useListFormItem.d.ts.map +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/demo/HbLibIcon.d.ts +4 -0
- package/dist/demo/HbLibIcon.d.ts.map +1 -0
- package/dist/demo/Table.d.ts.map +1 -1
- package/dist/demo/hb_file_preview.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +2695 -2678
- package/dist/hb_component_lib.umd.cjs +345 -2
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/main.d.ts +52 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/vue-office-docx-D0zFkT1M.js +5857 -0
- package/dist/vue-office-excel-B9GbNr16.js +64322 -0
- package/dist/vue-office-pdf-CaEuSE8g.js +2012 -0
- package/dist/vue-office-pptx-BeWGEYJM.js +52572 -0
- package/hooks/useIconfont.ts +149 -0
- package/package.json +107 -97
package/dist/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";;AAoUA,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HbListTable.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business_comp/list_page_comp/hb_list_table/src/HbListTable.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HbListTable.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business_comp/list_page_comp/hb_list_table/src/HbListTable.vue"],"names":[],"mappings":";AA+KA;AA8UA,OAAO,EACH,iBAAiB,EAEpB,MAAM,kEAAkE,CAAC;AA4H1E,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;8BArBhB,GAAG;+BACF,GAAG;;;;YACL,GAAG;;;;;;YACL,GAAG;;;;YACM,GAAG;;;YACA,GAAG;;;YACP,GAAG;;;;;YACT,GAAG;wBACP,GAAG;yBACF,GAAG;uBACL,GAAG;;;;EAgB9B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GAC5C,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AACF,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC;AACF,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HbTableColumnSet.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business_comp/list_page_comp/hb_list_table_colums_set/src/HbTableColumnSet.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HbTableColumnSet.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business_comp/list_page_comp/hb_list_table_colums_set/src/HbTableColumnSet.vue"],"names":[],"mappings":";AAuMA;;;;;;;;;;;;;;;;;;;cAs0CuB,MAAM,GAAG,EAAE;;;;cAKX,MAAM,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;cALX,MAAM,GAAG,EAAE;;;;cAKX,MAAM,GAAG,EAAE;;;;;;;;;;;;;AA7BlC,wBAkCG"}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
label?: Key;
|
|
5
|
-
key?: Key;
|
|
6
|
-
children?: TreeOptions[];
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export interface TreeNodes extends Required<TreeOptions> {
|
|
10
|
-
expanded?: boolean;
|
|
11
|
-
checked?: boolean;
|
|
12
|
-
indeterminate?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
selected?: boolean;
|
|
16
|
-
leaf?: boolean;
|
|
17
|
-
parentKey?: Key | null;
|
|
18
|
-
level?: number;
|
|
19
|
-
originData?: TreeOptions;
|
|
20
|
-
}
|
|
21
|
-
export declare const btreeProps: {
|
|
1
|
+
import { Key, TreeOptions } from './tree';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
22
4
|
readonly data: {
|
|
23
5
|
readonly type: PropType<TreeOptions[]>;
|
|
24
6
|
readonly required: true;
|
|
@@ -54,6 +36,51 @@ export declare const btreeProps: {
|
|
|
54
36
|
readonly clickToSelect: {
|
|
55
37
|
readonly type: BooleanConstructor;
|
|
56
38
|
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
39
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
40
|
+
readonly data: {
|
|
41
|
+
readonly type: PropType<TreeOptions[]>;
|
|
42
|
+
readonly required: true;
|
|
43
|
+
};
|
|
44
|
+
readonly modelValue: {
|
|
45
|
+
readonly type: ArrayConstructor;
|
|
46
|
+
readonly default: () => never[];
|
|
47
|
+
};
|
|
48
|
+
readonly labelKey: {
|
|
49
|
+
readonly type: StringConstructor;
|
|
50
|
+
readonly default: "label";
|
|
51
|
+
};
|
|
52
|
+
readonly keyKey: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly default: "key";
|
|
55
|
+
};
|
|
56
|
+
readonly childrenKey: {
|
|
57
|
+
readonly type: StringConstructor;
|
|
58
|
+
readonly default: "children";
|
|
59
|
+
};
|
|
60
|
+
readonly defaultExpandKeys: {
|
|
61
|
+
readonly type: PropType<Key[]>;
|
|
62
|
+
readonly default: () => never[];
|
|
63
|
+
};
|
|
64
|
+
readonly multiple: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: false;
|
|
67
|
+
};
|
|
68
|
+
readonly remote: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
readonly clickToSelect: {
|
|
73
|
+
readonly type: BooleanConstructor;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{}>, {
|
|
76
|
+
readonly multiple: boolean;
|
|
77
|
+
readonly modelValue: unknown[];
|
|
78
|
+
readonly labelKey: string;
|
|
79
|
+
readonly keyKey: string;
|
|
80
|
+
readonly childrenKey: string;
|
|
81
|
+
readonly defaultExpandKeys: Key[];
|
|
82
|
+
readonly remote: boolean;
|
|
83
|
+
readonly clickToSelect: boolean;
|
|
84
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
85
|
+
export default _default;
|
|
86
|
+
//# sourceMappingURL=tree.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_comp_tree/src/tree.vue"],"names":[],"mappings":";AAiHA,OAAO,EAAc,GAAG,EAAa,WAAW,EAAE,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqKhE,wBAOG"}
|
|
1
|
+
{"version":3,"file":"tree.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/func_comp/hb_func_comp_tree/src/tree.vue"],"names":[],"mappings":";AAiHA,OAAO,EAAc,GAAG,EAAa,WAAW,EAAE,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqKhE,wBAOG"}
|
|
@@ -1,106 +1,301 @@
|
|
|
1
1
|
import { WithInstall } from '../../utils/withInstall';
|
|
2
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
3
|
+
import { FilePreviewSrc_Type, FilePreviewListItem_Intf, FilePreviewExcelOptions_Intf, FilePreviewKind_Type } from './src/file_preview';
|
|
3
4
|
declare const HbLibFilePreview: WithInstall<{
|
|
4
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
src?: FilePreviewSrc_Type;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
fileList?: FilePreviewListItem_Intf[];
|
|
10
|
+
fileIndex?: number;
|
|
11
|
+
height?: string;
|
|
12
|
+
excelOptions?: FilePreviewExcelOptions_Intf;
|
|
13
|
+
pdfStaticFileUrl?: string;
|
|
14
|
+
modalWidth?: string | number;
|
|
15
|
+
modalTitlePrefix?: string;
|
|
16
|
+
modalTitleOverride?: string;
|
|
17
|
+
showDownload?: boolean;
|
|
18
|
+
showNav?: boolean;
|
|
19
|
+
centered?: boolean;
|
|
20
|
+
destroyOnClose?: boolean;
|
|
21
|
+
maskClosable?: boolean;
|
|
22
|
+
keyboard?: boolean;
|
|
23
|
+
needSafe?: boolean;
|
|
24
|
+
customDownload?: (ctx: {
|
|
25
|
+
item: FilePreviewListItem_Intf | null;
|
|
26
|
+
index: number;
|
|
27
|
+
src: FilePreviewSrc_Type;
|
|
28
|
+
fileName?: string;
|
|
29
|
+
downloadName: string;
|
|
30
|
+
}) => void | Promise<void>;
|
|
31
|
+
}> & Readonly<{
|
|
32
|
+
onError?: ((err: unknown) => any) | undefined;
|
|
33
|
+
onCancel?: (() => any) | undefined;
|
|
34
|
+
"onUpdate:visible"?: ((open: boolean) => any) | undefined;
|
|
35
|
+
onRendered?: (() => any) | undefined;
|
|
36
|
+
"onUpdate:fileIndex"?: ((index: number) => any) | undefined;
|
|
37
|
+
onFileChange?: ((payload: {
|
|
38
|
+
index: number;
|
|
39
|
+
item: FilePreviewListItem_Intf | null;
|
|
40
|
+
}) => any) | undefined;
|
|
41
|
+
onBeforeDownload?: ((payload: {
|
|
42
|
+
item: FilePreviewListItem_Intf | null;
|
|
43
|
+
index: number;
|
|
44
|
+
}) => any) | undefined;
|
|
45
|
+
onDownloaded?: ((payload: {
|
|
46
|
+
item: FilePreviewListItem_Intf | null;
|
|
47
|
+
index: number;
|
|
48
|
+
}) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
previewKind: ComputedRef<FilePreviewKind_Type>;
|
|
51
|
+
safeIndex: ComputedRef<number>;
|
|
52
|
+
currentListItem: ComputedRef< FilePreviewListItem_Intf | null>;
|
|
53
|
+
effectiveSrc: ComputedRef<FilePreviewSrc_Type>;
|
|
54
|
+
effectiveFileName: ComputedRef<string>;
|
|
55
|
+
goPrev: () => void;
|
|
56
|
+
goNext: () => void;
|
|
57
|
+
download: () => Promise<void>;
|
|
58
|
+
closeModal: () => void;
|
|
59
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
|
+
error: (err: unknown) => any;
|
|
61
|
+
cancel: () => any;
|
|
62
|
+
"update:visible": (open: boolean) => any;
|
|
63
|
+
rendered: () => any;
|
|
64
|
+
"update:fileIndex": (index: number) => any;
|
|
65
|
+
fileChange: (payload: {
|
|
66
|
+
index: number;
|
|
67
|
+
item: FilePreviewListItem_Intf | null;
|
|
68
|
+
}) => any;
|
|
69
|
+
beforeDownload: (payload: {
|
|
70
|
+
item: FilePreviewListItem_Intf | null;
|
|
71
|
+
index: number;
|
|
72
|
+
}) => any;
|
|
73
|
+
downloaded: (payload: {
|
|
74
|
+
item: FilePreviewListItem_Intf | null;
|
|
75
|
+
index: number;
|
|
76
|
+
}) => any;
|
|
77
|
+
}, PublicProps, {
|
|
78
|
+
modalWidth: string | number;
|
|
79
|
+
visible: boolean;
|
|
80
|
+
centered: boolean;
|
|
81
|
+
maskClosable: boolean;
|
|
82
|
+
destroyOnClose: boolean;
|
|
83
|
+
keyboard: boolean;
|
|
84
|
+
height: string;
|
|
85
|
+
fileList: FilePreviewListItem_Intf[];
|
|
8
86
|
fileName: string;
|
|
9
|
-
|
|
87
|
+
src: string | Blob | ArrayBuffer | null;
|
|
88
|
+
fileIndex: number;
|
|
89
|
+
excelOptions: FilePreviewExcelOptions_Intf;
|
|
90
|
+
pdfStaticFileUrl: string;
|
|
91
|
+
modalTitlePrefix: string;
|
|
92
|
+
modalTitleOverride: string;
|
|
93
|
+
showDownload: boolean;
|
|
94
|
+
showNav: boolean;
|
|
10
95
|
needSafe: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
readonly url?: string | undefined;
|
|
20
|
-
readonly file?: File | undefined;
|
|
21
|
-
readonly fileName?: string | undefined;
|
|
22
|
-
readonly mobile?: boolean | undefined;
|
|
23
|
-
readonly needSafe?: boolean | undefined;
|
|
24
|
-
readonly previewVisible?: boolean | undefined;
|
|
25
|
-
readonly showAttachmentNav?: boolean | undefined;
|
|
26
|
-
readonly hasPrevAttachment?: boolean | undefined;
|
|
27
|
-
readonly hasNextAttachment?: boolean | undefined;
|
|
28
|
-
readonly isTitleTip?: boolean | undefined;
|
|
29
|
-
readonly titleTip?: string | undefined;
|
|
30
|
-
readonly needModal?: boolean | undefined;
|
|
31
|
-
};
|
|
32
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
96
|
+
customDownload: (ctx: {
|
|
97
|
+
item: FilePreviewListItem_Intf | null;
|
|
98
|
+
index: number;
|
|
99
|
+
src: FilePreviewSrc_Type;
|
|
100
|
+
fileName?: string;
|
|
101
|
+
downloadName: string;
|
|
102
|
+
}) => void | Promise<void>;
|
|
103
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
33
104
|
P: {};
|
|
34
105
|
B: {};
|
|
35
106
|
D: {};
|
|
36
107
|
C: {};
|
|
37
108
|
M: {};
|
|
38
109
|
Defaults: {};
|
|
39
|
-
}, Readonly<{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
110
|
+
}, Readonly<{
|
|
111
|
+
visible?: boolean;
|
|
112
|
+
src?: FilePreviewSrc_Type;
|
|
113
|
+
fileName?: string;
|
|
114
|
+
fileList?: FilePreviewListItem_Intf[];
|
|
115
|
+
fileIndex?: number;
|
|
116
|
+
height?: string;
|
|
117
|
+
excelOptions?: FilePreviewExcelOptions_Intf;
|
|
118
|
+
pdfStaticFileUrl?: string;
|
|
119
|
+
modalWidth?: string | number;
|
|
120
|
+
modalTitlePrefix?: string;
|
|
121
|
+
modalTitleOverride?: string;
|
|
122
|
+
showDownload?: boolean;
|
|
123
|
+
showNav?: boolean;
|
|
124
|
+
centered?: boolean;
|
|
125
|
+
destroyOnClose?: boolean;
|
|
126
|
+
maskClosable?: boolean;
|
|
127
|
+
keyboard?: boolean;
|
|
128
|
+
needSafe?: boolean;
|
|
129
|
+
customDownload?: (ctx: {
|
|
130
|
+
item: FilePreviewListItem_Intf | null;
|
|
131
|
+
index: number;
|
|
132
|
+
src: FilePreviewSrc_Type;
|
|
133
|
+
fileName?: string;
|
|
134
|
+
downloadName: string;
|
|
135
|
+
}) => void | Promise<void>;
|
|
136
|
+
}> & Readonly<{
|
|
137
|
+
onError?: ((err: unknown) => any) | undefined;
|
|
138
|
+
onCancel?: (() => any) | undefined;
|
|
139
|
+
"onUpdate:visible"?: ((open: boolean) => any) | undefined;
|
|
140
|
+
onRendered?: (() => any) | undefined;
|
|
141
|
+
"onUpdate:fileIndex"?: ((index: number) => any) | undefined;
|
|
142
|
+
onFileChange?: ((payload: {
|
|
143
|
+
index: number;
|
|
144
|
+
item: FilePreviewListItem_Intf | null;
|
|
145
|
+
}) => any) | undefined;
|
|
146
|
+
onBeforeDownload?: ((payload: {
|
|
147
|
+
item: FilePreviewListItem_Intf | null;
|
|
148
|
+
index: number;
|
|
149
|
+
}) => any) | undefined;
|
|
150
|
+
onDownloaded?: ((payload: {
|
|
151
|
+
item: FilePreviewListItem_Intf | null;
|
|
152
|
+
index: number;
|
|
153
|
+
}) => any) | undefined;
|
|
154
|
+
}>, {
|
|
155
|
+
previewKind: ComputedRef<FilePreviewKind_Type>;
|
|
156
|
+
safeIndex: ComputedRef<number>;
|
|
157
|
+
currentListItem: ComputedRef< FilePreviewListItem_Intf | null>;
|
|
158
|
+
effectiveSrc: ComputedRef<FilePreviewSrc_Type>;
|
|
159
|
+
effectiveFileName: ComputedRef<string>;
|
|
160
|
+
goPrev: () => void;
|
|
161
|
+
goNext: () => void;
|
|
162
|
+
download: () => Promise<void>;
|
|
163
|
+
closeModal: () => void;
|
|
164
|
+
}, {}, {}, {}, {
|
|
165
|
+
modalWidth: string | number;
|
|
166
|
+
visible: boolean;
|
|
167
|
+
centered: boolean;
|
|
168
|
+
maskClosable: boolean;
|
|
169
|
+
destroyOnClose: boolean;
|
|
170
|
+
keyboard: boolean;
|
|
171
|
+
height: string;
|
|
172
|
+
fileList: FilePreviewListItem_Intf[];
|
|
43
173
|
fileName: string;
|
|
44
|
-
|
|
174
|
+
src: string | Blob | ArrayBuffer | null;
|
|
175
|
+
fileIndex: number;
|
|
176
|
+
excelOptions: FilePreviewExcelOptions_Intf;
|
|
177
|
+
pdfStaticFileUrl: string;
|
|
178
|
+
modalTitlePrefix: string;
|
|
179
|
+
modalTitleOverride: string;
|
|
180
|
+
showDownload: boolean;
|
|
181
|
+
showNav: boolean;
|
|
45
182
|
needSafe: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
readonly url?: string | undefined;
|
|
55
|
-
readonly file?: File | undefined;
|
|
56
|
-
readonly fileName?: string | undefined;
|
|
57
|
-
readonly mobile?: boolean | undefined;
|
|
58
|
-
readonly needSafe?: boolean | undefined;
|
|
59
|
-
readonly previewVisible?: boolean | undefined;
|
|
60
|
-
readonly showAttachmentNav?: boolean | undefined;
|
|
61
|
-
readonly hasPrevAttachment?: boolean | undefined;
|
|
62
|
-
readonly hasNextAttachment?: boolean | undefined;
|
|
63
|
-
readonly isTitleTip?: boolean | undefined;
|
|
64
|
-
readonly titleTip?: string | undefined;
|
|
65
|
-
readonly needModal?: boolean | undefined;
|
|
66
|
-
};
|
|
67
|
-
}, {}, {}, {}, {}>;
|
|
183
|
+
customDownload: (ctx: {
|
|
184
|
+
item: FilePreviewListItem_Intf | null;
|
|
185
|
+
index: number;
|
|
186
|
+
src: FilePreviewSrc_Type;
|
|
187
|
+
fileName?: string;
|
|
188
|
+
downloadName: string;
|
|
189
|
+
}) => void | Promise<void>;
|
|
190
|
+
}>;
|
|
68
191
|
__isFragment?: never;
|
|
69
192
|
__isTeleport?: never;
|
|
70
193
|
__isSuspense?: never;
|
|
71
|
-
} & ComponentOptionsBase<Readonly<{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
194
|
+
} & ComponentOptionsBase<Readonly<{
|
|
195
|
+
visible?: boolean;
|
|
196
|
+
src?: FilePreviewSrc_Type;
|
|
197
|
+
fileName?: string;
|
|
198
|
+
fileList?: FilePreviewListItem_Intf[];
|
|
199
|
+
fileIndex?: number;
|
|
200
|
+
height?: string;
|
|
201
|
+
excelOptions?: FilePreviewExcelOptions_Intf;
|
|
202
|
+
pdfStaticFileUrl?: string;
|
|
203
|
+
modalWidth?: string | number;
|
|
204
|
+
modalTitlePrefix?: string;
|
|
205
|
+
modalTitleOverride?: string;
|
|
206
|
+
showDownload?: boolean;
|
|
207
|
+
showNav?: boolean;
|
|
208
|
+
centered?: boolean;
|
|
209
|
+
destroyOnClose?: boolean;
|
|
210
|
+
maskClosable?: boolean;
|
|
211
|
+
keyboard?: boolean;
|
|
212
|
+
needSafe?: boolean;
|
|
213
|
+
customDownload?: (ctx: {
|
|
214
|
+
item: FilePreviewListItem_Intf | null;
|
|
215
|
+
index: number;
|
|
216
|
+
src: FilePreviewSrc_Type;
|
|
217
|
+
fileName?: string;
|
|
218
|
+
downloadName: string;
|
|
219
|
+
}) => void | Promise<void>;
|
|
220
|
+
}> & Readonly<{
|
|
221
|
+
onError?: ((err: unknown) => any) | undefined;
|
|
222
|
+
onCancel?: (() => any) | undefined;
|
|
223
|
+
"onUpdate:visible"?: ((open: boolean) => any) | undefined;
|
|
224
|
+
onRendered?: (() => any) | undefined;
|
|
225
|
+
"onUpdate:fileIndex"?: ((index: number) => any) | undefined;
|
|
226
|
+
onFileChange?: ((payload: {
|
|
227
|
+
index: number;
|
|
228
|
+
item: FilePreviewListItem_Intf | null;
|
|
229
|
+
}) => any) | undefined;
|
|
230
|
+
onBeforeDownload?: ((payload: {
|
|
231
|
+
item: FilePreviewListItem_Intf | null;
|
|
232
|
+
index: number;
|
|
233
|
+
}) => any) | undefined;
|
|
234
|
+
onDownloaded?: ((payload: {
|
|
235
|
+
item: FilePreviewListItem_Intf | null;
|
|
236
|
+
index: number;
|
|
237
|
+
}) => any) | undefined;
|
|
238
|
+
}>, {
|
|
239
|
+
previewKind: ComputedRef<FilePreviewKind_Type>;
|
|
240
|
+
safeIndex: ComputedRef<number>;
|
|
241
|
+
currentListItem: ComputedRef< FilePreviewListItem_Intf | null>;
|
|
242
|
+
effectiveSrc: ComputedRef<FilePreviewSrc_Type>;
|
|
243
|
+
effectiveFileName: ComputedRef<string>;
|
|
244
|
+
goPrev: () => void;
|
|
245
|
+
goNext: () => void;
|
|
246
|
+
download: () => Promise<void>;
|
|
247
|
+
closeModal: () => void;
|
|
248
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
249
|
+
error: (err: unknown) => any;
|
|
250
|
+
cancel: () => any;
|
|
251
|
+
"update:visible": (open: boolean) => any;
|
|
252
|
+
rendered: () => any;
|
|
253
|
+
"update:fileIndex": (index: number) => any;
|
|
254
|
+
fileChange: (payload: {
|
|
255
|
+
index: number;
|
|
256
|
+
item: FilePreviewListItem_Intf | null;
|
|
257
|
+
}) => any;
|
|
258
|
+
beforeDownload: (payload: {
|
|
259
|
+
item: FilePreviewListItem_Intf | null;
|
|
260
|
+
index: number;
|
|
261
|
+
}) => any;
|
|
262
|
+
downloaded: (payload: {
|
|
263
|
+
item: FilePreviewListItem_Intf | null;
|
|
264
|
+
index: number;
|
|
265
|
+
}) => any;
|
|
266
|
+
}, string, {
|
|
267
|
+
modalWidth: string | number;
|
|
268
|
+
visible: boolean;
|
|
269
|
+
centered: boolean;
|
|
270
|
+
maskClosable: boolean;
|
|
271
|
+
destroyOnClose: boolean;
|
|
272
|
+
keyboard: boolean;
|
|
273
|
+
height: string;
|
|
274
|
+
fileList: FilePreviewListItem_Intf[];
|
|
75
275
|
fileName: string;
|
|
76
|
-
|
|
276
|
+
src: string | Blob | ArrayBuffer | null;
|
|
277
|
+
fileIndex: number;
|
|
278
|
+
excelOptions: FilePreviewExcelOptions_Intf;
|
|
279
|
+
pdfStaticFileUrl: string;
|
|
280
|
+
modalTitlePrefix: string;
|
|
281
|
+
modalTitleOverride: string;
|
|
282
|
+
showDownload: boolean;
|
|
283
|
+
showNav: boolean;
|
|
77
284
|
needSafe: boolean;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
readonly url?: string | undefined;
|
|
87
|
-
readonly file?: File | undefined;
|
|
88
|
-
readonly fileName?: string | undefined;
|
|
89
|
-
readonly mobile?: boolean | undefined;
|
|
90
|
-
readonly needSafe?: boolean | undefined;
|
|
91
|
-
readonly previewVisible?: boolean | undefined;
|
|
92
|
-
readonly showAttachmentNav?: boolean | undefined;
|
|
93
|
-
readonly hasPrevAttachment?: boolean | undefined;
|
|
94
|
-
readonly hasNextAttachment?: boolean | undefined;
|
|
95
|
-
readonly isTitleTip?: boolean | undefined;
|
|
96
|
-
readonly titleTip?: string | undefined;
|
|
97
|
-
readonly needModal?: boolean | undefined;
|
|
98
|
-
};
|
|
99
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
285
|
+
customDownload: (ctx: {
|
|
286
|
+
item: FilePreviewListItem_Intf | null;
|
|
287
|
+
index: number;
|
|
288
|
+
src: FilePreviewSrc_Type;
|
|
289
|
+
fileName?: string;
|
|
290
|
+
downloadName: string;
|
|
291
|
+
}) => void | Promise<void>;
|
|
292
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
100
293
|
$slots: {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
294
|
+
empty?(_: {}): any;
|
|
295
|
+
empty?(_: {}): any;
|
|
296
|
+
unsupported?(_: {}): any;
|
|
297
|
+
unsupported?(_: {}): any;
|
|
298
|
+
'footer-extra'?(_: {}): any;
|
|
104
299
|
};
|
|
105
300
|
})>;
|
|
106
301
|
export default HbLibFilePreview;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/func_comp/hb_func_file_preview/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/func_comp/hb_func_file_preview/index.ts"],"names":[],"mappings":";;;AAGA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;oBAKixxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAD,CAAC;;;;;;;;;;;GALvvxB,CAAC;AAElD,eAAe,gBAAgB,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|