@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
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
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-779a8f66"]]);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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-779a8f66"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */const e=require("vue"),p=/* empty css */
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */const e=require("vue"),p=/* empty css */d=/* empty css */m=/* empty css */f=/* empty css */v=/* empty css */k=e.defineComponent({name:"LSButton"}),y=e.defineComponent({...k,props:d.lsBtnProp,setup(B){const r=e.useSlots(),s=m.useNamespace("button").b(),n=e.inject(p.lsBtnKey,void 0),o=e.ref(""),a=e.ref(""),l=e.ref("");n&&(o.value=n.separator,a.value=n.separatorColor,l.value=n.separatorSize);const u=e.computed(()=>({color:a.value,fontSize:`${l.value}px`}));return(t,C)=>{const c=v.ElButton;return t.$attrs.icon&&!e.unref(r).default?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(c,e.mergeProps(t.$attrs,{class:e.unref(s)}),null,16,["class"]),o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ls-separator",style:e.normalizeStyle(u.value)},e.toDisplayString(o.value),5)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(c,e.mergeProps({key:1},t.$attrs,{class:e.unref(s)}),{default:e.withCtx(()=>{var i;return[!t.$attrs.icon&&((i=t.iconConfig)!=null&&i.name||e.unref(r).icon)?(e.openBlock(),e.createBlock(f.default,e.mergeProps({key:0,class:[e.unref(r).default?"":"only-icon"]},t.iconConfig),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon",{},void 0,!0)]),_:3},16,["class"])):e.createCommentVNode("",!0),e.unref(r).default?e.renderSlot(t.$slots,"default",{key:1},void 0,!0):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("span",{key:2,class:"ls-separator",style:e.normalizeStyle(u.value)},e.toDisplayString(o.value),5)):e.createCommentVNode("",!0)]}),_:3},16,["class"]))}}});exports.default=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { defineComponent as _, useSlots as $, inject as g, ref as
|
|
3
|
+
import { defineComponent as _, useSlots as $, inject as g, ref as n, computed as z, createElementBlock as u, createBlock as y, unref as o, openBlock as r, Fragment as b, createVNode as N, createCommentVNode as l, mergeProps as c, normalizeStyle as S, toDisplayString as k, withCtx as B, renderSlot as C } from "vue";
|
|
4
4
|
import { lsBtnKey as P } from "../../_constants/token/index.js";
|
|
5
5
|
import { lsBtnProp as h } from "../types/index.js";
|
|
6
6
|
import { useNamespace as E } from "../../_hooks/useNamespace/index.js";
|
|
@@ -12,40 +12,40 @@ const j = _({
|
|
|
12
12
|
...j,
|
|
13
13
|
props: h,
|
|
14
14
|
setup(w) {
|
|
15
|
-
const s = $(),
|
|
16
|
-
a && (
|
|
15
|
+
const s = $(), p = E("button").b(), a = g(P, void 0), t = n(""), i = n(""), m = n("");
|
|
16
|
+
a && (t.value = a.separator, i.value = a.separatorColor, m.value = a.separatorSize);
|
|
17
17
|
const f = z(() => ({
|
|
18
18
|
color: i.value,
|
|
19
19
|
fontSize: `${m.value}px`
|
|
20
20
|
}));
|
|
21
|
-
return (
|
|
21
|
+
return (e, F) => {
|
|
22
22
|
const d = V;
|
|
23
|
-
return
|
|
24
|
-
N(d,
|
|
25
|
-
|
|
23
|
+
return e.$attrs.icon && !o(s).default ? (r(), u(b, { key: 0 }, [
|
|
24
|
+
N(d, c(e.$attrs, { class: o(p) }), null, 16, ["class"]),
|
|
25
|
+
t.value ? (r(), u("div", {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "ls-separator",
|
|
28
|
-
style:
|
|
29
|
-
},
|
|
30
|
-
], 64)) : (r(),
|
|
28
|
+
style: S(f.value)
|
|
29
|
+
}, k(t.value), 5)) : l("", !0)
|
|
30
|
+
], 64)) : (r(), y(d, c({ key: 1 }, e.$attrs, { class: o(p) }), {
|
|
31
31
|
default: B(() => {
|
|
32
|
-
var
|
|
32
|
+
var v;
|
|
33
33
|
return [
|
|
34
|
-
!
|
|
34
|
+
!e.$attrs.icon && ((v = e.iconConfig) != null && v.name || o(s).icon) ? (r(), y(L, c({
|
|
35
35
|
key: 0,
|
|
36
36
|
class: [o(s).default ? "" : "only-icon"]
|
|
37
|
-
},
|
|
37
|
+
}, e.iconConfig), {
|
|
38
38
|
default: B(() => [
|
|
39
|
-
C(
|
|
39
|
+
C(e.$slots, "icon", {}, void 0, !0)
|
|
40
40
|
]),
|
|
41
41
|
_: 3
|
|
42
|
-
}, 16, ["class"])) :
|
|
43
|
-
o(s).default ? C(
|
|
44
|
-
|
|
42
|
+
}, 16, ["class"])) : l("", !0),
|
|
43
|
+
o(s).default ? C(e.$slots, "default", { key: 1 }, void 0, !0) : l("", !0),
|
|
44
|
+
t.value ? (r(), u("span", {
|
|
45
45
|
key: 2,
|
|
46
46
|
class: "ls-separator",
|
|
47
|
-
style:
|
|
48
|
-
},
|
|
47
|
+
style: S(f.value)
|
|
48
|
+
}, k(t.value), 5)) : l("", !0)
|
|
49
49
|
];
|
|
50
50
|
}),
|
|
51
51
|
_: 3
|
|
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 r=/* empty css */t=r.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 r=/* empty css */t=r.default(e.default,[["__scopeId","data-v-56e9252b"]]);exports.default=t;
|
|
@@ -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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-56e9252b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty;var
|
|
1
|
+
"use strict";var k=Object.defineProperty;var p=(u,m)=>k(u,"name",{value:m,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=;/* empty css */;/* empty css */const y=/* empty css */B=/* empty css */N={key:0,class:"ls-cropper-preview"},P=["src"],T=e.defineComponent({name:"LSCropper"}),S=e.defineComponent({...T,props:y.lsProps,emits:y.lsEmits,setup(u,{expose:m,emit:w}){const _=B.useNamespace("cropper").b(),f=u,d=w,c=e.ref(),g=e.ref("");function R(r){f.imgUrl&&c.value&&c.value.getCropBlob(async o=>{U(o,r)})}p(R,"realTime");function U(r,n){if(f.graphicsType==="square"){C(r,n);return}const o=new FileReader;o.readAsDataURL(r),o.onload=h=>{const E=h.target.result,s=new Image;s.src=E,s.onload=()=>{const i=document.createElement("canvas"),a=s.width,l=s.height;i.width=a,i.height=l;const v={x:a/2,y:l/2,r:a/2},t=i.getContext("2d");t.clearRect(0,0,a,l),t.fillStyle="rgba(255, 255, 255, 0)",t.fillRect(0,0,a,l),t.save(),t.beginPath(),t.arc(v.x,v.y,v.r,0,Math.PI*2,!1),t.clip(),t.drawImage(s,0,0),t.restore(),i.toBlob(b=>{C(b,n)})},s.onerror=i=>{d("onCropError",i)}},o.onerror=h=>{d("onCropError",h)}}p(U,"drawAndClipImage");function C(r,n){const o=new File([r],f.fileName,{type:r.type});g.value=URL.createObjectURL(r),d("onCropData",{file:o,url:g.value,data:n})}return p(C,"excuteCropData"),m({lsCropperRef:c}),(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(_))},[e.createVNode(e.unref(q.VueCropper),e.mergeProps({ref_key:"lsCropperRef",ref:c,class:r.graphicsType,"auto-crop":!0,fixed:!0,"can-move":!0,img:r.imgUrl,"limit-min-size":r.limitMinSize,"output-type":r.outputType,original:!1,"info-true":!0},r.$attrs,{onRealTime:R}),null,16,["class","img","limit-min-size","output-type"]),r.showPreview?(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("img",{src:e.unref(g),alt:""},null,8,P)])):e.createCommentVNode("",!0)],2))}});exports.default=S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var k = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
import { defineComponent as U, ref as
|
|
2
|
+
var l = (p, m) => k(p, "name", { value: m, configurable: !0 });
|
|
3
|
+
import { defineComponent as U, ref as y, createElementBlock as w, openBlock as R, normalizeClass as z, unref as C, createVNode as B, createCommentVNode as I, mergeProps as L, createElementVNode as V } from "vue";
|
|
4
4
|
import { VueCropper as x } from "../../../../../node_modules/.pnpm/vue-cropper@1.1.4/node_modules/vue-cropper/dist/vue-cropper.es/index.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { lsEmits as D, lsProps as M } from "../types/index.js";
|
|
@@ -14,57 +14,57 @@ const A = {
|
|
|
14
14
|
...j,
|
|
15
15
|
props: M,
|
|
16
16
|
emits: D,
|
|
17
|
-
setup(
|
|
18
|
-
const E = S("cropper").b(),
|
|
17
|
+
setup(p, { expose: m, emit: _ }) {
|
|
18
|
+
const E = S("cropper").b(), u = p, f = _, a = y(), d = y("");
|
|
19
19
|
function N(e) {
|
|
20
|
-
|
|
20
|
+
u.imgUrl && a.value && a.value.getCropBlob(async (t) => {
|
|
21
21
|
P(t, e);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
l(N, "realTime");
|
|
25
25
|
function P(e, o) {
|
|
26
|
-
if (
|
|
27
|
-
|
|
26
|
+
if (u.graphicsType === "square") {
|
|
27
|
+
v(e, o);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const t = new FileReader();
|
|
31
31
|
t.readAsDataURL(e), t.onload = (g) => {
|
|
32
32
|
const T = g.target.result, s = new Image();
|
|
33
33
|
s.src = T, s.onload = () => {
|
|
34
|
-
const n = document.createElement("canvas"), i = s.width,
|
|
35
|
-
n.width = i, n.height =
|
|
34
|
+
const n = document.createElement("canvas"), i = s.width, c = s.height;
|
|
35
|
+
n.width = i, n.height = c;
|
|
36
36
|
const h = {
|
|
37
37
|
x: i / 2,
|
|
38
|
-
y:
|
|
38
|
+
y: c / 2,
|
|
39
39
|
r: i / 2
|
|
40
40
|
}, r = n.getContext("2d");
|
|
41
|
-
r.clearRect(0, 0, i,
|
|
42
|
-
|
|
41
|
+
r.clearRect(0, 0, i, c), r.fillStyle = "rgba(255, 255, 255, 0)", r.fillRect(0, 0, i, c), r.save(), r.beginPath(), r.arc(h.x, h.y, h.r, 0, Math.PI * 2, !1), r.clip(), r.drawImage(s, 0, 0), r.restore(), n.toBlob((b) => {
|
|
42
|
+
v(b, o);
|
|
43
43
|
});
|
|
44
44
|
}, s.onerror = (n) => {
|
|
45
|
-
|
|
45
|
+
f("onCropError", n);
|
|
46
46
|
};
|
|
47
47
|
}, t.onerror = (g) => {
|
|
48
|
-
|
|
48
|
+
f("onCropError", g);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
function
|
|
53
|
-
const t = new File([e],
|
|
54
|
-
d.value = URL.createObjectURL(e),
|
|
51
|
+
l(P, "drawAndClipImage");
|
|
52
|
+
function v(e, o) {
|
|
53
|
+
const t = new File([e], u.fileName, { type: e.type });
|
|
54
|
+
d.value = URL.createObjectURL(e), f("onCropData", { file: t, url: d.value, data: o });
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
lsCropperRef:
|
|
56
|
+
return l(v, "excuteCropData"), m({
|
|
57
|
+
lsCropperRef: a
|
|
58
58
|
}), (e, o) => (R(), w("div", {
|
|
59
59
|
class: z(C(E))
|
|
60
60
|
}, [
|
|
61
61
|
B(C(x), L({
|
|
62
62
|
ref_key: "lsCropperRef",
|
|
63
|
-
ref:
|
|
63
|
+
ref: a,
|
|
64
64
|
class: e.graphicsType,
|
|
65
65
|
"auto-crop": !0,
|
|
66
66
|
fixed: !0,
|
|
67
|
-
"can-move": !
|
|
67
|
+
"can-move": !0,
|
|
68
68
|
img: e.imgUrl,
|
|
69
69
|
"limit-min-size": e.limitMinSize,
|
|
70
70
|
"output-type": e.outputType,
|
|
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-b00aba5c"]]);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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b00aba5c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty;var w=(i,s)=>$(i,"name",{value:s,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),N=/* empty css */p=/* empty css */C=/* empty css */r=/* empty css */B=["src"],H=e.defineComponent({name:"LSLayout",inheritAttrs:!1,__name:"Index",props:p.lsLayoutProp,emits:p.lsEmitNames,setup(i,{emit:s}){const t=i,k=s,l=e.useSlots(),a=N.useNamespace("layout"),y=a.b(),
|
|
1
|
+
"use strict";var $=Object.defineProperty;var w=(i,s)=>$(i,"name",{value:s,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),N=/* empty css */p=/* empty css */C=/* empty css */r=/* empty css */B=["src"],H=e.defineComponent({name:"LSLayout",inheritAttrs:!1,__name:"Index",props:p.lsLayoutProp,emits:p.lsEmitNames,setup(i,{emit:s}){const t=i,k=s,l=e.useSlots(),a=N.useNamespace("layout"),y=a.b(),v=a.b("container-wrap"),d=a.b("container-section"),S=e.computed(()=>t.showFooter?{height:`calc(100vh - ${t.headerHeight} - ${t.footerHeight})`}:{height:`calc(100vh - ${t.headerHeight})`}),h=e.computed(()=>t.showFooter?{height:`calc(100vh - ${t.headerHeight} - ${t.footerHeight})`}:{minHeight:`calc(100vh - ${t.headerHeight})`});function u(o){k("onCommand",o)}return w(u,"onDropdownCommand2"),(o,V)=>{const c=r.ElHeader,m=r.ElAside,g=r.ElMain,n=r.ElContainer,f=r.ElFooter;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(y),o.customCss])},[[1,2].includes(Number(o.mode))?(e.openBlock(),e.createBlock(n,{key:0},{default:e.withCtx(()=>[e.createVNode(c,{height:o.headerHeight},{default:e.withCtx(()=>[e.unref(l).header?e.renderSlot(o.$slots,"header",{key:0},void 0,!0):(e.openBlock(),e.createBlock(C.default,e.mergeProps({key:1},o.$attrs,{mode:o.mode,logo:o.logo,"show-logo":o.showLogo,height:o.headerHeight,onOnDropdownCommand2:u}),e.createSlots({left:e.withCtx(()=>[e.renderSlot(o.$slots,"headerLeft",{},void 0,!0)]),right:e.withCtx(()=>[e.renderSlot(o.$slots,"headerRight",{},void 0,!0)]),_:2},[e.unref(l).headerTitle?{name:"title",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"headerTitle",{},void 0,!0)]),key:"0"}:void 0]),1040,["mode","logo","show-logo","height"]))]),_:3},8,["height"]),e.createVNode(n,{class:e.normalizeClass(e.unref(v)),style:e.normalizeStyle(S.value)},{default:e.withCtx(()=>[o.mode!=2?(e.openBlock(),e.createBlock(m,{key:0,width:o.asideWidth},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["width"])):e.createCommentVNode("",!0),e.createVNode(g,null,{default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(d)),style:e.normalizeStyle(h.value)},[e.renderSlot(o.$slots,"section",{},void 0,!0)],6)]),_:3})]),_:3},8,["class","style"]),o.showFooter?(e.openBlock(),e.createBlock(f,{key:0,height:o.footerHeight},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"footer",{},void 0,!0)]),_:3},8,["height"])):e.createCommentVNode("",!0)]),_:3})):[3].includes(Number(o.mode))?(e.openBlock(),e.createBlock(n,{key:1},{default:e.withCtx(()=>[e.createVNode(m,{width:o.asideWidth,class:"ls-layout-aside3"},{default:e.withCtx(()=>[o.showLogo?(e.openBlock(),e.createElementBlock("img",{key:0,class:"ls-layout-logo",src:o.logo,alt:""},null,8,B)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["width"]),e.createVNode(n,null,{default:e.withCtx(()=>[e.createVNode(c,{height:o.headerHeight},{default:e.withCtx(()=>[e.unref(l).header?e.renderSlot(o.$slots,"header",{key:0},void 0,!0):(e.openBlock(),e.createBlock(C.default,e.mergeProps({key:1},o.$attrs,{mode:o.mode,logo:o.logo,"show-logo":o.showLogo,height:o.headerHeight,onOnDropdownCommand2:u}),e.createSlots({left:e.withCtx(()=>[e.renderSlot(o.$slots,"headerLeft",{},void 0,!0)]),right:e.withCtx(()=>[e.renderSlot(o.$slots,"headerRight",{},void 0,!0)]),_:2},[e.unref(l).headerTitle?{name:"title",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"headerTitle",{},void 0,!0)]),key:"0"}:void 0]),1040,["mode","logo","show-logo","height"]))]),_:3},8,["height"]),e.createVNode(g,null,{default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(d)),style:e.normalizeStyle(h.value)},[e.renderSlot(o.$slots,"section",{},void 0,!0)],6)]),_:3}),o.showFooter?(e.openBlock(),e.createBlock(f,{key:0,height:o.footerHeight},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"footer",{},void 0,!0)]),_:3},8,["height"])):e.createCommentVNode("",!0)]),_:3})]),_:3})):e.createCommentVNode("",!0)],2)}}});exports.default=H;
|
|
@@ -6,7 +6,7 @@ var C = (u, g) => V(u, "name", { value: g, configurable: !0 });
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { defineComponent as z, useSlots as A, computed as S, createElementBlock as E, openBlock as
|
|
9
|
+
import { defineComponent as z, useSlots as A, computed as S, createElementBlock as E, openBlock as r, normalizeClass as m, unref as i, createBlock as l, createCommentVNode as n, withCtx as o, createVNode as a, renderSlot as t, mergeProps as L, createSlots as N, normalizeStyle as c, createElementVNode as b } from "vue";
|
|
10
10
|
import { useNamespace as O } from "../../_hooks/useNamespace/index.js";
|
|
11
11
|
import { lsEmitNames as P, lsLayoutProp as R } from "../types/index.js";
|
|
12
12
|
import F from "../components/Header.vue/index.js";
|
|
@@ -18,33 +18,33 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
18
18
|
props: R,
|
|
19
19
|
emits: P,
|
|
20
20
|
setup(u, { emit: g }) {
|
|
21
|
-
const
|
|
22
|
-
height: `calc(100vh - ${
|
|
21
|
+
const s = u, T = g, h = A(), f = O("layout"), W = f.b(), B = f.b("container-wrap"), p = f.b("container-section"), D = S(() => s.showFooter ? {
|
|
22
|
+
height: `calc(100vh - ${s.headerHeight} - ${s.footerHeight})`
|
|
23
23
|
} : {
|
|
24
|
-
height: `calc(100vh - ${
|
|
25
|
-
}),
|
|
26
|
-
height: `calc(100vh - ${
|
|
24
|
+
height: `calc(100vh - ${s.headerHeight})`
|
|
25
|
+
}), v = S(() => s.showFooter ? {
|
|
26
|
+
height: `calc(100vh - ${s.headerHeight} - ${s.footerHeight})`
|
|
27
27
|
} : {
|
|
28
|
-
minHeight: `calc(100vh - ${
|
|
28
|
+
minHeight: `calc(100vh - ${s.headerHeight})`
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function y(e) {
|
|
31
31
|
T("onCommand", e);
|
|
32
32
|
}
|
|
33
|
-
return C(
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
class: m([
|
|
33
|
+
return C(y, "onDropdownCommand2"), (e, K) => {
|
|
34
|
+
const $ = M, w = j, k = q, d = I, H = G;
|
|
35
|
+
return r(), E("div", {
|
|
36
|
+
class: m([i(W), e.customCss])
|
|
37
37
|
}, [
|
|
38
|
-
[1, 2].includes(Number(e.mode)) ? (
|
|
38
|
+
[1, 2].includes(Number(e.mode)) ? (r(), l(d, { key: 0 }, {
|
|
39
39
|
default: o(() => [
|
|
40
|
-
|
|
40
|
+
a($, { height: e.headerHeight }, {
|
|
41
41
|
default: o(() => [
|
|
42
|
-
|
|
42
|
+
i(h).header ? t(e.$slots, "header", { key: 0 }, void 0, !0) : (r(), l(F, L({ key: 1 }, e.$attrs, {
|
|
43
43
|
mode: e.mode,
|
|
44
44
|
logo: e.logo,
|
|
45
45
|
"show-logo": e.showLogo,
|
|
46
46
|
height: e.headerHeight,
|
|
47
|
-
onOnDropdownCommand2:
|
|
47
|
+
onOnDropdownCommand2: y
|
|
48
48
|
}), N({
|
|
49
49
|
left: o(() => [
|
|
50
50
|
t(e.$slots, "headerLeft", {}, void 0, !0)
|
|
@@ -54,7 +54,7 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
54
54
|
]),
|
|
55
55
|
_: 2
|
|
56
56
|
}, [
|
|
57
|
-
|
|
57
|
+
i(h).headerTitle ? {
|
|
58
58
|
name: "title",
|
|
59
59
|
fn: o(() => [
|
|
60
60
|
t(e.$slots, "headerTitle", {}, void 0, !0)
|
|
@@ -65,12 +65,12 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
65
65
|
]),
|
|
66
66
|
_: 3
|
|
67
67
|
}, 8, ["height"]),
|
|
68
|
-
|
|
69
|
-
class: m(
|
|
70
|
-
style: c(
|
|
68
|
+
a(d, {
|
|
69
|
+
class: m(i(B)),
|
|
70
|
+
style: c(D.value)
|
|
71
71
|
}, {
|
|
72
72
|
default: o(() => [
|
|
73
|
-
e.mode != 2 ? (
|
|
73
|
+
e.mode != 2 ? (r(), l(w, {
|
|
74
74
|
key: 0,
|
|
75
75
|
width: e.asideWidth
|
|
76
76
|
}, {
|
|
@@ -78,12 +78,12 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
78
78
|
t(e.$slots, "aside", {}, void 0, !0)
|
|
79
79
|
]),
|
|
80
80
|
_: 3
|
|
81
|
-
}, 8, ["width"])) :
|
|
82
|
-
|
|
81
|
+
}, 8, ["width"])) : n("", !0),
|
|
82
|
+
a(k, null, {
|
|
83
83
|
default: o(() => [
|
|
84
84
|
b("section", {
|
|
85
|
-
class: m(
|
|
86
|
-
style: c(
|
|
85
|
+
class: m(i(p)),
|
|
86
|
+
style: c(v.value)
|
|
87
87
|
}, [
|
|
88
88
|
t(e.$slots, "section", {}, void 0, !0)
|
|
89
89
|
], 6)
|
|
@@ -93,7 +93,7 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
93
93
|
]),
|
|
94
94
|
_: 3
|
|
95
95
|
}, 8, ["class", "style"]),
|
|
96
|
-
e.showFooter ? (
|
|
96
|
+
e.showFooter ? (r(), l(H, {
|
|
97
97
|
key: 0,
|
|
98
98
|
height: e.footerHeight
|
|
99
99
|
}, {
|
|
@@ -101,36 +101,36 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
101
101
|
t(e.$slots, "footer", {}, void 0, !0)
|
|
102
102
|
]),
|
|
103
103
|
_: 3
|
|
104
|
-
}, 8, ["height"])) :
|
|
104
|
+
}, 8, ["height"])) : n("", !0)
|
|
105
105
|
]),
|
|
106
106
|
_: 3
|
|
107
|
-
})) : [3].includes(Number(e.mode)) ? (
|
|
107
|
+
})) : [3].includes(Number(e.mode)) ? (r(), l(d, { key: 1 }, {
|
|
108
108
|
default: o(() => [
|
|
109
|
-
|
|
109
|
+
a(w, {
|
|
110
110
|
width: e.asideWidth,
|
|
111
111
|
class: "ls-layout-aside3"
|
|
112
112
|
}, {
|
|
113
113
|
default: o(() => [
|
|
114
|
-
e.showLogo ? (
|
|
114
|
+
e.showLogo ? (r(), E("img", {
|
|
115
115
|
key: 0,
|
|
116
116
|
class: "ls-layout-logo",
|
|
117
117
|
src: e.logo,
|
|
118
118
|
alt: ""
|
|
119
|
-
}, null, 8, J)) :
|
|
119
|
+
}, null, 8, J)) : n("", !0),
|
|
120
120
|
t(e.$slots, "aside", {}, void 0, !0)
|
|
121
121
|
]),
|
|
122
122
|
_: 3
|
|
123
123
|
}, 8, ["width"]),
|
|
124
|
-
|
|
124
|
+
a(d, null, {
|
|
125
125
|
default: o(() => [
|
|
126
|
-
|
|
126
|
+
a($, { height: e.headerHeight }, {
|
|
127
127
|
default: o(() => [
|
|
128
|
-
|
|
128
|
+
i(h).header ? t(e.$slots, "header", { key: 0 }, void 0, !0) : (r(), l(F, L({ key: 1 }, e.$attrs, {
|
|
129
129
|
mode: e.mode,
|
|
130
130
|
logo: e.logo,
|
|
131
131
|
"show-logo": e.showLogo,
|
|
132
132
|
height: e.headerHeight,
|
|
133
|
-
onOnDropdownCommand2:
|
|
133
|
+
onOnDropdownCommand2: y
|
|
134
134
|
}), N({
|
|
135
135
|
left: o(() => [
|
|
136
136
|
t(e.$slots, "headerLeft", {}, void 0, !0)
|
|
@@ -140,7 +140,7 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
140
140
|
]),
|
|
141
141
|
_: 2
|
|
142
142
|
}, [
|
|
143
|
-
|
|
143
|
+
i(h).headerTitle ? {
|
|
144
144
|
name: "title",
|
|
145
145
|
fn: o(() => [
|
|
146
146
|
t(e.$slots, "headerTitle", {}, void 0, !0)
|
|
@@ -151,18 +151,18 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
151
151
|
]),
|
|
152
152
|
_: 3
|
|
153
153
|
}, 8, ["height"]),
|
|
154
|
-
|
|
154
|
+
a(k, null, {
|
|
155
155
|
default: o(() => [
|
|
156
156
|
b("section", {
|
|
157
|
-
class: m(
|
|
158
|
-
style: c(
|
|
157
|
+
class: m(i(p)),
|
|
158
|
+
style: c(v.value)
|
|
159
159
|
}, [
|
|
160
160
|
t(e.$slots, "section", {}, void 0, !0)
|
|
161
161
|
], 6)
|
|
162
162
|
]),
|
|
163
163
|
_: 3
|
|
164
164
|
}),
|
|
165
|
-
e.showFooter ? (
|
|
165
|
+
e.showFooter ? (r(), l(H, {
|
|
166
166
|
key: 0,
|
|
167
167
|
height: e.footerHeight
|
|
168
168
|
}, {
|
|
@@ -170,13 +170,13 @@ const J = ["src"], ie = /* @__PURE__ */ z({
|
|
|
170
170
|
t(e.$slots, "footer", {}, void 0, !0)
|
|
171
171
|
]),
|
|
172
172
|
_: 3
|
|
173
|
-
}, 8, ["height"])) :
|
|
173
|
+
}, 8, ["height"])) : n("", !0)
|
|
174
174
|
]),
|
|
175
175
|
_: 3
|
|
176
176
|
})
|
|
177
177
|
]),
|
|
178
178
|
_: 3
|
|
179
|
-
})) :
|
|
179
|
+
})) : n("", !0)
|
|
180
180
|
], 2);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
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 u=/* empty css */t=u.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 u=/* empty css */t=u.default(e.default,[["__scopeId","data-v-3d503e48"]]);exports.default=t;
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d503e48"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty;var o=(c,l)=>A(c,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("vue"),g=/* empty css */h=/* empty css */N=/* empty css */B=/* empty css */E=/* empty css */D=/* empty css */P=s.defineComponent({name:"LSMenu"}),I=s.defineComponent({...P,props:h.lsMenuProps,emits:h.lsEmitNames,setup(c,{expose:l,emit:y}){s.useCssVars(e=>({
|
|
1
|
+
"use strict";var A=Object.defineProperty;var o=(c,l)=>A(c,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("vue"),g=/* empty css */h=/* empty css */N=/* empty css */B=/* empty css */E=/* empty css */D=/* empty css */P=s.defineComponent({name:"LSMenu"}),I=s.defineComponent({...P,props:h.lsMenuProps,emits:h.lsEmitNames,setup(c,{expose:l,emit:y}){s.useCssVars(e=>({"0441a2ff":e.hoverColor}));const{currentRouter:r}=N.default(),S=g.useNamespace("menu").b(),a=c,f=y,q=s.useAttrs();s.provide(E.lsMenuKey,{fontSize:a.fontSize});const C=s.ref(!1),_=s.ref(""),u=s.ref();s.watch(()=>a.permissionList,e=>{a.needPermission&&e&&e.length>0&&m()},{immediate:!0,deep:!0}),s.watch(()=>r.value,()=>{m()},{immediate:!0,deep:!0}),s.watch(()=>q["default-active"],async e=>{e&&(await s.nextTick(),d(e.toString()))},{immediate:!0,deep:!0});function m(){if(!C.value)return;const{meta:e}=(r==null?void 0:r.value)||{};_.value=(e==null?void 0:e.key)||"1"}o(m,"initMenuSider");function M(e){f("onJump",e)}o(M,"onJump");function L(e){const{key:i}=e;d(i),f("defineSubClick",e)}o(L,"defineSubClickFunc");function b(e){const{key:i}=e;d(i),f("defineChildClick",e)}o(b,"defineChildClickFunc");function d(e){if(u.value){let i=!1;const p=u.value.$el.querySelectorAll(".el-sub-menu"),n=u.value.$el.querySelectorAll(".el-menu-item"),v="is-sub-active",k="is-active";n.forEach(t=>{Array.from(t.classList).includes(k)&&t.classList.remove(k),e===t.dataset.index&&(i=!0,t.classList.add(k))}),p.forEach(t=>{Array.from(t.classList).includes(v)&&t.classList.remove(v),!i&&e===t.dataset.index&&t.classList.add(v)})}}return o(d,"updateActiveClass"),s.onMounted(()=>{C.value=!0,m()}),l({lsComMenuRef:u}),(e,i)=>{const p=D.ElMenu;return s.openBlock(),s.createBlock(p,s.mergeProps({ref_key:"lsComMenuRef",ref:u,"default-active":s.unref(_)},e.$attrs,{class:s.unref(S)}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.menuConfigList,n=>(s.openBlock(),s.createBlock(B.default,{key:n.key,item:n,"permission-list":e.permissionList,"need-permission":e.needPermission,"is-define-click":e.isDefineClick,"show-tooltip":e.showTooltip,onOnJump:M,onDefineSubClick:L,onDefineChildClick:b},{[n.iconSlot]:s.withCtx(()=>[s.renderSlot(e.$slots,n.iconSlot,{},void 0,!0)]),_:2},1032,["item","permission-list","need-permission","is-define-click","show-tooltip"]))),128))]),_:3},16,["default-active","class"])}}});exports.default=I;
|
|
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-2d33e477"]]);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-2d33e477"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var D=Object.defineProperty;var r=(t,n)=>D(t,"name",{value:n,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),c=/* empty css */_=/* empty css */E=/* empty css */L=/* empty css */g=/* empty css */q={class:"ls-preview-extra"},B=e.defineComponent({name:"LSPreviewDocx"}),M=e.defineComponent({...B,name:"LSPreviewDocx",components:{LSDocx:c.default},inheritAttrs:!1,props:e.mergeModels(E.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError","onDownload"],["update:modelValue"]),setup(t,{emit:n}){const a=n,i=t,s=e.useModel(t,"modelValue"),{comClass:C,defAttrs:u,closeLoading:m,watermarkStyle:P}=_.default(i,s),p=r(()=>{m(),a("loadComplete")},"loadComplete"),f=r(()=>{m(),a("loadError")},"loadError");function y(o){var d,l,k,v;i.hideOnClickModal&&(o.target===o.currentTarget||(l=(d=o==null?void 0:o.target)==null?void 0:d.className)!=null&&l.includes&&((v=(k=o==null?void 0:o.target)==null?void 0:k.className)!=null&&v.includes("docx-wrapper")))&&(s.value=!1)}r(y,"closePreview");function w(o){a("onDownload",o)}return r(w,"onDownload"),(o,d)=>{const l=L.ElWatermark;return s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(C)),onClick:y},[o.showWatermark?(e.openBlock(),e.createBlock(l,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(P)}),{default:e.withCtx(()=>[e.createVNode(c.default,e.mergeProps(e.unref(g.default)(e.unref(u),o.$attrs),{onLoadComplete:p,onLoadError:f,onOnDownload:w}),null,16)]),_:1},16,["style"])):(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:1},e.unref(g.default)(e.unref(u),o.$attrs),{onLoadComplete:p,onLoadError:f,onOnDownload:w}),null,16)),e.createElementVNode("div",q,[e.renderSlot(o.$slots,"extra",{},void 0,!0)])],2)):e.createCommentVNode("",!0)}}});exports.default=M;
|