asiaint-lowcode 3.1.175 → 3.1.177

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 (51) hide show
  1. package/dist/asiaint-lowcode.d.ts +42 -0
  2. package/dist/asiaint-lowcode.js +8 -8
  3. package/dist/asiaint-lowcode.umd.cjs +227 -227
  4. package/dist/lazy/{Card-CuIuPVfa.js → Card-Df5HQuSA.js} +1 -1
  5. package/dist/lazy/{Cascader-DG9-lQL_.js → Cascader-CUdBOQMT.js} +1 -1
  6. package/dist/lazy/{Checkbox-DkokY_T5.js → Checkbox-D4TGj4Gh.js} +2 -2
  7. package/dist/lazy/{Collapse-CfN04wPP.js → Collapse-CSrmJEuG.js} +2 -2
  8. package/dist/lazy/{Component-BmIr-TEc.js → Component-B56uYxqH.js} +1 -1
  9. package/dist/lazy/{Component-bJujdUFt.js → Component-BcUrdJw4.js} +1 -1
  10. package/dist/lazy/{Component-DDr0mt26.js → Component-DeUgzpTE.js} +1 -1
  11. package/dist/lazy/Component-Dta0_WNK.js +198 -0
  12. package/dist/lazy/{CurdCard-fARDual0.js → CurdCard-Dj49hcK7.js} +1 -1
  13. package/dist/lazy/{Custom-DLf2H4j-.js → Custom-z5a0wXtx.js} +1 -1
  14. package/dist/lazy/{DatePicker-DwGL3Rfo.js → DatePicker-BLsJth9f.js} +1 -1
  15. package/dist/lazy/{DragList-CkJN4M1_.js → DragList-A0LrUXJx.js} +13 -13
  16. package/dist/lazy/FilterSearch-BAcjot1g.js +149 -0
  17. package/dist/lazy/FloatCurd-CAZ0HYfs.js +268 -0
  18. package/dist/lazy/FloatSearchCurd-D4Fc77Tz.js +447 -0
  19. package/dist/lazy/{FormList-BisnYpYy.js → FormList-DelEccht.js} +1 -1
  20. package/dist/lazy/{Grid-DU0cGkx3.js → Grid-DO8MvqEC.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-DIBaRISh.js → InfiniteScroll-5mQ3PaQw.js} +1 -1
  22. package/dist/lazy/{Inline-Dz8K0mcs.js → Inline-DhabZQqd.js} +1 -1
  23. package/dist/lazy/{JsonEdit-CcHoX1MX.js → JsonEdit-pB6kDOam.js} +1 -1
  24. package/dist/lazy/{LogList-CCqb9sMw.js → LogList-Ctrc5xGf.js} +1 -1
  25. package/dist/lazy/{ObjGroup-9CuErhWA.js → ObjGroup-DWelUzsz.js} +5 -5
  26. package/dist/lazy/{OfferDetails-BizT7B7e.js → OfferDetails-jcHDEWrY.js} +68 -67
  27. package/dist/lazy/Pagination-BubA_Mbd.js +121 -0
  28. package/dist/lazy/{Progress-BEuL9CsA.js → Progress-BDneCzag.js} +1 -1
  29. package/dist/lazy/{Radio-CbcqDR_c.js → Radio-D6kPoXfF.js} +2 -2
  30. package/dist/lazy/{SearchSelect-PZJ79a84.js → SearchSelect-BYkzwccw.js} +2 -2
  31. package/dist/lazy/{Select-CTGej9Jt.js → Select-D8HxwiAJ.js} +2 -2
  32. package/dist/lazy/Table-D0xGXiGP.js +608 -0
  33. package/dist/lazy/{Tabs-Kra7RQza.js → Tabs-CRCUr0rv.js} +5 -5
  34. package/dist/lazy/Tag-PhRxl7DO.js +25 -0
  35. package/dist/lazy/{TextArea-D-md2_JP.js → TextArea-C4U0r9UA.js} +1 -1
  36. package/dist/lazy/{Title-32bZDihB.js → Title-BPzw8Jtw.js} +1 -1
  37. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-qszdWraA.js +26 -0
  38. package/dist/lazy/{Wrapper-Djhw4u_A.js → Wrapper-Cz2gE1Lc.js} +3 -3
  39. package/dist/lazy/{index-if5yiaE6.js → index-BXjM-V09.js} +6088 -6141
  40. package/dist/lazy/{useSelect-Cx92c9xA.js → useSelect-BsWjgQi9.js} +1 -1
  41. package/dist/style.css +2 -2
  42. package/package.json +1 -1
  43. package/dist/lazy/Component-DPKOSkbS.js +0 -192
  44. package/dist/lazy/Component-DVnr7_Wq.js +0 -321
  45. package/dist/lazy/FilterSearch-DWIoFEYA.js +0 -149
  46. package/dist/lazy/FloatCurd-BIIOwN6L.js +0 -268
  47. package/dist/lazy/FloatSearchCurd-B5mTYPo4.js +0 -447
  48. package/dist/lazy/Pagination-BcwTZvOy.js +0 -121
  49. package/dist/lazy/Table-CTLmaWUi.js +0 -667
  50. package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
  51. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as H, watch as N, ref as B, inject as $, resolveComponent as k, openBlock as o, createBlock as f, mergeProps as V, withCtx as y, createElementBlock as s, normalizeClass as p, createVNode as r, unref as C, createCommentVNode as i, createElementVNode as h, toDisplayString as F, Fragment as w, renderList as z, withDirectives as D, vShow as _ } from "vue";
