ling-yun-custom-components 0.0.54 → 0.0.56

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
@@ -5,7 +5,7 @@ import { IconLook as J } from "color-message-lingyun-vue";
5
5
  import { C as H } from "./chunks/layout.DXw3haOP.js";
6
6
  import { C as K } from "./chunks/layout.BKJPyxR8.js";
7
7
  import { _ as V } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
- import { pageParams as Q, emitsMap as b } from "ling-yun-methods";
8
+ import { pageParams as Q, emitsMap as D } from "ling-yun-methods";
9
9
  import './assets/AppIntro.css';const t = {
10
10
  LISTING: 1,
11
11
  // 上架申请
@@ -15,7 +15,7 @@ import './assets/AppIntro.css';const t = {
15
15
  // 上线应用
16
16
  OFFLINE: 4
17
17
  // 下线应用
18
- }, k = {
18
+ }, b = {
19
19
  PENDING: 0,
20
20
  // 待审核
21
21
  APPROVED: 1,
@@ -37,16 +37,16 @@ import './assets/AppIntro.css';const t = {
37
37
  [t.DELISTING]: "下架申请",
38
38
  [t.ONLINE]: "上线应用",
39
39
  [t.OFFLINE]: "下线应用"
40
- }, D = {
41
- [k.PENDING]: {
40
+ }, k = {
41
+ [b.PENDING]: {
42
42
  type: "warning",
43
43
  text: "待审核"
44
44
  },
45
- [k.APPROVED]: {
45
+ [b.APPROVED]: {
46
46
  type: "primary",
47
47
  text: "已通过"
48
48
  },
49
- [k.REJECTED]: {
49
+ [b.REJECTED]: {
50
50
  type: "danger",
51
51
  text: "已驳回"
52
52
  }
@@ -259,7 +259,7 @@ import './assets/AppIntro.css';const t = {
259
259
  }, 8, ["modelValue"])
260
260
  ]));
261
261
  }
262
- }, pe = /* @__PURE__ */ V(ce, [["__scopeId", "data-v-f5af90d9"]]), me = { class: "flex items-center flex-gap-row-nowrap-8 mg-b-12" }, fe = {
262
+ }, pe = /* @__PURE__ */ V(ce, [["__scopeId", "data-v-7bb24f99"]]), me = { class: "flex items-center flex-gap-row-nowrap-8 mg-b-12" }, fe = {
263
263
  class: "fz-14 weight-500",
264
264
  style: { color: "#1d2129" }
265
265
  }, ye = {
@@ -329,12 +329,12 @@ import './assets/AppIntro.css';const t = {
329
329
  d("div", me, [
330
330
  d("span", fe, h(o(W)[s.operationType] || "--"), 1),
331
331
  I(s.operationType) ? (l(), i(v, { key: 0 }, [
332
- o(D)[s.auditStatus] ? (l(), N(o(z), {
332
+ o(k)[s.auditStatus] ? (l(), N(o(z), {
333
333
  key: 0,
334
- type: o(D)[s.auditStatus].type
334
+ type: o(k)[s.auditStatus].type
335
335
  }, {
336
336
  default: p(() => [
337
- L(h(o(D)[s.auditStatus].text), 1)
337
+ L(h(o(k)[s.auditStatus].text), 1)
338
338
  ]),
339
339
  _: 2
340
340
  }, 1032, ["type"])) : f("", !0)
@@ -403,13 +403,13 @@ import './assets/AppIntro.css';const t = {
403
403
  }
404
404
  }
405
405
  },
406
- emits: [b.tabChange],
406
+ emits: [D.tabChange],
407
407
  setup(a, { emit: u }) {
408
408
  const y = u, I = g(w.INTRO), E = R(() => [
409
409
  { label: "应用介绍", value: w.INTRO },
410
410
  { label: "迭代时间轴", value: w.TIMELINE }
411
411
  ]), T = (r) => {
412
- y(b.tabChange, r);
412
+ y(D.tabChange, r);
413
413
  };
414
414
  return (r, e) => (l(), i("div", ve, [
415
415
  d("div", Te, [
@@ -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.BN3x8LRV.js");
12
+ const { icons: o } = await import("./chunks/global.C1Iy_saH.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 N } from "./chunks/index.bCzIhWFw.js";
2
2
  import { ref as p, computed as v, watch as E, createBlock as c, openBlock as o, unref as n, withCtx as i, createElementVNode as x, createVNode as r, createElementBlock as u, createCommentVNode as L, Fragment as b, renderList as j, normalizeClass as h, resolveDynamicComponent as V, createTextVNode as B } from "vue";
3
3
  import { ElPopover as M, 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.BN3x8LRV.js";
5
+ import { icons as g } from "./chunks/global.C1Iy_saH.js";
6
6
  import { I as A } from "./chunks/layout.DBgjqaxe.js";
7
7
  import { emitsMap as k } from "ling-yun-methods";
8
8
  import { _ as D } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
@@ -1,27 +1,28 @@
1
1
  import { w as Be } from "./chunks/index.bCzIhWFw.js";
2
- import { useSlots as Ee, computed as m, ref as h, watch as oe, onMounted as Ne, nextTick as Re, createElementBlock as E, openBlock as y, createElementVNode as S, createCommentVNode as N, unref as v, renderSlot as D, Fragment as ze, createBlock as re, withCtx as I, createTextVNode as de, toDisplayString as Pe, createVNode as U, createSlots as Ae, renderList as We, normalizeProps as Oe, guardReactiveProps as _e, h as J } from "vue";
3
- import { ElButton as ce, ElAutoResizer as De, ElTableV2 as Ie, ElCheckbox as je } from "element-plus";
2
+ import { useSlots as Ee, computed as m, ref as h, watch as oe, onMounted as Re, nextTick as ze, createElementBlock as E, openBlock as y, createElementVNode as S, createCommentVNode as R, unref as v, renderSlot as I, Fragment as Ne, createBlock as re, withCtx as j, createTextVNode as de, toDisplayString as Pe, createVNode as U, createSlots as Ae, renderList as We, normalizeProps as De, guardReactiveProps as _e, h as H } from "vue";
3
+ import { ElButton as ce, ElAutoResizer as Ie, ElTableV2 as je, ElCheckbox as Oe } from "element-plus";
4
4
  import { emitsMap as fe, paginationConfig as qe } from "ling-yun-methods";
5
5
  import { calculateScale as Ke } from "color-star-custom-methods";
6
6
  import { _ as Fe } from "./chunks/layout.BzQrppiO.js";
7
- import { _ as Ve } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
- import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col" }, Le = {
7
+ import { cloneDeep as Ve } from "lodash";
8
+ import { _ as $e } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import './assets/PaginationTable.css';const Le = { class: "flex h-full flex-col" }, Me = {
9
10
  class: "w-full flex justify-between overflow-hidden",
10
11
  style: { height: "auto" }
11
- }, Me = {
12
+ }, Ue = {
12
13
  key: 0,
13
14
  class: "flex-1 overflow-hidden"
14
- }, Ue = {
15
+ }, He = {
15
16
  class: "flex",
16
17
  style: { width: "auto", gap: "10px" }
17
- }, Je = {
18
+ }, Ge = {
18
19
  key: 1,
19
20
  class: "flex items-center mg-b-18"
20
- }, He = { class: "fz-12 text-74798c" }, Ge = { class: "btn-group mg-l-12" }, Qe = { class: "w-full flex-1 overflow-hidden flex flex-col" }, Xe = { class: "flex-1 overflow-hidden TABLE-AREA" }, Ye = {
21
+ }, Je = { class: "fz-12 text-74798c" }, Qe = { class: "btn-group mg-l-12" }, Xe = { class: "w-full flex-1 overflow-hidden flex flex-col" }, Ye = { class: "flex-1 overflow-hidden TABLE-AREA" }, Ze = {
21
22
  key: 0,
22
23
  class: "flex justify-end mg-t-20",
23
24
  style: { height: "auto" }
24
- }, Ze = /* @__PURE__ */ Object.assign({
25
+ }, et = /* @__PURE__ */ Object.assign({
25
26
  name: "PaginationTable"
26
27
  }, {
27
28
  __name: "layout",
@@ -103,24 +104,24 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
103
104
  "updateSortState"
104
105
  ],
105
106
  setup(p, { expose: he, emit: ve }) {
106
- const x = ve, u = p, j = Ee(), R = m(() => typeof u.requestFn == "function"), d = m({
107
- get: () => R.value ? b.value : u.tableData,
107
+ const x = ve, u = p, O = Ee(), z = m(() => typeof u.requestFn == "function"), d = m({
108
+ get: () => z.value ? b.value : u.tableData,
108
109
  set: (e) => {
109
- R.value ? b.value = e : x("updateTableData", e);
110
+ z.value ? b.value = e : x("updateTableData", e);
110
111
  }
111
- }), q = h(0), H = m(() => R.value ? q.value : u.total), w = m({
112
+ }), q = h(0), G = m(() => z.value ? q.value : u.total), w = m({
112
113
  get: () => u.sortState,
113
114
  set: (e) => {
114
115
  x("updateSortState", e);
115
116
  }
116
117
  }), pe = ({ key: e, order: t }) => {
117
118
  w.value[e] = t, d.value = d.value.reverse();
118
- }, b = h([]), f = m(() => u.pageMapping.pageNum), z = m(() => u.pageMapping.pageSize), K = {
119
+ }, b = h([]), f = m(() => u.pageMapping.pageNum), N = m(() => u.pageMapping.pageSize), K = {
119
120
  [f.value]: 1,
120
- [z.value]: 20
121
+ [N.value]: 20
121
122
  }, r = h({
122
123
  ...K
123
- }), g = h([]), i = h([]), G = h([]), C = h({}), Q = m(() => ge(C.value));
124
+ }), g = h([]), i = h([]), J = h([]), C = h({}), Q = m(() => ge(C.value));
124
125
  function ge(e) {
125
126
  const t = /* @__PURE__ */ new Set();
126
127
  for (const l in e)
@@ -129,7 +130,7 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
129
130
  });
130
131
  return t;
131
132
  }
132
- const X = ({ value: e, intermediate: t = !1, onChange: l }) => J(je, {
133
+ const X = ({ value: e, intermediate: t = !1, onChange: l }) => H(Oe, {
133
134
  onChange: l,
134
135
  modelValue: e,
135
136
  indeterminate: t
@@ -181,7 +182,7 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
181
182
  width: 50,
182
183
  cellRenderer: (e) => {
183
184
  const { rowData: t } = e, a = t.children && t.children.length > 0 ? be(t) : !1;
184
- return J(X, {
185
+ return H(X, {
185
186
  value: t.selected,
186
187
  intermediate: a,
187
188
  onChange: (s) => me(t, s)
@@ -192,7 +193,7 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
192
193
  const s = a.selected, o = le(a);
193
194
  return s && o;
194
195
  }), l = e.some((a) => a.selected || ae(a));
195
- return J(X, {
196
+ return H(X, {
196
197
  value: t,
197
198
  intermediate: l && !t,
198
199
  // 目前是当前页全选就是全选状态,也就是每页的全选状态单独的
@@ -244,7 +245,7 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
244
245
  });
245
246
  }
246
247
  const B = () => {
247
- R.value ? u.requestFn({
248
+ z.value ? u.requestFn({
248
249
  ...u.params,
249
250
  ...r.value
250
251
  }).then((e) => {
@@ -281,7 +282,7 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
281
282
  }, se = (e) => {
282
283
  e === "size" && (r.value[f.value] = 1), B(), x(fe.paginationChange, r.value);
283
284
  }, P = h(0), A = () => {
284
- let e = P.value, t = JSON.parse(JSON.stringify(u.columns));
285
+ let e = P.value, t = Ve(u.columns);
285
286
  const l = 1 / Ke(), a = t.filter((n) => n.fixedWidth), s = t.filter((n) => !n.fixedWidth);
286
287
  let o = 0;
287
288
  a.forEach((n) => {
@@ -293,17 +294,17 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
293
294
  });
294
295
  const ue = [];
295
296
  if (t.forEach((n, W) => {
296
- let O;
297
+ let D;
297
298
  if (n.fixedWidth)
298
- O = n.width || 100;
299
+ D = n.width || 100;
299
300
  else if (n.width && L > 0) {
300
301
  const _ = n.width / L, M = c * _;
301
- O = Math.max(M, n.width);
302
+ D = Math.max(M, n.width);
302
303
  } else {
303
304
  const _ = s.filter((M) => !M.width);
304
- O = _.length > 0 ? c / _.length : c / s.length;
305
+ D = _.length > 0 ? c / _.length : c / s.length;
305
306
  }
306
- ue.push(O);
307
+ ue.push(D);
307
308
  }), t = t.map((n, W) => (n.width = ue[W] * l, w.value && Object.keys(w.value).length && w.value[n.key] && (n.sortable = !0), n)), T.value) {
308
309
  const n = g.value.find((W) => W.key === "selection");
309
310
  n && (g.value = [n, ...t]);
@@ -324,8 +325,8 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
324
325
  const ie = () => {
325
326
  P.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, A();
326
327
  };
327
- return Ne(() => {
328
- B(), g.value = u.columns, P.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, Re(() => {
328
+ return Re(() => {
329
+ B(), g.value = u.columns, P.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, ze(() => {
329
330
  A();
330
331
  }), window.addEventListener("resize", ie);
331
332
  }), he({
@@ -335,27 +336,27 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
335
336
  initBatchSelect: we,
336
337
  handleCancelSelect: V,
337
338
  handleResize: ie
338
- }), (e, t) => (y(), E("div", $e, [
339
- S("div", Le, [
340
- v(j)["filter-left"] ? (y(), E("div", Me, [
341
- D(e.$slots, "filter-left", {}, void 0, !0)
342
- ])) : N("", !0),
343
- S("div", Ue, [
344
- p.hasBatchSelect && d.value.length ? (y(), E(ze, { key: 0 }, [
345
- T.value ? (y(), E("div", Je, [
346
- S("div", He, "已选" + Pe(i.value.length) + "条数据", 1),
339
+ }), (e, t) => (y(), E("div", Le, [
340
+ S("div", Me, [
341
+ v(O)["filter-left"] ? (y(), E("div", Ue, [
342
+ I(e.$slots, "filter-left", {}, void 0, !0)
343
+ ])) : R("", !0),
344
+ S("div", He, [
345
+ p.hasBatchSelect && d.value.length ? (y(), E(Ne, { key: 0 }, [
346
+ T.value ? (y(), E("div", Ge, [
347
+ S("div", Je, "已选" + Pe(i.value.length) + "条数据", 1),
347
348
  S("div", {
348
349
  class: "fz-12 text-3b64ff mg-l-4 pointer",
349
350
  onClick: V
350
351
  }, "取消选择"),
351
- D(e.$slots, "btn-group", {}, () => [
352
- S("div", Ge, [
352
+ I(e.$slots, "btn-group", {}, () => [
353
+ S("div", Qe, [
353
354
  U(v(ce), {
354
355
  type: "danger",
355
356
  onClick: xe,
356
357
  disabled: !i.value.length
357
358
  }, {
358
- default: I(() => [...t[6] || (t[6] = [
359
+ default: j(() => [...t[6] || (t[6] = [
359
360
  de(" 删除 ", -1)
360
361
  ])]),
361
362
  _: 1
@@ -367,22 +368,22 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
367
368
  type: "default",
368
369
  onClick: Ce
369
370
  }, {
370
- default: I(() => [...t[5] || (t[5] = [
371
+ default: j(() => [...t[5] || (t[5] = [
371
372
  de(" 批量选择 ", -1)
372
373
  ])]),
373
374
  _: 1
374
375
  }))
375
- ], 64)) : N("", !0),
376
- v(j)["filter-right"] ? D(e.$slots, "filter-right", { key: 1 }, void 0, !0) : N("", !0)
376
+ ], 64)) : R("", !0),
377
+ v(O)["filter-right"] ? I(e.$slots, "filter-right", { key: 1 }, void 0, !0) : R("", !0)
377
378
  ])
378
379
  ]),
379
- S("div", Qe, [
380
- S("div", Xe, [
381
- U(v(De), null, {
382
- default: I(({ width: l, height: a }) => [
383
- U(v(Ie), {
384
- "expanded-row-keys": G.value,
385
- "onUpdate:expandedRowKeys": t[0] || (t[0] = (s) => G.value = s),
380
+ S("div", Xe, [
381
+ S("div", Ye, [
382
+ U(v(Ie), null, {
383
+ default: j(({ width: l, height: a }) => [
384
+ U(v(je), {
385
+ "expanded-row-keys": J.value,
386
+ "onUpdate:expandedRowKeys": t[0] || (t[0] = (s) => J.value = s),
386
387
  "expand-column-key": p.expandColumnKey,
387
388
  columns: g.value,
388
389
  data: d.value,
@@ -392,10 +393,10 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
392
393
  "sort-state": w.value,
393
394
  onColumnSort: pe
394
395
  }, Ae({ _: 2 }, [
395
- We(v(j), (s, o) => ({
396
+ We(v(O), (s, o) => ({
396
397
  name: o,
397
- fn: I((c) => [
398
- D(e.$slots, o, Oe(_e(c)), void 0, !0)
398
+ fn: j((c) => [
399
+ I(e.$slots, o, De(_e(c)), void 0, !0)
399
400
  ])
400
401
  }))
401
402
  ]), 1032, ["expanded-row-keys", "expand-column-key", "columns", "data", "width", "height", "sort-state"])
@@ -403,25 +404,25 @@ import './assets/PaginationTable.css';const $e = { class: "flex h-full flex-col"
403
404
  _: 3
404
405
  })
405
406
  ]),
406
- p.isPagination && H.value > r.value[z.value] ? (y(), E("div", Ye, [
407
+ p.isPagination && G.value > r.value[N.value] ? (y(), E("div", Ze, [
407
408
  p.isPagination ? (y(), re(Fe, {
408
409
  key: 0,
409
410
  "current-page": r.value[f.value],
410
411
  "onUpdate:currentPage": t[1] || (t[1] = (l) => r.value[f.value] = l),
411
- "page-size": r.value[z.value],
412
- "onUpdate:pageSize": t[2] || (t[2] = (l) => r.value[z.value] = l),
412
+ "page-size": r.value[N.value],
413
+ "onUpdate:pageSize": t[2] || (t[2] = (l) => r.value[N.value] = l),
413
414
  "page-sizes": p.pagination.pageSizes,
414
415
  layout: p.pagination.layout,
415
- total: H.value,
416
+ total: G.value,
416
417
  onSizeChange: t[3] || (t[3] = (l) => se("size")),
417
418
  onCurrentChange: t[4] || (t[4] = (l) => se("page"))
418
- }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])) : N("", !0)
419
- ])) : N("", !0)
419
+ }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])) : R("", !0)
420
+ ])) : R("", !0)
420
421
  ])
421
422
  ]));
422
423
  }
423
- }), et = /* @__PURE__ */ Ve(Ze, [["__scopeId", "data-v-b51f9a03"]]), ot = Be(et);
424
+ }), tt = /* @__PURE__ */ $e(et, [["__scopeId", "data-v-365abca5"]]), dt = Be(tt);
424
425
  export {
425
- ot as PaginationTable,
426
- ot as default
426
+ dt as PaginationTable,
427
+ dt as default
427
428
  };
@@ -1 +1 @@
1
- .hover-overlay[data-v-f5af90d9]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
1
+ .hover-overlay[data-v-7bb24f99]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
@@ -1 +1 @@
1
- [data-v-b51f9a03] .el-table-v2__header-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1
+ [data-v-365abca5] .el-table-v2__header-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}