@lingshugroup/web-plus 2.1.2 → 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/list/List.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index.js +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.js +239 -211
- package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/list/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/types/index.js +76 -7
- package/lib/packages/ls-components/components/list/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/list/types/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
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../_utils/runtime/index.cjs"),o=n.buildProps({listApi:{type:Function},dealParams:{type:Function},dealData:{type:Function},listHookConfig:{type:Object},delApi:{type:Function},dealDelParams:{type:Function},delMessage:{type:[String,Function],default:""},switchApi:{type:Function},dealSwitchParams:{type:Function},showForm:{type:Boolean,default:!0},formClass:{type:String,default:""},formData:{type:Object,default:t(()=>({}),"default")},formItems:{type:Array,default:t(()=>[],"default")},formAttrs:{type:Object,default:t(()=>{},"default")},queryFn:{type:Function},resetFn:{type:Function},tableColumn:{type:Array,default:t(()=>[],"default")},tableRowKey:{type:String,default:"id"},tableAttrs:{type:Object,default:t(()=>{},"default")},tableListeners:{type:Object,default:t(()=>{},"default")},showOperate:{type:Boolean,default:!0},showOperateDivider:{type:Boolean,default:!0},operateClass:{type:String,default:""},showAdd:{type:Boolean,default:!0},disabledAddBtn:{type:Boolean,default:!1},addBtnText:{type:String,default:"添加"},addBtnAttrs:{type:Object,default:t(()=>{},"default")},addFn:{type:Function},showTableSwitch:{type:Boolean,default:!1},switchProp:{type:String,default:"status"},tableSwitchColumn:{type:Object,default:t(()=>{},"default")},tableSwitchAttrs:{type:Object,default:t(()=>{},"default")},tableSwitchPopAttrs:{type:Object,default:t(()=>{},"default")},tableSwitchPopTxt:{type:String,default:"请问是否关闭?"},disabledTableSwitch:{type:[Boolean,Function],default:!1},showTableOperate:{type:Boolean,default:!0},tableOperateColumn:{type:Object,default:t(()=>{},"default")},tableDetailFn:{type:Function},tableEditFn:{type:Function},tableDelFn:{type:Function},showTableDetail:{type:[Boolean,Function],default:!0},disabledTableDetail:{type:[Boolean,Function],default:!1},showTableEdit:{type:[Boolean,Function],default:!0},disabledTableEdit:{type:[Boolean,Function],default:!1},showTableDel:{type:[Boolean,Function],default:!0},disabledTableDel:{type:[Boolean,Function],default:!1},tableDelPopAttrs:{type:Object,default:t(()=>{},"default")},addRoutePath:{type:String,default:""},detailRoutePath:{type:String,default:""},editRoutePath:{type:String,default:""},tableDetailText:{type:[String,Function],default:"查看"},tableEditText:{type:[String,Function],default:"编辑"},tableDelText:{type:[String,Function],default:"删除"},tableDetailType:{type:[String,Function],default:"primary"},tableEditType:{type:[String,Function],default:"primary"},tableDelType:{type:[String,Function],default:"danger"},tableDetailBtnAttrs:{type:Object,default:t(()=>{},"default")},tableEditBtnAttrs:{type:Object,default:t(()=>{},"default")},tableDelBtnAttrs:{type:Object,default:t(()=>{},"default")},skeletonAttrs:{type:Object,default:t(()=>{},"default")},showSkeleton:{type:Boolean,default:!0},popconfirmTxt:{type:[String,Function],default:""}});exports.lsListProps=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var t = (e, a) => l(e, "name", { value: a, configurable: !0 });
|
|
3
|
-
import { buildProps as
|
|
4
|
-
const
|
|
3
|
+
import { buildProps as n } from "../../_utils/runtime/index.js";
|
|
4
|
+
const i = n({
|
|
5
5
|
// 列表api
|
|
6
6
|
listApi: {
|
|
7
7
|
type: Function
|
|
@@ -26,6 +26,11 @@ const d = o({
|
|
|
26
26
|
dealDelParams: {
|
|
27
27
|
type: Function
|
|
28
28
|
},
|
|
29
|
+
// 删除成功提示话术
|
|
30
|
+
delMessage: {
|
|
31
|
+
type: [String, Function],
|
|
32
|
+
default: ""
|
|
33
|
+
},
|
|
29
34
|
// 开关切换api
|
|
30
35
|
switchApi: {
|
|
31
36
|
type: Function
|
|
@@ -64,6 +69,10 @@ const d = o({
|
|
|
64
69
|
queryFn: {
|
|
65
70
|
type: Function
|
|
66
71
|
},
|
|
72
|
+
// 重置事件(覆盖默认事件)
|
|
73
|
+
resetFn: {
|
|
74
|
+
type: Function
|
|
75
|
+
},
|
|
67
76
|
// 表格列数据
|
|
68
77
|
tableColumn: {
|
|
69
78
|
type: Array,
|
|
@@ -115,16 +124,16 @@ const d = o({
|
|
|
115
124
|
type: String,
|
|
116
125
|
default: "添加"
|
|
117
126
|
},
|
|
118
|
-
// 添加按钮点击事件(覆盖默认事件)
|
|
119
|
-
addFn: {
|
|
120
|
-
type: Function
|
|
121
|
-
},
|
|
122
127
|
// 添加按钮配置项
|
|
123
128
|
addBtnAttrs: {
|
|
124
129
|
type: Object,
|
|
125
130
|
default: /* @__PURE__ */ t(() => {
|
|
126
131
|
}, "default")
|
|
127
132
|
},
|
|
133
|
+
// 添加按钮点击事件(覆盖默认事件)
|
|
134
|
+
addFn: {
|
|
135
|
+
type: Function
|
|
136
|
+
},
|
|
128
137
|
// 是否显示表格开关切换
|
|
129
138
|
showTableSwitch: {
|
|
130
139
|
type: Boolean,
|
|
@@ -141,6 +150,23 @@ const d = o({
|
|
|
141
150
|
default: /* @__PURE__ */ t(() => {
|
|
142
151
|
}, "default")
|
|
143
152
|
},
|
|
153
|
+
// 表格开关配置项
|
|
154
|
+
tableSwitchAttrs: {
|
|
155
|
+
type: Object,
|
|
156
|
+
default: /* @__PURE__ */ t(() => {
|
|
157
|
+
}, "default")
|
|
158
|
+
},
|
|
159
|
+
// 表格开关确认弹窗配置项
|
|
160
|
+
tableSwitchPopAttrs: {
|
|
161
|
+
type: Object,
|
|
162
|
+
default: /* @__PURE__ */ t(() => {
|
|
163
|
+
}, "default")
|
|
164
|
+
},
|
|
165
|
+
// 表格开关确认弹窗文字
|
|
166
|
+
tableSwitchPopTxt: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: "请问是否关闭?"
|
|
169
|
+
},
|
|
144
170
|
// 表格开关切换是否禁用
|
|
145
171
|
disabledTableSwitch: {
|
|
146
172
|
type: [Boolean, Function],
|
|
@@ -165,6 +191,10 @@ const d = o({
|
|
|
165
191
|
tableEditFn: {
|
|
166
192
|
type: Function
|
|
167
193
|
},
|
|
194
|
+
// 表格删除按钮点击事件(覆盖默认事件)
|
|
195
|
+
tableDelFn: {
|
|
196
|
+
type: Function
|
|
197
|
+
},
|
|
168
198
|
// 表格查看按钮是否展示
|
|
169
199
|
showTableDetail: {
|
|
170
200
|
type: [Boolean, Function],
|
|
@@ -195,6 +225,12 @@ const d = o({
|
|
|
195
225
|
type: [Boolean, Function],
|
|
196
226
|
default: !1
|
|
197
227
|
},
|
|
228
|
+
// 表格操作列删除悬浮确认窗配置项
|
|
229
|
+
tableDelPopAttrs: {
|
|
230
|
+
type: Object,
|
|
231
|
+
default: /* @__PURE__ */ t(() => {
|
|
232
|
+
}, "default")
|
|
233
|
+
},
|
|
198
234
|
// 添加页面路由
|
|
199
235
|
addRoutePath: {
|
|
200
236
|
type: String,
|
|
@@ -225,6 +261,39 @@ const d = o({
|
|
|
225
261
|
type: [String, Function],
|
|
226
262
|
default: "删除"
|
|
227
263
|
},
|
|
264
|
+
// 表格查看按钮类型
|
|
265
|
+
tableDetailType: {
|
|
266
|
+
type: [String, Function],
|
|
267
|
+
default: "primary"
|
|
268
|
+
},
|
|
269
|
+
// 表格编辑按钮类型
|
|
270
|
+
tableEditType: {
|
|
271
|
+
type: [String, Function],
|
|
272
|
+
default: "primary"
|
|
273
|
+
},
|
|
274
|
+
// 表格删除按钮类型
|
|
275
|
+
tableDelType: {
|
|
276
|
+
type: [String, Function],
|
|
277
|
+
default: "danger"
|
|
278
|
+
},
|
|
279
|
+
// 表格查看按钮配置
|
|
280
|
+
tableDetailBtnAttrs: {
|
|
281
|
+
type: Object,
|
|
282
|
+
default: /* @__PURE__ */ t(() => {
|
|
283
|
+
}, "default")
|
|
284
|
+
},
|
|
285
|
+
// 表格编辑按钮配置
|
|
286
|
+
tableEditBtnAttrs: {
|
|
287
|
+
type: Object,
|
|
288
|
+
default: /* @__PURE__ */ t(() => {
|
|
289
|
+
}, "default")
|
|
290
|
+
},
|
|
291
|
+
// 表格删除按钮配置
|
|
292
|
+
tableDelBtnAttrs: {
|
|
293
|
+
type: Object,
|
|
294
|
+
default: /* @__PURE__ */ t(() => {
|
|
295
|
+
}, "default")
|
|
296
|
+
},
|
|
228
297
|
// 表格骨架屏配置
|
|
229
298
|
skeletonAttrs: {
|
|
230
299
|
type: Object,
|
|
@@ -243,5 +312,5 @@ const d = o({
|
|
|
243
312
|
}
|
|
244
313
|
});
|
|
245
314
|
export {
|
|
246
|
-
|
|
315
|
+
i as lsListProps
|
|
247
316
|
};
|
|
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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var w=Object.defineProperty;var a=(r,t)=>w(r,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),n=/* empty css */C=/* empty css */g=/* empty css */h=/* empty css */p=/* empty css */y=e.defineComponent({name:"LSPreviewImage"}),P=e.defineComponent({...y,name:"LSPreviewImage",components:{LSImage:n.default},inheritAttrs:!1,props:e.mergeModels(g.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(r,{emit:t}){const d=t,l=r,i=e.useModel(r,"modelValue"),{comClass:f,defAttrs:s,closeLoading:m,watermarkStyle:k}=C.default(l,i),u=a(()=>{m(),d("loadComplete")},"loadComplete"),c=a(()=>{m(),d("loadError")},"loadError");return(o,L)=>{const v=h.ElWatermark;return i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f))},[o.showWatermark?(e.openBlock(),e.createBlock(v,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(k)}),{default:e.withCtx(()=>[e.createVNode(n.default,e.mergeProps(e.unref(p.default)(e.unref(s),o.$attrs),{"hide-on-click-modal":l.hideOnClickModal,onLoadComplete:u,onLoadError:c}),{viewer:e.withCtx(()=>[e.renderSlot(o.$slots,"viewer",{},void 0,!0)]),_:3},16,["hide-on-click-modal"])]),_:3},16,["style"])):(e.openBlock(),e.createBlock(n.default,e.mergeProps({key:1},e.unref(p.default)(e.unref(s),o.$attrs),{"hide-on-click-modal":l.hideOnClickModal,onLoadComplete:u,onLoadError:c}),{viewer:e.withCtx(()=>[e.renderSlot(o.$slots,"viewer",{},void 0,!0)]),_:3},16,["hide-on-click-modal"]))],2)):e.createCommentVNode("",!0)}}});exports.default=P;
|
|
@@ -1,49 +1,68 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var a = (r, t) => P(r, "name", { value: t, configurable: !0 });
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { defineComponent as L, mergeModels as w, useModel as V, createElementBlock as _, createCommentVNode as M, openBlock as m, normalizeClass as S, unref as o, createBlock as v, mergeProps as i, withCtx as d, createVNode as B, renderSlot as C } from "vue";
|
|
5
|
+
import s from "../Image.vue/index.js";
|
|
6
|
+
import $ from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
+
import { lsPreviewProp as I } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as O } 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 h from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
+
const A = L({
|
|
9
11
|
name: "LSPreviewImage"
|
|
10
|
-
}),
|
|
11
|
-
...
|
|
12
|
+
}), G = /* @__PURE__ */ L({
|
|
13
|
+
...A,
|
|
12
14
|
name: "LSPreviewImage",
|
|
13
15
|
components: {
|
|
14
|
-
LSImage:
|
|
16
|
+
LSImage: s
|
|
15
17
|
},
|
|
16
18
|
inheritAttrs: !1,
|
|
17
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ w(I, {
|
|
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__ */ w(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
26
|
+
setup(r, { emit: t }) {
|
|
27
|
+
const n = t, l = r, c = V(r, "modelValue"), { comClass: g, defAttrs: p, closeLoading: k, watermarkStyle: y } = $(l, c), u = /* @__PURE__ */ a(() => {
|
|
28
|
+
k(), n("loadComplete");
|
|
29
|
+
}, "loadComplete"), f = /* @__PURE__ */ a(() => {
|
|
30
|
+
k(), n("loadError");
|
|
29
31
|
}, "loadError");
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
return (e, N) => {
|
|
33
|
+
const E = O;
|
|
34
|
+
return c.value ? (m(), _("div", {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: S(o(g))
|
|
37
|
+
}, [
|
|
38
|
+
e.showWatermark ? (m(), v(E, i({ key: 0 }, e.watermarkOption, { style: o(y) }), {
|
|
39
|
+
default: d(() => [
|
|
40
|
+
B(s, i(o(h)(o(p), e.$attrs), {
|
|
41
|
+
"hide-on-click-modal": l.hideOnClickModal,
|
|
42
|
+
onLoadComplete: u,
|
|
43
|
+
onLoadError: f
|
|
44
|
+
}), {
|
|
45
|
+
viewer: d(() => [
|
|
46
|
+
C(e.$slots, "viewer", {}, void 0, !0)
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 16, ["hide-on-click-modal"])
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 16, ["style"])) : (m(), v(s, i({ key: 1 }, o(h)(o(p), e.$attrs), {
|
|
53
|
+
"hide-on-click-modal": l.hideOnClickModal,
|
|
54
|
+
onLoadComplete: u,
|
|
55
|
+
onLoadError: f
|
|
56
|
+
}), {
|
|
57
|
+
viewer: d(() => [
|
|
58
|
+
C(e.$slots, "viewer", {}, void 0, !0)
|
|
59
|
+
]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["hide-on-click-modal"]))
|
|
62
|
+
], 2)) : M("", !0);
|
|
63
|
+
};
|
|
45
64
|
}
|
|
46
65
|
});
|
|
47
66
|
export {
|
|
48
|
-
|
|
67
|
+
G as default
|
|
49
68
|
};
|
|
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-43eef7f3"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
+
const _ = /* @__PURE__ */ e(o, [["__scopeId", "data-v-43eef7f3"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var C=Object.defineProperty;var t=(r,l)=>C(r,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),n=/* empty css */w=/* empty css */g=/* empty css */y=/* empty css */f=/* empty css */L=e.defineComponent({name:"LSPreviewPdf"}),_=e.defineComponent({...L,name:"LSPreviewPdf",components:{LSPdf:n.default},inheritAttrs:!1,props:e.mergeModels(g.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(r,{emit:l}){const s=l,d=r,a=e.useModel(r,"modelValue"),{comClass:p,defAttrs:u,closeLoading:i,watermarkStyle:k}=w.default(d,a),c=t(()=>{i(),s("loadComplete")},"loadComplete"),m=t(()=>{i(),s("loadError")},"loadError");function P(o){d.hideOnClickModal&&o.target===o.currentTarget&&(a.value=!1)}return t(P,"closePreview"),(o,q)=>{const v=y.ElWatermark;return a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p)),onClick:P},[o.showWatermark?(e.openBlock(),e.createBlock(v,e.mergeProps({key:0},o.watermarkOption,{style:e.unref(k)}),{default:e.withCtx(()=>[e.createVNode(n.default,e.mergeProps(e.unref(f.default)(e.unref(u),o.$attrs),{onLoadComplete:c,onLoadError:m}),null,16)]),_:1},16,["style"])):(e.openBlock(),e.createBlock(n.default,e.mergeProps({key:1},e.unref(f.default)(e.unref(u),o.$attrs),{onLoadComplete:c,onLoadError:m}),null,16))],2)):e.createCommentVNode("",!0)}}});exports.default=_;
|
|
@@ -1,47 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var t = (r, l) => g(r, "name", { value: l, configurable: !0 });
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { defineComponent as P, mergeModels as k, useModel as V, createElementBlock as _, createCommentVNode as h, openBlock as m, normalizeClass as B, unref as o, createBlock as C, mergeProps as n, withCtx as M, createVNode as S } from "vue";
|
|
5
|
+
import s from "../Pdf.vue/index.js";
|
|
6
|
+
import A from "../../_hooks/usePreviewHook/index.js";
|
|
7
|
+
import { lsPreviewProp as N } from "../../_constants/previewType/index.js";
|
|
8
|
+
import { ElWatermark as O } 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 w from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
10
|
+
const W = P({
|
|
9
11
|
name: "LSPreviewPdf"
|
|
10
|
-
}),
|
|
11
|
-
...
|
|
12
|
+
}), G = /* @__PURE__ */ P({
|
|
13
|
+
...W,
|
|
12
14
|
name: "LSPreviewPdf",
|
|
13
15
|
components: {
|
|
14
|
-
LSPdf:
|
|
16
|
+
LSPdf: s
|
|
15
17
|
},
|
|
16
18
|
inheritAttrs: !1,
|
|
17
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ k(N, {
|
|
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__ */ k(["loadComplete", "loadError"], ["update:modelValue"]),
|
|
26
|
+
setup(r, { emit: l }) {
|
|
27
|
+
const i = l, d = r, a = V(r, "modelValue"), { comClass: v, defAttrs: c, closeLoading: p, watermarkStyle: L } = A(d, a), f = /* @__PURE__ */ t(() => {
|
|
28
|
+
p(), i("loadComplete");
|
|
29
|
+
}, "loadComplete"), u = /* @__PURE__ */ t(() => {
|
|
30
|
+
p(), i("loadError");
|
|
29
31
|
}, "loadError");
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
+
function y(e) {
|
|
33
|
+
d.hideOnClickModal && e.target === e.currentTarget && (a.value = !1);
|
|
32
34
|
}
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
return t(y, "closePreview"), (e, $) => {
|
|
36
|
+
const E = O;
|
|
37
|
+
return a.value ? (m(), _("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: B(o(v)),
|
|
40
|
+
onClick: y
|
|
41
|
+
}, [
|
|
42
|
+
e.showWatermark ? (m(), C(E, n({ key: 0 }, e.watermarkOption, { style: o(L) }), {
|
|
43
|
+
default: M(() => [
|
|
44
|
+
S(s, n(o(w)(o(c), e.$attrs), {
|
|
45
|
+
onLoadComplete: f,
|
|
46
|
+
onLoadError: u
|
|
47
|
+
}), null, 16)
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 16, ["style"])) : (m(), C(s, n({ key: 1 }, o(w)(o(c), e.$attrs), {
|
|
51
|
+
onLoadComplete: f,
|
|
52
|
+
onLoadError: u
|
|
53
|
+
}), null, 16))
|
|
54
|
+
], 2)) : h("", !0);
|
|
55
|
+
};
|
|
43
56
|
}
|
|
44
57
|
});
|
|
45
58
|
export {
|
|
46
|
-
|
|
59
|
+
G as default
|
|
47
60
|
};
|
|
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-1ac04760"]]);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-1ac04760"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var w=Object.defineProperty;var l=(o,t)=>w(o,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const e=require("vue"),a=/* empty css */C=/* empty css */g=/* empty css */y=/* empty css */c=/* empty css */P=e.defineComponent({name:"LSPreviewXlsx"}),L=e.defineComponent({...P,name:"LSPreviewXlsx",components:{LSXlsx:a.default},inheritAttrs:!1,props:e.mergeModels(g.lsPreviewProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["loadComplete","loadError"],["update:modelValue"]),setup(o,{emit:t}){const n=t,p=o,s=e.useModel(o,"modelValue"),{comClass:f,defAttrs:u,closeLoading:d,watermarkStyle:k}=C.default(p,s),m=l(()=>{d(),n("loadComplete")},"loadComplete"),i=l(()=>{d(),n("loadError")},"loadError");return(r,_)=>{const v=y.ElWatermark;return s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f))},[r.showWatermark?(e.openBlock(),e.createBlock(v,e.mergeProps({key:0},r.watermarkOption,{style:e.unref(k)}),{default:e.withCtx(()=>[e.createVNode(a.default,e.mergeProps(e.unref(c.default)(e.unref(u),r.$attrs),{onLoadComplete:m,onLoadError:i}),null,16)]),_:1},16,["style"])):(e.openBlock(),e.createBlock(a.default,e.mergeProps({key:1},e.unref(c.default)(e.unref(u),r.$attrs),{onLoadComplete:m,onLoadError:i}),null,16))],2)):e.createCommentVNode("",!0)}}});exports.default=L;
|