yahee-components 0.0.107 → 0.0.109

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.
Files changed (66) hide show
  1. package/es/annex-upload/annex-upload.vue.js +51 -154
  2. package/es/annex-upload/annex-upload.vue2.js +119 -2
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/border-wrap/border-wrap.vue.js +64 -95
  5. package/es/border-wrap/border-wrap.vue2.js +46 -2
  6. package/es/common-import/common-import.vue.js +369 -693
  7. package/es/common-import/common-import.vue2.js +364 -2
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/batch-search-dialog.vue.js +116 -4
  10. package/es/complex-search/batch-search-dialog.vue2.js +27 -136
  11. package/es/complex-search/complex-search.vue.js +14 -14
  12. package/es/copy/copy.vue.js +37 -55
  13. package/es/copy/copy.vue2.js +34 -2
  14. package/es/copy/index.js +3 -3
  15. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
  16. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  17. package/es/drop-down-condition/drop-down-condition.vue.js +123 -5
  18. package/es/drop-down-condition/drop-down-condition.vue2.js +103 -259
  19. package/es/echart-gauge/echart-gauge.vue.js +12 -140
  20. package/es/echart-gauge/echart-gauge.vue2.js +147 -2
  21. package/es/echart-gauge/index.js +3 -3
  22. package/es/file-download-wrapper/file-download-wrapper.vue.js +143 -244
  23. package/es/file-download-wrapper/file-download-wrapper.vue2.js +113 -2
  24. package/es/file-download-wrapper/index.js +4 -4
  25. package/es/filter-container/filter-container.vue.js +18 -66
  26. package/es/filter-container/filter-container.vue2.js +59 -2
  27. package/es/filter-container/index.js +4 -4
  28. package/es/filter-wrapper/filter-wrapper.vue.js +16 -4
  29. package/es/filter-wrapper/filter-wrapper.vue2.js +40 -45
  30. package/es/height-collapse/height-collapse.vue.js +24 -51
  31. package/es/height-collapse/height-collapse.vue2.js +42 -2
  32. package/es/height-collapse/index.js +4 -4
  33. package/es/help-tag/help-tag.vue.js +44 -78
  34. package/es/help-tag/help-tag.vue2.js +49 -2
  35. package/es/help-tag/index.js +3 -3
  36. package/es/image-upload/image-upload.vue.js +109 -170
  37. package/es/image-upload/image-upload.vue2.js +91 -2
  38. package/es/image-upload/index.js +3 -3
  39. package/es/left-condition/index.js +3 -3
  40. package/es/left-condition/left-condition-sub.vue.js +32 -91
  41. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  42. package/es/left-condition/left-condition.vue.js +70 -218
  43. package/es/left-condition/left-condition.vue2.js +160 -2
  44. package/es/left-condition-enum/index.js +3 -3
  45. package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
  46. package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
  47. package/es/operation-log/operation-log-content.vue.js +71 -92
  48. package/es/operation-log/operation-log-content.vue2.js +39 -2
  49. package/es/operation-log/operation-log-dialog.vue.js +45 -67
  50. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  51. package/es/operation-log/operation-log-form.vue.js +108 -183
  52. package/es/operation-log/operation-log-form.vue2.js +104 -2
  53. package/es/operation-log/operation-log.vue.js +119 -228
  54. package/es/operation-log/operation-log.vue2.js +135 -2
  55. package/es/packages/components/api/log-server.js +6 -6
  56. package/es/packages/components/api/upload-server.js +1 -1
  57. package/es/packages/components/hooks/useEcharts.js +19 -19
  58. package/es/packages/components/hooks/useImg.js +8 -8
  59. package/es/scale-screen/index.js +4 -4
  60. package/es/scale-screen/scale-screen.vue.js +19 -126
  61. package/es/scale-screen/scale-screen.vue2.js +125 -2
  62. package/es/yahee-components.css +1 -1
  63. package/package.json +1 -1
  64. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +15 -27
  65. package/types/src/drop-down-condition/index.d.ts +25 -25
  66. package/types/src/installs.d.ts +25 -25
