file-viewer3 1.0.6 → 1.0.8

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3
+ }
package/README.md CHANGED
@@ -139,6 +139,8 @@ var context = {
139
139
 
140
140
 
141
141
  ## 更新日志
142
+ #### [feature]`v1.0.7` `2022年4月24日`
143
+ 1. 修复基于依赖的项目,无法预览pdf的问题
142
144
 
143
145
  #### [feature]`v1.0.6` `2022年4月23日`
144
146
 
@@ -1878,7 +1878,7 @@ const ts = ["src"], es = /* @__PURE__ */ Ee({
1878
1878
  const t = e, i = We(() => t.image ? [{ src: t.image, index: 0 }] : []);
1879
1879
  return (r, n) => (ft(), Xe(Tt(Qa), {
1880
1880
  images: Tt(i),
1881
- style: { height: "800px" }
1881
+ style: { height: "100%" }
1882
1882
  }, {
1883
1883
  default: qe(() => [
1884
1884
  (ft(!0), St(He, null, Ue(Tt(i), (a) => (ft(), St("img", {
@@ -1892,7 +1892,7 @@ const ts = ["src"], es = /* @__PURE__ */ Ee({
1892
1892
  }, 8, ["images"]));
1893
1893
  }
1894
1894
  });
1895
- const ns = /* @__PURE__ */ Be(es, [["__scopeId", "data-v-b4c7568a"]]);
1895
+ const ns = /* @__PURE__ */ Be(es, [["__scopeId", "data-v-b0f61c51"]]);
1896
1896
  export {
1897
1897
  ns as default
1898
1898
  };
@@ -21569,7 +21569,7 @@ var pdfExports = requirePdf(), pdf_viewerExports = {}, pdf_viewer = {
21569
21569
  })(pdf_viewer);
21570
21570
  const pdf = "", PDFWorker = {
21571
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" }));
21572
+ return refWorker("pdf.worker.js").defaults(() => new Worker(new URL("" + new URL("../worker/pdf.worker.js", import.meta.url).href, self.location), { type: "module" }));
21573
21573
  }
21574
21574
  }, _withScopeId = (W) => (pushScopeId("data-v-9bad3887"), W = W(), popScopeId(), W), _hoisted_1 = { class: "container" }, _hoisted_2 = { class: "pdf_down" }, _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
21575
21575
  id: "viewer",