ling-yun-custom-components 0.0.48 → 0.0.50

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/AppIntro.mjs CHANGED
@@ -1,10 +1,11 @@
1
- import { w as $ } from "./chunks/index.bCzIhWFw.js";
2
- import { createElementBlock as i, createCommentVNode as f, unref as l, openBlock as o, createElementVNode as d, ref as g, renderSlot as C, createVNode as m, Fragment as N, renderList as _, withCtx as u, createBlock as v, createTextVNode as L, toDisplayString as h, onMounted as G, computed as R } from "vue";
3
- import { ElIcon as M, ElForm as A, ElFormItem as b, ElLink as x, ElTimeline as j, ElTimelineItem as P, ElCard as q, ElTag as B, ElSegmented as z } from "element-plus";
1
+ import { w as V } from "./chunks/index.bCzIhWFw.js";
2
+ import { createElementBlock as i, createCommentVNode as f, unref as o, openBlock as l, createElementVNode as d, ref as g, renderSlot as S, createVNode as c, Fragment as v, renderList as _, withCtx as p, createBlock as N, createTextVNode as L, toDisplayString as h, onMounted as $, computed as G } from "vue";
3
+ import { ElIcon as R, ElForm as M, ElFormItem as A, ElLink as C, ElTimeline as j, ElTimelineItem as P, ElCard as q, ElTag as B, ElSegmented as z } from "element-plus";
4
4
  import { IconLook as U } from "color-message-lingyun-vue";
5
5
  import { C as J } from "./chunks/layout.DXw3haOP.js";
