iking-web-ui-pro 0.1.7 → 0.1.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/dist/IKDetailPreviewFiles/{index.es.js → ik.index.es.js} +136 -136
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -0
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKPreviewFile/{index.es.js → ik.index.es.js} +29 -24
- package/dist/IKPreviewFile/ik.index.umd.js +1 -0
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/{index.es.js → ik.index.es.js} +961 -866
- package/dist/IKSearch/ik.index.umd.js +26 -0
- package/dist/IKSearch/style.css +1 -1
- package/dist/IkApprovalProcess/{index.es.js → ik.index.es.js} +759 -664
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -0
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkBtnSetting/{index.es.js → ik.index.es.js} +45 -45
- package/dist/IkBtnSetting/{index.umd.js → ik.index.umd.js} +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCalendar/{index.es.js → ik.index.es.js} +1368 -1273
- package/dist/IkCalendar/ik.index.umd.js +1 -0
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +85 -0
- package/dist/IkCollapseCard/ik.index.umd.js +1 -0
- package/dist/IkCollapseCard/style.css +1 -0
- package/dist/IkIconPicker/{index.es.js → ik.index.es.js} +84 -84
- package/dist/IkIconPicker/{index.umd.js → ik.index.umd.js} +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/{index.es.js → ik.index.es.js} +1 -1
- package/dist/IkMonacoEditor/{index.umd.js → ik.index.umd.js} +2 -2
- package/dist/IkOnlyOffice/{index.es.js → ik.index.es.js} +4 -4
- package/dist/IkOnlyOffice/{index.umd.js → ik.index.umd.js} +1 -1
- package/dist/IkPageFull/{index.es.js → ik.index.es.js} +1237 -1142
- package/dist/IkPageFull/ik.index.umd.js +17 -0
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/{index.es.js → ik.index.es.js} +717 -622
- package/dist/IkPickerUser/ik.index.umd.js +1 -0
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkStatu/{index.es.js → ik.index.es.js} +26 -21
- package/dist/IkStatu/ik.index.umd.js +1 -0
- package/dist/IkStatu/style.css +1 -1
- package/dist/IkStatuOver/ik.index.es.js +153 -0
- package/dist/IkStatuOver/ik.index.umd.js +1 -0
- package/dist/IkStatuOver/style.css +1 -0
- package/dist/IkTemplateOfficeConfig/{index.es.js → ik.index.es.js} +31 -31
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -0
- package/dist/IkTinymce/ik.index.es.js +51320 -0
- package/dist/IkTinymce/ik.index.umd.js +92 -0
- package/dist/IkTinymce/style.css +1 -0
- package/dist/IkUploadFile/{index.es.js → ik.index.es.js} +112 -107
- package/dist/IkUploadFile/{index.umd.js → ik.index.umd.js} +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +61777 -10170
- package/dist/index.umd.js +99 -8
- package/dist/src/components/Demo/index.d.ts +4 -0
- package/dist/src/components/IKApprovalProcess/index.d.ts +87 -0
- package/dist/src/components/IKApprovalProcess/src/IKApprovalProcess.vue.d.ts +87 -0
- package/dist/src/components/IKApprovalProcessDetail/index.d.ts +72 -0
- package/dist/src/components/IKApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +73 -0
- package/dist/src/components/IKCalendar/event-utils.d.ts +4 -0
- package/dist/src/components/IKCalendar/index.d.ts +47 -0
- package/dist/src/components/IKCalendar/src/IKCalendar.vue.d.ts +47 -0
- package/dist/src/components/IKDetailPreviewFiles/index.d.ts +52 -0
- package/dist/src/components/IKExpandCollapse/index.d.ts +36 -0
- package/dist/src/components/IKHorizontalStepBar/index.d.ts +313 -0
- package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +109 -0
- package/dist/src/components/IKPreviewFile/index.d.ts +54 -0
- package/dist/src/components/IKPreviewFile/src/IKPreviewFile.vue.d.ts +54 -0
- package/dist/src/components/IKSearch/index.d.ts +313 -0
- package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +144 -0
- package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +57 -0
- package/dist/src/components/IKSearch/src/index.d.ts +86 -0
- package/dist/src/components/IKSearchHead/index.d.ts +22 -0
- package/dist/src/components/IKSearchHead/src/IKSearchHead.vue.d.ts +22 -0
- package/dist/src/components/IKVerticalStepBar/index.d.ts +53 -0
- package/dist/src/components/IKVerticalStepBar/src/IKVerticalStepBar.vue.d.ts +53 -0
- package/dist/src/components/IkBaseDialog/index.d.ts +92 -0
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +2 -0
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +45 -0
- package/dist/src/components/IkBottomOperate/index.d.ts +168 -0
- package/dist/src/components/IkBtnContent/index.d.ts +32 -0
- package/dist/src/components/IkBtnContent/src/index.d.ts +34 -0
- package/dist/src/components/IkBtnSetting/index.d.ts +103 -0
- package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +106 -0
- package/dist/src/components/IkCollapseCard/index.d.ts +50 -0
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +25 -0
- package/dist/src/components/IkDescription/index.d.ts +68 -0
- package/dist/src/components/IkDragList/index.d.ts +571 -0
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +274 -0
- package/dist/src/components/IkDragList/src/default-props.d.ts +137 -0
- package/dist/src/components/IkFullCalendar/index.d.ts +64 -0
- package/dist/src/components/IkFullCalendar/src/ik-full-calendar.d.ts +8 -0
- package/dist/src/components/IkIconPicker/index.d.ts +83 -0
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +84 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +94 -0
- package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +97 -0
- package/dist/src/components/IkOnlyOffice/index.d.ts +50 -0
- package/dist/src/components/IkPageFull/index.d.ts +578 -0
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +67 -0
- package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +47 -0
- package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +119 -0
- package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +250 -0
- package/dist/src/components/IkPageFull/src/IkSearchAuto copy.d.ts +76 -0
- package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +67 -0
- package/dist/src/components/IkPageFull/src/index.vue.d.ts +269 -0
- package/dist/src/components/IkPageFull/src/props.d.ts +104 -0
- package/dist/src/components/IkPageFull/src/search.d.ts +102 -0
- package/dist/src/components/IkPageTabs/index.d.ts +151 -0
- package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +70 -0
- package/dist/src/components/IkPickerUser/index.d.ts +364 -0
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
- package/dist/src/components/IkPickerUser/src/default.d.ts +152 -0
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
- package/dist/src/components/IkPickerUser/src/list/utils.d.ts +3 -0
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +366 -0
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
- package/dist/src/components/IkPickerUser/types.d.ts +28 -0
- package/dist/src/components/IkPrintConfig/index.d.ts +32 -0
- package/dist/src/components/IkPrintView/index.d.ts +78 -0
- package/dist/src/components/IkRadioGroup/index.d.ts +28 -0
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +30 -0
- package/dist/src/components/IkSchedule/index.d.ts +192 -0
- package/dist/src/components/IkSchedule/src/ik-schedule.d.ts +0 -0
- package/dist/src/components/IkStatu/index.d.ts +104 -0
- package/dist/src/components/IkStatu/src/index.vue.d.ts +106 -0
- package/dist/src/components/IkStatuOver/index.d.ts +23 -0
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +39 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +127 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +80 -0
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
- package/dist/src/components/IkTinymce/index.d.ts +153 -0
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +154 -0
- package/dist/src/components/IkTooltip/index.d.ts +82 -0
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +41 -0
- package/dist/src/components/IkUploadFile/src/components/FileIcon.vue.d.ts +16 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +231 -0
- package/dist/src/components/IkUploadFile/src/utils.d.ts +14 -0
- package/dist/src/components/IkUploadImage/index.d.ts +6 -0
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +9 -0
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
- package/dist/src/components/index.d.ts +31 -0
- package/dist/src/enum/search.d.ts +88 -0
- package/dist/src/iking-ui/index.d.ts +6 -0
- package/dist/src/iking-ui/make-installer.d.ts +5 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/install.d.ts +6 -0
- package/dist/src/utils/math.d.ts +1 -0
- package/dist/src/utils/object.d.ts +4 -0
- package/dist/src/utils/theme.d.ts +1 -0
- package/dist/src/utils/typescript.d.ts +6 -0
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/Demo/package.json +0 -7
- package/dist/IKDetailPreviewFiles/index.umd.js +0 -1
- package/dist/IKHorizontalStepBar/package.json +0 -7
- package/dist/IKPreviewFile/index.umd.js +0 -1
- package/dist/IKSearch/index.umd.js +0 -26
- package/dist/IKSearch/package.json +0 -7
- package/dist/IKSearchHead/package.json +0 -7
- package/dist/IKVerticalStepBar/package.json +0 -7
- package/dist/IkApprovalProcess/index.umd.js +0 -1
- package/dist/IkApprovalProcess/package.json +0 -7
- package/dist/IkApprovalProcessDetail/package.json +0 -7
- package/dist/IkCalendar/index.umd.js +0 -1
- package/dist/IkCalendar/package.json +0 -7
- package/dist/IkPageFull/index.umd.js +0 -17
- package/dist/IkPickerUser/index.umd.js +0 -1
- package/dist/IkStatu/index.umd.js +0 -1
- package/dist/IkTemplateOfficeConfig/index.umd.js +0 -1
- /package/dist/Demo/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/Demo/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IKExpandCollapse/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IKExpandCollapse/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IKHorizontalStepBar/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IKHorizontalStepBar/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IKSearchHead/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IKSearchHead/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IKVerticalStepBar/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IKVerticalStepBar/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkApprovalProcessDetail/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkApprovalProcessDetail/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkBaseDialog/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkBaseDialog/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkBottomOperate/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkBottomOperate/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkBtnContent/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkBtnContent/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkDescription/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkDescription/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkDragList/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkDragList/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkFullCalendar/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkFullCalendar/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkPageTabs/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkPageTabs/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkPrintConfig/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkPrintConfig/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkPrintView/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkPrintView/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkRadioGroup/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkRadioGroup/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkSchedule/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkSchedule/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkSvgIcon/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkSvgIcon/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkTooltip/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkTooltip/{index.umd.js → ik.index.umd.js} +0 -0
- /package/dist/IkUploadImage/{index.es.js → ik.index.es.js} +0 -0
- /package/dist/IkUploadImage/{index.umd.js → ik.index.umd.js} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
if (l.install = (
|
|
6
|
-
for (const
|
|
7
|
-
|
|
1
|
+
import { defineComponent as B, ref as _, computed as U, watch as T, openBlock as s, createBlock as P, unref as C, withCtx as j, createElementVNode as p, resolveComponent as K, createElementBlock as c, normalizeClass as w, normalizeStyle as k, createCommentVNode as b, Fragment as z, renderList as I, createVNode as x, toDisplayString as A, pushScopeId as W, popScopeId as q } from "vue";
|
|
2
|
+
import { ikColor as R, ikUrl as G } from "iking-utils-pro";
|
|
3
|
+
import { ElDialog as X } from "element-plus";
|
|
4
|
+
const F = (l, e) => {
|
|
5
|
+
if (l.install = (n) => {
|
|
6
|
+
for (const t of [l, ...Object.values(e ?? {})])
|
|
7
|
+
n.component(t.name, t);
|
|
8
8
|
}, e)
|
|
9
|
-
for (const [
|
|
10
|
-
l[
|
|
9
|
+
for (const [n, t] of Object.entries(e))
|
|
10
|
+
l[n] = t;
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
const
|
|
14
|
-
for (const [
|
|
15
|
-
|
|
16
|
-
return
|
|
12
|
+
}, Y = (l, e) => {
|
|
13
|
+
const n = l.__vccOpts || l;
|
|
14
|
+
for (const [t, o] of e)
|
|
15
|
+
n[t] = o;
|
|
16
|
+
return n;
|
|
17
17
|
};
|
|
18
|
-
const
|
|
18
|
+
const H = typeof btoa == "function", S = typeof Buffer == "function";
|
|
19
19
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
20
|
-
const D = typeof TextEncoder == "function" ? new TextEncoder() : void 0,
|
|
20
|
+
const D = typeof TextEncoder == "function" ? new TextEncoder() : void 0, J = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", h = Array.prototype.slice.call(J);
|
|
21
21
|
((l) => {
|
|
22
22
|
let e = {};
|
|
23
|
-
return l.forEach((
|
|
24
|
-
})(
|
|
23
|
+
return l.forEach((n, t) => e[n] = t), e;
|
|
24
|
+
})(h);
|
|
25
25
|
const d = String.fromCharCode.bind(String);
|
|
26
26
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
27
|
-
const
|
|
28
|
-
let e,
|
|
27
|
+
const M = (l) => l.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), Q = (l) => {
|
|
28
|
+
let e, n, t, o, a = "";
|
|
29
29
|
const u = l.length % 3;
|
|
30
30
|
for (let g = 0; g < l.length; ) {
|
|
31
|
-
if ((
|
|
31
|
+
if ((n = l.charCodeAt(g++)) > 255 || (t = l.charCodeAt(g++)) > 255 || (o = l.charCodeAt(g++)) > 255)
|
|
32
32
|
throw new TypeError("invalid character found");
|
|
33
|
-
e =
|
|
33
|
+
e = n << 16 | t << 8 | o, a += h[e >> 18 & 63] + h[e >> 12 & 63] + h[e >> 6 & 63] + h[e & 63];
|
|
34
34
|
}
|
|
35
|
-
return u ?
|
|
36
|
-
},
|
|
37
|
-
let
|
|
38
|
-
for (let
|
|
39
|
-
|
|
40
|
-
return
|
|
41
|
-
},
|
|
35
|
+
return u ? a.slice(0, u - 3) + "===".substring(u) : a;
|
|
36
|
+
}, N = H ? (l) => btoa(l) : S ? (l) => Buffer.from(l, "binary").toString("base64") : Q, Z = S ? (l) => Buffer.from(l).toString("base64") : (l) => {
|
|
37
|
+
let n = [];
|
|
38
|
+
for (let t = 0, o = l.length; t < o; t += 4096)
|
|
39
|
+
n.push(d.apply(null, l.subarray(t, t + 4096)));
|
|
40
|
+
return N(n.join(""));
|
|
41
|
+
}, ee = (l) => {
|
|
42
42
|
if (l.length < 2) {
|
|
43
43
|
var e = l.charCodeAt(0);
|
|
44
44
|
return e < 128 ? l : e < 2048 ? d(192 | e >>> 6) + d(128 | e & 63) : d(224 | e >>> 12 & 15) + d(128 | e >>> 6 & 63) + d(128 | e & 63);
|
|
@@ -46,7 +46,7 @@ const J = (l) => l.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "
|
|
|
46
46
|
var e = 65536 + (l.charCodeAt(0) - 55296) * 1024 + (l.charCodeAt(1) - 56320);
|
|
47
47
|
return d(240 | e >>> 18 & 7) + d(128 | e >>> 12 & 63) + d(128 | e >>> 6 & 63) + d(128 | e & 63);
|
|
48
48
|
}
|
|
49
|
-
},
|
|
49
|
+
}, le = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, oe = (l) => l.replace(le, ee), V = S ? (l) => Buffer.from(l, "utf8").toString("base64") : D ? (l) => Z(D.encode(l)) : (l) => N(oe(l)), re = (l, e = !1) => e ? M(V(l)) : V(l), ne = ["src"], te = /* @__PURE__ */ B({
|
|
50
50
|
__name: "IKPreviewFile",
|
|
51
51
|
props: {
|
|
52
52
|
modelValue: {
|
|
@@ -77,46 +77,51 @@ const J = (l) => l.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
setup(l) {
|
|
80
|
-
const e = l,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
const e = l, n = _(null), t = U(() => {
|
|
81
|
+
if (!e.kkUrl || !e.url)
|
|
82
|
+
return "";
|
|
83
|
+
const a = e.loadUrl ? e.loadUrl : location.href;
|
|
84
|
+
return `${e.kkUrl}/onlinePreview?url=${encodeURIComponent(
|
|
85
|
+
re(`${a}${e.url}${e.fileName ? `&fullfilename=${e.fileName}` : ""}`)
|
|
86
|
+
)}`;
|
|
87
|
+
}), o = _(e.modelValue);
|
|
88
|
+
return T(() => e.modelValue, (a) => {
|
|
89
|
+
o.value = a;
|
|
90
|
+
}), (a, u) => (s(), P(C(X), {
|
|
86
91
|
fullscreen: "",
|
|
87
92
|
modelValue: o.value,
|
|
88
93
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => o.value = g),
|
|
89
94
|
"destroy-on-close": "",
|
|
90
95
|
"append-to-body": "",
|
|
91
96
|
"modal-class": "ik-file-preview-modal",
|
|
92
|
-
onClose: u[1] || (u[1] = (g) =>
|
|
97
|
+
onClose: u[1] || (u[1] = (g) => a.$emit("update:modelValue", !1)),
|
|
93
98
|
class: "ik-file-preview"
|
|
94
99
|
}, {
|
|
95
100
|
default: j(() => [
|
|
96
101
|
p("iframe", {
|
|
97
102
|
ref_key: "freamRef",
|
|
98
|
-
ref:
|
|
103
|
+
ref: n,
|
|
99
104
|
"cross-origin": "",
|
|
100
|
-
src:
|
|
105
|
+
src: t.value,
|
|
101
106
|
frameborder: "0",
|
|
102
107
|
allowfullscreen: "",
|
|
103
108
|
seamless: ""
|
|
104
|
-
}, null, 8,
|
|
109
|
+
}, null, 8, ne)
|
|
105
110
|
]),
|
|
106
111
|
_: 1
|
|
107
112
|
/* STABLE */
|
|
108
113
|
}, 8, ["modelValue"]));
|
|
109
114
|
}
|
|
110
115
|
});
|
|
111
|
-
const
|
|
116
|
+
const ie = F(te), se = { class: "ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]" }, ae = {
|
|
112
117
|
key: 1,
|
|
113
118
|
class: "h-[1em] w-[1em]",
|
|
114
119
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
120
|
+
}, ce = ["xlink:href"], ue = ["src"], fe = {
|
|
116
121
|
key: 1,
|
|
117
122
|
class: "h-[1em] w-[1em]",
|
|
118
123
|
"aria-hidden": "true"
|
|
119
|
-
},
|
|
124
|
+
}, de = ["xlink:href"], pe = ["src"], ge = /* @__PURE__ */ B({
|
|
120
125
|
name: "IkSvgIcon",
|
|
121
126
|
__name: "index",
|
|
122
127
|
props: {
|
|
@@ -138,10 +143,10 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
138
143
|
disabled: { type: Boolean, default: !1 }
|
|
139
144
|
},
|
|
140
145
|
setup(l) {
|
|
141
|
-
const e = l,
|
|
142
|
-
var o,
|
|
143
|
-
return /^http?:\/\//.test(e.name) ? "img" : /i-[^:]+:[^:]+/.test(e.name) ? "unocss" : (o = e.name) != null && o.startsWith("iksig") ? "iksig" : (
|
|
144
|
-
}),
|
|
146
|
+
const e = l, n = U(() => {
|
|
147
|
+
var o, a;
|
|
148
|
+
return /^http?:\/\//.test(e.name) ? "img" : /i-[^:]+:[^:]+/.test(e.name) ? "unocss" : (o = e.name) != null && o.startsWith("iksig") ? "iksig" : (a = e.name) != null && a.includes(":") ? "iconify" : "svg";
|
|
149
|
+
}), t = U(() => {
|
|
145
150
|
const o = [];
|
|
146
151
|
if (e.flip)
|
|
147
152
|
switch (e.flip) {
|
|
@@ -160,9 +165,9 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
160
165
|
...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
|
|
161
166
|
...o.length && { transform: o.join(" ") },
|
|
162
167
|
padding: e.padding,
|
|
163
|
-
...e.color &&
|
|
168
|
+
...e.color && n.value !== "iksig" ? {
|
|
164
169
|
"--ik-color-icon-dark": e.color,
|
|
165
|
-
"--ik-color-icon-light":
|
|
170
|
+
"--ik-color-icon-light": R.setOpacity(e.color, e.opacity || 0.4)
|
|
166
171
|
} : {},
|
|
167
172
|
...e.type === "primary" || e.primary ? {
|
|
168
173
|
"--ik-color-icon-dark": "var(--ik-theme-color)",
|
|
@@ -175,15 +180,15 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
175
180
|
} : {}
|
|
176
181
|
};
|
|
177
182
|
});
|
|
178
|
-
return (o,
|
|
179
|
-
const u =
|
|
180
|
-
return s(),
|
|
181
|
-
o.notip || !o.title ? (s(),
|
|
183
|
+
return (o, a) => {
|
|
184
|
+
const u = K("el-tooltip");
|
|
185
|
+
return s(), c("span", se, [
|
|
186
|
+
o.notip || !o.title ? (s(), c(
|
|
182
187
|
"i",
|
|
183
188
|
{
|
|
184
189
|
key: 0,
|
|
185
190
|
class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
186
|
-
[o.name]:
|
|
191
|
+
[o.name]: n.value === "unocss",
|
|
187
192
|
"show-bg": o.showBg || o.bg,
|
|
188
193
|
default: o.size === "default",
|
|
189
194
|
small: o.size === "small",
|
|
@@ -193,33 +198,33 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
193
198
|
active: o.active,
|
|
194
199
|
disabled: o.disabled
|
|
195
200
|
}]),
|
|
196
|
-
style:
|
|
201
|
+
style: k(t.value)
|
|
197
202
|
},
|
|
198
203
|
[
|
|
199
204
|
b(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
200
|
-
|
|
205
|
+
n.value === "iksig" ? (s(), c(
|
|
201
206
|
"i",
|
|
202
207
|
{
|
|
203
208
|
key: 0,
|
|
204
209
|
class: w(`iksig ${o.name}`),
|
|
205
|
-
style:
|
|
210
|
+
style: k(t.value)
|
|
206
211
|
},
|
|
207
212
|
null,
|
|
208
213
|
6
|
|
209
214
|
/* CLASS, STYLE */
|
|
210
|
-
)) :
|
|
215
|
+
)) : n.value === "svg" ? (s(), c("svg", ae, [
|
|
211
216
|
p("use", {
|
|
212
217
|
"xlink:href": `#${o.name}`
|
|
213
|
-
}, null, 8,
|
|
214
|
-
])) :
|
|
218
|
+
}, null, 8, ce)
|
|
219
|
+
])) : n.value === "img" ? (s(), c("img", {
|
|
215
220
|
key: 2,
|
|
216
221
|
src: o.name,
|
|
217
222
|
class: "h-[1em] w-[1em]"
|
|
218
|
-
}, null, 8,
|
|
223
|
+
}, null, 8, ue)) : b("v-if", !0)
|
|
219
224
|
],
|
|
220
225
|
6
|
|
221
226
|
/* CLASS, STYLE */
|
|
222
|
-
)) : (s(),
|
|
227
|
+
)) : (s(), P(u, {
|
|
223
228
|
key: 1,
|
|
224
229
|
content: o.title,
|
|
225
230
|
placement: "right"
|
|
@@ -229,7 +234,7 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
229
234
|
"i",
|
|
230
235
|
{
|
|
231
236
|
class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
232
|
-
[o.name]:
|
|
237
|
+
[o.name]: n.value === "unocss",
|
|
233
238
|
"show-bg": o.showBg || o.bg,
|
|
234
239
|
default: o.size === "default",
|
|
235
240
|
primary: o.primary,
|
|
@@ -238,28 +243,28 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
238
243
|
warning: o.warning,
|
|
239
244
|
active: o.active
|
|
240
245
|
}]),
|
|
241
|
-
style:
|
|
246
|
+
style: k(t.value)
|
|
242
247
|
},
|
|
243
248
|
[
|
|
244
|
-
|
|
249
|
+
n.value === "iksig" ? (s(), c(
|
|
245
250
|
"i",
|
|
246
251
|
{
|
|
247
252
|
key: 0,
|
|
248
253
|
class: w(`iksig ${o.name}`),
|
|
249
|
-
style:
|
|
254
|
+
style: k(t.value)
|
|
250
255
|
},
|
|
251
256
|
null,
|
|
252
257
|
6
|
|
253
258
|
/* CLASS, STYLE */
|
|
254
|
-
)) :
|
|
259
|
+
)) : n.value === "svg" ? (s(), c("svg", fe, [
|
|
255
260
|
p("use", {
|
|
256
261
|
"xlink:href": `#${o.name}`
|
|
257
|
-
}, null, 8,
|
|
258
|
-
])) :
|
|
262
|
+
}, null, 8, de)
|
|
263
|
+
])) : n.value === "img" ? (s(), c("img", {
|
|
259
264
|
key: 2,
|
|
260
265
|
src: o.name,
|
|
261
266
|
class: "h-[1em] w-[1em]"
|
|
262
|
-
}, null, 8,
|
|
267
|
+
}, null, 8, pe)) : b("v-if", !0)
|
|
263
268
|
],
|
|
264
269
|
6
|
|
265
270
|
/* CLASS, STYLE */
|
|
@@ -271,22 +276,22 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
271
276
|
]);
|
|
272
277
|
};
|
|
273
278
|
}
|
|
274
|
-
}), E =
|
|
279
|
+
}), E = F(ge), ve = (l) => (W("data-v-170abcfc"), l = l(), q(), l), me = {
|
|
275
280
|
key: 0,
|
|
276
281
|
class: "preview-files"
|
|
277
282
|
}, ye = {
|
|
278
283
|
class: "flex",
|
|
279
284
|
style: { width: "80%", "align-items": "center" }
|
|
280
|
-
},
|
|
285
|
+
}, ke = ["onClick"], he = ["title"], _e = { style: { color: "#b8c6d9" } }, be = ["onClick"], we = /* @__PURE__ */ ve(() => /* @__PURE__ */ p(
|
|
281
286
|
"span",
|
|
282
287
|
null,
|
|
283
288
|
"预览",
|
|
284
289
|
-1
|
|
285
290
|
/* HOISTED */
|
|
286
|
-
)),
|
|
291
|
+
)), xe = {
|
|
287
292
|
key: 1,
|
|
288
293
|
class: "flex preview-img"
|
|
289
|
-
},
|
|
294
|
+
}, Ce = /* @__PURE__ */ B({
|
|
290
295
|
__name: "IKDetailPreviewFiles",
|
|
291
296
|
props: {
|
|
292
297
|
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
@@ -308,91 +313,86 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
308
313
|
type: String,
|
|
309
314
|
default: ""
|
|
310
315
|
},
|
|
311
|
-
//
|
|
312
|
-
|
|
316
|
+
// kkFile的地址 预览地址
|
|
317
|
+
kkUrl: {
|
|
313
318
|
required: !0,
|
|
314
319
|
type: String,
|
|
315
320
|
default: ""
|
|
316
|
-
},
|
|
317
|
-
// 文件服务器下载地址
|
|
318
|
-
urlPreview: {
|
|
319
|
-
type: String,
|
|
320
|
-
default: `"${window.location.origin}/server/oss/download?fileUrl="`
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
setup(l) {
|
|
324
|
-
const e = l,
|
|
325
|
-
|
|
324
|
+
const e = l, n = _(e.fileList);
|
|
325
|
+
T(
|
|
326
326
|
() => e.fileList,
|
|
327
|
-
(
|
|
328
|
-
|
|
327
|
+
(r) => {
|
|
328
|
+
r && (n.value = r);
|
|
329
329
|
},
|
|
330
330
|
{ immediate: !0 }
|
|
331
331
|
);
|
|
332
|
-
const
|
|
332
|
+
const t = _(!1), o = _({}), a = (r) => {
|
|
333
333
|
o.value = {
|
|
334
|
-
|
|
335
|
-
name:
|
|
334
|
+
url: r.url,
|
|
335
|
+
name: r.name
|
|
336
336
|
// row.originName
|
|
337
|
-
},
|
|
338
|
-
}, u = (
|
|
339
|
-
var f,
|
|
340
|
-
return (f =
|
|
341
|
-
}, g = (
|
|
342
|
-
var f,
|
|
343
|
-
return (f =
|
|
344
|
-
}, L = (
|
|
337
|
+
}, t.value = !0;
|
|
338
|
+
}, u = (r) => {
|
|
339
|
+
var f, y, v, m, i;
|
|
340
|
+
return (f = r == null ? void 0 : r.suffix) != null && f.includes("pdf") ? "iksvg_pdf" : (y = r == null ? void 0 : r.suffix) != null && y.includes("doc") ? "iksvg_word" : (v = r == null ? void 0 : r.suffix) != null && v.includes("xls") ? "iksvg_excel" : (m = r == null ? void 0 : r.suffix) != null && m.includes("mov") ? "iksvg_mov" : (i = r == null ? void 0 : r.suffix) != null && i.includes("zip") ? "iksvg_zip" : "icon-jpg";
|
|
341
|
+
}, g = (r) => {
|
|
342
|
+
var f, y, v, m, i;
|
|
343
|
+
return (f = r == null ? void 0 : r.suffix) != null && f.includes("pdf") ? "#FA4E4E" : (y = r == null ? void 0 : r.suffix) != null && y.includes("doc") ? "#2c69e0" : (v = r.suffix) != null && v.includes("xls") ? "#39BFBF" : (m = r.suffix) != null && m.includes("txt") ? "#2c69e0" : (i = r.suffix) != null && i.includes("zip") ? "#FF9000" : "#32CD79";
|
|
344
|
+
}, L = (r) => {
|
|
345
345
|
const f = document.createElement("a");
|
|
346
|
-
f.href = loadUrl
|
|
346
|
+
f.href = G.assembleUrl(e.loadUrl, r.url), f.download = r.name, f.click();
|
|
347
347
|
};
|
|
348
|
-
return (
|
|
349
|
-
var v,
|
|
350
|
-
const
|
|
351
|
-
return s(),
|
|
352
|
-
e.fileType === "file" ? (s(),
|
|
353
|
-
(s(!0),
|
|
348
|
+
return (r, f) => {
|
|
349
|
+
var v, m;
|
|
350
|
+
const y = K("el-image");
|
|
351
|
+
return s(), c("div", null, [
|
|
352
|
+
e.fileType === "file" ? (s(), c("div", me, [
|
|
353
|
+
(s(!0), c(
|
|
354
354
|
z,
|
|
355
355
|
null,
|
|
356
|
-
I(
|
|
356
|
+
I(n.value, (i, $) => (s(), c(
|
|
357
357
|
"div",
|
|
358
358
|
{
|
|
359
|
-
key:
|
|
359
|
+
key: $,
|
|
360
360
|
class: "files-item",
|
|
361
|
-
style:
|
|
361
|
+
style: k({
|
|
362
362
|
width: e.fileWidth,
|
|
363
363
|
"margin-right": e.fileWidth === "100%" ? "0px" : ""
|
|
364
364
|
})
|
|
365
365
|
},
|
|
366
366
|
[
|
|
367
367
|
p("div", ye, [
|
|
368
|
-
x(
|
|
369
|
-
name: u(
|
|
370
|
-
style:
|
|
368
|
+
x(C(E), {
|
|
369
|
+
name: u(i),
|
|
370
|
+
style: k(`color:${g(i)}`),
|
|
371
371
|
size: 36
|
|
372
372
|
}, null, 8, ["name", "style"]),
|
|
373
373
|
p("div", {
|
|
374
374
|
class: "file-name",
|
|
375
|
-
onClick: (O) => L(
|
|
375
|
+
onClick: (O) => L(i)
|
|
376
376
|
}, [
|
|
377
377
|
p("p", {
|
|
378
|
-
title:
|
|
379
|
-
}, A(
|
|
378
|
+
title: i.name
|
|
379
|
+
}, A(i.name), 9, he),
|
|
380
380
|
p(
|
|
381
381
|
"p",
|
|
382
|
-
|
|
383
|
-
A((
|
|
382
|
+
_e,
|
|
383
|
+
A((i.size / 1024).toFixed(2)) + "KB",
|
|
384
384
|
1
|
|
385
385
|
/* TEXT */
|
|
386
386
|
)
|
|
387
|
-
], 8,
|
|
387
|
+
], 8, ke)
|
|
388
388
|
]),
|
|
389
389
|
p("div", {
|
|
390
390
|
class: "file-preview",
|
|
391
|
-
onClick: (O) =>
|
|
391
|
+
onClick: (O) => a(i)
|
|
392
392
|
}, [
|
|
393
|
-
x(
|
|
394
|
-
|
|
395
|
-
], 8,
|
|
393
|
+
x(C(E), { name: "iksvg_yulan" }),
|
|
394
|
+
we
|
|
395
|
+
], 8, be)
|
|
396
396
|
],
|
|
397
397
|
4
|
|
398
398
|
/* STYLE */
|
|
@@ -401,18 +401,18 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
401
401
|
/* KEYED_FRAGMENT */
|
|
402
402
|
))
|
|
403
403
|
])) : b("v-if", !0),
|
|
404
|
-
e.fileType === "img" ? (s(),
|
|
405
|
-
(s(!0),
|
|
404
|
+
e.fileType === "img" ? (s(), c("div", xe, [
|
|
405
|
+
(s(!0), c(
|
|
406
406
|
z,
|
|
407
407
|
null,
|
|
408
|
-
I(
|
|
409
|
-
key:
|
|
408
|
+
I(n.value, (i, $) => (s(), c("div", {
|
|
409
|
+
key: $,
|
|
410
410
|
class: "preview-img"
|
|
411
411
|
}, [
|
|
412
|
-
x(
|
|
412
|
+
x(y, {
|
|
413
413
|
class: "show-img",
|
|
414
|
-
src: l.loadUrl +
|
|
415
|
-
"preview-src-list": [l.loadUrl +
|
|
414
|
+
src: l.loadUrl + i.url,
|
|
415
|
+
"preview-src-list": [l.loadUrl + i.url],
|
|
416
416
|
fit: "cover"
|
|
417
417
|
}, null, 8, ["src", "preview-src-list"])
|
|
418
418
|
]))),
|
|
@@ -420,20 +420,20 @@ const ne = B(re), te = { class: "ik-svg-icon ik-icon inline-block inline-flex ju
|
|
|
420
420
|
/* KEYED_FRAGMENT */
|
|
421
421
|
))
|
|
422
422
|
])) : b("v-if", !0),
|
|
423
|
-
x(
|
|
424
|
-
modelValue:
|
|
425
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
426
|
-
"load-url": e.
|
|
427
|
-
url: (v = o.value) == null ? void 0 : v.
|
|
428
|
-
"kk-url": l.
|
|
429
|
-
"file-name": (
|
|
423
|
+
x(C(ie), {
|
|
424
|
+
modelValue: t.value,
|
|
425
|
+
"onUpdate:modelValue": f[0] || (f[0] = (i) => t.value = i),
|
|
426
|
+
"load-url": e.loadUrl,
|
|
427
|
+
url: (v = o.value) == null ? void 0 : v.url,
|
|
428
|
+
"kk-url": l.kkUrl,
|
|
429
|
+
"file-name": (m = o.value) == null ? void 0 : m.name
|
|
430
430
|
}, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])
|
|
431
431
|
]);
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
|
-
const $e = /* @__PURE__ */
|
|
435
|
+
const $e = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-170abcfc"]]), Se = F($e);
|
|
436
436
|
export {
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
Se as IKDetailPreviewFiles,
|
|
438
|
+
Se as default
|
|
439
439
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.Vue,d["iking-utils-pro"],d["element-plus"]))})(this,function(d,e,w,V){"use strict";const h=(o,l)=>{if(o.install=r=>{for(const i of[o,...Object.values(l??{})])r.component(i.name,i)},l)for(const[r,i]of Object.entries(l))o[r]=i;return o},z=(o,l)=>{const r=o.__vccOpts||o;for(const[i,t]of l)r[i]=t;return r},re="",$=typeof btoa=="function",_=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const b=typeof TextEncoder=="function"?new TextEncoder:void 0,F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=Array.prototype.slice.call(F);(o=>{let l={};return o.forEach((r,i)=>l[r]=i),l})(y);const u=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const U=o=>o.replace(/=/g,"").replace(/[+\/]/g,l=>l=="+"?"-":"_"),x=$?o=>btoa(o):_?o=>Buffer.from(o,"binary").toString("base64"):o=>{let l,r,i,t,a="";const c=o.length%3;for(let p=0;p<o.length;){if((r=o.charCodeAt(p++))>255||(i=o.charCodeAt(p++))>255||(t=o.charCodeAt(p++))>255)throw new TypeError("invalid character found");l=r<<16|i<<8|t,a+=y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}return c?a.slice(0,c-3)+"===".substring(c):a},v=_?o=>Buffer.from(o).toString("base64"):o=>{let r=[];for(let i=0,t=o.length;i<t;i+=4096)r.push(u.apply(null,o.subarray(i,i+4096)));return x(r.join(""))},N=o=>{if(o.length<2){var l=o.charCodeAt(0);return l<128?o:l<2048?u(192|l>>>6)+u(128|l&63):u(224|l>>>12&15)+u(128|l>>>6&63)+u(128|l&63)}else{var l=65536+(o.charCodeAt(0)-55296)*1024+(o.charCodeAt(1)-56320);return u(240|l>>>18&7)+u(128|l>>>12&63)+u(128|l>>>6&63)+u(128|l&63)}},I=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,D=o=>o.replace(I,N),C=_?o=>Buffer.from(o,"utf8").toString("base64"):b?o=>v(b.encode(o)):o=>x(D(o)),A=(o,l=!1)=>l?U(C(o)):C(o),T=["src"],P=e.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(o){const l=o,r=e.ref(null),i=e.computed(()=>{if(!l.kkUrl||!l.url)return"";const a=l.loadUrl?l.loadUrl:location.href;return`${l.kkUrl}/onlinePreview?url=${encodeURIComponent(A(`${a}${l.url}${l.fileName?`&fullfilename=${l.fileName}`:""}`))}`}),t=e.ref(l.modelValue);return e.watch(()=>l.modelValue,a=>{t.value=a}),(a,c)=>(e.openBlock(),e.createBlock(e.unref(V.ElDialog),{fullscreen:"",modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=p=>t.value=p),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:c[1]||(c[1]=p=>a.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"freamRef",ref:r,"cross-origin":"",src:i.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,T)]),_:1},8,["modelValue"]))}}),se="",j=h(P),K={class:"ik-svg-icon ik-icon inline-block inline-flex justify-center line-height-[0]"},q={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},L=["xlink:href"],O=["src"],W={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},R=["xlink:href"],G=["src"],E=h(e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},primary:{type:Boolean},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(o){const l=o,r=e.computed(()=>{var t,a;return/^http?:\/\//.test(l.name)?"img":/i-[^:]+:[^:]+/.test(l.name)?"unocss":(t=l.name)!=null&&t.startsWith("iksig")?"iksig":(a=l.name)!=null&&a.includes(":")?"iconify":"svg"}),i=e.computed(()=>{const t=[];if(l.flip)switch(l.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}return l.rotate&&t.push(`rotate(${l.rotate%360}deg)`),{...l.color&&{color:l.color},...l.size&&{fontSize:typeof l.size=="number"?`${l.size}px`:l.size},...t.length&&{transform:t.join(" ")},padding:l.padding,...l.color&&r.value!=="iksig"?{"--ik-color-icon-dark":l.color,"--ik-color-icon-light":w.ikColor.setOpacity(l.color,l.opacity||.4)}:{},...l.type==="primary"||l.primary?{"--ik-color-icon-dark":"var(--ik-theme-color)","--ik-color-icon-light":"var(--ik-color-icon-light-hover)","--ik-color-bg-icon":"var(--ik-color-bg-button-secondary)"}:l.type==="warning"?{"--ik-color-icon-dark":"var(--ik-color-error)","--ik-color-icon-light":"var(--ik-color-icon-error-light)","--ik-color-bg-icon":"var(--ik-color-icon-error-bg)"}:{}}});return(t,a)=>{const c=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("span",K,[t.notip||!t.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:r.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning,primary:t.primary,active:t.active,disabled:t.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),r.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(i.value)},null,6)):r.value==="svg"?(e.openBlock(),e.createElementBlock("svg",q,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,L)])):r.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,O)):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(c,{key:1,content:t.title,placement:"right"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:r.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",primary:t.primary,small:t.size==="small",big:t.size==="big",warning:t.warning,active:t.active}]),style:e.normalizeStyle(i.value)},[r.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(i.value)},null,6)):r.value==="svg"?(e.openBlock(),e.createElementBlock("svg",W,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,R)])):r.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,G)):e.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),M=o=>(e.pushScopeId("data-v-170abcfc"),o=o(),e.popScopeId(),o),X={key:0,class:"preview-files"},Y={class:"flex",style:{width:"80%","align-items":"center"}},H=["onClick"],J=["title"],Q={style:{color:"#b8c6d9"}},Z=["onClick"],ee=M(()=>e.createElementVNode("span",null,"预览",-1)),le={key:1,class:"flex preview-img"},oe=e.defineComponent({__name:"IKDetailPreviewFiles",props:{fileList:{type:Array,default:()=>[]},fileType:{type:String,default:"file"},fileWidth:{type:String,default:"100%"},loadUrl:{type:String,default:""},kkUrl:{required:!0,type:String,default:""}},setup(o){const l=o,r=e.ref(l.fileList);e.watch(()=>l.fileList,n=>{n&&(r.value=n)},{immediate:!0});const i=e.ref(!1),t=e.ref({}),a=n=>{t.value={url:n.url,name:n.name},i.value=!0},c=n=>{var f,g,m,k,s;return(f=n==null?void 0:n.suffix)!=null&&f.includes("pdf")?"iksvg_pdf":(g=n==null?void 0:n.suffix)!=null&&g.includes("doc")?"iksvg_word":(m=n==null?void 0:n.suffix)!=null&&m.includes("xls")?"iksvg_excel":(k=n==null?void 0:n.suffix)!=null&&k.includes("mov")?"iksvg_mov":(s=n==null?void 0:n.suffix)!=null&&s.includes("zip")?"iksvg_zip":"icon-jpg"},p=n=>{var f,g,m,k,s;return(f=n==null?void 0:n.suffix)!=null&&f.includes("pdf")?"#FA4E4E":(g=n==null?void 0:n.suffix)!=null&&g.includes("doc")?"#2c69e0":(m=n.suffix)!=null&&m.includes("xls")?"#39BFBF":(k=n.suffix)!=null&&k.includes("txt")?"#2c69e0":(s=n.suffix)!=null&&s.includes("zip")?"#FF9000":"#32CD79"},te=n=>{const f=document.createElement("a");f.href=w.ikUrl.assembleUrl(l.loadUrl,n.url),f.download=n.name,f.click()};return(n,f)=>{var m,k;const g=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",null,[l.fileType==="file"?(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(s,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"files-item",style:e.normalizeStyle({width:l.fileWidth,"margin-right":l.fileWidth==="100%"?"0px":""})},[e.createElementVNode("div",Y,[e.createVNode(e.unref(E),{name:c(s),style:e.normalizeStyle(`color:${p(s)}`),size:36},null,8,["name","style"]),e.createElementVNode("div",{class:"file-name",onClick:ne=>te(s)},[e.createElementVNode("p",{title:s.name},e.toDisplayString(s.name),9,J),e.createElementVNode("p",Q,e.toDisplayString((s.size/1024).toFixed(2))+"KB",1)],8,H)]),e.createElementVNode("div",{class:"file-preview",onClick:ne=>a(s)},[e.createVNode(e.unref(E),{name:"iksvg_yulan"}),ee],8,Z)],4))),128))])):e.createCommentVNode("v-if",!0),l.fileType==="img"?(e.openBlock(),e.createElementBlock("div",le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(s,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"preview-img"},[e.createVNode(g,{class:"show-img",src:o.loadUrl+s.url,"preview-src-list":[o.loadUrl+s.url],fit:"cover"},null,8,["src","preview-src-list"])]))),128))])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(j),{modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=s=>i.value=s),"load-url":l.loadUrl,url:(m=t.value)==null?void 0:m.url,"kk-url":o.kkUrl,"file-name":(k=t.value)==null?void 0:k.name},null,8,["modelValue","load-url","url","kk-url","file-name"])])}}}),ce="",S=h(z(oe,[["__scopeId","data-v-170abcfc"]]));d.IKDetailPreviewFiles=S,d.default=S,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|