@lingshugroup/web-plus 2.4.6 → 2.4.9
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/button/Button.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/button/Button.vue/index.js +2 -2
- package/lib/packages/ls-components/components/button/Button.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/button/Button.vue/index2.js +19 -19
- package/lib/packages/ls-components/components/button/Button.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/button/Button.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/cropper/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/cropper/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/cropper/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/cropper/Index.vue/index2.js +23 -23
- package/lib/packages/ls-components/components/cropper/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/cropper/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/layout/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/layout/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/layout/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/layout/Index.vue/index2.js +42 -42
- package/lib/packages/ls-components/components/layout/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/layout/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/menu/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.gz +0 -0
- 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 +38 -32
- 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/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/Index.vue/index.js +1 -1
- 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 -39
- 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 +2 -2
- 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 +41 -36
- 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 +3 -3
- 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 +34 -29
- 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
|
@@ -1,58 +1,64 @@
|
|
|
1
1
|
var h = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var r = (t, l) => h(t, "name", { value: l, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as y, mergeModels as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { lsPreviewProp as
|
|
8
|
-
import { ElWatermark as
|
|
4
|
+
import { defineComponent as y, mergeModels as D, useModel as N, createElementBlock as S, createCommentVNode as x, openBlock as d, normalizeClass as B, unref as o, createBlock as E, createElementVNode as M, mergeProps as i, withCtx as O, createVNode as $, renderSlot as A } from "vue";
|
|
5
|
+
import c from "../Docx.vue/index.js";
|
|
6
|
+
import W from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
+
import { lsPreviewProp as b } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as z } from "../../../../../node_modules/.pnpm/element-plus@2.11.8_vue@3.5.18_typescript@5.9.3_/node_modules/element-plus/es/components/watermark/index/index.js";
|
|
9
9
|
import L from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
-
const
|
|
10
|
+
const H = { class: "ls-preview-extra" }, T = y({
|
|
11
11
|
name: "LSPreviewDocx"
|
|
12
|
-
}),
|
|
13
|
-
...
|
|
12
|
+
}), R = /* @__PURE__ */ y({
|
|
13
|
+
...T,
|
|
14
14
|
name: "LSPreviewDocx",
|
|
15
15
|
components: {
|
|
16
|
-
LSDocx:
|
|
16
|
+
LSDocx: c
|
|
17
17
|
},
|
|
18
18
|
inheritAttrs: !1,
|
|
19
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ D(b, {
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: Boolean
|
|
22
22
|
},
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
f(),
|
|
29
|
-
}, "loadComplete"),
|
|
30
|
-
f(),
|
|
25
|
+
emits: /* @__PURE__ */ D(["loadComplete", "loadError", "onDownload"], ["update:modelValue"]),
|
|
26
|
+
setup(t, { emit: l }) {
|
|
27
|
+
const n = l, p = t, s = N(t, "modelValue"), { comClass: P, defAttrs: u, closeLoading: f, watermarkStyle: V } = W(p, s), w = /* @__PURE__ */ r(() => {
|
|
28
|
+
f(), n("loadComplete");
|
|
29
|
+
}, "loadComplete"), k = /* @__PURE__ */ r(() => {
|
|
30
|
+
f(), n("loadError");
|
|
31
31
|
}, "loadError");
|
|
32
32
|
function _(e) {
|
|
33
|
-
var m,
|
|
34
|
-
p.hideOnClickModal && (e.target === e.currentTarget || (
|
|
33
|
+
var m, a, C, g;
|
|
34
|
+
p.hideOnClickModal && (e.target === e.currentTarget || (a = (m = e == null ? void 0 : e.target) == null ? void 0 : m.className) != null && a.includes && ((g = (C = e == null ? void 0 : e.target) == null ? void 0 : C.className) != null && g.includes("docx-wrapper"))) && (s.value = !1);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
r(_, "closePreview");
|
|
37
|
+
function v(e) {
|
|
38
|
+
n("onDownload", e);
|
|
39
|
+
}
|
|
40
|
+
return r(v, "onDownload"), (e, m) => {
|
|
41
|
+
const a = z;
|
|
42
|
+
return s.value ? (d(), S("div", {
|
|
39
43
|
key: 0,
|
|
40
44
|
class: B(o(P)),
|
|
41
45
|
onClick: _
|
|
42
46
|
}, [
|
|
43
|
-
e.showWatermark ? (
|
|
44
|
-
default:
|
|
45
|
-
$(
|
|
46
|
-
onLoadComplete:
|
|
47
|
-
onLoadError:
|
|
47
|
+
e.showWatermark ? (d(), E(a, i({ key: 0 }, e.watermarkOption, { style: o(V) }), {
|
|
48
|
+
default: O(() => [
|
|
49
|
+
$(c, i(o(L)(o(u), e.$attrs), {
|
|
50
|
+
onLoadComplete: w,
|
|
51
|
+
onLoadError: k,
|
|
52
|
+
onOnDownload: v
|
|
48
53
|
}), null, 16)
|
|
49
54
|
]),
|
|
50
55
|
_: 1
|
|
51
|
-
}, 16, ["style"])) : (
|
|
52
|
-
onLoadComplete:
|
|
53
|
-
onLoadError:
|
|
56
|
+
}, 16, ["style"])) : (d(), E(c, i({ key: 1 }, o(L)(o(u), e.$attrs), {
|
|
57
|
+
onLoadComplete: w,
|
|
58
|
+
onLoadError: k,
|
|
59
|
+
onOnDownload: v
|
|
54
60
|
}), null, 16)),
|
|
55
|
-
M("div",
|
|
61
|
+
M("div", H, [
|
|
56
62
|
A(e.$slots, "extra", {}, void 0, !0)
|
|
57
63
|
])
|
|
58
64
|
], 2)) : x("", !0);
|
|
@@ -60,5 +66,5 @@ const z = { class: "ls-preview-extra" }, H = y({
|
|
|
60
66
|
}
|
|
61
67
|
});
|
|
62
68
|
export {
|
|
63
|
-
|
|
69
|
+
R as default
|
|
64
70
|
};
|
|
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-99bcf22b"]]);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 _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-99bcf22b"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var C=Object.defineProperty;var t=(r,l)=>C(r,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),d=/* empty css */g=/* empty css */h=/* empty css */y=/* empty css */f=/* empty css */P={class:"ls-preview-extra"},S=e.defineComponent({name:"LSPreviewImage"}),_=e.defineComponent({...S,name:"LSPreviewImage",components:{LSImage:d.default},inheritAttrs:!1,props:e.mergeModels(h.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError","onDownload"],["update:modelValue"]),setup(r,{emit:l}){const n=l,a=r,s=e.useModel(r,"modelValue"),{comClass:w,defAttrs:i,closeLoading:m,watermarkStyle:k}=g.default(a,s),c=t(()=>{m(),n("loadComplete")},"loadComplete"),u=t(()=>{m(),n("loadError")},"loadError");function p(o){n("onDownload",o)}return t(p,"onDownload"),(o,E)=>{const v=y.ElWatermark;return s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(w))},[o.showWatermark?(e.openBlock(),e.createBlock(v,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(k)}),{default:e.withCtx(()=>[e.createVNode(d.default,e.mergeProps(e.unref(f.default)(e.unref(i),o.$attrs),{"hide-on-click-modal":a.hideOnClickModal,onLoadComplete:c,onLoadError:u,onOnDownload:p}),{viewer:e.withCtx(()=>[e.renderSlot(o.$slots,"viewer",{},void 0,!0)]),_:3},16,["hide-on-click-modal"])]),_:3},16,["style"])):(e.openBlock(),e.createBlock(d.default,e.mergeProps({key:1},e.unref(f.default)(e.unref(i),o.$attrs),{"hide-on-click-modal":a.hideOnClickModal,onLoadComplete:c,onLoadError:u,onOnDownload:p}),{viewer:e.withCtx(()=>[e.renderSlot(o.$slots,"viewer",{},void 0,!0)]),_:3},16,["hide-on-click-modal"])),e.createElementVNode("div",P,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])],2)):e.createCommentVNode("",!0)}}});exports.default=_;
|
|
@@ -1,71 +1,76 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var t = (r, l) => _(r, "name", { value: l, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { lsPreviewProp as
|
|
8
|
-
import { ElWatermark as
|
|
9
|
-
import
|
|
10
|
-
const A = { class: "ls-preview-extra" }, W =
|
|
4
|
+
import { defineComponent as L, mergeModels as C, useModel as P, createElementBlock as D, createCommentVNode as M, openBlock as m, normalizeClass as O, unref as o, createBlock as h, createElementVNode as S, mergeProps as d, withCtx as i, createVNode as $, renderSlot as s } from "vue";
|
|
5
|
+
import c from "../Image.vue/index.js";
|
|
6
|
+
import B from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
+
import { lsPreviewProp as I } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as N } from "../../../../../node_modules/.pnpm/element-plus@2.11.8_vue@3.5.18_typescript@5.9.3_/node_modules/element-plus/es/components/watermark/index/index.js";
|
|
9
|
+
import E from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
+
const A = { class: "ls-preview-extra" }, W = L({
|
|
11
11
|
name: "LSPreviewImage"
|
|
12
|
-
}),
|
|
12
|
+
}), Q = /* @__PURE__ */ L({
|
|
13
13
|
...W,
|
|
14
14
|
name: "LSPreviewImage",
|
|
15
15
|
components: {
|
|
16
|
-
LSImage:
|
|
16
|
+
LSImage: c
|
|
17
17
|
},
|
|
18
18
|
inheritAttrs: !1,
|
|
19
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ C(I, {
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: Boolean
|
|
22
22
|
},
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(r, { emit:
|
|
27
|
-
const
|
|
28
|
-
u(),
|
|
29
|
-
}, "loadComplete"), f = /* @__PURE__ */
|
|
30
|
-
u(),
|
|
25
|
+
emits: /* @__PURE__ */ C(["loadComplete", "loadError", "onDownload"], ["update:modelValue"]),
|
|
26
|
+
setup(r, { emit: l }) {
|
|
27
|
+
const a = l, n = r, p = P(r, "modelValue"), { comClass: g, defAttrs: w, closeLoading: u, watermarkStyle: y } = B(n, p), k = /* @__PURE__ */ t(() => {
|
|
28
|
+
u(), a("loadComplete");
|
|
29
|
+
}, "loadComplete"), f = /* @__PURE__ */ t(() => {
|
|
30
|
+
u(), a("loadError");
|
|
31
31
|
}, "loadError");
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
function v(e) {
|
|
33
|
+
a("onDownload", e);
|
|
34
|
+
}
|
|
35
|
+
return t(v, "onDownload"), (e, b) => {
|
|
36
|
+
const V = N;
|
|
37
|
+
return p.value ? (m(), D("div", {
|
|
35
38
|
key: 0,
|
|
36
|
-
class:
|
|
39
|
+
class: O(o(g))
|
|
37
40
|
}, [
|
|
38
|
-
e.showWatermark ? (m(),
|
|
39
|
-
default:
|
|
40
|
-
|
|
41
|
-
"hide-on-click-modal":
|
|
42
|
-
onLoadComplete:
|
|
43
|
-
onLoadError: f
|
|
41
|
+
e.showWatermark ? (m(), h(V, d({ key: 0 }, e.watermarkOption, { style: o(y) }), {
|
|
42
|
+
default: i(() => [
|
|
43
|
+
$(c, d(o(E)(o(w), e.$attrs), {
|
|
44
|
+
"hide-on-click-modal": n.hideOnClickModal,
|
|
45
|
+
onLoadComplete: k,
|
|
46
|
+
onLoadError: f,
|
|
47
|
+
onOnDownload: v
|
|
44
48
|
}), {
|
|
45
|
-
viewer:
|
|
46
|
-
|
|
49
|
+
viewer: i(() => [
|
|
50
|
+
s(e.$slots, "viewer", {}, void 0, !0)
|
|
47
51
|
]),
|
|
48
52
|
_: 3
|
|
49
53
|
}, 16, ["hide-on-click-modal"])
|
|
50
54
|
]),
|
|
51
55
|
_: 3
|
|
52
|
-
}, 16, ["style"])) : (m(),
|
|
53
|
-
"hide-on-click-modal":
|
|
54
|
-
onLoadComplete:
|
|
55
|
-
onLoadError: f
|
|
56
|
+
}, 16, ["style"])) : (m(), h(c, d({ key: 1 }, o(E)(o(w), e.$attrs), {
|
|
57
|
+
"hide-on-click-modal": n.hideOnClickModal,
|
|
58
|
+
onLoadComplete: k,
|
|
59
|
+
onLoadError: f,
|
|
60
|
+
onOnDownload: v
|
|
56
61
|
}), {
|
|
57
|
-
viewer:
|
|
58
|
-
|
|
62
|
+
viewer: i(() => [
|
|
63
|
+
s(e.$slots, "viewer", {}, void 0, !0)
|
|
59
64
|
]),
|
|
60
65
|
_: 3
|
|
61
66
|
}, 16, ["hide-on-click-modal"])),
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
S("div", A, [
|
|
68
|
+
s(e.$slots, "extra", {}, void 0, !0)
|
|
64
69
|
])
|
|
65
70
|
], 2)) : M("", !0);
|
|
66
71
|
};
|
|
67
72
|
}
|
|
68
73
|
});
|
|
69
74
|
export {
|
|
70
|
-
|
|
75
|
+
Q as default
|
|
71
76
|
};
|
|
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-3e465aa0"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const _ = /* @__PURE__ */
|
|
3
|
+
import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3e465aa0"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var C=Object.defineProperty;var r=(t,l)=>C(t,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),s=/* empty css */g=/* empty css */y=/* empty css */_=/* empty css */p=/* empty css */E={class:"ls-preview-extra"},L=e.defineComponent({name:"LSPreviewPdf"}),q=e.defineComponent({...L,name:"LSPreviewPdf",components:{LSPdf:s.default},inheritAttrs:!1,props:e.mergeModels(y.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError","onDownload"],["update:modelValue"]),setup(t,{emit:l}){const n=l,d=t,a=e.useModel(t,"modelValue"),{comClass:w,defAttrs:i,closeLoading:u,watermarkStyle:k}=g.default(d,a),c=r(()=>{u(),n("loadComplete")},"loadComplete"),m=r(()=>{u(),n("loadError")},"loadError");function v(o){d.hideOnClickModal&&o.target===o.currentTarget&&(a.value=!1)}r(v,"closePreview");function f(o){n("onDownload",o)}return r(f,"onDownload"),(o,B)=>{const P=_.ElWatermark;return a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(w)),onClick:v},[o.showWatermark?(e.openBlock(),e.createBlock(P,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(k)}),{default:e.withCtx(()=>[e.createVNode(s.default,e.mergeProps(e.unref(p.default)(e.unref(i),o.$attrs),{onLoadComplete:c,onLoadError:m,onOnDownload:f}),null,16)]),_:1},16,["style"])):(e.openBlock(),e.createBlock(s.default,e.mergeProps({key:1},e.unref(p.default)(e.unref(i),o.$attrs),{onLoadComplete:c,onLoadError:m,onOnDownload:f}),null,16)),e.createElementVNode("div",E,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])],2)):e.createCommentVNode("",!0)}}});exports.default=q;
|
|
@@ -1,64 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var r = (t, l) => _(t, "name", { value: l, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { lsPreviewProp as
|
|
8
|
-
import { ElWatermark as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
4
|
+
import { defineComponent as P, mergeModels as k, useModel as g, createElementBlock as h, createCommentVNode as D, openBlock as s, normalizeClass as S, unref as o, createBlock as v, createElementVNode as B, mergeProps as m, withCtx as M, createVNode as O, renderSlot as N } from "vue";
|
|
5
|
+
import d from "../Pdf.vue/index.js";
|
|
6
|
+
import $ from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
+
import { lsPreviewProp as A } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as W } from "../../../../../node_modules/.pnpm/element-plus@2.11.8_vue@3.5.18_typescript@5.9.3_/node_modules/element-plus/es/components/watermark/index/index.js";
|
|
9
|
+
import C from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
+
const b = { class: "ls-preview-extra" }, z = P({
|
|
11
11
|
name: "LSPreviewPdf"
|
|
12
|
-
}),
|
|
12
|
+
}), K = /* @__PURE__ */ P({
|
|
13
13
|
...z,
|
|
14
14
|
name: "LSPreviewPdf",
|
|
15
15
|
components: {
|
|
16
|
-
LSPdf:
|
|
16
|
+
LSPdf: d
|
|
17
17
|
},
|
|
18
18
|
inheritAttrs: !1,
|
|
19
|
-
props: /* @__PURE__ */ k(
|
|
19
|
+
props: /* @__PURE__ */ k(A, {
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: Boolean
|
|
22
22
|
},
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */ k(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
p(),
|
|
29
|
-
}, "loadComplete"), u = /* @__PURE__ */
|
|
30
|
-
p(),
|
|
25
|
+
emits: /* @__PURE__ */ k(["loadComplete", "loadError", "onDownload"], ["update:modelValue"]),
|
|
26
|
+
setup(t, { emit: l }) {
|
|
27
|
+
const a = l, i = t, n = g(t, "modelValue"), { comClass: E, defAttrs: c, closeLoading: p, watermarkStyle: L } = $(i, n), f = /* @__PURE__ */ r(() => {
|
|
28
|
+
p(), a("loadComplete");
|
|
29
|
+
}, "loadComplete"), u = /* @__PURE__ */ r(() => {
|
|
30
|
+
p(), a("loadError");
|
|
31
31
|
}, "loadError");
|
|
32
|
-
function
|
|
33
|
-
|
|
32
|
+
function y(e) {
|
|
33
|
+
i.hideOnClickModal && e.target === e.currentTarget && (n.value = !1);
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
r(y, "closePreview");
|
|
36
|
+
function w(e) {
|
|
37
|
+
a("onDownload", e);
|
|
38
|
+
}
|
|
39
|
+
return r(w, "onDownload"), (e, H) => {
|
|
40
|
+
const V = W;
|
|
41
|
+
return n.value ? (s(), h("div", {
|
|
38
42
|
key: 0,
|
|
39
|
-
class: S(o(
|
|
40
|
-
onClick:
|
|
43
|
+
class: S(o(E)),
|
|
44
|
+
onClick: y
|
|
41
45
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
A(i, n(o(w)(o(s), e.$attrs), {
|
|
46
|
+
e.showWatermark ? (s(), v(V, m({ key: 0 }, e.watermarkOption, { style: o(L) }), {
|
|
47
|
+
default: M(() => [
|
|
48
|
+
O(d, m(o(C)(o(c), e.$attrs), {
|
|
46
49
|
onLoadComplete: f,
|
|
47
|
-
onLoadError: u
|
|
50
|
+
onLoadError: u,
|
|
51
|
+
onOnDownload: w
|
|
48
52
|
}), null, 16)
|
|
49
53
|
]),
|
|
50
54
|
_: 1
|
|
51
|
-
}, 16, ["style"])) : (
|
|
55
|
+
}, 16, ["style"])) : (s(), v(d, m({ key: 1 }, o(C)(o(c), e.$attrs), {
|
|
52
56
|
onLoadComplete: f,
|
|
53
|
-
onLoadError: u
|
|
57
|
+
onLoadError: u,
|
|
58
|
+
onOnDownload: w
|
|
54
59
|
}), null, 16)),
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
B("div", b, [
|
|
61
|
+
N(e.$slots, "extra", {}, void 0, !0)
|
|
57
62
|
])
|
|
58
|
-
], 2)) :
|
|
63
|
+
], 2)) : D("", !0);
|
|
59
64
|
};
|
|
60
65
|
}
|
|
61
66
|
});
|
|
62
67
|
export {
|
|
63
|
-
|
|
68
|
+
K as default
|
|
64
69
|
};
|
|
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-d1429f47"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-d1429f47"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var C=Object.defineProperty;var t=(r,l)=>C(r,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),a=/* empty css */g=/* empty css */y=/* empty css */P=/* empty css */p=/* empty css */_={class:"ls-preview-extra"},E=e.defineComponent({name:"LSPreviewXlsx"}),L=e.defineComponent({...E,name:"LSPreviewXlsx",components:{LSXlsx:a.default},inheritAttrs:!1,props:e.mergeModels(y.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError","onDownload"],["update:modelValue"]),setup(r,{emit:l}){const n=l,f=r,s=e.useModel(r,"modelValue"),{comClass:w,defAttrs:d,closeLoading:u,watermarkStyle:k}=g.default(f,s),i=t(()=>{u(),n("loadComplete")},"loadComplete"),m=t(()=>{u(),n("loadError")},"loadError");function c(o){n("onDownload",o)}return t(c,"onDownload"),(o,q)=>{const v=P.ElWatermark;return s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(w))},[o.showWatermark?(e.openBlock(),e.createBlock(v,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(k)}),{default:e.withCtx(()=>[e.createVNode(a.default,e.mergeProps(e.unref(p.default)(e.unref(d),o.$attrs),{onLoadComplete:i,onLoadError:m,onOnDownload:c}),null,16)]),_:1},16,["style"])):(e.openBlock(),e.createBlock(a.default,e.mergeProps({key:1},e.unref(p.default)(e.unref(d),o.$attrs),{onLoadComplete:i,onLoadError:m,onOnDownload:c}),null,16)),e.createElementVNode("div",_,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])],2)):e.createCommentVNode("",!0)}}});exports.default=L;
|
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var t = (r, l) => _(r, "name", { value: l, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as C, mergeModels as w, useModel as P, createElementBlock as h, createCommentVNode as D, openBlock as n, normalizeClass as S, unref as o, createBlock as k, createElementVNode as g, mergeProps as s, withCtx as B, createVNode as x, renderSlot as M } from "vue";
|
|
5
5
|
import m from "../Xlsx.vue/index.js";
|
|
6
6
|
import N from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
-
import { lsPreviewProp as
|
|
8
|
-
import { ElWatermark as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
7
|
+
import { lsPreviewProp as O } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as X } from "../../../../../node_modules/.pnpm/element-plus@2.11.8_vue@3.5.18_typescript@5.9.3_/node_modules/element-plus/es/components/watermark/index/index.js";
|
|
9
|
+
import v from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
+
const $ = { class: "ls-preview-extra" }, A = C({
|
|
11
11
|
name: "LSPreviewXlsx"
|
|
12
|
-
}),
|
|
13
|
-
...
|
|
12
|
+
}), J = /* @__PURE__ */ C({
|
|
13
|
+
...A,
|
|
14
14
|
name: "LSPreviewXlsx",
|
|
15
15
|
components: {
|
|
16
16
|
LSXlsx: m
|
|
17
17
|
},
|
|
18
18
|
inheritAttrs: !1,
|
|
19
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ w(O, {
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: Boolean
|
|
22
22
|
},
|
|
23
23
|
modelModifiers: {}
|
|
24
24
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(r, { emit:
|
|
27
|
-
const
|
|
28
|
-
p(),
|
|
29
|
-
}, "loadComplete"), u = /* @__PURE__ */
|
|
30
|
-
p(),
|
|
25
|
+
emits: /* @__PURE__ */ w(["loadComplete", "loadError", "onDownload"], ["update:modelValue"]),
|
|
26
|
+
setup(r, { emit: l }) {
|
|
27
|
+
const a = l, E = r, d = P(r, "modelValue"), { comClass: L, defAttrs: i, closeLoading: p, watermarkStyle: y } = N(E, d), c = /* @__PURE__ */ t(() => {
|
|
28
|
+
p(), a("loadComplete");
|
|
29
|
+
}, "loadComplete"), u = /* @__PURE__ */ t(() => {
|
|
30
|
+
p(), a("loadError");
|
|
31
31
|
}, "loadError");
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
function f(e) {
|
|
33
|
+
a("onDownload", e);
|
|
34
|
+
}
|
|
35
|
+
return t(f, "onDownload"), (e, W) => {
|
|
36
|
+
const V = X;
|
|
37
|
+
return d.value ? (n(), h("div", {
|
|
35
38
|
key: 0,
|
|
36
|
-
class: S(
|
|
39
|
+
class: S(o(L))
|
|
37
40
|
}, [
|
|
38
|
-
|
|
41
|
+
e.showWatermark ? (n(), k(V, s({ key: 0 }, e.watermarkOption, { style: o(y) }), {
|
|
39
42
|
default: B(() => [
|
|
40
|
-
x(m, s(
|
|
43
|
+
x(m, s(o(v)(o(i), e.$attrs), {
|
|
41
44
|
onLoadComplete: c,
|
|
42
|
-
onLoadError: u
|
|
45
|
+
onLoadError: u,
|
|
46
|
+
onOnDownload: f
|
|
43
47
|
}), null, 16)
|
|
44
48
|
]),
|
|
45
49
|
_: 1
|
|
46
|
-
}, 16, ["style"])) : (
|
|
50
|
+
}, 16, ["style"])) : (n(), k(m, s({ key: 1 }, o(v)(o(i), e.$attrs), {
|
|
47
51
|
onLoadComplete: c,
|
|
48
|
-
onLoadError: u
|
|
52
|
+
onLoadError: u,
|
|
53
|
+
onOnDownload: f
|
|
49
54
|
}), null, 16)),
|
|
50
|
-
g("div",
|
|
51
|
-
M(
|
|
55
|
+
g("div", $, [
|
|
56
|
+
M(e.$slots, "extra", {}, void 0, !0)
|
|
52
57
|
])
|
|
53
|
-
], 2)) :
|
|
58
|
+
], 2)) : D("", !0);
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
61
|
});
|
|
57
62
|
export {
|
|
58
|
-
|
|
63
|
+
J as default
|
|
59
64
|
};
|
|
Binary file
|
|
Binary file
|