@lingshugroup/web-plus 1.0.36 → 1.0.37

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.
Files changed (36) hide show
  1. package/lib/index.css +1 -1
  2. package/lib/index.css.br +0 -0
  3. package/lib/index.css.gz +0 -0
  4. package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.cjs +1 -1
  5. package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.js +2 -2
  6. package/lib/packages/ls-components/components/preview_docx/Index.vue/index.cjs +1 -1
  7. package/lib/packages/ls-components/components/preview_docx/Index.vue/index.js +2 -2
  8. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.cjs +1 -1
  9. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js +42 -42
  10. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.br +0 -0
  11. package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.gz +0 -0
  12. package/lib/packages/ls-components/components/preview_image/Image.vue/index.cjs +1 -1
  13. package/lib/packages/ls-components/components/preview_image/Image.vue/index.js +2 -2
  14. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.cjs +1 -1
  15. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js +159 -149
  16. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.br +0 -0
  17. package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.gz +0 -0
  18. package/lib/packages/ls-components/components/preview_image/Index.vue/index.cjs +1 -1
  19. package/lib/packages/ls-components/components/preview_image/Index.vue/index.js +2 -2
  20. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.cjs +1 -1
  21. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js +44 -44
  22. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.br +0 -0
  23. package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.gz +0 -0
  24. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.cjs +1 -1
  25. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.js +4 -4
  26. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.cjs +1 -1
  27. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js +38 -38
  28. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.br +0 -0
  29. package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.gz +0 -0
  30. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.cjs +1 -1
  31. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.js +1 -1
  32. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.cjs +1 -1
  33. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js +41 -41
  34. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.br +0 -0
  35. package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.gz +0 -0
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-a8acaa71"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-d1962326"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
- import a from "./index2.js";
1
+ import o from "./index2.js";
2
2
  /* empty css */
