李志伟 3 недель назад
Родитель
Сommit
d83a346837

+ 0 - 2
package.json

@@ -18,14 +18,12 @@
         "vue-template-compiler": "^2.7.16"
     },
     "dependencies": {
-        "@handsontable/vue": "^15.2.0",
         "@lifetech-inc/x-data-spreadsheet": "^1.0.17",
         "axios": "^1.8.4",
         "docx-preview": "^0.3.5",
         "element-ui": "^2.15.13",
         "exceljs": "^4.4.0",
         "file-saver": "^2.0.5",
-        "handsontable": "^11.1.0",
         "html2canvas": "^1.4.1",
         "js-cookie": "^3.0.5",
         "jszip": "^3.10.1",

+ 0 - 107
pnpm-lock.yaml

@@ -5,9 +5,6 @@ settings:
   excludeLinksFromLockfile: false
 
 dependencies:
-  '@handsontable/vue':
-    specifier: ^15.2.0
-    version: 15.2.0(handsontable@11.1.0)(vue@2.7.16)
   '@lifetech-inc/x-data-spreadsheet':
     specifier: ^1.0.17
     version: 1.0.17
@@ -26,9 +23,6 @@ dependencies:
   file-saver:
     specifier: ^2.0.5
     version: 2.0.5
-  handsontable:
-    specifier: ^11.1.0
-    version: 11.1.0
   html2canvas:
     specifier: ^1.4.1
     version: 1.4.1
@@ -551,16 +545,6 @@ packages:
       lodash.uniq: 4.5.0
     dev: false
 
-  /@handsontable/vue@15.2.0(handsontable@11.1.0)(vue@2.7.16):
-    resolution: {integrity: sha512-N7OrfGNMwm+uhbU0Kg7zrrSJVrkWFdrT9xR2Wha6XWTXfJoduFKmkHgw6PIBb4nCb7+tM3jAr8ZAR/oFaGH0KA==}
-    peerDependencies:
-      handsontable: '>=15.0.0'
-      vue: ^2.5.0
-    dependencies:
-      handsontable: 11.1.0
-      vue: 2.7.16
-    dev: false
-
   /@jest/types@26.6.2:
     resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==}
     engines: {node: '>= 10.14.2'}
@@ -658,12 +642,6 @@ packages:
       undici-types: 6.21.0
     dev: true
 
-  /@types/pikaday@1.7.4:
-    resolution: {integrity: sha512-0KsHVyw5pTG829nqG4IRu7m+BFQlFEBdbE/1i3S5182HeKUKv1uEW0gyEmkJVp5i4IV+9pyh23O83+KpRkSQbw==}
-    dependencies:
-      moment: 2.24.0
-    dev: false
-
   /@types/yargs-parser@21.0.3:
     resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==}
     dev: true
@@ -1002,10 +980,6 @@ packages:
     engines: {node: '>=0.6'}
     dev: false
 
-  /bignumber.js@8.1.1:
-    resolution: {integrity: sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ==}
-    dev: false
-
   /binary@0.3.0:
     resolution: {integrity: sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==}
     dependencies:
@@ -1127,14 +1101,6 @@ packages:
     resolution: {integrity: sha512-j/Toj7f1z98Hh2cYo2BVr85EpIRWqUi7rtRSGxh/cqUjqrnJe9l9UE7IUGd2vQ2p+kSHLkSzObQPZPLUC6TQwg==}
     dev: false
 
-  /chevrotain@6.5.0:
-    resolution: {integrity: sha512-BwqQ/AgmKJ8jcMEjaSnfMybnKMgGTrtDKowfTP3pX4jwVy0kNjRsT/AP6h+wC3+3NC+X8X15VWBnTCQlX+wQFg==}
-    requiresBuild: true
-    dependencies:
-      regexp-to-ast: 0.4.0
-    dev: false
-    optional: true
-
   /cli-cursor@2.1.0:
     resolution: {integrity: sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==}
     engines: {node: '>=4'}
