asiaint-lowcode 3.1.71 → 3.1.73
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.js +3 -3
- package/dist/asiaint-lowcode.umd.cjs +128 -127
- package/dist/index.d.ts +2 -0
- package/dist/lazy/Card-L6PoEgNq.js +175 -0
- package/dist/lazy/{Cascader-iqS6I5ne.js → Cascader-CZxXcJbk.js} +1 -1
- package/dist/lazy/{Checkbox-BRpkwla7.js → Checkbox-CHlIM8xM.js} +19 -17
- package/dist/lazy/{Collapse-DA4JGV2k.js → Collapse-BsjWqn-j.js} +1 -1
- package/dist/lazy/{Component-CFF3dfnF.js → Component-B9PLCoHg.js} +1 -1
- package/dist/lazy/{Component-By8Mn-7k.js → Component-BSbw41TF.js} +40 -38
- package/dist/lazy/{Component-T9UX1U0R.js → Component-BrrH7ftI.js} +2 -2
- package/dist/lazy/{Component-wAVZj4Xr.js → Component-C8O7cDs6.js} +2 -2
- package/dist/lazy/{Component-DyNwi6dS.js → Component-CPgcZhCf.js} +2 -2
- package/dist/lazy/{Component-C_Ceu4e3.js → Component-DQ6jk5oO.js} +1 -1
- package/dist/lazy/Component-tDUlYhWG.js +37 -0
- package/dist/lazy/{CurdCard-vJHAmDeg.js → CurdCard-DS_UWVSV.js} +2 -2
- package/dist/lazy/Custom-BdJd7FtQ.js +26 -0
- package/dist/lazy/{DatePicker-CzWXqle4.js → DatePicker-BOMW020D.js} +1 -1
- package/dist/lazy/{DragList-Cht_EcHq.js → DragList-vffDk63A.js} +13 -13
- package/dist/lazy/{FilterSearch-BGv08Uq4.js → FilterSearch-7BFUH-VS.js} +8 -8
- package/dist/lazy/{FloatCurd-B6LjEiro.js → FloatCurd-iYCMLAFH.js} +9 -9
- package/dist/lazy/{FormList-BZUyjys-.js → FormList-Bn3SC8j0.js} +1 -1
- package/dist/lazy/{Grid-1RFttQOZ.js → Grid-DLt_7pOQ.js} +1 -1
- package/dist/lazy/{InfiniteScroll-Bs1vvOPs.js → InfiniteScroll-Dwo4-h02.js} +4 -4
- package/dist/lazy/{Inline-RHHDGNWq.js → Inline-DIiBF8zq.js} +3 -3
- package/dist/lazy/{JsonEdit-VuOtthbv.js → JsonEdit-BDXhSX79.js} +3 -3
- package/dist/lazy/{LogList-Cb7MSp2n.js → LogList-CcXBt3Lz.js} +7 -7
- package/dist/lazy/{ObjGroup-CHI8uUIP.js → ObjGroup-CwIe9KUs.js} +3 -3
- package/dist/lazy/{OfferDetails-NmkDJWXY.js → OfferDetails-BBL-IyN0.js} +2 -2
- package/dist/lazy/{Pagination-Z5_mQtRK.js → Pagination-C4MO8AUo.js} +4 -4
- package/dist/lazy/{Progress-DhreEklB.js → Progress-DVftk_bX.js} +15 -15
- package/dist/lazy/{Radio-TcUp4zmk.js → Radio-BynMYSUs.js} +3 -3
- package/dist/lazy/{SearchSelect-BwYhKzLC.js → SearchSelect-BKbHLJrI.js} +6 -6
- package/dist/lazy/{Select-BjfSNdzi.js → Select-CdxmSO3t.js} +2 -2
- package/dist/lazy/{Table-CV_Wq7aZ.js → Table-DStSIVYY.js} +51 -52
- package/dist/lazy/{Tabs-BwwwAqz0.js → Tabs-IKZigybS.js} +11 -11
- package/dist/lazy/{TextArea-D47yvGnI.js → TextArea-aK7TvDmv.js} +2 -2
- package/dist/lazy/{Wrapper-DWws2ZJd.js → Wrapper-HI_rtXrK.js} +2 -2
- package/dist/lazy/{index-adXhXl4D.js → index-GW-oDgSG.js} +60 -60
- package/dist/lazy/{useSelect-DovQJ3Tg.js → useSelect-C3WbRXz4.js} +15 -15
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Card-BCkWdaeA.js +0 -130
- package/dist/lazy/Component-D3ko2zV_.js +0 -30
- package/dist/lazy/Custom-CxSix-Nl.js +0 -26
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,7 @@ props?: TreeOptionProps;
|
|
|
335
335
|
nodeKey: string;
|
|
336
336
|
styleType?: "modal" | "normal";
|
|
337
337
|
name: string;
|
|
338
|
+
showCheckbox?: boolean;
|
|
338
339
|
}>>, {
|
|
339
340
|
getCheckedNodes: () => any;
|
|
340
341
|
type: "tree";
|
|
@@ -349,6 +350,7 @@ props?: TreeOptionProps;
|
|
|
349
350
|
nodeKey: string;
|
|
350
351
|
styleType?: "modal" | "normal";
|
|
351
352
|
name: string;
|
|
353
|
+
showCheckbox?: boolean;
|
|
352
354
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
353
355
|
|
|
354
356
|
declare const _default_2: DefineComponent<ExtractPropTypes< {
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { defineComponent as P, watch as N, ref as B, inject as $, resolveComponent as k, openBlock as a, createBlock as f, mergeProps as V, withCtx as y, createElementVNode as i, normalizeClass as h, createElementBlock as t, createVNode as r, unref as C, createCommentVNode as d, toDisplayString as F, Fragment as b, renderList as z, withDirectives as D, vShow as j } from "vue";
|
|
2
|
+
import { u as H, a as L, I as m, b as T, B as R, f as q, _ as A } from "./index-GW-oDgSG.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const G = {
|
|
5
|
+
key: 3,
|
|
6
|
+
class: "switch-panel"
|
|
7
|
+
}, J = {
|
|
8
|
+
key: 4,
|
|
9
|
+
class: "card-btns"
|
|
10
|
+
}, K = { class: "card-sub-header" }, O = /* @__PURE__ */ P({
|
|
11
|
+
__name: "Card",
|
|
12
|
+
props: {
|
|
13
|
+
name: {},
|
|
14
|
+
hidden: { type: Boolean },
|
|
15
|
+
children: {},
|
|
16
|
+
headerFormSlots: {},
|
|
17
|
+
headerFormSlotsPosition: {},
|
|
18
|
+
collapsible: { type: Boolean },
|
|
19
|
+
typeSwitch: { type: Boolean },
|
|
20
|
+
displayType: {},
|
|
21
|
+
onSwitchChange: {},
|
|
22
|
+
header: {},
|
|
23
|
+
btns: {},
|
|
24
|
+
mainIcon: {},
|
|
25
|
+
extraIcons: {},
|
|
26
|
+
shadowless: { type: Boolean },
|
|
27
|
+
subHeaders: {},
|
|
28
|
+
defaultCollapsed: { type: Boolean }
|
|
29
|
+
},
|
|
30
|
+
setup(_) {
|
|
31
|
+
const s = _;
|
|
32
|
+
N(
|
|
33
|
+
() => s.defaultCollapsed,
|
|
34
|
+
(e) => {
|
|
35
|
+
c.value = e ?? !1;
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
const w = B(s.displayType || (s.typeSwitch ? "card" : "table")), M = H(), g = (e) => {
|
|
39
|
+
if (w.value = e, s.onSwitchChange && u) {
|
|
40
|
+
try {
|
|
41
|
+
u[s.onSwitchChange](S, e);
|
|
42
|
+
} catch (p) {
|
|
43
|
+
console.error(p + `
|
|
44
|
+
onSwitchChange: ${s.onSwitchChange}`);
|
|
45
|
+
}
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const o = q(M.schema.items, s.name), v = (p) => {
|
|
49
|
+
p.forEach((n) => {
|
|
50
|
+
n.component === "Table" && n.props && (n.props.displayType = e), n.children && n.children.length > 0 && v(n.children);
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
o && o.children && v(o.children);
|
|
54
|
+
}, c = B(s.defaultCollapsed ?? !1), u = $("ruleModule", void 0), S = $("pageMethodMap", {}), I = (e) => {
|
|
55
|
+
if (e && u)
|
|
56
|
+
try {
|
|
57
|
+
u[e](S);
|
|
58
|
+
} catch (o) {
|
|
59
|
+
console.error(o + `
|
|
60
|
+
funcName: ${e}`);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return (e, o) => {
|
|
64
|
+
const v = k("el-tooltip"), p = k("el-collapse-transition"), n = k("ElCard");
|
|
65
|
+
return e.hidden ? d("", !0) : (a(), f(n, V({ key: 0 }, e.$attrs, {
|
|
66
|
+
class: ["crm-card", { collapsed: c.value, shadowless: e.shadowless }],
|
|
67
|
+
shadow: "never"
|
|
68
|
+
}), {
|
|
69
|
+
header: y(() => [
|
|
70
|
+
i("div", {
|
|
71
|
+
class: h(["card-header", { "has-collapsed": e.collapsible }])
|
|
72
|
+
}, [
|
|
73
|
+
e.collapsible ? (a(), t("div", {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "icon-wrapper",
|
|
76
|
+
onClick: o[0] || (o[0] = (l) => c.value = !c.value)
|
|
77
|
+
}, [
|
|
78
|
+
r(C(L), {
|
|
79
|
+
name: "dropdown",
|
|
80
|
+
class: h(["dropdown-icon", { "is-collapsed": c.value }])
|
|
81
|
+
}, null, 8, ["class"])
|
|
82
|
+
])) : d("", !0),
|
|
83
|
+
e.mainIcon ? (a(), f(m, {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: "title-icon",
|
|
86
|
+
size: "large",
|
|
87
|
+
name: e.mainIcon.name,
|
|
88
|
+
color: e.mainIcon.color
|
|
89
|
+
}, null, 8, ["name", "color"])) : d("", !0),
|
|
90
|
+
i("span", null, F(e.header), 1),
|
|
91
|
+
e.headerFormSlots ? (a(), t("div", {
|
|
92
|
+
key: 2,
|
|
93
|
+
class: h({
|
|
94
|
+
"header-form-slots-right": e.headerFormSlotsPosition === "right",
|
|
95
|
+
"header-form-slots-left": e.headerFormSlotsPosition === "left"
|
|
96
|
+
})
|
|
97
|
+
}, [
|
|
98
|
+
r(C(T), { list: e.headerFormSlots }, null, 8, ["list"])
|
|
99
|
+
], 2)) : d("", !0),
|
|
100
|
+
(a(!0), t(b, null, z(e.extraIcons, (l) => (a(), t(b, {
|
|
101
|
+
key: l.name
|
|
102
|
+
}, [
|
|
103
|
+
l.tips ? (a(), f(v, {
|
|
104
|
+
key: 0,
|
|
105
|
+
content: l.tips,
|
|
106
|
+
placement: "right"
|
|
107
|
+
}, {
|
|
108
|
+
default: y(() => [
|
|
109
|
+
r(m, {
|
|
110
|
+
class: "extra-icon",
|
|
111
|
+
name: l.name,
|
|
112
|
+
color: l.color,
|
|
113
|
+
size: l.size || "small",
|
|
114
|
+
onClick: (E) => I(l.onClick)
|
|
115
|
+
}, null, 8, ["name", "color", "size", "onClick"])
|
|
116
|
+
]),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1032, ["content"])) : (a(), f(m, {
|
|
119
|
+
key: 1,
|
|
120
|
+
class: "extra-icon",
|
|
121
|
+
name: l.name,
|
|
122
|
+
color: l.color,
|
|
123
|
+
size: l.size || "small",
|
|
124
|
+
onClick: (E) => I(l.onClick)
|
|
125
|
+
}, null, 8, ["name", "color", "size", "onClick"]))
|
|
126
|
+
], 64))), 128)),
|
|
127
|
+
e.typeSwitch ? (a(), t("div", G, [
|
|
128
|
+
i("div", {
|
|
129
|
+
class: h(["switch-icon-wrapper", { active: w.value === "card" }]),
|
|
130
|
+
onClick: o[1] || (o[1] = (l) => g("card"))
|
|
131
|
+
}, [
|
|
132
|
+
r(m, { name: "icon-kapian" })
|
|
133
|
+
], 2),
|
|
134
|
+
i("div", {
|
|
135
|
+
class: h(["switch-icon-wrapper", { active: w.value === "table" }]),
|
|
136
|
+
onClick: o[2] || (o[2] = (l) => g("table"))
|
|
137
|
+
}, [
|
|
138
|
+
r(m, { name: "icon-biaoge" })
|
|
139
|
+
], 2)
|
|
140
|
+
])) : d("", !0),
|
|
141
|
+
e.btns && e.btns.length > 0 ? (a(), t("div", J, [
|
|
142
|
+
r(C(R), {
|
|
143
|
+
btns: e.btns || []
|
|
144
|
+
}, null, 8, ["btns"])
|
|
145
|
+
])) : d("", !0),
|
|
146
|
+
i("div", K, [
|
|
147
|
+
(a(!0), t(b, null, z(e.subHeaders, (l) => (a(), t("div", {
|
|
148
|
+
key: l,
|
|
149
|
+
class: "card-sub-header-item"
|
|
150
|
+
}, [
|
|
151
|
+
i("span", null, F(l), 1)
|
|
152
|
+
]))), 128))
|
|
153
|
+
])
|
|
154
|
+
], 2)
|
|
155
|
+
]),
|
|
156
|
+
default: y(() => [
|
|
157
|
+
r(p, null, {
|
|
158
|
+
default: y(() => [
|
|
159
|
+
D(i("div", null, [
|
|
160
|
+
r(C(T), { list: e.children }, null, 8, ["list"])
|
|
161
|
+
], 512), [
|
|
162
|
+
[j, !c.value]
|
|
163
|
+
])
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
})
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 16, ["class"]));
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
}), X = /* @__PURE__ */ A(O, [["__scopeId", "data-v-33507fb9"]]);
|
|
173
|
+
export {
|
|
174
|
+
X as default
|
|
175
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, mergeModels as g, useModel as h, inject as r, resolveComponent as C, 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-C3WbRXz4.js";
|
|
4
4
|
const k = /* @__PURE__ */ f({
|
|
5
5
|
__name: "Cascader",
|
|
6
6
|
props: /* @__PURE__ */ g({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as F, mergeModels as D, useModel as I, watch as O, resolveComponent as
|
|
1
|
+
import { defineComponent as F, mergeModels as D, useModel as I, watch as O, resolveComponent as d, resolveDirective as P, unref as a, openBlock as l, createElementBlock as i, toDisplayString as S, withDirectives as $, createBlock as s, mergeProps as j, withCtx as h, Fragment as f, renderList as v, createCommentVNode as g } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as E, c as L } from "./index-
|
|
4
|
-
import { u as N } from "./useSelect-
|
|
3
|
+
import { u as E, c as L } from "./index-GW-oDgSG.js";
|
|
4
|
+
import { u as N } from "./useSelect-C3WbRXz4.js";
|
|
5
5
|
const R = { key: 0 }, H = /* @__PURE__ */ F({
|
|
6
6
|
__name: "Checkbox",
|
|
7
7
|
props: /* @__PURE__ */ D({
|
|
@@ -30,46 +30,48 @@ const R = { key: 0 }, H = /* @__PURE__ */ F({
|
|
|
30
30
|
modelModifiers: {}
|
|
31
31
|
}),
|
|
32
32
|
emits: ["update:modelValue"],
|
|
33
|
-
setup(
|
|
34
|
-
const n =
|
|
35
|
-
if (
|
|
33
|
+
setup(p) {
|
|
34
|
+
const n = p, t = I(p, "modelValue"), k = E(), { currentOptions: u, selectChange: c, loading: C } = N(n), { ruleModule: b, pageMethodMap: K } = L(), V = (e) => {
|
|
35
|
+
if (c(e), n.onChange && b)
|
|
36
36
|
try {
|
|
37
|
-
|
|
37
|
+
b[n.onChange](K, e);
|
|
38
38
|
} catch (r) {
|
|
39
39
|
console.error(r + `
|
|
40
40
|
onChange: ${n.onChange}`);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
return O(t,
|
|
44
|
-
var
|
|
45
|
-
const _ =
|
|
46
|
-
return a(k).schema.read ? (l(),
|
|
47
|
-
var
|
|
48
|
-
return (
|
|
43
|
+
return O(t, c), (e, r) => {
|
|
44
|
+
var m;
|
|
45
|
+
const _ = d("el-checkbox"), B = d("el-checkbox-button"), M = d("el-space"), T = d("el-checkbox-group"), w = P("loading");
|
|
46
|
+
return a(k).schema.read ? (l(), i("div", R, S((m = t.value) == null ? void 0 : m.map((o) => {
|
|
47
|
+
var y;
|
|
48
|
+
return (y = a(u).find((z) => z[e.valueKey] === o)) == null ? void 0 : y[e.labelKey];
|
|
49
49
|
}).join("、")), 1)) : $((l(), s(T, j({ key: 1 }, e.$attrs, {
|
|
50
50
|
modelValue: t.value,
|
|
51
51
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
|
|
52
52
|
onChange: V
|
|
53
53
|
}), {
|
|
54
54
|
default: h(() => [
|
|
55
|
-
e.optionType === "circle" || e.optionType === "border" ? (l(!0),
|
|
55
|
+
e.optionType === "circle" || e.optionType === "border" ? (l(!0), i(f, { key: 0 }, v(a(u), (o) => (l(), s(_, {
|
|
56
56
|
key: o[e.valueKey],
|
|
57
57
|
label: o[e.labelKey],
|
|
58
58
|
value: o[e.valueKey],
|
|
59
|
+
disabled: o.disabled,
|
|
59
60
|
border: e.optionType === "border"
|
|
60
|
-
}, null, 8, ["label", "value", "border"]))), 128)) : g("", !0),
|
|
61
|
+
}, null, 8, ["label", "value", "disabled", "border"]))), 128)) : g("", !0),
|
|
61
62
|
e.optionType === "button" ? (l(), s(M, {
|
|
62
63
|
key: 1,
|
|
63
64
|
wrap: "",
|
|
64
65
|
size: [e.space, e.space]
|
|
65
66
|
}, {
|
|
66
67
|
default: h(() => [
|
|
67
|
-
(l(!0),
|
|
68
|
+
(l(!0), i(f, null, v(a(u), (o) => (l(), s(B, {
|
|
68
69
|
key: o[e.valueKey],
|
|
69
70
|
label: o[e.labelKey],
|
|
70
71
|
value: o[e.valueKey],
|
|
72
|
+
disabled: o.disabled,
|
|
71
73
|
size: "large"
|
|
72
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
74
|
+
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
73
75
|
]),
|
|
74
76
|
_: 1
|
|
75
77
|
}, 8, ["size"])) : g("", !0)
|
|
@@ -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-GW-oDgSG.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 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-GW-oDgSG.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { j as O,
|
|
1
|
+
import { defineComponent as P, inject as D, ref as K, watch as S, useTemplateRef as V, readonly as j, onUnmounted as F, resolveComponent as f, openBlock as a, createBlock as h, mergeProps as z, withCtx as N, createElementVNode as y, normalizeClass as w, toDisplayString as U, createElementBlock as _, createCommentVNode as b, Fragment as $, renderList as q, unref as G, withModifiers as H, createVNode as J } from "vue";
|
|
2
|
+
import { j as O, i as Q, I as W, _ as X } from "./index-GW-oDgSG.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = { class: "tree-node-text" }, Z = ["title"], ee = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "tree-node-present"
|
|
7
|
-
}, oe = /* @__PURE__ */
|
|
7
|
+
}, oe = /* @__PURE__ */ P({
|
|
8
8
|
__name: "Component",
|
|
9
9
|
props: {
|
|
10
10
|
onNodeClick: {},
|
|
@@ -16,12 +16,13 @@ const Y = { class: "tree-node-text" }, Z = ["title"], ee = {
|
|
|
16
16
|
props: {},
|
|
17
17
|
nodeKey: {},
|
|
18
18
|
styleType: {},
|
|
19
|
-
name: {}
|
|
19
|
+
name: {},
|
|
20
|
+
showCheckbox: { type: Boolean }
|
|
20
21
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const o =
|
|
23
|
-
|
|
24
|
-
},
|
|
22
|
+
setup(L, { expose: M }) {
|
|
23
|
+
const o = L, r = D("ruleModule", void 0), p = D("pageMethodMap", {}), k = K(), x = (e, t) => {
|
|
24
|
+
k.value = e[o.nodeKey];
|
|
25
|
+
}, I = (e, t, n) => {
|
|
25
26
|
if (e && r)
|
|
26
27
|
try {
|
|
27
28
|
r[e](p, { node: t, data: n });
|
|
@@ -30,12 +31,12 @@ const Y = { class: "tree-node-text" }, Z = ["title"], ee = {
|
|
|
30
31
|
onNodeClick: ${o.onNodeClick}`);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
|
-
let c = null,
|
|
34
|
-
function
|
|
34
|
+
let c = null, s = null, m = 0;
|
|
35
|
+
function R(e, t) {
|
|
35
36
|
console.log("nodeClick", e, t);
|
|
36
|
-
const n = Date.now(), d = e.id, C =
|
|
37
|
-
d === C && n -
|
|
38
|
-
B(e, t), c = null,
|
|
37
|
+
const n = Date.now(), d = e.id, C = s == null ? void 0 : s.id;
|
|
38
|
+
d === C && n - m < 300 ? (c && (clearTimeout(c), c = null), A(e, t), s = null, m = 0) : (c && clearTimeout(c), s = e, m = n, c = setTimeout(() => {
|
|
39
|
+
B(e, t), c = null, s = null, m = 0;
|
|
39
40
|
}, 300));
|
|
40
41
|
}
|
|
41
42
|
const B = (e, t) => {
|
|
@@ -46,7 +47,7 @@ onNodeClick: ${o.onNodeClick}`);
|
|
|
46
47
|
console.error(n + `
|
|
47
48
|
onNodeClick: ${o.onNodeClick}`);
|
|
48
49
|
}
|
|
49
|
-
},
|
|
50
|
+
}, A = (e, t) => {
|
|
50
51
|
if (o.onNodeDbClick && r)
|
|
51
52
|
try {
|
|
52
53
|
r[o.onNodeDbClick](p, { node: e, data: t });
|
|
@@ -54,7 +55,7 @@ onNodeClick: ${o.onNodeClick}`);
|
|
|
54
55
|
console.error(n + `
|
|
55
56
|
onNodeDbClick: ${o.onNodeDbClick}`);
|
|
56
57
|
}
|
|
57
|
-
},
|
|
58
|
+
}, E = (e, t, n) => {
|
|
58
59
|
if (o.onLoad && r)
|
|
59
60
|
try {
|
|
60
61
|
r[o.onLoad](p, { node: e, resolve: t, reject: n });
|
|
@@ -62,24 +63,24 @@ onNodeDbClick: ${o.onNodeDbClick}`);
|
|
|
62
63
|
console.error(d + `
|
|
63
64
|
onLoad: ${o.onLoad}`);
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
-
|
|
66
|
+
}, v = K([]);
|
|
67
|
+
S(
|
|
67
68
|
//默认展开根节点
|
|
68
69
|
() => o.data,
|
|
69
70
|
() => {
|
|
70
71
|
if (!o.data || !Array.isArray(o.data) || o.data.length === 0)
|
|
71
72
|
return;
|
|
72
73
|
const t = [o.data[0][o.nodeKey]];
|
|
73
|
-
|
|
74
|
+
v.value = t;
|
|
74
75
|
},
|
|
75
76
|
{
|
|
76
77
|
immediate: !0
|
|
77
78
|
}
|
|
78
79
|
);
|
|
79
|
-
const
|
|
80
|
+
const g = V("treeRef"), T = j({
|
|
80
81
|
getCheckedNodes: () => {
|
|
81
82
|
var e;
|
|
82
|
-
return (e =
|
|
83
|
+
return (e = g.value) == null ? void 0 : e.getCheckedNodes();
|
|
83
84
|
},
|
|
84
85
|
type: "tree"
|
|
85
86
|
});
|
|
@@ -89,41 +90,42 @@ onLoad: ${o.onLoad}`);
|
|
|
89
90
|
e();
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
|
-
return
|
|
93
|
+
return M(T), (e, t) => {
|
|
93
94
|
const n = f("el-tooltip"), d = f("el-button"), C = f("el-tree");
|
|
94
|
-
return
|
|
95
|
-
onNodeClick:
|
|
96
|
-
load:
|
|
95
|
+
return a(), h(C, z(e.$attrs, {
|
|
96
|
+
onNodeClick: R,
|
|
97
|
+
load: E,
|
|
97
98
|
ref_key: "treeRef",
|
|
98
|
-
ref:
|
|
99
|
+
ref: g,
|
|
99
100
|
class: ["crm-tree", { "modal-tree": e.styleType === "modal" }],
|
|
100
101
|
indent: 32,
|
|
101
|
-
"current-node-key":
|
|
102
|
-
onCurrentChange:
|
|
102
|
+
"current-node-key": k.value,
|
|
103
|
+
onCurrentChange: x,
|
|
103
104
|
"node-key": e.nodeKey,
|
|
104
105
|
props: o.props,
|
|
105
106
|
data: e.data,
|
|
106
|
-
"default-expanded-keys":
|
|
107
|
+
"default-expanded-keys": v.value,
|
|
108
|
+
"show-checkbox": e.showCheckbox
|
|
107
109
|
}), {
|
|
108
110
|
default: N(({ node: i, data: u }) => [
|
|
109
111
|
y("div", {
|
|
110
|
-
class:
|
|
112
|
+
class: w(["custom-tree-node", { "modal-tree-node": e.styleType === "modal" }])
|
|
111
113
|
}, [
|
|
112
114
|
y("div", Y, [
|
|
113
115
|
y("span", {
|
|
114
|
-
class:
|
|
116
|
+
class: w(["tree-node-label", { active: u[e.nodeKey] === k.value && e.styleType === "modal" }]),
|
|
115
117
|
title: i.label
|
|
116
118
|
}, U(i.label), 11, Z),
|
|
117
|
-
u[e.nodeKey] ===
|
|
119
|
+
u[e.nodeKey] === k.value ? (a(), _("div", ee, "Present")) : b("", !0)
|
|
118
120
|
]),
|
|
119
121
|
y("div", null, [
|
|
120
|
-
(
|
|
122
|
+
(a(!0), _($, null, q(e.btns, (l) => (a(), _($, {
|
|
121
123
|
key: l.key
|
|
122
124
|
}, [
|
|
123
|
-
G(Q)(l.hidden, { $node: i, $data: u }) ?
|
|
125
|
+
G(Q)(l.hidden, { $node: i, $data: u }) ? b("", !0) : (a(), h(d, {
|
|
124
126
|
key: 0,
|
|
125
127
|
link: "",
|
|
126
|
-
onClick: H((ne) =>
|
|
128
|
+
onClick: H((ne) => I(l.onClick || "", i, u), ["stop"]),
|
|
127
129
|
disabled: l.disabled,
|
|
128
130
|
type: l.type
|
|
129
131
|
}, {
|
|
@@ -135,12 +137,12 @@ onLoad: ${o.onLoad}`);
|
|
|
135
137
|
placement: "top"
|
|
136
138
|
}, {
|
|
137
139
|
default: N(() => [
|
|
138
|
-
l.icon ? (
|
|
140
|
+
l.icon ? (a(), h(W, {
|
|
139
141
|
key: 0,
|
|
140
142
|
name: l.icon.name,
|
|
141
143
|
color: l.icon.color,
|
|
142
144
|
class: "btn-icon"
|
|
143
|
-
}, null, 8, ["name", "color"])) :
|
|
145
|
+
}, null, 8, ["name", "color"])) : b("", !0)
|
|
144
146
|
]),
|
|
145
147
|
_: 2
|
|
146
148
|
}, 1032, ["content"])
|
|
@@ -152,10 +154,10 @@ onLoad: ${o.onLoad}`);
|
|
|
152
154
|
], 2)
|
|
153
155
|
]),
|
|
154
156
|
_: 1
|
|
155
|
-
}, 16, ["class", "current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
|
|
157
|
+
}, 16, ["class", "current-node-key", "node-key", "props", "data", "default-expanded-keys", "show-checkbox"]);
|
|
156
158
|
};
|
|
157
159
|
}
|
|
158
|
-
}), de = /* @__PURE__ */ X(oe, [["__scopeId", "data-v-
|
|
160
|
+
}), de = /* @__PURE__ */ X(oe, [["__scopeId", "data-v-b018de1d"]]);
|
|
159
161
|
export {
|
|
160
162
|
de as default
|
|
161
163
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as V, mergeModels as _, useModel as $, ref as E, resolveComponent as C, openBlock as o, createElementBlock as n, Fragment as d, createVNode as c, normalizeClass as I, createSlots as L, withCtx as f, createTextVNode as y, createElementVNode as i, createBlock as g, toDisplayString as u, createCommentVNode as p, unref as N, renderList as O } from "vue";
|
|
2
2
|
import { genFileId as R, ElMessage as z, ElMessageBox as j } from "element-plus";
|
|
3
|
-
import { c as P, I as h, a as q, _ as A } from "./index-
|
|
3
|
+
import { c as P, I as h, a as q, _ as A } from "./index-GW-oDgSG.js";
|
|
4
4
|
const G = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "smallDragStyle-text"
|
|
@@ -158,7 +158,7 @@ const G = {
|
|
|
158
158
|
], 64);
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
}), ee = /* @__PURE__ */ A(W, [["__scopeId", "data-v-
|
|
161
|
+
}), ee = /* @__PURE__ */ A(W, [["__scopeId", "data-v-0576569b"]]);
|
|
162
162
|
export {
|
|
163
163
|
ee as default
|
|
164
164
|
};
|
|
@@ -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-GW-oDgSG.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-f5206e68"]]);
|
|
115
115
|
export {
|
|
116
116
|
T as default
|
|
117
117
|
};
|
|
@@ -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-GW-oDgSG.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-0e272b28"]]), 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 p, mergeModels as d, useModel as i, computed as c, resolveComponent as f, openBlock as t, createElementBlock as y, toDisplayString as v, createBlock as k, mergeProps as V } from "vue";
|
|
2
|
-
import { u as _ } from "./index-
|
|
2
|
+
import { u as _ } from "./index-GW-oDgSG.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = { key: 0 }, g = /* @__PURE__ */ p({
|
|
5
5
|
__name: "Component",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as s, inject as r, openBlock as a, createElementBlock as p, mergeProps as f } from "vue";
|
|
2
|
+
const d = ["innerHTML"], h = /* @__PURE__ */ s({
|
|
3
|
+
__name: "Component",
|
|
4
|
+
props: {
|
|
5
|
+
text: {},
|
|
6
|
+
color: {},
|
|
7
|
+
onClick: {},
|
|
8
|
+
params: {},
|
|
9
|
+
fontSize: {},
|
|
10
|
+
fontWeight: {}
|
|
11
|
+
},
|
|
12
|
+
setup(i) {
|
|
13
|
+
const e = r("ruleModule", void 0), c = r("pageMethodMap", {}), n = i, l = async () => {
|
|
14
|
+
const o = n.onClick;
|
|
15
|
+
if (o && e)
|
|
16
|
+
try {
|
|
17
|
+
await e[o](c, n);
|
|
18
|
+
} catch (t) {
|
|
19
|
+
console.error(t + `
|
|
20
|
+
onClick: ${o}`);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return (o, t) => (a(), p("div", f(o.$attrs, {
|
|
24
|
+
innerHTML: o.text,
|
|
25
|
+
onClick: l,
|
|
26
|
+
style: {
|
|
27
|
+
color: o.color,
|
|
28
|
+
cursor: o.onClick ? "pointer" : "default",
|
|
29
|
+
fontSize: o.fontSize,
|
|
30
|
+
fontWeight: o.fontWeight
|
|
31
|
+
}
|
|
32
|
+
}), null, 16, d));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
h as default
|
|
37
|
+
};
|
|
@@ -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,
|
|
2
|
+
import { u as Q, I as h, b as V, B as W, f as X, _ as Y } from "./index-GW-oDgSG.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-17118dac"]]);
|
|
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 d, resolveDynamicComponent as u, mergeProps as c } from "vue";
|
|
2
|
+
import { _ as i } from "./index-GW-oDgSG.js";
|
|
3
|
+
const _ = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "empty"
|
|
6
|
+
}, f = /* @__PURE__ */ n({
|
|
7
|
+
__name: "Custom",
|
|
8
|
+
props: /* @__PURE__ */ s({
|
|
9
|
+
componentName: {}
|
|
10
|
+
}, {
|
|
11
|
+
modelValue: {},
|
|
12
|
+
modelModifiers: {}
|
|
13
|
+
}),
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(l) {
|
|
16
|
+
const o = p(l, "modelValue");
|
|
17
|
+
return (e, m) => e.componentName ? (t(), d(u(e.componentName), c({
|
|
18
|
+
key: 1,
|
|
19
|
+
modelValue: o.value,
|
|
20
|
+
"onUpdate:modelValue": m[0] || (m[0] = (a) => o.value = a)
|
|
21
|
+
}, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", _, "请输入全局注册得组件名"));
|
|
22
|
+
}
|
|
23
|
+
}), v = /* @__PURE__ */ i(f, [["__scopeId", "data-v-2250b7d1"]]);
|
|
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-GW-oDgSG.js";
|
|
4
4
|
const F = { key: 0 }, j = /* @__PURE__ */ y({
|
|
5
5
|
__name: "DatePicker",
|
|
6
6
|
props: /* @__PURE__ */ M({
|