3
- import o from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const e = /* @__PURE__ */ o(a, [["__scopeId", "data-v-a8acaa71"]]);
3
+ import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1962326"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty;var n=(s,u)=>L(s,"name",{value:u,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=,/* empty css */f=,/* empty css */M=,/* empty css */E=require("element-plus");;/* empty css */;/* empty css */;/* empty css */const _=,/* empty css */S=,/* empty css */w=e.defineComponent({name:"LSPreviewPdf"}),B=e.defineComponent({...w,name:"LSPreviewPdf",components:{LSPdf:f.default},inheritAttrs:!1,props:e.mergeModels(M.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(s,{emit:u}){const d=u,o=s,{zoomSize:p}=e.toRefs(o),r=e.useModel(s,"modelValue"),i=e.reactive({zoomSize:p,source:""}),v=C.useNamespace("preview").b(),c=e.ref(),g=e.ref("文件加载失败,请检查文件是否已损坏!");let l=null;e.watch(()=>r==null?void 0:r.value,t=>{t&&m()},{immediate:!0,deep:!0}),e.watch(()=>o.source,t=>{i.source=t},{immediate:!0,deep:!0});function m(){o.needLoading&&(c.value=E.ElLoading.service(o.loadingOption)),l=setTimeout(()=>{o.source||(_.ElMessage.error("文件加载超时,请检查文件是否存在!"),a(),r.value=!1),clearTimeout(l)},6e3)}n(m,"openLoading");const a=n(()=>{l&&clearTimeout(l),o.needLoading&&c.value&&c.value.close()},"closeLoading"),P=n(()=>{a(),d("loadComplete")},"loadComplete"),q=n(()=>{a(),console.error(g.value),d("loadError")},"loadError");return e.onBeforeMount(()=>{r.value&&m()}),e.onBeforeUnmount(()=>{a()}),(t,y)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(v))},[e.createVNode(f.default,e.mergeProps(e.unref(S.default)(e.unref(i),t.$attrs),{onLoadComplete:P,onLoadError:q}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=B;
1
+ "use strict";var q=Object.defineProperty;var n=(s,u)=>q(s,"name",{value:u,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=,/* empty css */f=,/* empty css */C=,/* empty css */M=require("element-plus");;/* empty css */;/* empty css */;/* empty css */const E=,/* empty css */_=,/* empty css */S=e.defineComponent({name:"LSPreviewPdf"}),w=e.defineComponent({...S,name:"LSPreviewPdf",components:{LSPdf:f.default},inheritAttrs:!1,props:e.mergeModels(C.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(s,{emit:u}){const d=u,o=s,{zoomSize:p}=e.toRefs(o),r=e.useModel(s,"modelValue"),i=e.reactive({zoomSize:p,source:""}),v=L.useNamespace("preview").b(),c=e.ref();let a=null;e.watch(()=>r==null?void 0:r.value,t=>{t&&m()},{immediate:!0,deep:!0}),e.watch(()=>o.source,t=>{i.source=t},{immediate:!0,deep:!0});function m(){o.needLoading&&(c.value=M.ElLoading.service(o.loadingOption)),a=setTimeout(()=>{o.source||(E.ElMessage.error("文件加载超时,请检查文件是否存在!"),l(),r.value=!1),clearTimeout(a)},6e3)}n(m,"openLoading");const l=n(()=>{a&&clearTimeout(a),o.needLoading&&c.value&&c.value.close()},"closeLoading"),g=n(()=>{l(),d("loadComplete")},"loadComplete"),P=n(()=>{l(),d("loadError")},"loadError");return e.onBeforeMount(()=>{r.value&&m()}),e.onBeforeUnmount(()=>{l()}),(t,h)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(v))},[e.createVNode(f.default,e.mergeProps(e.unref(_.default)(e.unref(i),t.$attrs),{onLoadComplete:g,onLoadError:P}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=w;
@@ -1,25 +1,25 @@
1
- var _ = Object.defineProperty;
2
- var t = (n, l) => _(n, "name", { value: l, configurable: !0 });
3
- import { defineComponent as L, mergeModels as p, toRefs as w, useModel as S, reactive as V, ref as f, watch as v, onBeforeMount as h, onBeforeUnmount as k, openBlock as z, createElementBlock as N, normalizeClass as T, unref as i, createVNode as y, mergeProps as A, createCommentVNode as x } from "vue";
4
- import { useNamespace as I } from "../../_hooks/useNamespace/index.js";
5
- import g from "../Pdf.vue/index.js";
6
- import { lsPreviewProp as O } from "../types/index.js";
7
- import { ElLoading as R } from "element-plus";
1
+ var B = Object.defineProperty;
2
+ var t = (n, l) => B(n, "name", { value: l, configurable: !0 });
3
+ import { defineComponent as g, mergeModels as p, toRefs as M, useModel as _, reactive as w, ref as S, watch as f, onBeforeMount as V, onBeforeUnmount as h, openBlock as k, createElementBlock as z, normalizeClass as N, unref as i, createVNode as T, mergeProps as y, createCommentVNode as A } from "vue";
4
+ import { useNamespace as x } from "../../_hooks/useNamespace/index.js";
5
+ import v from "../Pdf.vue/index.js";
6
+ import { lsPreviewProp as I } from "../types/index.js";
7
+ import { ElLoading as O } from "element-plus";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { ElMessage as U } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
12
- import $ from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
13
- const b = L({
11
+ import { ElMessage as R } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
12
+ import U from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
13
+ const $ = g({
14
14
  name: "LSPreviewPdf"
15
- }), ee = /* @__PURE__ */ L({
16
- ...b,
15
+ }), Z = /* @__PURE__ */ g({
16
+ ...$,
17
17
  name: "LSPreviewPdf",
18
18
  components: {
19
- LSPdf: g
19
+ LSPdf: v
20
20
  },
21
21
  inheritAttrs: !1,
22
- props: /* @__PURE__ */ p(O, {
22
+ props: /* @__PURE__ */ p(I, {
23
23
  modelValue: {
24
24
  type: Boolean
25
25
  },
@@ -27,12 +27,12 @@ const b = L({
27
27
  }),
28
28
  emits: /* @__PURE__ */ p(["loadComplete", "loadError"], ["update:modelValue"]),
29
29
  setup(n, { emit: l }) {
30
- const c = l, e = n, { zoomSize: C } = w(e), o = S(n, "modelValue"), d = V({
31
- zoomSize: C,
30
+ const d = l, e = n, { zoomSize: L } = M(e), o = _(n, "modelValue"), c = w({
31
+ zoomSize: L,
32
32
  source: ""
33
- }), P = I("preview").b(), m = f(), E = f("文件加载失败,请检查文件是否已损坏!");
33
+ }), C = x("preview").b(), s = S();
34
34
  let a = null;
35
- v(
35
+ f(
36
36
  () => o == null ? void 0 : o.value,
37
37
  (r) => {
38
38
  r && u();
@@ -41,10 +41,10 @@ const b = L({
41
41
  immediate: !0,
42
42
  deep: !0
43
43
  }
44
- ), v(
44
+ ), f(
45
45
  () => e.source,
46
46
  (r) => {
47
- d.source = r;
47
+ c.source = r;
48
48
  },
49
49
  {
50
50
  immediate: !0,
@@ -52,33 +52,33 @@ const b = L({
52
52
  }
53
53
  );
54
54
  function u() {
55
- e.needLoading && (m.value = R.service(e.loadingOption)), a = setTimeout(() => {
56
- e.source || (U.error("文件加载超时,请检查文件是否存在!"), s(), o.value = !1), clearTimeout(a);
55
+ e.needLoading && (s.value = O.service(e.loadingOption)), a = setTimeout(() => {
56
+ e.source || (R.error("文件加载超时,请检查文件是否存在!"), m(), o.value = !1), clearTimeout(a);
57
57
  }, 6e3);
58
58
  }
59
59
  t(u, "openLoading");
60
- const s = /* @__PURE__ */ t(() => {
61
- a && clearTimeout(a), e.needLoading && m.value && m.value.close();
62
- }, "closeLoading"), M = /* @__PURE__ */ t(() => {
63
- s(), c("loadComplete");
64
- }, "loadComplete"), B = /* @__PURE__ */ t(() => {
65
- s(), console.error(E.value), c("loadError");
60
+ const m = /* @__PURE__ */ t(() => {
61
+ a && clearTimeout(a), e.needLoading && s.value && s.value.close();
62
+ }, "closeLoading"), P = /* @__PURE__ */ t(() => {
63
+ m(), d("loadComplete");
64
+ }, "loadComplete"), E = /* @__PURE__ */ t(() => {
65
+ m(), d("loadError");
66
66
  }, "loadError");
67
- return h(() => {
67
+ return V(() => {
68
68
  o.value && u();
69
- }), k(() => {
70
- s();
71
- }), (r, q) => o.value ? (z(), N("div", {
69
+ }), h(() => {
70
+ m();
71
+ }), (r, j) => o.value ? (k(), z("div", {
72
72
  key: 0,
73
- class: T(i(P))
73
+ class: N(i(C))
74
74
  }, [
75
- y(g, A(i($)(i(d), r.$attrs), {
76
- onLoadComplete: M,
77
- onLoadError: B
75
+ T(v, y(i(U)(i(c), r.$attrs), {
76
+ onLoadComplete: P,
77
+ onLoadError: E
78
78
  }), null, 16)
79
- ], 2)) : x("", !0);
79
+ ], 2)) : A("", !0);
80
80
  }
81
81
  });
82
82
  export {
83
- ee as default
83
+ Z as default
84
84
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-4a956e8f"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-78a6f94e"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4a956e8f"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-78a6f94e"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var C=Object.defineProperty;var n=(s,u)=>C(s,"name",{value:u,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),M=,/* empty css */f=,/* empty css */E=,/* empty css */P=require("element-plus");;/* empty css */;/* empty css */;/* empty css */const _=,/* empty css */S=,/* empty css */w=e.defineComponent({name:"LSPreviewXlsx"}),x=e.defineComponent({...w,name:"LSPreviewXlsx",components:{LSXlsx:f.default},inheritAttrs:!1,props:e.mergeModels(E.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(s,{emit:u}){const i=u,o=s,{zoomSize:p}=e.toRefs(o),r=e.useModel(s,"modelValue"),d=e.reactive({zoomSize:p,source:""}),v=M.useNamespace("preview").b(),c=e.ref(),g=e.ref("文件加载失败,请检查文件是否已损坏!");let l=null;e.watch(()=>r==null?void 0:r.value,t=>{t&&m()},{immediate:!0,deep:!0}),e.watch(()=>o.source,t=>{d.source=t},{immediate:!0,deep:!0});function m(){o.needLoading&&(c.value=P.ElLoading.service(o.loadingOption)),l=setTimeout(()=>{o.source||(_.ElMessage.error("文件加载超时,请检查文件是否存在!"),a(),r.value=!1),clearTimeout(l)},6e3)}n(m,"openLoading");const a=n(()=>{l&&clearTimeout(l),o.needLoading&&c.value&&c.value.close()},"closeLoading"),q=n(()=>{a(),i("loadComplete")},"loadComplete"),L=n(()=>{a(),console.error(g.value),i("loadError")},"loadError");return e.onBeforeMount(()=>{r.value&&m()}),e.onBeforeUnmount(()=>{a()}),(t,h)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(v))},[e.createVNode(f.default,e.mergeProps(e.unref(S.default)(e.unref(d),t.$attrs),{onLoadComplete:q,onLoadError:L}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=x;
1
+ "use strict";var L=Object.defineProperty;var n=(s,u)=>L(s,"name",{value:u,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=,/* empty css */f=,/* empty css */M=,/* empty css */E=require("element-plus");;/* empty css */;/* empty css */;/* empty css */const P=,/* empty css */_=,/* empty css */S=e.defineComponent({name:"LSPreviewXlsx"}),w=e.defineComponent({...S,name:"LSPreviewXlsx",components:{LSXlsx:f.default},inheritAttrs:!1,props:e.mergeModels(M.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(s,{emit:u}){const i=u,o=s,{zoomSize:p}=e.toRefs(o),r=e.useModel(s,"modelValue"),d=e.reactive({zoomSize:p,source:""}),v=C.useNamespace("preview").b(),c=e.ref();let l=null;e.watch(()=>r==null?void 0:r.value,t=>{t&&m()},{immediate:!0,deep:!0}),e.watch(()=>o.source,t=>{d.source=t},{immediate:!0,deep:!0});function m(){o.needLoading&&(c.value=E.ElLoading.service(o.loadingOption)),l=setTimeout(()=>{o.source||(P.ElMessage.error("文件加载超时,请检查文件是否存在!"),a(),r.value=!1),clearTimeout(l)},6e3)}n(m,"openLoading");const a=n(()=>{l&&clearTimeout(l),o.needLoading&&c.value&&c.value.close()},"closeLoading"),g=n(()=>{a(),i("loadComplete")},"loadComplete"),q=n(()=>{a(),i("loadError")},"loadError");return e.onBeforeMount(()=>{r.value&&m()}),e.onBeforeUnmount(()=>{a()}),(t,B)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(v))},[e.createVNode(f.default,e.mergeProps(e.unref(_.default)(e.unref(d),t.$attrs),{onLoadComplete:g,onLoadError:q}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=w;
@@ -1,84 +1,84 @@
1
- var _ = Object.defineProperty;
2
- var t = (n, a) => _(n, "name", { value: a, configurable: !0 });
3
- import { defineComponent as L, mergeModels as p, toRefs as w, useModel as x, reactive as S, ref as f, watch as v, onBeforeMount as V, onBeforeUnmount as h, openBlock as k, createElementBlock as z, normalizeClass as N, unref as i, createVNode as T, mergeProps as X, createCommentVNode as y } from "vue";
4
- import { useNamespace as A } from "../../_hooks/useNamespace/index.js";
5
- import g from "../Xlsx.vue/index.js";
6
- import { lsPreviewProp as I } from "../types/index.js";
7
- import { ElLoading as O } from "element-plus";
1
+ var M = Object.defineProperty;
2
+ var t = (n, s) => M(n, "name", { value: s, configurable: !0 });
3
+ import { defineComponent as g, mergeModels as p, toRefs as P, useModel as _, reactive as w, ref as x, watch as f, onBeforeMount as S, onBeforeUnmount as V, openBlock as h, createElementBlock as k, normalizeClass as z, unref as i, createVNode as N, mergeProps as T, createCommentVNode as X } from "vue";
4
+ import { useNamespace as y } from "../../_hooks/useNamespace/index.js";
5
+ import v from "../Xlsx.vue/index.js";
6
+ import { lsPreviewProp as A } from "../types/index.js";
7
+ import { ElLoading as I } from "element-plus";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { ElMessage as R } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
12
- import U from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
13
- const $ = L({
11
+ import { ElMessage as O } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
12
+ import R from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
13
+ const U = g({
14
14
  name: "LSPreviewXlsx"
15
- }), ee = /* @__PURE__ */ L({
16
- ...$,
15
+ }), Z = /* @__PURE__ */ g({
16
+ ...U,
17
17
  name: "LSPreviewXlsx",
18
18
  components: {
19
- LSXlsx: g
19
+ LSXlsx: v
20
20
  },
21
21
  inheritAttrs: !1,
22
- props: /* @__PURE__ */ p(I, {
22
+ props: /* @__PURE__ */ p(A, {
23
23
  modelValue: {
24
24
  type: Boolean
25
25
  },
26
26
  modelModifiers: {}
27
27
  }),
28
28
  emits: /* @__PURE__ */ p(["loadComplete", "loadError"], ["update:modelValue"]),
29
- setup(n, { emit: a }) {
30
- const c = a, e = n, { zoomSize: C } = w(e), o = x(n, "modelValue"), u = S({
31
- zoomSize: C,
29
+ setup(n, { emit: s }) {
30
+ const c = s, e = n, { zoomSize: L } = P(e), o = _(n, "modelValue"), d = w({
31
+ zoomSize: L,
32
32
  source: ""
33
- }), E = A("preview").b(), m = f(), M = f("文件加载失败,请检查文件是否已损坏!");
34
- let s = null;
35
- v(
33
+ }), C = y("preview").b(), m = x();
34
+ let a = null;
35
+ f(
36
36
  () => o == null ? void 0 : o.value,
37
37
  (r) => {
38
- r && d();
38
+ r && u();
39
39
  },
40
40
  {
41
41
  immediate: !0,
42
42
  deep: !0
43
43
  }
44
- ), v(
44
+ ), f(
45
45
  () => e.source,
46
46
  (r) => {
47
- u.source = r;
47
+ d.source = r;
48
48
  },
49
49
  {
50
50
  immediate: !0,
51
51
  deep: !0
52
52
  }
53
53
  );
54
- function d() {
55
- e.needLoading && (m.value = O.service(e.loadingOption)), s = setTimeout(() => {
56
- e.source || (R.error("文件加载超时,请检查文件是否存在!"), l(), o.value = !1), clearTimeout(s);
54
+ function u() {
55
+ e.needLoading && (m.value = I.service(e.loadingOption)), a = setTimeout(() => {
56
+ e.source || (O.error("文件加载超时,请检查文件是否存在!"), l(), o.value = !1), clearTimeout(a);
57
57
  }, 6e3);
58
58
  }
59
- t(d, "openLoading");
59
+ t(u, "openLoading");
60
60
  const l = /* @__PURE__ */ t(() => {
61
- s && clearTimeout(s), e.needLoading && m.value && m.value.close();
62
- }, "closeLoading"), B = /* @__PURE__ */ t(() => {
61
+ a && clearTimeout(a), e.needLoading && m.value && m.value.close();
62
+ }, "closeLoading"), E = /* @__PURE__ */ t(() => {
63
63
  l(), c("loadComplete");
64
- }, "loadComplete"), P = /* @__PURE__ */ t(() => {
65
- l(), console.error(M.value), c("loadError");
64
+ }, "loadComplete"), B = /* @__PURE__ */ t(() => {
65
+ l(), c("loadError");
66
66
  }, "loadError");
67
- return V(() => {
68
- o.value && d();
69
- }), h(() => {
67
+ return S(() => {
68
+ o.value && u();
69
+ }), V(() => {
70
70
  l();
71
- }), (r, j) => o.value ? (k(), z("div", {
71
+ }), (r, b) => o.value ? (h(), k("div", {
72
72
  key: 0,
73
- class: N(i(E))
73
+ class: z(i(C))
74
74
  }, [
75
- T(g, X(i(U)(i(u), r.$attrs), {
76
- onLoadComplete: B,
77
- onLoadError: P
75
+ N(v, T(i(R)(i(d), r.$attrs), {
76
+ onLoadComplete: E,
77
+ onLoadError: B
78
78
  }), null, 16)
79
- ], 2)) : y("", !0);
79
+ ], 2)) : X("", !0);
80
80
  }
81
81
  });
82
82
  export {
83
- ee as default
83
+ Z as default
84
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingshugroup/web-plus",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "零数科技前端UI组件库(Vue3)",
5
5
  "type": "module",
6
6
  "main": "./lib/index/index.cjs",