asiaint-lowcode 3.1.56 → 3.1.57

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 (47) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +191 -190
  4. package/dist/index.d.ts +376 -7
  5. package/dist/lazy/{Card-BlakHGF_.js → Card-DdWp3Dz9.js} +2 -2
  6. package/dist/lazy/{Cascader-BOwEQkqr.js → Cascader-BxsxfWZi.js} +1 -1
  7. package/dist/lazy/{Checkbox-1qYzxvx3.js → Checkbox-BPJjRDut.js} +2 -2
  8. package/dist/lazy/{Collapse-DFhQjGTg.js → Collapse-DMpWXH2D.js} +1 -1
  9. package/dist/lazy/{Component-uvnooS14.js → Component-BAb8Glyu.js} +2 -2
  10. package/dist/lazy/{Component-BybPseK_.js → Component-Bvb11i1A.js} +2 -2
  11. package/dist/lazy/{Component-BOC_tZaw.js → Component-Cq9v0YT0.js} +1 -1
  12. package/dist/lazy/{Component-D6OIJgBS.js → Component-DhRio0qv.js} +1 -1
  13. package/dist/lazy/{Component-DqTP-dqG.js → Component-haJrwEDP.js} +2 -2
  14. package/dist/lazy/Component-xrpa5QWJ.js +143 -0
  15. package/dist/lazy/{CurdCard-7elTeYSM.js → CurdCard-BqzAFbA5.js} +21 -20
  16. package/dist/lazy/Custom-EmbK57YY.js +26 -0
  17. package/dist/lazy/{DatePicker-vabWbXWk.js → DatePicker-BXnfk1Zr.js} +22 -20
  18. package/dist/lazy/{DragList-ptXtINib.js → DragList-DG75zaHa.js} +13 -13
  19. package/dist/lazy/{FilterSearch-DX7lyU5K.js → FilterSearch-BMF9jCxH.js} +8 -8
  20. package/dist/lazy/FloatCurd-D_OPcxR6.js +148 -0
  21. package/dist/lazy/{FormList-CQafRlf1.js → FormList-_S8br6_H.js} +1 -1
  22. package/dist/lazy/{Grid-BHXnN5tG.js → Grid-kruDCFf5.js} +1 -1
  23. package/dist/lazy/{InfiniteScroll-B9A8fTzl.js → InfiniteScroll-CtsW_oYO.js} +4 -4
  24. package/dist/lazy/{Inline-CLeU2_yh.js → Inline-5o19mIFm.js} +3 -3
  25. package/dist/lazy/{JsonEdit-CR8pc1r0.js → JsonEdit-DzAF4EKV.js} +3 -3
  26. package/dist/lazy/{LogList-C0n583jZ.js → LogList-DA4nYLDd.js} +7 -7
  27. package/dist/lazy/{ObjGroup-CWyMW8ok.js → ObjGroup-6YLhqnv5.js} +1 -1
  28. package/dist/lazy/{OfferDetails-Bk2fm7if.js → OfferDetails-BjMnexIs.js} +10 -8
  29. package/dist/lazy/{Pagination-BTgJMuH1.js → Pagination-DiXJ2GWc.js} +4 -4
  30. package/dist/lazy/{Progress-DbQWJ6ZF.js → Progress-DPzECwdm.js} +15 -15
  31. package/dist/lazy/{Radio-BFsZCzNl.js → Radio-D3XvuscY.js} +3 -3
  32. package/dist/lazy/{SearchSelect-CTNUhnXg.js → SearchSelect-D0-zUts-.js} +6 -6
  33. package/dist/lazy/{Select-CImoPfB1.js → Select-B1XcN6fN.js} +2 -2
  34. package/dist/lazy/Table-x-_aoAyQ.js +566 -0
  35. package/dist/lazy/Tabs-Bdc3ze7v.js +127 -0
  36. package/dist/lazy/TextArea-Crwzr10r.js +34 -0
  37. package/dist/lazy/{Wrapper-B4mdrBTT.js → Wrapper-DH0CbkLZ.js} +2 -2
  38. package/dist/lazy/{index-BMlHLc-c.js → index-DY31m1LD.js} +17331 -17110
  39. package/dist/lazy/{useSelect-DWF-2iPr.js → useSelect-Mr_5r7kL.js} +1 -1
  40. package/dist/style.css +2 -2
  41. package/global.d.ts +10 -10
  42. package/package.json +36 -36
  43. package/dist/lazy/Component-TyczCMR3.js +0 -120
  44. package/dist/lazy/Custom-CFg-E0l1.js +0 -26
  45. package/dist/lazy/Table-CQKjjRQt.js +0 -527
  46. package/dist/lazy/Tabs-Qh5RoptW.js +0 -72
  47. package/dist/lazy/TextArea-CHd9bsw8.js +0 -34
