@das-fed/ui 6.4.0-test.31 → 6.4.0-test.40
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/esm-map.json +26 -1
- package/package.json +10 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +244 -0
- package/packages/business-components/ai-panel/index-BY-YZuV-.js +180 -0
- package/packages/business-components/ai-panel/index-BY-YZuV-.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CJeKTaAS.js +60 -0
- package/packages/business-components/ai-panel/index-CJeKTaAS.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Cbga17VS.js +5841 -0
- package/packages/business-components/ai-panel/index-Cbga17VS.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +9 -0
- package/packages/business-components/ai-panel/src/dasAI/apis.d.ts +16 -0
- package/packages/business-components/ai-panel/src/dasAI/components/addNew/index.vue.d.ts +6 -0
- package/packages/business-components/ai-panel/src/dasAI/components/deleteDialog/index.d.ts +7 -0
- package/packages/business-components/ai-panel/src/dasAI/components/deleteDialog/index.vue.d.ts +12 -0
- package/packages/business-components/ai-panel/src/dasAI/components/folderDialog/index.d.ts +6 -0
- package/packages/business-components/ai-panel/src/dasAI/components/sender/components/senderOpt.vue.d.ts +2 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/audio.d.ts +8 -0
- package/packages/business-components/ai-panel/src/dasAI/hooks/knowbase.d.ts +4 -0
- package/packages/business-components/ai-panel/src/dasAI/index.vue.d.ts +14 -0
- package/packages/business-components/ai-panel/src/dasAI/store/index.d.ts +21 -0
- package/packages/business-components/ai-panel/src/index.vue.d.ts +30 -0
- package/packages/business-components/ai-panel/src/type.d.ts +10 -0
- package/packages/business-components/ai-panel/style.css +1 -0
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/change-pwd/index.js +13 -10
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/change-pwd/style.css +1 -1
- package/packages/business-components/device-panel/index.js +2 -2
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/linkDialog.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/linkDialog.vue.d.ts +1 -1
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/model-table-dialog/index.d.ts +9 -9
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +3 -3
- package/packages/business-components/process-search-form/hooks/useService.d.ts +1 -1
- package/packages/business-components/user-org-dialog/index.js +79 -79
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/style.css +1 -1
- package/packages/business-components/user-org-dialog/style.css.gz +0 -0
- package/packages/business-components/video-dialog/index.js +193 -186
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +1 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/image-upload/index.d.ts +1 -0
- package/packages/components/image-upload/index.js +85 -82
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/src/Index.vue.d.ts +1 -0
- package/packages/components/image-upload/src/type.d.ts +3 -0
- package/packages/components/image-upload/style.css +1 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-viewer/index.d.ts +5 -2
- package/packages/components/image-viewer/index.js +395 -362
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +5 -2
- package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +1 -0
- package/packages/components/image-viewer/src/type.d.ts +6 -0
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/scrollbar/index.js +1 -1
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/select/index.js +58 -57
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +2 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -0
- package/packages/icons/audioing/index.d.ts +1 -0
- package/packages/icons/audioing/index.js +17 -0
- package/packages/icons/audioing/index.js.gz +0 -0
- package/packages/icons/audioing/index.vue.d.ts +19 -0
- package/packages/icons/bobaoguanbi/index.d.ts +1 -0
- package/packages/icons/bobaoguanbi/index.js +17 -0
- package/packages/icons/bobaoguanbi/index.js.gz +0 -0
- package/packages/icons/bobaoguanbi/index.vue.d.ts +19 -0
- package/packages/icons/bobaokaiqi/index.d.ts +1 -0
- package/packages/icons/bobaokaiqi/index.js +17 -0
- package/packages/icons/bobaokaiqi/index.js.gz +0 -0
- package/packages/icons/bobaokaiqi/index.vue.d.ts +19 -0
- package/packages/icons/cankaoneirong/index.d.ts +1 -0
- package/packages/icons/cankaoneirong/index.js +22 -0
- package/packages/icons/cankaoneirong/index.js.gz +0 -0
- package/packages/icons/cankaoneirong/index.vue.d.ts +19 -0
- package/packages/icons/closeaudio/index.d.ts +1 -0
- package/packages/icons/closeaudio/index.js +17 -0
- package/packages/icons/closeaudio/index.js.gz +0 -0
- package/packages/icons/closeaudio/index.vue.d.ts +19 -0
- package/packages/icons/fasong/index.d.ts +1 -0
- package/packages/icons/fasong/index.js +22 -0
- package/packages/icons/fasong/index.js.gz +0 -0
- package/packages/icons/fasong/index.vue.d.ts +19 -0
- package/packages/icons/fresh/index.d.ts +1 -0
- package/packages/icons/fresh/index.js +22 -0
- package/packages/icons/fresh/index.js.gz +0 -0
- package/packages/icons/fresh/index.vue.d.ts +19 -0
- package/packages/icons/fuzhineirong/index.d.ts +1 -0
- package/packages/icons/fuzhineirong/index.js +22 -0
- package/packages/icons/fuzhineirong/index.js.gz +0 -0
- package/packages/icons/fuzhineirong/index.vue.d.ts +19 -0
- package/packages/icons/huida/index.d.ts +1 -0
- package/packages/icons/huida/index.js +22 -0
- package/packages/icons/huida/index.js.gz +0 -0
- package/packages/icons/huida/index.vue.d.ts +19 -0
- package/packages/icons/huidaodibu/index.d.ts +1 -0
- package/packages/icons/huidaodibu/index.js +22 -0
- package/packages/icons/huidaodibu/index.js.gz +0 -0
- package/packages/icons/huidaodibu/index.vue.d.ts +19 -0
- package/packages/icons/index.d.ts +23 -0
- package/packages/icons/index.js +23 -0
- package/packages/icons/intnet/index.d.ts +1 -0
- package/packages/icons/intnet/index.js +17 -0
- package/packages/icons/intnet/index.js.gz +0 -0
- package/packages/icons/intnet/index.vue.d.ts +19 -0
- package/packages/icons/know/index.d.ts +1 -0
- package/packages/icons/know/index.js +17 -0
- package/packages/icons/know/index.js.gz +0 -0
- package/packages/icons/know/index.vue.d.ts +19 -0
- package/packages/icons/knowed/index.d.ts +1 -0
- package/packages/icons/knowed/index.js +17 -0
- package/packages/icons/knowed/index.js.gz +0 -0
- package/packages/icons/knowed/index.vue.d.ts +19 -0
- package/packages/icons/knowopen/index.d.ts +1 -0
- package/packages/icons/knowopen/index.js +17 -0
- package/packages/icons/knowopen/index.js.gz +0 -0
- package/packages/icons/knowopen/index.vue.d.ts +19 -0
- package/packages/icons/lianjie/index.d.ts +1 -0
- package/packages/icons/lianjie/index.js +22 -0
- package/packages/icons/lianjie/index.js.gz +0 -0
- package/packages/icons/lianjie/index.vue.d.ts +19 -0
- package/packages/icons/lishihuihua/index.d.ts +1 -0
- package/packages/icons/lishihuihua/index.js +22 -0
- package/packages/icons/lishihuihua/index.js.gz +0 -0
- package/packages/icons/lishihuihua/index.vue.d.ts +19 -0
- package/packages/icons/qingkong/index.d.ts +1 -0
- package/packages/icons/qingkong/index.js +22 -0
- package/packages/icons/qingkong/index.js.gz +0 -0
- package/packages/icons/qingkong/index.vue.d.ts +19 -0
- package/packages/icons/select2/index.d.ts +1 -0
- package/packages/icons/select2/index.js +17 -0
- package/packages/icons/select2/index.vue.d.ts +19 -0
- package/packages/icons/shendusikao/index.d.ts +1 -0
- package/packages/icons/shendusikao/index.js +22 -0
- package/packages/icons/shendusikao/index.js.gz +0 -0
- package/packages/icons/shendusikao/index.vue.d.ts +19 -0
- package/packages/icons/tianjiaxinhuati/index.d.ts +1 -0
- package/packages/icons/tianjiaxinhuati/index.js +22 -0
- package/packages/icons/tianjiaxinhuati/index.js.gz +0 -0
- package/packages/icons/tianjiaxinhuati/index.vue.d.ts +19 -0
- package/packages/icons/yingyong/index.d.ts +1 -0
- package/packages/icons/yingyong/index.js +17 -0
- package/packages/icons/yingyong/index.js.gz +0 -0
- package/packages/icons/yingyong/index.vue.d.ts +19 -0
- package/packages/icons/yuyin/index.d.ts +1 -0
- package/packages/icons/yuyin/index.js +17 -0
- package/packages/icons/yuyin/index.js.gz +0 -0
- package/packages/icons/yuyin/index.vue.d.ts +19 -0
- package/packages/icons/zhongxinshengcheng/index.d.ts +1 -0
- package/packages/icons/zhongxinshengcheng/index.js +22 -0
- package/packages/icons/zhongxinshengcheng/index.js.gz +0 -0
- package/packages/icons/zhongxinshengcheng/index.vue.d.ts +19 -0
|
@@ -1,269 +1,272 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/image-viewer/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { setThemeRule as
|
|
4
|
-
import { ref as
|
|
5
|
-
import { ElImageViewer as
|
|
6
|
-
import { Upload as
|
|
7
|
-
import { vDasTooltip as
|
|
8
|
-
import { DasImageUpload as
|
|
9
|
-
import { DasSpin as
|
|
2
|
+
import { withInstall as Pe } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { setThemeRule as Oe } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
import { ref as ne, computed as D, watch as Je, createApp as Ne, defineComponent as Fe, createElementBlock as h, openBlock as d, Fragment as x, createCommentVNode as r, createElementVNode as N, withDirectives as B, normalizeStyle as $, createVNode as H, unref as e, normalizeClass as _, withCtx as q, createBlock as I, vShow as Q, isRef as ue, createTextVNode as ce, toDisplayString as de, renderList as me } from "vue";
|
|
5
|
+
import { ElImageViewer as Ve, ElImage as ge } from "element-plus";
|
|
6
|
+
import { Upload as pe } from "ant-design-vue";
|
|
7
|
+
import { vDasTooltip as fe } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
8
|
+
import { DasImageUpload as Ae } from "@das-fed/ui/packages/components/image-upload/index";
|
|
9
|
+
import { DasSpin as ve } from "@das-fed/ui/packages/components/spin/index";
|
|
10
10
|
import { DasAudioVideo as ee } from "@das-fed/ui/packages/components/audio-video/index";
|
|
11
|
-
import { DasIconDownload as
|
|
12
|
-
import { DasIconChange as
|
|
13
|
-
import { DasIconDelete as
|
|
11
|
+
import { DasIconDownload as we } from "@das-fed/ui/packages/icons/download/index";
|
|
12
|
+
import { DasIconChange as te } from "@das-fed/ui/packages/icons/change/index";
|
|
13
|
+
import { DasIconDelete as Ce } from "@das-fed/ui/packages/icons/delete/index";
|
|
14
14
|
import { useModelValue as Ee } from "@das-fed/utils/vue";
|
|
15
15
|
import { DasMessage as he } from "@das-fed/ui/packages/components/message/index";
|
|
16
|
-
import { extractFilename as
|
|
17
|
-
import { getConfig as
|
|
18
|
-
import { currentLang as Ie, i18n as
|
|
19
|
-
import { iotMinio as
|
|
20
|
-
import { useFile as
|
|
21
|
-
import { getUserInfo as
|
|
22
|
-
import { pureImageSrc as
|
|
16
|
+
import { extractFilename as ye, getFileExtension as Te } from "@das-fed/utils/common-tools";
|
|
17
|
+
import { getConfig as re } from "@das-fed/utils/config";
|
|
18
|
+
import { currentLang as Ie, i18n as ke } from "@das-fed/web/packages/i18n/index";
|
|
19
|
+
import { iotMinio as Be } from "@das-fed/utils/api-services/modules/iot";
|
|
20
|
+
import { useFile as Le } from "@das-fed/utils/api-services/modules/file";
|
|
21
|
+
import { getUserInfo as Me } from "@das-fed/utils/common-info";
|
|
22
|
+
import { pureImageSrc as le } from "@das-fed/utils/pure-image-src";
|
|
23
23
|
import "ant-design-vue/es/upload/style/css";
|
|
24
24
|
import "element-plus/es/components/image/style/css";
|
|
25
25
|
import "element-plus/es/components/image-viewer/style/css";
|
|
26
26
|
import "@das-fed/ui/packages/global/theme";
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
27
|
+
const se = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAyKADAAQAAAABAAAAyAAAAACbWz2VAAAPbUlEQVR4Ae1dDXfiKhDV1o92T3f//9/ctVWjUR+XLe9hnvKRkMCQO+fYJIYg3OGWmYHA8nq93tRnQSECROAegZeXl8Xqdrst8KEQASJwjwB48XL/Fa+IABGwESBBbDR4TgQ6CJAgHUB4SQRsBEgQGw2eE4EOAiRIBxBeEgEbARLERoPnRKCDAAnSAYSXRMBGgASx0eA5EeggQIJ0AOElEbARIEFsNHhOBDoIkCAdQHhJBGwESBAbDZ4TgQ4CJEgHEF4SARsBEsRGg+dEoIMACdIBhJdEwEaABLHR4DkR6CBAgnQA4SURsBEgQWw0eE4EOgiQIB1AeEkEbARIEBsNnhOBDgIkSAcQXhIBGwESxEaD50SggwAJ0gGEl0TARoAEsdHgORHoIECCdADhJRGwESBBbDR4TgQ6CJAgHUB4SQRsBEgQGw2eE4EOAiRIBxBeEgEbARLERoPnRKCDAAnSAYSXRMBGYGVf1Hpu9kDBcblcLrAxCoUIhCBQFUFAgPP5vLhcLvrTtq0Tg9fXV00WHNfr9QJHChGwEViqxiR6CzaQ4nQ66Q+IMVQ2m80Cn9Wqqv8dQ2GZ5fOwNMQSBGQ4Ho+6xxhDewBn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QQSGHJSJAAhfmml+jxD/WCFKU+BEiQAJ1i9RKXtJfWdZv3BCNAggQo79VDkCsJEoCizCQkSIDefP4Hp5cEgCg0CQkSoDifiXXh/KsAFGUmIUE8etMj6J40fP/DA5Dg2ySIR3l+/4PRKw+Eom+TIB71+cwrLkztAVD4bRLEo8CXFzdE9D88AAq/7da+8MqlKP7SQxBMUqTUiwAJ4tHtC6a5O4QzeB3gVHDLrf0KKji0Cr4ehHOwhiJc9vMkiEs/apEGp6h30Cl1I0CCOPTrDfHeGOJ1wFfFLRLEocalZ4Xq25VdiAO+Km4tm6a5MVT5WJcYA3Et1ADcLlwH6zF4FXy7Vtt7/wME4YHuqneMGQAAAABJRU5ErkJggg==", Ke = (t, a) => {
|
|
28
|
+
const s = new Image();
|
|
29
|
+
s.setAttribute("crossOrigin", "Anonymous"), s.onload = function() {
|
|
30
30
|
let o = document.createElement("canvas");
|
|
31
|
-
const
|
|
32
|
-
o.width =
|
|
33
|
-
let v = URL.createObjectURL(
|
|
34
|
-
const
|
|
35
|
-
|
|
31
|
+
const m = o.getContext("2d");
|
|
32
|
+
o.width = s.width, o.height = s.height, m.drawImage(s, 0, 0, s.width, s.height), o.toBlob((f) => {
|
|
33
|
+
let v = URL.createObjectURL(f), l = document.createElement("a"), R = new MouseEvent("click");
|
|
34
|
+
const C = t.substring(t.lastIndexOf(".")).toLowerCase();
|
|
35
|
+
l.download = a || `default${C}`, l.href = v, l.dispatchEvent(R), URL.revokeObjectURL(v);
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
t && fetch(t).then((
|
|
37
|
+
}, s.src = t + "?v=" + Date.now();
|
|
38
|
+
}, je = (t, a) => {
|
|
39
|
+
t && fetch(t).then((s) => s.blob()).then((s) => {
|
|
40
40
|
const o = document.createElement("a");
|
|
41
41
|
document.body.appendChild(o), o.style.display = "none";
|
|
42
|
-
const
|
|
43
|
-
o.href =
|
|
42
|
+
const m = window.URL.createObjectURL(s);
|
|
43
|
+
o.href = m, o.download = a, o.click(), document.body.removeChild(o), window.URL.revokeObjectURL(m);
|
|
44
44
|
});
|
|
45
|
-
},
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
}, He = (t) =>
|
|
49
|
-
const t =
|
|
45
|
+
}, ze = (t) => {
|
|
46
|
+
const a = (t == null ? void 0 : t.minioTokenApi) ?? "token";
|
|
47
|
+
return Be.get(a, (s) => (s.headers || (s.headers = {}), t != null && t.baseUrl && (s.baseURL = t.baseUrl), s));
|
|
48
|
+
}, He = (t) => Be.post("put-object", (a) => (a.headers || (a.headers = {}), t && (a.baseURL = t), a.headers["Content-Type"] = "multipart/form-data", a)), qe = () => {
|
|
49
|
+
const t = Me();
|
|
50
50
|
return t ? t.tenantId : "";
|
|
51
|
-
},
|
|
52
|
-
const { baseUrl:
|
|
53
|
-
const [w,
|
|
54
|
-
return w ? { stauts: !1 } : { status: !0, data:
|
|
55
|
-
}, { generateUniqueName:
|
|
56
|
-
return { upload: async (w,
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
59
|
-
const U = w.name,
|
|
60
|
-
accessKeyId:
|
|
61
|
-
secretAccessKey:
|
|
62
|
-
sessionToken:
|
|
51
|
+
}, Ye = (t) => {
|
|
52
|
+
const { baseUrl: a, serviceName: s, pathPrefix: o, bucketName: m, minioTokenApi: f, autoContentType: v } = t, l = async () => {
|
|
53
|
+
const [w, u] = await ze({ baseUrl: a, minioTokenApi: f })().run();
|
|
54
|
+
return w ? { stauts: !1 } : { status: !0, data: u };
|
|
55
|
+
}, { generateUniqueName: R } = Le();
|
|
56
|
+
return { upload: async (w, u = {}) => {
|
|
57
|
+
const E = await l();
|
|
58
|
+
if (!E.status) return;
|
|
59
|
+
const U = w.name, k = E.data, F = o || qe(), V = U.substring(U.lastIndexOf(".")).toLowerCase(), L = t.randomName ? `${R("")}${V}` : U, M = s ? `${F}/${s}/${L}` : `${F}/${L}`, K = {
|
|
60
|
+
accessKeyId: k.accessKeyId,
|
|
61
|
+
secretAccessKey: k.secretAccessKey,
|
|
62
|
+
sessionToken: k.sessionToken,
|
|
63
63
|
file: w,
|
|
64
|
-
bucketName:
|
|
65
|
-
filePath:
|
|
64
|
+
bucketName: m || "business",
|
|
65
|
+
filePath: M,
|
|
66
66
|
isThumbnail: !0,
|
|
67
67
|
autoContentType: v === !0 ? !0 : void 0,
|
|
68
|
-
...
|
|
69
|
-
}, [j,
|
|
70
|
-
return j ? "error" :
|
|
68
|
+
...u
|
|
69
|
+
}, [j, z] = await He(a)(K).run();
|
|
70
|
+
return j ? "error" : z.value;
|
|
71
71
|
} };
|
|
72
|
-
},
|
|
73
|
-
isNaN(Number(
|
|
74
|
-
const
|
|
75
|
-
M:
|
|
76
|
-
K:
|
|
72
|
+
}, Ze = () => ({ size2B: (a) => {
|
|
73
|
+
isNaN(Number(a)) ? a = a.toString() : a = a + "M";
|
|
74
|
+
const s = Number(a.slice(0, -1)), o = a[a.length - 1].toUpperCase(), m = 1024, f = {
|
|
75
|
+
M: m * m,
|
|
76
|
+
K: m,
|
|
77
77
|
B: 1
|
|
78
78
|
};
|
|
79
|
-
return { finalSize:
|
|
80
|
-
} }),
|
|
79
|
+
return { finalSize: s * f[o], sizeText: a };
|
|
80
|
+
} }), Ge = (t) => ({ handlerImageSrc: (s, o) => {
|
|
81
81
|
if (o.startsWith("http")) return o;
|
|
82
|
-
const
|
|
83
|
-
return
|
|
84
|
-
} }),
|
|
85
|
-
const
|
|
86
|
-
return await
|
|
87
|
-
},
|
|
88
|
-
const
|
|
89
|
-
let
|
|
82
|
+
const m = t.useOriginUrl ? o : le(o);
|
|
83
|
+
return s + m;
|
|
84
|
+
} }), Xe = async (t) => {
|
|
85
|
+
const s = re().baseURL + le(t);
|
|
86
|
+
return await ye(s);
|
|
87
|
+
}, We = async (t) => {
|
|
88
|
+
const a = re();
|
|
89
|
+
let s = [];
|
|
90
90
|
for (const o of t) {
|
|
91
|
-
const
|
|
92
|
-
|
|
91
|
+
const m = a.baseURL + le(o), f = await ye(m);
|
|
92
|
+
s.push(f);
|
|
93
93
|
}
|
|
94
|
-
return
|
|
95
|
-
},
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
98
|
-
const c =
|
|
94
|
+
return s;
|
|
95
|
+
}, xe = (t, a) => {
|
|
96
|
+
const s = re(), o = Ee(t, "modelValue"), m = Ee(t, "status"), { upload: f } = Ye(t), { size2B: v } = Ze(), { handlerImageSrc: l } = Ge(t), R = ne(""), C = ne([]), w = [".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".mpeg", ".webm"], u = [".mp3", ".wav", ".aac", ".flac", ".ogg", ".alff", ".wma", ".m4a"], E = D(() => t.baseUrl ? t.baseUrl : process.env.NODE_ENV === "production" ? "" : s.baseURL || ""), U = (i) => {
|
|
97
|
+
if (i) {
|
|
98
|
+
const c = i.substring(i.lastIndexOf(".")).toLowerCase();
|
|
99
99
|
if (w.includes(c)) return "isVideo";
|
|
100
|
-
if (
|
|
100
|
+
if (u.includes(c)) return "isAudio";
|
|
101
101
|
}
|
|
102
102
|
return "isImg";
|
|
103
|
-
},
|
|
103
|
+
}, k = D(() => {
|
|
104
104
|
var c;
|
|
105
|
-
let
|
|
106
|
-
return
|
|
107
|
-
}),
|
|
108
|
-
const
|
|
105
|
+
let i = t.accept ? (c = t.accept) == null ? void 0 : c.split(",") : [];
|
|
106
|
+
return i.includes("image/jpg") && !i.includes("image/jpeg") && i.push("image/jpeg"), i.includes(".jpg") && !i.includes(".jpeg") && i.push(".jpeg"), t.acceptVideo && (i = [...i, ...w]), t.acceptAudio && (i = [...i, ...u]), i.join(",");
|
|
107
|
+
}), F = D(() => m.value === "uploading"), V = ne(0), L = (i) => F.value ? V.value === i : !1, M = D(() => o.value ? [l(E.value, o.value)] : []), K = D(() => o.value ? o.value.map((i) => [l(E.value, i)]) : []), j = D(() => t.status !== "info" && (t.needDeleteBtn || t.needChangeBtn) || t.needDownloadBtn), z = D(() => t.status !== "info" && t.needDeleteBtn || t.needDownloadBtn), Y = D(() => {
|
|
108
|
+
const i = [], c = t.previewBtnConfig;
|
|
109
109
|
if (typeof c == "boolean")
|
|
110
110
|
return c ? ["zoom_in", "zoom_out", "turn_left", "turn_right", "full_screen"] : [];
|
|
111
111
|
for (const S in c)
|
|
112
|
-
c[S] &&
|
|
113
|
-
return
|
|
114
|
-
}),
|
|
112
|
+
c[S] && i.push(S);
|
|
113
|
+
return i;
|
|
114
|
+
}), ae = () => {
|
|
115
115
|
setTimeout(() => {
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const i = document.querySelector(".el-image-viewer__wrapper");
|
|
117
|
+
i == null || i.classList.add("das-image-viewer-preview-btn-groups"), i == null || i.classList.add(...Y.value);
|
|
118
118
|
}, 0);
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
}, O = (i) => {
|
|
120
|
+
a("clickChangeIcon", i);
|
|
121
|
+
}, J = (i, c) => {
|
|
122
|
+
t.limitNum === 1 ? (o.value = "", a("update:modelValue", ""), a("deleteImage", i)) : (o.value.splice(c, 1), a("update:modelValue", o.value), a("deleteImage", i));
|
|
123
|
+
}, X = (i, c = 0) => {
|
|
124
|
+
var Z;
|
|
125
|
+
a("downloadImage", i);
|
|
124
126
|
let S = "";
|
|
125
|
-
t.limitNum === 1 ? S = t.imageName ||
|
|
126
|
-
}, W = async (
|
|
127
|
-
var
|
|
127
|
+
t.limitNum === 1 ? S = t.imageName || R.value : S = ((Z = t.imageName) == null ? void 0 : Z[c]) || C.value[c], U(i) === "isImg" ? Ke(l(E.value, i), S) : je(l(E.value, i), S);
|
|
128
|
+
}, W = async (i, c) => {
|
|
129
|
+
var Z;
|
|
128
130
|
if (t.maxSize) {
|
|
129
|
-
const { finalSize: b, sizeText:
|
|
130
|
-
if (
|
|
131
|
-
const
|
|
131
|
+
const { finalSize: b, sizeText: y } = v(t.maxSize);
|
|
132
|
+
if (i.size > b) {
|
|
133
|
+
const G = Ie.value === "zh-CN" ? "、" : ", ", T = ke(
|
|
132
134
|
"das-ui-import-upload-key3",
|
|
133
|
-
|
|
134
|
-
((
|
|
135
|
-
).value,
|
|
136
|
-
return he.warning(
|
|
135
|
+
y,
|
|
136
|
+
((Z = k.value) == null ? void 0 : Z.toUpperCase().replaceAll(".", "").replaceAll(",", G)) ?? ""
|
|
137
|
+
).value, oe = t.errorMessage || T;
|
|
138
|
+
return he.warning(oe), !1;
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
const S = async (b) => {
|
|
140
|
-
|
|
141
|
-
const
|
|
142
|
-
return
|
|
142
|
+
V.value = b, a("update:status", "uploading"), a("image-upload", i);
|
|
143
|
+
const y = await f(i);
|
|
144
|
+
return y === "error" ? (a("update:status", "error"), !1) : (a("upload-success", i, y), t.limitNum === 1 ? o.value = y : o.value[b] = y, a("update:modelValue", o.value), a("update:status", "normal"), !1);
|
|
143
145
|
};
|
|
144
146
|
if (t.customCheck) {
|
|
145
|
-
const b = t.customCheck(
|
|
147
|
+
const b = t.customCheck(i);
|
|
146
148
|
if (b instanceof Promise)
|
|
147
|
-
return new Promise(async (
|
|
148
|
-
let
|
|
149
|
+
return new Promise(async (y, G) => {
|
|
150
|
+
let T;
|
|
149
151
|
try {
|
|
150
|
-
|
|
152
|
+
T = await b.then();
|
|
151
153
|
} catch {
|
|
152
|
-
|
|
154
|
+
T = !1;
|
|
153
155
|
}
|
|
154
|
-
|
|
156
|
+
T ? S(c) : G(!1);
|
|
155
157
|
});
|
|
156
158
|
if (!b) return !1;
|
|
157
|
-
} else if (
|
|
158
|
-
const b =
|
|
159
|
-
let
|
|
160
|
-
if (!
|
|
161
|
-
const P = t.acceptAudio || t.acceptVideo ? "das-ui-import-upload-key2" : "das-ui-import-upload-key1",
|
|
162
|
-
return he.warning(
|
|
159
|
+
} else if (k.value) {
|
|
160
|
+
const b = k.value.split(",").filter((P) => P.trim().startsWith(".")).map((P) => P.trim()), y = k.value.split(",").filter((P) => !P.trim().startsWith(".")).map((P) => P.trim()), G = Te(i.name), T = b.includes(G);
|
|
161
|
+
let oe = y.includes("image/*") && i.type.split("/")[0].trim() === "image", Se = y.includes("video/*") && i.type.split("/")[0].trim() === "video", De = y.includes("audio/*") && i.type.split("/")[0].trim() === "audio", Re = y.includes(i.type) || oe || Se || De;
|
|
162
|
+
if (!T && !Re) {
|
|
163
|
+
const P = t.acceptAudio || t.acceptVideo ? "das-ui-import-upload-key2" : "das-ui-import-upload-key1", Ue = Ie.value === "zh-CN" ? "、" : ", ", be = t.errorMessage || ke(P, k.value.toUpperCase().replaceAll(".", "").replaceAll(",", Ue)).value;
|
|
164
|
+
return he.warning(be), !1;
|
|
163
165
|
}
|
|
164
166
|
}
|
|
165
167
|
return S(c);
|
|
166
|
-
},
|
|
167
|
-
t.limitNum !== 1 && (
|
|
168
|
-
const c = await
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
if (
|
|
172
|
-
|
|
168
|
+
}, n = async (i) => {
|
|
169
|
+
t.limitNum !== 1 && (V.value = o.length), a("update:status", "uploading"), a("image-upload", i);
|
|
170
|
+
const c = await f(i);
|
|
171
|
+
a("upload-success", i, c), t.limitNum === 1 ? g(c) : A(c);
|
|
172
|
+
}, g = (i) => {
|
|
173
|
+
if (i === "error") {
|
|
174
|
+
a("update:status", "error");
|
|
173
175
|
return;
|
|
174
176
|
}
|
|
175
|
-
o.value =
|
|
176
|
-
},
|
|
177
|
-
if (
|
|
178
|
-
|
|
177
|
+
o.value = i, a("update:modelValue", o.value), a("update:status", "normal");
|
|
178
|
+
}, A = (i) => {
|
|
179
|
+
if (i === "error") {
|
|
180
|
+
a("update:status", "error");
|
|
179
181
|
return;
|
|
180
182
|
}
|
|
181
|
-
o.value.push(
|
|
183
|
+
o.value.push(i), a("update:modelValue", o.value), a("update:status", "normal");
|
|
182
184
|
};
|
|
183
185
|
return Je(o, async () => {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
+
const i = t.limitNum ?? 1;
|
|
187
|
+
i === 1 && o.value ? R.value = await Xe(o.value) : i > 1 && o.value.length > 0 && (C.value = await We(o.value));
|
|
186
188
|
}, {
|
|
187
189
|
deep: !0,
|
|
188
190
|
immediate: !0
|
|
189
191
|
}), {
|
|
190
192
|
url: o,
|
|
191
|
-
singlePreviewList:
|
|
192
|
-
multiPreviewList:
|
|
193
|
-
isAccept:
|
|
194
|
-
loading:
|
|
195
|
-
uploadStatus:
|
|
196
|
-
previewBtns:
|
|
193
|
+
singlePreviewList: M,
|
|
194
|
+
multiPreviewList: K,
|
|
195
|
+
isAccept: k,
|
|
196
|
+
loading: F,
|
|
197
|
+
uploadStatus: m,
|
|
198
|
+
previewBtns: Y,
|
|
197
199
|
operateShow: j,
|
|
198
|
-
operateShow_Multi:
|
|
199
|
-
singlePreviewName:
|
|
200
|
-
multiPreviewName:
|
|
200
|
+
operateShow_Multi: z,
|
|
201
|
+
singlePreviewName: R,
|
|
202
|
+
multiPreviewName: C,
|
|
201
203
|
getFileType: U,
|
|
202
|
-
|
|
204
|
+
changeImg: O,
|
|
205
|
+
delImg: J,
|
|
203
206
|
beforeupload: W,
|
|
204
|
-
uploadImg:
|
|
207
|
+
uploadImg: n,
|
|
205
208
|
onDownload: X,
|
|
206
|
-
handleImageClick:
|
|
207
|
-
isLoadingMulti:
|
|
209
|
+
handleImageClick: ae,
|
|
210
|
+
isLoadingMulti: L
|
|
208
211
|
};
|
|
209
|
-
},
|
|
210
|
-
var
|
|
211
|
-
const { __IN_DAS_MICRO_APP:
|
|
212
|
-
if (!
|
|
213
|
-
const { origin:
|
|
214
|
-
(
|
|
215
|
-
},
|
|
216
|
-
sendMessageToMainApp:
|
|
212
|
+
}, $e = (t, a) => {
|
|
213
|
+
var f;
|
|
214
|
+
const { __IN_DAS_MICRO_APP: s, __DAS_MAIN_APP_HREF: o } = window;
|
|
215
|
+
if (!s || !o) return;
|
|
216
|
+
const { origin: m } = new URL(o);
|
|
217
|
+
(f = window.top) == null || f.postMessage({ type: t, data: a }, m);
|
|
218
|
+
}, Qe = "proxy-image-viewer", ie = {
|
|
219
|
+
sendMessageToMainApp: $e,
|
|
217
220
|
// @ts-ignore
|
|
218
221
|
isMicroApp: () => window.__IN_DAS_MICRO_APP && window.top !== window.self,
|
|
219
222
|
addEventFromMicroApp: () => {
|
|
220
223
|
window.addEventListener("message", (t) => {
|
|
221
|
-
const { type:
|
|
222
|
-
if (
|
|
224
|
+
const { type: a, data: s } = t.data;
|
|
225
|
+
if (a !== Qe) return;
|
|
223
226
|
const o = document.createElement("div");
|
|
224
227
|
o.classList.add("das-image-viewer-preview-btn-groups");
|
|
225
|
-
const { previewList:
|
|
226
|
-
urlList:
|
|
228
|
+
const { previewList: m, previewBtns: f } = s, v = Ne(Ve, {
|
|
229
|
+
urlList: m,
|
|
227
230
|
onClose: () => {
|
|
228
231
|
v.unmount(), document.body.removeChild(o);
|
|
229
232
|
}
|
|
230
233
|
});
|
|
231
234
|
document.body.appendChild(o), v.mount(o), setTimeout(() => {
|
|
232
|
-
const
|
|
233
|
-
|
|
235
|
+
const l = document.querySelector(".el-image-viewer__wrapper");
|
|
236
|
+
l == null || l.classList.add("das-image-viewer-preview-btn-groups"), l == null || l.classList.add(...f);
|
|
234
237
|
}, 0);
|
|
235
238
|
});
|
|
236
239
|
}
|
|
237
240
|
};
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
const { handleImageClickProxy:
|
|
241
|
-
return { needPreviewImage:
|
|
241
|
+
ie.addEventFromMicroApp();
|
|
242
|
+
const _e = (t) => {
|
|
243
|
+
const { handleImageClickProxy: a, previewBtns: s } = t;
|
|
244
|
+
return { needPreviewImage: D(() => !t.needPreview || ie.isMicroApp() ? !1 : t.needPreview), handleImageClick: (f) => {
|
|
242
245
|
if (!t.needPreview) return;
|
|
243
|
-
if (!
|
|
244
|
-
|
|
246
|
+
if (!ie.isMicroApp()) {
|
|
247
|
+
a();
|
|
245
248
|
return;
|
|
246
249
|
}
|
|
247
250
|
let v = [];
|
|
248
|
-
Array.isArray(
|
|
251
|
+
Array.isArray(f) && v.push(...f), typeof f == "string" && v.push(f), ie.sendMessageToMainApp(Qe, {
|
|
249
252
|
previewList: v,
|
|
250
|
-
previewBtns:
|
|
253
|
+
previewBtns: s.value
|
|
251
254
|
});
|
|
252
255
|
} };
|
|
253
|
-
},
|
|
256
|
+
}, et = {
|
|
254
257
|
key: 0,
|
|
255
258
|
class: "das-ui-image-viewer-container"
|
|
256
|
-
},
|
|
259
|
+
}, tt = {
|
|
257
260
|
class: "no-data-img",
|
|
258
|
-
src:
|
|
261
|
+
src: se,
|
|
259
262
|
alt: ""
|
|
260
|
-
},
|
|
263
|
+
}, it = { class: "image-name" }, at = { class: "das-ui-image-viewer-groups" }, ot = { class: "image-name" }, nt = { class: "das-ui-image-viewer-container" }, st = {
|
|
261
264
|
key: 1,
|
|
262
265
|
class: "das-ui-image-viewer-container"
|
|
263
|
-
},
|
|
266
|
+
}, rt = { class: "das-ui-image-viewer" }, lt = {
|
|
264
267
|
key: 2,
|
|
265
268
|
class: "das-ui-image-viewer"
|
|
266
|
-
},
|
|
269
|
+
}, ut = /* @__PURE__ */ Fe({
|
|
267
270
|
__name: "Index",
|
|
268
271
|
props: {
|
|
269
272
|
style: { default: "" },
|
|
@@ -295,143 +298,158 @@ const $e = (t) => {
|
|
|
295
298
|
videoWidth: {},
|
|
296
299
|
videoHeight: {},
|
|
297
300
|
randomName: { type: Boolean, default: !1 },
|
|
298
|
-
useOriginUrl: { type: Boolean, default: !1 }
|
|
301
|
+
useOriginUrl: { type: Boolean, default: !1 },
|
|
302
|
+
openFileDialogOnClick: { type: Boolean, default: !0 }
|
|
299
303
|
},
|
|
300
|
-
emits: ["update:modelValue", "update:status", "downloadImage", "image-upload", "upload-success", "deleteImage"],
|
|
301
|
-
setup(t, { emit:
|
|
302
|
-
const
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
].filter((
|
|
308
|
-
let
|
|
309
|
-
return
|
|
310
|
-
"justify-content":
|
|
304
|
+
emits: ["update:modelValue", "update:status", "downloadImage", "image-upload", "upload-success", "clickChangeIcon", "deleteImage"],
|
|
305
|
+
setup(t, { emit: a }) {
|
|
306
|
+
const s = t, o = a, m = D(() => {
|
|
307
|
+
const g = [
|
|
308
|
+
s.needDownloadBtn,
|
|
309
|
+
s.limitNum === 1 && u.value !== "info" && s.needChangeBtn,
|
|
310
|
+
u.value !== "info" && s.needDeleteBtn
|
|
311
|
+
].filter((p) => p).length;
|
|
312
|
+
let A = "center";
|
|
313
|
+
return g === 2 && (A = "space-around"), g === 3 && (A = "space-between"), {
|
|
314
|
+
"justify-content": A
|
|
311
315
|
};
|
|
312
|
-
}),
|
|
313
|
-
|
|
316
|
+
}), f = D(() => s.mode === "view" ? !1 : l.value ? u.value === "error" : u.value !== "info"), v = (n) => {
|
|
317
|
+
n.stopPropagation();
|
|
314
318
|
}, {
|
|
315
|
-
url:
|
|
316
|
-
isAccept:
|
|
317
|
-
singlePreviewList:
|
|
319
|
+
url: l,
|
|
320
|
+
isAccept: R,
|
|
321
|
+
singlePreviewList: C,
|
|
318
322
|
multiPreviewList: w,
|
|
319
|
-
uploadStatus:
|
|
320
|
-
loading:
|
|
323
|
+
uploadStatus: u,
|
|
324
|
+
loading: E,
|
|
321
325
|
previewBtns: U,
|
|
322
|
-
operateShow:
|
|
323
|
-
operateShow_Multi:
|
|
324
|
-
singlePreviewName:
|
|
325
|
-
multiPreviewName:
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
326
|
+
operateShow: k,
|
|
327
|
+
operateShow_Multi: F,
|
|
328
|
+
singlePreviewName: V,
|
|
329
|
+
multiPreviewName: L,
|
|
330
|
+
changeImg: M,
|
|
331
|
+
delImg: K,
|
|
332
|
+
beforeupload: j,
|
|
333
|
+
uploadImg: z,
|
|
334
|
+
onDownload: Y,
|
|
335
|
+
handleImageClick: ae,
|
|
336
|
+
getFileType: O,
|
|
337
|
+
isLoadingMulti: J
|
|
338
|
+
} = xe(s, o), { needPreviewImage: X, handleImageClick: W } = _e({
|
|
339
|
+
needPreview: s.needPreview,
|
|
340
|
+
handleImageClickProxy: ae,
|
|
336
341
|
previewBtns: U
|
|
337
342
|
});
|
|
338
|
-
return (
|
|
343
|
+
return (n, g) => (d(), h(
|
|
339
344
|
x,
|
|
340
345
|
null,
|
|
341
346
|
[
|
|
342
347
|
r(" 单文件 "),
|
|
343
|
-
|
|
344
|
-
|
|
348
|
+
n.limitNum === 1 ? (d(), h("div", et, [
|
|
349
|
+
N(
|
|
345
350
|
"div",
|
|
346
351
|
{
|
|
347
352
|
class: "das-ui-image-viewer",
|
|
348
|
-
style: $(
|
|
353
|
+
style: $(n.style)
|
|
349
354
|
},
|
|
350
355
|
[
|
|
351
356
|
r(" 状态不为 error 时显示 "),
|
|
352
|
-
|
|
353
|
-
class: _([{ "loading-border": e(
|
|
357
|
+
B(H(e(ve), {
|
|
358
|
+
class: _([{ "loading-border": e(E) }]),
|
|
354
359
|
type: "component",
|
|
355
|
-
spinning: e(
|
|
360
|
+
spinning: e(E)
|
|
356
361
|
}, {
|
|
357
362
|
default: q(() => [
|
|
358
363
|
r(" 图片 "),
|
|
359
|
-
e(
|
|
364
|
+
e(O)(e(C)[0]) === "isImg" ? B((d(), I(e(ge), {
|
|
360
365
|
key: 0,
|
|
361
366
|
class: _(["image-context", [e(U)]]),
|
|
362
367
|
"preview-teleported": !0,
|
|
363
|
-
src: e(
|
|
364
|
-
"preview-src-list": e(X) ? e(
|
|
368
|
+
src: e(C)[0],
|
|
369
|
+
"preview-src-list": e(X) ? e(C) : void 0,
|
|
365
370
|
"initial-index": 0,
|
|
366
|
-
fit:
|
|
367
|
-
onClick:
|
|
371
|
+
fit: n.imageFit,
|
|
372
|
+
onClick: g[0] || (g[0] = (A) => e(W)(e(C)))
|
|
368
373
|
}, null, 8, ["class", "src", "preview-src-list", "fit"])), [
|
|
369
|
-
[Q, !e(
|
|
374
|
+
[Q, !e(E)]
|
|
370
375
|
]) : r("v-if", !0),
|
|
371
376
|
r(" 视频 "),
|
|
372
|
-
e(
|
|
377
|
+
e(O)(e(C)[0]) === "isVideo" ? B((d(), I(e(ee), {
|
|
373
378
|
key: 1,
|
|
374
|
-
mode: e(
|
|
375
|
-
src: e(
|
|
376
|
-
needPreview:
|
|
379
|
+
mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
|
|
380
|
+
src: e(C)[0],
|
|
381
|
+
needPreview: n.needPreview,
|
|
377
382
|
width: "100%",
|
|
378
383
|
height: "100%",
|
|
379
|
-
"player-props": { videoWidth:
|
|
384
|
+
"player-props": { videoWidth: n.videoWidth, videoHeight: n.videoHeight },
|
|
380
385
|
fullPath: ""
|
|
381
386
|
}, null, 8, ["mode", "src", "needPreview", "player-props"])), [
|
|
382
|
-
[Q, !e(
|
|
387
|
+
[Q, !e(E)]
|
|
383
388
|
]) : r("v-if", !0),
|
|
384
389
|
r(" 音频 "),
|
|
385
|
-
e(
|
|
390
|
+
e(O)(e(C)[0]) === "isAudio" ? B((d(), I(e(ee), {
|
|
386
391
|
key: 2,
|
|
387
|
-
mode: e(
|
|
388
|
-
src: e(
|
|
389
|
-
needPreview:
|
|
392
|
+
mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
|
|
393
|
+
src: e(C)[0],
|
|
394
|
+
needPreview: n.needPreview,
|
|
390
395
|
width: "100%",
|
|
391
396
|
height: "100%",
|
|
392
397
|
type: "audio",
|
|
393
398
|
fullPath: ""
|
|
394
399
|
}, null, 8, ["mode", "src", "needPreview"])), [
|
|
395
|
-
[Q, !e(
|
|
400
|
+
[Q, !e(E)]
|
|
396
401
|
]) : r("v-if", !0),
|
|
397
|
-
!e(
|
|
402
|
+
!e(E) && e(k) ? (d(), h(
|
|
398
403
|
"div",
|
|
399
404
|
{
|
|
400
405
|
key: 3,
|
|
401
406
|
class: "operate-container",
|
|
402
|
-
style: $(
|
|
407
|
+
style: $(m.value),
|
|
403
408
|
onClick: v
|
|
404
409
|
},
|
|
405
410
|
[
|
|
406
|
-
|
|
411
|
+
n.needDownloadBtn ? (d(), I(e(we), {
|
|
407
412
|
key: 0,
|
|
408
413
|
class: "operate-btn",
|
|
409
414
|
size: "medium",
|
|
410
415
|
"icon-color": "#fff",
|
|
411
|
-
onClick:
|
|
416
|
+
onClick: g[1] || (g[1] = (A) => e(Y)(e(l)))
|
|
412
417
|
})) : r("v-if", !0),
|
|
413
|
-
e(
|
|
418
|
+
e(u) !== "info" && n.needChangeBtn ? (d(), h("div", {
|
|
414
419
|
key: 1,
|
|
415
|
-
"
|
|
416
|
-
|
|
417
|
-
},
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
})
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
420
|
+
class: "change-icon-box",
|
|
421
|
+
onClick: g[2] || (g[2] = (A) => e(M)(e(l)))
|
|
422
|
+
}, [
|
|
423
|
+
n.openFileDialogOnClick ? (d(), I(e(pe), {
|
|
424
|
+
key: 0,
|
|
425
|
+
"before-upload": (A) => e(j)(A, 0),
|
|
426
|
+
accept: e(R),
|
|
427
|
+
openFileDialogOnClick: n.openFileDialogOnClick
|
|
428
|
+
}, {
|
|
429
|
+
itemRender: q(({ file: A, actions: p }) => g[7] || (g[7] = [])),
|
|
430
|
+
default: q(() => [
|
|
431
|
+
H(e(te), {
|
|
432
|
+
class: "operate-btn m-t-6",
|
|
433
|
+
"icon-color": "#fff",
|
|
434
|
+
size: "medium"
|
|
435
|
+
})
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
/* STABLE */
|
|
439
|
+
}, 8, ["before-upload", "accept", "openFileDialogOnClick"])) : r("v-if", !0),
|
|
440
|
+
n.openFileDialogOnClick ? r("v-if", !0) : (d(), I(e(te), {
|
|
441
|
+
key: 1,
|
|
442
|
+
class: "operate-btn m-t-6",
|
|
443
|
+
"icon-color": "#fff",
|
|
444
|
+
size: "medium"
|
|
445
|
+
}))
|
|
446
|
+
])) : r("v-if", !0),
|
|
447
|
+
e(u) !== "info" && n.needDeleteBtn ? (d(), I(e(Ce), {
|
|
430
448
|
key: 2,
|
|
431
449
|
class: "operate-btn",
|
|
432
450
|
"icon-color": "#fff",
|
|
433
451
|
size: "medium",
|
|
434
|
-
onClick:
|
|
452
|
+
onClick: g[3] || (g[3] = (A) => e(K)(e(l)))
|
|
435
453
|
})) : r("v-if", !0)
|
|
436
454
|
],
|
|
437
455
|
4
|
|
@@ -441,152 +459,166 @@ const $e = (t) => {
|
|
|
441
459
|
_: 1
|
|
442
460
|
/* STABLE */
|
|
443
461
|
}, 8, ["class", "spinning"]), [
|
|
444
|
-
[Q, e(
|
|
462
|
+
[Q, e(l) && n.status !== "error"]
|
|
445
463
|
]),
|
|
446
464
|
r(" 上传模式,当 url 为空或者 uploading 和 error 时显示 "),
|
|
447
|
-
|
|
448
|
-
status: e(
|
|
449
|
-
"onUpdate:status":
|
|
450
|
-
"max-size":
|
|
451
|
-
accept:
|
|
452
|
-
acceptVideo:
|
|
453
|
-
message:
|
|
454
|
-
acceptAudio:
|
|
455
|
-
autoContentType:
|
|
456
|
-
|
|
457
|
-
"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
465
|
+
B(H(e(Ae), {
|
|
466
|
+
status: e(u),
|
|
467
|
+
"onUpdate:status": g[4] || (g[4] = (A) => ue(u) ? u.value = A : null),
|
|
468
|
+
"max-size": n.maxSize,
|
|
469
|
+
accept: n.accept,
|
|
470
|
+
acceptVideo: n.acceptVideo,
|
|
471
|
+
message: n.message,
|
|
472
|
+
acceptAudio: n.acceptAudio,
|
|
473
|
+
autoContentType: n.autoContentType,
|
|
474
|
+
"custom-check": n.customCheck,
|
|
475
|
+
"error-message": n.errorMessage,
|
|
476
|
+
openFileDialogOnClick: n.openFileDialogOnClick,
|
|
477
|
+
onImageUpload: e(z)
|
|
478
|
+
}, null, 8, ["status", "max-size", "accept", "acceptVideo", "message", "acceptAudio", "autoContentType", "custom-check", "error-message", "openFileDialogOnClick", "onImageUpload"]), [
|
|
479
|
+
[Q, f.value]
|
|
461
480
|
]),
|
|
462
481
|
r(" 查看模式 "),
|
|
463
|
-
|
|
482
|
+
B(N(
|
|
464
483
|
"img",
|
|
465
|
-
|
|
484
|
+
tt,
|
|
466
485
|
null,
|
|
467
486
|
512
|
|
468
487
|
/* NEED_PATCH */
|
|
469
488
|
), [
|
|
470
|
-
[Q, !e(
|
|
489
|
+
[Q, !e(l) && (e(u) === "info" || n.mode === "view")]
|
|
471
490
|
])
|
|
472
491
|
],
|
|
473
492
|
4
|
|
474
493
|
/* STYLE */
|
|
475
494
|
),
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
495
|
+
B((d(), h("div", it, [
|
|
496
|
+
ce(
|
|
497
|
+
de(s.imageName || e(V)),
|
|
479
498
|
1
|
|
480
499
|
/* TEXT */
|
|
481
500
|
)
|
|
482
501
|
])), [
|
|
483
|
-
[Q, e(
|
|
484
|
-
[e(
|
|
502
|
+
[Q, e(l) && n.showImageName && (e(u) === "normal" || e(u) === "info")],
|
|
503
|
+
[e(fe)]
|
|
485
504
|
])
|
|
486
|
-
])) : (
|
|
505
|
+
])) : (d(), h(
|
|
487
506
|
x,
|
|
488
507
|
{ key: 1 },
|
|
489
508
|
[
|
|
490
509
|
r(" 多文件 "),
|
|
491
|
-
|
|
510
|
+
N("div", at, [
|
|
492
511
|
r(" 已上传的图片集合 "),
|
|
493
|
-
(
|
|
512
|
+
(d(!0), h(
|
|
494
513
|
x,
|
|
495
514
|
null,
|
|
496
|
-
|
|
497
|
-
var
|
|
498
|
-
return
|
|
499
|
-
key:
|
|
515
|
+
me(e(l), (A, p) => {
|
|
516
|
+
var i;
|
|
517
|
+
return d(), h("div", {
|
|
518
|
+
key: p,
|
|
500
519
|
class: "das-ui-image-viewer-container"
|
|
501
520
|
}, [
|
|
502
|
-
|
|
521
|
+
N(
|
|
503
522
|
"div",
|
|
504
523
|
{
|
|
505
524
|
class: "das-ui-image-viewer",
|
|
506
|
-
style: $(
|
|
525
|
+
style: $(n.style)
|
|
507
526
|
},
|
|
508
527
|
[
|
|
509
|
-
|
|
510
|
-
class: _([{ "loading-border": e(
|
|
528
|
+
B(H(e(ve), {
|
|
529
|
+
class: _([{ "loading-border": e(J)(p) }]),
|
|
511
530
|
type: "component",
|
|
512
|
-
spinning: e(
|
|
531
|
+
spinning: e(J)(p)
|
|
513
532
|
}, {
|
|
514
533
|
default: q(() => [
|
|
515
|
-
e(
|
|
534
|
+
e(O)(e(w)[p][0]) === "isImg" ? B((d(), I(e(ge), {
|
|
516
535
|
key: 0,
|
|
517
536
|
class: _(["image-context", [e(U)]]),
|
|
518
|
-
src: e(w)[
|
|
537
|
+
src: e(w)[p][0],
|
|
519
538
|
"preview-teleported": !0,
|
|
520
|
-
"preview-src-list": e(X) ? e(w)[
|
|
521
|
-
"initial-index":
|
|
522
|
-
onClick: (c) => e(W)(e(w)[
|
|
539
|
+
"preview-src-list": e(X) ? e(w)[p] : void 0,
|
|
540
|
+
"initial-index": p,
|
|
541
|
+
onClick: (c) => e(W)(e(w)[p]),
|
|
523
542
|
fit: "cover"
|
|
524
543
|
}, null, 8, ["class", "src", "preview-src-list", "initial-index", "onClick"])), [
|
|
525
|
-
[Q, !e(
|
|
544
|
+
[Q, !e(J)(p)]
|
|
526
545
|
]) : r("v-if", !0),
|
|
527
546
|
r(" 视频 "),
|
|
528
|
-
e(
|
|
547
|
+
e(O)(e(w)[p][0]) === "isVideo" ? B((d(), I(e(ee), {
|
|
529
548
|
key: 1,
|
|
530
|
-
mode: e(
|
|
531
|
-
src: e(w)[
|
|
532
|
-
needPreview:
|
|
549
|
+
mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
|
|
550
|
+
src: e(w)[p][0],
|
|
551
|
+
needPreview: n.needPreview,
|
|
533
552
|
width: "100%",
|
|
534
553
|
height: "100%",
|
|
535
554
|
fullPath: "",
|
|
536
|
-
"player-props": { videoWidth:
|
|
555
|
+
"player-props": { videoWidth: n.videoWidth, videoHeight: n.videoHeight }
|
|
537
556
|
}, null, 8, ["mode", "src", "needPreview", "player-props"])), [
|
|
538
|
-
[Q, !e(
|
|
557
|
+
[Q, !e(J)(p)]
|
|
539
558
|
]) : r("v-if", !0),
|
|
540
559
|
r(" 音频 "),
|
|
541
|
-
e(
|
|
560
|
+
e(O)(e(w)[p][0]) === "isAudio" ? B((d(), I(e(ee), {
|
|
542
561
|
key: 2,
|
|
543
|
-
mode: e(
|
|
544
|
-
src: e(w)[
|
|
545
|
-
needPreview:
|
|
562
|
+
mode: e(u) === "info" || n.mode === "view" ? "view" : "normal",
|
|
563
|
+
src: e(w)[p][0],
|
|
564
|
+
needPreview: n.needPreview,
|
|
546
565
|
width: "100%",
|
|
547
566
|
height: "100%",
|
|
548
567
|
type: "audio",
|
|
549
568
|
fullPath: ""
|
|
550
569
|
}, null, 8, ["mode", "src", "needPreview"])), [
|
|
551
|
-
[Q, !e(
|
|
570
|
+
[Q, !e(J)(p)]
|
|
552
571
|
]) : r("v-if", !0),
|
|
553
|
-
!e(
|
|
572
|
+
!e(E) && e(F) ? (d(), h(
|
|
554
573
|
"div",
|
|
555
574
|
{
|
|
556
575
|
key: 3,
|
|
557
576
|
class: "operate-container",
|
|
558
|
-
style: $(
|
|
577
|
+
style: $(m.value)
|
|
559
578
|
},
|
|
560
579
|
[
|
|
561
|
-
|
|
580
|
+
n.needDownloadBtn ? (d(), I(e(we), {
|
|
562
581
|
key: 0,
|
|
563
582
|
class: "operate-btn",
|
|
564
583
|
size: "medium",
|
|
565
584
|
"icon-color": "#fff",
|
|
566
|
-
onClick: (c) => e(
|
|
585
|
+
onClick: (c) => e(Y)(A, p)
|
|
567
586
|
}, null, 8, ["onClick"])) : r("v-if", !0),
|
|
568
|
-
e(
|
|
587
|
+
e(u) !== "info" && n.needChangeBtn ? (d(), h("div", {
|
|
569
588
|
key: 1,
|
|
570
|
-
"
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
})
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
589
|
+
class: "change-icon-box",
|
|
590
|
+
onClick: g[5] || (g[5] = (c) => e(M)(e(l)))
|
|
591
|
+
}, [
|
|
592
|
+
n.openFileDialogOnClick ? (d(), I(e(pe), {
|
|
593
|
+
key: 0,
|
|
594
|
+
"before-upload": (c) => e(j)(c, p),
|
|
595
|
+
accept: e(R),
|
|
596
|
+
openFileDialogOnClick: n.openFileDialogOnClick
|
|
597
|
+
}, {
|
|
598
|
+
itemRender: q(({ file: c, actions: S }) => g[8] || (g[8] = [])),
|
|
599
|
+
default: q(() => [
|
|
600
|
+
H(e(te), {
|
|
601
|
+
class: "operate-btn m-t-6",
|
|
602
|
+
"icon-color": "#fff",
|
|
603
|
+
size: "medium"
|
|
604
|
+
})
|
|
605
|
+
]),
|
|
606
|
+
_: 2
|
|
607
|
+
/* DYNAMIC */
|
|
608
|
+
}, 1032, ["before-upload", "accept", "openFileDialogOnClick"])) : r("v-if", !0),
|
|
609
|
+
n.openFileDialogOnClick ? r("v-if", !0) : (d(), I(e(te), {
|
|
610
|
+
key: 1,
|
|
611
|
+
class: "operate-btn m-t-6",
|
|
612
|
+
"icon-color": "#fff",
|
|
613
|
+
size: "medium"
|
|
614
|
+
}))
|
|
615
|
+
])) : r("v-if", !0),
|
|
616
|
+
e(u) !== "info" && n.needDeleteBtn ? (d(), I(e(Ce), {
|
|
585
617
|
key: 2,
|
|
586
618
|
class: "operate-btn",
|
|
587
619
|
"icon-color": "#fff",
|
|
588
620
|
size: "medium",
|
|
589
|
-
onClick: (c) => e(
|
|
621
|
+
onClick: (c) => e(K)(A, p)
|
|
590
622
|
}, null, 8, ["onClick"])) : r("v-if", !0)
|
|
591
623
|
],
|
|
592
624
|
4
|
|
@@ -596,21 +628,21 @@ const $e = (t) => {
|
|
|
596
628
|
_: 2
|
|
597
629
|
/* DYNAMIC */
|
|
598
630
|
}, 1032, ["class", "spinning"]), [
|
|
599
|
-
[Q,
|
|
631
|
+
[Q, A]
|
|
600
632
|
])
|
|
601
633
|
],
|
|
602
634
|
4
|
|
603
635
|
/* STYLE */
|
|
604
636
|
),
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
637
|
+
B((d(), h("div", ot, [
|
|
638
|
+
ce(
|
|
639
|
+
de(((i = s.imageName) == null ? void 0 : i[p]) || e(L)[p]),
|
|
608
640
|
1
|
|
609
641
|
/* TEXT */
|
|
610
642
|
)
|
|
611
643
|
])), [
|
|
612
|
-
[Q,
|
|
613
|
-
[e(
|
|
644
|
+
[Q, A && n.showImageName && !e(J)(p)],
|
|
645
|
+
[e(fe)]
|
|
614
646
|
])
|
|
615
647
|
]);
|
|
616
648
|
}),
|
|
@@ -618,17 +650,17 @@ const $e = (t) => {
|
|
|
618
650
|
/* KEYED_FRAGMENT */
|
|
619
651
|
)),
|
|
620
652
|
r(" 查看模式下,默认占位符 "),
|
|
621
|
-
|
|
653
|
+
n.mode === "view" ? (d(!0), h(
|
|
622
654
|
x,
|
|
623
655
|
{ key: 0 },
|
|
624
|
-
|
|
625
|
-
|
|
656
|
+
me(n.limitNum - e(l).length, (A) => (d(), h("div", nt, g[9] || (g[9] = [
|
|
657
|
+
N(
|
|
626
658
|
"div",
|
|
627
659
|
{ class: "das-ui-image-viewer" },
|
|
628
660
|
[
|
|
629
|
-
|
|
661
|
+
N("img", {
|
|
630
662
|
class: "no-data-img",
|
|
631
|
-
src:
|
|
663
|
+
src: se,
|
|
632
664
|
alt: ""
|
|
633
665
|
})
|
|
634
666
|
],
|
|
@@ -640,29 +672,30 @@ const $e = (t) => {
|
|
|
640
672
|
/* UNKEYED_FRAGMENT */
|
|
641
673
|
)) : r("v-if", !0),
|
|
642
674
|
r(" 图片数量未到达最大数量限制时,显示上传组件 "),
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
status: e(
|
|
647
|
-
"onUpdate:status":
|
|
648
|
-
"max-size":
|
|
649
|
-
accept:
|
|
650
|
-
acceptVideo:
|
|
651
|
-
acceptAudio:
|
|
652
|
-
message:
|
|
653
|
-
|
|
654
|
-
"
|
|
655
|
-
|
|
656
|
-
|
|
675
|
+
n.mode === "upload" && e(u) !== "info" && e(l).length < n.limitNum ? (d(), h("div", st, [
|
|
676
|
+
N("div", rt, [
|
|
677
|
+
H(e(Ae), {
|
|
678
|
+
status: e(u),
|
|
679
|
+
"onUpdate:status": g[6] || (g[6] = (A) => ue(u) ? u.value = A : null),
|
|
680
|
+
"max-size": n.maxSize,
|
|
681
|
+
accept: n.accept,
|
|
682
|
+
acceptVideo: n.acceptVideo,
|
|
683
|
+
acceptAudio: n.acceptAudio,
|
|
684
|
+
message: n.message,
|
|
685
|
+
"custom-check": n.customCheck,
|
|
686
|
+
"error-message": n.errorMessage,
|
|
687
|
+
openFileDialogOnClick: n.openFileDialogOnClick,
|
|
688
|
+
onImageUpload: e(z)
|
|
689
|
+
}, null, 8, ["status", "max-size", "accept", "acceptVideo", "acceptAudio", "message", "custom-check", "error-message", "openFileDialogOnClick", "onImageUpload"])
|
|
657
690
|
])
|
|
658
691
|
])) : r("v-if", !0),
|
|
659
692
|
r(" 当图片状态为查看态且无数据时,显示无数据图片 "),
|
|
660
|
-
e(
|
|
661
|
-
|
|
693
|
+
e(u) === "info" && e(l).length === 0 ? (d(), h("div", lt, g[10] || (g[10] = [
|
|
694
|
+
N(
|
|
662
695
|
"img",
|
|
663
696
|
{
|
|
664
697
|
class: "no-data-img",
|
|
665
|
-
src:
|
|
698
|
+
src: se,
|
|
666
699
|
alt: ""
|
|
667
700
|
},
|
|
668
701
|
null,
|
|
@@ -680,20 +713,20 @@ const $e = (t) => {
|
|
|
680
713
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
681
714
|
));
|
|
682
715
|
}
|
|
683
|
-
}),
|
|
684
|
-
const
|
|
685
|
-
for (const [o,
|
|
686
|
-
|
|
687
|
-
return
|
|
688
|
-
}, dt = /* @__PURE__ */ ut
|
|
716
|
+
}), ct = (t, a) => {
|
|
717
|
+
const s = t.__vccOpts || t;
|
|
718
|
+
for (const [o, m] of a)
|
|
719
|
+
s[o] = m;
|
|
720
|
+
return s;
|
|
721
|
+
}, dt = /* @__PURE__ */ ct(ut, [["__scopeId", "data-v-6fd90ea2"]]), mt = {
|
|
689
722
|
"--das-ui-image-viewer-bg-color": { light: "rgba(0, 0, 0, 0.5)" },
|
|
690
723
|
"--das-ui-image-viewer-btn-hover": { light: "#87A9FF" },
|
|
691
724
|
"--das-ui-image-viewer-btn-active": { light: "#276FF5" }
|
|
692
|
-
},
|
|
693
|
-
|
|
725
|
+
}, Tt = Pe(dt);
|
|
726
|
+
Oe(mt);
|
|
694
727
|
export {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
728
|
+
Tt as DasImageViewer,
|
|
729
|
+
Tt as default,
|
|
730
|
+
Ye as minioUpload,
|
|
731
|
+
Ze as useCalculateSize
|
|
699
732
|
};
|