asiaint-lowcode 3.0.16 → 3.0.17

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 (38) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +137 -137
  3. package/dist/index.d.ts +17 -0
  4. package/dist/lazy/{Card-DIBN4bRf.js → Card-C5_msSt_.js} +1 -1
  5. package/dist/lazy/CardList-MgVKIygB.js +108 -0
  6. package/dist/lazy/{CardListItem-DbXsd1_k.js → CardListItem-CKntC7cg.js} +4 -4
  7. package/dist/lazy/{Cascader-BZhmVWOO.js → Cascader-CYH5Fi7i.js} +7 -6
  8. package/dist/lazy/{Checkbox-B1TSYANT.js → Checkbox-D53Paz5b.js} +7 -6
  9. package/dist/lazy/{Collapse-C8VWxgHp.js → Collapse-Cmx5or4b.js} +1 -1
  10. package/dist/lazy/{Component-NvoLQyab.js → Component-CGdDOPOy.js} +1 -1
  11. package/dist/lazy/{Component-CUa78qLF.js → Component-CU23NOb2.js} +1 -1
  12. package/dist/lazy/{Component-CqAhbbGQ.js → Component-Cj1LHwcP.js} +1 -1
  13. package/dist/lazy/{Component-D-Eh8B-j.js → Component-D0dwgR6z.js} +1 -1
  14. package/dist/lazy/{Component-Cmw2Jlj3.js → Component-DF8iAcIj.js} +1 -1
  15. package/dist/lazy/{Component-DUuuNUxC.js → Component-gsuTGjd3.js} +1 -1
  16. package/dist/lazy/CurdCard-B837mmwu.js +108 -0
  17. package/dist/lazy/{Custom-zNcfkvdD.js → Custom-_TKg63Y-.js} +1 -1
  18. package/dist/lazy/{FormList-ChQYp1l-.js → FormList-BpRr23C5.js} +1 -1
  19. package/dist/lazy/{Grid-GCB39VOw.js → Grid-uJbOswN2.js} +1 -1
  20. package/dist/lazy/{Inline-D1ZMiudr.js → Inline-JPrJPoID.js} +1 -1
  21. package/dist/lazy/{JsonEdit-BK25HRpb.js → JsonEdit-BZR2tMmu.js} +1 -1
  22. package/dist/lazy/{ObjGroup-DLXLO2wj.js → ObjGroup-BFLXonc_.js} +1 -1
  23. package/dist/lazy/OfferDetails-wBzkM5UY.js +163 -0
  24. package/dist/lazy/{Radio-DoOsjG7K.js → Radio-DY3h8hvk.js} +22 -21
  25. package/dist/lazy/{SearchSelect-CktfCSrM.js → SearchSelect-BA6DwHFz.js} +15 -14
  26. package/dist/lazy/{Select-DgAQhalx.js → Select-B5xgS3RP.js} +4 -3
  27. package/dist/lazy/Table-lhInsLy-.js +280 -0
  28. package/dist/lazy/{Tabs-C7ZXJbOT.js → Tabs-DvbrjYdV.js} +1 -1
  29. package/dist/lazy/Wrapper-DOKiemVa.js +30 -0
  30. package/dist/lazy/{index-BvOUGCFQ.js → index-KOkHm1wc.js} +5117 -4983
  31. package/dist/lazy/{useSelect-BqqanrGo.js → useSelect-DnnrbcQO.js} +1 -1
  32. package/dist/style.css +2 -2
  33. package/package.json +1 -1
  34. package/dist/lazy/CardList-DkwHDPNp.js +0 -51
  35. package/dist/lazy/CurdCard-BSgF68nl.js +0 -85
  36. package/dist/lazy/OfferDetails-CKwTw0z4.js +0 -95
  37. package/dist/lazy/Table-C3PlF9J4.js +0 -273
  38. package/dist/lazy/Wrapper-DIpJqF_p.js +0 -22
package/dist/index.d.ts CHANGED
@@ -124,6 +124,7 @@ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undef
124
124
  getPageParams: () => any;