@@ -0,0 +1,143 @@
1
+ import { defineComponent as B, inject as v, ref as g, watch as E, useTemplateRef as I, readonly as P, onUnmounted as V, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as j, withCtx as k, createElementVNode as p, normalizeClass as K, toDisplayString as x, createElementBlock as f, createCommentVNode as C, Fragment as L, renderList as F, unref as z, withModifiers as D, createVNode as S } from "vue";
2
+ import { j as U, h as q, I as G, _ as H } from "./index-DY31m1LD.js";
3
+ import "element-plus";
4
+ const J = { class: "tree-node-text" }, O = ["title"], Q = {
5
+ key: 0,
6
+ class: "tree-node-present"
7
+ }, W = /* @__PURE__ */ B({
8
+ __name: "Component",
9
+ props: {
10
+ onNodeClick: {},
11
+ onCheckChange: {},
12
+ onLoad: {},
13
+ btns: {},
14
+ data: {},
15
+ props: {},
16
+ nodeKey: {},
17
+ styleType: {},
18
+ name: {}
19
+ },
20
+ setup(M, { expose: $ }) {
21
+ const o = M, a = v("ruleModule", void 0), u = v("pageMethodMap", {}), s = g(), b = (e, t) => {
22
+ s.value = e[o.nodeKey];
23
+ }, R = (e, t, r) => {
24
+ if (e && a)
25
+ try {
26
+ a[e](u, { node: t, data: r });
27
+ } catch (l) {
28
+ console.error(l + `
29
+ onNodeClick: ${o.onNodeClick}`);
30
+ }
31
+ }, T = (e, t) => {
32
+ if (o.onNodeClick && a)
33
+ try {
34
+ a[o.onNodeClick](u, { node: e, data: t });
35
+ } catch (r) {
36
+ console.error(r + `
37
+ onNodeClick: ${o.onNodeClick}`);
38
+ }
39
+ }, w = (e, t, r) => {
40
+ if (o.onLoad && a)
41
+ try {
42
+ a[o.onLoad](u, { node: e, resolve: t, reject: r });
43
+ } catch (l) {
44
+ console.error(l + `
45
+ onLoad: ${o.onLoad}`);
46
+ }
47
+ }, h = g([]);
48
+ E(
49
+ //默认展开根节点
50
+ () => o.data,
51
+ () => {
52
+ if (!o.data || !Array.isArray(o.data) || o.data.length === 0)
53
+ return;
54
+ const t = [o.data[0][o.nodeKey]];
55
+ h.value = t;
56
+ },
57
+ {
58
+ immediate: !0
59
+ }
60
+ );
61
+ const _ = I("treeRef"), N = P({
62
+ getCheckedNodes: () => {
63
+ var e;
64
+ return (e = _.value) == null ? void 0 : e.getCheckedNodes();
65
+ },
66
+ type: "tree"
67
+ });
68
+ if (o.name) {
69
+ const e = U(o.name, N);
70
+ V(() => {
71
+ e();
72
+ });
73
+ }
74
+ return $(N), (e, t) => {
75
+ const r = m("el-tooltip"), l = m("el-button"), A = m("el-tree");
76
+ return d(), y(A, j(e.$attrs, {
77
+ onNodeClick: T,
78
+ load: w,
79
+ ref_key: "treeRef",
80
+ ref: _,
81
+ class: ["crm-tree", { "modal-tree": e.styleType === "modal" }],
82
+ indent: 32,
83
+ "current-node-key": s.value,
84
+ onCurrentChange: b,
85
+ "node-key": e.nodeKey,
86
+ props: o.props,
87
+ data: e.data,
88
+ "default-expanded-keys": h.value
89
+ }), {
90
+ default: k(({ node: c, data: i }) => [
91
+ p("div", {
92
+ class: K(["custom-tree-node", { "modal-tree-node": e.styleType === "modal" }])
93
+ }, [
94
+ p("div", J, [
95
+ p("span", {
96
+ class: K(["tree-node-label", { active: i[e.nodeKey] === s.value && e.styleType === "modal" }]),
97
+ title: c.label
98
+ }, x(c.label), 11, O),
99
+ i[e.nodeKey] === s.value ? (d(), f("div", Q, "Present")) : C("", !0)
100
+ ]),
101
+ p("div", null, [
102
+ (d(!0), f(L, null, F(e.btns, (n) => (d(), f(L, {
103
+ key: n.key
104
+ }, [
105
+ z(q)(n.hidden, { $node: c, $data: i }) ? C("", !0) : (d(), y(l, {
106
+ key: 0,
107
+ link: "",
108
+ onClick: D((Y) => R(n.onClick || "", c, i), ["stop"]),
109
+ disabled: n.disabled,
110
+ type: n.type
111
+ }, {
112
+ default: k(() => [
113
+ S(r, {
114
+ class: "box-item",
115
+ effect: "dark",
116
+ content: n.text,
117
+ placement: "top"
118
+ }, {
119
+ default: k(() => [
120
+ n.icon ? (d(), y(G, {
121
+ key: 0,
122
+ name: n.icon.name,
123
+ color: n.icon.color,
124
+ class: "btn-icon"
125
+ }, null, 8, ["name", "color"])) : C("", !0)
126
+ ]),
127
+ _: 2
128
+ }, 1032, ["content"])
129
+ ]),
130
+ _: 2
131
+ }, 1032, ["onClick", "disabled", "type"]))
132
+ ], 64))), 128))
133
+ ])
134
+ ], 2)
135
+ ]),
136
+ _: 1
137
+ }, 16, ["class", "current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
138
+ };
139
+ }
140
+ }), te = /* @__PURE__ */ H(W, [["__scopeId", "data-v-524b29b2"]]);
141
+ export {
142
+ te as default
143
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as U, inject as M, ref as k, watch as A, resolveComponent as C, openBlock as o, createElementBlock as s, normalizeClass as m, normalizeStyle as O, createElementVNode as c, createBlock as p, createCommentVNode as u, toDisplayString as z, withCtx as v, Fragment as B, renderList as R, createTextVNode as q, createVNode as r, withKeys as G, unref as I, withDirectives as H, vShow as J } from "vue";
2
- import { u as Q, I as h, b as V, B as W, i as X, _ as Y } from "./index-BMlHLc-c.js";
1
+ import { defineComponent as U, inject as $, ref as k, watch as A, resolveComponent as f, openBlock as o, createElementBlock as s, normalizeClass as m, normalizeStyle as O, createElementVNode as c, createBlock as p, createCommentVNode as u, toDisplayString as M, withCtx as v, Fragment as B, renderList as R, createTextVNode as q, createVNode as r, withKeys as G, unref as I, withDirectives as H, vShow as J } from "vue";
2
+ import { u as Q, I as h, b as V, B as W, i as X, _ as Y } from "./index-DY31m1LD.js";
3
3
  import "element-plus";
4
4
  const Z = ["id"], x = { class: "left-part" }, ee = { class: "title" }, le = { class: "right-part" }, ae = { key: 0 }, oe = {
5
5
  key: 1,
@@ -30,7 +30,7 @@ const Z = ["id"], x = { class: "left-part" }, ee = { class: "title" }, le = { cl
30
30
  searchInputChange: {}
31
31
  },
32
32
  setup(D) {
33
- const t = M("ruleModule", void 0), y = M("pageMethodMap", {}), T = k(""), n = D, b = k(n.radioDefault ?? "2"), _ = (e) => {
33
+ const t = $("ruleModule", void 0), y = $("pageMethodMap", {}), T = k(""), n = D, b = k(n.radioDefault ?? "2"), z = (e) => {
34
34
  if (e && t)
35
35
  try {
36
36
  t[e](y);
@@ -49,21 +49,21 @@ funcName: ${e}`);
49
49
  i.value = n.defaultCollapse ?? !1;
50
50
  }
51
51
  );
52
- const f = k(n.displayType || (n.typeSwitch ? "card" : "table")), P = Q(), S = (e) => {
53
- f.value = e;
52
+ const C = k(n.displayType || (n.typeSwitch ? "card" : "table")), P = Q(), S = (e) => {
53
+ C.value = e;
54
54
  const a = X(P.schema.items, n.name), g = (w) => {
55
55
  w.forEach((d) => {
56
56
  d.component === "Table" && d.props && (d.props.displayType = e), d.children && d.children.length > 0 && g(d.children);
57
57
  });
58
58
  };
59
59
  a && a.children && g(a.children);
60
- }, $ = (e) => {
60
+ }, _ = (e) => {
61
61
  n.handleSearch && t && t[n.handleSearch](y, e);
62
62
  }, j = (e) => {
63
63
  n.searchInputChange && t && t[n.searchInputChange](y, e);
64
64
  };
65
- return S(f.value), (e, a) => {
66
- const g = C("el-radio"), w = C("el-radio-group"), d = C("el-tooltip"), E = C("el-input"), F = C("el-collapse-transition");
65
+ return S(C.value), (e, a) => {
66
+ const g = f("el-radio"), w = f("el-radio-group"), d = f("el-tooltip"), E = f("el-input"), F = f("el-collapse-transition");
67
67
  return o(), s("div", {
68
68
  class: m(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
69
69
  style: O(e.style),
@@ -75,6 +75,7 @@ funcName: ${e}`);
75
75
  mix: e.type === "mix",
76
76
  default: e.type === "default",
77
77
  gridItem: e.type === "gridItem",
78
+ advanceSearch: e.type === "advanceSearch",
78
79
  collapsedPadding: i.value && e.onCollapsed,
79
80
  "has-search-input": e.hasSearchInput
80
81
  }])
@@ -87,7 +88,7 @@ funcName: ${e}`);
87
88
  name: e.mainIcon.name,
88
89
  color: e.mainIcon.color
89
90
  }, null, 8, ["name", "color"])) : u("", !0),
90
- c("span", ee, z(e.title), 1),
91
+ c("span", ee, M(e.title), 1),
91
92
  e.radioList ? (o(), p(w, {
92
93
  key: 1,
93
94
  class: "ml-9",
@@ -101,7 +102,7 @@ funcName: ${e}`);
101
102
  key: l.value
102
103
  }, {
103
104
  default: v(() => [
104
- q(z(l.label), 1)
105
+ q(M(l.label), 1)
105
106
  ]),
106
107
  _: 2
107
108
  }, 1032, ["value"]))), 128))
