{"versions":{"0.0.1":{"name":"@vue-office/pptx","version":"0.0.1","description":"支持多种文件(**docx、excel、pdf**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@0.0.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-V2AwJsoLL7vPqiE6XARzuKRbRSufAKHxhmR8eNT5PtKgGoP265BEuZx7fHjxMMyJV7W3a38/E/LQs/OxBr4A0w==","shasum":"ded1b20c04793cc4ff77094aee94b6592e1d435f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-0.0.1.tgz","fileCount":12,"unpackedSize":1662788,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/TIFn7Ju7pKC+s41UKw4+ZmqEwCqmEXnU9hUZ6pyrkAiBmrncEZwFaP4rk6eBuhdbtsvb6kk1miYujA7Hns5MAXg=="}],"size":453705},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pptx_0.0.1_1729512084099_0.5633623499922322"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-21T12:01:24.411Z","publish_time":1729512084411,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.2":{"name":"@vue-office/pptx","version":"0.0.2","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@0.0.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-bRy25kW/T/JCp5wx7SuBLJ/l/nZlwfJhocI3FdQfGk5FUWZvOINToXasIv32BUV/+gw5+tEQfeShCuop0HvBzg==","shasum":"c02bf87e0d8bcec0fa89bcd09462b51db4392790","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-0.0.2.tgz","fileCount":12,"unpackedSize":1749512,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICl6m4lfA7lmaORJc+Q6bHzSUrtv6ibp+AP9K7KR/3JnAiBqRkC+LH+3gc3uAXYhPi08r6/NDmI6dj9ayRaVVlPsqQ=="}],"size":471951},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pptx_0.0.2_1730259074571_0.6439982330059033"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-30T03:31:14.886Z","publish_time":1730259074886,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.3":{"name":"@vue-office/pptx","version":"0.0.3","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@0.0.3","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ctJtQMRaBHyEoGQMFkUo8frkY1GJ2WzKWnVnqHgvI4XblVHM0nXD+3V8M7A1Lqp5wQodRUdICkQtEGGcvLYMCQ==","shasum":"e7442dd5b1a374f1a48936863d4aae094de7f36b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-0.0.3.tgz","fileCount":12,"unpackedSize":2035280,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqwx+zYqIGb2j+a9RR94ufSoXTwoJnMutnhtVxeYY94AIgB46KjMQ2r9+e2mJVIltuPHbW1aV5p2metB3l+fhPFIA="}],"size":513789},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pptx_0.0.3_1732373550623_0.806701958146187"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-23T14:52:30.878Z","publish_time":1732373550878,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.4":{"name":"@vue-office/pptx","version":"0.0.4","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@0.0.4","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-kfiJDt0TVZSTNTQQKjzfCiejLvP9ADzsKffm3fbo0X35JPv35rA/88msCJARNFHzU5UV0UaPyghwG640OYlxbQ==","shasum":"07e2caa1ee34fcd4c3fab26a802fdcc93133e9e1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-0.0.4.tgz","fileCount":12,"unpackedSize":2033714,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/QDbm08c3cBZiuP4NR7iGuM6/uomfOCJ3Y/EkQAbG6QIhAMPI+rMHS40+Aeka4be6RorGRUySUSl4Uy0qOk5M3s1h"}],"size":512884},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pptx_0.0.4_1732416949032_0.1304560161200341"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-24T02:55:49.266Z","publish_time":1732416949266,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.5":{"name":"@vue-office/pptx","version":"0.0.5","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@0.0.5","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-yH8h1U4gfgbsoVAUWquSS6YJZG2Wc5XM280Ol5eyRyCkM6d+GbtypAsXmL9TIz58tCbOxNfy9nOG50VfNHnN3A==","shasum":"c2e5a8cc0129a7e3d940fb3d890e77e37a7810c2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-0.0.5.tgz","fileCount":12,"unpackedSize":2056170,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNUItzudOog1w3caQNq0207OZzKy/arKEuwBKjvsPliAiAUlN/ChrWSZxB6x3dhauWayHv0fi7V5Q6KOEU05DVh2A=="}],"size":518741},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pptx_0.0.5_1732928174266_0.7916286187835935"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-30T00:56:14.565Z","publish_time":1732928174565,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"0.0.6":{"name":"@vue-office/pptx","version":"0.0.6","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@0.0.6","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-oIHFGIN6fizQis2XBc6MOiKAyJCa5UU2e3PdmGBURNYMnhxjRu7Q6ri1eD9zNuYXtkL7n0qhyC6JS30gjbTQXA==","shasum":"ddbdf4716ce9f0f2e57e68cb85cad8af8de0e3c2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-0.0.6.tgz","fileCount":12,"unpackedSize":2071880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHNS5TAXbAs8jRdze1QNG23jrv1oYYhR8MmX4hMaYJhWAiB5DFEW25IWbreK+kPjUdQPPOtmk9cNfo3lhiX+3vSCkA=="}],"size":522767},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pptx_0.0.6_1733044239476_0.396411973850731"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-01T09:10:39.737Z","publish_time":1733044239737,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"1.0.0":{"name":"@vue-office/pptx","version":"1.0.0","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_id":"@vue-office/pptx@1.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-fIKc6GWwG6q7rI+obTb5Sx5iMRKzyJ6t04Z+JX6m7Kh1FFKhtyzHNqKqLc5IMBsNhpBrjeRPFuAU0n9Woj8SIQ==","shasum":"f775db0574d7036f1b205eafba4d103cfe50f437","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-1.0.0.tgz","fileCount":12,"unpackedSize":9545106,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDEhuMU55hHtM1+yZE/yER8YQto0Su867VsMMJQAa4HvAiAPdkljS4U+XohaMOrNN+WI6XaciTAI0EQ2wMBU0lLepA=="}],"size":2797094},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pptx_1.0.0_1735525828212_0.05760497935272868"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-30T02:30:28.450Z","publish_time":1735525828450,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]},"1.0.1":{"name":"@vue-office/pptx","version":"1.0.1","description":"支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。","main":"lib/index.js","scripts":{"clean":"rimraf lib","copyFile2":"cp lib/v2/vue-office-pptx.umd.js lib/v2/index.js","copyFile3":"cp lib/v3/vue-office-pptx.umd.js lib/v3/index.js","copyReadme":"cp ../../../help.md README.md","copyType":"cp index.d.ts lib/index.d.ts","copyScripts":"mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js  && cp ../../script/utils.js lib/script/utils.js","build:2":"npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2","build:3":"npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3","build":"npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType","postinstall":"node lib/script/postinstall.js"},"peerDependencies":{"@vue/composition-api":"^1.7.1","vue":"^2.0.0 || >=3.0.0","vue-demi":"^0.14.6"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"repository":{"type":"git","url":"git+ssh://git@github.com/501351981/vue-office.git"},"keywords":["vue","docx","pdf","ppt","excel","docx-preview","excel-preview","pdf-preview"],"license":"MIT","author":{"name":"微信: _hit757_"},"gitHead":"d20568113bec480f6ca72924f6d0c1e3b0f1fe15","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_id":"@vue-office/pptx@1.0.1","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/501351981/vue-office/issues"},"homepage":"https://github.com/501351981/vue-office#readme","_nodeVersion":"18.12.1","_npmVersion":"9.9.4","dist":{"integrity":"sha512-+V7Kctzl6f6+Yk4NaD/wQGRIkqLWcowe0jEhPexWQb8Oilbzt1OyhWRWcMsxNDTdrgm6aMLP+0/tmw27cxddMg==","shasum":"f34d5a7aa78cd534c5724540dbe53f0539e94b3e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vue-office/pptx/-/pptx-1.0.1.tgz","fileCount":12,"unpackedSize":9504306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5vaa0gpiq1bbfAXe3GlwBIruD2tkBTd6DFJidVnKc6AiBK/JZPse2GVr3eCRzYPtmPKGe8nFVs5OmRxRH/ENYXIA=="}],"size":2783538},"_npmUser":{"name":"anonymous","email":"501351981@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"501351981@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pptx_1.0.1_1736501773071_0.8801416496073562"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-10T09:36:13.339Z","publish_time":1736501773339,"_source_registry_name":"default","hasInstallScript":true,"contributors":[]}},"dist-tags":{"latest":"1.0.1"},"name":"@vue-office/pptx","time":{"created":"2024-10-21T12:04:30.115Z","modified":"2025-01-10T09:37:31.483Z","0.0.1":"2024-10-21T12:01:24.411Z","0.0.2":"2024-10-30T03:31:14.886Z","0.0.3":"2024-11-23T14:52:30.878Z","0.0.4":"2024-11-24T02:55:49.266Z","0.0.5":"2024-11-30T00:56:14.565Z","0.0.6":"2024-12-01T09:10:39.737Z","1.0.0":"2024-12-30T02:30:28.450Z","1.0.1":"2025-01-10T09:36:13.339Z"},"readme":"# vue-office\n\n支持多种文件(**docx、excel、pdf、pptx**)预览的vue组件库，支持vue2/3。也支持非Vue框架的预览。\n\n[《演示效果》](https://501351981.github.io/vue-office/examples/dist/)\n\n[《使用非Vue框架（原生js、React等）、或者Vue里面报错，看这里》](https://501351981.github.io/vue-office/examples/docs/guide/js-preview.html)\n## 功能特色\n- 一站式：提供word(.docx)、pdf、excel(.xlsx, .xls)、ppt(.pptx)多种文档的在线预览方案，有它就够了\n- 简单：只需提供文档的src(网络地址)即可完成文档预览\n- 体验好：选择每个文档的最佳预览方案，保证用户体验和性能都达到最佳状态\n- 性能好：针对数据量较大做了优化\n\n## 安装\n```shell\n#docx文档预览组件\nnpm install @vue-office/docx vue-demi@0.14.6\n\n#excel文档预览组件\nnpm install @vue-office/excel vue-demi@0.14.6\n\n#pdf文档预览组件\nnpm install @vue-office/pdf vue-demi@0.14.6\n\n#pptx文档预览组件\nnpm install @vue-office/pptx vue-demi@0.14.6\n```\n如果是vue2.6版本或以下还需要额外安装 @vue/composition-api\n```shell\nnpm install @vue/composition-api\n```\n\n## 使用示例\n\n文档预览场景大致可以分为三种：\n- 有文档CDN地址，比如 https://***.docx，将文档地址字符串传给组件的src属性\n- 通过接口请求获取文件内容，此时可以获取文件的ArrayBuffer或Blob格式数据传给组件的src属性\n- 文件上传时预览，此时可以获取文件的ArrayBuffer或Blob格式数据传给组件的src属性\n\n<details>\n<summary>docx文件预览示例 （三种使用方式均有示例）</summary>\n\n**1. 使用网络地址预览**\n```vue\n<template>\n    <vue-office-docx\n        :src=\"docx\"\n        style=\"height: 100vh;\"\n        @rendered=\"rendered\"\n    />\n</template>\n\n<script>\n//引入VueOfficeDocx组件\nimport VueOfficeDocx from '@vue-office/docx'\n//引入相关样式\nimport '@vue-office/docx/lib/index.css'\n\nexport default {\n    components:{\n        VueOfficeDocx\n    },\n    data(){\n        return {\n            docx: 'http://static.shanhuxueyuan.com/test6.docx' //设置文档网络地址，可以是相对地址\n        }\n    },\n    methods:{\n        rendered(){\n            console.log(\"渲染完成\")\n        }\n    }\n}\n</script>\n```\n\n**2. 上传文件预览**\n\n读取文件的ArrayBuffer\n```vue\n<template>\n    <div>\n        <input type=\"file\" @change=\"changeHandle\"/>\n        <vue-office-docx :src=\"src\"/>\n    </div>\n</template>\n\n<script>\nimport VueOfficeDocx from '@vue-office/docx'\nimport '@vue-office/docx/lib/index.css'\n\nexport default {\n    components: {\n        VueOfficeDocx\n    },\n    data(){\n        return {\n            src: ''\n        }\n    },\n    methods:{\n        changeHandle(event){\n            let file = event.target.files[0]\n            let fileReader = new FileReader()\n            fileReader.readAsArrayBuffer(file)\n            fileReader.onload =  () => {\n                this.src = fileReader.result\n            }\n        }\n    }\n}\n</script>\n```\n\n**3. 二进制文件预览**\n\n如果后端给的不是CDN地址，而是一些POST接口，该接口返回二进制流，则可以调用接口获取文件的ArrayBuffer数据，传递给src属性。\n\n```vue\n<template>\n    <vue-office-docx\n        :src=\"docx\"\n        style=\"height: 100vh;\"\n        @rendered=\"rendered\"\n    />\n</template>\n\n<script>\n//引入VueOfficeDocx组件\nimport VueOfficeDocx from '@vue-office/docx'\n//引入相关样式\nimport '@vue-office/docx/lib/index.css'\n\nexport default {\n    components:{\n        VueOfficeDocx\n    },\n    data(){\n        return {\n            docx: ''\n        }\n    },\n    mounted(){\n        fetch('你的API文件地址', {\n            method: 'post'\n        }).then(res=>{\n            //读取文件的arrayBuffer\n            res.arrayBuffer().then(res=>{\n                this.docx = res\n            })\n        })\n    },\n    methods:{\n        rendered(){\n            console.log(\"渲染完成\")\n        }\n    }\n}\n</script>\n```\n\n</details>\n\n<details>\n<summary>excel 文件预览示例 </summary>\n\n通过网络地址预览示例如下，通过文件ArrayBuffer预览和上面docx的使用方式一致。\n```vue\n<template>\n    <vue-office-excel\n        :src=\"excel\"\n        style=\"height: 100vh;\"\n        @rendered=\"renderedHandler\"\n        @error=\"errorHandler\"\n    />\n</template>\n\n<script>\n//引入VueOfficeExcel组件\nimport VueOfficeExcel from '@vue-office/excel'\n//引入相关样式\nimport '@vue-office/excel/lib/index.css'\n\nexport default {\n    components: {\n        VueOfficeExcel\n    },\n    data() {\n        return {\n            excel: 'http://static.shanhuxueyuan.com/demo/excel.xlsx'//设置文档地址\n        }\n    },\n    methods: {\n        renderedHandler() {\n            console.log(\"渲染完成\")\n        },\n        errorHandler() {\n            console.log(\"渲染失败\")\n        }\n    }\n}\n</script>\n```\n</details>\n\n<details>\n<summary>pdf 文件预览示例 </summary>\n\n通过网络地址预览示例如下，通过文件ArrayBuffer预览和上面docx的使用方式一致。\n```vue\n<template>\n    <vue-office-pdf\n        :src=\"pdf\"\n        style=\"height: 100vh\"\n        @rendered=\"renderedHandler\"\n        @error=\"errorHandler\"\n    />\n</template>\n\n<script>\n//引入VueOfficePdf组件\nimport VueOfficePdf from '@vue-office/pdf'\n\nexport default {\n    components: {\n        VueOfficePdf\n    },\n    data() {\n        return {\n            pdf: 'http://static.shanhuxueyuan.com/test.pdf' //设置文档地址\n        }\n    },\n    methods: {\n        renderedHandler() {\n            console.log(\"渲染完成\")\n        },\n        errorHandler() {\n            console.log(\"渲染失败\")\n        }\n    }\n}\n</script>\n```\n\n</details>\n\n\n<details>\n<summary>pptx 文件预览示例 </summary>\n\n通过网络地址预览示例如下，通过文件ArrayBuffer预览和上面docx的使用方式一致。\n```vue\n<template>\n    <vue-office-pptx\n        :src=\"pdf\"\n        style=\"height: 100vh\"\n        @rendered=\"renderedHandler\"\n        @error=\"errorHandler\"\n    />\n</template>\n\n<script>\nimport VueOfficePptx from '@vue-office/pptx'\n\nexport default {\n    components: {\n        VueOfficePptx\n    },\n    data() {\n        return {\n            pdf: 'http://****/test.pptx' //设置文档地址\n        }\n    },\n    methods: {\n        renderedHandler() {\n            console.log(\"渲染完成\")\n        },\n        errorHandler() {\n            console.log(\"渲染失败\")\n        }\n    }\n}\n</script>\n```\n\n</details>\n\n# 项目依赖的第三方库\n\n- docx： 基于docx-preview库实现，相关issues暂不处理\n- pdf： 基于pdfjs库实现，实现了虚拟列表增加性能\n- excel: 基于exceljs 和 x-data-spreadsheet实现，全网样式支持更好\n- pptx： 基于自研库 [pptx-preview](https://github.com/501351981/pptx-preview) 实现，源码单独付费向作者索取\n\n# 我要支持作者\n\n如果该项目帮到了您，节省了您宝贵的开发时间，还请您不吝给项目点个免费的赞。\n\n当然了，如果您能请作者喝杯咖啡，哪怕喝瓶娃娃哈矿泉水，也是对作者最真诚的鼓励，打赏用户欢迎添加微信，后续交流前端相关问题。\n\n![](https://501351981.github.io/vue-office/examples/dist/static/wx.png)\n\n如果您有问题要咨询或者解决，可打赏咨询作者，自2024年12月起，可能不会及时处理issues内容，作者也要吃饭，也面临大龄程序员困境。\n\n## 为什么没有开放源码（打赏50+送源码）\n\n我们都知道，如果一件事情没有收益，那是很难长久的，特别是对于一个大龄程序员来说，花费大量的时间\"用爱发电\"对大家来说是非常值得尊敬的，而我感觉对家庭来说可能是不道德的，没有收益，没有正反馈，很难把这个库完善下去，我们也看到了，很多开源库已经多年没有更新了。为了后续开发出更好用的前端office文件预览库，本项目需要大家的支持！\n\n源码需付费向作者索要（_**打赏50**+_），打赏用户（无论多少）均可添加作者微信，交流该库或者前端领域话题，源码不得用于开源（这也是关闭源码的原因之一，有些人直接复制开源作为自己项目）。\n\n## 掘金小册\n\n凝聚作者近10年工作经验的掘金小册[《如何写出高质量的前端代码》](https://juejin.cn/book/7351005935306801188) 已经上线啦，欢迎前端同学关注，希望能够提升大家的前端编码水平。\n\n小册已售 890+份，收到前端同学的高度评价，对提升日常开发效率和质量，有非常大的帮助。","users":{}}