asiaint-lowcode 3.1.20 → 3.1.21

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 (39) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +113 -113
  3. package/dist/index.d.ts +2 -0
  4. package/dist/lazy/{Card-DUeA7tS7.js → Card-DP_im0t0.js} +1 -1
  5. package/dist/lazy/{Cascader-By4JG0Zk.js → Cascader-Bymky24b.js} +1 -1
  6. package/dist/lazy/{Checkbox-bIhIq9Vy.js → Checkbox-eq-syYnm.js} +2 -2
  7. package/dist/lazy/{Collapse-CU9pt7lM.js → Collapse-CtBwlWmC.js} +1 -1
  8. package/dist/lazy/{Component-ji09Ho4V.js → Component-BjTiydgq.js} +1 -1
  9. package/dist/lazy/{Component-COne-qtJ.js → Component-CvLIZQ8-.js} +1 -1
  10. package/dist/lazy/{Component-DD1yYUwx.js → Component-DhpjEfpC.js} +1 -1
  11. package/dist/lazy/{Component-ovbFedRc.js → Component-DzP4ePYA.js} +1 -1
  12. package/dist/lazy/{Component-CiRhyD96.js → Component-arXOIAcw.js} +1 -1
  13. package/dist/lazy/{Component-CYK98tOs.js → Component-mJhYJo7Y.js} +1 -1
  14. package/dist/lazy/CurdCard-BLRicN8s.js +206 -0
  15. package/dist/lazy/{Custom-f5P-W0RO.js → Custom-l010DzNp.js} +1 -1
  16. package/dist/lazy/{DatePicker-DXBHD93w.js → DatePicker-BVlaRwaH.js} +1 -1
  17. package/dist/lazy/{DragList-B1hCgkPo.js → DragList-DgHMldOj.js} +1 -1
  18. package/dist/lazy/FilterSearch-DeDhZJ9X.js +149 -0
  19. package/dist/lazy/{FormList-DKVnGMCb.js → FormList-CAhLwu-f.js} +1 -1
  20. package/dist/lazy/{Grid-DyYDGCUL.js → Grid-DTC6W7rx.js} +1 -1
  21. package/dist/lazy/{Inline-lozK8MNz.js → Inline-DIisEVxD.js} +1 -1
  22. package/dist/lazy/{JsonEdit-B7RNvAKc.js → JsonEdit-BuB4Cyjp.js} +1 -1
  23. package/dist/lazy/{LogList-BpIXnYrM.js → LogList-CUKZE5YZ.js} +1 -1
  24. package/dist/lazy/{ObjGroup-BnqOtXse.js → ObjGroup-r41RqIB5.js} +1 -1
  25. package/dist/lazy/{OfferDetails-COAwm0zQ.js → OfferDetails-CDw1FUji.js} +1 -1
  26. package/dist/lazy/{Pagination-Dy2-eb4H.js → Pagination-B3I40w4b.js} +1 -1
  27. package/dist/lazy/{Progress-CmOxnBQX.js → Progress-CbKa3A52.js} +1 -1
  28. package/dist/lazy/{Radio-CDPyWQB6.js → Radio-50G6EN-w.js} +2 -2
  29. package/dist/lazy/{SearchSelect-C532P8CM.js → SearchSelect-hVJIPM-X.js} +2 -2
  30. package/dist/lazy/{Select-BUXxtpdm.js → Select-CBJMdEem.js} +2 -2
  31. package/dist/lazy/{Table-CTfkRsyF.js → Table-_aDuQdYX.js} +1 -1
  32. package/dist/lazy/{Tabs-C_hdBA1i.js → Tabs-o0SIg45e.js} +1 -1
  33. package/dist/lazy/{Wrapper-D_J12fAp.js → Wrapper-B2kzkjgz.js} +1 -1
  34. package/dist/lazy/{index-Fgpo2Weq.js → index-6IzTZ8mI.js} +438 -418
  35. package/dist/lazy/{useSelect-CFf27TOg.js → useSelect-CIXrOFmJ.js} +1 -1
  36. package/dist/style.css +2 -2
  37. package/package.json +1 -1
  38. package/dist/lazy/CurdCard-ohFL5KOI.js +0 -199
  39. package/dist/lazy/FilterSearch-C0Gb4sax.js +0 -140
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.20",
3
+ "version": "3.1.21",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,199 +0,0 @@
1
- import { defineComponent as K, inject as M, ref as k, resolveComponent as y, openBlock as a, createElementBlock as t, normalizeClass as h, normalizeStyle as U, createElementVNode as d, createBlock as c, createCommentVNode as p, toDisplayString as z, withCtx as v, Fragment as B, renderList as R, createTextVNode as A, createVNode as s, unref as g, withKeys as O, withDirectives as q, vShow as G } from "vue";
2
- import { u as H, I as u, a as V, B as J, i as Q, b as W } from "./index-Fgpo2Weq.js";
3
- import "element-plus";
4
- const X = ["id"], Y = { class: "left-part" }, Z = { class: "title" }, x = { class: "right-part" }, ee = { key: 0 }, le = {
5
- key: 1,
6
- class: "switch-panel"
7
- }, oe = { key: 3 }, ae = /* @__PURE__ */ K({
8
- __name: "CurdCard",
9
- props: {
10
- name: {},
11
- children: {},
12
- defaultCollapse: { type: Boolean },
13
- collapsible: { type: Boolean },
14
- onCollapsed: {},
15
- typeSwitch: { type: Boolean },
16
- title: {},
17
- btns: {},
18
- type: {},
19
- mainIcon: {},
20
- extraIcons: {},
21
- displayType: {},
22
- radioList: {},
23
- onRadioChange: {},
24
- radioDefault: {},
25
- formSlots: {},
26
- style: { type: [Boolean, null, String, Object, Array] },
27
- hasSearchInput: { type: Boolean },
28
- searchPlaceholder: {}
29
- },
30
- setup(D) {
31
- const m = M("ruleModule", void 0), I = M("pageMethodMap", {}), T = k(""), n = D, b = k(n.radioDefault ?? "2"), _ = (e) => {
32
- if (e && m)
33
- try {
34
- m[e](I);
35
- } catch (o) {
36
- console.error(o + `
37
- funcName: ${e}`);
38
- }
39
- }, L = (e) => {
40
- n.onRadioChange && m && m[n.onRadioChange](I, e);
41
- }, N = () => {
42
- r.value = !r.value, n.onCollapsed && m && m[n.onCollapsed](I, r.value);
43
- }, r = k(n.defaultCollapse ?? !1), f = k(n.displayType || (n.typeSwitch ? "card" : "table")), P = H(), w = (e) => {
44
- f.value = e;
45
- const o = Q(P.schema.items, n.name), C = (S) => {
46
- S.forEach((i) => {
47
- i.component === "Table" && i.props && (i.props.displayType = e), i.children && i.children.length > 0 && C(i.children);
48
- });
49
- };
50
- o && o.children && C(o.children);
51
- }, $ = () => {
52
- };
53
- return w(f.value), (e, o) => {
54
- const C = y("el-radio"), S = y("el-radio-group"), i = y("el-tooltip"), j = y("el-input"), E = y("el-collapse-transition");
55
- return a(), t("div", {
56
- class: h(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
57
- style: U(e.style),
58
- id: e.name
59
- }, [
60
- d("div", {
61
- class: h(["card-header", {
62
- inline: e.type === "inline",
63
- mix: e.type === "mix",
64
- default: e.type === "default",
65
- gridItem: e.type === "gridItem",
66
- collapsedPadding: r.value && e.onCollapsed || e.hasSearchInput
67
- }])
68
- }, [
69
- d("div", Y, [
70
- e.mainIcon ? (a(), c(u, {
71
- key: 0,
72
- class: "title-icon",
73
- size: "large",
74
- name: e.mainIcon.name,
75
- color: e.mainIcon.color
76
- }, null, 8, ["name", "color"])) : p("", !0),
77
- d("span", Z, z(e.title), 1),
78
- e.radioList ? (a(), c(S, {
79
- key: 1,
80
- class: "ml-9",
81
- modelValue: b.value,
82
- "onUpdate:modelValue": o[0] || (o[0] = (l) => b.value = l),
83
- onChange: o[1] || (o[1] = (l) => L(b.value))
84
- }, {
85
- default: v(() => [
86
- (a(!0), t(B, null, R(e.radioList, (l) => (a(), c(C, {
87
- value: l.value,
88
- key: l.value
89
- }, {
90
- default: v(() => [
91
- A(z(l.label), 1)
92
- ]),
93
- _: 2
94
- }, 1032, ["value"]))), 128))
95
- ]),
96
- _: 1
97
- }, 8, ["modelValue"])) : p("", !0),
98
- (a(!0), t(B, null, R(e.extraIcons, (l) => (a(), t(B, {
99
- key: l.name
100
- }, [
101
- l.tips ? (a(), c(i, {
102
- key: 0,
103
- content: l.tips,
104
- placement: "right"
105
- }, {
106
- default: v(() => [
107
- s(u, {
108
- class: "extra-icon",
109
- name: l.name,
110
- color: l.color,
111
- onClick: (F) => _(l.onClick)
112
- }, null, 8, ["name", "color", "onClick"])
113
- ]),
114
- _: 2
115
- }, 1032, ["content"])) : (a(), c(u, {
116
- key: 1,
117
- class: "extra-icon",
118
- name: l.name,
119
- color: l.color,
120
- onClick: (F) => _(l.onClick)
121
- }, null, 8, ["name", "color", "onClick"]))
122
- ], 64))), 128))
123
- ]),
124
- d("div", x, [
125
- e.formSlots ? (a(), t("div", ee, [
126
- s(g(V), { list: e.formSlots }, null, 8, ["list"])
127
- ])) : p("", !0),
128
- e.typeSwitch ? (a(), t("div", le, [
129
- d("div", {
130
- class: h(["switch-icon-wrapper", { active: f.value === "card" }]),
131
- onClick: o[2] || (o[2] = (l) => w("card"))
132
- }, [
133
- s(u, { name: "icon-kapian" })
134
- ], 2),
135
- d("div", {
136
- class: h(["switch-icon-wrapper", { active: f.value === "table" }]),
137
- onClick: o[3] || (o[3] = (l) => w("table"))
138
- }, [
139
- s(u, { name: "icon-biaoge" })
140
- ], 2)
141
- ])) : p("", !0),
142
- e.collapsible ? (a(), t("div", {
143
- key: 2,
144
- class: h(["collapse-icon-wrapper", { collapsed: r.value }]),
145
- onClick: N
146
- }, [
147
- s(u, { name: "icon-shaixuan" })
148
- ], 2)) : p("", !0),
149
- e.btns && e.btns.length > 0 ? (a(), t("div", oe, [
150
- s(g(J), {
151
- btns: e.btns || []
152
- }, null, 8, ["btns"])
153
- ])) : p("", !0)
154
- ])
155
- ], 2),
156
- e.hasSearchInput ? (a(), t("div", {
157
- key: 0,
158
- class: h(["card-search-input", { collapsedPadding: r.value && e.onCollapsed }])
159
- }, [
160
- s(j, {
161
- modelValue: T.value,
162
- "onUpdate:modelValue": o[4] || (o[4] = (l) => T.value = l),
163
- placeholder: e.searchPlaceholder,
164
- size: "large",
165
- onKeyup: O($, ["enter"])
166
- }, {
167
- prefix: v(() => o[5] || (o[5] = [])),
168
- suffix: v(() => [
169
- s(u, {
170
- class: "cursor-pointer",
171
- name: "icon-lujing2",
172
- color: "#666666",
173
- size: "normal",
174
- onClick: $
175
- })
176
- ]),
177
- _: 1
178
- }, 8, ["modelValue", "placeholder"])
179
- ], 2)) : p("", !0),
180
- e.onCollapsed ? (a(), c(g(V), {
181
- key: 2,
182
- list: e.children
183
- }, null, 8, ["list"])) : (a(), c(E, { key: 1 }, {
184
- default: v(() => [
185
- q(d("div", null, [
186
- s(g(V), { list: e.children }, null, 8, ["list"])
187
- ], 512), [
188
- [G, !r.value]
189
- ])
190
- ]),
191
- _: 1
192
- }))
193
- ], 14, X);
194
- };
195
- }
196
- }), ie = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-89c37e74"]]);
197
- export {
198
- ie as default
199
- };
@@ -1,140 +0,0 @@
1
- import { defineComponent as j, ref as d, readonly as D, onUnmounted as E, resolveComponent as h, openBlock as p, createElementBlock as v, createElementVNode as t, createVNode as o, withKeys as K, withCtx as c, createBlock as R, createTextVNode as C, toDisplayString as S, createCommentVNode as U, Fragment as $, renderList as L, normalizeClass as T, withDirectives as q, unref as A, vShow as G } from "vue";
2
- import { c as H, j as J, I as k, a as O, b as P } from "./index-Fgpo2Weq.js";
3
- import "element-plus";
4
- const Q = { class: "filter-search-header" }, W = { class: "input-tag-wrapper" }, X = { class: "input-action" }, Y = { class: "input-action-tag-wrapper" }, Z = /* @__PURE__ */ j({
5
- __name: "FilterSearch",
6
- props: {
7
- name: {},
8
- children: {},
9
- placeholder: {},
10
- defaultCollapse: { type: Boolean },
11
- searchTypes: {},
12
- onSearch: {},
13
- onSearchTypeChange: {}
14
- },
15
- setup(V, { expose: w }) {
16
- const a = V, i = d(a.defaultCollapse), n = d(a.searchTypes ? a.searchTypes[0] : null), x = () => n.value, z = (e) => {
17
- if (a.searchTypes) {
18
- const l = a.searchTypes.find((u) => u.value === e);
19
- l && (n.value = l);
20
- }
21
- }, r = d(""), F = (e) => {
22
- r.value = e;
23
- }, b = () => r.value, B = (e) => {
24
- n.value = e;
25
- try {
26
- f[a.onSearchTypeChange](_, e);
27
- } catch (l) {
28
- console.error(l);
29
- }
30
- }, m = async () => {
31
- try {
32
- await f[a.onSearch](_, r.value);
33
- } catch (e) {
34
- console.error(e);
35
- }
36
- }, I = () => {
37
- i.value = !i.value;
38
- }, { ruleModule: f, pageMethodMap: _ } = H(), y = D({
39
- setSearchValue: F,
40
- getSearchValue: b,
41
- getSearchType: x,
42
- setSearchType: z,
43
- type: "filterSearch"
44
- });
45
- if (a.name) {
46
- const e = J(a.name, y);
47
- E(() => {
48
- e();
49
- });
50
- }
51
- return w(y), (e, l) => {
52
- const u = h("el-tag"), N = h("el-input"), M = h("el-collapse-transition");
53
- return p(), v("div", null, [
54
- t("div", Q, [
55
- o(N, {
56
- modelValue: r.value,
57
- "onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
58
- placeholder: e.placeholder,
59
- size: "large",
60
- onKeyup: K(m, ["enter"]),
61
- class: "filter-search-input",
62
- clearable: !0
63
- }, {
64
- prefix: c(() => [
65
- t("div", W, [
66
- n.value ? (p(), R(u, {
67
- key: 0,
68
- class: "search-tag",
69
- type: "primary"
70
- }, {
71
- default: c(() => [
72
- C(S(n.value.label), 1)
73
- ]),
74
- _: 1
75
- })) : U("", !0)
76
- ])
77
- ]),
78
- suffix: c(() => [
79
- o(k, {
80
- name: "icon-lujing2",
81
- size: "small",
82
- color: "#666666",
83
- onClick: m,
84
- class: "search-icon"
85
- })
86
- ]),
87
- _: 1
88
- }, 8, ["modelValue", "placeholder"]),
89
- t("div", X, [
90
- t("div", Y, [
91
- (p(!0), v($, null, L(e.searchTypes, (s) => {
92
- var g;
93
- return p(), v("div", {
94
- class: "input-action-tag",
95
- key: s.value
96
- }, [
97
- o(u, {
98
- class: T({ "is-active": ((g = n.value) == null ? void 0 : g.value) === s.value }),
99
- type: "info",
100
- round: "",
101
- size: "large",
102
- onClick: (ee) => B(s)
103
- }, {
104
- default: c(() => [
105
- C(S(s.label), 1)
106
- ]),
107
- _: 2
108
- }, 1032, ["class", "onClick"])
109
- ]);
110
- }), 128))
111
- ]),
112
- t("div", {
113
- class: T(["filter-wrapper", { active: !i.value }]),
114
- onClick: I
115
- }, [
116
- o(k, {
117
- name: "icon-shaixuan",
118
- size: "small"
119
- }),
120
- l[1] || (l[1] = t("span", { class: "filter-text" }, "Filter", -1))
121
- ], 2)
122
- ])
123
- ]),
124
- o(M, null, {
125
- default: c(() => [
126
- q(t("div", null, [
127
- o(A(O), { list: e.children }, null, 8, ["list"])
128
- ], 512), [
129
- [G, !i.value]
130
- ])
131
- ]),
132
- _: 1
133
- })
134
- ]);
135
- };
136
- }
137
- }), ne = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-9f206e36"]]);
138
- export {
139
- ne as default
140
- };