125
125
  setHidden: (key: string, hiddenState: boolean) => void;
126
126
  setBtnHidden: (key: string, hiddenState: boolean) => void;
127
+ setBtnStateByKey: (key: string, stateType: "hidden" | "disabled", state: boolean) => void;
127
128
  setBtnDisabled: (key: string, disabled: boolean) => void;
128
129
  addPageParams: (params: any) => void;
129
130
  setPageParams: (params: any) => void;
@@ -235,6 +236,8 @@ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<
235
236
  readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
236
237
  } | undefined;
237
238
  readonly hidden?: boolean | undefined;
239
+ readonly isSticky?: boolean | undefined;
240
+ readonly stickyTop?: number | undefined;
238
241
  readonly content: readonly {
239
242
  readonly label: string;
240
243
  readonly url: string;
@@ -273,6 +276,10 @@ schema: {
273
276
  required: true;
274
277
  type: PropType<InfoCardSchema>;
275
278
  };
279
+ pageRulePath: {
280
+ type: PropType<string>;
281
+ required: true;
282
+ };
276
283
  }>, {
277
284
  type: string;
278
285
  schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
@@ -281,6 +288,10 @@ schema: {
281
288
  required: true;
282
289
  type: PropType<InfoCardSchema>;
283
290
  };
291
+ pageRulePath: {
292
+ type: PropType<string>;
293
+ required: true;
294
+ };
284
295
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
285
296
 
286
297
  declare const _default_4: DefineComponent<ExtractPropTypes< {
@@ -453,6 +464,7 @@ declare type InfoCardSchema = {
453
464
  btns: BtnType[];
454
465
  key: string;
455
466
  rulePath?: string;
467
+ onMounted?: string;
456
468
  detail: {
457
469
  label: string;
458
470
  value: string;
@@ -520,6 +532,7 @@ declare type NavBarSchema = {
520
532
  text: string;
521
533
  key: string;
522
534
  onClick: string;
535
+ hidden?: boolean;
523
536
  }[];
524
537
  footerBtns?: BtnType[];
525
538
  };
@@ -576,6 +589,7 @@ declare interface SelectProps {
576
589
  name?: string;
577
590
  onChange?: string;
578
591
  read?: boolean;
592
+ clearable?: boolean;
579
593
  }
580
594
 
581
595
  declare type setBtnStateFn = (params: {
@@ -682,6 +696,7 @@ declare type TableSchema = {
682
696
  showDynamicSearch?: boolean;
683
697
  multipleSelection?: boolean;
684
698
  highlightCurrentRow?: boolean;
699
+ 'highlight-current-row'?: boolean;
685
700
  stripe?: boolean;
686
701
  rowClick?: string;
687
702
  rowDbClick?: string;
@@ -706,6 +721,8 @@ declare type TabsSchema = {
706
721
  onActivated?: string;
707
722
  tabProps?: TabsProps;
708
723
  hidden?: boolean;
724
+ isSticky?: boolean;
725
+ stickyTop?: number;
709
726
  content: {
710
727
  label: string;
711
728
  url: string;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as i, resolveComponent as p, openBlock as t, createBlock as m, mergeProps as u, withCtx as o, createElementVNode as s, createElementBlock as _, createVNode as l, unref as n, normalizeClass as v, createCommentVNode as f, toDisplayString as h, Transition as C, withDirectives as b, vShow as w } from "vue";
2
- import { _ as B, B as k, a as E, b as $ } from "./index-BvOUGCFQ.js";
2
+ import { _ as B, B as k, a as E, b as $ } from "./index-KOkHm1wc.js";
3
3
  import "element-plus";
4
4
  const y = { class: "card-header" }, N = { class: "card-btns" }, V = /* @__PURE__ */ d({
5
5
  __name: "Card",
@@ -0,0 +1,108 @@
1
+ import { defineComponent as S, ref as y, inject as u, watchEffect as x, onMounted as z, resolveComponent as I, openBlock as r, createElementBlock as s, Fragment as g, createElementVNode as k, normalizeStyle as L, renderList as T, createVNode as C, toDisplayString as D, createCommentVNode as v, createBlock as E, withCtx as N } from "vue";
2
+ import { $, I as K, b as P } from "./index-KOkHm1wc.js";
3
+ import { C as V } from "./CardListItem-CKntC7cg.js";
4
+ const j = /* @__PURE__ */ S({
5
+ __name: "CardList",
6
+ props: {
7
+ title: {},
8
+ key: {},
9
+ rulePath: {},
10
+ rowKey: {},
11
+ showDynamicSearch: { type: Boolean },
12
+ multipleSelection: { type: Boolean },
13
+ highlightCurrentRow: { type: Boolean },
14
+ "highlight-current-row": { type: Boolean },
15
+ stripe: { type: Boolean },
16
+ rowClick: {},
17
+ rowDbClick: {},
18
+ sizeChange: {},
19
+ pageChange: {},
20
+ topBtns: {},
21
+ rowBtns: {},
22
+ hidden: { type: Boolean },
23
+ hiddenPagination: { type: Boolean },
24
+ handleCurrentChange: {},
25
+ pageSizes: {},
26
+ defaultPageSize: {},
27
+ gridColumns: { default: 3 },
28
+ gap: { default: 16 },
29
+ footerText: {},
30
+ onClickFooter: {},
31
+ data: {},
32
+ columns: {}
33
+ },
34
+ setup(B) {
35
+ var f, h;
36
+ const t = B, a = y(), b = u("ruleModule", void 0), _ = u("pageMethodMap", {}), w = () => {
37
+ try {
38
+ b[t.onClickFooter](_, t.data);
39
+ } catch (e) {
40
+ console.error(e);
41
+ }
42
+ }, d = y([]), c = (f = t.columns.find((e) => e.position === "title")) == null ? void 0 : f.key, p = (h = t.columns.find((e) => e.position === "subTitle")) == null ? void 0 : h.key, i = t.columns.find((e) => e.position === "footer"), m = u($), n = m ? m.translateFn : null;
43
+ return x(() => {
44
+ t.data && (a.value = t.data.map((e) => {
45
+ const o = {
46
+ content: []
47
+ };
48
+ return c && (o.title = n ? n(c, e) : e[c]), p && (o.subTitle = n ? n(p, e) : e[p]), i && (o.footer = {
49
+ icon: i.footerIcon || "icon-tishi",
50
+ text: `${i.label}: ${n ? n(i.key, e) : e[i.key]}`
51
+ }), t.columns.forEach((l) => {
52
+ l.position === "content" && o.content.push({
53
+ label: l.label,
54
+ value: n ? n(l.key, e) : e[l.key]
55
+ });
56
+ }), o;
57
+ }));
58
+ }), z(() => {
59
+ var e;
60
+ d.value = (e = t.rowBtns) == null ? void 0 : e.map((o) => ({
61
+ icon: o.icon && o.icon.name ? o.icon.name : "icon-tishi",
62
+ label: o.label,
63
+ onClick: o.onClick
64
+ }));
65
+ }), (e, o) => {
66
+ const l = I("el-empty");
67
+ return r(), s(g, null, [
68
+ k("div", {
69
+ class: "card-list",
70
+ style: L({
71
+ "--columns": e.gridColumns,
72
+ "--gap": e.gap + "px"
73
+ })
74
+ }, [
75
+ (r(!0), s(g, null, T(a.value, (F, M) => (r(), s("div", {
76
+ class: "card-list-item",
77
+ key: M
78
+ }, [
79
+ C(V, {
80
+ data: F,
81
+ btns: d.value
82
+ }, null, 8, ["data", "btns"])
83
+ ]))), 128))
84
+ ], 4),
85
+ a.value && a.value.length > 0 ? (r(), s("div", {
86
+ key: 0,
87
+ class: "card-list-footer",
88
+ onClick: w
89
+ }, [
90
+ k("span", null, D(e.footerText), 1)
91
+ ])) : v("", !0),
92
+ !a.value || a.value.length === 0 ? (r(), E(l, {
93
+ key: 1,
94
+ description: "No data available, please check",
95
+ "image-size": 56
96
+ }, {
97
+ image: N(() => [
98
+ C(K, { name: "icon-morentu" })
99
+ ]),
100
+ _: 1
101
+ })) : v("", !0)
102
+ ], 64);
103
+ };
104
+ }
105
+ }), G = /* @__PURE__ */ P(j, [["__scopeId", "data-v-0fa6dc1b"]]);
106
+ export {
107
+ G as default
108
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, inject as c, resolveComponent as M, openBlock as s, createElementBlock as a, createElementVNode as e, normalizeStyle as r, toDisplayString as l, createCommentVNode as d, Fragment as m, renderList as _, createVNode as i, withCtx as g } from "vue";
2
- import { I as p, b as I } from "./index-BvOUGCFQ.js";
2
+ import { I as p, b as I } from "./index-KOkHm1wc.js";
3
3
  const w = { class: "card-list-item" }, B = { class: "card-list-item-header" }, L = { class: "card-list-item-header-title" }, N = {
4
4
  key: 0,
5
5
  class: "card-list-item-header-title__sub"
@@ -67,19 +67,19 @@ const w = { class: "card-list-item" }, B = { class: "card-list-item-header" }, L
67
67
  key: o.label
68
68
  }, [
69
69
  e("div", F, l(o.label) + ":", 1),
70
- e("div", S, l(o.value), 1)
70
+ e("div", S, l(o.value || "- -"), 1)
71
71
  ]))), 128))
72
72
  ]),
73
73
  t.data.footer ? (s(), a("div", j, [
74
74
  i(p, {
75
75
  name: t.data.footer.icon
76
76
  }, null, 8, ["name"]),
77
- e("span", z, l(t.data.footer.text), 1)
77
+ e("span", z, l(t.data.footer.text || "- -"), 1)
78
78
  ])) : d("", !0)
79
79
  ]);
