file-viewer3 1.0.1 → 1.0.5
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/dist/{ImageViewer-3aabb7c7.mjs → components/ImageViewer.js} +1 -1
- package/dist/{MarkdownViewer-11f6e7ed.mjs → components/MarkdownViewer.js} +1 -1
- package/dist/{PdfView-c5946833.mjs → components/PdfView.js} +11 -9
- package/dist/{PptxRender-f90c00c0.mjs → components/PptxRender.js} +127 -125
- package/dist/{XlsxTable-22ea834f.mjs → components/XlsxTable.js} +5210 -5207
- package/dist/{docx-preview.min-31358ab2.mjs → components/docx-preview.min.js} +2 -2
- package/dist/{index-59c602ca.mjs → components/index.js} +6 -6
- package/dist/components/worker-ref.js +21 -0
- package/dist/{main.mjs → index.mjs} +1 -1
- package/dist/{main.umd.js → index.umd.js} +12 -12
- package/dist/src/package/common/worker-ref.d.ts +12 -0
- package/dist/src/package/vendors/pdf/worker/index.d.ts +4 -0
- package/dist/src/package/vendors/pptx/worker/index.d.ts +4 -0
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -0
- package/dist/style.css +2 -2
- package/package.json +3 -3
- package/.vscode/extensions.json +0 -3
- /package/dist/{_commonjs-dynamic-modules-bed80856.mjs → components/_commonjs-dynamic-modules.js} +0 -0
- /package/dist/{_commonjsHelpers-92157f1b.mjs → components/_commonjsHelpers.js} +0 -0
- /package/dist/{assets/pdf.worker-909112bf.js → worker/pdf.worker.js} +0 -0
- /package/dist/{assets/pptx.worker-762bd091.js → worker/pptx.worker.js} +0 -0
- /package/dist/{assets/xlsx.worker-b50adc35.js → worker/xlsx.worker.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Ee, ref as Ve, watch as yt, nextTick as wt, onMounted as Fe, onUnmounted as Me, openBlock as ft, createElementBlock as St, renderSlot as Ye, computed as We, createBlock as Xe, unref as Tt, withCtx as qe, Fragment as He, renderList as Ue } from "vue";
|
|
2
|
-
import { _ as Be } from "./index
|
|
2
|
+
import { _ as Be } from "./index.js";
|
|
3
3
|
/*!
|
|
4
4
|
* Viewer.js v1.11.3
|
|
5
5
|
* https://fengyuanchen.github.io/viewerjs
|
|
@@ -2,7 +2,7 @@ var Y = Object.defineProperty;
|
|
|
2
2
|
var ee = (o, n, t) => n in o ? Y(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t;
|
|
3
3
|
var O = (o, n, t) => (ee(o, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
4
|
import { defineComponent as te, computed as ne, openBlock as ie, createElementBlock as se, unref as re } from "vue";
|
|
5
|
-
import { _ as le } from "./index
|
|
5
|
+
import { _ as le } from "./index.js";
|
|
6
6
|
function F() {
|
|
7
7
|
return {
|
|
8
8
|
async: !1,
|
|
@@ -17,9 +17,10 @@ var Ue = (W, E, l) => (Fr(W, E, "read from private field"), l ? l.call(W) : E.ge
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode, pushScopeId, popScopeId } from "vue";
|
|
20
|
-
import { a as getAugmentedNamespace, c as commonjsGlobal } from "./_commonjsHelpers
|
|
21
|
-
import { c as commonjsRequire } from "./_commonjs-dynamic-modules
|
|
22
|
-
import {
|
|
20
|
+
import { a as getAugmentedNamespace, c as commonjsGlobal } from "./_commonjsHelpers.js";
|
|
21
|
+
import { c as commonjsRequire } from "./_commonjs-dynamic-modules.js";
|
|
22
|
+
import { r as refWorker } from "./worker-ref.js";
|
|
23
|
+
import { _ as _export_sfc } from "./index.js";
|
|
23
24
|
var pdfExports$1 = {}, pdf$1 = {
|
|
24
25
|
get exports() {
|
|
25
26
|
return pdfExports$1;
|
|
@@ -21566,10 +21567,11 @@ var pdfExports = requirePdf(), pdf_viewerExports = {}, pdf_viewer = {
|
|
|
21566
21567
|
})()
|
|
21567
21568
|
));
|
|
21568
21569
|
})(pdf_viewer);
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
}
|
|
21572
|
-
|
|
21570
|
+
const pdf = "", PDFWorker = {
|
|
21571
|
+
create() {
|
|
21572
|
+
return refWorker("pptx.worker.js").defaults(() => new Worker(new URL("" + new URL("../worker/pdf.worker.js", import.meta.url).href, self.location), { type: "module" }));
|
|
21573
|
+
}
|
|
21574
|
+
}, _withScopeId = (W) => (pushScopeId("data-v-47ad7fe7"), W = W(), popScopeId(), W), _hoisted_1 = { class: "container" }, _hoisted_2 = { class: "pdf_down" }, _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
21573
21575
|
id: "viewer",
|
|
21574
21576
|
class: "pdfViewer"
|
|
21575
21577
|
}, null, -1)), _hoisted_4 = [
|
|
@@ -21588,7 +21590,7 @@ const pdf = "", _withScopeId = (W) => (pushScopeId("data-v-4396b257"), W = W(),
|
|
|
21588
21590
|
//pdf放大系数
|
|
21589
21591
|
pdf_scale: 1
|
|
21590
21592
|
};
|
|
21591
|
-
!pdfExports.GlobalWorkerOptions.workerPort && typeof window < "u" && "Worker" in window && (pdfExports.GlobalWorkerOptions.workerPort =
|
|
21593
|
+
!pdfExports.GlobalWorkerOptions.workerPort && typeof window < "u" && "Worker" in window && (pdfExports.GlobalWorkerOptions.workerPort = PDFWorker.create()), (() => {
|
|
21592
21594
|
async function k() {
|
|
21593
21595
|
if (!l.value)
|
|
21594
21596
|
return;
|
|
@@ -21649,7 +21651,7 @@ const pdf = "", _withScopeId = (W) => (pushScopeId("data-v-4396b257"), W = W(),
|
|
|
21649
21651
|
}, _hoisted_4, 512)
|
|
21650
21652
|
]));
|
|
21651
21653
|
}
|
|
21652
|
-
}),
|
|
21654
|
+
}), PdfView_vue_vue_type_style_index_0_scoped_47ad7fe7_lang = "", PdfView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-47ad7fe7"]]);
|
|
21653
21655
|
export {
|
|
21654
21656
|
PdfView as default
|
|
21655
21657
|
};
|