6
- import { _ as V } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
7
- import { pageParams as H } from "ling-yun-methods";
6
+ import { C as H } from "./chunks/layout.BKJPyxR8.js";
7
+ import { _ as x } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import { pageParams as K } from "ling-yun-methods";
8
9
  import './assets/AppIntro.css';const t = {
9
10
  LISTING: 1,
10
11
  // 上架申请
@@ -21,7 +22,7 @@ import './assets/AppIntro.css';const t = {
21
22
  // 已通过
22
23
  REJECTED: 2
23
24
  // 已驳回
24
- }, O = {
25
+ }, b = {
25
26
  IMAGE: 1,
26
27
  // 图片
27
28
  VIDEO: 2
@@ -31,7 +32,7 @@ import './assets/AppIntro.css';const t = {
31
32
  // 应用介绍
32
33
  TIMELINE: "timeline"
33
34
  // 迭代时间轴
34
- }, K = {
35
+ }, Q = {
35
36
  [t.LISTING]: "上架申请",
36
37
  [t.DELISTING]: "下架申请",
37
38
  [t.ONLINE]: "上线应用",
@@ -49,7 +50,7 @@ import './assets/AppIntro.css';const t = {
49
50
  type: "danger",
50
51
  text: "已驳回"
51
52
  }
52
- }, Q = [
53
+ }, W = [
53
54
  { title: "申请人:", field: "appCreatorName" },
54
55
  { title: "应用省份:", field: "appCreatorOrg" },
55
56
  { title: "应用说明:", field: "appDesc" },
@@ -57,7 +58,7 @@ import './assets/AppIntro.css';const t = {
57
58
  { title: "业务背景:", field: "businessBackground" },
58
59
  { title: "业务目标:", field: "businessTarget" },
59
60
  { title: "成效数据:", field: "resultData" }
60
- ], W = [
61
+ ], X = [
61
62
  {
62
63
  title: "申请人",
63
64
  field: "creatorName",
@@ -104,20 +105,20 @@ import './assets/AppIntro.css';const t = {
104
105
  field: "offlineReason",
105
106
  showForTypes: [t.OFFLINE]
106
107
  }
107
- ], F = {
108
+ ], O = {
108
109
  [t.LISTING]: {
109
110
  text: "查看上架申请"
110
111
  },
111
112
  [t.DELISTING]: {
112
113
  text: "查看下架申请"
113
114
  }
114
- }, X = {
115
+ }, Y = {
115
116
  key: 0,
116
117
  class: "media-video relative w-full"
117
- }, Y = ["src"], Z = {
118
+ }, Z = ["src"], ee = {
118
119
  key: 1,
119
120
  class: "media-image relative w-full"
120
- }, ee = ["src"], S = {
121
+ }, te = ["src"], F = {
121
122
  __name: "MediaViewer",
122
123
  props: {
123
124
  media: {
@@ -126,24 +127,24 @@ import './assets/AppIntro.css';const t = {
126
127
  }
127
128
  },
128
129
  setup(a) {
129
- return (c, y) => a.media?.type === l(O).VIDEO ? (o(), i("div", X, [
130
+ return (u, y) => a.media?.type === o(b).VIDEO ? (l(), i("div", Y, [
130
131
  d("video", {
131
132
  class: "w-full",
132
133
  src: a.media.url,
133
134
  controls: ""
134
- }, null, 8, Y)
135
- ])) : a.media?.type === l(O).IMAGE ? (o(), i("div", Z, [
135
+ }, null, 8, Z)
136
+ ])) : a.media?.type === o(b).IMAGE ? (l(), i("div", ee, [
136
137
  d("img", {
137
138
  class: "w-full",
138
139
  src: a.media.url,
139
140
  alt: ""
140
- }, null, 8, ee)
141
+ }, null, 8, te)
141
142
  ])) : f("", !0);
142
143
  }
143
- }, te = { class: "app-intro-content overflow-hidden h-full" }, ae = {
144
+ }, ae = { class: "app-intro-content overflow-hidden h-full" }, le = {
144
145
  key: 0,
145
146
  class: "media-section w-full pd-b-12"
146
- }, le = { class: "media-content relative w-full" }, oe = ["onClick"], ne = { class: "info-section" }, se = { class: "flex items-center" }, ie = { class: "fz-14 text-666 pd-r-12" }, re = { class: "preview-content" }, de = {
147
+ }, oe = { class: "media-content relative w-full" }, ne = ["onClick"], se = { class: "info-section" }, ie = { class: "flex items-center" }, re = { class: "fz-14 text-666 pd-r-12" }, de = { class: "preview-content" }, ue = {
147
148
  __name: "AppIntroContent",
148
149
  props: {
149
150
  introData: {
@@ -152,10 +153,10 @@ import './assets/AppIntro.css';const t = {
152
153
  }
153
154
  },
154
155
  setup(a) {
155
- const c = g(!1), y = g(null), I = (r) => {
156
- y.value = r, c.value = !0;
156
+ const u = g(!1), y = g(null), I = (r) => {
157
+ y.value = r, u.value = !0;
157
158
  }, E = () => {
158
- c.value = !1, y.value = null;
159
+ u.value = !1, y.value = null;
159
160
  }, T = (r) => {
160
161
  try {
161
162
  const e = document.createElement("a");
@@ -164,82 +165,80 @@ import './assets/AppIntro.css';const t = {
164
165
  console.error(e);
165
166
  }
166
167
  };
167
- return (r, e) => (o(), i("div", te, [
168
- a.introData?.pics?.length > 0 ? (o(), i("div", ae, [
169
- d("div", le, [
170
- (o(!0), i(N, null, _(a.introData.pics, (n, s) => (o(), i("div", {
168
+ return (r, e) => (l(), i("div", ae, [
169
+ a.introData?.pics?.length > 0 ? (l(), i("div", le, [
170
+ d("div", oe, [
171
+ (l(!0), i(v, null, _(a.introData.pics, (n, s) => (l(), i("div", {
171
172
  key: s,
172
173
  class: "media-item w-full"
173
174
  }, [
174
- m(S, { media: n }, null, 8, ["media"]),
175
+ c(F, { media: n }, null, 8, ["media"]),
175
176
  d("div", {
176
177
  class: "hover-overlay absolute top-0 left-0 w-full h-full flex justify-center items-center",
177
- onClick: (p) => I(n)
178
+ onClick: (m) => I(n)
178
179
  }, [
179
- m(l(M), {
180
+ c(o(R), {
180
181
  size: 24,
181
182
  class: "view-icon"
182
183
  }, {
183
- default: u(() => [
184
- m(l(U))
184
+ default: p(() => [
185
+ c(o(U))
185
186
  ]),
186
187
  _: 1
187
188
  })
188
- ], 8, oe)
189
+ ], 8, ne)
189
190
  ]))), 128))
190
191
  ])
191
192
  ])) : f("", !0),
192
- C(r.$slots, "default", {}, void 0, !0),
193
- d("div", ne, [
194
- m(l(A), {
193
+ S(r.$slots, "default", {}, void 0, !0),
194
+ d("div", se, [
195
+ c(o(M), {
195
196
  model: a.introData,
196
197
  "label-width": "auto"
197
198
  }, {
198
- default: u(() => [
199
- ["agent", "workflow"].includes(a.introData?.appCategory) ? (o(!0), i(N, { key: 0 }, _(l(Q), (n) => (o(), v(l(b), {
199
+ default: p(() => [
200
+ ["agent", "workflow"].includes(a.introData?.appCategory) ? (l(!0), i(v, { key: 0 }, _(o(W), (n) => (l(), N(o(A), {
200
201
  key: n.field,
201
202
  label: n.title,
202
203
  class: "mg-b-0"
203
204
  }, {
204
- default: u(() => [
205
+ default: p(() => [
205
206
  L(h(a.introData?.[n.field] ?? "--"), 1)
206
207
  ]),
207
208
  _: 2
208
- }, 1032, ["label"]))), 128)) : f("", !0),
209
- a.introData?.attachements?.length ? (o(), v(l(b), {
210
- key: 1,
211
- label: "附件:"
212
- }, {
213
- default: u(() => [
214
- (o(!0), i(N, null, _(a.introData.attachements, (n, s) => (o(), i("div", {
215
- key: s,
216
- class: "mg-b-8"
217
- }, [
218
- d("div", se, [
219
- d("span", ie, h(n.attachementName), 1),
220
- n.attachementUrl ? (o(), v(l(x), {
221
- key: 0,
222
- type: "primary",
223
- underline: !1,
224
- onClick: (p) => T(n)
225
- }, {
226
- default: u(() => [...e[1] || (e[1] = [
227
- L(" 点击查看 ", -1)
228
- ])]),
229
- _: 1
230
- }, 8, ["onClick"])) : f("", !0)
231
- ])
232
- ]))), 128))
233
- ]),
234
- _: 1
235
- })) : f("", !0)
209
+ }, 1032, ["label"]))), 128)) : f("", !0)
236
210
  ]),
237
211
  _: 1
238
- }, 8, ["model"])
212
+ }, 8, ["model"]),
213
+ a.introData?.attachements?.length ? (l(), i(v, { key: 0 }, [
214
+ c(H, {
215
+ content: "附件:",
216
+ class: "pd-b-12 pd-t-24"
217
+ }),
218
+ (l(!0), i(v, null, _(a.introData.attachements, (n, s) => (l(), i("div", {
219
+ key: s,
220
+ class: "mg-b-8"
221
+ }, [
222
+ d("div", ie, [
223
+ d("span", re, h(n.attachementName), 1),
224
+ n.attachementUrl ? (l(), N(o(C), {
225
+ key: 0,
226
+ type: "primary",
227
+ underline: !1,
228
+ onClick: (m) => T(n)
229
+ }, {
230
+ default: p(() => [...e[1] || (e[1] = [
231
+ L(" 点击查看 ", -1)
232
+ ])]),
233
+ _: 1
234
+ }, 8, ["onClick"])) : f("", !0)
235
+ ])
236
+ ]))), 128))
237
+ ], 64)) : f("", !0)
239
238
  ]),
240
- m(J, {
241
- modelValue: c.value,
242
- "onUpdate:modelValue": e[0] || (e[0] = (n) => c.value = n),
239
+ c(J, {
240
+ modelValue: u.value,
241
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => u.value = n),
243
242
  width: "60%",
244
243
  "show-close": !0,
245
244
  onClose: E,
@@ -248,9 +247,9 @@ import './assets/AppIntro.css';const t = {
248
247
  showConfirm: !1
249
248
  }
250
249
  }, {
251
- default: u(() => [
252
- d("div", re, [
253
- m(S, {
250
+ default: p(() => [
251
+ d("div", de, [
252
+ c(F, {
254
253
  media: y.value,
255
254
  class: "preview-media"
256
255
  }, null, 8, ["media"])
@@ -260,13 +259,13 @@ import './assets/AppIntro.css';const t = {
260
259
  }, 8, ["modelValue"])
261
260
  ]));
262
261
  }
263
- }, ue = /* @__PURE__ */ V(de, [["__scopeId", "data-v-ad2699ac"]]), ce = { class: "flex items-center flex-gap-row-nowrap-8 mg-b-12" }, pe = {
262
+ }, ce = /* @__PURE__ */ x(ue, [["__scopeId", "data-v-f5af90d9"]]), pe = { class: "flex items-center flex-gap-row-nowrap-8 mg-b-12" }, me = {
264
263
  class: "fz-14 weight-500",
265
264
  style: { color: "#1d2129" }
266
- }, me = {
265
+ }, fe = {
267
266
  class: "fz-14",
268
267
  style: { color: "#4e5969" }
269
- }, fe = {
268
+ }, ye = {
270
269
  __name: "AppTimeline",
271
270
  props: {
272
271
  appId: {
@@ -288,8 +287,8 @@ import './assets/AppIntro.css';const t = {
288
287
  }
289
288
  },
290
289
  setup(a) {
291
- const c = a, y = async (e) => {
292
- c.vueRouter.push({
290
+ const u = a, y = async (e) => {
291
+ u.vueRouter.push({
293
292
  path: "/promptTestDetail",
294
293
  query: {
295
294
  id: e.id,
@@ -299,63 +298,63 @@ import './assets/AppIntro.css';const t = {
299
298
  sourceHistory: "1"
300
299
  }
301
300
  });
302
- }, I = (e) => [t.LISTING, t.DELISTING].includes(e), E = (e) => W.filter((n) => n.showForTypes.includes(e)), T = g([]), r = async () => {
303
- await c.appOperationList({
304
- appId: c.appId,
301
+ }, I = (e) => [t.LISTING, t.DELISTING].includes(e), E = (e) => X.filter((n) => n.showForTypes.includes(e)), T = g([]), r = async () => {
302
+ await u.appOperationList({
303
+ appId: u.appId,
305
304
  operationType: [
306
305
  t.LISTING,
307
306
  t.DELISTING,
308
307
  t.ONLINE,
309
308
  t.OFFLINE
310
309
  ].join(","),
311
- pageNum: H.pageNum,
310
+ pageNum: K.pageNum,
312
311
  pageSize: 1e6
313
312
  }).then(({ data: e }) => {
314
313
  T.value = e.list;
315
314
  });
316
315
  };
317
- return G(() => {
316
+ return $(() => {
318
317
  r();
319
- }), (e, n) => (o(), v(l(j), { class: "overflow-y-auto h-full pd-l-4" }, {
320
- default: u(() => [
321
- (o(!0), i(N, null, _(T.value, (s) => (o(), v(l(P), {
318
+ }), (e, n) => (l(), N(o(j), { class: "overflow-y-auto h-full pd-l-4" }, {
319
+ default: p(() => [
320
+ (l(!0), i(v, null, _(T.value, (s) => (l(), N(o(P), {
322
321
  key: s.id,
323
322
  timestamp: s.createTime,
324
323
  placement: "top",
325
324
  color: "var(--primary-color-1)"
326
325
  }, {
327
- default: u(() => [
328
- m(l(q), { shadow: "hover" }, {
329
- default: u(() => [
330
- d("div", ce, [
331
- d("span", pe, h(l(K)[s.operationType] || "--"), 1),
332
- I(s.operationType) ? (o(), i(N, { key: 0 }, [
333
- l(D)[s.auditStatus] ? (o(), v(l(B), {
326
+ default: p(() => [
327
+ c(o(q), { shadow: "hover" }, {
328
+ default: p(() => [
329
+ d("div", pe, [
330
+ d("span", me, h(o(Q)[s.operationType] || "--"), 1),
331
+ I(s.operationType) ? (l(), i(v, { key: 0 }, [
332
+ o(D)[s.auditStatus] ? (l(), N(o(B), {
334
333
  key: 0,
335
- type: l(D)[s.auditStatus].type
334
+ type: o(D)[s.auditStatus].type
336
335
  }, {
337
- default: u(() => [
338
- L(h(l(D)[s.auditStatus].text), 1)
336
+ default: p(() => [
337
+ L(h(o(D)[s.auditStatus].text), 1)
339
338
  ]),
340
339
  _: 2
341
340
  }, 1032, ["type"])) : f("", !0)
342
341
  ], 64)) : f("", !0)
343
342
  ]),
344
- d("div", me, [
345
- (o(!0), i(N, null, _(E(s.operationType), (p) => (o(), i("div", {
346
- key: p.field + p.title,
343
+ d("div", fe, [
344
+ (l(!0), i(v, null, _(E(s.operationType), (m) => (l(), i("div", {
345
+ key: m.field + m.title,
347
346
  class: "mg-t-8 mg-b-8",
348
347
  style: { "line-height": "1.5" }
349
- }, h(p.title) + ":" + h(p.formatter ? p.formatter(s[p.field]) : s[p.field] ?? "--"), 1))), 128)),
350
- l(F)[s.operationType] && !a.square ? (o(), v(l(x), {
348
+ }, h(m.title) + ":" + h(m.formatter ? m.formatter(s[m.field]) : s[m.field] ?? "--"), 1))), 128)),
349
+ o(O)[s.operationType] && !a.square ? (l(), N(o(C), {
351
350
  key: 0,
352
351
  type: "primary",
353
352
  underline: !1,
354
353
  class: "mg-t-8",
355
- onClick: (p) => y(s)
354
+ onClick: (m) => y(s)
356
355
  }, {
357
- default: u(() => [
358
- L(h(l(F)[s.operationType].text), 1)
356
+ default: p(() => [
357
+ L(h(o(O)[s.operationType].text), 1)
359
358
  ]),
360
359
  _: 2
361
360
  }, 1032, ["onClick"])) : f("", !0)
@@ -370,13 +369,13 @@ import './assets/AppIntro.css';const t = {
370
369
  _: 1
371
370
  }));
372
371
  }
373
- }, ye = /* @__PURE__ */ V(fe, [["__scopeId", "data-v-3a2170d7"]]), Ie = { class: "h-full overflow-hidden flex flex-col pd-t-12" }, he = { class: "pd-b-12" }, ve = {
372
+ }, Ie = /* @__PURE__ */ x(ye, [["__scopeId", "data-v-3a2170d7"]]), he = { class: "h-full overflow-hidden flex flex-col pd-t-12" }, ve = { class: "pd-b-12" }, Te = {
374
373
  key: 0,
375
374
  class: "flex-1 overflow-hidden"
376
- }, Te = {
375
+ }, Ne = {
377
376
  key: 1,
378
377
  class: "flex-1 overflow-hidden"
379
- }, Ne = /* @__PURE__ */ Object.assign({
378
+ }, Ee = /* @__PURE__ */ Object.assign({
380
379
  name: "AppIntro"
381
380
  }, {
382
381
  __name: "layout",
@@ -405,31 +404,31 @@ import './assets/AppIntro.css';const t = {
405
404
  }
406
405
  },
407
406
  emits: ["tab-change"],
408
- setup(a, { emit: c }) {
409
- const y = c, I = g(w.INTRO), E = R(() => [
407
+ setup(a, { emit: u }) {
408
+ const y = u, I = g(w.INTRO), E = G(() => [
410
409
  { label: "应用介绍", value: w.INTRO },
411
410
  { label: "迭代时间轴", value: w.TIMELINE }
412
411
  ]), T = (r) => {
413
412
  y("tab-change", r);
414
413
  };
415
- return (r, e) => (o(), i("div", Ie, [
416
- d("div", he, [
417
- m(l(z), {
414
+ return (r, e) => (l(), i("div", he, [
415
+ d("div", ve, [
416
+ c(o(z), {
418
417
  modelValue: I.value,
419
418
  "onUpdate:modelValue": e[0] || (e[0] = (n) => I.value = n),
420
419
  options: E.value,
421
420
  onChange: T
422
421
  }, null, 8, ["modelValue", "options"])
423
422
  ]),
424
- I.value === l(w).INTRO ? (o(), i("div", ve, [
425
- m(ue, { "intro-data": a.introData }, {
426
- default: u(() => [
427
- C(r.$slots, "plugin-detail")
423
+ I.value === o(w).INTRO ? (l(), i("div", Te, [
424
+ c(ce, { "intro-data": a.introData }, {
425
+ default: p(() => [
426
+ S(r.$slots, "plugin-detail")
428
427
  ]),
429
428
  _: 3
430
429
  }, 8, ["intro-data"])
431
- ])) : I.value === l(w).TIMELINE ? (o(), i("div", Te, [
432
- m(ye, {
430
+ ])) : I.value === o(w).TIMELINE ? (l(), i("div", Ne, [
431
+ c(Ie, {
433
432
  "app-operation-list": a.appOperationList,
434
433
  square: a.square,
435
434
  "vue-router": a.vueRouter,
@@ -438,8 +437,8 @@ import './assets/AppIntro.css';const t = {
438
437
  ])) : f("", !0)
439
438
  ]));
440
439
  }
441
- }), be = $(Ne);
440
+ }), Fe = V(Ee);
442
441
  export {
443
- be as AppIntro,
444
- be as default
442
+ Fe as AppIntro,
443
+ Fe as default
445
444
  };
@@ -9,7 +9,7 @@ const a = {
9
9
  try {
10
10
  switch (e) {
11
11
  case a.lingyun:
12
- const { icons: o } = await import("./chunks/global.0D1G5ksU.js");
12
+ const { icons: o } = await import("./chunks/global.I2gdJ_EN.js");
13
13
  return o[n] || null;
14
14
  case a.aibox:
15
15
  const { icons: t } = await import("./chunks/global.C0RGZP_4.js");
package/es/IconSelect.mjs CHANGED
@@ -2,7 +2,7 @@ import { w as S } from "./chunks/index.bCzIhWFw.js";
2
2
  import { ref as p, computed as v, watch as N, createBlock as c, openBlock as o, unref as n, withCtx as i, createElementVNode as x, createVNode as r, createElementBlock as u, createCommentVNode as E, Fragment as I, renderList as L, normalizeClass as h, resolveDynamicComponent as V, createTextVNode as j } from "vue";
3
3
  import { ElPopover as B, ElInput as O, ElIcon as y } from "element-plus";
4
4
  import { IconSearch as T, IconAdd as U } from "color-message-lingyun-vue";
5
- import { icons as g } from "./chunks/global.0D1G5ksU.js";
5
+ import { icons as g } from "./chunks/global.I2gdJ_EN.js";
6
6
  import { I as A } from "./chunks/layout.DBgjqaxe.js";
7
7
  import { _ as D } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
8
  import './assets/IconSelect.css';const F = { class: "icon-select-content flex flex-col overflow-hidden" }, P = { class: "icon-select-grid overflow-y-auto display-grid" }, $ = ["title", "onClick"], q = {