@@ -121,7 +122,7 @@ funcName: ${e}`);
121
122
  class: "extra-icon",
122
123
  name: l.name,
123
124
  color: l.color,
124
- onClick: (K) => _(l.onClick)
125
+ onClick: (K) => z(l.onClick)
125
126
  }, null, 8, ["name", "color", "onClick"])
126
127
  ]),
127
128
  _: 2
@@ -130,8 +131,9 @@ funcName: ${e}`);
130
131
  class: "extra-icon",
131
132
  name: l.name,
132
133
  color: l.color,
133
- onClick: (K) => _(l.onClick)
134
- }, null, 8, ["name", "color", "onClick"]))
134
+ size: l.size,
135
+ onClick: (K) => z(l.onClick)
136
+ }, null, 8, ["name", "color", "size", "onClick"]))
135
137
  ], 64))), 128))
136
138
  ]),
137
139
  e.hasSearchInput ? (o(), s("div", {
@@ -142,9 +144,8 @@ funcName: ${e}`);
142
144
  modelValue: T.value,
143
145
  "onUpdate:modelValue": a[2] || (a[2] = (l) => T.value = l),
144
146
  placeholder: e.searchPlaceholder,
145
- size: "large",
146
147
  onInput: j,
147
- onKeyup: G($, ["enter"])
148
+ onKeyup: G(_, ["enter"])
148
149
  }, {
149
150
  prefix: v(() => a[5] || (a[5] = [])),
150
151
  suffix: v(() => [
@@ -152,8 +153,8 @@ funcName: ${e}`);
152
153
  class: "cursor-pointer",
153
154
  name: "icon-lujing2",
154
155
  color: "#666666",
155
- size: "normal",
156
- onClick: $
156
+ size: "small",
157
+ onClick: _
157
158
  })