@@ -1,4 +1,149 @@
1
- import f from "./echart-gauge.vue.js";
1
+ import { defineComponent as c, ref as m, watch as w } from "vue";
2
+ import { useEcharts as b } from "../packages/components/hooks/useEcharts.js";
3
+ import { mapValue as l, numberToFixed as y } from "../utils/charts.js";
4
+ const $ = /* @__PURE__ */ c({
5
+ __name: "echart-gauge",
6
+ props: {
7
+ data: {
8
+ type: Number,
9
+ default: 0
10
+ },
11
+ rangeValue: {
12
+ type: Object,
13
+ default: () => ({ low: 0, high: 0, reverse: !1 })
14
+ }
15
+ },
16
+ setup(f, { expose: V }) {
17
+ V();
18
+ const u = m(null), i = b(u), e = f;
19
+ let t = [], r = 0;
20
+ const s = () => e.rangeValue.reverse ? [
21
+ [r / 100, t[0]],
22
+ [0.5, t[1]],
23
+ [1, t[2]]
24
+ ] : [
25
+ [0.5, t[0]],
26
+ [r / 100, t[1]],
27
+ [1, t[2]]
28
+ ], g = () => {
29
+ let a = 0;
30
+ if (e.rangeValue.reverse)
31
+ if (e.data >= 0 && e.data < e.rangeValue.low)
32
+ a = l(e.data, 0, e.rangeValue.low, 0, r);
33
+ else if (e.data >= e.rangeValue.low && e.data < e.rangeValue.high)
34
+ a = l(e.data, e.rangeValue.low, e.rangeValue.high, r, 50);
35
+ else if (e.data >= e.rangeValue.high && e.data <= 100)
36
+ a = l(e.data, e.rangeValue.high, 100, 50, 100);
37
+ else
38
+ throw new Error("Input value must be between 0 and 100");
39
+ else if (e.data >= 0 && e.data < e.rangeValue.low)
40
+ a = l(e.data, 0, e.rangeValue.low, 0, 50);
41
+ else if (e.data >= e.rangeValue.low && e.data < e.rangeValue.high)
42
+ a = l(
43
+ e.data,
44
+ e.rangeValue.low,
45
+ e.rangeValue.high,
46
+ 50,
47
+ r
48
+ );
49
+ else if (e.data >= e.rangeValue.high && e.data <= 100)
50
+ a = l(e.data, e.rangeValue.high, 100, r, 100);
51
+ else
52
+ throw new Error("Input value must be between 0 and 100");
53
+ return y(a);
54
+ }, o = (a) => `<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${a};"></span>`, d = () => {
55
+ const a = {
56
+ tooltip: {
57
+ trigger: "item",
58
+ formatter: () => {
59
+ let n = "";
60
+ return n += `${o(t[0])} 0~${e.rangeValue.low}%<br>`, n += `${o(t[1])} ${e.rangeValue.low}%~${e.rangeValue.high}%<br>`, n += `${o(t[2])} ${e.rangeValue.high}%~100%`, n;
61
+ }
62
+ },
63
+ series: [
64
+ {
65
+ type: "gauge",
66
+ radius: "100%",
67
+ axisLine: {
68
+ lineStyle: {
69
+ width: 8,
70
+ color: s()
71
+ }
72
+ },
73
+ pointer: {
74
+ width: 3,
75
+ itemStyle: {
76
+ color: "auto"
77
+ }
78
+ },
79
+ axisTick: {
80
+ show: !0,
81
+ splitNumber: 2,
82
+ distance: 3,
83
+ lineStyle: {
84
+ opacity: 0.4
85
+ }
86
+ },
87
+ splitLine: {
88
+ show: !1
89
+ },
90
+ axisLabel: {
91
+ show: !1,
92
+ color: "#666",
93
+ distance: 0,
94
+ fontSize: 10
95
+ },
96
+ // "{value}%"
97
+ detail: {
98
+ fontSize: 16,
99
+ valueAnimation: !0,
100
+ formatter: () => `${e.data}%`,
101
+ color: "inherit",
102
+ offsetCenter: [0, 44]
103
+ },
104
+ data: [
105
+ {
106
+ value: g()
107
+ }
108
+ ]
109
+ }
110
+ ]
111
+ };
112
+ i.setOption(a);
113
+ }, h = () => {
114
+ e.rangeValue.reverse ? (t = ["#008b48", "#fadd1d", "#ffaa01"], r = l(
115
+ e.rangeValue.low,
116
+ 0,
117
+ e.rangeValue.high,
118
+ 0,
119
+ 50
120
+ )) : (t = ["#ffaa01", "#fadd1d", "#008b48"], r = l(
121
+ e.rangeValue.high,
122
+ e.rangeValue.low,
123
+ 100,
124
+ 50,
125
+ 100
126
+ ));
127
+ };
128
+ w(
129
+ () => e.data,
130
+ (a) => {
131
+ h(), d();
132
+ },
133
+ { immediate: !0 }
134
+ );
135
+ const p = { gaugeChart: u, myChart: i, props: e, get color() {
136
+ return t;
137
+ }, set color(a) {
138
+ t = a;
139
+ }, get mappedValue() {
140
+ return r;
141
+ }, set mappedValue(a) {
142
+ r = a;
143
+ }, getColorRange: s, getMappedValue: g, getMarker: o, drawChart: d, getRangeData: h };
144
+ return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
145
+ }
146
+ });
2
147
  export {
3
- f as default
148
+ $ as default
4
149
  };
