c-image 1.0.0 → 1.0.2

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.
@@ -1,14 +1,14 @@
1
- import { defineComponent as S, createElementBlock as m, openBlock as n, createElementVNode as a, resolveComponent as o, createBlock as k, toDisplayString as C, withCtx as s, createVNode as t, unref as $, ref as v, Fragment as B, createTextVNode as y, renderList as V, normalizeClass as T, normalizeStyle as D } from "vue";
1
+ import { defineComponent as S, createElementBlock as m, openBlock as o, createElementVNode as s, resolveComponent as a, createBlock as B, toDisplayString as L, withCtx as n, createVNode as t, unref as z, ref as x, Fragment as A, createTextVNode as I, renderList as R, normalizeClass as T, normalizeStyle as P } from "vue";
2
2
  /*! Element Plus Icons Vue v2.3.2 */
3
3
  var X = /* @__PURE__ */ S({
4
4
  name: "ArrowLeft",
5
5
  __name: "arrow-left",
6
6
  setup(e) {
7
- return (i, l) => (n(), m("svg", {
7
+ return (i, l) => (o(), m("svg", {
8
8
  xmlns: "http://www.w3.org/2000/svg",
9
9
  viewBox: "0 0 1024 1024"
10
10
  }, [
11
- a("path", {
11
+ s("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
  })
@@ -18,11 +18,11 @@ var X = /* @__PURE__ */ S({
18
18
  name: "ArrowRight",
19
19
  __name: "arrow-right",
20
20
  setup(e) {
21
- return (i, l) => (n(), m("svg", {
21
+ return (i, l) => (o(), m("svg", {
22
22
  xmlns: "http://www.w3.org/2000/svg",
23
23
  viewBox: "0 0 1024 1024"
24
24
  }, [
25
- a("path", {
25
+ s("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
  })
@@ -32,36 +32,37 @@ var X = /* @__PURE__ */ S({
32
32
  name: "Picture",
33
33
  __name: "picture",
34
34
  setup(e) {
35
- return (i, l) => (n(), m("svg", {
35
+ return (i, l) => (o(), m("svg", {
36
36
  xmlns: "http://www.w3.org/2000/svg",
37
37
  viewBox: "0 0 1024 1024"
38
38
  }, [
39
- a("path", {
39
+ s("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
- a("path", {
43
+ s("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
49
  }), M = U;
50
- const w = (e, i) => {
50
+ const k = (e, i) => {
51
51
  const l = e.__vccOpts || e;
52
- for (const [d, c] of i)
53
- l[d] = c;
52
+ for (const [u, r] of i)
53
+ l[u] = r;
54
54
  return l;
55
- }, W = { class: "wrap" }, G = { class: "name" }, J = { class: "flex justify-center items-center h-full" }, K = {
55
+ }, W = { class: "wrap" }, G = { class: "name" }, J = { class: "flex justify-center items-center h-full" }, K = { style: { color: "#000000" } }, Q = {
56
56
  key: 1,
57
57
  class: "flex justify-center items-center h-full"
58
- }, Q = {
58
+ }, Y = {
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
- show: { type: Boolean, default: !0 }
64
+ show: { type: Boolean, default: !0 },
65
+ zIndex: { type: Number, default: 9999 }
65
66
  },
66
67
  setup(e) {
67
68
  const i = {
@@ -70,32 +71,39 @@ const w = (e, i) => {
70
71
  2: "海康智能识别",
71
72
  3: "讯飞智能识别"
72
73
  };
73
- return (l, d) => {
74
- const c = o("el-icon"), u = o("el-image");
75
- return n(), m("div", W, [
76
- a("div", G, C(i[e.curImageIndex]), 1),
77
- e.show ? (n(), k(u, {
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
79
  key: 0,
79
80
  class: "image-item",
80
81
  src: e.imgList[e.curImageIndex].url,
81
82
  fit: e.fit,
82
- "preview-src-list": e.imgList.map((g) => g.url)
83
+ "preview-src-list": e.imgList.map((_) => _.url),
84
+ "initial-index": e.curImageIndex,
85
+ "show-progress": "",
86
+ "preview-teleported": !0,
87
+ "z-index": e.zIndex
83
88
  }, {
84
- error: s(() => [
85
- a("div", J, [
86
- t(c, null, {
87
- default: s(() => [
88
- t($(M))
89
+ error: n(() => [
90
+ s("div", J, [
91
+ t(r, null, {
92
+ default: n(() => [
93
+ t(z(M))
89
94
  ]),
90
95
  _: 1
91
96
  })
92
97
  ])
93
98
  ]),
99
+ progress: n(({ activeIndex: _ }) => [
100
+ s("span", K, L(_ + 1 + "-" + i[_]), 1)
101
+ ]),
94
102
  _: 1
95
- }, 8, ["src", "fit", "preview-src-list"])) : (n(), m("div", K, [
96
- t(c, null, {
97
- default: s(() => [
98
- t($(M))
103
+ }, 8, ["src", "fit", "preview-src-list", "initial-index", "z-index"])) : (o(), m("div", Q, [
104
+ t(r, null, {
105
+ default: n(() => [
106
+ t(z(M))
99
107
  ]),
100
108
  _: 1
101
109
  })
@@ -103,7 +111,7 @@ const w = (e, i) => {
103
111
  ]);
104
112
  };
105
113
  }
106
- }, L = /* @__PURE__ */ w(Q, [["__scopeId", "data-v-a887436b"]]), Y = { class: "image-box" }, Z = {
114
+ }, $ = /* @__PURE__ */ k(Y, [["__scopeId", "data-v-567f63a7"]]), Z = { class: "image-box" }, ee = {
107
115
  __name: "cImageBox",
108
116
  props: {
109
117
  images: {
@@ -117,20 +125,20 @@ const w = (e, i) => {
117
125
  },
118
126
  setup(e) {
119
127
  return (i, l) => {
120
- const d = o("el-col"), c = o("el-row"), u = o("el-empty");
121
- return n(), m("div", Y, [
122
- e.images.length ? (n(), k(c, {
128
+ const u = a("el-col"), r = a("el-row"), c = a("el-empty");
129
+ return o(), m("div", Z, [
130
+ e.images.length ? (o(), B(r, {
123
131
  key: 0,
124
132
  gutter: 10,
125
133
  class: "content"
126
134
  }, {
127
- default: s(() => [
128
- t(d, {
135
+ default: n(() => [
136
+ t(u, {
129
137
  span: 16,
130
138
  class: "left"
131
139
  }, {
132
- default: s(() => [
133
- t(L, {
140
+ default: n(() => [
141
+ t($, {
134
142
  "img-list": e.images,
135
143
  "cur-image-index": 0,
136
144
  show: e.typeList.includes(0)
@@ -138,24 +146,24 @@ const w = (e, i) => {
138
146
  ]),
139
147
  _: 1
140
148
  }),
141
- t(d, {
149
+ t(u, {
142
150
  span: 8,
143
151
  class: "right"
144
152
  }, {
145
- default: s(() => [
146
- t(L, {
153
+ default: n(() => [
154
+ t($, {
147
155
  "img-list": e.images,
148
156
  "cur-image-index": 1,
149
157
  show: e.typeList.includes(1),
150
158
  class: "item"
151
159
  }, null, 8, ["img-list", "show"]),
152
- t(L, {
160
+ t($, {
153
161
  "img-list": e.images,
154
162
  "cur-image-index": 2,
155
163
  show: e.typeList.includes(2),
156
164
  class: "item"
157
165
  }, null, 8, ["img-list", "show"]),
158
- t(L, {
166
+ t($, {
159
167
  "img-list": e.images,
160
168
  "cur-image-index": 3,
161
169
  show: e.typeList.includes(3),
@@ -166,16 +174,16 @@ const w = (e, i) => {
166
174
  })
167
175
  ]),
168
176
  _: 1
169
- })) : (n(), k(u, { key: 1 }, {
170
- description: s(() => l[0] || (l[0] = [
171
- a("div", null, "点击列表图片查看", -1)
177
+ })) : (o(), B(c, { key: 1 }, {
178
+ description: n(() => l[0] || (l[0] = [
179
+ s("div", null, "点击列表图片查看", -1)
172
180
  ])),
173
181
  _: 1
174
182
  }))
175
183
  ]);
176
184
  };
177
185
  }
178
- }, F = /* @__PURE__ */ w(Z, [["__scopeId", "data-v-56596cda"]]), ee = { class: "thumbnail-container" }, te = { class: "thumbnails-wrapper" }, le = ["onClick"], se = ["src", "alt"], ne = { class: "thumbnail-title" }, ae = { class: "image-container" }, N = 240, oe = {
186
+ }, D = /* @__PURE__ */ k(ee, [["__scopeId", "data-v-28f92729"]]), te = { class: "container" }, ne = { class: "wrapper" }, le = ["onClick"], oe = ["src", "alt"], se = { class: "title" }, ae = { class: "image-container" }, N = 240, ie = {
179
187
  __name: "cImage",
180
188
  props: {
181
189
  imageList: {
@@ -184,62 +192,62 @@ const w = (e, i) => {
184
192
  }
185
193
  },
186
194
  setup(e) {
187
- const i = e, l = v([0, 1, 2, 3]), d = v([]), c = v(-1), u = {
195
+ const i = e, l = x([0, 1, 2, 3]), u = x([]), r = x(-1), c = {
188
196
  0: "融合智能识别",
189
197
  1: "声迅智能识别",
190
198
  2: "海康智能识别",
191
199
  3: "讯飞智能识别"
192
- }, g = v(null), h = (R) => {
193
- c.value = R;
194
- const { items: _ } = i.imageList[R];
195
- d.value = _.map((p) => ({
196
- ...p,
197
- name: u[p.type]
200
+ }, _ = x(null), f = (y) => {
201
+ r.value = y;
202
+ const { items: d } = i.imageList[y];
203
+ u.value = d.map((v) => ({
204
+ ...v,
205
+ name: c[v.type]
198
206
  }));
199
207
  };
200
- let f = 0, r = 0;
201
- const x = () => {
202
- r !== i.imageList.length && (r++, f -= N, g.value.style.transform = `translateX(${f}px)`);
203
- }, A = () => {
204
- r !== 0 && (r--, f += N, g.value.style.transform = `translateX(${f}px)`);
208
+ let p = 0, h = 0;
209
+ const g = () => {
210
+ h !== i.imageList.length && (h++, p -= N, _.value.style.transform = `translateX(${p}px)`);
211
+ }, w = () => {
212
+ h !== 0 && (h--, p += N, _.value.style.transform = `translateX(${p}px)`);
205
213
  };
206
- return (R, _) => {
207
- const p = o("el-checkbox"), j = o("el-checkbox-group"), P = o("el-form-item"), E = o("el-form"), z = o("el-button");
208
- return n(), m(B, null, [
214
+ return (y, d) => {
215
+ const v = a("el-checkbox"), F = a("el-checkbox-group"), j = a("el-form-item"), E = a("el-form"), V = a("el-button");
216
+ return o(), m(A, null, [
209
217
  t(E, { ref: "form" }, {
210
- default: s(() => [
211
- t(P, { label: "智能结果展示" }, {
212
- default: s(() => [
213
- t(j, {
218
+ default: n(() => [
219
+ t(j, { label: "智能结果展示" }, {
220
+ default: n(() => [
221
+ t(F, {
214
222
  modelValue: l.value,
215
- "onUpdate:modelValue": _[0] || (_[0] = (b) => l.value = b),
223
+ "onUpdate:modelValue": d[0] || (d[0] = (C) => l.value = C),
216
224
  min: 1
217
225
  }, {
218
- default: s(() => [
219
- t(p, { label: 0 }, {
220
- default: s(() => _[1] || (_[1] = [
221
- y("融合智能识别")
226
+ default: n(() => [
227
+ t(v, { label: 0 }, {
228
+ default: n(() => d[1] || (d[1] = [
229
+ I("融合智能识别")
222
230
  ])),
223
231
  _: 1,
224
232
  __: [1]
225
233
  }),
226
- t(p, { label: 1 }, {
227
- default: s(() => _[2] || (_[2] = [
228
- y("声迅智能识别")
234
+ t(v, { label: 1 }, {
235
+ default: n(() => d[2] || (d[2] = [
236
+ I("声迅智能识别")
229
237
  ])),
230
238
  _: 1,
231
239
  __: [2]
232
240
  }),
233
- t(p, { label: 2 }, {
234
- default: s(() => _[3] || (_[3] = [
235
- y("海康智能识别")
241
+ t(v, { label: 2 }, {
242
+ default: n(() => d[3] || (d[3] = [
243
+ I("海康智能识别")
236
244
  ])),
237
245
  _: 1,
238
246
  __: [3]
239
247
  }),
240
- t(p, { label: 3 }, {
241
- default: s(() => _[4] || (_[4] = [
242
- y("讯飞智能识别")
248
+ t(v, { label: 3 }, {
249
+ default: n(() => d[4] || (d[4] = [
250
+ I("讯飞智能识别")
243
251
  ])),
244
252
  _: 1,
245
253
  __: [4]
@@ -253,50 +261,50 @@ const w = (e, i) => {
253
261
  ]),
254
262
  _: 1
255
263
  }, 512),
256
- a("div", ee, [
257
- t(z, {
264
+ s("div", te, [
265
+ t(V, {
258
266
  class: "arrow-button",
259
- icon: $(q),
267
+ icon: z(q),
260
268
  circle: "",
261
- onClick: x
269
+ onClick: g
262
270
  }, null, 8, ["icon"]),
263
- a("div", te, [
264
- a("div", {
265
- ref_key: "thumbNavRef",
266
- ref: g,
267
- class: "thumbnail-nav"
271
+ s("div", ne, [
272
+ s("div", {
273
+ ref_key: "navRef",
274
+ ref: _,
275
+ class: "nav"
268
276
  }, [
269
- (n(!0), m(B, null, V(e.imageList, (b, I) => (n(), m("div", {
270
- key: I,
271
- class: T(["thumbnail", { active: c.value === I }]),
272
- onClick: (ge) => h(I)
277
+ (o(!0), m(A, null, R(e.imageList, (C, b) => (o(), m("div", {
278
+ key: b,
279
+ class: T(["item", { active: r.value === b }]),
280
+ onClick: (fe) => f(b)
273
281
  }, [
274
- a("img", {
275
- src: b.items[0].url,
276
- alt: `缩略图 ${I + 1}`,
282
+ s("img", {
283
+ src: C.items[0].url,
284
+ alt: `缩略图 ${b + 1}`,
277
285
  style: { "object-fit": "contain" }
278
- }, null, 8, se),
279
- a("span", ne, C(u[b.items[0].type]), 1)
286
+ }, null, 8, oe),
287
+ s("span", se, L(c[C.items[0].type]), 1)
280
288
  ], 10, le))), 128))
281
289
  ], 512)
282
290
  ]),
283
- t(z, {
291
+ t(V, {
284
292
  class: "arrow-button",
285
- icon: $(O),
293
+ icon: z(O),
286
294
  circle: "",
287
- onClick: A
295
+ onClick: w
288
296
  }, null, 8, ["icon"])
289
297
  ]),
290
- a("div", ae, [
291
- t(F, {
292
- images: d.value,
298
+ s("div", ae, [
299
+ t(D, {
300
+ images: u.value,
293
301
  "type-list": l.value
294
302
  }, null, 8, ["images", "type-list"])
295
303
  ])
296
304
  ], 64);
297
305
  };
298
306
  }
299
- }, ie = /* @__PURE__ */ w(oe, [["__scopeId", "data-v-9ccb063a"]]), ce = { class: "info" }, re = { class: "info" }, me = {
307
+ }, ce = /* @__PURE__ */ k(ie, [["__scopeId", "data-v-6692b78c"]]), re = { class: "info" }, me = { class: "info" }, ue = {
300
308
  __name: "cImageList",
301
309
  props: {
302
310
  imageList: {
@@ -314,38 +322,56 @@ const w = (e, i) => {
314
322
  },
315
323
  emits: ["downFile", "showDetail"],
316
324
  setup(e, { emit: i }) {
317
- const l = i, d = (u) => {
318
- l("downFile", u);
319
- }, c = (u) => {
320
- l("showDetail", u);
325
+ const l = i, u = (c) => {
326
+ l("downFile", c);
327
+ }, r = (c) => {
328
+ l("showDetail", c);
321
329
  };
322
- return (u, g) => {
323
- const h = o("el-image"), f = o("el-button");
324
- return n(!0), m(B, null, V(e.imageList, (r, x) => (n(), m("div", {
325
- key: x,
330
+ return (c, _) => {
331
+ const f = a("el-image"), p = a("el-tooltip"), h = a("el-button");
332
+ return o(!0), m(A, null, R(e.imageList, (g, w) => (o(), m("div", {
333
+ key: w,
326
334
  class: "img-item",
327
- style: D({ width: 100 / e.countPerRow + "%" })
335
+ style: P({ width: 100 / e.countPerRow + "%" })
328
336
  }, [
329
- t(h, {
330
- src: r.srcList[0],
337
+ t(f, {
338
+ src: g.srcList[0],
331
339
  style: { height: "300px", width: "240px" },
332
340
  "zoom-rate": 1.2,
333
341
  "max-scale": 7,
334
342
  "min-scale": 0.2,
335
343
  "show-progress": "",
336
- "initial-index": x,
344
+ "initial-index": w,
337
345
  fit: "contain",
338
- onClick: (A) => c(r)
346
+ onClick: (y) => r(g)
339
347
  }, null, 8, ["src", "initial-index", "onClick"]),
340
- a("span", ce, C(r.time), 1),
341
- a("span", re, C(r.name), 1),
342
- t(f, {
348
+ t(p, {
349
+ effect: "light",
350
+ content: g.time,
351
+ placement: "top"
352
+ }, {
353
+ default: n(() => [
354
+ s("span", re, L(g.time), 1)
355
+ ]),
356
+ _: 2
357
+ }, 1032, ["content"]),
358
+ t(p, {
359
+ effect: "light",
360
+ content: g.name,
361
+ placement: "top"
362
+ }, {
363
+ default: n(() => [
364
+ s("span", me, L(g.name), 1)
365
+ ]),
366
+ _: 2
367
+ }, 1032, ["content"]),
368
+ t(h, {
343
369
  type: "primary",
344
370
  size: "small",
345
- onClick: (A) => d(r)
371
+ onClick: (y) => u(g)
346
372
  }, {
347
- default: s(() => g[0] || (g[0] = [
348
- y("下载")
373
+ default: n(() => _[0] || (_[0] = [
374
+ I("下载")
349
375
  ])),
350
376
  _: 2,
351
377
  __: [0]
@@ -353,7 +379,7 @@ const w = (e, i) => {
353
379
  ], 4))), 128);
354
380
  };
355
381
  }
356
- }, ue = /* @__PURE__ */ w(me, [["__scopeId", "data-v-c9a26924"]]), _e = {
382
+ }, _e = /* @__PURE__ */ k(ue, [["__scopeId", "data-v-76897c2d"]]), de = {
357
383
  __name: "cImageScroll",
358
384
  props: {
359
385
  imageList: {
@@ -363,32 +389,41 @@ const w = (e, i) => {
363
389
  scrollBg: {
364
390
  type: String,
365
391
  default: "#ffffff"
392
+ },
393
+ indicatorPosition: {
394
+ type: String,
395
+ default: "none"
366
396
  }
367
397
  },
368
- setup(e, { expose: i }) {
369
- const l = v(null);
370
- return i({ setActive: (c) => {
371
- l.value.setActiveItem(c);
372
- } }), (c, u) => {
373
- const g = o("CImageBox"), h = o("el-carousel-item"), f = o("el-carousel");
374
- return n(), m("div", {
398
+ emits: ["change"],
399
+ setup(e, { expose: i, emit: l }) {
400
+ const u = l, r = (f) => {
401
+ u("change", f);
402
+ }, c = x(null);
403
+ return i({ setActive: (f) => {
404
+ c.value.setActiveItem(f);
405
+ } }), (f, p) => {
406
+ const h = a("CImageBox"), g = a("el-carousel-item"), w = a("el-carousel");
407
+ return o(), m("div", {
375
408
  class: "c-image-scroll",
376
- style: D({ background: e.scrollBg })
409
+ style: P({ background: e.scrollBg })
377
410
  }, [
378
- t(f, {
411
+ t(w, {
379
412
  ref_key: "carouselRef",
380
- ref: l,
413
+ ref: c,
381
414
  arrow: "always",
382
415
  trigger: "click",
383
416
  autoplay: !1,
384
417
  height: "100%",
385
- style: { height: "100%" }
418
+ style: { height: "100%" },
419
+ "indicator-position": "indicatorPosition",
420
+ onChange: r
386
421
  }, {
387
- default: s(() => [
388
- (n(!0), m(B, null, V(e.imageList, (r) => (n(), k(h, { key: r }, {
389
- default: s(() => [
390
- t(g, {
391
- images: r.items
422
+ default: n(() => [
423
+ (o(!0), m(A, null, R(e.imageList, (y) => (o(), B(g, { key: y }, {
424
+ default: n(() => [
425
+ t(h, {
426
+ images: y.items
392
427
  }, null, 8, ["images"])
393
428
  ]),
394
429
  _: 2
@@ -399,11 +434,11 @@ const w = (e, i) => {
399
434
  ], 4);
400
435
  };
401
436
  }
402
- }, de = /* @__PURE__ */ w(_e, [["__scopeId", "data-v-7f12f7d7"]]), pe = {
437
+ }, ge = /* @__PURE__ */ k(de, [["__scopeId", "data-v-0b210d39"]]), he = {
403
438
  install(e) {
404
- e.component("CImage", ie).component("CImageBox", F).component("CImageList", ue).component("CImageScroll", de);
439
+ e.component("CImage", ce).component("CImageBox", D).component("CImageList", _e).component("CImageScroll", ge);
405
440
  }
406
441
  };
407
442
  export {
408
- pe as default
443
+ he as default
409
444
  };
@@ -1 +1 @@
1
- (function(e,_){typeof exports=="object"&&typeof module<"u"?module.exports=_(require("vue")):typeof define=="function"&&define.amd?define(["vue"],_):(e=typeof globalThis<"u"?globalThis:e||self,e.MyVueLibrary=_(e.Vue))})(this,function(e){"use strict";/*! Element Plus Icons Vue v2.3.2 */var _=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"})]))}}),u=_,b=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"})]))}}),L=b,I=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=I;const p=(t,n)=>{const o=t.__vccOpts||t;for(const[r,l]of n)o[r]=l;return o},E={class:"wrap"},$={class:"name"},S={class:"flex justify-center items-center h-full"},A={key:1,class:"flex justify-center items-center h-full"},g=p({__name:"cImageItem",props:{curImageIndex:{type:Number,default:0},fit:{type:String,default:"contain"},imgList:{type:Array,default:()=>[]},show:{type:Boolean,default:!0}},setup(t){const n={0:"融合智能识别",1:"声迅智能识别",2:"海康智能识别",3:"讯飞智能识别"};return(o,r)=>{const l=e.resolveComponent("el-icon"),c=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",$,e.toDisplayString(n[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(i=>i.url)},{error:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(e.unref(C))]),_:1})])]),_:1},8,["src","fit","preview-src-list"])):(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(e.unref(C))]),_:1})]))])}}},[["__scopeId","data-v-a887436b"]]),z={class:"image-box"},V=p({__name:"cImageBox",props:{images:{type:Array,default:()=>[]},typeList:{type:Array,default:()=>[0,1,2,3]}},setup(t){return(n,o)=>{const r=e.resolveComponent("el-col"),l=e.resolveComponent("el-row"),c=e.resolveComponent("el-empty");return e.openBlock(),e.createElementBlock("div",z,[t.images.length?(e.openBlock(),e.createBlock(l,{key:0,gutter:10,class:"content"},{default:e.withCtx(()=>[e.createVNode(r,{span:16,class:"left"},{default:e.withCtx(()=>[e.createVNode(g,{"img-list":t.images,"cur-image-index":0,show:t.typeList.includes(0)},null,8,["img-list","show"])]),_:1}),e.createVNode(r,{span:8,class:"right"},{default:e.withCtx(()=>[e.createVNode(g,{"img-list":t.images,"cur-image-index":1,show:t.typeList.includes(1),class:"item"},null,8,["img-list","show"]),e.createVNode(g,{"img-list":t.images,"cur-image-index":2,show:t.typeList.includes(2),class:"item"},null,8,["img-list","show"]),e.createVNode(g,{"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(c,{key:1},{description:e.withCtx(()=>o[0]||(o[0]=[e.createElementVNode("div",null,"点击列表图片查看",-1)])),_:1}))])}}},[["__scopeId","data-v-56596cda"]]),M={class:"thumbnail-container"},R={class:"thumbnails-wrapper"},T=["onClick"],D=["src","alt"],F={class:"thumbnail-title"},j={class:"image-container"},N=240,P=p({__name:"cImage",props:{imageList:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.ref([0,1,2,3]),r=e.ref([]),l=e.ref(-1),c={0:"融合智能识别",1:"声迅智能识别",2:"海康智能识别",3:"讯飞智能识别"},i=e.ref(null),f=k=>{l.value=k;const{items:s}=n.imageList[k];r.value=s.map(d=>({...d,name:c[d.type]}))};let m=0,a=0;const h=()=>{a!==n.imageList.length&&(a++,m-=N,i.value.style.transform=`translateX(${m}px)`)},y=()=>{a!==0&&(a--,m+=N,i.value.style.transform=`translateX(${m}px)`)};return(k,s)=>{const d=e.resolveComponent("el-checkbox"),U=e.resolveComponent("el-checkbox-group"),W=e.resolveComponent("el-form-item"),G=e.resolveComponent("el-form"),B=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(G,{ref:"form"},{default:e.withCtx(()=>[e.createVNode(W,{label:"智能结果展示"},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=w=>o.value=w),min:1},{default:e.withCtx(()=>[e.createVNode(d,{label:0},{default:e.withCtx(()=>s[1]||(s[1]=[e.createTextVNode("融合智能识别")])),_:1,__:[1]}),e.createVNode(d,{label:1},{default:e.withCtx(()=>s[2]||(s[2]=[e.createTextVNode("声迅智能识别")])),_:1,__:[2]}),e.createVNode(d,{label:2},{default:e.withCtx(()=>s[3]||(s[3]=[e.createTextVNode("海康智能识别")])),_:1,__:[3]}),e.createVNode(d,{label:3},{default:e.withCtx(()=>s[4]||(s[4]=[e.createTextVNode("讯飞智能识别")])),_:1,__:[4]})]),_:1},8,["modelValue"])]),_:1})]),_:1},512),e.createElementVNode("div",M,[e.createVNode(B,{class:"arrow-button",icon:e.unref(u),circle:"",onClick:h},null,8,["icon"]),e.createElementVNode("div",R,[e.createElementVNode("div",{ref_key:"thumbNavRef",ref:i,class:"thumbnail-nav"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,(w,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:e.normalizeClass(["thumbnail",{active:l.value===x}]),onClick:ee=>f(x)},[e.createElementVNode("img",{src:w.items[0].url,alt:`缩略图 ${x+1}`,style:{"object-fit":"contain"}},null,8,D),e.createElementVNode("span",F,e.toDisplayString(c[w.items[0].type]),1)],10,T))),128))],512)]),e.createVNode(B,{class:"arrow-button",icon:e.unref(L),circle:"",onClick:y},null,8,["icon"])]),e.createElementVNode("div",j,[e.createVNode(V,{images:r.value,"type-list":o.value},null,8,["images","type-list"])])],64)}}},[["__scopeId","data-v-9ccb063a"]]),q={class:"info"},X={class:"info"},H=p({__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,r=c=>{o("downFile",c)},l=c=>{o("showDetail",c)};return(c,i)=>{const f=e.resolveComponent("el-image"),m=e.resolveComponent("el-button");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,(a,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"img-item",style:e.normalizeStyle({width:100/t.countPerRow+"%"})},[e.createVNode(f,{src:a.srcList[0],style:{height:"300px",width:"240px"},"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"show-progress":"","initial-index":h,fit:"contain",onClick:y=>l(a)},null,8,["src","initial-index","onClick"]),e.createElementVNode("span",q,e.toDisplayString(a.time),1),e.createElementVNode("span",X,e.toDisplayString(a.name),1),e.createVNode(m,{type:"primary",size:"small",onClick:y=>r(a)},{default:e.withCtx(()=>i[0]||(i[0]=[e.createTextVNode("下载")])),_:2,__:[0]},1032,["onClick"])],4))),128)}}},[["__scopeId","data-v-c9a26924"]]),O=p({__name:"cImageScroll",props:{imageList:{type:Array,default:()=>[]},scrollBg:{type:String,default:"#ffffff"}},setup(t,{expose:n}){const o=e.ref(null);return n({setActive:l=>{o.value.setActiveItem(l)}}),(l,c)=>{const i=e.resolveComponent("CImageBox"),f=e.resolveComponent("el-carousel-item"),m=e.resolveComponent("el-carousel");return e.openBlock(),e.createElementBlock("div",{class:"c-image-scroll",style:e.normalizeStyle({background:t.scrollBg})},[e.createVNode(m,{ref_key:"carouselRef",ref:o,arrow:"always",trigger:"click",autoplay:!1,height:"100%",style:{height:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.imageList,a=>(e.openBlock(),e.createBlock(f,{key:a},{default:e.withCtx(()=>[e.createVNode(i,{images:a.items},null,8,["images"])]),_:2},1024))),128))]),_:1},512)],4)}}},[["__scopeId","data-v-7f12f7d7"]]);return{install(t){t.component("CImage",P).component("CImageBox",V).component("CImageList",H).component("CImageScroll",O)}}});
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)}}});
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.wrap[data-v-a887436b]{width:100%;height:100%;position:relative;border:1px solid #eee}.wrap .name[data-v-a887436b]{position:absolute;top:20px;left:20px;z-index:1;padding:5px;font-size:16px}.wrap .image-item[data-v-a887436b]{width:100%;height:100%}.image-box[data-v-56596cda]{width:100%;height:100%;position:relative;overflow-y:auto}.image-box .content[data-v-56596cda]{width:100%;height:100%}.image-box .content .left[data-v-56596cda],.image-box .content .right[data-v-56596cda]{height:100%;display:flex;flex-direction:column}.image-box .content .left .item[data-v-56596cda],.image-box .content .right .item[data-v-56596cda]{flex:1;overflow:hidden}.empty-state[data-v-56596cda]{padding:40px 0;text-align:center;color:#999;border:1px dashed #ddd;border-radius:8px;margin-top:15px}.image-container[data-v-9ccb063a]{height:100%;position:relative;overflow-y:auto}.thumbnail-container[data-v-9ccb063a]{width:100%;margin-top:10px;padding:5px 0;display:flex;align-items:center;gap:8px}.thumbnail-container .thumbnails-wrapper[data-v-9ccb063a]{flex:1;display:flex;overflow-x:auto}.thumbnail-container .thumbnails-wrapper .thumbnail-nav[data-v-9ccb063a]{display:flex;gap:10px}.thumbnail[data-v-9ccb063a]{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}.thumbnail.active[data-v-9ccb063a]{opacity:1;border:2px solid #2196f3}.thumbnail .thumbnail-title[data-v-9ccb063a]{position:absolute;right:5px;top:5px;font-size:12px;color:#666}.thumbnail img[data-v-9ccb063a]{width:100%;height:100%;object-fit:cover;display:block;text-align:center;line-height:9}.thumbnail-nav[data-v-9ccb063a]::-webkit-scrollbar{display:none}.thumbnail-nav[data-v-9ccb063a]{-ms-overflow-style:none;scrollbar-width:none}.thumbnail-nav[data-v-9ccb063a]:before,.thumbnail-nav[data-v-9ccb063a]:after{content:"";position:absolute;top:0;bottom:0;width:30px;pointer-events:none;z-index:1}.thumbnail-nav[data-v-9ccb063a]:before{left:0;background:linear-gradient(to right,#fff,transparent)}.thumbnail-nav[data-v-9ccb063a]:after{right:0;background:linear-gradient(to left,#fff,transparent)}.info-meta p[data-v-9ccb063a]{margin-bottom:10px;color:#666;font-size:14px;display:flex}.info-meta span[data-v-9ccb063a]{width:80px;color:#999}@keyframes fadeInUp-9ccb063a{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.thumbnail-container[data-v-9ccb063a]{height:100px}}.icon-plus[data-v-9ccb063a]:before{content:"+";font-weight:700}.img-item[data-v-c9a26924]{position:relative;display:flex;flex-direction:column;align-items:center}.img-item[data-v-c9a26924] .el-image{cursor:pointer}.img-item .info[data-v-c9a26924]{line-height:25px;font-size:14px}.img-item .big-img-wrap[data-v-c9a26924]{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080}.c-image-scroll[data-v-7f12f7d7]{width:100%;height:100%}
1
+ @charset "UTF-8";.wrap[data-v-567f63a7]{width:100%;height:100%;position:relative;border:1px solid #eee}.wrap .name[data-v-567f63a7]{position:absolute;top:20px;left:20px;z-index:1;padding:5px;font-size:16px}.wrap .image-item[data-v-567f63a7]{width:100%;height:100%}.wrap .preview-name[data-v-567f63a7]{position:absolute;top:20px;left:20px;z-index:1;padding:5px;font-size:16px}.image-box[data-v-28f92729]{width:100%;height:100%;position:relative;overflow-y:auto}.image-box .content[data-v-28f92729]{width:100%;height:100%;height:calc(100% - 5px)}.image-box .content .left[data-v-28f92729],.image-box .content .right[data-v-28f92729]{height:100%;display:flex;flex-direction:column}.image-box .content .left .item[data-v-28f92729],.image-box .content .right .item[data-v-28f92729]{flex:1;overflow:hidden}.empty-state[data-v-28f92729]{padding:40px 0;text-align:center;color:#999;border:1px dashed #ddd;border-radius:8px;margin-top:15px}.image-container[data-v-6692b78c]{height:100%;position:relative;overflow-y:auto}.container[data-v-6692b78c]{width:100%;margin-top:10px;padding:5px 0;display:flex;align-items:center;gap:8px}.container .wrapper[data-v-6692b78c]{flex:1;display:flex;overflow-x:auto}.container .wrapper .nav[data-v-6692b78c]{display:flex;gap:10px}.item[data-v-6692b78c]{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-6692b78c]{opacity:1;border:2px solid #2196f3}.item .title[data-v-6692b78c]{position:absolute;right:5px;top:5px;font-size:12px;color:#666}.item img[data-v-6692b78c]{width:100%;height:100%;object-fit:cover;display:block;text-align:center;line-height:9}.nav[data-v-6692b78c]::-webkit-scrollbar{display:none}.nav[data-v-6692b78c]{-ms-overflow-style:none;scrollbar-width:none}.nav[data-v-6692b78c]:before,.nav[data-v-6692b78c]:after{content:"";position:absolute;top:0;bottom:0;width:30px;pointer-events:none;z-index:1}.nav[data-v-6692b78c]:before{left:0;background:linear-gradient(to right,#fff,transparent)}.nav[data-v-6692b78c]:after{right:0;background:linear-gradient(to left,#fff,transparent)}.info-meta p[data-v-6692b78c]{margin-bottom:10px;color:#666;font-size:14px;display:flex}.info-meta span[data-v-6692b78c]{width:80px;color:#999}@keyframes fadeInUp-6692b78c{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.container[data-v-6692b78c]{height:100px}}.icon-plus[data-v-6692b78c]:before{content:"+";font-weight:700}.img-item[data-v-76897c2d]{position:relative;display:flex;flex-direction:column;align-items:center}.img-item[data-v-76897c2d] .el-image{cursor:pointer}.img-item .info[data-v-76897c2d]{width:240px;line-height:25px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.img-item .big-img-wrap[data-v-76897c2d]{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080}.c-image-scroll[data-v-0b210d39]{width:100%;height:100%}
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "c-image",
3
- "version": "1.0.0",
4
- "type": "module",
5
- "author": "",
6
- "license": "MIT",
7
- "description": "封装vue3组件库",
8
- "keywords": [
9
- "vue3",
10
- "封装组件库"
11
- ],
12
- "main": "lib/my-vue-library.es.js",
13
- "scripts": {
14
- "dev": "vite",
15
- "build": "vite build",
16
- "preview": "vite preview",
17
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
18
- "format": "prettier --write src/"
19
- },
20
- "dependencies": {
21
- "@element-plus/icons-vue": "^2.3.2",
22
- "element-plus": "^2.11.4",
23
- "pinia": "^2.1.7",
24
- "vue": "^3.4.29",
25
- "vue-router": "^4.3.3"
26
- },
27
- "devDependencies": {
28
- "@rushstack/eslint-patch": "^1.8.0",
29
- "@vitejs/plugin-vue": "^5.0.5",
30
- "@vitejs/plugin-vue-jsx": "^4.0.0",
31
- "@vue/eslint-config-prettier": "^9.0.0",
32
- "eslint": "^8.57.0",
33
- "eslint-plugin-vue": "^9.23.0",
34
- "prettier": "^3.2.5",
35
- "sass-embedded": "^1.97.0",
36
- "vite": "^5.3.1"
37
- }
1
+ {
2
+ "name": "c-image",
3
+ "version": "1.0.2",
4
+ "type": "module",
5
+ "author": "",
6
+ "license": "MIT",
7
+ "description": "封装vue3组件库",
8
+ "keywords": [
9
+ "vue3",
10
+ "封装组件库"
11
+ ],
12
+ "main": "lib/my-vue-library.es.js",
13
+ "scripts": {
14
+ "dev": "vite",
15
+ "build": "vite build",
16
+ "preview": "vite preview",
17
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
18
+ "format": "prettier --write src/"
19
+ },
20
+ "dependencies": {
21
+ "@element-plus/icons-vue": "^2.3.2",
22
+ "element-plus": "^2.11.4",
23
+ "pinia": "^2.1.7",
24
+ "vue": "^3.4.29",
25
+ "vue-router": "^4.3.3"
26
+ },
27
+ "devDependencies": {
28
+ "@rushstack/eslint-patch": "^1.8.0",
29
+ "@vitejs/plugin-vue": "^5.0.5",
30
+ "@vitejs/plugin-vue-jsx": "^4.0.0",
31
+ "@vue/eslint-config-prettier": "^9.0.0",
32
+ "eslint": "^8.57.0",
33
+ "eslint-plugin-vue": "^9.23.0",
34
+ "prettier": "^3.2.5",
35
+ "sass-embedded": "^1.97.0",
36
+ "vite": "^5.3.1"
37
+ }
38
38
  }