c-image 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/my-vue-library.es.js +272 -210
- package/lib/my-vue-library.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/my-vue-library.es.js
CHANGED
|
@@ -1,109 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as M, createElementBlock as u, openBlock as t, createElementVNode as c, resolveComponent as o, createBlock as x, toDisplayString as k, withCtx as i, createVNode as a, unref as B, Fragment as L, renderList as I, ref as b, normalizeClass as O, normalizeStyle as D, createTextVNode as T } from "vue";
|
|
2
2
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
3
|
-
var X = /* @__PURE__ */
|
|
3
|
+
var X = /* @__PURE__ */ M({
|
|
4
4
|
name: "ArrowLeft",
|
|
5
5
|
__name: "arrow-left",
|
|
6
6
|
setup(e) {
|
|
7
|
-
return (
|
|
7
|
+
return (s, n) => (t(), u("svg", {
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
viewBox: "0 0 1024 1024"
|
|
10
10
|
}, [
|
|
11
|
-
|
|
11
|
+
c("path", {
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
|
|
14
14
|
})
|
|
15
15
|
]));
|
|
16
16
|
}
|
|
17
|
-
}), q = X, H = /* @__PURE__ */
|
|
17
|
+
}), q = X, H = /* @__PURE__ */ M({
|
|
18
18
|
name: "ArrowRight",
|
|
19
19
|
__name: "arrow-right",
|
|
20
20
|
setup(e) {
|
|
21
|
-
return (
|
|
21
|
+
return (s, n) => (t(), u("svg", {
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23
23
|
viewBox: "0 0 1024 1024"
|
|
24
24
|
}, [
|
|
25
|
-
|
|
25
|
+
c("path", {
|
|
26
26
|
fill: "currentColor",
|
|
27
27
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
28
28
|
})
|
|
29
29
|
]));
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), U = H, W = /* @__PURE__ */ M({
|
|
32
32
|
name: "Picture",
|
|
33
33
|
__name: "picture",
|
|
34
34
|
setup(e) {
|
|
35
|
-
return (
|
|
35
|
+
return (s, n) => (t(), u("svg", {
|
|
36
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
37
37
|
viewBox: "0 0 1024 1024"
|
|
38
38
|
}, [
|
|
39
|
-
|
|
39
|
+
c("path", {
|
|
40
40
|
fill: "currentColor",
|
|
41
41
|
d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
|
|
42
42
|
}),
|
|
43
|
-
|
|
43
|
+
c("path", {
|
|
44
44
|
fill: "currentColor",
|
|
45
45
|
d: "M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"
|
|
46
46
|
})
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
for (const [
|
|
53
|
-
|
|
54
|
-
return
|
|
55
|
-
},
|
|
49
|
+
}), N = W;
|
|
50
|
+
const C = (e, s) => {
|
|
51
|
+
const n = e.__vccOpts || e;
|
|
52
|
+
for (const [r, m] of s)
|
|
53
|
+
n[r] = m;
|
|
54
|
+
return n;
|
|
55
|
+
}, G = { class: "wrap" }, J = { class: "name" }, K = { class: "flex justify-center items-center h-full" }, Q = { style: { color: "#000000" } }, Y = {
|
|
56
56
|
key: 1,
|
|
57
57
|
class: "flex justify-center items-center h-full"
|
|
58
|
-
},
|
|
58
|
+
}, Z = {
|
|
59
59
|
__name: "cImageItem",
|
|
60
60
|
props: {
|
|
61
61
|
curImageIndex: { type: Number, default: 0 },
|
|
62
62
|
fit: { type: String, default: "contain" },
|
|
63
63
|
imgList: { type: Array, default: () => [] },
|
|
64
64
|
show: { type: Boolean, default: !0 },
|
|
65
|
-
zIndex: { type: Number, default: 9999 }
|
|
65
|
+
zIndex: { type: Number, default: 9999 },
|
|
66
|
+
tyleMap: {
|
|
67
|
+
type: Object,
|
|
68
|
+
default: () => ({
|
|
69
|
+
0: "融合智能识别",
|
|
70
|
+
1: "声迅智能识别",
|
|
71
|
+
2: "海康智能识别",
|
|
72
|
+
3: "讯飞智能识别",
|
|
73
|
+
4: "苏科智能识别"
|
|
74
|
+
})
|
|
75
|
+
}
|
|
66
76
|
},
|
|
67
77
|
setup(e) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
return (l, u) => {
|
|
75
|
-
const r = a("el-icon"), c = a("el-image");
|
|
76
|
-
return o(), m("div", W, [
|
|
77
|
-
s("div", G, L(i[e.curImageIndex]), 1),
|
|
78
|
-
e.show ? (o(), B(c, {
|
|
78
|
+
return (s, n) => {
|
|
79
|
+
const r = o("el-icon"), m = o("el-image");
|
|
80
|
+
return t(), u("div", G, [
|
|
81
|
+
c("div", J, k(e.tyleMap[e.curImageIndex]), 1),
|
|
82
|
+
e.show ? (t(), x(m, {
|
|
79
83
|
key: 0,
|
|
80
84
|
class: "image-item",
|
|
81
85
|
src: e.imgList[e.curImageIndex].url,
|
|
82
86
|
fit: e.fit,
|
|
83
|
-
"preview-src-list": e.imgList.map((
|
|
87
|
+
"preview-src-list": e.imgList.map((l) => l.url),
|
|
84
88
|
"initial-index": e.curImageIndex,
|
|
85
89
|
"show-progress": "",
|
|
86
90
|
"preview-teleported": !0,
|
|
87
91
|
"z-index": e.zIndex
|
|
88
92
|
}, {
|
|
89
|
-
error:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
default:
|
|
93
|
-
|
|
93
|
+
error: i(() => [
|
|
94
|
+
c("div", K, [
|
|
95
|
+
a(r, null, {
|
|
96
|
+
default: i(() => [
|
|
97
|
+
a(B(N))
|
|
94
98
|
]),
|
|
95
99
|
_: 1
|
|
96
100
|
})
|
|
97
101
|
])
|
|
98
102
|
]),
|
|
99
|
-
progress:
|
|
100
|
-
|
|
103
|
+
progress: i(({ activeIndex: l }) => [
|
|
104
|
+
c("span", Q, k(l + 1 + "-" + e.tyleMap[l]), 1)
|
|
101
105
|
]),
|
|
102
106
|
_: 1
|
|
103
|
-
}, 8, ["src", "fit", "preview-src-list", "initial-index", "z-index"])) : (
|
|
104
|
-
|
|
105
|
-
default:
|
|
106
|
-
|
|
107
|
+
}, 8, ["src", "fit", "preview-src-list", "initial-index", "z-index"])) : (t(), u("div", Y, [
|
|
108
|
+
a(r, null, {
|
|
109
|
+
default: i(() => [
|
|
110
|
+
a(B(N))
|
|
107
111
|
]),
|
|
108
112
|
_: 1
|
|
109
113
|
})
|
|
@@ -111,7 +115,7 @@ const k = (e, i) => {
|
|
|
111
115
|
]);
|
|
112
116
|
};
|
|
113
117
|
}
|
|
114
|
-
},
|
|
118
|
+
}, P = /* @__PURE__ */ C(Z, [["__scopeId", "data-v-79061d44"]]), ee = { class: "image-box" }, te = {
|
|
115
119
|
__name: "cImageBox",
|
|
116
120
|
props: {
|
|
117
121
|
images: {
|
|
@@ -120,138 +124,161 @@ const k = (e, i) => {
|
|
|
120
124
|
},
|
|
121
125
|
typeList: {
|
|
122
126
|
type: Array,
|
|
123
|
-
default: () => [
|
|
127
|
+
default: () => [
|
|
128
|
+
{
|
|
129
|
+
label: "融合智能识别",
|
|
130
|
+
value: 0
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: "声迅智能识别",
|
|
134
|
+
value: 1
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
label: "海康智能识别",
|
|
138
|
+
value: 2
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: "讯飞智能识别",
|
|
142
|
+
value: 3
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "苏科智能识别",
|
|
146
|
+
value: 4
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
checkedList: {
|
|
151
|
+
type: Array,
|
|
152
|
+
default: () => [0, 1, 2, 3, 4]
|
|
124
153
|
}
|
|
125
154
|
},
|
|
126
155
|
setup(e) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
156
|
+
const s = e, n = {};
|
|
157
|
+
return s.typeList.forEach((r) => {
|
|
158
|
+
n[r.value] = r.label;
|
|
159
|
+
}), (r, m) => {
|
|
160
|
+
const l = o("el-col"), y = o("el-row"), d = o("el-empty");
|
|
161
|
+
return t(), u("div", ee, [
|
|
162
|
+
e.images.length ? (t(), x(y, {
|
|
131
163
|
key: 0,
|
|
132
164
|
gutter: 10,
|
|
133
165
|
class: "content"
|
|
134
166
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
|
|
167
|
+
default: i(() => [
|
|
168
|
+
a(l, {
|
|
137
169
|
span: 16,
|
|
138
170
|
class: "left"
|
|
139
171
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
|
|
172
|
+
default: i(() => [
|
|
173
|
+
a(P, {
|
|
142
174
|
"img-list": e.images,
|
|
143
175
|
"cur-image-index": 0,
|
|
144
|
-
show: e.
|
|
176
|
+
show: e.checkedList.includes(0),
|
|
177
|
+
tyleMap: n
|
|
145
178
|
}, null, 8, ["img-list", "show"])
|
|
146
179
|
]),
|
|
147
180
|
_: 1
|
|
148
181
|
}),
|
|
149
|
-
|
|
182
|
+
a(l, {
|
|
150
183
|
span: 8,
|
|
151
184
|
class: "right"
|
|
152
185
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
t(
|
|
186
|
+
default: i(() => [
|
|
187
|
+
(t(!0), u(L, null, I(e.images.slice(1), (f, p) => (t(), x(P, {
|
|
188
|
+
key: p,
|
|
155
189
|
"img-list": e.images,
|
|
156
|
-
"cur-image-index": 1,
|
|
157
|
-
show: e.
|
|
190
|
+
"cur-image-index": p + 1,
|
|
191
|
+
show: e.checkedList.includes(p + 1),
|
|
192
|
+
tyleMap: n,
|
|
158
193
|
class: "item"
|
|
159
|
-
}, null, 8, ["img-list", "show"]),
|
|
160
|
-
t($, {
|
|
161
|
-
"img-list": e.images,
|
|
162
|
-
"cur-image-index": 2,
|
|
163
|
-
show: e.typeList.includes(2),
|
|
164
|
-
class: "item"
|
|
165
|
-
}, null, 8, ["img-list", "show"]),
|
|
166
|
-
t($, {
|
|
167
|
-
"img-list": e.images,
|
|
168
|
-
"cur-image-index": 3,
|
|
169
|
-
show: e.typeList.includes(3),
|
|
170
|
-
class: "item"
|
|
171
|
-
}, null, 8, ["img-list", "show"])
|
|
194
|
+
}, null, 8, ["img-list", "cur-image-index", "show"]))), 128))
|
|
172
195
|
]),
|
|
173
196
|
_: 1
|
|
174
197
|
})
|
|
175
198
|
]),
|
|
176
199
|
_: 1
|
|
177
|
-
})) : (
|
|
178
|
-
description:
|
|
179
|
-
|
|
200
|
+
})) : (t(), x(d, { key: 1 }, {
|
|
201
|
+
description: i(() => m[0] || (m[0] = [
|
|
202
|
+
c("div", null, "点击列表图片查看", -1)
|
|
180
203
|
])),
|
|
181
204
|
_: 1
|
|
182
205
|
}))
|
|
183
206
|
]);
|
|
184
207
|
};
|
|
185
208
|
}
|
|
186
|
-
},
|
|
209
|
+
}, F = /* @__PURE__ */ C(te, [["__scopeId", "data-v-156af659"]]), le = { class: "container" }, ae = { class: "wrapper" }, ne = ["onClick"], se = ["src", "alt"], ce = { class: "title" }, oe = { class: "image-container" }, j = 240, ie = {
|
|
187
210
|
__name: "cImage",
|
|
188
211
|
props: {
|
|
189
212
|
imageList: {
|
|
190
213
|
type: Array,
|
|
191
214
|
default: () => []
|
|
215
|
+
},
|
|
216
|
+
typeList: {
|
|
217
|
+
type: Array,
|
|
218
|
+
default: () => [
|
|
219
|
+
{
|
|
220
|
+
label: "融合智能识别",
|
|
221
|
+
value: 0
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: "声迅智能识别",
|
|
225
|
+
value: 1
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
label: "海康智能识别",
|
|
229
|
+
value: 2
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
label: "讯飞智能识别",
|
|
233
|
+
value: 3
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "苏科智能识别",
|
|
237
|
+
value: 4
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
checkedList: {
|
|
242
|
+
type: Array,
|
|
243
|
+
default: () => [0, 1, 2, 3, 4]
|
|
192
244
|
}
|
|
193
245
|
},
|
|
194
246
|
setup(e) {
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
name: c[v.type]
|
|
206
|
-
}));
|
|
247
|
+
const s = e, n = b([]), r = b(-1), m = b([...s.checkedList]), l = b(null), y = (h) => {
|
|
248
|
+
r.value = h;
|
|
249
|
+
const { items: g } = s.imageList[h];
|
|
250
|
+
n.value = g.map(($) => {
|
|
251
|
+
var A;
|
|
252
|
+
return {
|
|
253
|
+
...$,
|
|
254
|
+
name: (A = s.typeList.find((z) => z.value === $.type)) == null ? void 0 : A.label
|
|
255
|
+
};
|
|
256
|
+
});
|
|
207
257
|
};
|
|
208
|
-
let
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
|
|
258
|
+
let d = 0, f = 0;
|
|
259
|
+
const p = () => {
|
|
260
|
+
f !== s.imageList.length && (f++, d -= j, l.value.style.transform = `translateX(${d}px)`);
|
|
261
|
+
}, _ = () => {
|
|
262
|
+
f !== 0 && (f--, d += j, l.value.style.transform = `translateX(${d}px)`);
|
|
213
263
|
};
|
|
214
|
-
return (
|
|
215
|
-
const
|
|
216
|
-
return
|
|
217
|
-
|
|
218
|
-
default:
|
|
219
|
-
|
|
220
|
-
default:
|
|
221
|
-
|
|
222
|
-
modelValue:
|
|
223
|
-
"onUpdate:modelValue":
|
|
264
|
+
return (h, g) => {
|
|
265
|
+
const $ = o("el-checkbox"), A = o("el-checkbox-group"), z = o("el-form-item"), E = o("el-form"), S = o("el-button");
|
|
266
|
+
return t(), u(L, null, [
|
|
267
|
+
a(E, { ref: "form" }, {
|
|
268
|
+
default: i(() => [
|
|
269
|
+
a(z, { label: "智能结果展示" }, {
|
|
270
|
+
default: i(() => [
|
|
271
|
+
a(A, {
|
|
272
|
+
modelValue: m.value,
|
|
273
|
+
"onUpdate:modelValue": g[0] || (g[0] = (v) => m.value = v),
|
|
224
274
|
min: 1
|
|
225
275
|
}, {
|
|
226
|
-
default:
|
|
227
|
-
t(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
__: [1]
|
|
233
|
-
}),
|
|
234
|
-
t(v, { label: 1 }, {
|
|
235
|
-
default: n(() => d[2] || (d[2] = [
|
|
236
|
-
I("声迅智能识别")
|
|
237
|
-
])),
|
|
238
|
-
_: 1,
|
|
239
|
-
__: [2]
|
|
240
|
-
}),
|
|
241
|
-
t(v, { label: 2 }, {
|
|
242
|
-
default: n(() => d[3] || (d[3] = [
|
|
243
|
-
I("海康智能识别")
|
|
244
|
-
])),
|
|
245
|
-
_: 1,
|
|
246
|
-
__: [3]
|
|
247
|
-
}),
|
|
248
|
-
t(v, { label: 3 }, {
|
|
249
|
-
default: n(() => d[4] || (d[4] = [
|
|
250
|
-
I("讯飞智能识别")
|
|
251
|
-
])),
|
|
252
|
-
_: 1,
|
|
253
|
-
__: [4]
|
|
254
|
-
})
|
|
276
|
+
default: i(() => [
|
|
277
|
+
(t(!0), u(L, null, I(e.typeList, (v, w) => (t(), x($, {
|
|
278
|
+
key: w,
|
|
279
|
+
label: v.label,
|
|
280
|
+
value: v.value
|
|
281
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
255
282
|
]),
|
|
256
283
|
_: 1
|
|
257
284
|
}, 8, ["modelValue"])
|
|
@@ -261,50 +288,54 @@ const k = (e, i) => {
|
|
|
261
288
|
]),
|
|
262
289
|
_: 1
|
|
263
290
|
}, 512),
|
|
264
|
-
|
|
265
|
-
|
|
291
|
+
c("div", le, [
|
|
292
|
+
a(S, {
|
|
266
293
|
class: "arrow-button",
|
|
267
|
-
icon:
|
|
294
|
+
icon: B(q),
|
|
268
295
|
circle: "",
|
|
269
|
-
onClick:
|
|
296
|
+
onClick: p
|
|
270
297
|
}, null, 8, ["icon"]),
|
|
271
|
-
|
|
272
|
-
|
|
298
|
+
c("div", ae, [
|
|
299
|
+
c("div", {
|
|
273
300
|
ref_key: "navRef",
|
|
274
|
-
ref:
|
|
301
|
+
ref: l,
|
|
275
302
|
class: "nav"
|
|
276
303
|
}, [
|
|
277
|
-
(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
304
|
+
(t(!0), u(L, null, I(e.imageList, (v, w) => {
|
|
305
|
+
var R;
|
|
306
|
+
return t(), u("div", {
|
|
307
|
+
key: w,
|
|
308
|
+
class: O(["item", { active: r.value === w }]),
|
|
309
|
+
onClick: (V) => y(w)
|
|
310
|
+
}, [
|
|
311
|
+
c("img", {
|
|
312
|
+
src: v.items[0].url,
|
|
313
|
+
alt: `缩略图 ${w + 1}`,
|
|
314
|
+
style: { "object-fit": "contain" }
|
|
315
|
+
}, null, 8, se),
|
|
316
|
+
c("span", ce, k((R = e.typeList.find((V) => V.value === v.items[0].type)) == null ? void 0 : R.label), 1)
|
|
317
|
+
], 10, ne);
|
|
318
|
+
}), 128))
|
|
289
319
|
], 512)
|
|
290
320
|
]),
|
|
291
|
-
|
|
321
|
+
a(S, {
|
|
292
322
|
class: "arrow-button",
|
|
293
|
-
icon:
|
|
323
|
+
icon: B(U),
|
|
294
324
|
circle: "",
|
|
295
|
-
onClick:
|
|
325
|
+
onClick: _
|
|
296
326
|
}, null, 8, ["icon"])
|
|
297
327
|
]),
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
images:
|
|
301
|
-
|
|
302
|
-
|
|
328
|
+
c("div", oe, [
|
|
329
|
+
a(F, {
|
|
330
|
+
images: n.value,
|
|
331
|
+
typeList: e.typeList,
|
|
332
|
+
"checked-list": m.value
|
|
333
|
+
}, null, 8, ["images", "typeList", "checked-list"])
|
|
303
334
|
])
|
|
304
335
|
], 64);
|
|
305
336
|
};
|
|
306
337
|
}
|
|
307
|
-
},
|
|
338
|
+
}, re = /* @__PURE__ */ C(ie, [["__scopeId", "data-v-0d1e46a2"]]), ue = { class: "info" }, me = { class: "info" }, de = {
|
|
308
339
|
__name: "cImageList",
|
|
309
340
|
props: {
|
|
310
341
|
imageList: {
|
|
@@ -321,57 +352,57 @@ const k = (e, i) => {
|
|
|
321
352
|
}
|
|
322
353
|
},
|
|
323
354
|
emits: ["downFile", "showDetail"],
|
|
324
|
-
setup(e, { emit:
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
|
|
355
|
+
setup(e, { emit: s }) {
|
|
356
|
+
const n = s, r = (l) => {
|
|
357
|
+
n("downFile", l);
|
|
358
|
+
}, m = (l) => {
|
|
359
|
+
n("showDetail", l);
|
|
329
360
|
};
|
|
330
|
-
return (
|
|
331
|
-
const
|
|
332
|
-
return
|
|
333
|
-
key:
|
|
361
|
+
return (l, y) => {
|
|
362
|
+
const d = o("el-image"), f = o("el-tooltip"), p = o("el-button");
|
|
363
|
+
return t(!0), u(L, null, I(e.imageList, (_, h) => (t(), u("div", {
|
|
364
|
+
key: h,
|
|
334
365
|
class: "img-item",
|
|
335
|
-
style:
|
|
366
|
+
style: D({ width: 100 / e.countPerRow + "%" })
|
|
336
367
|
}, [
|
|
337
|
-
|
|
338
|
-
src:
|
|
368
|
+
a(d, {
|
|
369
|
+
src: _.srcList[0],
|
|
339
370
|
style: { height: "300px", width: "240px" },
|
|
340
371
|
"zoom-rate": 1.2,
|
|
341
372
|
"max-scale": 7,
|
|
342
373
|
"min-scale": 0.2,
|
|
343
374
|
"show-progress": "",
|
|
344
|
-
"initial-index":
|
|
375
|
+
"initial-index": h,
|
|
345
376
|
fit: "contain",
|
|
346
|
-
onClick: (
|
|
377
|
+
onClick: (g) => m(_)
|
|
347
378
|
}, null, 8, ["src", "initial-index", "onClick"]),
|
|
348
|
-
|
|
379
|
+
a(f, {
|
|
349
380
|
effect: "light",
|
|
350
|
-
content:
|
|
381
|
+
content: _.time,
|
|
351
382
|
placement: "top"
|
|
352
383
|
}, {
|
|
353
|
-
default:
|
|
354
|
-
|
|
384
|
+
default: i(() => [
|
|
385
|
+
c("span", ue, k(_.time), 1)
|
|
355
386
|
]),
|
|
356
387
|
_: 2
|
|
357
388
|
}, 1032, ["content"]),
|
|
358
|
-
|
|
389
|
+
a(f, {
|
|
359
390
|
effect: "light",
|
|
360
|
-
content:
|
|
391
|
+
content: _.name,
|
|
361
392
|
placement: "top"
|
|
362
393
|
}, {
|
|
363
|
-
default:
|
|
364
|
-
|
|
394
|
+
default: i(() => [
|
|
395
|
+
c("span", me, k(_.name), 1)
|
|
365
396
|
]),
|
|
366
397
|
_: 2
|
|
367
398
|
}, 1032, ["content"]),
|
|
368
|
-
|
|
399
|
+
a(p, {
|
|
369
400
|
type: "primary",
|
|
370
401
|
size: "small",
|
|
371
|
-
onClick: (
|
|
402
|
+
onClick: (g) => r(_)
|
|
372
403
|
}, {
|
|
373
|
-
default:
|
|
374
|
-
|
|
404
|
+
default: i(() => y[0] || (y[0] = [
|
|
405
|
+
T("下载")
|
|
375
406
|
])),
|
|
376
407
|
_: 2,
|
|
377
408
|
__: [0]
|
|
@@ -379,7 +410,7 @@ const k = (e, i) => {
|
|
|
379
410
|
], 4))), 128);
|
|
380
411
|
};
|
|
381
412
|
}
|
|
382
|
-
}, _e = /* @__PURE__ */
|
|
413
|
+
}, _e = /* @__PURE__ */ C(de, [["__scopeId", "data-v-a9396fbb"]]), fe = {
|
|
383
414
|
__name: "cImageScroll",
|
|
384
415
|
props: {
|
|
385
416
|
imageList: {
|
|
@@ -393,50 +424,81 @@ const k = (e, i) => {
|
|
|
393
424
|
indicatorPosition: {
|
|
394
425
|
type: String,
|
|
395
426
|
default: "none"
|
|
427
|
+
},
|
|
428
|
+
typeList: {
|
|
429
|
+
type: Array,
|
|
430
|
+
default: () => [
|
|
431
|
+
{
|
|
432
|
+
label: "融合智能识别",
|
|
433
|
+
value: 0
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
label: "声迅智能识别",
|
|
437
|
+
value: 1
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
label: "海康智能识别",
|
|
441
|
+
value: 2
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
label: "讯飞智能识别",
|
|
445
|
+
value: 3
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
label: "苏科智能识别",
|
|
449
|
+
value: 4
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
checkedList: {
|
|
454
|
+
type: Array,
|
|
455
|
+
default: () => [0, 1, 2, 3, 4]
|
|
396
456
|
}
|
|
397
457
|
},
|
|
398
458
|
emits: ["change"],
|
|
399
|
-
setup(e, { expose:
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
},
|
|
403
|
-
return
|
|
404
|
-
|
|
405
|
-
} }), (
|
|
406
|
-
const
|
|
407
|
-
return
|
|
459
|
+
setup(e, { expose: s, emit: n }) {
|
|
460
|
+
const r = n, m = (d) => {
|
|
461
|
+
r("change", d);
|
|
462
|
+
}, l = b(null);
|
|
463
|
+
return s({ setActive: (d) => {
|
|
464
|
+
l.value.setActiveItem(d);
|
|
465
|
+
} }), (d, f) => {
|
|
466
|
+
const p = o("CImageBox"), _ = o("el-carousel-item"), h = o("el-carousel");
|
|
467
|
+
return t(), u("div", {
|
|
408
468
|
class: "c-image-scroll",
|
|
409
|
-
style:
|
|
469
|
+
style: D({ background: e.scrollBg })
|
|
410
470
|
}, [
|
|
411
|
-
|
|
471
|
+
a(h, {
|
|
412
472
|
ref_key: "carouselRef",
|
|
413
|
-
ref:
|
|
473
|
+
ref: l,
|
|
414
474
|
arrow: "always",
|
|
415
475
|
trigger: "click",
|
|
416
476
|
autoplay: !1,
|
|
417
477
|
height: "100%",
|
|
418
478
|
style: { height: "100%" },
|
|
419
|
-
"indicator-position":
|
|
420
|
-
onChange:
|
|
479
|
+
"indicator-position": e.indicatorPosition,
|
|
480
|
+
onChange: m
|
|
421
481
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
(
|
|
424
|
-
default:
|
|
425
|
-
|
|
426
|
-
images:
|
|
427
|
-
|
|
482
|
+
default: i(() => [
|
|
483
|
+
(t(!0), u(L, null, I(e.imageList, (g) => (t(), x(_, { key: g }, {
|
|
484
|
+
default: i(() => [
|
|
485
|
+
a(p, {
|
|
486
|
+
images: g.items,
|
|
487
|
+
typeList: e.typeList,
|
|
488
|
+
"checked-list": e.checkedList
|
|
489
|
+
}, null, 8, ["images", "typeList", "checked-list"])
|
|
428
490
|
]),
|
|
429
491
|
_: 2
|
|
430
492
|
}, 1024))), 128))
|
|
431
493
|
]),
|
|
432
494
|
_: 1
|
|
433
|
-
},
|
|
495
|
+
}, 8, ["indicator-position"])
|
|
434
496
|
], 4);
|
|
435
497
|
};
|
|
436
498
|
}
|
|
437
|
-
},
|
|
499
|
+
}, pe = /* @__PURE__ */ C(fe, [["__scopeId", "data-v-b875e3a6"]]), he = {
|
|
438
500
|
install(e) {
|
|
439
|
-
e.component("CImage",
|
|
501
|
+
e.component("CImage", re).component("CImageBox", F).component("CImageList", _e).component("CImageScroll", pe);
|
|
440
502
|
}
|
|
441
503
|
};
|
|
442
504
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,h){typeof exports=="object"&&typeof module<"u"?module.exports=h(require("vue")):typeof define=="function"&&define.amd?define(["vue"],h):(e=typeof globalThis<"u"?globalThis:e||self,e.MyVueLibrary=h(e.Vue))})(this,function(e){"use strict";/*! Element Plus Icons Vue v2.3.2 */var h=e.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),I=h,L=e.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),E=L,b=e.defineComponent({name:"Picture",__name:"picture",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),e.createElementVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),k=b;const w=(t,n)=>{const o=t.__vccOpts||t;for(const[a,c]of n)o[a]=c;return o},u={class:"wrap"},$={class:"name"},S={class:"flex justify-center items-center h-full"},z={style:{color:"#000000"}},A={key:1,class:"flex justify-center items-center h-full"},x=w({__name:"cImageItem",props:{curImageIndex:{type:Number,default:0},fit:{type:String,default:"contain"},imgList:{type:Array,default:()=>[]},show:{type:Boolean,default:!0},zIndex:{type:Number,default:9999}},setup(t){const n={0:"融合智能识别",1:"声迅智能识别",2:"海康智能识别",3:"讯飞智能识别"};return(o,a)=>{const c=e.resolveComponent("el-icon"),l=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",$,e.toDisplayString(n[t.curImageIndex]),1),t.show?(e.openBlock(),e.createBlock(l,{key:0,class:"image-item",src:t.imgList[t.curImageIndex].url,fit:t.fit,"preview-src-list":t.imgList.map(s=>s.url),"initial-index":t.curImageIndex,"show-progress":"","preview-teleported":!0,"z-index":t.zIndex},{error:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(e.unref(k))]),_:1})])]),progress:e.withCtx(({activeIndex:s})=>[e.createElementVNode("span",z,e.toDisplayString(s+1+"-"+n[s]),1)]),_:1},8,["src","fit","preview-src-list","initial-index","z-index"])):(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(e.unref(k))]),_:1})]))])}}},[["__scopeId","data-v-567f63a7"]]),D={class:"image-box"},V=w({__name:"cImageBox",props:{images:{type:Array,default:()=>[]},typeList:{type:Array,default:()=>[0,1,2,3]}},setup(t){return(n,o)=>{const a=e.resolveComponent("el-col"),c=e.resolveComponent("el-row"),l=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",D,[t.images.length?(e.openBlock(),e.createBlock(c,{key:0,gutter:10,class:"content"},{default:e.withCtx(()=>[e.createVNode(a,{span:16,class:"left"},{default:e.withCtx(()=>[e.createVNode(x,{"img-list":t.images,"cur-image-index":0,show:t.typeList.includes(0)},null,8,["img-list","show"])]),_:1}),e.createVNode(a,{span:8,class:"right"},{default:e.withCtx(()=>[e.createVNode(x,{"img-list":t.images,"cur-image-index":1,show:t.typeList.includes(1),class:"item"},null,8,["img-list","show"]),e.createVNode(x,{"img-list":t.images,"cur-image-index":2,show:t.typeList.includes(2),class:"item"},null,8,["img-list","show"]),e.createVNode(x,{"img-list":t.images,"cur-image-index":3,show:t.typeList.includes(3),class:"item"},null,8,["img-list","show"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(l,{key:1},{description:e.withCtx(()=>o[0]||(o[0]=[e.createElementVNode("div",null,"点击列表图片查看",-1)])),_:1}))])}}},[["__scopeId","data-v-28f92729"]]),M={class:"container"},R={class:"wrapper"},T=["onClick"],F=["src","alt"],P={class:"title"},j={class:"image-container"},N=240,q=w({__name:"cImage",props:{imageList:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.ref([0,1,2,3]),a=e.ref([]),c=e.ref(-1),l={0:"融合智能识别",1:"声迅智能识别",2:"海康智能识别",3:"讯飞智能识别"},s=e.ref(null),m=p=>{c.value=p;const{items:i}=n.imageList[p];a.value=i.map(f=>({...f,name:l[f.type]}))};let d=0,_=0;const r=()=>{_!==n.imageList.length&&(_++,d-=N,s.value.style.transform=`translateX(${d}px)`)},g=()=>{_!==0&&(_--,d+=N,s.value.style.transform=`translateX(${d}px)`)};return(p,i)=>{const f=e.resolveComponent("el-checkbox"),W=e.resolveComponent("el-checkbox-group"),G=e.resolveComponent("el-form-item"),J=e.resolveComponent("el-form"),B=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(J,{ref:"form"},{default:e.withCtx(()=>[e.createVNode(G,{label:"智能结果展示"},{default:e.withCtx(()=>[e.createVNode(W,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=y=>o.value=y),min:1},{default:e.withCtx(()=>[e.createVNode(f,{label:0},{default:e.withCtx(()=>i[1]||(i[1]=[e.createTextVNode("融合智能识别")])),_:1,__:[1]}),e.createVNode(f,{label:1},{default:e.withCtx(()=>i[2]||(i[2]=[e.createTextVNode("声迅智能识别")])),_:1,__:[2]}),e.createVNode(f,{label:2},{default:e.withCtx(()=>i[3]||(i[3]=[e.createTextVNode("海康智能识别")])),_:1,__:[3]}),e.createVNode(f,{label:3},{default:e.withCtx(()=>i[4]||(i[4]=[e.createTextVNode("讯飞智能识别")])),_:1,__:[4]})]),_:1},8,["modelValue"])]),_:1})]),_:1},512),e.createElementVNode("div",M,[e.createVNode(B,{class:"arrow-button",icon:e.unref(I),circle:"",onClick:r},null,8,["icon"]),e.createElementVNode("div",R,[e.createElementVNode("div",{ref_key:"navRef",ref:s,class:"nav"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,(y,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:e.normalizeClass(["item",{active:c.value===C}]),onClick:te=>m(C)},[e.createElementVNode("img",{src:y.items[0].url,alt:`缩略图 ${C+1}`,style:{"object-fit":"contain"}},null,8,F),e.createElementVNode("span",P,e.toDisplayString(l[y.items[0].type]),1)],10,T))),128))],512)]),e.createVNode(B,{class:"arrow-button",icon:e.unref(E),circle:"",onClick:g},null,8,["icon"])]),e.createElementVNode("div",j,[e.createVNode(V,{images:a.value,"type-list":o.value},null,8,["images","type-list"])])],64)}}},[["__scopeId","data-v-6692b78c"]]),X={class:"info"},H={class:"info"},O=w({__name:"cImageList",props:{imageList:{type:Array,default:()=>[]},width:{type:String,default:"800px"},countPerRow:{type:Number,default:5}},emits:["downFile","showDetail"],setup(t,{emit:n}){const o=n,a=l=>{o("downFile",l)},c=l=>{o("showDetail",l)};return(l,s)=>{const m=e.resolveComponent("el-image"),d=e.resolveComponent("el-tooltip"),_=e.resolveComponent("el-button");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,(r,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"img-item",style:e.normalizeStyle({width:100/t.countPerRow+"%"})},[e.createVNode(m,{src:r.srcList[0],style:{height:"300px",width:"240px"},"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"show-progress":"","initial-index":g,fit:"contain",onClick:p=>c(r)},null,8,["src","initial-index","onClick"]),e.createVNode(d,{effect:"light",content:r.time,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",X,e.toDisplayString(r.time),1)]),_:2},1032,["content"]),e.createVNode(d,{effect:"light",content:r.name,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",H,e.toDisplayString(r.name),1)]),_:2},1032,["content"]),e.createVNode(_,{type:"primary",size:"small",onClick:p=>a(r)},{default:e.withCtx(()=>s[0]||(s[0]=[e.createTextVNode("下载")])),_:2,__:[0]},1032,["onClick"])],4))),128)}}},[["__scopeId","data-v-76897c2d"]]),U=w({__name:"cImageScroll",props:{imageList:{type:Array,default:()=>[]},scrollBg:{type:String,default:"#ffffff"},indicatorPosition:{type:String,default:"none"}},emits:["change"],setup(t,{expose:n,emit:o}){const a=o,c=m=>{a("change",m)},l=e.ref(null);return n({setActive:m=>{l.value.setActiveItem(m)}}),(m,d)=>{const _=e.resolveComponent("CImageBox"),r=e.resolveComponent("el-carousel-item"),g=e.resolveComponent("el-carousel");return e.openBlock(),e.createElementBlock("div",{class:"c-image-scroll",style:e.normalizeStyle({background:t.scrollBg})},[e.createVNode(g,{ref_key:"carouselRef",ref:l,arrow:"always",trigger:"click",autoplay:!1,height:"100%",style:{height:"100%"},"indicator-position":"indicatorPosition",onChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,p=>(e.openBlock(),e.createBlock(r,{key:p},{default:e.withCtx(()=>[e.createVNode(_,{images:p.items},null,8,["images"])]),_:2},1024))),128))]),_:1},512)],4)}}},[["__scopeId","data-v-0b210d39"]]);return{install(t){t.component("CImage",q).component("CImageBox",V).component("CImageList",O).component("CImageScroll",U)}}});
|
|
1
|
+
(function(e,h){typeof exports=="object"&&typeof module<"u"?module.exports=h(require("vue")):typeof define=="function"&&define.amd?define(["vue"],h):(e=typeof globalThis<"u"?globalThis:e||self,e.MyVueLibrary=h(e.Vue))})(this,function(e){"use strict";/*! Element Plus Icons Vue v2.3.2 */var h=e.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),I=h,E=e.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),$=E,A=e.defineComponent({name:"Picture",__name:"picture",setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),e.createElementVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),C=A;const y=(t,n)=>{const o=t.__vccOpts||t;for(const[a,c]of n)o[a]=c;return o},S={class:"wrap"},z={class:"name"},M={class:"flex justify-center items-center h-full"},F={style:{color:"#000000"}},D={key:1,class:"flex justify-center items-center h-full"},u=y({__name:"cImageItem",props:{curImageIndex:{type:Number,default:0},fit:{type:String,default:"contain"},imgList:{type:Array,default:()=>[]},show:{type:Boolean,default:!0},zIndex:{type:Number,default:9999},tyleMap:{type:Object,default:()=>({0:"融合智能识别",1:"声迅智能识别",2:"海康智能识别",3:"讯飞智能识别",4:"苏科智能识别"})}},setup(t){return(n,o)=>{const a=e.resolveComponent("el-icon"),c=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",z,e.toDisplayString(t.tyleMap[t.curImageIndex]),1),t.show?(e.openBlock(),e.createBlock(c,{key:0,class:"image-item",src:t.imgList[t.curImageIndex].url,fit:t.fit,"preview-src-list":t.imgList.map(l=>l.url),"initial-index":t.curImageIndex,"show-progress":"","preview-teleported":!0,"z-index":t.zIndex},{error:e.withCtx(()=>[e.createElementVNode("div",M,[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(C))]),_:1})])]),progress:e.withCtx(({activeIndex:l})=>[e.createElementVNode("span",F,e.toDisplayString(l+1+"-"+t.tyleMap[l]),1)]),_:1},8,["src","fit","preview-src-list","initial-index","z-index"])):(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(C))]),_:1})]))])}}},[["__scopeId","data-v-79061d44"]]),R={class:"image-box"},B=y({__name:"cImageBox",props:{images:{type:Array,default:()=>[]},typeList:{type:Array,default:()=>[{label:"融合智能识别",value:0},{label:"声迅智能识别",value:1},{label:"海康智能识别",value:2},{label:"讯飞智能识别",value:3},{label:"苏科智能识别",value:4}]},checkedList:{type:Array,default:()=>[0,1,2,3,4]}},setup(t){const n=t,o={};return n.typeList.forEach(a=>{o[a.value]=a.label}),(a,c)=>{const l=e.resolveComponent("el-col"),f=e.resolveComponent("el-row"),r=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",R,[t.images.length?(e.openBlock(),e.createBlock(f,{key:0,gutter:10,class:"content"},{default:e.withCtx(()=>[e.createVNode(l,{span:16,class:"left"},{default:e.withCtx(()=>[e.createVNode(u,{"img-list":t.images,"cur-image-index":0,show:t.checkedList.includes(0),tyleMap:o},null,8,["img-list","show"])]),_:1}),e.createVNode(l,{span:8,class:"right"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.images.slice(1),(i,m)=>(e.openBlock(),e.createBlock(u,{key:m,"img-list":t.images,"cur-image-index":m+1,show:t.checkedList.includes(m+1),tyleMap:o,class:"item"},null,8,["img-list","cur-image-index","show"]))),128))]),_:1})]),_:1})):(e.openBlock(),e.createBlock(r,{key:1},{description:e.withCtx(()=>c[0]||(c[0]=[e.createElementVNode("div",null,"点击列表图片查看",-1)])),_:1}))])}}},[["__scopeId","data-v-156af659"]]),j={class:"container"},P={class:"wrapper"},T=["onClick"],q=["src","alt"],O={class:"title"},X={class:"image-container"},L=240,H=y({__name:"cImage",props:{imageList:{type:Array,default:()=>[]},typeList:{type:Array,default:()=>[{label:"融合智能识别",value:0},{label:"声迅智能识别",value:1},{label:"海康智能识别",value:2},{label:"讯飞智能识别",value:3},{label:"苏科智能识别",value:4}]},checkedList:{type:Array,default:()=>[0,1,2,3,4]}},setup(t){const n=t,o=e.ref([]),a=e.ref(-1),c=e.ref([...n.checkedList]),l=e.ref(null),f=p=>{a.value=p;const{items:d}=n.imageList[p];o.value=d.map(k=>{var w;return{...k,name:(w=n.typeList.find(x=>x.value===k.type))==null?void 0:w.label}})};let r=0,i=0;const m=()=>{i!==n.imageList.length&&(i++,r-=L,l.value.style.transform=`translateX(${r}px)`)},s=()=>{i!==0&&(i--,r+=L,l.value.style.transform=`translateX(${r}px)`)};return(p,d)=>{const k=e.resolveComponent("el-checkbox"),w=e.resolveComponent("el-checkbox-group"),x=e.resolveComponent("el-form-item"),K=e.resolveComponent("el-form"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(K,{ref:"form"},{default:e.withCtx(()=>[e.createVNode(x,{label:"智能结果展示"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=_=>c.value=_),min:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.typeList,(_,g)=>(e.openBlock(),e.createBlock(k,{key:g,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},512),e.createElementVNode("div",j,[e.createVNode(b,{class:"arrow-button",icon:e.unref(I),circle:"",onClick:m},null,8,["icon"]),e.createElementVNode("div",P,[e.createElementVNode("div",{ref_key:"navRef",ref:l,class:"nav"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,(_,g)=>{var V;return e.openBlock(),e.createElementBlock("div",{key:g,class:e.normalizeClass(["item",{active:a.value===g}]),onClick:N=>f(g)},[e.createElementVNode("img",{src:_.items[0].url,alt:`缩略图 ${g+1}`,style:{"object-fit":"contain"}},null,8,q),e.createElementVNode("span",O,e.toDisplayString((V=t.typeList.find(N=>N.value===_.items[0].type))==null?void 0:V.label),1)],10,T)}),128))],512)]),e.createVNode(b,{class:"arrow-button",icon:e.unref($),circle:"",onClick:s},null,8,["icon"])]),e.createElementVNode("div",X,[e.createVNode(B,{images:o.value,typeList:t.typeList,"checked-list":c.value},null,8,["images","typeList","checked-list"])])],64)}}},[["__scopeId","data-v-0d1e46a2"]]),U={class:"info"},W={class:"info"},G=y({__name:"cImageList",props:{imageList:{type:Array,default:()=>[]},width:{type:String,default:"800px"},countPerRow:{type:Number,default:5}},emits:["downFile","showDetail"],setup(t,{emit:n}){const o=n,a=l=>{o("downFile",l)},c=l=>{o("showDetail",l)};return(l,f)=>{const r=e.resolveComponent("el-image"),i=e.resolveComponent("el-tooltip"),m=e.resolveComponent("el-button");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,(s,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"img-item",style:e.normalizeStyle({width:100/t.countPerRow+"%"})},[e.createVNode(r,{src:s.srcList[0],style:{height:"300px",width:"240px"},"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"show-progress":"","initial-index":p,fit:"contain",onClick:d=>c(s)},null,8,["src","initial-index","onClick"]),e.createVNode(i,{effect:"light",content:s.time,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",U,e.toDisplayString(s.time),1)]),_:2},1032,["content"]),e.createVNode(i,{effect:"light",content:s.name,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("span",W,e.toDisplayString(s.name),1)]),_:2},1032,["content"]),e.createVNode(m,{type:"primary",size:"small",onClick:d=>a(s)},{default:e.withCtx(()=>f[0]||(f[0]=[e.createTextVNode("下载")])),_:2,__:[0]},1032,["onClick"])],4))),128)}}},[["__scopeId","data-v-a9396fbb"]]),J=y({__name:"cImageScroll",props:{imageList:{type:Array,default:()=>[]},scrollBg:{type:String,default:"#ffffff"},indicatorPosition:{type:String,default:"none"},typeList:{type:Array,default:()=>[{label:"融合智能识别",value:0},{label:"声迅智能识别",value:1},{label:"海康智能识别",value:2},{label:"讯飞智能识别",value:3},{label:"苏科智能识别",value:4}]},checkedList:{type:Array,default:()=>[0,1,2,3,4]}},emits:["change"],setup(t,{expose:n,emit:o}){const a=o,c=r=>{a("change",r)},l=e.ref(null);return n({setActive:r=>{l.value.setActiveItem(r)}}),(r,i)=>{const m=e.resolveComponent("CImageBox"),s=e.resolveComponent("el-carousel-item"),p=e.resolveComponent("el-carousel");return e.openBlock(),e.createElementBlock("div",{class:"c-image-scroll",style:e.normalizeStyle({background:t.scrollBg})},[e.createVNode(p,{ref_key:"carouselRef",ref:l,arrow:"always",trigger:"click",autoplay:!1,height:"100%",style:{height:"100%"},"indicator-position":t.indicatorPosition,onChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,d=>(e.openBlock(),e.createBlock(s,{key:d},{default:e.withCtx(()=>[e.createVNode(m,{images:d.items,typeList:t.typeList,"checked-list":t.checkedList},null,8,["images","typeList","checked-list"])]),_:2},1024))),128))]),_:1},8,["indicator-position"])],4)}}},[["__scopeId","data-v-b875e3a6"]]);return{install(t){t.component("CImage",H).component("CImageBox",B).component("CImageList",G).component("CImageScroll",J)}}});
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.wrap[data-v-
|
|
1
|
+
@charset "UTF-8";.wrap[data-v-79061d44]{width:100%;height:100%;position:relative;border:1px solid #eee}.wrap .name[data-v-79061d44]{position:absolute;top:20px;left:20px;z-index:1;padding:5px;font-size:16px}.wrap .image-item[data-v-79061d44]{width:100%;height:100%}.wrap .preview-name[data-v-79061d44]{position:absolute;top:20px;left:20px;z-index:1;padding:5px;font-size:16px}.image-box[data-v-156af659]{width:100%;height:100%;position:relative;overflow-y:auto}.image-box .content[data-v-156af659]{width:100%;height:100%;height:calc(100% - 5px)}.image-box .content .left[data-v-156af659],.image-box .content .right[data-v-156af659]{height:100%}.image-box .content .right[data-v-156af659]{overflow:auto}.image-box .content .right .item[data-v-156af659]{height:33.33%}.empty-state[data-v-156af659]{padding:40px 0;text-align:center;color:#999;border:1px dashed #ddd;border-radius:8px;margin-top:15px}.image-container[data-v-0d1e46a2]{height:100%;position:relative;overflow-y:auto}.container[data-v-0d1e46a2]{width:100%;margin-top:10px;padding:5px 0;display:flex;align-items:center;gap:8px}.container .wrapper[data-v-0d1e46a2]{flex:1;display:flex;overflow-x:auto}.container .wrapper .nav[data-v-0d1e46a2]{display:flex;gap:10px}.item[data-v-0d1e46a2]{position:relative;width:240px;height:160px;flex-shrink:0;border-radius:8px;overflow:hidden;cursor:pointer;opacity:.7;transition:all .3s;box-sizing:border-box;border:2px solid #e0e0e0}.item.active[data-v-0d1e46a2]{opacity:1;border:2px solid #2196f3}.item .title[data-v-0d1e46a2]{position:absolute;right:5px;top:5px;font-size:12px;color:#666}.item img[data-v-0d1e46a2]{width:100%;height:100%;object-fit:cover;display:block;text-align:center;line-height:9}.nav[data-v-0d1e46a2]::-webkit-scrollbar{display:none}.nav[data-v-0d1e46a2]{-ms-overflow-style:none;scrollbar-width:none}.nav[data-v-0d1e46a2]:before,.nav[data-v-0d1e46a2]:after{content:"";position:absolute;top:0;bottom:0;width:30px;pointer-events:none;z-index:1}.nav[data-v-0d1e46a2]:before{left:0;background:linear-gradient(to right,#fff,transparent)}.nav[data-v-0d1e46a2]:after{right:0;background:linear-gradient(to left,#fff,transparent)}.info-meta p[data-v-0d1e46a2]{margin-bottom:10px;color:#666;font-size:14px;display:flex}.info-meta span[data-v-0d1e46a2]{width:80px;color:#999}@keyframes fadeInUp-0d1e46a2{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.container[data-v-0d1e46a2]{height:100px}}.icon-plus[data-v-0d1e46a2]:before{content:"+";font-weight:700}.img-item[data-v-a9396fbb]{position:relative;display:flex;flex-direction:column;align-items:center}.img-item[data-v-a9396fbb] .el-image{cursor:pointer}.img-item .info[data-v-a9396fbb]{width:240px;line-height:25px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.img-item .big-img-wrap[data-v-a9396fbb]{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080}.c-image-scroll[data-v-b875e3a6]{width:100%;height:100%}
|