zhytech-ui 1.2.4 → 1.2.6

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/README.md CHANGED
@@ -72,6 +72,11 @@ setTheme("dark");
72
72
 
73
73
  > #### 版本更新清单:
74
74
 
75
+ **V 1.2.5**
76
+ ```html
77
+ 1.pdf文件预览支持传入初始化页码
78
+ ```
79
+
75
80
  **V 1.2.4**
76
81
  ```html
77
82
  1.解决pdf显示乱码问题,需要将zhytech-ui\dist\pdfjs-list文件夹复制到项目的public文件夹下
@@ -0,0 +1,33 @@
1
+ import { pdfOptionType } from '../types/filePreviewType';
2
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
3
+ src: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ option: {
8
+ type: () => pdfOptionType;
9
+ default: () => {
10
+ showTool: boolean;
11
+ tool: string[];
12
+ single: boolean;
13
+ };
14
+ };
15
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
16
+ src: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ option: {
21
+ type: () => pdfOptionType;
22
+ default: () => {
23
+ showTool: boolean;
24
+ tool: string[];
25
+ single: boolean;
26
+ };
27
+ };
28
+ }>> & Readonly<{}>, {
29
+ option: pdfOptionType;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
31
+ pdfRef: unknown;
32
+ }, HTMLDivElement>;
33
+ export default _default;
@@ -200,7 +200,15 @@ export interface pdfOptionType {
200
200
  /**
201
201
  * 是否分页显示,默认true
202
202
  */
203
- pagination?: boolean;
203
+ single?: boolean;
204
+ /**
205
+ * 当前页码,默认1
206
+ */
207
+ currentPage?: Number;
208
+ /**
209
+ * 分页切换回调函数
210
+ */
211
+ onPageChange?: Function;
204
212
  }
205
213
  /**
206
214
  * @description: 文档管理中文件上传参数类型