80
80
  };
81
81
  }
82
- }), G = /* @__PURE__ */ I(D, [["__scopeId", "data-v-3cbc388d"]]);
82
+ }), G = /* @__PURE__ */ I(D, [["__scopeId", "data-v-7b912cd8"]]);
83
83
  export {
84
84
  G as C
85
85
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as y, createBlock as C, mergeProps as h, unref as r } from "vue";
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 V } from "./useSelect-BqqanrGo.js";
3
+ import { u as b } from "./useSelect-DnnrbcQO.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -14,7 +14,8 @@ const k = /* @__PURE__ */ f({
14
14
  dependentFields: {},
15
15
  name: { default: "" },
16
16
  onChange: {},
17
- read: { type: Boolean }
17
+ read: { type: Boolean },
18
+ clearable: { type: Boolean }
18
19
  }, {
19
20
  modelValue: {},
20
21
  modelModifiers: {}
@@ -28,10 +29,10 @@ const k = /* @__PURE__ */ f({
28
29
  } catch (o) {
29
30
  console.error(o);
30
31
  }
31
- }, { currentOptions: p, loading: m } = V(l);
32
+ }, { currentOptions: p, loading: m } = b(l);
32
33
  return (e, o) => {
33
- const i = M("el-cascader");
34
- return y(), C(i, h({
34
+ const i = y("el-cascader");
35
+ return M(), C(i, h({
35
36
  modelValue: t.value,
36
37
  "onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
37
38
  options: r(p),
@@ -1,13 +1,13 @@
1
- import { defineComponent as w, mergeModels as B, 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";
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-BvOUGCFQ.js";
4
- import { u as E } from "./useSelect-BqqanrGo.js";
3
+ import { u as j } from "./index-KOkHm1wc.js";
4
+ import { u as E } from "./useSelect-DnnrbcQO.js";
5
5
  const L = { key: 0 }, N = {
6
6
  key: 0,
7
7
  style: { "font-size": "12px" }
8
- }, A = /* @__PURE__ */ w({
8
+ }, A = /* @__PURE__ */ T({
9
9
  __name: "Checkbox",
10
- props: /* @__PURE__ */ B({
10
+ props: /* @__PURE__ */ w({
11
11
  options: { default: () => [] },
12
12
  mode: { default: "static" },
13
13
  labelKey: { default: "label" },
@@ -18,6 +18,7 @@ const L = { key: 0 }, N = {
18
18
  name: { default: "" },
19
19
  onChange: {},
20
20
  read: { type: Boolean },
21
+ clearable: { type: Boolean },
21
22
  optionType: { default: "circle" },
22
23
  direction: { default: "horizontal" },
23
24
  space: { default: 20 }
@@ -33,7 +34,7 @@ const L = { key: 0 }, N = {
33
34
  const K = u("el-checkbox"), C = u("el-checkbox-button"), _ = u("el-space"), V = u("el-checkbox-group"), z = M("loading");
34
35
  return a(g).read ? (l(), n("div", L, I((b = t.value) == null ? void 0 : b.map((o) => {
35
36
  var v;
36
- return (v = a(r).find((T) => T[e.valueKey] === o)) == null ? void 0 : v[e.labelKey];
37
+ return (v = a(r).find((B) => B[e.valueKey] === o)) == null ? void 0 : v[e.labelKey];
37
38
  }).join("、")), 1)) : (l(), n(d, { key: 1 }, [
38
39
  !a(r).length && !a(m) ? (l(), n("div", N, "暂无选项")) : i("", !0),
39
40
  P((l(), s(V, S(e.$attrs, {
@@ -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-BvOUGCFQ.js";
2
+ import { a as y } from "./index-KOkHm1wc.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({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, mergeModels as u, useModel as p, resolveComponent as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
- import { u as v } from "./index-BvOUGCFQ.js";
2
+ import { u as v } from "./index-KOkHm1wc.js";
3
3
  import "element-plus";
4
4
  const _ = { key: 0 }, K = /* @__PURE__ */ s({
5
5
  __name: "Component",
@@ -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-BvOUGCFQ.js";
2
+ import { u as V } from "./index-KOkHm1wc.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 $, 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-BvOUGCFQ.js";
2
+ import { b as H, u as K, c as Q } from "./index-KOkHm1wc.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, inject as h, ref as b, resolveComponent as C, openBlock as c, createBlock as m, mergeProps as B, withCtx as f, createElementVNode as a, toDisplayString as y, createElementBlock as _, createCommentVNode as k, Fragment as v, renderList as I, unref as P, withModifiers as V, createTextVNode as w } from "vue";
2
- import { f as E, I as F, b as j } from "./index-BvOUGCFQ.js";
2
+ import { f as E, I as F, b as j } from "./index-KOkHm1wc.js";
3
3
  import "element-plus";
4
4
  const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = { class: "tree-node-label" }, R = {
5
5
  key: 0,
@@ -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-BvOUGCFQ.js";
5
+ import { u as b, b as x } from "./index-KOkHm1wc.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-BvOUGCFQ.js";
3
+ import { _ as f } from "./index-KOkHm1wc.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -0,0 +1,108 @@
1
+ import { defineComponent as M, inject as C, ref as w, resolveComponent as V, openBlock as o, createElementBlock as s, createElementVNode as n, normalizeClass as h, createBlock as a, createCommentVNode as f, toDisplayString as $, Fragment as k, renderList as z, withCtx as v, createVNode as r, unref as d, Transition as A, withDirectives as D, vShow as E } from "vue";
2
+ import { I as i, B as F, a as y, b as N } from "./index-KOkHm1wc.js";
3
+ import "element-plus";
4
+ const S = { class: "crm-curd-card" }, j = { class: "left-part" }, L = { class: "title" }, R = { class: "right-part" }, T = /* @__PURE__ */ M({
5
+ __name: "CurdCard",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ onCollapsed: {},
10
+ title: {},
11
+ btns: {},
12
+ type: {},
13
+ mainIcon: {},
14
+ extraIcons: {}
15
+ },
16
+ setup(b) {
17
+ const p = C("ruleModule", void 0), _ = C("pageMethodMap", {}), c = (e) => {
18
+ if (e && p)
19
+ try {
20
+ p[e](_);
21
+ } catch (u) {
22
+ console.error(u);
23
+ }
24
+ }, I = () => {
25
+ m.onCollapsed && c(m.onCollapsed), t.value = !t.value;
26
+ }, t = w(!1), m = b;
27
+ return (e, u) => {
28
+ const g = V("el-tooltip");
29
+ return o(), s("div", S, [
30
+ n("div", {
31
+ class: h(["card-header", {
32
+ inline: e.type === "inline",
33
+ mix: e.type === "mix",
34
+ default: e.type === "default"
35
+ }])
36
+ }, [
37
+ n("div", j, [
38
+ e.mainIcon ? (o(), a(i, {
39
+ key: 0,
40
+ class: "title-icon",
41
+ size: "large",
42
+ name: e.mainIcon.name,
43
+ color: e.mainIcon.color
44
+ }, null, 8, ["name", "color"])) : f("", !0),
45
+ n("span", L, $(e.title), 1),
46
+ (o(!0), s(k, null, z(e.extraIcons, (l) => (o(), s(k, {
47
+ key: l.name
48
+ }, [
49
+ l.tips ? (o(), a(g, {
50
+ key: 0,
51
+ content: l.tips,
52
+ placement: "right",
53
+ class: "low-tsp"
54
+ }, {
55
+ default: v(() => [
56
+ r(i, {
57
+ class: "extra-icon",
58
+ name: l.name,
59
+ color: l.color,
60
+ onClick: (B) => c(l.onClick)
61
+ }, null, 8, ["name", "color", "onClick"])
62
+ ]),
63
+ _: 2
64
+ }, 1032, ["content"])) : (o(), a(i, {
65
+ key: 1,
66
+ class: "extra-icon",
67
+ name: l.name,
68
+ color: l.color,
69
+ onClick: (B) => c(l.onClick)
70
+ }, null, 8, ["name", "color", "onClick"]))
71
+ ], 64))), 128))
72
+ ]),
73
+ n("div", R, [
74
+ e.collapsible ? (o(), s("div", {
75
+ key: 0,
76
+ class: h(["collapse-icon-wrapper", { collapsed: t.value, mr16: Array.isArray(e.btns) && e.btns.length > 0 }]),
77
+ onClick: I
78
+ }, [
79
+ r(i, { name: "icon-shaixuan" })
80
+ ], 2)) : f("", !0),
81
+ r(d(F), {
82
+ btns: e.btns || []
83
+ }, null, 8, ["btns"])
84
+ ])
85
+ ], 2),
86
+ e.onCollapsed ? (o(), a(d(y), {
87
+ key: 1,
88
+ list: e.children
89
+ }, null, 8, ["list"])) : (o(), a(A, {
90
+ key: 0,
91
+ name: "collapse"
92
+ }, {
93
+ default: v(() => [
94
+ D(n("div", null, [
95
+ r(d(y), { list: e.children }, null, 8, ["list"])
96
+ ], 512), [
97
+ [E, !t.value]
98
+ ])
99
+ ]),
100
+ _: 1
101
+ }))
102
+ ]);
103
+ };
104
+ }
105
+ }), J = /* @__PURE__ */ N(T, [["__scopeId", "data-v-ff874b5a"]]);
106
+ export {
107
+ J as default
108
+ };
@@ -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-BvOUGCFQ.js";
2
+ import { b as i } from "./index-KOkHm1wc.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-BvOUGCFQ.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-KOkHm1wc.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-BvOUGCFQ.js";
2
+ import { a as m } from "./index-KOkHm1wc.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-BvOUGCFQ.js";
2
+ import { a as c, b as f } from "./index-KOkHm1wc.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-BvOUGCFQ.js";
2
+ import { b as xt, g as Nt } from "./index-KOkHm1wc.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-BvOUGCFQ.js";
2
+ import { u as j, d as h, e as k } from "./index-KOkHm1wc.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,