@@ -1536,11 +1502,6 @@ packages:
     requiresBuild: true
     dev: false
 
-  /core-js@3.41.0:
-    resolution: {integrity: sha512-SJ4/EHwS36QMJd6h/Rg+GyR4A5xE0FSI3eZ+iBVpfqf1x0eTSg1smWLHrA+2jQThZSh97fmSgFSU8B61nxosxA==}
-    requiresBuild: true
-    dev: false
-
   /core-util-is@1.0.3:
     resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
     dev: false
@@ -1620,10 +1581,6 @@ packages:
       jszip: 3.10.1
     dev: false
 
-  /dompurify@2.5.8:
-    resolution: {integrity: sha512-o1vSNgrmYMQObbSSvF/1brBYEQPHhV1+gsmrusO7/GXtp1T9rCS8cXFqVxK/9crT1jA6Ccv+5MTSjBNqr7Sovw==}
-    dev: false
-
   /dunder-proto@1.0.1:
     resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
     engines: {node: '>= 0.4'}
@@ -2089,19 +2046,6 @@ packages:
   /graceful-fs@4.2.11:
     resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
 
-  /handsontable@11.1.0:
-    resolution: {integrity: sha512-Ph0avovpqLy+1U0+U+ptvfPDMLYWkxfBXwJU5mT+ql475tAM1CuwhFlY8MH6iRAxrqWJdCDOzytIgIrbGrfjMQ==}
-    dependencies:
-      '@types/pikaday': 1.7.4
-      core-js: 3.41.0
-      dompurify: 2.5.8
-      moment: 2.24.0
-      numbro: 2.1.2
-      pikaday: 1.8.0
-    optionalDependencies:
-      hyperformula: 1.3.1
-    dev: false
-
   /has-ansi@2.0.0:
     resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==}
     engines: {node: '>=0.10.0'}
@@ -2158,18 +2102,6 @@ packages:
       text-segmentation: 1.0.3
     dev: false
 
-  /hyperformula@1.3.1:
-    resolution: {integrity: sha512-9CdvkJSAy74PLaLQZf6mnvJGncE+ur2tmuZ6wB86E8M+A1hM9HeAJbl+6X3WjeZyvHle6UMV8b0uSNkjGxecKQ==}
-    requiresBuild: true
-    dependencies:
-      chevrotain: 6.5.0
-      core-js: 3.41.0
-      regenerator-runtime: 0.13.11
-      tiny-emitter: 2.1.0
-      unorm: 1.6.0
-    dev: false
-    optional: true
-
   /iconv-lite@0.4.24:
     resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
     engines: {node: '>=0.10.0'}
@@ -2500,10 +2432,6 @@ packages:
       minimist: 1.2.8
     dev: false
 
-  /moment@2.24.0:
-    resolution: {integrity: sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==}
-    dev: false
-
   /ms@2.1.3:
     resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
     dev: true
@@ -2555,12 +2483,6 @@ packages:
     resolution: {integrity: sha512-1OnlAPZ3zgrk8B91HyRj+eVv+kS5u+Z0SCsak6Xil/kmgEia50ga7zfkumayonZrImffAxPU/5WcyGhzetHNPA==}
     dev: false
 
-  /numbro@2.1.2:
-    resolution: {integrity: sha512-7w833BxZmKGLE9HI0aREtNVRVH6WTYUUlWf4qgA5gKNhPQ4F/MRZ14sc0v8eoLORprk9ZTVwYaLwj8N3Zgxwiw==}
-    dependencies:
-      bignumber.js: 8.1.1
-    dev: false
-
   /object-assign@4.1.1:
     resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
     engines: {node: '>=0.10.0'}
@@ -2650,10 +2572,6 @@ packages:
     dev: true
     optional: true
 
