@lingshugroup/web-plus 1.0.40 → 1.0.41
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/_constants/prviewType/index.cjs +1 -0
- package/lib/packages/ls-components/components/{preview_pdf/types → _constants/prviewType}/index.js +6 -4
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.cjs +1 -0
- package/lib/packages/ls-components/components/_hooks/usePreviewHook/index.js +53 -0
- 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/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +71 -69
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +1 -1
- package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/form/types/index.js.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/Docx.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index2.js +8 -7
- package/lib/packages/ls-components/components/preview_docx/Docx.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_docx/Docx.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 +1 -1
- 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 +25 -66
- 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_docx/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_docx/types/index.js +4 -26
- 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 +4 -3
- 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 +3 -3
- 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 +25 -66
- 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_image/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_image/types/index.js +7 -27
- 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 +25 -66
- 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 +25 -66
- 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/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index.js +2 -2
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js +4 -3
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/Xlsx.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_xlsx/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/preview_xlsx/types/index.js +4 -26
- package/package.json +1 -1
- package/lib/packages/ls-components/components/preview_image/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/preview_image/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/preview_pdf/types/index.cjs +0 -1
|
@@ -1,84 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { lsPreviewProp as
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
/* empty css */
|
|
10
|
-
/* empty css */
|
|
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({
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var r = (e, o) => v(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { defineComponent as d, mergeModels as a, useModel as L, openBlock as P, createElementBlock as V, normalizeClass as w, unref as t, createVNode as E, mergeProps as _, createCommentVNode as g } from "vue";
|
|
4
|
+
import n from "../Docx.vue/index.js";
|
|
5
|
+
import k from "../../_hooks/usePreviewHook/index.js";
|
|
6
|
+
import { lsPreviewProp as x } from "../../_constants/prviewType/index.js";
|
|
7
|
+
import B from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
8
|
+
const D = d({
|
|
14
9
|
name: "LSPreviewDocx"
|
|
15
|
-
}),
|
|
16
|
-
...
|
|
10
|
+
}), z = /* @__PURE__ */ d({
|
|
11
|
+
...D,
|
|
17
12
|
name: "LSPreviewDocx",
|
|
18
13
|
components: {
|
|
19
|
-
LSDocx:
|
|
14
|
+
LSDocx: n
|
|
20
15
|
},
|
|
21
16
|
inheritAttrs: !1,
|
|
22
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ a(x, {
|
|
23
18
|
modelValue: {
|
|
24
19
|
type: Boolean
|
|
25
20
|
},
|
|
26
21
|
modelModifiers: {}
|
|
27
22
|
}),
|
|
28
|
-
emits: /* @__PURE__ */
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
let t = null;
|
|
35
|
-
f(
|
|
36
|
-
() => o == null ? void 0 : o.value,
|
|
37
|
-
(r) => {
|
|
38
|
-
r && d();
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
immediate: !0,
|
|
42
|
-
deep: !0
|
|
43
|
-
}
|
|
44
|
-
), f(
|
|
45
|
-
() => e.source,
|
|
46
|
-
(r) => {
|
|
47
|
-
u.source = r, r && clearTimeout(t);
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
immediate: !0,
|
|
51
|
-
deep: !0
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
function d() {
|
|
55
|
-
e.needLoading && (s.value = I.service(e.loadingOption)), t = setTimeout(() => {
|
|
56
|
-
e.source || (O.error("加载超时,请检查网络后重试!"), m(), o.value = !1), clearTimeout(t);
|
|
57
|
-
}, 2e4);
|
|
58
|
-
}
|
|
59
|
-
n(d, "openLoading");
|
|
60
|
-
const m = /* @__PURE__ */ n(() => {
|
|
61
|
-
t && clearTimeout(t), e.needLoading && s.value && s.value.close();
|
|
62
|
-
}, "closeLoading"), E = /* @__PURE__ */ n(() => {
|
|
63
|
-
m(), c("loadComplete");
|
|
64
|
-
}, "loadComplete"), B = /* @__PURE__ */ n(() => {
|
|
65
|
-
m(), c("loadError");
|
|
23
|
+
emits: /* @__PURE__ */ a(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
24
|
+
setup(e, { emit: o }) {
|
|
25
|
+
const l = o, i = e, m = L(e, "modelValue"), { comClass: c, defAttrs: p, closeLoading: s } = k(i, m), u = /* @__PURE__ */ r(() => {
|
|
26
|
+
s(), l("loadComplete");
|
|
27
|
+
}, "loadComplete"), f = /* @__PURE__ */ r(() => {
|
|
28
|
+
s(), l("loadError");
|
|
66
29
|
}, "loadError");
|
|
67
|
-
return
|
|
68
|
-
o.value && d();
|
|
69
|
-
}), T(() => {
|
|
70
|
-
m();
|
|
71
|
-
}), (r, b) => o.value ? (V(), h("div", {
|
|
30
|
+
return (C, M) => m.value ? (P(), V("div", {
|
|
72
31
|
key: 0,
|
|
73
|
-
class:
|
|
32
|
+
class: w(t(c))
|
|
74
33
|
}, [
|
|
75
|
-
|
|
76
|
-
onLoadComplete:
|
|
77
|
-
onLoadError:
|
|
34
|
+
E(n, _(t(B)(t(p), C.$attrs), {
|
|
35
|
+
onLoadComplete: u,
|
|
36
|
+
onLoadError: f
|
|
78
37
|
}), null, 16)
|
|
79
|
-
], 2)) :
|
|
38
|
+
], 2)) : g("", !0);
|
|
80
39
|
}
|
|
81
40
|
});
|
|
82
41
|
export {
|
|
83
|
-
|
|
42
|
+
z as default
|
|
84
43
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_utils/runtime/index.cjs"),o=e.buildProps({source:{type:[ArrayBuffer,String],default:null},onClose:Function});exports.docxProps=o;
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { buildProps as n } from "../../_utils/runtime/index.js";
|
|
4
|
-
const a = ["update:source", "loadComplete", "loadError"], i = ["close", "switch"].concat(a), l = n({
|
|
1
|
+
import { buildProps as o } from "../../_utils/runtime/index.js";
|
|
2
|
+
const t = o({
|
|
5
3
|
source: {
|
|
6
4
|
type: [ArrayBuffer, String],
|
|
7
5
|
default: null
|
|
8
6
|
},
|
|
9
7
|
onClose: Function
|
|
10
|
-
})
|
|
11
|
-
source: {},
|
|
12
|
-
zoomSize: {
|
|
13
|
-
type: [Number, String],
|
|
14
|
-
default: 1.5
|
|
15
|
-
},
|
|
16
|
-
needLoading: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !0
|
|
19
|
-
},
|
|
20
|
-
loadingOption: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default: /* @__PURE__ */ e(() => ({
|
|
23
|
-
text: "Loading",
|
|
24
|
-
background: "rgba(0, 0, 0, 0.3)"
|
|
25
|
-
}), "default")
|
|
26
|
-
}
|
|
27
|
-
};
|
|
8
|
+
});
|
|
28
9
|
export {
|
|
29
|
-
|
|
30
|
-
a as emitNames,
|
|
31
|
-
s as lsPreviewProp,
|
|
32
|
-
i as previewEmits
|
|
10
|
+
t as docxProps
|
|
33
11
|
};
|
|
@@ -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-80e42e72"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-80e42e72"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ne=Object.defineProperty;var r=(z,I)=>ne(z,"name",{value:I,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../../../../node_modules/.pnpm/@vueuse_core@12.0.0_typescript@5.5.4/node_modules/@vueuse/core/index/index.cjs"),te=require("../../_hooks/useNamespace/index.cjs"),oe=require("../../_hooks/useZIndex/index.cjs"),E=require("../../_constants/aria/index.cjs"),F=require("../../_utils/check/index.cjs"),se=require("../../_utils/types/index.cjs"),re=require("../types/index.cjs"),ae=require("../../_constants/prviewType/index.cjs"),f=require("../../icon/Index.vue/index.cjs"),L=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle/index.cjs"),_=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.cjs"),le=["src"],ie=["src"],ce=e.defineComponent({name:"LSImage"}),ue=e.defineComponent({...ce,props:re.imageViewerProps,emits:ae.previewEmits,setup(z,{expose:I,emit:j}){const v={CONTAIN:{name:"FullScreen"},ORIGINAL:{name:"ScaleToOriginal"}},Z=F.isFirefox()?"DOMMouseScroll":"mousewheel",l=z,h=j,s=te.useNamespace("image"),{nextZIndex:H}=oe.useZIndex(),V=e.ref(),T=e.ref([]),S=e.effectScope(),g=e.ref(!0),u=e.ref(l.initialIndex),N=e.shallowRef(v.CONTAIN),a=e.reactive({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1,width:"auto",height:"auto",objectFit:"none"}),P=e.computed(()=>{const{source:n}=l;return F.isString(n)||n.length<=1}),B=e.computed(()=>u.value===0),D=e.computed(()=>u.value===l.source.length-1),G=e.computed(()=>l.source[u.value]),M=e.computed(()=>{const{scale:n,deg:t,offsetX:o,offsetY:i,enableTransition:c,width:b,height:x,objectFit:C}=a;let m=o/n,p=i/n;switch(t%360){case 90:case-270:[m,p]=[p,-m];break;case 180:case-180:[m,p]=[-m,-p];break;case 270:case-90:[m,p]=[-p,m];break}const k={transform:`scale(${n}) rotate(${t}deg) translate(${m}px, ${p}px)`,transition:c?"transform .3s":""};return N.value.name===v.CONTAIN.name&&(k.maxWidth=k.maxHeight="100%"),k.width=b,k.height=x,k.objectFit=C,k}),W=e.computed(()=>F.isNumber(l.zIndex)?l.zIndex:H()),J=r(()=>{l.onClose&&l.onClose(),h("update:source",[])},"closeFunc");function y(){Q(),J()}r(y,"hide");function K(){const n=L.default(o=>{switch(o.code){case E.EVENT_CODE.esc:l.closeOnPressEscape&&y();break;case E.EVENT_CODE.space:X();break;case E.EVENT_CODE.left:Y();break;case E.EVENT_CODE.up:d("zoomIn");break;case E.EVENT_CODE.right:$();break;case E.EVENT_CODE.down:d("zoomOut");break}}),t=L.default(o=>{(o.wheelDelta?o.wheelDelta:-o.detail)>0?d("zoomIn",{zoomRate:1.2,enableTransition:!1}):d("zoomOut",{zoomRate:1.2,enableTransition:!1})});S.run(()=>{w.useEventListener(document,"keydown",n),w.useEventListener(document,Z,t)})}r(K,"registerEventListener");function Q(){S.stop()}r(Q,"unregisterEventListener");function q(){g.value=!1,h("loadComplete")}r(q,"handleImgLoad");function R(n){g.value=!1,n.target.alt="ls.image.error",h("loadError")}r(R,"handleImgError");function A(n){if(g.value||n.button!==0||!V.value)return;a.enableTransition=!1;const{offsetX:t,offsetY:o}=a,i=n.pageX,c=n.pageY,b=L.default(C=>{a.offsetX=t+C.pageX-i,a.offsetY=o+C.pageY-c}),x=w.useEventListener(document,"mousemove",b);w.useEventListener(document,"mouseup",()=>{x()}),n.preventDefault()}r(A,"handleMouseDown");function U(){_.default(a,{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1,width:"auto",height:"auto",objectFit:"none"})}r(U,"reset");function ee(){_.default(a,{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1,width:"100%",height:"100%",objectFit:"cover"})}r(ee,"fullScreen");function X(){if(g.value)return;const n=se.keysOf(v),t=Object.values(v),o=N.value.name,c=(t.findIndex(b=>b.name===o)+1)%n.length;N.value=v[n[c]],o===v.CONTAIN.name?ee():U()}r(X,"toggleMode");function O(n){const t=l.source.length;u.value=(n+t)%t}r(O,"setActiveItem");function Y(){B.value&&!l.infinite||O(u.value-1)}r(Y,"prev");function $(){D.value&&!l.infinite||O(u.value+1)}r($,"next");function d(n,t={}){if(g.value)return;const{zoomRate:o,rotateDeg:i,enableTransition:c}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...t};switch(n){case"zoomOut":a.scale>.2&&(a.scale=Number.parseFloat((a.scale/o).toFixed(3)));break;case"zoomIn":a.scale<7&&(a.scale=Number.parseFloat((a.scale*o).toFixed(3)));break;case"clockwise":a.deg+=i;break;case"anticlockwise":a.deg-=i;break}a.enableTransition=c}return r(d,"handleActions"),e.watch(G,()=>{e.nextTick(()=>{const n=T.value[0];n!=null&&n.complete||(g.value=!0)})}),e.watch(u,n=>{h("switch",n)}),e.onMounted(()=>{var n,t;K(),(t=(n=V.value)==null?void 0:n.focus)==null||t.call(n)}),I({setActiveItem:O}),(n,t)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:!n.teleported},[e.createVNode(e.Transition,{name:"viewer-fade",appear:""},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"wrapper",ref:V,tabindex:-1,class:e.normalizeClass(e.unref(s).e("wrapper")),style:e.normalizeStyle({zIndex:e.unref(W)})},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("mask")),onClick:t[0]||(t[0]=e.withModifiers(o=>n.hideOnClickModal&&y(),["self"]))},null,2),e.createElementVNode("span",{class:e.normalizeClass([e.unref(s).e("btn"),e.unref(s).e("close")]),onClick:y},[e.createVNode(f.default,{name:"Close",size:24,color:"#FFF"})],2),e.unref(P)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(s).e("btn"),e.unref(s).e("prev"),e.unref(s).is("disabled",!n.infinite&&e.unref(B))]),onClick:Y},[e.createVNode(f.default,{name:"ArrowLeft",size:24,color:"#FFF"})],2),e.createElementVNode("span",{class:e.normalizeClass([e.unref(s).e("btn"),e.unref(s).e("next"),e.unref(s).is("disabled",!n.infinite&&e.unref(D))]),onClick:$},[e.createVNode(f.default,{name:"ArrowRight",size:24,color:"#FFF"})],2)],64)),e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).e("btn"),e.unref(s).e("actions")])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("actions__inner"))},[e.createVNode(f.default,{name:"ZoomOut",size:24,color:"#FFF",onClick:t[1]||(t[1]=o=>d("zoomOut"))}),e.createVNode(f.default,{name:"ZoomIn",size:24,color:"#FFF",onClick:t[2]||(t[2]=o=>d("zoomIn"))}),e.createElementVNode("i",{class:e.normalizeClass(e.unref(s).e("actions__divider"))},null,2),e.createVNode(f.default,{name:e.unref(N).name,size:24,color:"#FFF",onClick:X},null,8,["name"]),e.createElementVNode("i",{class:e.normalizeClass(e.unref(s).e("actions__divider"))},null,2),e.createVNode(f.default,{name:"RefreshLeft",size:24,color:"#FFF",onClick:t[3]||(t[3]=o=>d("anticlockwise"))}),e.createVNode(f.default,{name:"RefreshRight",size:24,color:"#FFF",onClick:t[4]||(t[4]=o=>d("clockwise"))})],2)],2),n.source?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(s).e("canvas"))},[e.unref(F.isArray)(n.source)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.source,(o,i)=>e.withDirectives((e.openBlock(),e.createElementBlock("img",{ref_for:!0,ref:r(c=>e.unref(T)[i]=c,"ref"),key:o,src:o,style:e.normalizeStyle(e.unref(M)),class:e.normalizeClass(e.unref(s).e("img")),onLoad:q,onError:R,onMousedown:A},null,46,le)),[[e.vShow,i===e.unref(u)]])),128)):(e.openBlock(),e.createElementBlock("img",{ref:r(o=>e.unref(T)[0]=o,"ref"),key:n.source,src:n.source,style:e.normalizeStyle(e.unref(M)),class:e.normalizeClass(e.unref(s).e("img")),onLoad:q,onError:R,onMousedown:A},null,46,ie))],2)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0)],6)]),_:3})],8,["disabled"]))]))}});exports.default=ue;
|
|
@@ -7,13 +7,14 @@ import { useZIndex as ye } from "../../_hooks/useZIndex/index.js";
|
|
|
7
7
|
import { EVENT_CODE as C } from "../../_constants/aria/index.js";
|
|
8
8
|
import { isString as Oe, isNumber as Ee, isArray as Le, isFirefox as Se } from "../../_utils/check/index.js";
|
|
9
9
|
import { keysOf as Me } from "../../_utils/types/index.js";
|
|
10
|
-
import { imageViewerProps as Re
|
|
10
|
+
import { imageViewerProps as Re } from "../types/index.js";
|
|
11
|
+
import { previewEmits as Ae } from "../../_constants/prviewType/index.js";
|
|
11
12
|
import v from "../../icon/Index.vue/index.js";
|
|
12
13
|
import $ from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle/index.js";
|
|
13
14
|
import U from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
14
15
|
const Xe = ["src"], Ye = ["src"], De = ee({
|
|
15
16
|
name: "LSImage"
|
|
16
|
-
}),
|
|
17
|
+
}), Qe = /* @__PURE__ */ ee({
|
|
17
18
|
...De,
|
|
18
19
|
props: Re,
|
|
19
20
|
emits: Ae,
|
|
@@ -341,5 +342,5 @@ const Xe = ["src"], Ye = ["src"], De = ee({
|
|
|
341
342
|
}
|
|
342
343
|
});
|
|
343
344
|
export {
|
|
344
|
-
|
|
345
|
+
Qe as default
|
|
345
346
|
};
|
|
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-7c917dd8"]]);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 _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7c917dd8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var f=Object.defineProperty;var t=(o,r)=>f(o,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../Image.vue/index.cjs"),g=require("../../_hooks/usePreviewHook/index.cjs"),v=require("../../_constants/prviewType/index.cjs"),C=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.cjs"),P=e.defineComponent({name:"LSPreviewImage"}),_=e.defineComponent({...P,name:"LSPreviewImage",components:{LSImage:n.default},inheritAttrs:!1,props:e.mergeModels(v.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(o,{emit:r}){const l=r,d=o,s=e.useModel(o,"modelValue"),{comClass:u,defAttrs:m,closeLoading:a}=g.default(d,s),i=t(()=>{a(),l("loadComplete")},"loadComplete"),c=t(()=>{a(),l("loadError")},"loadError");return(p,w)=>s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(u))},[e.createVNode(n.default,e.mergeProps(e.unref(C.default)(e.unref(m),p.$attrs),{onLoadComplete:i,onLoadError:c}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=_;
|
|
@@ -1,84 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { lsPreviewProp as
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
/* empty css */
|
|
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 $ = v({
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var r = (e, o) => g(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { defineComponent as d, mergeModels as s, useModel as v, openBlock as L, createElementBlock as P, normalizeClass as V, unref as t, createVNode as w, mergeProps as E, createCommentVNode as _ } from "vue";
|
|
4
|
+
import n from "../Image.vue/index.js";
|
|
5
|
+
import k from "../../_hooks/usePreviewHook/index.js";
|
|
6
|
+
import { lsPreviewProp as B } from "../../_constants/prviewType/index.js";
|
|
7
|
+
import I from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
8
|
+
const M = d({
|
|
14
9
|
name: "LSPreviewImage"
|
|
15
|
-
}),
|
|
16
|
-
|
|
10
|
+
}), z = /* @__PURE__ */ d({
|
|
11
|
+
...M,
|
|
17
12
|
name: "LSPreviewImage",
|
|
18
13
|
components: {
|
|
19
|
-
LSImage:
|
|
14
|
+
LSImage: n
|
|
20
15
|
},
|
|
21
16
|
inheritAttrs: !1,
|
|
22
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ s(B, {
|
|
23
18
|
modelValue: {
|
|
24
19
|
type: Boolean
|
|
25
20
|
},
|
|
26
21
|
modelModifiers: {}
|
|
27
22
|
}),
|
|
28
|
-
emits: /* @__PURE__ */
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
let t = null;
|
|
35
|
-
f(
|
|
36
|
-
() => o == null ? void 0 : o.value,
|
|
37
|
-
(r) => {
|
|
38
|
-
r && d();
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
immediate: !0,
|
|
42
|
-
deep: !0
|
|
43
|
-
}
|
|
44
|
-
), f(
|
|
45
|
-
() => e.source,
|
|
46
|
-
(r) => {
|
|
47
|
-
u.source = r, r && clearTimeout(t);
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
immediate: !0,
|
|
51
|
-
deep: !0
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
function d() {
|
|
55
|
-
e.needLoading && (s.value = O.service(e.loadingOption)), t = setTimeout(() => {
|
|
56
|
-
e.source || (R.error("加载超时,请检查网络后重试!"), n(), o.value = !1), clearTimeout(t);
|
|
57
|
-
}, 2e4);
|
|
58
|
-
}
|
|
59
|
-
a(d, "openLoading");
|
|
60
|
-
const n = /* @__PURE__ */ a(() => {
|
|
61
|
-
t && clearTimeout(t), e.needLoading && s.value && s.value.close();
|
|
62
|
-
}, "closeLoading"), E = /* @__PURE__ */ a(() => {
|
|
63
|
-
n(), c("loadComplete");
|
|
64
|
-
}, "loadComplete"), B = /* @__PURE__ */ a(() => {
|
|
65
|
-
n(), c("loadError");
|
|
23
|
+
emits: /* @__PURE__ */ s(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
24
|
+
setup(e, { emit: o }) {
|
|
25
|
+
const m = o, i = e, l = v(e, "modelValue"), { comClass: p, defAttrs: c, closeLoading: a } = k(i, l), u = /* @__PURE__ */ r(() => {
|
|
26
|
+
a(), m("loadComplete");
|
|
27
|
+
}, "loadComplete"), f = /* @__PURE__ */ r(() => {
|
|
28
|
+
a(), m("loadError");
|
|
66
29
|
}, "loadError");
|
|
67
|
-
return S(()
|
|
68
|
-
o.value && d();
|
|
69
|
-
}), T(() => {
|
|
70
|
-
n();
|
|
71
|
-
}), (r, j) => o.value ? (V(), h("div", {
|
|
30
|
+
return (C, S) => l.value ? (L(), P("div", {
|
|
72
31
|
key: 0,
|
|
73
|
-
class:
|
|
32
|
+
class: V(t(p))
|
|
74
33
|
}, [
|
|
75
|
-
|
|
76
|
-
onLoadComplete:
|
|
77
|
-
onLoadError:
|
|
34
|
+
w(n, E(t(I)(t(c), C.$attrs), {
|
|
35
|
+
onLoadComplete: u,
|
|
36
|
+
onLoadError: f
|
|
78
37
|
}), null, 16)
|
|
79
|
-
], 2)) :
|
|
38
|
+
], 2)) : _("", !0);
|
|
80
39
|
}
|
|
81
40
|
});
|
|
82
41
|
export {
|
|
83
|
-
|
|
42
|
+
z as default
|
|
84
43
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var t=(o,r)=>l(o,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_utils/runtime/index.cjs"),i=e.buildProps({source:{type:[e.definePropType(Array),String],default:t(()=>e.mutable([]),"default")},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},onClose:Function,zoomSize:{type:[Number,String],default:1.5}});exports.imageViewerProps=i;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (t, o) =>
|
|
3
|
-
import { buildProps as a, definePropType as
|
|
4
|
-
const
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var e = (t, o) => l(t, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { buildProps as a, definePropType as r, mutable as n } from "../../_utils/runtime/index.js";
|
|
4
|
+
const u = a({
|
|
5
5
|
source: {
|
|
6
|
-
type: [
|
|
6
|
+
type: [r(Array), String],
|
|
7
7
|
default: /* @__PURE__ */ e(() => n([]), "default")
|
|
8
8
|
},
|
|
9
9
|
zIndex: {
|
|
@@ -34,27 +34,7 @@ const i = ["update:source", "loadComplete", "loadError"], p = a({
|
|
|
34
34
|
type: [Number, String],
|
|
35
35
|
default: 1.5
|
|
36
36
|
}
|
|
37
|
-
})
|
|
38
|
-
source: {},
|
|
39
|
-
zoomSize: {
|
|
40
|
-
type: [Number, String],
|
|
41
|
-
default: 1.5
|
|
42
|
-
},
|
|
43
|
-
needLoading: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !0
|
|
46
|
-
},
|
|
47
|
-
loadingOption: {
|
|
48
|
-
type: Object,
|
|
49
|
-
default: /* @__PURE__ */ e(() => ({
|
|
50
|
-
text: "Loading",
|
|
51
|
-
background: "rgba(0, 0, 0, 0.3)"
|
|
52
|
-
}), "default")
|
|
53
|
-
}
|
|
54
|
-
};
|
|
37
|
+
});
|
|
55
38
|
export {
|
|
56
|
-
|
|
57
|
-
p as imageViewerProps,
|
|
58
|
-
c as lsPreviewProp,
|
|
59
|
-
s as previewEmits
|
|
39
|
+
u as imageViewerProps
|
|
60
40
|
};
|
|
@@ -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-425256ec"]]);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-425256ec"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../Pdf.vue/index.cjs"),v=require("../../_hooks/usePreviewHook/index.cjs"),P=require("../../_constants/prviewType/index.cjs"),C=require("../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.cjs"),g=e.defineComponent({name:"LSPreviewPdf"}),_=e.defineComponent({...g,name:"LSPreviewPdf",components:{LSPdf:a.default},inheritAttrs:!1,props:e.mergeModels(P.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(o,{emit:r}){const l=r,d=o,s=e.useModel(o,"modelValue"),{comClass:u,defAttrs:i,closeLoading:n}=v.default(d,s),c=t(()=>{n(),l("loadComplete")},"loadComplete"),m=t(()=>{n(),l("loadError")},"loadError");return(f,w)=>s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(u))},[e.createVNode(a.default,e.mergeProps(e.unref(C.default)(e.unref(i),f.$attrs),{onLoadComplete:c,onLoadError:m}),null,16)],2)):e.createCommentVNode("",!0)}});exports.default=_;
|
|
@@ -1,84 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { lsPreviewProp as
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
/* empty css */
|
|
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 $ = g({
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var r = (e, o) => C(e, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { defineComponent as d, mergeModels as a, useModel as v, openBlock as L, createElementBlock as V, normalizeClass as w, unref as t, createVNode as E, mergeProps as _, createCommentVNode as g } from "vue";
|
|
4
|
+
import n from "../Pdf.vue/index.js";
|
|
5
|
+
import k from "../../_hooks/usePreviewHook/index.js";
|
|
6
|
+
import { lsPreviewProp as B } from "../../_constants/prviewType/index.js";
|
|
7
|
+
import M from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
8
|
+
const S = d({
|
|
14
9
|
name: "LSPreviewPdf"
|
|
15
|
-
}),
|
|
16
|
-
|
|
10
|
+
}), H = /* @__PURE__ */ d({
|
|
11
|
+
...S,
|
|
17
12
|
name: "LSPreviewPdf",
|
|
18
13
|
components: {
|
|
19
|
-
LSPdf:
|
|
14
|
+
LSPdf: n
|
|
20
15
|
},
|
|
21
16
|
inheritAttrs: !1,
|
|
22
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ a(B, {
|
|
23
18
|
modelValue: {
|
|
24
19
|
type: Boolean
|
|
25
20
|
},
|
|
26
21
|
modelModifiers: {}
|
|
27
22
|
}),
|
|
28
|
-
emits: /* @__PURE__ */
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
let t = null;
|
|
35
|
-
f(
|
|
36
|
-
() => o == null ? void 0 : o.value,
|
|
37
|
-
(r) => {
|
|
38
|
-
r && u();
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
immediate: !0,
|
|
42
|
-
deep: !0
|
|
43
|
-
}
|
|
44
|
-
), f(
|
|
45
|
-
() => e.source,
|
|
46
|
-
(r) => {
|
|
47
|
-
d.source = r, r && clearTimeout(t);
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
immediate: !0,
|
|
51
|
-
deep: !0
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
function u() {
|
|
55
|
-
e.needLoading && (s.value = O.service(e.loadingOption)), t = setTimeout(() => {
|
|
56
|
-
e.source || (R.error("加载超时,请检查网络后重试!"), m(), o.value = !1), clearTimeout(t);
|
|
57
|
-
}, 2e4);
|
|
58
|
-
}
|
|
59
|
-
n(u, "openLoading");
|
|
60
|
-
const m = /* @__PURE__ */ n(() => {
|
|
61
|
-
t && clearTimeout(t), e.needLoading && s.value && s.value.close();
|
|
62
|
-
}, "closeLoading"), P = /* @__PURE__ */ n(() => {
|
|
63
|
-
m(), c("loadComplete");
|
|
64
|
-
}, "loadComplete"), E = /* @__PURE__ */ n(() => {
|
|
65
|
-
m(), c("loadError");
|
|
23
|
+
emits: /* @__PURE__ */ a(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
24
|
+
setup(e, { emit: o }) {
|
|
25
|
+
const l = o, i = e, m = v(e, "modelValue"), { comClass: p, defAttrs: c, closeLoading: s } = k(i, m), f = /* @__PURE__ */ r(() => {
|
|
26
|
+
s(), l("loadComplete");
|
|
27
|
+
}, "loadComplete"), u = /* @__PURE__ */ r(() => {
|
|
28
|
+
s(), l("loadError");
|
|
66
29
|
}, "loadError");
|
|
67
|
-
return
|
|
68
|
-
o.value && u();
|
|
69
|
-
}), V(() => {
|
|
70
|
-
m();
|
|
71
|
-
}), (r, j) => o.value ? (h(), k("div", {
|
|
30
|
+
return (P, h) => m.value ? (L(), V("div", {
|
|
72
31
|
key: 0,
|
|
73
|
-
class:
|
|
32
|
+
class: w(t(p))
|
|
74
33
|
}, [
|
|
75
|
-
|
|
76
|
-
onLoadComplete:
|
|
77
|
-
onLoadError:
|
|
34
|
+
E(n, _(t(M)(t(c), P.$attrs), {
|
|
35
|
+
onLoadComplete: f,
|
|
36
|
+
onLoadError: u
|
|
78
37
|
}), null, 16)
|
|
79
|
-
], 2)) :
|
|
38
|
+
], 2)) : g("", !0);
|
|
80
39
|
}
|
|
81
40
|
});
|
|
82
41
|
export {
|
|
83
|
-
|
|
42
|
+
H as default
|
|
84
43
|
};
|
|
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-a3660b58"]]);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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a3660b58"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|