@@ -1,7 +1,7 @@
1
1
  import { withInstall as t } from "../utils/install.js";
2
2
  import a from "./echart-gauge.vue.js";
3
- const e = t(a);
3
+ const o = t(a);
4
4
  export {
5
- e as YaheeEchartGauge,
6
- e as default
5
+ o as YaheeEchartGauge,
6
+ o as default
7
7
  };
@@ -1,265 +1,164 @@
1
- import { defineComponent as K, ref as R, watch as Q, onMounted as ee, computed as V, resolveComponent as F, createElementBlock as c, openBlock as s, createCommentVNode as B, createElementVNode as i, createVNode as k, withCtx as C, createTextVNode as D, toDisplayString as p, Fragment as te, renderList as le, createBlock as oe, unref as n, withModifiers as se } from "vue";
2
- import { ElMessage as v } from "element-plus";
3
- import "element-plus/theme-chalk/src/base.scss";
4
- import "element-plus/theme-chalk/src/badge.scss";
5
- import "element-plus/theme-chalk/src/message.scss";
6
- import ie from "../_virtual/jszip.min.js";
7
- import { Document as z } from "@element-plus/icons-vue";
8
- import { FILE_TYPE_REGEX as g } from "./key.js";
9
- import E from "../packages/components/hooks/useImgPath.js";
10
- const ce = { class: "yahee-file-download-wrapper" }, ne = {
1
+ import F from "./file-download-wrapper.vue2.js";
2
+ import { resolveComponent as c, createElementBlock as t, openBlock as o, createCommentVNode as h, createElementVNode as i, createVNode as s, withCtx as d, createTextVNode as f, toDisplayString as n, Fragment as w, renderList as p, createBlock as N, withModifiers as b } from "vue";
3
+ import y from "../_virtual/_plugin-vue_export-helper.js";
4
+ const u = { class: "yahee-file-download-wrapper" }, x = {
11
5
  key: 0,
12
6
  class: "batch-toolbar"
13
- }, ae = { class: "file-list" }, re = { class: "file-item" }, de = {
7
+ }, C = { class: "file-list" }, U = { class: "file-item" }, V = {
14
8
  key: 0,
15
9
  class: "image-item"
16
- }, me = {
10
+ }, D = {
17
11
  key: 1,
18
12
  class: "document-item"
19
- }, fe = ["src"], he = ["href"], ue = {
13
+ }, P = ["src"], I = ["href"], M = {
20
14
  key: 2,
21
15
  class: "document-item"
22
- }, _e = ["src"], pe = ["href"], ke = {
16
+ }, B = ["src"], E = ["href"], z = {
23
17
  key: 3,
24
18
  class: "document-item"
25
- }, we = ["src"], ve = ["href"], ge = {
19
+ }, A = ["src"], S = ["href"], T = {
26
20
  key: 4,
27
21
  class: "document-item"
28
- }, be = ["src"], ye = ["href"], Ne = {
22
+ }, L = ["src"], W = ["href"], j = {
29
23
  key: 5,
30
24
  class: "document-item"
31
- }, Ue = ["onClick"], $e = {
25
+ }, q = ["onClick"], G = {
32
26
  key: 6,
33
27
  class: "document-item"
34
- }, Fe = ["href"], Ce = {
28
+ }, H = ["href"], J = {
35
29
  key: 7,
36
30
  class: "file-name"
37
- }, y = "[文件批量下载调试]", Pe = /* @__PURE__ */ K({
38
- __name: "file-download-wrapper",
39
- props: {
40
- fileId: {},
41
- fileName: {},
42
- fileUrl: {},
43
- files: {},
44
- showBatchDownload: { type: Boolean }
45
- },
46
- setup(P) {
47
- const a = P, o = (e, l) => {
48
- l ? console.log(`${y} ${e}`, l) : console.log(`${y} ${e}`);
49
- }, h = R([]), L = R(!1), x = () => {
50
- var e;
51
- if ((e = a.files) != null && e.length) {
52
- h.value = a.files.map((l) => ({
53
- ...l,
54
- checked: !1
55
- })), o("初始化多文件列表:", h.value);
56
- return;
57
- }
58
- a.fileName && (h.value = [
59
- {
60
- fileId: a.fileId,
61
- fileName: a.fileName,
62
- fileUrl: a.fileUrl,
63
- checked: !1
64
- }
65
- ], o("初始化单文件列表:", h.value));
66
- };
67
- Q(
68
- () => [a.files, a.fileId, a.fileName, a.fileUrl],
69
- () => x(),
70
- { deep: !0, immediate: !0 }
71
- ), ee(() => x());
72
- const N = V(() => {
73
- const e = h.value.filter((l) => l.checked);
74
- return o("当前选中的文件:", e), e;
75
- }), T = V(() => h.value.length > 1 && a.showBatchDownload), r = (e) => e.fileUrl ? e.fileUrl : e.fileId ? `https://imgs.yaheecloud.com/${e.fileId}` : "", M = {
76
- isImageFile: (e) => g.image.test(e),
77
- isWordFile: (e) => g.word.test(e),
78
- isPdfFile: (e) => g.pdf.test(e),
79
- isPptFile: (e) => g.ppt.test(e),
80
- isExcelFile: (e) => g.excel.test(e),
81
- isTxtFile: (e) => g.txt.test(e)
82
- }, { isImageFile: O, isWordFile: j, isPdfFile: A, isPptFile: S, isExcelFile: G, isTxtFile: X } = M, J = () => {
83
- L.value = h.value.every((e) => e.checked);
84
- }, W = (e) => {
85
- h.value.forEach((l) => {
86
- l.checked = e;
87
- });
88
- }, Y = async (e) => {
89
- try {
90
- const l = r(e);
91
- o("开始单个TXT文件下载,URL:", l), o("使用的文件名:", e.fileName);
92
- const u = await fetch(l);
93
- if (!u.ok) throw new Error("文件请求失败");
94
- const w = await u.blob(), f = window.URL.createObjectURL(w), d = document.createElement("a");
95
- d.href = f, d.download = e.fileName, document.body.appendChild(d), d.click(), document.body.removeChild(d), window.URL.revokeObjectURL(f), v.success("下载成功");
96
- } catch (l) {
97
- console.error(`${y} TXT文件下载失败:`, l), v.error("文件下载失败,请重试");
98
- }
99
- }, Z = async () => {
100
- if (N.value.length === 0) {
101
- v.warning("请先选择要下载的文件");
102
- return;
103
- }
104
- o("========== 开始批量下载流程 ==========");
105
- const e = new ie(), l = [];
106
- v.info("正在加载文件并打包,请稍候...");
107
- try {
108
- N.value.forEach((d, t) => {
109
- const U = r(d), m = d.fileName;
110
- o(`[文件 ${t + 1}] 开始处理`), o(`[文件 ${t + 1}] 请求URL:`, U), o(`[文件 ${t + 1}] 使用的文件名:`, m);
111
- const q = fetch(U).then((_) => {
112
- if (!_.ok) throw new Error(`【${m}】加载失败,状态码:${_.status}`);
113
- return _.blob();
114
- }).then((_) => {
115
- let b = m, I = 1;
116
- for (; e.files[b]; ) {
117
- const $ = m.lastIndexOf("."), H = $ > -1 ? m.slice($) : "";
118
- b = `${$ > -1 ? m.slice(0, $) : m}(${I})${H}`, I++;
119
- }
120
- b !== m && o(`[文件 ${t + 1}] 检测到重名,重命名为:`, b), e.file(b, _), o(`[文件 ${t + 1}] 已加入压缩包`);
121
- }).catch((_) => {
122
- throw console.error(`${y} [文件 ${t + 1}] 处理失败:`, _), _;
123
- });
124
- l.push(q);
125
- }), o("等待所有文件加载完成..."), await Promise.all(l), o("所有文件加载完成,开始生成压缩包...");
126
- const u = await e.generateAsync({ type: "blob" }), w = window.URL.createObjectURL(u), f = document.createElement("a");
127
- f.href = w, f.download = `批量文件下载_${Date.now()}.zip`, document.body.appendChild(f), f.click(), document.body.removeChild(f), window.URL.revokeObjectURL(w), o("========== 批量下载流程完成 =========="), v.success("批量打包下载完成");
128
- } catch (u) {
129
- console.error(`${y} 批量下载失败:`, u), v.error("打包下载失败,请检查控制台日志");
130
- }
131
- };
132
- return (e, l) => {
133
- const u = F("el-checkbox"), w = F("el-button"), f = F("el-image"), d = F("el-icon");
134
- return s(), c("div", ce, [
135
- T.value ? (s(), c("div", ne, [
136
- k(u, {
137
- modelValue: L.value,
138
- "onUpdate:modelValue": l[0] || (l[0] = (t) => L.value = t),
139
- onChange: W
140
- }, {
141
- default: C(() => l[1] || (l[1] = [
142
- D("全选")
143
- ])),
144
- _: 1,
145
- __: [1]
146
- }, 8, ["modelValue"]),
147
- k(w, {
148
- type: "primary",
149
- size: "small",
150
- disabled: N.value.length === 0,
151
- onClick: Z
152
- }, {
153
- default: C(() => [
154
- D(" 下载选中文件(" + p(N.value.length) + ") ", 1)
155
- ]),
156
- _: 1
157
- }, 8, ["disabled"])
158
- ])) : B("", !0),
159
- i("div", ae, [
160
- (s(!0), c(te, null, le(h.value, (t, U) => (s(), c("div", {
161
- key: `file-${U}`,
162
- class: "file-row"
163
- }, [
164
- T.value ? (s(), oe(u, {
165
- key: 0,
166
- modelValue: t.checked,
167
- "onUpdate:modelValue": (m) => t.checked = m,
168
- class: "file-checkbox",
169
- onChange: J
170
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : B("", !0),
171
- i("div", re, [
172
- n(O)(r(t)) ? (s(), c("div", de, [
173
- k(f, {
174
- class: "file-image",
175
- src: r(t),
176
- "preview-src-list": [r(t)],
177
- fit: "contain",
178
- "preview-teleported": !0
179
- }, null, 8, ["src", "preview-src-list"])
180
- ])) : n(j)(t.fileName) ? (s(), c("div", me, [
181
- i("img", {
182
- src: n(E)("file-word.png"),
183
- class: "file-icon",
184
- alt: "word"
185
- }, null, 8, fe),
186
- i("a", {
187
- href: r(t),
188
- target: "_blank",
189
- class: "file-link"
190
- }, p(t.fileName), 9, he)
191
- ])) : n(A)(t.fileName) ? (s(), c("div", ue, [
192
- i("img", {
193
- src: n(E)("pdf.png"),
194
- class: "file-icon",
195
- alt: "pdf"
196
- }, null, 8, _e),
197
- i("a", {
198
- href: r(t),
199
- target: "_blank",
200
- class: "file-link"
201
- }, p(t.fileName), 9, pe)
202
- ])) : n(S)(t.fileName) ? (s(), c("div", ke, [
203
- i("img", {
204
- src: n(E)("ppt.png"),
205
- class: "file-icon",
206
- alt: "ppt"
207
- }, null, 8, we),
208
- i("a", {
209
- href: r(t),
210
- target: "_blank",
211
- class: "file-link"
212
- }, p(t.fileName), 9, ve)
213
- ])) : n(G)(t.fileName) ? (s(), c("div", ge, [
214
- i("img", {
215
- src: n(E)("excel.png"),
216
- class: "file-icon",
217
- alt: "excel"
218
- }, null, 8, be),
219
- i("a", {
220
- href: r(t),
221
- target: "_blank",
222
- class: "file-link"
223
- }, p(t.fileName), 9, ye)
224
- ])) : n(X)(t.fileName) ? (s(), c("div", Ne, [
225
- k(d, {
226
- size: "24",
227
- class: "file-icon"
228
- }, {
229
- default: C(() => [
230
- k(n(z))
231
- ]),
232
- _: 1
233
- }),
234
- i("a", {
235
- class: "file-link",
236
- onClick: se((m) => Y(t), ["prevent"])
237
- }, p(t.fileName), 9, Ue)
238
- ])) : r(t) ? (s(), c("div", $e, [
239
- k(d, {
240
- size: "24",
241
- class: "file-icon"
242
- }, {
243
- default: C(() => [
244
- k(n(z))
245
- ]),
246
- _: 1
247
- }),
248
- i("a", {
249
- href: r(t),
250
- target: "_blank",
251
- class: "file-link"
252
- }, p(t.fileName), 9, Fe)
253
- ])) : (s(), c("div", Ce, [
254
- i("span", null, p(t.fileName), 1)
255
- ]))
256
- ])
257
- ]))), 128))
31
+ };
32
+ function K(O, a, Q, e, R, X) {
33
+ const r = c("el-checkbox"), g = c("el-button"), k = c("el-image"), _ = c("el-icon");
34
+ return o(), t("div", u, [
35
+ e.isMultiMode ? (o(), t("div", x, [
36
+ s(r, {
37
+ modelValue: e.isAllChecked,
38
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => e.isAllChecked = l),
39
+ onChange: e.handleAllCheck
40
+ }, {
41
+ default: d(() => a[1] || (a[1] = [
42
+ f("全选")
43
+ ])),
44
+ _: 1,
45
+ __: [1]
46
+ }, 8, ["modelValue"]),
47
+ s(g, {
48
+ type: "primary",
49
+ size: "small",
50
+ disabled: e.selectedFiles.length === 0,
51
+ onClick: e.handleBatchDownload
52
+ }, {
53
+ default: d(() => [
54
+ f(" 下载选中文件(" + n(e.selectedFiles.length) + ") ", 1)
55
+ ]),
56
+ _: 1
57
+ }, 8, ["disabled"])
58
+ ])) : h("", !0),
59
+ i("div", C, [
60
+ (o(!0), t(w, null, p(e.fileList, (l, v) => (o(), t("div", {
61
+ key: `file-${v}`,
62
+ class: "file-row"
63
+ }, [
64
+ e.isMultiMode ? (o(), N(r, {
65
+ key: 0,
66
+ modelValue: l.checked,
67
+ "onUpdate:modelValue": (m) => l.checked = m,
68
+ class: "file-checkbox",
69
+ onChange: e.handleSingleCheck
70
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : h("", !0),
71
+ i("div", U, [
72
+ e.isImageFile(e.getFileUrl(l)) ? (o(), t("div", V, [
73
+ s(k, {
74
+ class: "file-image",
75
+ src: e.getFileUrl(l),
76
+ "preview-src-list": [e.getFileUrl(l)],
77
+ fit: "contain",
78
+ "preview-teleported": !0
79
+ }, null, 8, ["src", "preview-src-list"])
80
+ ])) : e.isWordFile(l.fileName) ? (o(), t("div", D, [
81
+ i("img", {
82
+ src: e.useImagePath("file-word.png"),
83
+ class: "file-icon",
84
+ alt: "word"
85
+ }, null, 8, P),
86
+ i("a", {
87
+ href: e.getFileUrl(l),
88
+ target: "_blank",
89
+ class: "file-link"
90
+ }, n(l.fileName), 9, I)
91
+ ])) : e.isPdfFile(l.fileName) ? (o(), t("div", M, [
92
+ i("img", {
93
+ src: e.useImagePath("pdf.png"),
94
+ class: "file-icon",
95
+ alt: "pdf"
96
+ }, null, 8, B),
97
+ i("a", {
98
+ href: e.getFileUrl(l),
99
+ target: "_blank",
100
+ class: "file-link"
101
+ }, n(l.fileName), 9, E)
102
+ ])) : e.isPptFile(l.fileName) ? (o(), t("div", z, [
103
+ i("img", {
104
+ src: e.useImagePath("ppt.png"),
105
+ class: "file-icon",
106
+ alt: "ppt"
107
+ }, null, 8, A),
108
+ i("a", {
109
+ href: e.getFileUrl(l),
110
+ target: "_blank",
111
+ class: "file-link"
112
+ }, n(l.fileName), 9, S)
113
+ ])) : e.isExcelFile(l.fileName) ? (o(), t("div", T, [
114
+ i("img", {
115
+ src: e.useImagePath("excel.png"),
116
+ class: "file-icon",
117
+ alt: "excel"
118
+ }, null, 8, L),
119
+ i("a", {
120
+ href: e.getFileUrl(l),
121
+ target: "_blank",
122
+ class: "file-link"
123
+ }, n(l.fileName), 9, W)
124
+ ])) : e.isTxtFile(l.fileName) ? (o(), t("div", j, [
125
+ s(_, {
126
+ size: "24",
127
+ class: "file-icon"
128
+ }, {
129
+ default: d(() => [
130
+ s(e.Document)
131
+ ]),
132
+ _: 1
133
+ }),
134
+ i("a", {
135
+ class: "file-link",
136
+ onClick: b((m) => e.handleTxtSingleDownload(l), ["prevent"])
137
+ }, n(l.fileName), 9, q)
138
+ ])) : e.getFileUrl(l) ? (o(), t("div", G, [
139
+ s(_, {
140
+ size: "24",
141
+ class: "file-icon"
142
+ }, {
143
+ default: d(() => [
144
+ s(e.Document)
145
+ ]),
146
+ _: 1
147
+ }),
148
+ i("a", {
149
+ href: e.getFileUrl(l),
150
+ target: "_blank",
151
+ class: "file-link"
152
+ }, n(l.fileName), 9, H)
153
+ ])) : (o(), t("div", J, [
154
+ i("span", null, n(l.fileName), 1)
155
+ ]))
258
156
  ])
259
- ]);
260
- };
261
- }
262
- });
157
+ ]))), 128))
158
+ ])
159
+ ]);
160
+ }
161
+ const ee = /* @__PURE__ */ y(F, [["render", K], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/file-download-wrapper/file-download-wrapper.vue"]]);
263
162
  export {
264
- Pe as default
163
+ ee as default
265
164
  };