zhytech-ui 1.1.40 → 1.2.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.
@@ -194,7 +194,7 @@ export interface previewOption {
194
194
  */
195
195
  openList?: boolean;
196
196
  /**
197
- * 自动播放视频
197
+ * 视频配置
198
198
  */
199
199
  videoConfig?: videoConfigType;
200
200
  /**
@@ -51,6 +51,12 @@ export declare function useUtils(): {
51
51
  * @return
52
52
  */
53
53
  checkFile(file: any, files: [], size: number, unit: string, isImage: boolean): boolean;
54
+ /**
55
+ * @description: 获取文件类型
56
+ * @param fileName
57
+ * @return
58
+ */
59
+ getFileType(fileName: string): "" | "radio" | "image" | "video" | "word" | "excel" | "ppt" | "pdf" | "txt" | "zip" | "other";
54
60
  /**
55
61
  * @description: 根据传入值获取:①对应节点所在的各级菜单的值所组成的数组(多选为二维数组)②对应节点的对象(多选为对象数组)
56
62
  * @param selectVale 级联选择器选择的值