158
159
  ]),
159
160
  _: 1
@@ -165,13 +166,13 @@ funcName: ${e}`);
165
166
  ])) : u("", !0),
166
167
  e.typeSwitch ? (o(), s("div", oe, [
167
168
  c("div", {
168
- class: m(["switch-icon-wrapper", { active: f.value === "card" }]),
169
+ class: m(["switch-icon-wrapper", { active: C.value === "card" }]),
169
170
  onClick: a[3] || (a[3] = (l) => S("card"))
170
171
  }, [
171
172
  r(h, { name: "icon-kapian" })
172
173
  ], 2),
173
174
  c("div", {
174
- class: m(["switch-icon-wrapper", { active: f.value === "table" }]),
175
+ class: m(["switch-icon-wrapper", { active: C.value === "table" }]),
175
176
  onClick: a[4] || (a[4] = (l) => S("table"))
176
177
  }, [
177
178
  r(h, { name: "icon-biaoge" })
@@ -207,7 +208,7 @@ funcName: ${e}`);
207
208
  ], 14, Z);
208
209
  };
209
210
  }
210
- }), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-c39628c7"]]);
211
+ }), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-c360f8f2"]]);
211
212
  export {
212
213
  de as default
213
214
  };
@@ -0,0 +1,26 @@
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 { _ as i } from "./index-DY31m1LD.js";
3
+ const f = {
4
+ key: 0,
5
+ class: "empty"
6
+ }, _ = /* @__PURE__ */ n({
7
+ __name: "Custom",
8
+ props: /* @__PURE__ */ s({
9
+ componentName: {}
10
+ }, {
11
+ modelValue: {},
12
+ modelModifiers: {}
13
+ }),
14
+ emits: ["update:modelValue"],
15
+ setup(a) {
16
+ const o = p(a, "modelValue");
17
+ return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
18
+ key: 1,
19
+ modelValue: o.value,
20
+ "onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
21
+ }, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
22
+ }
23
+ }), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
24
+ export {
25
+ v as default
26
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as C, mergeModels as y, useModel as M, useAttrs as k, computed as n, inject as u, resolveComponent as I, openBlock as d, createElementBlock as E, toDisplayString as _, createBlock as S, mergeProps as V } from "vue";
2
- import { dayjs as D } from "element-plus";
3
- import { u as B } from "./index-BMlHLc-c.js";
4
- const w = { key: 0 }, j = /* @__PURE__ */ C({
1
+ import { defineComponent as y, mergeModels as M, useModel as k, useAttrs as D, computed as l, inject as u, resolveComponent as I, openBlock as i, createElementBlock as E, toDisplayString as _, createBlock as S, mergeProps as V } from "vue";
2
+ import { dayjs as b } from "element-plus";
3
+ import { u as B } from "./index-DY31m1LD.js";
4
+ const F = { key: 0 }, j = /* @__PURE__ */ y({
5
5
  __name: "DatePicker",
6
- props: /* @__PURE__ */ y({
6
+ props: /* @__PURE__ */ M({
7
7
  onChange: {},
8
8
  onInput: {},
9
9
  onEnter: {},
@@ -12,14 +12,15 @@ const w = { key: 0 }, j = /* @__PURE__ */ C({
12
12
  readTextColor: {},
13
13
  onClick: {},
14
14
  defaultStartTime: {},
15
- defaultEndTime: {}
15
+ defaultEndTime: {},
16
+ disabledDate: {}
16
17
  }, {
17
18
  modelValue: {},
18
19
  modelModifiers: {}
19
20
  }),
20
21
  emits: ["update:modelValue"],
21
- setup(l) {
22
- const t = M(l, "modelValue"), e = l, r = k(), i = n(() => {
22
+ setup(r) {
23
+ const a = k(r, "modelValue"), e = r, d = D(), m = l(() => {
23
24
  if (e.defaultStartTime && e.defaultEndTime)
24
25
  return [
25
26
  new Date(
@@ -39,29 +40,30 @@ const w = { key: 0 }, j = /* @__PURE__ */ C({
39
40
  parseInt(e.defaultEndTime.split(":")[2])
40
41
  )
41
42
  ];
42
- }), m = B(), p = n(() => e.read || m.schema.read), c = n(() => t.value ? r.valueFormat ? D(t.value).format(r.valueFormat) : t.value : "--"), f = [
43
+ }), p = B(), c = l(() => e.read || p.schema.read), f = l(() => a.value ? d.valueFormat ? b(a.value).format(d.valueFormat) : a.value : "--"), h = [
43
44
  {
44
45
  text: "Today",
45
46
  value: /* @__PURE__ */ new Date()
46
47
  }
47
- ], s = u("ruleModule", void 0), h = u("pageMethodMap", {}), v = (a) => {
48
- if (console.log("zytest-----handleChange", a), e.onChange && s)
48
+ ], n = u("ruleModule", void 0), s = u("pageMethodMap", {}), v = (t) => {
49
+ if (console.log("zytest-----handleChange", t), e.onChange && n)
49
50
  try {
50
- s[e.onChange](h, a);
51
+ n[e.onChange](s, t);
51
52
  } catch (o) {
52
53
  console.error(o + `
53
54
  onChange: ${e.onChange}`);
54
55
  }
55
- };
56
- return (a, o) => {
57
- const g = I("el-date-picker");
58
- return p.value ? (d(), E("span", w, _(c.value), 1)) : (d(), S(g, V({ key: 1 }, a.$attrs, {
59
- modelValue: t.value,
60
- "onUpdate:modelValue": o[0] || (o[0] = (T) => t.value = T),
56
+ }, g = (t) => e.disabledDate ? n[e.disabledDate](s, t) : !1;
57
+ return (t, o) => {
58
+ const T = I("el-date-picker");
59
+ return c.value ? (i(), E("span", F, _(f.value), 1)) : (i(), S(T, V({ key: 1 }, t.$attrs, {
60
+ modelValue: a.value,
61
+ "onUpdate:modelValue": o[0] || (o[0] = (C) => a.value = C),
61
62
  style: { width: "100%" },
62
- shortcuts: f,
63
+ shortcuts: h,
64
+ "disabled-date": g,
63
65
  onChange: v,
64
- "default-time": i.value
66
+ "default-time": m.value
65
67
  }), null, 16, ["modelValue", "default-time"]));
66
68
  };
67
69
  }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as J, reactive as F, ref as T, onBeforeMount as le, onMounted as ie, nextTick as h, onBeforeUnmount as re, watch as c, provide as j, toRefs as q, openBlock as R, createElementBlock as A, normalizeStyle as ne, renderSlot as O, Fragment as se, renderList as ue, createBlock as K, mergeProps as de, withCtx as Q, withDirectives as ce, createVNode as Z, vShow as me, mergeModels as ge, useModel as pe, onUnmounted as ye, unref as X, readonly as Y } from "vue";
2
- import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as Be, q as G, x as be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, b as Ie, _ as Ne } from "./index-BMlHLc-c.js";
2
+ import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as be, q as G, x as Be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, b as Ie, _ as Ne } from "./index-DY31m1LD.js";
3
3
  import "element-plus";
4
4
  const $e = /* @__PURE__ */ J({
5
5
  __name: "grid-layout",
@@ -169,39 +169,39 @@ const $e = /* @__PURE__ */ J({
169
169
  function te() {
170
170
  if (!a.autoSize) return;
171
171
  const e = parseFloat(a.margin[1]);
172
- return Be(o.value) * (a.rowHeight + e) + e + "px";
172
+ return be(o.value) * (a.rowHeight + e) + e + "px";
173
173
  }
174
174
  let _;
175
175
  function U(e, n, r, v, g, p) {
176
176
  let l = G(o.value, n);
177
177
  C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" }), e === "dragstart" && !a.verticalCompact && (_ = o.value.reduce(
178
- (b, { i: S, x: f, y: B }) => ({
179
- ...b,
180
- [S]: { x: f, y: B }
178
+ (B, { i: S, x: f, y: b }) => ({
179
+ ...B,
180
+ [S]: { x: f, y: b }
181
181
  }),
182
182
  {}
183
183
  )), e === "dragmove" || e === "dragstart" ? (t.placeholder.i = n, t.placeholder.x = l.x, t.placeholder.y = l.y, t.placeholder.w = p, t.placeholder.h = g, h(() => {
184
184
  t.isDragging = !0;
185
185
  }), i.emit("updateWidth", t.width)) : h(() => {
186
186
  t.isDragging = !1;
187
- }), o.value = be(o.value, l, r, v, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, k(o.value, a.verticalCompact, _), l.static = !1) : k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "dragend" && (_ = void 0, d("layout-updated", o.value));
187
+ }), o.value = Be(o.value, l, r, v, !0, a.preventCollision), a.restoreOnDrag ? (l.static = !0, k(o.value, a.verticalCompact, _), l.static = !1) : k(o.value, a.verticalCompact), i.emit("compact"), x(), e === "dragend" && (_ = void 0, d("layout-updated", o.value));
188
188
  }
189
189
  function V(e, n, r, v, g, p) {
190
190
  let l = G(o.value, n);
191
191
  C(l) && (l = { h: 0, w: 0, x: 0, y: 0, i: "" });
192
- let b;
192
+ let B;
193
193
  if (a.preventCollision) {
194
194
  const S = ke(o.value, { ...l, w: p, h: g }).filter(
195
195
  (f) => f.i !== l.i
196
196
  );
197
- if (b = S.length > 0, b) {
198
- let f = 1 / 0, B = 1 / 0;
197
+ if (B = S.length > 0, B) {
198
+ let f = 1 / 0, b = 1 / 0;
199
199
  S.forEach((z) => {
200
- z.x > l.x && (f = Math.min(f, z.x)), z.y > l.y && (B = Math.min(B, z.y));
201
- }), Number.isFinite(f) && (l.w = f - l.x), Number.isFinite(B) && (l.h = B - l.y);
200
+ z.x > l.x && (f = Math.min(f, z.x)), z.y > l.y && (b = Math.min(b, z.y));
201
+ }), Number.isFinite(f) && (l.w = f - l.x), Number.isFinite(b) && (l.h = b - l.y);
202
202
  }
203
203
  }
204
- b || (l.w = p, l.h = g), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = v, t.placeholder.w = l.w, t.placeholder.h = l.h, h(() => {
204
+ B || (l.w = p, l.h = g), e === "resizestart" || e === "resizemove" ? (t.placeholder.i = n, t.placeholder.x = r, t.placeholder.y = v, t.placeholder.w = l.w, t.placeholder.h = l.h, h(() => {
205
205
  t.isDragging = !0;
206
206
  }), i.emit("updateWidth", t.width)) : e && h(() => {
207
207
  t.isDragging = !1;
@@ -326,7 +326,7 @@ onMoved: ${w.onMoved}`);
326
326
  _: 1
327
327
  }, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
328
328
  }
329
- }), Ve = /* @__PURE__ */ Ne(Ee, [["__scopeId", "data-v-869881f7"]]);
329
+ }), Ve = /* @__PURE__ */ Ne(Ee, [["__scopeId", "data-v-f58dab66"]]);
330
330
  export {
331
331
  Ve as default
332
332
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as M, ref as m, readonly as K, onUnmounted as U, resolveComponent as c, openBlock as f, createElementBlock as _, createElementVNode as u, createVNode as o, withKeys as j, withModifiers as E, withCtx as i, Fragment as N, renderList as R, createBlock as D, normalizeClass as L, withDirectives as $, unref as q, vShow as A } from "vue";
2
- import { c as G, j as H, I as C, b as J, _ as O } from "./index-BMlHLc-c.js";
2
+ import { c as G, j as H, I as C, b as J, _ as O } from "./index-DY31m1LD.js";
3
3
  import "element-plus";
4
4
  const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
5
5
  __name: "FilterSearch",
@@ -21,13 +21,13 @@ const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
21
21
  }
22
22
  }, t = m(""), w = (e) => {
23
23
  t.value = e;
24
- }, x = () => t.value, b = (e) => {
24
+ }, x = () => t.value, k = (e) => {
25
25
  try {
26
26
  p[a.onSearchTypeChange](h, e);
27
27
  } catch (l) {
28
28
  console.error(l);
29
29
  }
30
- }, k = (e) => {
30
+ }, I = (e) => {
31
31
  if (a.onChange)
32
32
  try {
33
33
  p[a.onChange](h, e);
@@ -40,7 +40,7 @@ const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
40
40
  } catch (e) {
41
41
  console.error(e);
42
42
  }
43
- }, I = () => {
43
+ }, b = () => {
44
44
  r.value = !r.value;
45
45
  }, { ruleModule: p, pageMethodMap: h } = G(), y = K({
46
46
  setSearchValue: w,
@@ -67,7 +67,7 @@ const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
67
67
  onKeyup: j(E(v, ["stop"]), ["enter"]),
68
68
  class: "filter-search-input",
69
69
  clearable: !0,
70
- onInput: k
70
+ onInput: I
71
71
  }, {
72
72
  prefix: i(() => [
73
73
  o(z, {
@@ -75,7 +75,7 @@ const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
75
75
  "onUpdate:modelValue": l[0] || (l[0] = (n) => s.value = n),
76
76
  size: "small",
77
77
  class: "filter-search-select",
78
- onChange: b
78
+ onChange: k
79
79
  }, {
80
80
  default: i(() => [
81
81
  (f(!0), _(N, null, R(e.searchTypes, (n) => (f(), D(d, {
@@ -100,7 +100,7 @@ const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
100
100
  }, 8, ["modelValue", "placeholder", "onKeyup"]),
101
101
  u("div", {
102
102
  class: L(["filter-wrapper", { active: !r.value }]),
103
- onClick: I
103
+ onClick: b
104
104
  }, [
105
105
  o(C, {
106
106
  name: "icon-shaixuan",
@@ -122,7 +122,7 @@ const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
122
122
  ]);
123
123
  };
124
124
  }
125
- }), Z = /* @__PURE__ */ O(Q, [["__scopeId", "data-v-28f25b88"]]);
125
+ }), Z = /* @__PURE__ */ O(Q, [["__scopeId", "data-v-1a0dd89e"]]);
126
126
  export {
127
127
  Z as default
128
128
  };
@@ -0,0 +1,148 @@
1
+ import { defineComponent as P, ref as F, computed as z, onUnmounted as A, resolveComponent as N, openBlock as i, createElementBlock as b, createElementVNode as n, createVNode as a, withCtx as c, createTextVNode as g, withDirectives as E, toDisplayString as k, unref as G, vShow as R, Fragment as U, renderList as L, createBlock as M, createCommentVNode as S } from "vue";
2
+ import { c as H, u as J, i as D, j as K, I as u, b as O, _ as Q } from "./index-DY31m1LD.js";
3
+ import { dayjs as W } from "element-plus";
4
+ const X = { class: "float-curd" }, Z = { class: "curd-body" }, ee = { class: "gradient-input-wrapper" }, oe = { class: "float-form" }, ne = { class: "float-form-header" }, te = { class: "float-form-header-title" }, le = { class: "float-form-header-btns" }, ae = { class: "float-form-body" }, se = { class: "curd-footer" }, re = /* @__PURE__ */ P({
5
+ __name: "FloatCurd",
6
+ props: {
7
+ name: {},
8
+ children: {},
9
+ formTitle: {},
10
+ onSearch: {},
11
+ inputPlaceholder: {}
12
+ },
13
+ setup(w, { expose: B }) {
14
+ const m = w, d = F(!1), { ruleModule: T, pageMethodMap: Y } = H(), v = J(), $ = z(() => {
15
+ var o, h, V, I;
16
+ const t = v.schema.items, e = v.formValues, s = D(t, m.name);
17
+ if (!s || !s.children)
18
+ return [];
19
+ const f = [];
20
+ for (const x in e) {
21
+ const l = D(s.children, x);
22
+ if (l && l.label) {
23
+ const r = e[x];
24
+ if (r != null && r !== "") {
25
+ const p = {
26
+ name: l.name,
27
+ label: l.label,
28
+ value: r,
29
+ closeable: !l.required
30
+ };
31
+ l.component === "DatePicker" && (p.iconName = "icon-rili", p.value = W(r).format(((o = l.props) == null ? void 0 : o.valueFormat) || "YYYY-MM-DD")), l.component === "Select" && (p.value = (I = (V = (h = l.props) == null ? void 0 : h.options) == null ? void 0 : V.find((q) => q.value === r)) == null ? void 0 : I.label), f.push(p);
32
+ }
33
+ }
34
+ }
35
+ return f;
36
+ }), _ = F("");
37
+ function y() {
38
+ try {
39
+ T[m.onSearch](Y, _.value);
40
+ } catch (t) {
41
+ console.error(t);
42
+ }
43
+ }
44
+ function j(t) {
45
+ v.setFieldValue(t.name, "", "");
46
+ }
47
+ const C = {
48
+ type: "floatcurd"
49
+ };
50
+ if (B(C), m.name) {
51
+ const t = K(m.name, C);
52
+ A(() => {
53
+ t();
54
+ });
55
+ }
56
+ return (t, e) => {
57
+ const s = N("el-button"), f = N("el-input");
58
+ return i(), b("div", X, [
59
+ n("div", Z, [
60
+ n("div", ee, [
61
+ a(f, {
62
+ placeholder: t.inputPlaceholder,
63
+ modelValue: _.value,
64
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => _.value = o)
65
+ }, {
66
+ prefix: c(() => [
67
+ a(u, { name: "icon-a-mobang1" }),
68
+ e[3] || (e[3] = n("span", { class: "prefix-text" }, "Ask AI", -1))
69
+ ]),
70
+ suffix: c(() => [
71
+ a(s, {
72
+ type: "primary",
73
+ size: "small",
74
+ onClick: y
75
+ }, {
76
+ default: c(() => e[4] || (e[4] = [
77
+ g("Go")
78
+ ])),
79
+ _: 1
80
+ })
81
+ ]),
82
+ _: 1
83
+ }, 8, ["placeholder", "modelValue"])
84
+ ]),
85
+ a(s, {
86
+ plain: !0,
87
+ onClick: e[1] || (e[1] = (o) => d.value = !d.value),
88
+ class: "more-btn"
89
+ }, {
90
+ default: c(() => [
91
+ a(u, { name: "icon-tiaojianshaixuan" }),
92
+ e[5] || (e[5] = n("span", null, "More", -1))
93
+ ]),
94
+ _: 1
95
+ }),
96
+ E(n("div", oe, [
97
+ n("div", ne, [
98
+ n("div", te, k(t.formTitle), 1),
99
+ n("div", le, [
100
+ a(s, {
101
+ type: "primary",
102
+ size: "small",
103
+ onClick: y
104
+ }, {
105
+ default: c(() => e[6] || (e[6] = [
106
+ g("Go")
107
+ ])),
108
+ _: 1
109
+ }),
110
+ a(u, {
111
+ name: "icon-a-rongqi1",
112
+ onClick: e[2] || (e[2] = (o) => d.value = !1)
113
+ })
114
+ ])
115
+ ]),
116
+ n("div", ae, [
117
+ a(G(O), { list: t.children }, null, 8, ["list"])
118
+ ])
119
+ ], 512), [
120
+ [R, d.value]
121
+ ])
122
+ ]),
123
+ n("div", se, [
124
+ (i(!0), b(U, null, L($.value, (o) => (i(), b("div", {
125
+ class: "tag",
126
+ key: o.name
127
+ }, [
128
+ o.iconName ? (i(), M(u, {
129
+ key: 0,
130
+ name: o.iconName
131
+ }, null, 8, ["name"])) : S("", !0),
132
+ n("span", null, k(o.label) + ":", 1),
133
+ n("span", null, k(o.value), 1),
134
+ o.closeable ? (i(), M(u, {
135
+ key: 1,
136
+ name: "icon-a-rongqi1",
137
+ onClick: (h) => j(o),
138
+ class: "close-icon"
139
+ }, null, 8, ["onClick"])) : S("", !0)
140
+ ]))), 128))
141
+ ])
142
+ ]);
143
+ };
144
+ }
145
+ }), me = /* @__PURE__ */ Q(re, [["__scopeId", "data-v-3850d35a"]]);
146
+ export {
147
+ me as default
148
+ };