asiaint-lowcode 3.1.140 → 3.1.142
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.
- package/README.md +31 -31
- package/dist/asiaint-lowcode.d.ts +13 -0
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +192 -192
- package/dist/lazy/{Card-8vNWeIPg.js → Card-DS0XD8tu.js} +8 -8
- package/dist/lazy/{Cascader-BMAg1b5J.js → Cascader-2xz4WYNR.js} +1 -1
- package/dist/lazy/{Checkbox-Cuy9UcGI.js → Checkbox-CARZTCib.js} +2 -2
- package/dist/lazy/{Collapse-CouIUiVy.js → Collapse-BHYYPY9J.js} +1 -1
- package/dist/lazy/{Component-Cpy05Jd8.js → Component-B6qOJZMu.js} +2 -2
- package/dist/lazy/{Component-BMbdOXWt.js → Component-BHy-gdds.js} +1 -1
- package/dist/lazy/{Component-BwpHn3oy.js → Component-CtDLAFnm.js} +2 -2
- package/dist/lazy/{Component-DnkwfLaR.js → Component-DbZK73I2.js} +1 -1
- package/dist/lazy/{Component-CKCXWIC5.js → Component-DmU2P_2K.js} +2 -2
- package/dist/lazy/{CurdCard-xK4Hi8Gc.js → CurdCard-CZ4VhPL7.js} +2 -2
- package/dist/lazy/Custom-BiCuB_-e.js +26 -0
- package/dist/lazy/{DatePicker-B8xiNGLk.js → DatePicker-D-rFup5V.js} +1 -1
- package/dist/lazy/{DragList-DSMjg9EP.js → DragList-Ii6kqkg2.js} +13 -13
- package/dist/lazy/{FilterSearch-CO5ewB-U.js → FilterSearch-DpMIShxs.js} +2 -2
- package/dist/lazy/FloatCurd-IaQW0CA2.js +239 -0
- package/dist/lazy/FloatSearchCurd-CqoJsN7c.js +424 -0
- package/dist/lazy/{FormList-U6FewtHN.js → FormList-DVAKg3Cx.js} +1 -1
- package/dist/lazy/{Grid-DMQrIKKC.js → Grid-Bw9rmwrG.js} +1 -1
- package/dist/lazy/{InfiniteScroll-DdeR7QjM.js → InfiniteScroll-Cmj0-z2l.js} +4 -4
- package/dist/lazy/{Inline-Cqpyce29.js → Inline-B7s-iBhh.js} +3 -3
- package/dist/lazy/{JsonEdit-H1bzdkYa.js → JsonEdit-DLzOazGA.js} +3 -3
- package/dist/lazy/{LogList-COGs_lbV.js → LogList-BfSA2YIW.js} +7 -7
- package/dist/lazy/{ObjGroup-Bn4_KGXB.js → ObjGroup-YJho79cG.js} +1 -1
- package/dist/lazy/{OfferDetails-Cl-uMJNA.js → OfferDetails-BVaa7boE.js} +8 -8
- package/dist/lazy/{Pagination-O4bgTguF.js → Pagination-Bni7hc5i.js} +2 -2
- package/dist/lazy/{Progress-Bn_B_wFC.js → Progress-DDOZz027.js} +15 -15
- package/dist/lazy/{Radio-BZnDoqOr.js → Radio-BkGE2l7X.js} +3 -3
- package/dist/lazy/{SearchSelect-OHMgptUr.js → SearchSelect-BDG-q3rh.js} +6 -6
- package/dist/lazy/{Select-B4nb4HrS.js → Select-DZVHbfet.js} +2 -2
- package/dist/lazy/{Table-CdihiD3I.js → Table-BYAny04Y.js} +2 -2
- package/dist/lazy/{Tabs-wokuGH0j.js → Tabs-DK2Z_4Mq.js} +2 -2
- package/dist/lazy/{TextArea-CkTQVVAo.js → TextArea-lLxe_7vc.js} +3 -3
- package/dist/lazy/{Wrapper-CKvQyMsb.js → Wrapper-ZyyGd7Sw.js} +4 -4
- package/dist/lazy/{index-CQB0z8tE.js → index-DdmJ7fxW.js} +718 -700
- package/dist/lazy/{useSelect-BTWne1vE.js → useSelect-CZU2AEMN.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +1 -1
- package/dist/lazy/Custom-BI7aGQUl.js +0 -26
- package/dist/lazy/FloatCurd-CGyphC_8.js +0 -185
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as _, watch as H, ref as B, inject as $, resolveComponent as
|
|
2
|
-
import { u as j, a as L, I as u, b as T, B as R, f as q, _ as A } from "./index-
|
|
1
|
+
import { defineComponent as _, watch as H, ref as B, inject as $, resolveComponent as k, openBlock as o, createBlock as f, mergeProps as N, 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 V, vShow as D } 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-DdmJ7fxW.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const G = {
|
|
5
5
|
key: 3,
|
|
@@ -38,8 +38,8 @@ const G = {
|
|
|
38
38
|
c.value = e ?? !1;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
41
|
+
const b = B(n.displayType || (n.typeSwitch ? "card" : "table")), E = j(), g = (e) => {
|
|
42
|
+
if (b.value = e, n.onSwitchChange && m) {
|
|
43
43
|
try {
|
|
44
44
|
m[n.onSwitchChange](S, e);
|
|
45
45
|
} catch (d) {
|
|
@@ -64,7 +64,7 @@ funcName: ${e}`);
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
return (e, a) => {
|
|
67
|
-
const v =
|
|
67
|
+
const v = k("el-tooltip"), d = k("el-collapse-transition"), t = k("ElCard");
|
|
68
68
|
return e.hidden ? i("", !0) : (o(), f(t, N({ key: 0 }, e.$attrs, {
|
|
69
69
|
class: ["crm-card", { collapsed: c.value, shadowless: e.shadowless }],
|
|
70
70
|
shadow: "never"
|
|
@@ -130,13 +130,13 @@ funcName: ${e}`);
|
|
|
130
130
|
], 64))), 128)),
|
|
131
131
|
e.typeSwitch ? (o(), s("div", G, [
|
|
132
132
|
h("div", {
|
|
133
|
-
class: p(["switch-icon-wrapper", { active:
|
|
133
|
+
class: p(["switch-icon-wrapper", { active: b.value === "card" }]),
|
|
134
134
|
onClick: a[1] || (a[1] = (l) => g("card"))
|
|
135
135
|
}, [
|
|
136
136
|
r(u, { name: "icon-kapian" })
|
|
137
137
|
], 2),
|
|
138
138
|
h("div", {
|
|
139
|
-
class: p(["switch-icon-wrapper", { active:
|
|
139
|
+
class: p(["switch-icon-wrapper", { active: b.value === "table" }]),
|
|
140
140
|
onClick: a[2] || (a[2] = (l) => g("table"))
|
|
141
141
|
}, [
|
|
142
142
|
r(u, { name: "icon-biaoge" })
|
|
@@ -173,7 +173,7 @@ funcName: ${e}`);
|
|
|
173
173
|
}, 16, ["class"]));
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
}), X = /* @__PURE__ */ A(O, [["__scopeId", "data-v-
|
|
176
|
+
}), X = /* @__PURE__ */ A(O, [["__scopeId", "data-v-2ecb064b"]]);
|
|
177
177
|
export {
|
|
178
178
|
X as default
|
|
179
179
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, mergeModels as g, useModel as C, inject as r, resolveComponent as h, openBlock as v, createBlock as y, mergeProps as M, unref as d } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as b } from "./useSelect-
|
|
3
|
+
import { u as b } from "./useSelect-CZU2AEMN.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 I, createBlock as p, mergeProps as h, withCtx as g, renderList as k, createCommentVNode as C, createVNode as O } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as P, c as R } from "./index-
|
|
4
|
-
import { u as U } from "./useSelect-
|
|
3
|
+
import { u as P, c as R } from "./index-DdmJ7fxW.js";
|
|
4
|
+
import { u as U } from "./useSelect-CZU2AEMN.js";
|
|
5
5
|
const j = { key: 0 }, E = { key: 1 }, Q = /* @__PURE__ */ A({
|
|
6
6
|
__name: "Checkbox",
|
|
7
7
|
props: /* @__PURE__ */ D({
|
|
@@ -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 { b as y } from "./index-
|
|
2
|
+
import { b as y } from "./index-DdmJ7fxW.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 b = /* @__PURE__ */ u({
|
|
@@ -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 { _ as H, u as K, d as Q } from "./index-
|
|
2
|
+
import { _ as H, u as K, d as Q } from "./index-DdmJ7fxW.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -172,7 +172,7 @@ function j(a, n, c, d, t, g) {
|
|
|
172
172
|
onTouchend: n[5] || (n[5] = (...o) => a.touchEnd && a.touchEnd(...o))
|
|
173
173
|
}, null, 544);
|
|
174
174
|
}
|
|
175
|
-
const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-
|
|
175
|
+
const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-5f3bfcf7"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "vfc-esign"
|
|
178
178
|
}, ie = /* @__PURE__ */ $({
|
|
@@ -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-
|
|
2
|
+
import { u as V } from "./index-DdmJ7fxW.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as $, mergeModels as z, useModel as E, ref as I, resolveComponent as B, openBlock as t, createElementBlock as o, Fragment as d, createVNode as p, normalizeClass as L, createSlots as N, withCtx as g, createTextVNode as h, createElementVNode as s, createBlock as f, toDisplayString as u, createCommentVNode as m, unref as O, renderList as T } from "vue";
|
|
2
2
|
import { genFileId as R, ElMessage as j, ElMessageBox as P } from "element-plus";
|
|
3
|
-
import { c as q, I as c, a as A, _ as G } from "./index-
|
|
3
|
+
import { c as q, I as c, a as A, _ as G } from "./index-DdmJ7fxW.js";
|
|
4
4
|
const H = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "smallDragStyle-text"
|
|
@@ -186,7 +186,7 @@ const H = {
|
|
|
186
186
|
], 64);
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
}), te = /* @__PURE__ */ G(Z, [["__scopeId", "data-v-
|
|
189
|
+
}), te = /* @__PURE__ */ G(Z, [["__scopeId", "data-v-cf510f7a"]]);
|
|
190
190
|
export {
|
|
191
191
|
te as default
|
|
192
192
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, mergeModels as f, useModel as y, computed as v, inject as l, resolveComponent as C, openBlock as s, createElementBlock as M, toDisplayString as k, createBlock as V, mergeProps as B } from "vue";
|
|
2
|
-
import { u as K } from "./index-
|
|
2
|
+
import { u as K } from "./index-DdmJ7fxW.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const b = { key: 0 }, E = /* @__PURE__ */ g({
|
|
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-
|
|
5
|
+
import { u as x, _ as S } from "./index-DdmJ7fxW.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(",");
|
|
@@ -111,7 +111,7 @@ const P = { class: "vfc-verify-code" }, k = /* @__PURE__ */ g({
|
|
|
111
111
|
]);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}), T = /* @__PURE__ */ S(k, [["__scopeId", "data-v-
|
|
114
|
+
}), T = /* @__PURE__ */ S(k, [["__scopeId", "data-v-eda48825"]]);
|
|
115
115
|
export {
|
|
116
116
|
T as default
|
|
117
117
|
};
|
|
@@ -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-
|
|
2
|
+
import { u as Q, I as h, b as V, B as W, f as X, _ as Y } from "./index-DdmJ7fxW.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,
|
|
@@ -208,7 +208,7 @@ funcName: ${e}`);
|
|
|
208
208
|
], 14, Z);
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
}), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-
|
|
211
|
+
}), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-48b3bde7"]]);
|
|
212
212
|
export {
|
|
213
213
|
de as default
|
|
214
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-DdmJ7fxW.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,6 +1,6 @@
|
|
|
1
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
2
|
import { dayjs as b } from "element-plus";
|
|
3
|
-
import { u as B } from "./index-
|
|
3
|
+
import { u as B } from "./index-DdmJ7fxW.js";
|
|
4
4
|
const F = { key: 0 }, j = /* @__PURE__ */ y({
|
|
5
5
|
__name: "DatePicker",
|
|
6
6
|
props: /* @__PURE__ */ M({
|
|
@@ -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 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, m as fe, n as he, o as k, T as we, v as xe, p as C, A as
|
|
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, i as Re, b as Ie, _ as Ne } from "./index-DdmJ7fxW.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
|
|
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
|
-
(
|
|
179
|
-
...
|
|
180
|
-
[S]: { x: f, y:
|
|
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 =
|
|
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
|
|
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 (
|
|
198
|
-
let f = 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 && (
|
|
201
|
-
}), Number.isFinite(f) && (l.w = f - l.x), Number.isFinite(
|
|
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
|
-
|
|
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-
|
|
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 U, ref as o, readonly as D, onUnmounted as E, watch as L, onMounted as N, resolveComponent as p, openBlock as m, createElementBlock as T, createElementVNode as i, createVNode as s, withKeys as j, withModifiers as $, withCtx as h, toDisplayString as q, normalizeStyle as A, Fragment as G, renderList as H, createBlock as J, normalizeClass as O, withDirectives as P, unref as Q, vShow as X, nextTick as Y } from "vue";
|
|
2
|
-
import { c as Z, i as ee, I as x, b as le, _ as ae } from "./index-
|
|
2
|
+
import { c as Z, i as ee, I as x, b as le, _ as ae } from "./index-DdmJ7fxW.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const te = { class: "filter-search-header" }, ne = /* @__PURE__ */ U({
|
|
5
5
|
__name: "FilterSearch",
|
|
@@ -143,7 +143,7 @@ const te = { class: "filter-search-header" }, ne = /* @__PURE__ */ U({
|
|
|
143
143
|
]);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
}), ce = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-
|
|
146
|
+
}), ce = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-b0751bd0"]]);
|
|
147
147
|
export {
|
|
148
148
|
ce as default
|
|
149
149
|
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { defineComponent as oe, ref as w, computed as E, onUnmounted as ne, watch as le, onMounted as te, resolveComponent as _, withDirectives as G, openBlock as r, createElementBlock as f, createElementVNode as a, createVNode as s, withKeys as ae, withCtx as i, createBlock as M, Fragment as D, renderList as H, createTextVNode as S, toDisplayString as Y, unref as re, vShow as K, createCommentVNode as N } from "vue";
|
|
2
|
+
import { c as se, u as ie, f as R, i as ue, I as m, b as ce, _ as de } from "./index-DdmJ7fxW.js";
|
|
3
|
+
import { dayjs as P } from "element-plus";
|
|
4
|
+
const pe = { class: "float-curd" }, fe = { class: "curd-body" }, me = { class: "gradient-input-wrapper" }, ve = { class: "custom-prefix-text" }, he = { style: { "padding-right": "8px" } }, _e = { class: "float-form" }, ye = { class: "float-form-header" }, xe = { class: "float-form-header-title" }, Ce = { class: "float-form-header-btns" }, be = { class: "float-form-body" }, ke = { class: "curd-footer" }, ge = ["innerHTML"], Ve = ["title"], we = /* @__PURE__ */ oe({
|
|
5
|
+
__name: "FloatCurd",
|
|
6
|
+
props: {
|
|
7
|
+
name: {},
|
|
8
|
+
children: {},
|
|
9
|
+
formTitle: {},
|
|
10
|
+
onSearch: {},
|
|
11
|
+
onAiSearch: {},
|
|
12
|
+
onClear: {},
|
|
13
|
+
inputPlaceholder: {},
|
|
14
|
+
hidden: { type: Boolean },
|
|
15
|
+
prefixOptions: {},
|
|
16
|
+
prefixChange: {},
|
|
17
|
+
defaultPrefixValue: {}
|
|
18
|
+
},
|
|
19
|
+
setup(U, { expose: J }) {
|
|
20
|
+
const l = U, v = w(!1), { ruleModule: y, pageMethodMap: x } = se(), F = ie(), T = E(() => {
|
|
21
|
+
var k, p, g, n, V, L, $, q, z;
|
|
22
|
+
const e = F.schema.items, o = F.formValues, d = R(e, l.name);
|
|
23
|
+
if (!d || !d.children)
|
|
24
|
+
return [];
|
|
25
|
+
const b = [];
|
|
26
|
+
for (const j in o) {
|
|
27
|
+
const t = R(d.children, j);
|
|
28
|
+
if (t && t.label && !t.hidden) {
|
|
29
|
+
const u = o[j];
|
|
30
|
+
if (u != null && u !== "") {
|
|
31
|
+
const h = {
|
|
32
|
+
name: t.name,
|
|
33
|
+
label: t.label,
|
|
34
|
+
value: u,
|
|
35
|
+
closeable: !t.required && !((k = t.props) != null && k.disabled) && ((p = t.props) == null ? void 0 : p.clearable) !== !1
|
|
36
|
+
};
|
|
37
|
+
t.component === "DatePicker" && (((g = t.props) == null ? void 0 : g.type) === "daterange" ? h.value = P(u[0]).format(((n = t.props) == null ? void 0 : n.valueFormat) || "YYYY-MM-DD") + " - " + P(u[1]).format(((V = t.props) == null ? void 0 : V.valueFormat) || "YYYY-MM-DD") : (h.iconName = "icon-rili", h.value = P(u).format(((L = t.props) == null ? void 0 : L.valueFormat) || "YYYY-MM-DD"))), t.component === "Select" && (h.value = (z = (q = ($ = t.props) == null ? void 0 : $.options) == null ? void 0 : q.find((ee) => ee.value === u)) == null ? void 0 : z.label), b.push(h);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return b;
|
|
42
|
+
}), c = w(""), Q = E(() => {
|
|
43
|
+
var e, o;
|
|
44
|
+
return !l.prefixOptions || l.prefixOptions.length === 0 || !c.value ? "" : (o = (e = l.prefixOptions) == null ? void 0 : e.find((d) => d.value === c.value)) == null ? void 0 : o.label;
|
|
45
|
+
});
|
|
46
|
+
function W(e) {
|
|
47
|
+
c.value = e, C.value = "";
|
|
48
|
+
try {
|
|
49
|
+
y[l.prefixChange](x, e);
|
|
50
|
+
} catch (o) {
|
|
51
|
+
console.error(o);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const C = w("");
|
|
55
|
+
function A() {
|
|
56
|
+
try {
|
|
57
|
+
y[l.onSearch](x), v.value = !1;
|
|
58
|
+
} catch (e) {
|
|
59
|
+
console.error(e);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const I = w(!1);
|
|
63
|
+
async function O() {
|
|
64
|
+
try {
|
|
65
|
+
I.value = !0, await y[l.onAiSearch](x, C.value, c.value || "");
|
|
66
|
+
} catch (e) {
|
|
67
|
+
console.error(e);
|
|
68
|
+
} finally {
|
|
69
|
+
I.value = !1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function X(e) {
|
|
73
|
+
F.setFieldValue(e.name, "", ""), A();
|
|
74
|
+
}
|
|
75
|
+
function Z() {
|
|
76
|
+
try {
|
|
77
|
+
y[l.onClear](x);
|
|
78
|
+
} catch (e) {
|
|
79
|
+
console.error(e);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const B = {
|
|
83
|
+
type: "floatcurd"
|
|
84
|
+
};
|
|
85
|
+
if (J(B), l.name) {
|
|
86
|
+
const e = ue(l.name, B);
|
|
87
|
+
ne(() => {
|
|
88
|
+
e();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return le(
|
|
92
|
+
() => l.defaultPrefixValue,
|
|
93
|
+
(e) => {
|
|
94
|
+
e && (c.value = e);
|
|
95
|
+
}
|
|
96
|
+
), te(() => {
|
|
97
|
+
l.defaultPrefixValue ? c.value = l.defaultPrefixValue : l.prefixOptions && l.prefixOptions.length > 0 && (c.value = l.prefixOptions[0].value);
|
|
98
|
+
}), (e, o) => {
|
|
99
|
+
const d = _("el-dropdown-item"), b = _("el-dropdown-menu"), k = _("el-dropdown"), p = _("el-button"), g = _("el-input");
|
|
100
|
+
return G((r(), f("div", pe, [
|
|
101
|
+
a("div", fe, [
|
|
102
|
+
a("div", me, [
|
|
103
|
+
s(g, {
|
|
104
|
+
class: "float-curd-ai-input",
|
|
105
|
+
placeholder: e.inputPlaceholder,
|
|
106
|
+
modelValue: C.value,
|
|
107
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => C.value = n),
|
|
108
|
+
clearable: "",
|
|
109
|
+
onClear: O,
|
|
110
|
+
onKeyup: ae(O, ["enter"])
|
|
111
|
+
}, {
|
|
112
|
+
prefix: i(() => [
|
|
113
|
+
e.prefixOptions && e.prefixOptions.length > 0 ? (r(), M(k, { key: 0 }, {
|
|
114
|
+
dropdown: i(() => [
|
|
115
|
+
s(b, null, {
|
|
116
|
+
default: i(() => [
|
|
117
|
+
(r(!0), f(D, null, H(e.prefixOptions, (n) => (r(), M(d, {
|
|
118
|
+
key: n.value,
|
|
119
|
+
command: n.value,
|
|
120
|
+
onClick: (V) => W(n.value)
|
|
121
|
+
}, {
|
|
122
|
+
default: i(() => [
|
|
123
|
+
S(Y(n.label), 1)
|
|
124
|
+
]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1032, ["command", "onClick"]))), 128))
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
default: i(() => [
|
|
132
|
+
a("span", ve, [
|
|
133
|
+
a("span", he, Y(Q.value), 1),
|
|
134
|
+
s(m, {
|
|
135
|
+
name: "icon-dropdown",
|
|
136
|
+
size: 12,
|
|
137
|
+
color: "#999"
|
|
138
|
+
})
|
|
139
|
+
])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
})) : (r(), f(D, { key: 1 }, [
|
|
143
|
+
s(m, { name: "icon-a-mobang1" }),
|
|
144
|
+
o[3] || (o[3] = a("span", { class: "prefix-text" }, "Ask AI", -1))
|
|
145
|
+
], 64))
|
|
146
|
+
]),
|
|
147
|
+
suffix: i(() => [
|
|
148
|
+
s(p, {
|
|
149
|
+
type: "primary",
|
|
150
|
+
size: "small",
|
|
151
|
+
onClick: O,
|
|
152
|
+
loading: I.value
|
|
153
|
+
}, {
|
|
154
|
+
default: i(() => o[4] || (o[4] = [
|
|
155
|
+
S("Go")
|
|
156
|
+
])),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["loading"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["placeholder", "modelValue"])
|
|
162
|
+
]),
|
|
163
|
+
s(p, {
|
|
164
|
+
plain: !0,
|
|
165
|
+
onClick: o[1] || (o[1] = (n) => v.value = !v.value),
|
|
166
|
+
class: "more-btn",
|
|
167
|
+
type: "primary"
|
|
168
|
+
}, {
|
|
169
|
+
default: i(() => [
|
|
170
|
+
s(m, { name: "icon-tiaojianshaixuan" }),
|
|
171
|
+
o[5] || (o[5] = a("span", null, "More", -1))
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}),
|
|
175
|
+
G(a("div", _e, [
|
|
176
|
+
a("div", ye, [
|
|
177
|
+
a("div", xe, Y(e.formTitle), 1),
|
|
178
|
+
a("div", Ce, [
|
|
179
|
+
s(p, {
|
|
180
|
+
type: "primary",
|
|
181
|
+
size: "small",
|
|
182
|
+
onClick: A
|
|
183
|
+
}, {
|
|
184
|
+
default: i(() => o[6] || (o[6] = [
|
|
185
|
+
S("Go")
|
|
186
|
+
])),
|
|
187
|
+
_: 1
|
|
188
|
+
}),
|
|
189
|
+
s(m, {
|
|
190
|
+
name: "icon-a-rongqi1",
|
|
191
|
+
onClick: o[2] || (o[2] = (n) => v.value = !1)
|
|
192
|
+
})
|
|
193
|
+
])
|
|
194
|
+
]),
|
|
195
|
+
a("div", be, [
|
|
196
|
+
s(re(ce), { list: e.children }, null, 8, ["list"])
|
|
197
|
+
])
|
|
198
|
+
], 512), [
|
|
199
|
+
[K, v.value]
|
|
200
|
+
])
|
|
201
|
+
]),
|
|
202
|
+
a("div", ke, [
|
|
203
|
+
(r(!0), f(D, null, H(T.value, (n) => (r(), f("div", {
|
|
204
|
+
class: "tag",
|
|
205
|
+
key: n.name
|
|
206
|
+
}, [
|
|
207
|
+
n.iconName ? (r(), M(m, {
|
|
208
|
+
key: 0,
|
|
209
|
+
name: n.iconName
|
|
210
|
+
}, null, 8, ["name"])) : N("", !0),
|
|
211
|
+
a("span", {
|
|
212
|
+
innerHTML: n.label + ":"
|
|
213
|
+
}, null, 8, ge),
|
|
214
|
+
a("span", {
|
|
215
|
+
class: "tag-value",
|
|
216
|
+
title: n.value
|
|
217
|
+
}, Y(n.value), 9, Ve),
|
|
218
|
+
n.closeable ? (r(), M(m, {
|
|
219
|
+
key: 1,
|
|
220
|
+
name: "icon-a-rongqi1",
|
|
221
|
+
onClick: (V) => X(n),
|
|
222
|
+
class: "close-icon"
|
|
223
|
+
}, null, 8, ["onClick"])) : N("", !0)
|
|
224
|
+
]))), 128)),
|
|
225
|
+
T.value.length > 0 ? (r(), f("div", {
|
|
226
|
+
key: 0,
|
|
227
|
+
class: "clear-btn",
|
|
228
|
+
onClick: Z
|
|
229
|
+
}, "Clear filters")) : N("", !0)
|
|
230
|
+
])
|
|
231
|
+
], 512)), [
|
|
232
|
+
[K, !e.hidden]
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
}), Ie = /* @__PURE__ */ de(we, [["__scopeId", "data-v-0a9664ce"]]);
|
|
237
|
+
export {
|
|
238
|
+
Ie as default
|
|
239
|
+
};
|