yahee-components 0.0.108 → 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.
- package/es/annex-upload/annex-upload.vue.js +51 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +64 -95
- package/es/border-wrap/border-wrap.vue2.js +46 -2
- package/es/common-import/common-import.vue.js +369 -693
- package/es/common-import/common-import.vue2.js +364 -2
- package/es/common-import/index.js +3 -3
- package/es/complex-search/batch-search-dialog.vue.js +116 -4
- package/es/complex-search/batch-search-dialog.vue2.js +27 -136
- package/es/complex-search/complex-search.vue.js +14 -14
- package/es/copy/copy.vue.js +37 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +115 -215
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/echart-gauge/echart-gauge.vue.js +12 -140
- package/es/echart-gauge/echart-gauge.vue2.js +147 -2
- package/es/echart-gauge/index.js +3 -3
- package/es/file-download-wrapper/file-download-wrapper.vue.js +143 -244
- package/es/file-download-wrapper/file-download-wrapper.vue2.js +113 -2
- package/es/file-download-wrapper/index.js +4 -4
- package/es/filter-container/filter-container.vue.js +18 -66
- package/es/filter-container/filter-container.vue2.js +59 -2
- package/es/filter-container/index.js +4 -4
- package/es/filter-wrapper/filter-wrapper.vue.js +16 -4
- package/es/filter-wrapper/filter-wrapper.vue2.js +40 -45
- package/es/height-collapse/height-collapse.vue.js +24 -51
- package/es/height-collapse/height-collapse.vue2.js +42 -2
- package/es/height-collapse/index.js +4 -4
- package/es/help-tag/help-tag.vue.js +44 -78
- package/es/help-tag/help-tag.vue2.js +49 -2
- package/es/help-tag/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +109 -170
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +32 -91
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +70 -218
- package/es/left-condition/left-condition.vue2.js +160 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
- package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
- package/es/operation-log/operation-log-content.vue.js +71 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +45 -67
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +108 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +119 -228
- package/es/operation-log/operation-log.vue2.js +135 -2
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +19 -126
- package/es/scale-screen/scale-screen.vue2.js +125 -2
- package/es/yahee-components.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,149 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
148
|
+
$ as default
|
|
4
149
|
};
|
package/es/echart-gauge/index.js
CHANGED
|
@@ -1,265 +1,164 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
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
|
-
},
|
|
7
|
+
}, C = { class: "file-list" }, U = { class: "file-item" }, V = {
|
|
14
8
|
key: 0,
|
|
15
9
|
class: "image-item"
|
|
16
|
-
},
|
|
10
|
+
}, D = {
|
|
17
11
|
key: 1,
|
|
18
12
|
class: "document-item"
|
|
19
|
-
},
|
|
13
|
+
}, P = ["src"], I = ["href"], M = {
|
|
20
14
|
key: 2,
|
|
21
15
|
class: "document-item"
|
|
22
|
-
},
|
|
16
|
+
}, B = ["src"], E = ["href"], z = {
|
|
23
17
|
key: 3,
|
|
24
18
|
class: "document-item"
|
|
25
|
-
},
|
|
19
|
+
}, A = ["src"], S = ["href"], T = {
|
|
26
20
|
key: 4,
|
|
27
21
|
class: "document-item"
|
|
28
|
-
},
|
|
22
|
+
}, L = ["src"], W = ["href"], j = {
|
|
29
23
|
key: 5,
|
|
30
24
|
class: "document-item"
|
|
31
|
-
},
|
|
25
|
+
}, q = ["onClick"], G = {
|
|
32
26
|
key: 6,
|
|
33
27
|
class: "document-item"
|
|
34
|
-
},
|
|
28
|
+
}, H = ["href"], J = {
|
|
35
29
|
key: 7,
|
|
36
30
|
class: "file-name"
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
|
|
163
|
+
ee as default
|
|
265
164
|
};
|