zhytech-ui 1.2.1 → 1.2.2

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
@@ -70,6 +70,12 @@ setTheme("dark");
70
70
 
71
71
  > #### 版本更新清单:
72
72
 
73
+ **V 1.2.2**
74
+ ```html
75
+ 1.pdf文件预览更换组件,分页显示
76
+ 2.ppt文件预览优化
77
+ ```
78
+
73
79
  **V 1.2.1**
74
80
  ```html
75
81
  1.新增验证码组件(verificationCode),支持点击文字验证码(clickTextVCode)、滑动验证码(zhyPuzzleVcode)
@@ -181,6 +181,27 @@ export type videoConfigType = {
181
181
  */
182
182
  leavePlayerTime?: number;
183
183
  };
184
+ /**
185
+ * @description: pdf预览配置项
186
+ */
187
+ export interface pdfOptionType {
188
+ /**
189
+ * pdf文件名
190
+ */
191
+ name?: string;
192
+ /**
193
+ * 是否显示工具条
194
+ */
195
+ showTool?: boolean;
196
+ /**
197
+ * 工具条显示项,默认值: scale(缩放) print download pages(当前页/总页数)
198
+ */
199
+ tool?: Array<"scale" | "print" | "download" | "pages" | "" | "" | "">;
200
+ /**
201
+ * 是否分页显示,默认true
202
+ */
203
+ pagination?: boolean;
204
+ }
184
205
  /**
185
206
  * @description: 文档管理中文件上传参数类型
186
207
  */
@@ -201,5 +222,9 @@ export interface previewOption {
201
222
  * 自动播放音频
202
223
  */
203
224
  autoplayAudio?: boolean;
225
+ /**
226
+ * pdf预览配置项
227
+ */
228
+ pdfOption?: pdfOptionType;
204
229
  }
205
230
  export {};