asiaint-lowcode 3.0.33 → 3.0.35

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.
Files changed (34) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +125 -125
  3. package/dist/index.d.ts +7 -2
  4. package/dist/lazy/Card-BjIjVHSY.js +102 -0
  5. package/dist/lazy/{Cascader-B-lZfCap.js → Cascader-avy7s_TT.js} +1 -1
  6. package/dist/lazy/{Checkbox-YO_0wBKc.js → Checkbox-BZn0GYIB.js} +2 -2
  7. package/dist/lazy/{Collapse-BlH5sRWv.js → Collapse-Db0LTA46.js} +1 -1
  8. package/dist/lazy/Component-1h985-3I.js +36 -0
  9. package/dist/lazy/{Component-b97O_1Tl.js → Component-BzkGuQn6.js} +1 -1
  10. package/dist/lazy/{Component-Bl19KoSv.js → Component-CYGJTTJw.js} +1 -1
  11. package/dist/lazy/{Component-BCfLKjK8.js → Component-GQYCJTtl.js} +1 -1
  12. package/dist/lazy/{Component-D8B2QjBe.js → Component-ln-XJiQI.js} +1 -1
  13. package/dist/lazy/{Component-09uMPQXo.js → Component-v8evKRwj.js} +1 -1
  14. package/dist/lazy/{CurdCard-DTv68TEH.js → CurdCard-DUQI--iE.js} +1 -1
  15. package/dist/lazy/{Custom-Cu1dz0F5.js → Custom-DXU5JHcS.js} +1 -1
  16. package/dist/lazy/{FormList-DbrUeW7x.js → FormList-DfuTiprs.js} +1 -1
  17. package/dist/lazy/{Grid-Bg52fX8Z.js → Grid-CdKMWQTk.js} +1 -1
  18. package/dist/lazy/{Inline-JoP0Kz2Z.js → Inline-DctgzZdL.js} +1 -1
  19. package/dist/lazy/{JsonEdit-B07NWENB.js → JsonEdit-CflVlRK6.js} +1 -1
  20. package/dist/lazy/{ObjGroup-a2USDXVL.js → ObjGroup-DdYz8IBo.js} +1 -1
  21. package/dist/lazy/OfferDetails-SqqsGCMK.js +168 -0
  22. package/dist/lazy/{Radio-bAObj-SF.js → Radio-B36DUIWx.js} +2 -2
  23. package/dist/lazy/{SearchSelect-yvRqORip.js → SearchSelect-CvMAXRRc.js} +2 -2
  24. package/dist/lazy/{Select-B8CtrHsk.js → Select-CclP3zyB.js} +2 -2
  25. package/dist/lazy/{Table-7R5XEA27.js → Table-BbiZUQ-6.js} +54 -54
  26. package/dist/lazy/{Tabs-4wVyNH_D.js → Tabs-CQuqM3SJ.js} +1 -1
  27. package/dist/lazy/{Wrapper-6_mhBiQ0.js → Wrapper-DX0sH3RH.js} +1 -1
  28. package/dist/lazy/{index-C8n7TbR6.js → index-BVOhSRT8.js} +4748 -4591
  29. package/dist/lazy/{useSelect-B3zM60ey.js → useSelect-Br3_JWNA.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Card-CBrL-lfq.js +0 -93
  33. package/dist/lazy/Component-CK_IFBCD.js +0 -34
  34. package/dist/lazy/OfferDetails-Dwry8T2e.js +0 -165
package/dist/index.d.ts CHANGED
@@ -643,7 +643,9 @@ declare interface TableColumn {
643
643
  export declare const TableRender: DefineComponent<ExtractPropTypes< {
644
644
  schema: {
645
645
  required: true;
646
- type: PropType<TableSchema>;
646
+ type: PropType<TableSchema & {
647
+ cardless?: boolean;
648
+ }>;
647
649
  };
648
650
  modelValue: PropType<Array<any>>;
649
651
  design: {
@@ -695,7 +697,9 @@ pageRulePath: string;
695
697
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
696
698
  schema: {
697
699
  required: true;
698
- type: PropType<TableSchema>;
700
+ type: PropType<TableSchema & {
701
+ cardless?: boolean;
702
+ }>;
699
703
  };
700
704
  modelValue: PropType<Array<any>>;
701
705
  design: {
@@ -738,6 +742,7 @@ declare type TableSchema = {
738
742
  displayType?: 'card' | 'table';
739
743
  onMounted?: string;
740
744
  height?: number;
745
+ collapsible?: boolean;
741
746
  };
742
747
 
743
748
  declare type TabsSchema = {
@@ -0,0 +1,102 @@
1
+ import { defineComponent as g, ref as M, inject as h, resolveComponent as d, openBlock as o, createBlock as i, mergeProps as $, withCtx as c, createElementVNode as s, createElementBlock as n, createVNode as t, unref as p, normalizeClass as I, createCommentVNode as E, toDisplayString as v, Fragment as u, renderList as C, withDirectives as V, vShow as D } from "vue";
2
+ import { _ as F, I as k, B as N, a as S, b as j } from "./index-BVOhSRT8.js";
3
+ import "element-plus";
4
+ const z = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ g({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {},
10
+ btns: {},
11
+ extraIcons: {},
12
+ shadowless: { type: Boolean },
13
+ subHeaders: {}
14
+ },
15
+ setup(R) {
16
+ const a = M(!1), m = h("ruleModule", void 0), f = h("pageMethodMap", {}), _ = (l) => {
17
+ if (l && m)
18
+ try {
19
+ m[l](f);
20
+ } catch (r) {
21
+ console.error(r);
22
+ }
23
+ };
24
+ return (l, r) => {
25
+ const b = d("el-tooltip"), w = d("el-collapse-transition"), y = d("ElCard");
26
+ return o(), i(y, $(l.$attrs, {
27
+ class: ["crm-card", { collapsed: a.value, shadowless: l.shadowless }],
28
+ shadow: "never"
29
+ }), {
30
+ header: c(() => [
31
+ s("div", z, [
32
+ l.collapsible ? (o(), n("div", {
33
+ key: 0,
34
+ class: "icon-wrapper",
35
+ onClick: r[0] || (r[0] = (e) => a.value = !a.value)
36
+ }, [
37
+ t(p(F), {
38
+ name: "dropdown",
39
+ class: I(["dropdown-icon", { "is-collapsed": a.value }])
40
+ }, null, 8, ["class"])
41
+ ])) : E("", !0),
42
+ s("span", null, v(l.header), 1),
43
+ (o(!0), n(u, null, C(l.extraIcons, (e) => (o(), n(u, {
44
+ key: e.name
45
+ }, [
46
+ e.tips ? (o(), i(b, {
47
+ key: 0,
48
+ content: e.tips,
49
+ placement: "right"
50
+ }, {
51
+ default: c(() => [
52
+ t(k, {
53
+ class: "extra-icon",
54
+ name: e.name,
55
+ color: e.color,
56
+ onClick: (B) => _(e.onClick)
57
+ }, null, 8, ["name", "color", "onClick"])
58
+ ]),
59
+ _: 2
60
+ }, 1032, ["content"])) : (o(), i(k, {
61
+ key: 1,
62
+ class: "extra-icon",
63
+ name: e.name,
64
+ color: e.color,
65
+ onClick: (B) => _(e.onClick)
66
+ }, null, 8, ["name", "color", "onClick"]))
67
+ ], 64))), 128)),
68
+ s("div", H, [
69
+ t(p(N), {
70
+ btns: l.btns || []
71
+ }, null, 8, ["btns"])
72
+ ]),
73
+ s("div", L, [
74
+ (o(!0), n(u, null, C(l.subHeaders, (e) => (o(), n("div", {
75
+ key: e,
76
+ class: "card-sub-header-item"
77
+ }, [
78
+ s("span", null, v(e), 1)
79
+ ]))), 128))
80
+ ])
81
+ ])
82
+ ]),
83
+ default: c(() => [
84
+ t(w, null, {
85
+ default: c(() => [
86
+ V(s("div", null, [
87
+ t(p(S), { list: l.children }, null, 8, ["list"])
88
+ ], 512), [
89
+ [D, !a.value]
90
+ ])
91
+ ]),
92
+ _: 1
93
+ })
94
+ ]),
95
+ _: 1
96
+ }, 16, ["class"]);
97
+ };
98
+ }
99
+ }), G = /* @__PURE__ */ j(P, [["__scopeId", "data-v-1acc3e2f"]]);
100
+ export {
101
+ G as default
102
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as y, openBlock as M, createBlock as C, mergeProps as h, unref as r } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-B3zM60ey.js";
3
+ import { u as b } from "./useSelect-Br3_JWNA.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as T, mergeModels as w, useModel as D, watch as F, resolveComponent as u, resolveDirective as M, unref as a, openBlock as l, createElementBlock as n, toDisplayString as I, Fragment as d, createCommentVNode as i, withDirectives as P, createBlock as s, mergeProps as S, withCtx as f, renderList as h } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-C8n7TbR6.js";
4
- import { u as E } from "./useSelect-B3zM60ey.js";
3
+ import { u as j } from "./index-BVOhSRT8.js";
4
+ import { u as E } from "./useSelect-Br3_JWNA.js";
5
5
  const L = { key: 0 }, N = {
6
6
  key: 0,
7
7
  style: { "font-size": "12px" }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
2
- import { a as y } from "./index-C8n7TbR6.js";
2
+ import { a as y } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
5
5
  const x = /* @__PURE__ */ u({
@@ -0,0 +1,36 @@
1
+ import { defineComponent as m, mergeModels as p, useModel as a, resolveComponent as u, openBlock as l, createElementBlock as d, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
+ import { u as v } from "./index-BVOhSRT8.js";
3
+ import "element-plus";
4
+ const k = { key: 0 }, K = /* @__PURE__ */ m({
5
+ __name: "Component",
6
+ props: /* @__PURE__ */ p({
7
+ min: {},
8
+ read: { type: Boolean },
9
+ precision: {}
10
+ }, {
11
+ modelValue: {},
12
+ modelModifiers: {}
13
+ }),
14
+ emits: ["update:modelValue"],
15
+ setup(t) {
16
+ const o = a(t, "modelValue");
17
+ v();
18
+ const r = (e) => {
19
+ ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
20
+ };
21
+ return (e, n) => {
22
+ const s = u("el-input-number");
23
+ return e.read ? (l(), d("span", k, c(typeof o.value == "number" ? o.value.toFixed(e.precision || 0).replace(".", ",") : "--"), 1)) : (l(), y(s, f({ key: 1 }, e.$attrs, {
24
+ modelValue: o.value,
25
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => o.value = i),
26
+ style: { width: "100%" },
27
+ min: e.min || 0,
28
+ precision: e.precision,
29
+ onKeydown: r
30
+ }), null, 16, ["modelValue", "min", "precision"]));
31
+ };
32
+ }
33
+ });
34
+ export {
35
+ K as default
36
+ };
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
2
2
  var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
5
- import { u as b, b as x } from "./index-C8n7TbR6.js";
5
+ import { u as b, b as x } from "./index-BVOhSRT8.js";
6
6
  import "element-plus";
7
7
  function S() {
8
8
  return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
2
2
  import { ElMessage as M, ElMessageBox as N } from "element-plus";
3
- import { _ as f } from "./index-C8n7TbR6.js";
3
+ import { _ as f } from "./index-BVOhSRT8.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, inject as y, ref as b, resolveComponent as f, openBlock as s, createBlock as m, mergeProps as x, withCtx as h, createElementVNode as d, toDisplayString as C, createElementBlock as k, createCommentVNode as _, Fragment as v, renderList as B, unref as I, withModifiers as P, createTextVNode as V } from "vue";
2
- import { f as w, I as E, b as F } from "./index-C8n7TbR6.js";
2
+ import { f as w, I as E, b as F } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const j = { class: "custom-tree-node" }, A = { class: "tree-node-text" }, D = { class: "tree-node-label" }, R = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
2
- import { b as H, u as K, c as Q } from "./index-C8n7TbR6.js";
2
+ import { b as H, u as K, c as Q } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
2
- import { u as V } from "./index-C8n7TbR6.js";
2
+ import { u as V } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as F, inject as I, ref as w, resolveComponent as _, openBlock as n, createElementBlock as t, createElementVNode as a, normalizeClass as h, createBlock as p, createCommentVNode as v, toDisplayString as N, Fragment as g, renderList as V, withCtx as B, createVNode as s, unref as f, withDirectives as z, vShow as D } from "vue";
2
- import { u as j, I as i, B as L, a as T, h as R, b as q } from "./index-C8n7TbR6.js";
2
+ import { u as j, I as i, B as L, a as T, h as R, b as q } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const A = { class: "crm-curd-card" }, G = { class: "left-part" }, H = { class: "title" }, J = { class: "right-part" }, K = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
2
- import { b as i } from "./index-C8n7TbR6.js";
2
+ import { b as i } from "./index-BVOhSRT8.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
2
- import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-C8n7TbR6.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
5
5
  __name: "FormList",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, computed as a, openBlock as d, createBlock as e, unref as r, normalizeStyle as l } from "vue";
2
- import { a as m } from "./index-C8n7TbR6.js";
2
+ import { a as m } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const f = /* @__PURE__ */ o({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
2
- import { a as c, b as f } from "./index-C8n7TbR6.js";
2
+ import { a as c, b as f } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const m = /* @__PURE__ */ a({
5
5
  __name: "Inline",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
2
- import { b as xt, g as Nt } from "./index-C8n7TbR6.js";
2
+ import { b as xt, g as Nt } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const Mt = /* @__PURE__ */ At({
5
5
  __name: "Disabled",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
2
- import { u as j, d as h, e as k } from "./index-C8n7TbR6.js";
2
+ import { u as j, d as h, e as k } from "./index-BVOhSRT8.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -0,0 +1,168 @@
1
+ import { defineComponent as E, resolveComponent as I, openBlock as o, createBlock as N, withCtx as B, createVNode as m, createElementVNode as i, createElementBlock as s, Fragment as h, renderList as _, toDisplayString as b, createCommentVNode as D, ref as w, inject as P, watchEffect as S, onMounted as M, normalizeStyle as O } from "vue";
2
+ import { j as $, $ as A, b as z } from "./index-BVOhSRT8.js";
3
+ const F = { class: "content" }, j = { class: "product-list" }, K = { class: "attribute-list" }, L = {
4
+ key: 0,
5
+ class: "attribute-list-item"
6
+ }, R = { class: "product-title attribute-title" }, V = { class: "attribute-item-list" }, x = { class: "attribute-label" }, U = { class: "attribute-value" }, q = /* @__PURE__ */ E({
7
+ __name: "OfferDetailItem",
8
+ props: {
9
+ data: {},
10
+ btns: {},
11
+ index: {}
12
+ },
13
+ setup(v) {
14
+ return (n, d) => {
15
+ const f = I("el-popover");
16
+ return o(), N(f, {
17
+ "popper-class": "offer-detail",
18
+ placement: "right"
19
+ }, {
20
+ reference: B(() => [
21
+ m($, {
22
+ data: n.data,
23
+ btns: n.btns,
24
+ index: n.index
25
+ }, null, 8, ["data", "btns", "index"])
26
+ ]),
27
+ default: B(() => [
28
+ i("div", F, [
29
+ d[0] || (d[0] = i("div", { class: "product-title" }, "Product", -1)),
30
+ i("div", j, [
31
+ (o(!0), s(h, null, _(n.data.product, (l) => (o(), s("div", {
32
+ class: "product-item",
33
+ key: l.label
34
+ }, b(l.label), 1))), 128))
35
+ ]),
36
+ i("div", K, [
37
+ (o(!0), s(h, null, _(n.data.product, (l) => (o(), s(h, {
38
+ key: l.label
39
+ }, [
40
+ l.children.length > 0 ? (o(), s("div", L, [
41
+ i("div", R, b(l.label), 1),
42
+ i("div", V, [
43
+ (o(!0), s(h, null, _(l.children, (c) => (o(), s("div", {
44
+ class: "attribute-item",
45
+ key: c.label
46
+ }, [
47
+ i("div", x, b(c.label), 1),
48
+ i("div", U, b(c.value || "--"), 1)
49
+ ]))), 128))
50
+ ])
51
+ ])) : D("", !0)
52
+ ], 64))), 128))
53
+ ])
54
+ ])
55
+ ]),
56
+ _: 1
57
+ });
58
+ };
59
+ }
60
+ }), G = {
61
+ key: 0,
62
+ class: "empty-content"
63
+ }, H = /* @__PURE__ */ E({
64
+ __name: "OfferDetails",
65
+ props: {
66
+ title: {},
67
+ key: {},
68
+ rulePath: {},
69
+ rowKey: {},
70
+ showDynamicSearch: { type: Boolean },
71
+ multipleSelection: { type: Boolean },
72
+ highlightCurrentRow: { type: Boolean },
73
+ "highlight-current-row": { type: Boolean },
74
+ stripe: { type: Boolean },
75
+ rowClick: {},
76
+ rowDbClick: {},
77
+ sizeChange: {},
78
+ pageChange: {},
79
+ topBtns: {},
80
+ rowBtns: {},
81
+ hidden: { type: Boolean },
82
+ hiddenPagination: { type: Boolean },
83
+ handleCurrentChange: {},
84
+ pageSizes: {},
85
+ pagerCount: {},
86
+ defaultPageSize: {},
87
+ typeSwitch: { type: Boolean },
88
+ displayType: {},
89
+ onMounted: {},
90
+ height: {},
91
+ collapsible: { type: Boolean },
92
+ gridColumns: { default: 3 },
93
+ gap: { default: 16 },
94
+ data: {},
95
+ columns: {}
96
+ },
97
+ setup(v) {
98
+ var k, C;
99
+ const n = v, d = w(), f = w([]), l = (k = n.columns.find((e) => e.position === "title")) == null ? void 0 : k.key, c = (C = n.columns.find((e) => e.position === "subTitle")) == null ? void 0 : C.key, u = n.columns.find((e) => e.position === "footer"), T = (e) => {
100
+ const t = [];
101
+ return e.children && e.children.length > 0 && e.children.forEach((a) => {
102
+ const y = {
103
+ label: a.PRODUCT_ITEM_NAME,
104
+ children: []
105
+ };
106
+ a.children && a.children.length > 0 && a.children.forEach((p) => {
107
+ y.children.push({
108
+ label: p.PRODUCT_ITEM_NAME,
109
+ value: p.ACTION
110
+ });
111
+ }), t.push(y);
112
+ }), t;
113
+ }, g = P(A), r = g ? g.translateFn : null;
114
+ return S(() => {
115
+ n.data && (d.value = n.data.map((e) => {
116
+ const t = {
117
+ content: []
118
+ };
119
+ return l && (t.title = r ? r(l, e) : e[l], t.titleColor = "#18AAF8"), c && (t.subTitle = r ? r(c, e) : e[c]), u && (t.footer = {
120
+ icon: u.footerIcon || "icon-tishi",
121
+ text: `${u.label}: ${r ? r(u.key, e) : e[u.key]}`
122
+ }), e.children && (t.product = T(e)), n.columns.forEach((a) => {
123
+ a.position === "content" && t.content.push({
124
+ label: a.label,
125
+ value: r ? r(a.key, e) : e[a.key]
126
+ });
127
+ }), t;
128
+ }));
129
+ }), M(() => {
130
+ var e;
131
+ f.value = (e = n.rowBtns) == null ? void 0 : e.map((t) => ({
132
+ icon: t.icon && t.icon.name ? t.icon.name : "icon-tishi",
133
+ label: t.label,
134
+ onClick: t.onClick
135
+ }));
136
+ }), (e, t) => {
137
+ const a = I("Icon");
138
+ return o(), s("div", {
139
+ class: "card-list",
140
+ style: O({
141
+ "--columns": e.gridColumns,
142
+ "--gap": e.gap + "px"
143
+ })
144
+ }, [
145
+ (o(!0), s(h, null, _(d.value, (y, p) => (o(), s("div", {
146
+ class: "card-list-item",
147
+ key: p
148
+ }, [
149
+ m(q, {
150
+ data: y,
151
+ btns: f.value,
152
+ index: p
153
+ }, null, 8, ["data", "btns", "index"])
154
+ ]))), 128)),
155
+ !e.data || e.data.length === 0 ? (o(), s("div", G, [
156
+ m(a, {
157
+ name: "tableEmpty",
158
+ style: { width: 56, height: 56 }
159
+ }),
160
+ t[0] || (t[0] = i("div", null, "No data available,please check", -1))
161
+ ])) : D("", !0)
162
+ ], 4);
163
+ };
164
+ }
165
+ }), W = /* @__PURE__ */ z(H, [["__scopeId", "data-v-da383eeb"]]);
166
+ export {
167
+ W as default
168
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, mergeModels as S, useModel as T, inject as K, resolveComponent as p, resolveDirective as w, openBlock as o, createElementBlock as d, toDisplayString as F, unref as l, Fragment as m, createCommentVNode as N, withDirectives as I, createBlock as y, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
2
- import { u as $ } from "./index-C8n7TbR6.js";
3
- import { u as j } from "./useSelect-B3zM60ey.js";
2
+ import { u as $ } from "./index-BVOhSRT8.js";
3
+ import { u as j } from "./useSelect-Br3_JWNA.js";
4
4
  const E = { key: 0 }, L = {
5
5
  key: 0,
6
6
  style: { "font-size": "12px" }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as b, unref as u, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
- import { u as L, _ as O, b as T } from "./index-C8n7TbR6.js";
3
- import { u as U } from "./useSelect-B3zM60ey.js";
2
+ import { u as L, _ as O, b as T } from "./index-BVOhSRT8.js";
3
+ import { u as U } from "./useSelect-Br3_JWNA.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as _, mergeModels as k, useModel as B, inject as f, computed as D, resolveComponent as y, resolveDirective as S, openBlock as r, createElementBlock as i, toDisplayString as v, createBlock as b, mergeProps as A, withCtx as g, withDirectives as F, Fragment as j, renderList as w, unref as h, createTextVNode as I } from "vue";
2
- import { u as N } from "./index-C8n7TbR6.js";
3
- import { u as P } from "./useSelect-B3zM60ey.js";
2
+ import { u as N } from "./index-BVOhSRT8.js";
3
+ import { u as P } from "./useSelect-Br3_JWNA.js";
4
4
  const E = { key: 0 }, L = { style: { "min-height": "32px" } }, $ = /* @__PURE__ */ _({
5
5
  __name: "Select",
6
6
  props: /* @__PURE__ */ k({