@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.
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js +42 -42
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_docx/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_image/Image.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Image.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js +159 -149
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_image/Image.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_image/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js +44 -44
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_image/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index.js +4 -4
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js +38 -38
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_pdf/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js +41 -41
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -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-
|
|
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
|
|
1
|
+
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
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
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
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
|
|
2
|
-
var t = (n, l) =>
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import
|
|
6
|
-
import { lsPreviewProp as
|
|
7
|
-
import { ElLoading as
|
|
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
|
|
12
|
-
import
|
|
13
|
-
const
|
|
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
|
-
}),
|
|
16
|
-
|
|
15
|
+
}), Z = /* @__PURE__ */ g({
|
|
16
|
+
...$,
|
|
17
17
|
name: "LSPreviewPdf",
|
|
18
18
|
components: {
|
|
19
|
-
LSPdf:
|
|
19
|
+
LSPdf: v
|
|
20
20
|
},
|
|
21
21
|
inheritAttrs: !1,
|
|
22
|
-
props: /* @__PURE__ */ p(
|
|
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
|
|
31
|
-
zoomSize:
|
|
30
|
+
const d = l, e = n, { zoomSize: L } = M(e), o = _(n, "modelValue"), c = w({
|
|
31
|
+
zoomSize: L,
|
|
32
32
|
source: ""
|
|
33
|
-
}),
|
|
33
|
+
}), C = x("preview").b(), s = S();
|
|
34
34
|
let a = null;
|
|
35
|
-
|
|
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
|
-
),
|
|
44
|
+
), f(
|
|
45
45
|
() => e.source,
|
|
46
46
|
(r) => {
|
|
47
|
-
|
|
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 && (
|
|
56
|
-
e.source || (
|
|
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
|
|
61
|
-
a && clearTimeout(a), e.needLoading &&
|
|
62
|
-
}, "closeLoading"),
|
|
63
|
-
|
|
64
|
-
}, "loadComplete"),
|
|
65
|
-
|
|
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
|
|
67
|
+
return V(() => {
|
|
68
68
|
o.value && u();
|
|
69
|
-
}),
|
|
70
|
-
|
|
71
|
-
}), (r,
|
|
69
|
+
}), h(() => {
|
|
70
|
+
m();
|
|
71
|
+
}), (r, j) => o.value ? (k(), z("div", {
|
|
72
72
|
key: 0,
|
|
73
|
-
class:
|
|
73
|
+
class: N(i(C))
|
|
74
74
|
}, [
|
|
75
|
-
|
|
76
|
-
onLoadComplete:
|
|
77
|
-
onLoadError:
|
|
75
|
+
T(v, y(i(U)(i(c), r.$attrs), {
|
|
76
|
+
onLoadComplete: P,
|
|
77
|
+
onLoadError: E
|
|
78
78
|
}), null, 16)
|
|
79
|
-
], 2)) :
|
|
79
|
+
], 2)) : A("", !0);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
Z as default
|
|
84
84
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
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
|
|
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
|
|
2
|
-
var t = (n,
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import
|
|
6
|
-
import { lsPreviewProp as
|
|
7
|
-
import { ElLoading as
|
|
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
|
|
12
|
-
import
|
|
13
|
-
const
|
|
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
|
-
}),
|
|
16
|
-
|
|
15
|
+
}), Z = /* @__PURE__ */ g({
|
|
16
|
+
...U,
|
|
17
17
|
name: "LSPreviewXlsx",
|
|
18
18
|
components: {
|
|
19
|
-
LSXlsx:
|
|
19
|
+
LSXlsx: v
|
|
20
20
|
},
|
|
21
21
|
inheritAttrs: !1,
|
|
22
|
-
props: /* @__PURE__ */ p(
|
|
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:
|
|
30
|
-
const c =
|
|
31
|
-
zoomSize:
|
|
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
|
-
}),
|
|
34
|
-
let
|
|
35
|
-
|
|
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 &&
|
|
38
|
+
r && u();
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
immediate: !0,
|
|
42
42
|
deep: !0
|
|
43
43
|
}
|
|
44
|
-
),
|
|
44
|
+
), f(
|
|
45
45
|
() => e.source,
|
|
46
46
|
(r) => {
|
|
47
|
-
|
|
47
|
+
d.source = r;
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
immediate: !0,
|
|
51
51
|
deep: !0
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
function
|
|
55
|
-
e.needLoading && (m.value =
|
|
56
|
-
e.source || (
|
|
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(
|
|
59
|
+
t(u, "openLoading");
|
|
60
60
|
const l = /* @__PURE__ */ t(() => {
|
|
61
|
-
|
|
62
|
-
}, "closeLoading"),
|
|
61
|
+
a && clearTimeout(a), e.needLoading && m.value && m.value.close();
|
|
62
|
+
}, "closeLoading"), E = /* @__PURE__ */ t(() => {
|
|
63
63
|
l(), c("loadComplete");
|
|
64
|
-
}, "loadComplete"),
|
|
65
|
-
l(),
|
|
64
|
+
}, "loadComplete"), B = /* @__PURE__ */ t(() => {
|
|
65
|
+
l(), c("loadError");
|
|
66
66
|
}, "loadError");
|
|
67
|
-
return
|
|
68
|
-
o.value &&
|
|
69
|
-
}),
|
|
67
|
+
return S(() => {
|
|
68
|
+
o.value && u();
|
|
69
|
+
}), V(() => {
|
|
70
70
|
l();
|
|
71
|
-
}), (r,
|
|
71
|
+
}), (r, b) => o.value ? (h(), k("div", {
|
|
72
72
|
key: 0,
|
|
73
|
-
class:
|
|
73
|
+
class: z(i(C))
|
|
74
74
|
}, [
|
|
75
|
-
|
|
76
|
-
onLoadComplete:
|
|
77
|
-
onLoadError:
|
|
75
|
+
N(v, T(i(R)(i(d), r.$attrs), {
|
|
76
|
+
onLoadComplete: E,
|
|
77
|
+
onLoadError: B
|
|
78
78
|
}), null, 16)
|
|
79
|
-
], 2)) :
|
|
79
|
+
], 2)) : X("", !0);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
Z as default
|
|
84
84
|
};
|
|
Binary file
|
|
Binary file
|