李志伟 преди 3 седмици
родител
ревизия
5d558912de
променени са 2 файла, в които са добавени 29 реда и са изтрити 1 реда
  1. 1 1
      README.md
  2. 28 0
      components.d.ts

+ 1 - 1
README.md

@@ -1,5 +1,5 @@
 <h2 id="rSVWk">1. 组件概述</h2>
-ViewFile 是一个功能强大的文件预览组件,支持多种文件格式的在线预览,包括文档、表格、演示文稿、图片和文本文件等。该组件能够根据文件类型自动选择合适的渲染器进行内容展示,为用户提供便捷的文件预览体验。
+ViewFile 是一个功能强大的文件预览组件,支持多种文件格式的在线预览,包括文档、表格、演示文稿、图片和文本文件等。该组件能够根据文件类型自动选择合适的渲染器进行内容展示,为用户提供便捷的文件预览体验。该项目基于 Vue 2.7.16 开发,请确保项目使用 Vue 2.x 版本。
 
 <h2 id="SK0VG">2. 组件结构</h2>
 ViewFile 组件采用模块化设计,主要包含以下部分:

+ 28 - 0
components.d.ts

@@ -0,0 +1,28 @@
+/* eslint-disable */
+// @ts-nocheck
+// Generated by unplugin-vue-components
+// Read more: https://github.com/vuejs/core/pull/3399
+// biome-ignore lint: disable
+export {}
+
+/* prettier-ignore */
+declare module 'vue' {
+  export interface GlobalComponents {
+    CodeViewer: typeof import('./src/components/view_file/vendors/text/CodeViewer.vue')['default']
+    ElButton: typeof import('element-plus/es')['ElButton']
+    ElIcon: typeof import('element-plus/es')['ElIcon']
+    ElImage: typeof import('element-plus/es')['ElImage']
+    ElOption: typeof import('element-plus/es')['ElOption']
+    ElSelect: typeof import('element-plus/es')['ElSelect']
+    ElSpinner: typeof import('element-plus/es')['ElSpinner']
+    ElUpload: typeof import('element-plus/es')['ElUpload']
+    ImageViewer: typeof import('./src/components/view_file/vendors/image/ImageViewer.vue')['default']
+    Other: typeof import('./src/components/view_file/vendors/other/index.vue')['default']
+    PdfView: typeof import('./src/components/view_file/vendors/pdf/PdfView.vue')['default']
+    PPT: typeof import('./src/components/view_file/vendors/pptx/PPT.vue')['default']
+    RouterLink: typeof import('vue-router')['RouterLink']
+    RouterView: typeof import('vue-router')['RouterView']
+    Table: typeof import('./src/components/view_file/vendors/xlsx/Table.vue')['default']
+    View_file: typeof import('./src/components/view_file/index.vue')['default']
+  }
+}