@lingshugroup/web-plus 2.1.3 → 2.4.0
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/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/index/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/index/index.js +7 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/useClips/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/useClips/index.js +68 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/useClips/index.js.br +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/useClips/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/utils/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/utils/index.js +24 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/watermark/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/watermark/index.js +33 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/watermark2/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/watermark2/index.js +147 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/watermark2/index.js.br +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/src/watermark2/index.js.gz +0 -0
- package/lib/packages/ls-components/components/_constants/previewType/index.cjs +1 -1
- package/lib/packages/ls-components/components/_constants/previewType/index.js +15 -5
- package/lib/packages/ls-components/components/_constants/previewType/index.js.br +0 -0
- package/lib/packages/ls-components/components/_constants/previewType/index.js.gz +0 -0
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.cjs +1 -1
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.js +24 -18
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.js.br +0 -0
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.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 +45 -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 +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 +53 -34
- 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 +3 -3
- 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 +44 -31
- 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 -28
- 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
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../src/watermark2/index.cjs"),r=require("../../../utils/vue/install/index.cjs"),e=r.withInstall(t.default);exports.ElWatermark=e;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Z=Object.defineProperty;var i=(r,e)=>Z(r,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const tt=require("../../../../../../../../@vue_shared@3.5.18/node_modules/@vue/shared/dist/shared.esm-bundler/index.cjs"),L=3,et={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function _(r,e,m=1){const t=document.createElement("canvas"),u=t.getContext("2d"),s=r*m,p=e*m;return t.setAttribute("width",`${s}px`),t.setAttribute("height",`${p}px`),u.save(),[u,t,s,p]}i(_,"prepareCanvas");function nt(){function r(e,m,t,u,s,p,P,X,B){const[o,N,f,x]=_(u,s,t);if(e instanceof HTMLImageElement)o.drawImage(e,0,0,f,x);else{const{color:n,fontSize:a,fontStyle:c,fontWeight:l,fontFamily:k,textAlign:w,textBaseline:J}=p,y=Number(a)*t;o.font=`${c} normal ${l} ${y}px/${s}px ${k}`,o.fillStyle=n,o.textAlign=w,o.textBaseline=J;const z=tt.isArray(e)?e:[e];z==null||z.forEach((F,K)=>{const[Q,V]=et[w];o.fillText(F??"",f*Q+B*V,K*(y+L*t))})}const g=Math.PI/180*Number(m),E=Math.max(u,s),[S,Y,M]=_(E,E,t);S.translate(M/2,M/2),S.rotate(g),f>0&&x>0&&S.drawImage(N,-f/2,-x/2);function O(n,a){const c=n*Math.cos(g)-a*Math.sin(g),l=n*Math.sin(g)+a*Math.cos(g);return[c,l]}i(O,"getRotatePos");let v=0,b=0,A=0,T=0;const C=f/2,I=x/2;[[0-C,0-I],[0+C,0-I],[0+C,0+I],[0-C,0+I]].forEach(([n,a])=>{const[c,l]=O(n,a);v=Math.min(v,c),b=Math.max(b,c),A=Math.min(A,l),T=Math.max(T,l)});const j=v+M/2,q=A+M/2,h=b-v,d=T-A,$=P*t,H=X*t,G=(h+$)*2,R=d+H,[D,U]=_(G,R);function W(n=0,a=0){D.drawImage(Y,j,q,h,d,n,a,h,d)}return i(W,"drawImg"),W(),W(h+$,-d/2-H/2),W(h+$,+d/2+H/2),[U.toDataURL(),G/t,R/t]}return i(r,"getClips"),r}i(nt,"useClips");exports.FontGap=L;exports.default=nt;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
|
+
var i = (r, e) => V(r, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { isArray as Z } from "../../../../../../../../@vue_shared@3.5.18/node_modules/@vue/shared/dist/shared.esm-bundler/index.js";
|
|
4
|
+
const tt = 3, et = {
|
|
5
|
+
left: [0, 0.5],
|
|
6
|
+
start: [0, 0.5],
|
|
7
|
+
center: [0.5, 0],
|
|
8
|
+
right: [1, -0.5],
|
|
9
|
+
end: [1, -0.5]
|
|
10
|
+
};
|
|
11
|
+
function E(r, e, x = 1) {
|
|
12
|
+
const t = document.createElement("canvas"), f = t.getContext("2d"), o = r * x, p = e * x;
|
|
13
|
+
return t.setAttribute("width", `${o}px`), t.setAttribute("height", `${p}px`), f.save(), [f, t, o, p];
|
|
14
|
+
}
|
|
15
|
+
i(E, "prepareCanvas");
|
|
16
|
+
function st() {
|
|
17
|
+
function r(e, x, t, f, o, p, F, N, P) {
|
|
18
|
+
const [s, Y, h, d] = E(f, o, t);
|
|
19
|
+
if (e instanceof HTMLImageElement)
|
|
20
|
+
s.drawImage(e, 0, 0, h, d);
|
|
21
|
+
else {
|
|
22
|
+
const {
|
|
23
|
+
color: n,
|
|
24
|
+
fontSize: a,
|
|
25
|
+
fontStyle: c,
|
|
26
|
+
fontWeight: l,
|
|
27
|
+
fontFamily: k,
|
|
28
|
+
textAlign: G,
|
|
29
|
+
textBaseline: q
|
|
30
|
+
} = p, L = Number(a) * t;
|
|
31
|
+
s.font = `${c} normal ${l} ${L}px/${o}px ${k}`, s.fillStyle = n, s.textAlign = G, s.textBaseline = q;
|
|
32
|
+
const X = Z(e) ? e : [e];
|
|
33
|
+
X == null || X.forEach((y, J) => {
|
|
34
|
+
const [K, Q] = et[G];
|
|
35
|
+
s.fillText(y ?? "", h * K + P * Q, J * (L + tt * t));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
const g = Math.PI / 180 * Number(x), R = Math.max(f, o), [$, _, M] = E(R, R, t);
|
|
39
|
+
$.translate(M / 2, M / 2), $.rotate(g), h > 0 && d > 0 && $.drawImage(Y, -h / 2, -d / 2);
|
|
40
|
+
function B(n, a) {
|
|
41
|
+
const c = n * Math.cos(g) - a * Math.sin(g), l = n * Math.sin(g) + a * Math.cos(g);
|
|
42
|
+
return [c, l];
|
|
43
|
+
}
|
|
44
|
+
i(B, "getRotatePos");
|
|
45
|
+
let v = 0, H = 0, A = 0, S = 0;
|
|
46
|
+
const C = h / 2, I = d / 2;
|
|
47
|
+
[
|
|
48
|
+
[0 - C, 0 - I],
|
|
49
|
+
[0 + C, 0 - I],
|
|
50
|
+
[0 + C, 0 + I],
|
|
51
|
+
[0 - C, 0 + I]
|
|
52
|
+
].forEach(([n, a]) => {
|
|
53
|
+
const [c, l] = B(n, a);
|
|
54
|
+
v = Math.min(v, c), H = Math.max(H, c), A = Math.min(A, l), S = Math.max(S, l);
|
|
55
|
+
});
|
|
56
|
+
const D = v + M / 2, O = A + M / 2, u = H - v, m = S - A, T = F * t, W = N * t, w = (u + T) * 2, z = m + W, [U, j] = E(w, z);
|
|
57
|
+
function b(n = 0, a = 0) {
|
|
58
|
+
U.drawImage(_, D, O, u, m, n, a, u, m);
|
|
59
|
+
}
|
|
60
|
+
return i(b, "drawImg"), b(), b(u + T, -m / 2 - W / 2), b(u + T, +m / 2 + W / 2), [j.toDataURL(), w / t, z / t];
|
|
61
|
+
}
|
|
62
|
+
return i(r, "getClips"), r;
|
|
63
|
+
}
|
|
64
|
+
i(st, "useClips");
|
|
65
|
+
export {
|
|
66
|
+
tt as FontGap,
|
|
67
|
+
st as default
|
|
68
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var t=(e,r)=>n(e,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}t(i,"toLowercaseSeparator");function a(e){return Object.keys(e).map(r=>`${i(r)}: ${e[r]};`).join(" ")}t(a,"getStyleStr");function c(){return window.devicePixelRatio||1}t(c,"getPixelRatio");const g=t((e,r)=>{let o=!1;return e.removedNodes.length&&r&&(o=Array.from(e.removedNodes).includes(r)),e.type==="attributes"&&e.target===r&&(o=!0),o},"reRendering");exports.getPixelRatio=c;exports.getStyleStr=a;exports.reRendering=g;exports.toLowercaseSeparator=i;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var t = (e, r) => i(e, "name", { value: r, configurable: !0 });
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
5
|
+
}
|
|
6
|
+
t(n, "toLowercaseSeparator");
|
|
7
|
+
function d(e) {
|
|
8
|
+
return Object.keys(e).map((r) => `${n(r)}: ${e[r]};`).join(" ");
|
|
9
|
+
}
|
|
10
|
+
t(d, "getStyleStr");
|
|
11
|
+
function f() {
|
|
12
|
+
return window.devicePixelRatio || 1;
|
|
13
|
+
}
|
|
14
|
+
t(f, "getPixelRatio");
|
|
15
|
+
const s = /* @__PURE__ */ t((e, r) => {
|
|
16
|
+
let o = !1;
|
|
17
|
+
return e.removedNodes.length && r && (o = Array.from(e.removedNodes).includes(r)), e.type === "attributes" && e.target === r && (o = !0), o;
|
|
18
|
+
}, "reRendering");
|
|
19
|
+
export {
|
|
20
|
+
f as getPixelRatio,
|
|
21
|
+
d as getStyleStr,
|
|
22
|
+
s as reRendering,
|
|
23
|
+
n as toLowercaseSeparator
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var t=(r,p)=>o(r,"name",{value:p,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../utils/vue/props/runtime/index.cjs"),a=e.buildProps({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:e.definePropType([String,Array]),default:"Element Plus"},font:{type:e.definePropType(Object)},gap:{type:e.definePropType(Array),default:t(()=>[100,100],"default")},offset:{type:e.definePropType(Array)}});exports.watermarkProps=a;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var t = (r, p) => a(r, "name", { value: p, configurable: !0 });
|
|
3
|
+
import { buildProps as o, definePropType as e } from "../../../../utils/vue/props/runtime/index.js";
|
|
4
|
+
const f = o({
|
|
5
|
+
zIndex: {
|
|
6
|
+
type: Number,
|
|
7
|
+
default: 9
|
|
8
|
+
},
|
|
9
|
+
rotate: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: -22
|
|
12
|
+
},
|
|
13
|
+
width: Number,
|
|
14
|
+
height: Number,
|
|
15
|
+
image: String,
|
|
16
|
+
content: {
|
|
17
|
+
type: e([String, Array]),
|
|
18
|
+
default: "Element Plus"
|
|
19
|
+
},
|
|
20
|
+
font: {
|
|
21
|
+
type: e(Object)
|
|
22
|
+
},
|
|
23
|
+
gap: {
|
|
24
|
+
type: e(Array),
|
|
25
|
+
default: /* @__PURE__ */ t(() => [100, 100], "default")
|
|
26
|
+
},
|
|
27
|
+
offset: {
|
|
28
|
+
type: e(Array)
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
f as watermarkProps
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var J=Object.defineProperty;var u=(m,o)=>J(m,"name",{value:o,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),K=require("../../../../../../../../@vueuse_core@9.13.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/core/index/index.cjs"),Q=require("../watermark/index.cjs"),k=require("../utils/index.cjs"),R=require("../useClips/index.cjs"),Z=require("../../../../_virtual/plugin-vue_export-helper/index.cjs"),ee=require("../../../../../../../../@vue_shared@3.5.18/node_modules/@vue/shared/dist/shared.esm-bundler/index.cjs"),te=require("../../../../utils/types/index.cjs"),ne=n.defineComponent({name:"ElWatermark"}),oe=n.defineComponent({...ne,props:Q.watermarkProps,setup(m){const o=m,A={position:"relative"},E=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.color)!=null?t:"rgba(0,0,0,.15)"}),y=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.fontSize)!=null?t:16}),P=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.fontWeight)!=null?t:"normal"}),T=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.fontStyle)!=null?t:"normal"}),S=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.fontFamily)!=null?t:"sans-serif"}),I=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.textAlign)!=null?t:"center"}),F=n.computed(()=>{var e,t;return(t=(e=o.font)==null?void 0:e.textBaseline)!=null?t:"hanging"}),B=n.computed(()=>o.gap[0]),w=n.computed(()=>o.gap[1]),M=n.computed(()=>B.value/2),W=n.computed(()=>w.value/2),H=n.computed(()=>{var e,t;return(t=(e=o.offset)==null?void 0:e[0])!=null?t:M.value}),O=n.computed(()=>{var e,t;return(t=(e=o.offset)==null?void 0:e[1])!=null?t:W.value}),L=u(()=>{const e={zIndex:o.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=H.value-M.value,a=O.value-W.value;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),a>0&&(e.top=`${a}px`,e.height=`calc(100% - ${a}px)`,a=0),e.backgroundPosition=`${t}px ${a}px`,e},"getMarkStyle"),d=n.shallowRef(null),r=n.shallowRef(),g=n.ref(!1),$=u(()=>{r.value&&(r.value.remove(),r.value=void 0)},"destroyWatermark"),D=u((e,t)=>{var a;d.value&&r.value&&(g.value=!0,r.value.setAttribute("style",k.getStyleStr({...L(),backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`})),(a=d.value)==null||a.append(r.value),setTimeout(()=>{g.value=!1}))},"appendWatermark"),N=u(e=>{let t=120,a=64,i=0;const{image:_,content:c,width:v,height:p,rotate:x}=o;if(!_&&e.measureText){e.font=`${Number(y.value)}px ${S.value}`;const s=ee.isArray(c)?c:[c];let l=0,f=0;s.forEach(Y=>{const{width:C,fontBoundingBoxAscent:q,fontBoundingBoxDescent:j,actualBoundingBoxAscent:G,actualBoundingBoxDescent:V}=e.measureText(Y),z=te.isUndefined(q)?G+V:q+j;C>l&&(l=Math.ceil(C)),z>f&&(f=Math.ceil(z))}),t=l,a=f*s.length+(s.length-1)*R.FontGap;const b=Math.PI/180*Number(x);i=Math.ceil(Math.abs(Math.sin(b)*a)/2),t+=i}return[v??t,p??a,i]},"getMarkSize"),U=R.default(),h=u(()=>{const t=document.createElement("canvas").getContext("2d"),a=o.image,i=o.content,_=o.rotate;if(t){r.value||(r.value=document.createElement("div"));const c=k.getPixelRatio(),[v,p,x]=N(t),s=u(l=>{const[f,b]=U(l||"",_,c,v,p,{color:E.value,fontSize:y.value,fontStyle:T.value,fontWeight:P.value,fontFamily:S.value,textAlign:I.value,textBaseline:F.value},B.value,w.value,x);D(f,b)},"drawCanvas");if(a){const l=new Image;l.onload=()=>{s(l)},l.onerror=()=>{s(i)},l.crossOrigin="anonymous",l.referrerPolicy="no-referrer",l.src=a}else s(i)}},"renderWatermark");n.onMounted(()=>{h()}),n.watch(()=>o,()=>{h()},{deep:!0,flush:"post"}),n.onBeforeUnmount(()=>{$()});const X=u(e=>{g.value||e.forEach(t=>{k.reRendering(t,r.value)&&($(),h())})},"onMutate");return K.useMutationObserver(d,X,{attributes:!0,subtree:!0,childList:!0}),(e,t)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"containerRef",ref:d,style:n.normalizeStyle([A])},[n.renderSlot(e.$slots,"default")],4))}});var ae=Z.default(oe,[["__file","watermark.vue"]]);exports.default=ae;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var J = Object.defineProperty;
|
|
2
|
+
var i = (d, n) => J(d, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { defineComponent as E, computed as a, shallowRef as A, ref as K, onMounted as Q, watch as V, onBeforeUnmount as Z, createElementBlock as tt, openBlock as et, normalizeStyle as nt, renderSlot as ot } from "vue";
|
|
4
|
+
import { useMutationObserver as at } from "../../../../../../../../@vueuse_core@9.13.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/core/index/index.js";
|
|
5
|
+
import { watermarkProps as rt } from "../watermark/index.js";
|
|
6
|
+
import { reRendering as lt, getPixelRatio as it, getStyleStr as st } from "../utils/index.js";
|
|
7
|
+
import ut, { FontGap as ct } from "../useClips/index.js";
|
|
8
|
+
import ft from "../../../../_virtual/plugin-vue_export-helper/index.js";
|
|
9
|
+
import { isArray as vt } from "../../../../../../../../@vue_shared@3.5.18/node_modules/@vue/shared/dist/shared.esm-bundler/index.js";
|
|
10
|
+
import { isUndefined as mt } from "../../../../utils/types/index.js";
|
|
11
|
+
const pt = E({
|
|
12
|
+
name: "ElWatermark"
|
|
13
|
+
}), dt = /* @__PURE__ */ E({
|
|
14
|
+
...pt,
|
|
15
|
+
props: rt,
|
|
16
|
+
setup(d) {
|
|
17
|
+
const n = d, R = {
|
|
18
|
+
position: "relative"
|
|
19
|
+
}, I = a(() => {
|
|
20
|
+
var t, e;
|
|
21
|
+
return (e = (t = n.font) == null ? void 0 : t.color) != null ? e : "rgba(0,0,0,.15)";
|
|
22
|
+
}), k = a(() => {
|
|
23
|
+
var t, e;
|
|
24
|
+
return (e = (t = n.font) == null ? void 0 : t.fontSize) != null ? e : 16;
|
|
25
|
+
}), P = a(() => {
|
|
26
|
+
var t, e;
|
|
27
|
+
return (e = (t = n.font) == null ? void 0 : t.fontWeight) != null ? e : "normal";
|
|
28
|
+
}), T = a(() => {
|
|
29
|
+
var t, e;
|
|
30
|
+
return (e = (t = n.font) == null ? void 0 : t.fontStyle) != null ? e : "normal";
|
|
31
|
+
}), y = a(() => {
|
|
32
|
+
var t, e;
|
|
33
|
+
return (e = (t = n.font) == null ? void 0 : t.fontFamily) != null ? e : "sans-serif";
|
|
34
|
+
}), F = a(() => {
|
|
35
|
+
var t, e;
|
|
36
|
+
return (e = (t = n.font) == null ? void 0 : t.textAlign) != null ? e : "center";
|
|
37
|
+
}), H = a(() => {
|
|
38
|
+
var t, e;
|
|
39
|
+
return (e = (t = n.font) == null ? void 0 : t.textBaseline) != null ? e : "hanging";
|
|
40
|
+
}), B = a(() => n.gap[0]), S = a(() => n.gap[1]), M = a(() => B.value / 2), w = a(() => S.value / 2), L = a(() => {
|
|
41
|
+
var t, e;
|
|
42
|
+
return (e = (t = n.offset) == null ? void 0 : t[0]) != null ? e : M.value;
|
|
43
|
+
}), O = a(() => {
|
|
44
|
+
var t, e;
|
|
45
|
+
return (e = (t = n.offset) == null ? void 0 : t[1]) != null ? e : w.value;
|
|
46
|
+
}), D = /* @__PURE__ */ i(() => {
|
|
47
|
+
const t = {
|
|
48
|
+
zIndex: n.zIndex,
|
|
49
|
+
position: "absolute",
|
|
50
|
+
left: 0,
|
|
51
|
+
top: 0,
|
|
52
|
+
width: "100%",
|
|
53
|
+
height: "100%",
|
|
54
|
+
pointerEvents: "none",
|
|
55
|
+
backgroundRepeat: "repeat"
|
|
56
|
+
};
|
|
57
|
+
let e = L.value - M.value, o = O.value - w.value;
|
|
58
|
+
return e > 0 && (t.left = `${e}px`, t.width = `calc(100% - ${e}px)`, e = 0), o > 0 && (t.top = `${o}px`, t.height = `calc(100% - ${o}px)`, o = 0), t.backgroundPosition = `${e}px ${o}px`, t;
|
|
59
|
+
}, "getMarkStyle"), v = A(null), l = A(), g = K(!1), W = /* @__PURE__ */ i(() => {
|
|
60
|
+
l.value && (l.value.remove(), l.value = void 0);
|
|
61
|
+
}, "destroyWatermark"), N = /* @__PURE__ */ i((t, e) => {
|
|
62
|
+
var o;
|
|
63
|
+
v.value && l.value && (g.value = !0, l.value.setAttribute("style", st({
|
|
64
|
+
...D(),
|
|
65
|
+
backgroundImage: `url('${t}')`,
|
|
66
|
+
backgroundSize: `${Math.floor(e)}px`
|
|
67
|
+
})), (o = v.value) == null || o.append(l.value), setTimeout(() => {
|
|
68
|
+
g.value = !1;
|
|
69
|
+
}));
|
|
70
|
+
}, "appendWatermark"), U = /* @__PURE__ */ i((t) => {
|
|
71
|
+
let e = 120, o = 64, u = 0;
|
|
72
|
+
const { image: _, content: c, width: m, height: p, rotate: x } = n;
|
|
73
|
+
if (!_ && t.measureText) {
|
|
74
|
+
t.font = `${Number(k.value)}px ${y.value}`;
|
|
75
|
+
const s = vt(c) ? c : [c];
|
|
76
|
+
let r = 0, f = 0;
|
|
77
|
+
s.forEach((Y) => {
|
|
78
|
+
const {
|
|
79
|
+
width: $,
|
|
80
|
+
fontBoundingBoxAscent: z,
|
|
81
|
+
fontBoundingBoxDescent: G,
|
|
82
|
+
actualBoundingBoxAscent: j,
|
|
83
|
+
actualBoundingBoxDescent: q
|
|
84
|
+
} = t.measureText(Y), C = mt(z) ? j + q : z + G;
|
|
85
|
+
$ > r && (r = Math.ceil($)), C > f && (f = Math.ceil(C));
|
|
86
|
+
}), e = r, o = f * s.length + (s.length - 1) * ct;
|
|
87
|
+
const b = Math.PI / 180 * Number(x);
|
|
88
|
+
u = Math.ceil(Math.abs(Math.sin(b) * o) / 2), e += u;
|
|
89
|
+
}
|
|
90
|
+
return [m ?? e, p ?? o, u];
|
|
91
|
+
}, "getMarkSize"), X = ut(), h = /* @__PURE__ */ i(() => {
|
|
92
|
+
const e = document.createElement("canvas").getContext("2d"), o = n.image, u = n.content, _ = n.rotate;
|
|
93
|
+
if (e) {
|
|
94
|
+
l.value || (l.value = document.createElement("div"));
|
|
95
|
+
const c = it(), [m, p, x] = U(e), s = /* @__PURE__ */ i((r) => {
|
|
96
|
+
const [f, b] = X(r || "", _, c, m, p, {
|
|
97
|
+
color: I.value,
|
|
98
|
+
fontSize: k.value,
|
|
99
|
+
fontStyle: T.value,
|
|
100
|
+
fontWeight: P.value,
|
|
101
|
+
fontFamily: y.value,
|
|
102
|
+
textAlign: F.value,
|
|
103
|
+
textBaseline: H.value
|
|
104
|
+
}, B.value, S.value, x);
|
|
105
|
+
N(f, b);
|
|
106
|
+
}, "drawCanvas");
|
|
107
|
+
if (o) {
|
|
108
|
+
const r = new Image();
|
|
109
|
+
r.onload = () => {
|
|
110
|
+
s(r);
|
|
111
|
+
}, r.onerror = () => {
|
|
112
|
+
s(u);
|
|
113
|
+
}, r.crossOrigin = "anonymous", r.referrerPolicy = "no-referrer", r.src = o;
|
|
114
|
+
} else
|
|
115
|
+
s(u);
|
|
116
|
+
}
|
|
117
|
+
}, "renderWatermark");
|
|
118
|
+
return Q(() => {
|
|
119
|
+
h();
|
|
120
|
+
}), V(() => n, () => {
|
|
121
|
+
h();
|
|
122
|
+
}, {
|
|
123
|
+
deep: !0,
|
|
124
|
+
flush: "post"
|
|
125
|
+
}), Z(() => {
|
|
126
|
+
W();
|
|
127
|
+
}), at(v, /* @__PURE__ */ i((t) => {
|
|
128
|
+
g.value || t.forEach((e) => {
|
|
129
|
+
lt(e, l.value) && (W(), h());
|
|
130
|
+
});
|
|
131
|
+
}, "onMutate"), {
|
|
132
|
+
attributes: !0,
|
|
133
|
+
subtree: !0,
|
|
134
|
+
childList: !0
|
|
135
|
+
}), (t, e) => (et(), tt("div", {
|
|
136
|
+
ref_key: "containerRef",
|
|
137
|
+
ref: v,
|
|
138
|
+
style: nt([R])
|
|
139
|
+
}, [
|
|
140
|
+
ot(t.$slots, "default")
|
|
141
|
+
], 4));
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
var wt = /* @__PURE__ */ ft(dt, [["__file", "watermark.vue"]]);
|
|
145
|
+
export {
|
|
146
|
+
wt as default
|
|
147
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var a=Object.defineProperty;var e=(t,o)=>a(t,"name",{value:o,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../_utils/runtime/index.cjs"),l=["close","switch","update:source","loadComplete","loadError","download"],d=r.buildProps({source:{},zoomSize:{type:[Number,String],default:1.5},needLoading:{type:Boolean,default:!0},loadingOption:{type:Object,default:e(()=>({text:"Loading",background:"rgba(0, 0, 0, 0.3)"}),"default")},hasDownload:{type:Boolean,default:!1},downloadData:{type:Object,default:e(()=>({}),"default")},hideOnClickModal:{type:Boolean,default:!1},showWatermark:{type:Boolean,default:!1},watermarkOption:{type:Object,default:e(()=>({}),"default")}}),n="文档加载失败,请检查资源是否存在";exports.fileEmpty=n;exports.lsPreviewProp=d;exports.previewEmits=l;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var e = (
|
|
2
|
+
var e = (t, o) => a(t, "name", { value: o, configurable: !0 });
|
|
3
3
|
import { buildProps as l } from "../../_utils/runtime/index.js";
|
|
4
|
-
const n = ["close", "switch", "update:source", "loadComplete", "loadError", "download"],
|
|
4
|
+
const n = ["close", "switch", "update:source", "loadComplete", "loadError", "download"], p = l({
|
|
5
5
|
source: {},
|
|
6
6
|
zoomSize: {
|
|
7
7
|
type: [Number, String],
|
|
@@ -29,10 +29,20 @@ const n = ["close", "switch", "update:source", "loadComplete", "loadError", "dow
|
|
|
29
29
|
hideOnClickModal: {
|
|
30
30
|
type: Boolean,
|
|
31
31
|
default: !1
|
|
32
|
+
},
|
|
33
|
+
// 是否显示水印
|
|
34
|
+
showWatermark: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
// 水印配置
|
|
39
|
+
watermarkOption: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default: /* @__PURE__ */ e(() => ({}), "default")
|
|
32
42
|
}
|
|
33
|
-
}),
|
|
43
|
+
}), u = "文档加载失败,请检查资源是否存在";
|
|
34
44
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
u as fileEmpty,
|
|
46
|
+
p as lsPreviewProp,
|
|
37
47
|
n as previewEmits
|
|
38
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f=Object.defineProperty;var c=(e,o)=>f(e,"name",{value:o,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("element-plus"),h=/* empty css */t=require("vue");;/* empty css */;/* empty css */;/* empty css */const q=;/* empty css */function v(e,o){const{zoomSize:r}=t.toRefs(e),a=t.reactive({zoomSize:r==null?void 0:r.value,source:""}),i=h.useNamespace("preview").b(),l=t.ref();let n=null;const m={width:"100%",height:"100%",top:0,left:0};t.watch(()=>o==null?void 0:o.value,u=>{u&&s()},{immediate:!0,deep:!0}),t.watch(()=>e.source,u=>{a.source=u,u&&clearTimeout(n)},{immediate:!0,deep:!0});function s(){e.needLoading&&(l.value=g.ElLoading.service(e.loadingOption)),a.zoomSize=e.zoomSize,a.hasDownload=e.hasDownload,a.hasDownload&&(a.downloadData=e.downloadData),n=setTimeout(()=>{e.source||(q.ElMessage.error("加载超时,请检查网络后重试!"),d(),o.value=!1),clearTimeout(n)},2e4)}c(s,"openLoading");const d=c(()=>{n&&clearTimeout(n),e.needLoading&&l.value&&l.value.close()},"closeLoading");return t.onBeforeMount(()=>{o.value&&s()}),t.onBeforeUnmount(()=>{d()}),{previewVisible:o,comClass:i,defAttrs:a,closeLoading:d,watermarkStyle:m}}c(v,"usePreviewHook");exports.default=v;
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var u = (o, e) =>
|
|
3
|
-
import { ElLoading as
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import { toRefs as D, reactive as L, ref as
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var u = (o, e) => i(o, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { ElLoading as g } from "element-plus";
|
|
4
|
+
import { useNamespace as h } from "../useNamespace/index.js";
|
|
5
|
+
import { toRefs as D, reactive as L, ref as z, watch as l, onBeforeMount as T, onBeforeUnmount as v } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { ElMessage as
|
|
9
|
+
import { ElMessage as w } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/message/index/index.js";
|
|
10
10
|
function H(o, e) {
|
|
11
11
|
const { zoomSize: m } = D(o), t = L({
|
|
12
12
|
zoomSize: m == null ? void 0 : m.value,
|
|
13
13
|
source: ""
|
|
14
|
-
}), f =
|
|
14
|
+
}), f = h("preview").b(), c = z();
|
|
15
15
|
let a = null;
|
|
16
|
+
const s = {
|
|
17
|
+
width: "100%",
|
|
18
|
+
height: "100%",
|
|
19
|
+
top: 0,
|
|
20
|
+
left: 0
|
|
21
|
+
};
|
|
16
22
|
l(
|
|
17
23
|
() => e == null ? void 0 : e.value,
|
|
18
24
|
(n) => {
|
|
19
|
-
n &&
|
|
25
|
+
n && d();
|
|
20
26
|
},
|
|
21
27
|
{
|
|
22
28
|
immediate: !0,
|
|
@@ -32,20 +38,20 @@ function H(o, e) {
|
|
|
32
38
|
deep: !0
|
|
33
39
|
}
|
|
34
40
|
);
|
|
35
|
-
function
|
|
36
|
-
o.needLoading && (c.value =
|
|
37
|
-
o.source || (
|
|
41
|
+
function d() {
|
|
42
|
+
o.needLoading && (c.value = g.service(o.loadingOption)), t.zoomSize = o.zoomSize, t.hasDownload = o.hasDownload, t.hasDownload && (t.downloadData = o.downloadData), a = setTimeout(() => {
|
|
43
|
+
o.source || (w.error("加载超时,请检查网络后重试!"), r(), e.value = !1), clearTimeout(a);
|
|
38
44
|
}, 2e4);
|
|
39
45
|
}
|
|
40
|
-
u(
|
|
41
|
-
const
|
|
46
|
+
u(d, "openLoading");
|
|
47
|
+
const r = /* @__PURE__ */ u(() => {
|
|
42
48
|
a && clearTimeout(a), o.needLoading && c.value && c.value.close();
|
|
43
49
|
}, "closeLoading");
|
|
44
|
-
return
|
|
45
|
-
e.value &&
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
}), { previewVisible: e, comClass: f, defAttrs: t, closeLoading:
|
|
50
|
+
return T(() => {
|
|
51
|
+
e.value && d();
|
|
52
|
+
}), v(() => {
|
|
53
|
+
r();
|
|
54
|
+
}), { previewVisible: e, comClass: f, defAttrs: t, closeLoading: r, watermarkStyle: s };
|
|
49
55
|
}
|
|
50
56
|
u(H, "usePreviewHook");
|
|
51
57
|
export {
|
|
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-32195920"]]);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
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-32195920"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var y=Object.defineProperty;var l=(r,a)=>y(r,"name",{value:a,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),c=/* empty css */L=/* empty css */_=/* empty css */q=/* empty css */v=/* empty css */B=e.defineComponent({name:"LSPreviewDocx"}),E=e.defineComponent({...B,name:"LSPreviewDocx",components:{LSDocx:c.default},inheritAttrs:!1,props:e.mergeModels(_.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(r,{emit:a}){const u=a,d=r,n=e.useModel(r,"modelValue"),{comClass:w,defAttrs:i,closeLoading:m,watermarkStyle:C}=L.default(d,n),p=l(()=>{m(),u("loadComplete")},"loadComplete"),f=l(()=>{m(),u("loadError")},"loadError");function P(o){var s,t,k,g;d.hideOnClickModal&&(o.target===o.currentTarget||(t=(s=o==null?void 0:o.target)==null?void 0:s.className)!=null&&t.includes&&((g=(k=o==null?void 0:o.target)==null?void 0:k.className)!=null&&g.includes("docx-wrapper")))&&(n.value=!1)}return l(P,"closePreview"),(o,s)=>{const t=q.ElWatermark;return n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(w)),onClick:P},[o.showWatermark?(e.openBlock(),e.createBlock(t,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(C)}),{default:e.withCtx(()=>[e.createVNode(c.default,e.mergeProps(e.unref(v.default)(e.unref(i),o.$attrs),{onLoadComplete:p,onLoadError:f}),null,16)]),_:1},16,["style"])):(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:1},e.unref(v.default)(e.unref(i),o.$attrs),{onLoadComplete:p,onLoadError:f}),null,16))],2)):e.createCommentVNode("",!0)}}});exports.default=E;
|
|
@@ -1,48 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var a = (r, l) => h(r, "name", { value: l, configurable: !0 });
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { defineComponent as E, mergeModels as g, useModel as B, createElementBlock as M, createCommentVNode as N, openBlock as n, normalizeClass as S, unref as o, createBlock as L, mergeProps as i, withCtx as x, createVNode as D } from "vue";
|
|
5
|
+
import c from "../Docx.vue/index.js";
|
|
6
|
+
import A from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
+
import { lsPreviewProp as O } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as W } from "../../../../../node_modules/.pnpm/element-plus@2.10.7_vue@3.5.18_typescript@5.9.2_/node_modules/element-plus/es/components/watermark/index/index.js";
|
|
9
|
+
import y from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
+
const $ = E({
|
|
9
11
|
name: "LSPreviewDocx"
|
|
10
|
-
}),
|
|
11
|
-
|
|
12
|
+
}), I = /* @__PURE__ */ E({
|
|
13
|
+
...$,
|
|
12
14
|
name: "LSPreviewDocx",
|
|
13
15
|
components: {
|
|
14
|
-
LSDocx:
|
|
16
|
+
LSDocx: c
|
|
15
17
|
},
|
|
16
18
|
inheritAttrs: !1,
|
|
17
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ g(O, {
|
|
18
20
|
modelValue: {
|
|
19
21
|
type: Boolean
|
|
20
22
|
},
|
|
21
23
|
modelModifiers: {}
|
|
22
24
|
}),
|
|
23
|
-
emits: /* @__PURE__ */
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
}, "loadComplete"),
|
|
28
|
-
|
|
25
|
+
emits: /* @__PURE__ */ g(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
26
|
+
setup(r, { emit: l }) {
|
|
27
|
+
const d = l, p = r, m = B(r, "modelValue"), { comClass: P, defAttrs: u, closeLoading: f, watermarkStyle: V } = A(p, m), k = /* @__PURE__ */ a(() => {
|
|
28
|
+
f(), d("loadComplete");
|
|
29
|
+
}, "loadComplete"), w = /* @__PURE__ */ a(() => {
|
|
30
|
+
f(), d("loadError");
|
|
29
31
|
}, "loadError");
|
|
30
|
-
function
|
|
31
|
-
var
|
|
32
|
-
|
|
32
|
+
function _(e) {
|
|
33
|
+
var s, t, C, v;
|
|
34
|
+
p.hideOnClickModal && (e.target === e.currentTarget || (t = (s = e == null ? void 0 : e.target) == null ? void 0 : s.className) != null && t.includes && ((v = (C = e == null ? void 0 : e.target) == null ? void 0 : C.className) != null && v.includes("docx-wrapper"))) && (m.value = !1);
|
|
33
35
|
}
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
return a(_, "closePreview"), (e, s) => {
|
|
37
|
+
const t = W;
|
|
38
|
+
return m.value ? (n(), M("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: S(o(P)),
|
|
41
|
+
onClick: _
|
|
42
|
+
}, [
|
|
43
|
+
e.showWatermark ? (n(), L(t, i({ key: 0 }, e.watermarkOption, { style: o(V) }), {
|
|
44
|
+
default: x(() => [
|
|
45
|
+
D(c, i(o(y)(o(u), e.$attrs), {
|
|
46
|
+
onLoadComplete: k,
|
|
47
|
+
onLoadError: w
|
|
48
|
+
}), null, 16)
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 16, ["style"])) : (n(), L(c, i({ key: 1 }, o(y)(o(u), e.$attrs), {
|
|
52
|
+
onLoadComplete: k,
|
|
53
|
+
onLoadError: w
|
|
54
|
+
}), null, 16))
|
|
55
|
+
], 2)) : N("", !0);
|
|
56
|
+
};
|
|
44
57
|
}
|
|
45
58
|
});
|
|
46
59
|
export {
|
|
47
|
-
|
|
60
|
+
I as default
|
|
48
61
|
};
|
|
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-a550f414"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a550f414"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|