2
- import { u as j, a as L, I as u, b as T, B as R, f as q, _ as A } from "./index-if5yiaE6.js";
2
+ import { u as j, a as L, I as u, b as T, B as R, f as q, _ as A } from "./index-BXjM-V09.js";
3
3
  import "element-plus";
4
4
  const G = {
5
5
  key: 3,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as y, inject as r, resolveComponent as C, openBlock as h, createBlock as v, mergeProps as M, unref as d } from "vue";
2
2
  import "element-plus";
3
- import { u as B } from "./useSelect-Cx92c9xA.js";
3
+ import { u as B } from "./useSelect-BsWjgQi9.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 A, mergeModels as D, computed as f, useModel as L, watch as N, resolveComponent as i, resolveDirective as S, openBlock as n, createElementBlock as u, toDisplayString as $, Fragment as c, unref as d, withDirectives as E, createBlock as p, mergeProps as h, withCtx as g, renderList as k, createCommentVNode as C, createVNode as I } from "vue";
2
2
  import "element-plus";
3
- import { u as O, c as P } from "./index-if5yiaE6.js";
4
- import { u as R } from "./useSelect-Cx92c9xA.js";
3
+ import { u as O, c as P } from "./index-BXjM-V09.js";
4
+ import { u as R } from "./useSelect-BsWjgQi9.js";
5
5
  const U = { key: 0 }, j = { key: 1 }, Q = /* @__PURE__ */ A({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ D({
@@ -1,7 +1,7 @@
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 { b as y } from "./index-if5yiaE6.js";
2
+ import { b as y } from "./index-BXjM-V09.js";
3
3
  import "element-plus";
4
- import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
4
+ import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-qszdWraA.js";
5
5
  const b = /* @__PURE__ */ u({
6
6
  __name: "Collapse",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, mergeModels as $, useModel as A, computed as l, inject as x, ref as N, resolveComponent as P, openBlock as b, createElementBlock as R, toDisplayString as W, createBlock as j, mergeProps as O } from "vue";
2
- import { u as U } from "./index-if5yiaE6.js";
2
+ import { u as U } from "./index-BXjM-V09.js";
3
3
  import "element-plus";
4
4
  const q = { key: 0 }, L = /* @__PURE__ */ T({
5
5
  __name: "Component",
@@ -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 x, _ as S } from "./index-if5yiaE6.js";
5
+ import { u as x, _ as S } from "./index-BXjM-V09.js";
6
6
  import "element-plus";
7
7
  function b() {
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,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-if5yiaE6.js";
2
+ import { u as V } from "./index-BXjM-V09.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -0,0 +1,198 @@
1
+ import { defineComponent as N, mergeModels as O, computed as R, useModel as $, ref as j, resolveComponent as S, openBlock as a, createElementBlock as o, Fragment as c, createVNode as y, normalizeClass as H, createSlots as P, withCtx as k, createTextVNode as b, toDisplayString as s, unref as p, createElementVNode as r, createBlock as g, createCommentVNode as m, renderList as U } from "vue";
2
+ import { genFileId as q, ElMessage as x, ElMessageBox as A } from "element-plus";
3
+ import { d as G, c as J, I as f, a as K, _ as Q } from "./index-BXjM-V09.js";
4
+ const W = {
5
+ key: 0,
6
+ class: "smallDragStyle-text"
7
+ }, X = { class: "el-upload__tip" }, Y = {
8
+ key: 0,
9
+ class: "upload-bottom-part"
10
+ }, Z = {
11
+ key: 0,
12
+ class: "small-file-list-wrapper"
13
+ }, ee = { class: "file-item-name" }, le = { class: "file-list-wrapper" }, ae = ["title"], oe = /* @__PURE__ */ N({
14
+ __name: "Component",
15
+ props: /* @__PURE__ */ O({
16
+ action: {},
17
+ multiple: { type: Boolean },
18
+ accept: {},
19
+ btnText: {},
20
+ tip: {},
21
+ limit: {},
22
+ drag: { type: Boolean },
23
+ name: { default: "file" },
24
+ listType: { default: "text" },
25
+ attachmentTitle: {},
26
+ showFileList: { type: Boolean, default: !0 },
27
+ autoUpload: { type: Boolean },
28
+ beforeUpload: {},
29
+ isOnlyOne: { type: Boolean, default: !1 },
30
+ onChange: {},
31
+ smallDragStyle: { type: Boolean },
32
+ clearable: { type: Boolean, default: !0 }
33
+ }, {
34
+ modelValue: {
35
+ default: () => []
36
+ },
37
+ modelModifiers: {}
38
+ }),
39
+ emits: ["update:modelValue"],
40
+ setup(C) {
41
+ const n = C, d = G(), M = R(() => n.btnText || d.value.upload.btnText), T = (e, l) => e.replace(/\{(\w+)\}/g, (i, h) => String(l[h] ?? "")), u = $(C, "modelValue"), { ruleModule: _, pageMethodMap: B } = J(), D = (e) => {
42
+ if (n.beforeUpload)
43
+ try {
44
+ return _[n.beforeUpload](B, e);
45
+ } catch (l) {
46
+ console.error(l);
47
+ }
48
+ return !0;
49
+ }, F = (e, l) => {
50
+ if (n.onChange)
51
+ try {
52
+ _[n.onChange](B, e, l);
53
+ } catch (i) {
54
+ console.error(i);
55
+ }
56
+ }, w = (e) => {
57
+ const l = u.value.findIndex((i) => i.uid === e.uid);
58
+ l !== -1 && u.value.splice(l, 1);
59
+ }, L = (e, l) => {
60
+ console.log(e, l);
61
+ }, V = (e) => {
62
+ console.log(e);
63
+ }, v = j(), z = (e, l) => {
64
+ if (n.isOnlyOne && n.limit === 1) {
65
+ v.value.clearFiles();
66
+ const i = e[0];
67
+ i.uid = q(), v.value.handleStart(i);
68
+ } else
69
+ x.warning(
70
+ T(d.value.upload.exceed, {
71
+ limit: n.limit ?? "",
72
+ selected: e.length,
73
+ total: e.length + l.length
74
+ })
75
+ );
76
+ }, E = (e, l) => n.beforeUpload ? !1 : A.confirm(
77
+ T(d.value.upload.cancelTransfer, { name: e.name })
78
+ ).then(
79
+ () => !0,
80
+ () => !1
81
+ );
82
+ return (e, l) => {
83
+ const i = S("el-button"), h = S("el-upload");
84
+ return a(), o(c, null, [
85
+ y(h, {
86
+ "file-list": u.value,
87
+ "onUpdate:fileList": l[0] || (l[0] = (t) => u.value = t),
88
+ action: e.action,
89
+ multiple: e.multiple,
90
+ limit: e.limit,
91
+ drag: e.drag,
92
+ name: e.name,
93
+ listType: e.listType,
94
+ accept: e.accept,
95
+ "show-file-list": e.showFileList,
96
+ "on-preview": V,
97
+ "on-remove": L,
98
+ "before-remove": E,
99
+ "before-upload": D,
100
+ "on-change": F,
101
+ "on-exceed": z,
102
+ class: H({ dragUpload: e.drag, smallDragStyle: e.smallDragStyle }),
103
+ ref_key: "upload",
104
+ ref: v
105
+ }, P({
106
+ default: k(() => [
107
+ e.listType === "text" ? (a(), o(c, { key: 0 }, [
108
+ e.drag ? (a(), o(c, { key: 0 }, [
109
+ e.smallDragStyle ? (a(), o("div", W, [
110
+ b(s(p(d).upload.dropHere), 1),
111
+ r("span", null, s(p(d).upload.clickToUpload), 1)
112
+ ])) : (a(), o(c, { key: 1 }, [
113
+ y(f, {
114
+ name: "icon-shangchuan",
115
+ color: "var(--el-color-primary)"
116
+ }),
117
+ r("div", null, [
118
+ b(s(p(d).upload.dropHere), 1),
119
+ r("em", null, s(p(d).upload.clickToUpload), 1)
120
+ ])
121
+ ], 64))
122
+ ], 64)) : (a(), g(i, {
123
+ key: 1,
124
+ type: "primary"
125
+ }, {
126
+ default: k(() => [
127
+ b(s(M.value), 1)
128
+ ]),
129
+ _: 1
130
+ }))
131
+ ], 64)) : m("", !0),
132
+ e.listType === "picture-card" ? (a(), g(p(K), {
133
+ key: 1,
134
+ name: "add"
135
+ })) : m("", !0)
136
+ ]),
137
+ _: 2
138
+ }, [
139
+ e.tip ? {
140
+ name: "tip",
141
+ fn: k(() => [
142
+ r("div", X, s(e.tip), 1)
143
+ ]),
144
+ key: "0"
145
+ } : void 0
146
+ ]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "accept", "show-file-list", "class"]),
147
+ e.drag && u.value.length > 0 ? (a(), o("div", Y, [
148
+ e.smallDragStyle ? (a(), o("div", Z, [
149
+ (a(!0), o(c, null, U(u.value, (t) => (a(), o("div", {
150
+ class: "file-item",
151
+ key: t.uid
152
+ }, [
153
+ y(f, {
154
+ name: "icon-fujian",
155
+ size: "small"
156
+ }),
157
+ r("div", ee, s(t.name), 1),
158
+ e.clearable ? (a(), g(f, {
159
+ key: 0,
160
+ name: "icon-guanbi",
161
+ class: "file-item-close",
162
+ size: "x-small",
163
+ onClick: (I) => w(t)
164
+ }, null, 8, ["onClick"])) : m("", !0)
165
+ ]))), 128))
166
+ ])) : (a(), o(c, { key: 1 }, [
167
+ r("div", null, s(e.attachmentTitle), 1),
168
+ r("div", le, [
169
+ (a(!0), o(c, null, U(u.value, (t) => (a(), o("div", {
170
+ class: "file-item",
171
+ key: t.uid
172
+ }, [
173
+ y(f, {
174
+ name: "icon-fujiantubiao1",
175
+ size: "ultra-large"
176
+ }),
177
+ r("div", {
178
+ class: "file-item-name",
179
+ title: t.name
180
+ }, s(t.name), 9, ae),
181
+ e.clearable ? (a(), g(f, {
182
+ key: 0,
183
+ name: "icon-guanbi",
184
+ class: "file-item-close",
185
+ size: "x-small",
186
+ onClick: (I) => w(t)
187
+ }, null, 8, ["onClick"])) : m("", !0)
188
+ ]))), 128))
189
+ ])
190
+ ], 64))
191
+ ])) : m("", !0)
192
+ ], 64);
193
+ };
194
+ }
195
+ }), se = /* @__PURE__ */ Q(oe, [["__scopeId", "data-v-22bbc8ba"]]);
196
+ export {
197
+ se as default
198
+ };
@@ -1,5 +1,5 @@
1
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, f as X, _ as Y } from "./index-if5yiaE6.js";
2
+ import { u as Q, I as h, b as V, B as W, f as X, _ as Y } from "./index-BXjM-V09.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,
@@ -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 { _ as i } from "./index-if5yiaE6.js";
2
+ import { _ as i } from "./index-BXjM-V09.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as M, mergeModels as y, useModel as D, useAttrs as I, computed as l, inject as u, resolveComponent as E, openBlock as i, createElementBlock as V, toDisplayString as _, createBlock as S, mergeProps as b } from "vue";
2
2
  import { dayjs as w } from "element-plus";
3
- import { u as B, d as F } from "./index-if5yiaE6.js";
3
+ import { u as B, d as F } from "./index-BXjM-V09.js";
4
4
  const P = { key: 0 }, A = /* @__PURE__ */ M({
5
5
  __name: "DatePicker",
6
6
  props: /* @__PURE__ */ y({
@@ -1,5 +1,5 @@
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-if5yiaE6.js";
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 q, toRefs as A, openBlock as R, createElementBlock as O, normalizeStyle as ne, renderSlot as X, 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 Y, readonly as j } from "vue";
2
+ import { w as ve, k as fe, m as he, n as k, T as we, v as xe, o as C, A as be, p as G, x as Be, L as ke, y as Ce, q as De, Y as Le, r as Me, s as P, V as Se, c as ze, i as Re, b as Ie, _ as Ne } from "./index-BXjM-V09.js";
3
3
  import "element-plus";
4
4
  const $e = /* @__PURE__ */ J({
5
5
  __name: "grid-layout",
@@ -124,15 +124,15 @@ const $e = /* @__PURE__ */ J({
124
124
  (e) => {
125
125
  i.emit("setMaxRows", e);
126
126
  }
127
- ), c([() => a.margin, () => a.margin[1]], x), j(
127
+ ), c([() => a.margin, () => a.margin[1]], x), q(
128
128
  we,
129
129
  F({
130
- ...q(a),
131
- ...q(t),
130
+ ...A(a),
131
+ ...A(t),
132
132
  increaseItem: y,
133
133
  decreaseItem: $
134
134
  })
135
- ), j(xe, i), I({ state: t, getItem: ee, resizeEvent: V, dragEvent: U, layoutUpdate: H });
135
+ ), q(xe, i), I({ state: t, getItem: ee, resizeEvent: V, dragEvent: U, layoutUpdate: H });
136
136
  function y(e) {
137
137
  L.set(e.i, e);
138
138
  }
@@ -231,18 +231,18 @@ const $e = /* @__PURE__ */ J({
231
231
  const r = new Set(n.map((l) => l.i)), v = new Set(e.map((l) => l.i)), g = e.filter((l) => !r.has(l.i)), p = n.filter((l) => !v.has(l.i));
232
232
  return g.concat(p);
233
233
  }
234
- return (e, n) => (R(), A("div", {
234
+ return (e, n) => (R(), O("div", {
235
235
  ref_key: "wrapper",
236
236
  ref: m,
237
237
  class: "vgl-layout",
238
238
  style: ne(t.mergedStyle)
239
239
  }, [
240
- e.$slots.default ? O(e.$slots, "default", { key: 0 }) : (R(!0), A(se, { key: 1 }, ue(o.value, (r) => (R(), K(P, de({
240
+ e.$slots.default ? X(e.$slots, "default", { key: 0 }) : (R(!0), O(se, { key: 1 }, ue(o.value, (r) => (R(), K(P, de({
241
241
  key: r.i,
242
242
  ref_for: !0
243
243
  }, r), {
244
244
  default: Q(() => [
245
- O(e.$slots, "item", { item: r })
245
+ X(e.$slots, "item", { item: r })
246
246
  ]),
247
247
  _: 2
248
248
  }, 1040))), 128)),
@@ -275,7 +275,7 @@ const $e = /* @__PURE__ */ J({
275
275
  emits: ["update:gridlayout"],
276
276
  setup(D, { expose: I }) {
277
277
  const w = D, a = pe(D, "gridlayout"), m = {
278
- getLayout: () => Y(a),
278
+ getLayout: () => j(a),
279
279
  setItemX: (s, u) => {
280
280
  a.value[s].x = u;
281
281
  },
@@ -290,7 +290,7 @@ const $e = /* @__PURE__ */ J({
290
290
  }, { ruleModule: M, pageMethodMap: N } = ze(), i = () => {
291
291
  if (w.onMoved && M)
292
292
  try {
293
- M[w.onMoved](N, Y(a.value));
293
+ M[w.onMoved](N, j(a.value));
294
294
  } catch (s) {
295
295
  console.error(s + `
296
296
  onMoved: ${w.onMoved}`);
@@ -302,7 +302,7 @@ onMoved: ${w.onMoved}`);
302
302
  s();
303
303
  });
304
304
  }
305
- return (s, u) => (R(), K(X($e), {
305
+ return (s, u) => (R(), K(Y($e), {
306
306
  layout: a.value,
307
307
  "onUpdate:layout": u[1] || (u[1] = (y) => a.value = y),
308
308
  "col-num": s.colNum || 12,
@@ -316,7 +316,7 @@ onMoved: ${w.onMoved}`);
316
316
  "use-css-transforms": ""
317
317
  }, {
318
318
  default: Q(() => [
319
- Z(X(Ie), {
319
+ Z(Y(Ie), {
320
320
  list: s.children,
321
321
  gridData: a.value,
322
322
  "onUpdate:gridData": u[0] || (u[0] = (y) => a.value = y),
@@ -0,0 +1,149 @@
1
+ import { defineComponent as E, ref as o, readonly as N, onUnmounted as j, watch as $, onMounted as q, resolveComponent as h, openBlock as m, createElementBlock as w, createElementVNode as i, createVNode as s, unref as y, withKeys as A, withModifiers as G, withCtx as p, toDisplayString as V, normalizeStyle as H, Fragment as J, renderList as O, createBlock as P, normalizeClass as Q, withDirectives as X, vShow as Y, nextTick as Z } from "vue";
2
+ import { c as ee, d as le, i as ae, I as k, b as te, _ as ne } from "./index-BXjM-V09.js";
3
+ import "element-plus";
4
+ const oe = { class: "filter-search-header" }, se = { class: "filter-text" }, re = /* @__PURE__ */ E({
5
+ __name: "FilterSearch",
6
+ props: {
7
+ name: {},
8
+ children: {},
9
+ placeholder: {},
10
+ defaultCollapse: { type: Boolean },
11
+ searchTypes: {},
12
+ onSearch: {},
13
+ onChange: {},
14
+ onSearchTypeChange: {}
15
+ },
16
+ setup(b, { expose: z }) {
17
+ const a = b, u = o(a.defaultCollapse), n = o(a.searchTypes ? a.searchTypes[0].value : null), I = () => n.value, M = (e) => {
18
+ if (a.searchTypes) {
19
+ const l = a.searchTypes.find((c) => c.value === e);
20
+ l && (n.value = l.value);
21
+ }
22
+ }, r = o(""), R = (e) => {
23
+ r.value = e;
24
+ }, W = () => r.value, B = (e) => {
25
+ try {
26
+ d[a.onSearchTypeChange](f, e);
27
+ } catch (l) {
28
+ console.error(l);
29
+ }
30
+ }, F = (e) => {
31
+ if (a.onChange)
32
+ try {
33
+ d[a.onChange](f, e);
34
+ } catch (l) {
35
+ console.error(l);
36
+ }
37
+ }, _ = async () => {
38
+ try {
39
+ await d[a.onSearch](f, r.value);
40
+ } catch (e) {
41
+ console.error(e);
42
+ }
43
+ }, K = () => {
44
+ u.value = !u.value;
45
+ }, { ruleModule: d, pageMethodMap: f } = ee(), C = le(), S = N({
46
+ setSearchValue: R,
47
+ getSearchValue: W,
48
+ getSearchType: I,
49
+ setSearchType: M,
50
+ type: "filterSearch"
51
+ });
52
+ if (a.name) {
53
+ const e = ae(a.name, S);
54
+ j(() => {
55
+ e();
56
+ });
57
+ }
58
+ const g = o(""), v = o(), T = o(0), x = () => {
59
+ var l;
60
+ const e = (l = a.searchTypes) == null ? void 0 : l.find((c) => c.value === n.value);
61
+ g.value = e ? e.label : "", v.value && Z(() => {
62
+ T.value = v.value.offsetWidth + 28;
63
+ });
64
+ };
65
+ return $(
66
+ () => n.value,
67
+ () => {
68
+ x();
69
+ }
70
+ ), q(() => {
71
+ x();
72
+ }), z(S), (e, l) => {
73
+ const c = h("el-option"), L = h("el-select"), U = h("el-input"), D = h("el-collapse-transition");
74
+ return m(), w("div", null, [
75
+ i("div", oe, [
76
+ s(U, {
77
+ modelValue: r.value,
78
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => r.value = t),
79
+ placeholder: e.placeholder || y(C).filterSearch.search,
80
+ size: "large",
81
+ onKeyup: A(G(_, ["stop"]), ["enter"]),
82
+ class: "filter-search-input",
83
+ clearable: !0,
84
+ onInput: F
85
+ }, {
86
+ prefix: p(() => [
87
+ i("span", {
88
+ ref_key: "textWidthRef",
89
+ ref: v,
90
+ class: "text-width-calc"
91
+ }, V(g.value), 513),
92
+ s(L, {
93
+ ref: "selectRef",
94
+ modelValue: n.value,
95
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
96
+ size: "small",
97
+ class: "filter-search-select",
98
+ style: H({ width: T.value + "px" }),
99
+ onChange: B
100
+ }, {
101
+ default: p(() => [
102
+ (m(!0), w(J, null, O(e.searchTypes, (t) => (m(), P(c, {
103
+ key: t.value,
104
+ label: t.label,
105
+ value: t.value
106
+ }, null, 8, ["label", "value"]))), 128))
107
+ ]),
108
+ _: 1
109
+ }, 8, ["modelValue", "style"])
110
+ ]),
111
+ suffix: p(() => [
112
+ s(k, {
113
+ name: "icon-lujing2",
114
+ size: "small",
115
+ color: "#666666",
116
+ onClick: _,
117
+ class: "search-icon"
118
+ })
119
+ ]),
120
+ _: 1
121
+ }, 8, ["modelValue", "placeholder", "onKeyup"]),
122
+ i("div", {
123
+ class: Q(["filter-wrapper", { active: !u.value }]),
124
+ onClick: K
125
+ }, [
126
+ s(k, {
127
+ name: "icon-shaixuan",
128
+ size: "small"
129
+ }),
130
+ i("span", se, V(y(C).filterSearch.filter), 1)
131
+ ], 2)
132
+ ]),
133
+ s(D, null, {
134
+ default: p(() => [
135
+ X(i("div", null, [
136
+ s(y(te), { list: e.children }, null, 8, ["list"])
137
+ ], 512), [
138
+ [Y, !u.value]
139
+ ])
140
+ ]),
141
+ _: 1
142
+ })
143
+ ]);
144
+ };
145
+ }
146
+ }), he = /* @__PURE__ */ ne(re, [["__scopeId", "data-v-53464264"]]);
147
+ export {
148
+ he as default
149
+ };