-  /pikaday@1.8.0:
-    resolution: {integrity: sha512-SgGxMYX0NHj9oQnMaSyAipr2gOrbB4Lfs/TJTb6H6hRHs39/5c5VZi73Q8hr53+vWjdn6HzkWcj8Vtl3c9ziaA==}
-    dev: false
-
   /pinkie-promise@2.0.1:
     resolution: {integrity: sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==}
     engines: {node: '>=0.10.0'}
@@ -2776,18 +2694,6 @@ packages:
     resolution: {integrity: sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==}
     dev: false
 
-  /regenerator-runtime@0.13.11:
-    resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==}
-    requiresBuild: true
-    dev: false
-    optional: true
-
-  /regexp-to-ast@0.4.0:
-    resolution: {integrity: sha512-4qf/7IsIKfSNHQXSwial1IFmfM1Cc/whNBQqRwe0V2stPe7KmN1U0tWQiIx6JiirgSrisjE0eECdNf7Tav1Ntw==}
-    requiresBuild: true
-    dev: false
-    optional: true
-
   /resize-observer-polyfill@1.5.1:
     resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==}
     dev: false
@@ -3005,12 +2911,6 @@ packages:
     resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
     dev: false
 
-  /tiny-emitter@2.1.0:
-    resolution: {integrity: sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==}
-    requiresBuild: true
-    dev: false
-    optional: true
-
   /tinycolor2@1.6.0:
     resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==}
     dev: false
@@ -3056,13 +2956,6 @@ packages:
     engines: {node: '>= 10.0.0'}
     dev: true
 
-  /unorm@1.6.0:
-    resolution: {integrity: sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA==}
-    engines: {node: '>= 0.4.0'}
-    requiresBuild: true
-    dev: false
-    optional: true
-
   /unzipper@0.10.14:
     resolution: {integrity: sha512-ti4wZj+0bQTiX2KmKWuwj7lhV+2n//uXEotUmGuQqrbVZSEGFMbI68+c6JCQ8aAmUWYvtHEz2A8K6wXvueR/6g==}
     dependencies:

+ 2 - 2
src/components/view_file/vendors/pptx/index.js

@@ -2,12 +2,12 @@
  * @Author: LiZhiWei
  * @Date: 2025-04-09 10:49:05
  * @LastEditors: LiZhiWei
- * @LastEditTime: 2025-04-17 15:08:42
+ * @LastEditTime: 2025-04-24 11:35:32
  * @Description:
  */
 import Vue from "vue"
 import PPT from "./PPT.vue"
-import { parse } from "@/utils/pptxToJson/pptxtojson"
+import { parse } from "./libs/pptxToJson/index"
 /**
  * 渲染ppt
  */

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
src/components/view_file/vendors/pptx/libs/pptxToJson/index.js


+ 1 - 1
src/components/view_file/vendors/xlsx/Table.vue

@@ -7,7 +7,7 @@
 <script>
 import Spreadsheet from "x-data-spreadsheet"
 import { indexedColors } from "./color"
-import { zhCN } from "handsontable/i18n"
+import zhCN from "x-data-spreadsheet/dist/locale/zh-cn"
 import _ from "lodash-es"
 import tinycolor from "tinycolor2"
 Spreadsheet.locale("zh-cn", zhCN)

+ 2 - 2
src/views/index.vue

@@ -2,7 +2,7 @@
  * @Author: LiZhiWei
  * @Date: 2025-04-23 16:56:47
  * @LastEditors: LiZhiWei
- * @LastEditTime: 2025-04-24 11:20:35
+ * @LastEditTime: 2025-04-24 11:37:37
  * @Description: 
 -->
 <template>
@@ -117,7 +117,7 @@ export default {
               .match(/\.([^.]+)$/)?.[1]
               ?.toLowerCase() || ""
           this.previewFile.filename = fileName.split(".")[0]
-          this.previewFile.type = fileName.split(".").pop().toLowerCase()
+          this.previewFile.type = fileType
           // 更新文件信息
           return readBuffer(res.data).then((arrayBuffer) => {
             this.previewFile.fileBuffer = arrayBuffer

Некоторые файлы не были показаны из-за большого количества измененных файлов