@flyfish-group/file-viewer3 1.0.3 → 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/README.md +100 -104
- package/dist/components/ImageViewer.js +144 -144
- package/dist/components/MarkdownViewer.js +2 -1
- package/dist/components/PdfView.js +8 -8
- package/dist/components/PptxRender.js +10790 -10110
- package/dist/components/XlsxTable.js +18904 -17240
- package/dist/components/docx-preview.js +1600 -1427
- package/dist/components/index.js +4133 -1056
- package/dist/index.d.ts +9 -8
- package/dist/index.umd.js +201 -135
- package/dist/style.css +13 -13
- package/dist/worker/xlsx.worker.js +1 -1
- package/package.json +17 -4
- package/.vscode/extensions.json +0 -3
- package/dist/favicon.ico +0 -0
|
@@ -1287,7 +1287,8 @@ class pt {
|
|
|
1287
1287
|
default: {
|
|
1288
1288
|
const l = s;
|
|
1289
1289
|
(i = (r = this.defaults.extensions) == null ? void 0 : r.childTokens) != null && i[l.type] ? this.defaults.extensions.childTokens[l.type].forEach((o) => {
|
|
1290
|
-
|
|
1290
|
+
const p = l[o].flat(1 / 0);
|
|
1291
|
+
n = n.concat(this.walkTokens(p, e));
|
|
1291
1292
|
}) : l.tokens && (n = n.concat(this.walkTokens(l.tokens, e)));
|
|
1292
1293
|
}
|
|
1293
1294
|
}
|
|
@@ -43,7 +43,7 @@ var Je = (N, w, t) => new Promise((p, y) => {
|
|
|
43
43
|
}, g = (e) => e.done ? p(e.value) : Promise.resolve(e.value).then(k, u);
|
|
44
44
|
g((t = t.apply(N, w)).next());
|
|
45
45
|
});
|
|
46
|
-
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode
|
|
46
|
+
import { defineComponent, ref, onMounted, openBlock, createElementBlock, createElementVNode } from "vue";
|
|
47
47
|
import { a as getAugmentedNamespace, c as commonjsGlobal } from "./_commonjsHelpers.js";
|
|
48
48
|
import { c as commonjsRequire } from "./_commonjs-dynamic-modules.js";
|
|
49
49
|
import { r as refWorker } from "./worker-ref.js";
|
|
@@ -22539,12 +22539,7 @@ const pdf = "", PDFWorker = {
|
|
|
22539
22539
|
create() {
|
|
22540
22540
|
return refWorker("pdf.worker.js").defaults(() => new Worker(new URL("" + new URL("../worker/pdf.worker.js", import.meta.url).href, self.location), { type: "module" }));
|
|
22541
22541
|
}
|
|
22542
|
-
},
|
|
22543
|
-
id: "viewer",
|
|
22544
|
-
class: "pdfViewer"
|
|
22545
|
-
}, null, -1)), _hoisted_4 = [
|
|
22546
|
-
_hoisted_3
|
|
22547
|
-
], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22542
|
+
}, _hoisted_1 = { class: "container" }, _hoisted_2 = { class: "pdf_down" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22548
22543
|
__name: "PdfView",
|
|
22549
22544
|
props: {
|
|
22550
22545
|
data: {}
|
|
@@ -22621,7 +22616,12 @@ const pdf = "", PDFWorker = {
|
|
|
22621
22616
|
ref_key: "container",
|
|
22622
22617
|
ref: t,
|
|
22623
22618
|
class: "pdf-wrapper"
|
|
22624
|
-
},
|
|
22619
|
+
}, g[2] || (g[2] = [
|
|
22620
|
+
createElementVNode("div", {
|
|
22621
|
+
id: "viewer",
|
|
22622
|
+
class: "pdfViewer"
|
|
22623
|
+
}, null, -1)
|
|
22624
|
+
]), 512)
|
|
22625
22625
|
]));
|
|
22626
22626
|
}
|
|
22627
22627
|
}), PdfView_vue_vue_type_style_index_0_scoped_9bad3887_lang = "", PdfView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9bad3887"]]);
|