asiaint-lowcode 3.1.19 → 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.
- package/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +126 -98
- package/dist/index.d.ts +6 -6
- package/dist/lazy/{Card-C6-Pw2Kt.js → Card-DP_im0t0.js} +7 -6
- package/dist/lazy/{Cascader-BQlg_B1J.js → Cascader-Bymky24b.js} +14 -13
- package/dist/lazy/{Checkbox-BL9wugR4.js → Checkbox-eq-syYnm.js} +19 -18
- package/dist/lazy/{Collapse-VBM-r16N.js → Collapse-CtBwlWmC.js} +1 -1
- package/dist/lazy/Component-BjTiydgq.js +121 -0
- package/dist/lazy/{Component-TPlA312X.js → Component-CvLIZQ8-.js} +1 -1
- package/dist/lazy/{Component-B16t7OV8.js → Component-DhpjEfpC.js} +1 -1
- package/dist/lazy/{Component-D4pyG7EA.js → Component-DzP4ePYA.js} +2 -2
- package/dist/lazy/{Component-C2I5t5q4.js → Component-arXOIAcw.js} +1 -1
- package/dist/lazy/{Component-BNs8l3D0.js → Component-mJhYJo7Y.js} +2 -2
- package/dist/lazy/CurdCard-BLRicN8s.js +206 -0
- package/dist/lazy/{Custom-Ne8yN2Ea.js → Custom-l010DzNp.js} +7 -7
- package/dist/lazy/{DatePicker-BUZW95kN.js → DatePicker-BVlaRwaH.js} +1 -1
- package/dist/lazy/{DragList-ClgQ3QJ7.js → DragList-DgHMldOj.js} +4 -3
- package/dist/lazy/FilterSearch-DeDhZJ9X.js +149 -0
- package/dist/lazy/{FormList-rqifCuNE.js → FormList-CAhLwu-f.js} +1 -1
- package/dist/lazy/{Grid-D760rpVd.js → Grid-DTC6W7rx.js} +1 -1
- package/dist/lazy/{Inline-C2kevZlA.js → Inline-DIisEVxD.js} +3 -3
- package/dist/lazy/{JsonEdit-BGNMo9TC.js → JsonEdit-BuB4Cyjp.js} +3 -3
- package/dist/lazy/{LogList-DistvWBw.js → LogList-CUKZE5YZ.js} +7 -7
- package/dist/lazy/{ObjGroup-Do3MBFB4.js → ObjGroup-r41RqIB5.js} +1 -1
- package/dist/lazy/{OfferDetails-1lpktyAd.js → OfferDetails-CDw1FUji.js} +11 -11
- package/dist/lazy/{Pagination-Bs6c14gG.js → Pagination-B3I40w4b.js} +7 -7
- package/dist/lazy/{Progress-BYMD3T21.js → Progress-CbKa3A52.js} +5 -5
- package/dist/lazy/{Radio-Cpxboojo.js → Radio-50G6EN-w.js} +21 -20
- package/dist/lazy/{SearchSelect-Dx30Uf_w.js → SearchSelect-hVJIPM-X.js} +34 -32
- package/dist/lazy/{Select-DfBKMQek.js → Select-CBJMdEem.js} +14 -13
- package/dist/lazy/{Table-DtB409LT.js → Table-_aDuQdYX.js} +79 -78
- package/dist/lazy/{Tabs-CFDgaNmd.js → Tabs-o0SIg45e.js} +1 -1
- package/dist/lazy/{Wrapper-BpsPO0Yu.js → Wrapper-B2kzkjgz.js} +9 -9
- package/dist/lazy/{index-Ch0AEG6l.js → index-6IzTZ8mI.js} +484 -448
- package/dist/lazy/{useSelect-MBMFJjvJ.js → useSelect-CIXrOFmJ.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Component-B9_KjLaT.js +0 -118
- package/dist/lazy/CurdCard-C0CV5eG_.js +0 -198
- package/dist/lazy/FilterSearch-EYXFcLfg.js +0 -140
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
|
|
3
2
|
import { Component } from 'vue';
|
|
4
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
5
4
|
import { ComponentProvideOptions } from 'vue';
|
|
6
5
|
import { ComponentPublicInstance } from 'vue';
|
|
7
6
|
import { DeepReadonly } from 'vue';
|
|
8
7
|
import { DefineComponent } from 'vue';
|
|
9
|
-
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
10
8
|
import { ExtractPropTypes } from 'vue';
|
|
11
9
|
import { FormInstance as FormInstance_2 } from 'packages/types';
|
|
12
10
|
import { FormValidationResult } from 'element-plus';
|
|
@@ -310,14 +308,14 @@ readonly onMounted?: string | undefined;
|
|
|
310
308
|
readonly onActivated?: string | undefined;
|
|
311
309
|
readonly onChange?: string | undefined;
|
|
312
310
|
readonly tabProps?: {
|
|
313
|
-
readonly type:
|
|
311
|
+
readonly type: "" | "card" | "border-card";
|
|
314
312
|
readonly closable: boolean;
|
|
315
313
|
readonly stretch: boolean;
|
|
316
314
|
readonly addable: boolean;
|
|
317
315
|
readonly editable: boolean;
|
|
318
|
-
readonly tabPosition:
|
|
319
|
-
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) =>
|
|
320
|
-
readonly modelValue?:
|
|
316
|
+
readonly tabPosition: "right" | "top" | "left" | "bottom";
|
|
317
|
+
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => boolean | void | Promise<boolean | void>;
|
|
318
|
+
readonly modelValue?: (string | number) | undefined;
|
|
321
319
|
} | undefined;
|
|
322
320
|
readonly hidden?: boolean | undefined;
|
|
323
321
|
readonly isSticky?: boolean | undefined;
|
|
@@ -589,6 +587,7 @@ label: string;
|
|
|
589
587
|
value: string;
|
|
590
588
|
}[];
|
|
591
589
|
onSearch: string;
|
|
590
|
+
onChange?: string;
|
|
592
591
|
onSearchTypeChange: string;
|
|
593
592
|
}>>, {
|
|
594
593
|
setSearchValue: (val: string) => void;
|
|
@@ -609,6 +608,7 @@ label: string;
|
|
|
609
608
|
value: string;
|
|
610
609
|
}[];
|
|
611
610
|
onSearch: string;
|
|
611
|
+
onChange?: string;
|
|
612
612
|
onSearchTypeChange: string;
|
|
613
613
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
614
614
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
2
|
-
import { _ as D, I as u, B as F, a as N, b as S } from "./index-
|
|
1
|
+
import { defineComponent as B, ref as $, inject as _, resolveComponent as d, openBlock as o, createBlock as c, mergeProps as M, withCtx as i, createElementVNode as s, normalizeClass as C, createElementBlock as n, createVNode as r, unref as p, createCommentVNode as k, toDisplayString as f, Fragment as m, renderList as b, withDirectives as E, vShow as V } from "vue";
|
|
2
|
+
import { _ as D, I as u, B as F, a as N, b as S } from "./index-6IzTZ8mI.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const j = { class: "card-btns" }, H = { class: "card-sub-header" }, L = /* @__PURE__ */ B({
|
|
5
5
|
__name: "Card",
|
|
@@ -14,17 +14,18 @@ const j = { class: "card-btns" }, H = { class: "card-sub-header" }, L = /* @__PU
|
|
|
14
14
|
subHeaders: {}
|
|
15
15
|
},
|
|
16
16
|
setup(P) {
|
|
17
|
-
const a =
|
|
17
|
+
const a = $(!1), h = _("ruleModule", void 0), w = _("pageMethodMap", {}), v = (e) => {
|
|
18
18
|
if (e && h)
|
|
19
19
|
try {
|
|
20
20
|
h[e](w);
|
|
21
21
|
} catch (t) {
|
|
22
|
-
console.error(t
|
|
22
|
+
console.error(t + `
|
|
23
|
+
funcName: ${e}`);
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
return (e, t) => {
|
|
26
27
|
const y = d("el-tooltip"), I = d("el-collapse-transition"), z = d("ElCard");
|
|
27
|
-
return o(), c(z,
|
|
28
|
+
return o(), c(z, M(e.$attrs, {
|
|
28
29
|
class: ["crm-card", { collapsed: a.value, shadowless: e.shadowless }],
|
|
29
30
|
shadow: "never"
|
|
30
31
|
}), {
|
|
@@ -108,7 +109,7 @@ const j = { class: "card-btns" }, H = { class: "card-sub-header" }, L = /* @__PU
|
|
|
108
109
|
}, 16, ["class"]);
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
|
-
}), G = /* @__PURE__ */ S(L, [["__scopeId", "data-v-
|
|
112
|
+
}), G = /* @__PURE__ */ S(L, [["__scopeId", "data-v-5f9110ba"]]);
|
|
112
113
|
export {
|
|
113
114
|
G as default
|
|
114
115
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, mergeModels as g, useModel as
|
|
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-CIXrOFmJ.js";
|
|
4
4
|
const k = /* @__PURE__ */ f({
|
|
5
5
|
__name: "Cascader",
|
|
6
6
|
props: /* @__PURE__ */ g({
|
|
@@ -27,19 +27,20 @@ const k = /* @__PURE__ */ f({
|
|
|
27
27
|
}),
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
29
|
setup(a) {
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
30
|
+
const o = a, n = C(a, "modelValue"), t = r("ruleModule", void 0), s = r("pageMethodMap", {}), u = (e) => {
|
|
31
|
+
if (o.onChange && t)
|
|
32
32
|
try {
|
|
33
|
-
|
|
34
|
-
} catch (
|
|
35
|
-
console.error(
|
|
33
|
+
t[o.onChange](s, e);
|
|
34
|
+
} catch (l) {
|
|
35
|
+
console.error(l + `
|
|
36
|
+
onChange: ${o.onChange}`);
|
|
36
37
|
}
|
|
37
|
-
}, { currentOptions: p, loading: i } = b(
|
|
38
|
-
return (e,
|
|
39
|
-
const m =
|
|
40
|
-
return
|
|
41
|
-
modelValue:
|
|
42
|
-
"onUpdate:modelValue":
|
|
38
|
+
}, { currentOptions: p, loading: i } = b(o);
|
|
39
|
+
return (e, l) => {
|
|
40
|
+
const m = h("el-cascader");
|
|
41
|
+
return v(), y(m, M({
|
|
42
|
+
modelValue: n.value,
|
|
43
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
|
|
43
44
|
options: d(p),
|
|
44
45
|
loading: d(i),
|
|
45
46
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 u, resolveDirective as P, unref as a, openBlock as l, createElementBlock as p, toDisplayString as S, withDirectives as $, createBlock as s, mergeProps as j, withCtx as f, Fragment as h, renderList as v, createCommentVNode as g } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
const
|
|
3
|
+
import { u as E, c as L } from "./index-6IzTZ8mI.js";
|
|
4
|
+
import { u as N } from "./useSelect-CIXrOFmJ.js";
|
|
5
|
+
const R = { key: 0 }, H = /* @__PURE__ */ F({
|
|
6
6
|
__name: "Checkbox",
|
|
7
7
|
props: /* @__PURE__ */ D({
|
|
8
8
|
options: { default: () => [] },
|
|
@@ -30,39 +30,40 @@ const U = { key: 0 }, H = /* @__PURE__ */ F({
|
|
|
30
30
|
}),
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
32
|
setup(c) {
|
|
33
|
-
const
|
|
34
|
-
if (i(e),
|
|
33
|
+
const n = c, t = I(c, "modelValue"), k = E(), { currentOptions: d, selectChange: i, loading: C } = N(n), { ruleModule: m, pageMethodMap: K } = L(), V = (e) => {
|
|
34
|
+
if (i(e), n.onChange && m)
|
|
35
35
|
try {
|
|
36
|
-
m[
|
|
37
|
-
} catch (
|
|
38
|
-
console.error(
|
|
36
|
+
m[n.onChange](K, e);
|
|
37
|
+
} catch (r) {
|
|
38
|
+
console.error(r + `
|
|
39
|
+
onChange: ${n.onChange}`);
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
|
-
return O(
|
|
42
|
+
return O(t, i), (e, r) => {
|
|
42
43
|
var y;
|
|
43
|
-
const _ =
|
|
44
|
-
return a(k).schema.read ? (l(), p("div",
|
|
44
|
+
const _ = u("el-checkbox"), B = u("el-checkbox-button"), M = u("el-space"), T = u("el-checkbox-group"), w = P("loading");
|
|
45
|
+
return a(k).schema.read ? (l(), p("div", R, S((y = t.value) == null ? void 0 : y.map((o) => {
|
|
45
46
|
var b;
|
|
46
47
|
return (b = a(d).find((z) => z[e.valueKey] === o)) == null ? void 0 : b[e.labelKey];
|
|
47
|
-
}).join("、")), 1)) :
|
|
48
|
-
modelValue:
|
|
49
|
-
"onUpdate:modelValue":
|
|
48
|
+
}).join("、")), 1)) : $((l(), s(T, j({ key: 1 }, e.$attrs, {
|
|
49
|
+
modelValue: t.value,
|
|
50
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
|
|
50
51
|
onChange: V
|
|
51
52
|
}), {
|
|
52
53
|
default: f(() => [
|
|
53
|
-
e.optionType === "circle" || e.optionType === "border" ? (l(!0), p(h, { key: 0 }, v(a(d), (o) => (l(),
|
|
54
|
+
e.optionType === "circle" || e.optionType === "border" ? (l(!0), p(h, { key: 0 }, v(a(d), (o) => (l(), s(_, {
|
|
54
55
|
key: o[e.valueKey],
|
|
55
56
|
label: o[e.labelKey],
|
|
56
57
|
value: o[e.valueKey],
|
|
57
58
|
border: e.optionType === "border"
|
|
58
59
|
}, null, 8, ["label", "value", "border"]))), 128)) : g("", !0),
|
|
59
|
-
e.optionType === "button" ? (l(),
|
|
60
|
+
e.optionType === "button" ? (l(), s(M, {
|
|
60
61
|
key: 1,
|
|
61
62
|
wrap: "",
|
|
62
63
|
size: [e.space, e.space]
|
|
63
64
|
}, {
|
|
64
65
|
default: f(() => [
|
|
65
|
-
(l(!0), p(h, null, v(a(d), (o) => (l(),
|
|
66
|
+
(l(!0), p(h, null, v(a(d), (o) => (l(), s(B, {
|
|
66
67
|
key: o[e.valueKey],
|
|
67
68
|
label: o[e.labelKey],
|
|
68
69
|
value: o[e.valueKey],
|
|
@@ -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 { a as y } from "./index-
|
|
2
|
+
import { a as y } from "./index-6IzTZ8mI.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 x = /* @__PURE__ */ u({
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defineComponent as b, inject as h, ref as N, watch as w, resolveComponent as k, openBlock as d, createBlock as m, mergeProps as A, withCtx as y, createElementVNode as l, toDisplayString as B, createElementBlock as _, createCommentVNode as f, Fragment as v, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
|
|
2
|
+
import { h as F, I as j, b as D } from "./index-6IzTZ8mI.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "tree-node-present"
|
|
7
|
+
}, G = /* @__PURE__ */ b({
|
|
8
|
+
__name: "Component",
|
|
9
|
+
props: {
|
|
10
|
+
onNodeClick: {},
|
|
11
|
+
onLoad: {},
|
|
12
|
+
btns: {},
|
|
13
|
+
data: {},
|
|
14
|
+
props: {},
|
|
15
|
+
nodeKey: {}
|
|
16
|
+
},
|
|
17
|
+
setup(g) {
|
|
18
|
+
const e = g, a = h("ruleModule", void 0), s = h("pageMethodMap", {}), i = N(), K = (o, t) => {
|
|
19
|
+
i.value = o[e.nodeKey];
|
|
20
|
+
}, L = (o, t, r) => {
|
|
21
|
+
if (o && a)
|
|
22
|
+
try {
|
|
23
|
+
a[o](s, { node: t, data: r });
|
|
24
|
+
} catch (c) {
|
|
25
|
+
console.error(c + `
|
|
26
|
+
onNodeClick: ${e.onNodeClick}`);
|
|
27
|
+
}
|
|
28
|
+
}, M = (o, t) => {
|
|
29
|
+
if (e.onNodeClick && a)
|
|
30
|
+
try {
|
|
31
|
+
a[e.onNodeClick](s, { node: o, data: t });
|
|
32
|
+
} catch (r) {
|
|
33
|
+
console.error(r + `
|
|
34
|
+
onNodeClick: ${e.onNodeClick}`);
|
|
35
|
+
}
|
|
36
|
+
}, $ = (o, t, r) => {
|
|
37
|
+
if (e.onLoad && a)
|
|
38
|
+
try {
|
|
39
|
+
a[e.onLoad](s, { node: o, resolve: t, reject: r });
|
|
40
|
+
} catch (c) {
|
|
41
|
+
console.error(c + `
|
|
42
|
+
onLoad: ${e.onLoad}`);
|
|
43
|
+
}
|
|
44
|
+
}, C = N([]);
|
|
45
|
+
return w(
|
|
46
|
+
//默认展开根节点
|
|
47
|
+
() => e.data,
|
|
48
|
+
() => {
|
|
49
|
+
if (!e.data || !Array.isArray(e.data) || e.data.length === 0)
|
|
50
|
+
return;
|
|
51
|
+
const t = [e.data[0][e.nodeKey]];
|
|
52
|
+
C.value = t;
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
immediate: !0
|
|
56
|
+
}
|
|
57
|
+
), (o, t) => {
|
|
58
|
+
const r = k("el-tooltip"), c = k("el-button"), x = k("el-tree");
|
|
59
|
+
return d(), m(x, A(o.$attrs, {
|
|
60
|
+
onNodeClick: M,
|
|
61
|
+
load: $,
|
|
62
|
+
ref: "treeRef",
|
|
63
|
+
class: "crm-tree",
|
|
64
|
+
indent: 32,
|
|
65
|
+
"current-node-key": i.value,
|
|
66
|
+
onCurrentChange: K,
|
|
67
|
+
"node-key": o.nodeKey,
|
|
68
|
+
props: e.props,
|
|
69
|
+
data: o.data,
|
|
70
|
+
"default-expanded-keys": C.value
|
|
71
|
+
}), {
|
|
72
|
+
default: y(({ node: p, data: u }) => [
|
|
73
|
+
l("div", R, [
|
|
74
|
+
l("div", S, [
|
|
75
|
+
l("span", q, B(p.label), 1),
|
|
76
|
+
u[o.nodeKey] === i.value ? (d(), _("div", z, "Present")) : f("", !0)
|
|
77
|
+
]),
|
|
78
|
+
l("div", null, [
|
|
79
|
+
(d(!0), _(v, null, E(o.btns, (n) => (d(), _(v, {
|
|
80
|
+
key: n.key
|
|
81
|
+
}, [
|
|
82
|
+
I(F)(n.hidden, { $node: p, $data: u }) ? f("", !0) : (d(), m(c, {
|
|
83
|
+
key: 0,
|
|
84
|
+
link: "",
|
|
85
|
+
onClick: P((H) => L(n.onClick || "", p, u), ["stop"]),
|
|
86
|
+
disabled: n.disabled,
|
|
87
|
+
type: n.type
|
|
88
|
+
}, {
|
|
89
|
+
default: y(() => [
|
|
90
|
+
V(r, {
|
|
91
|
+
class: "box-item",
|
|
92
|
+
effect: "dark",
|
|
93
|
+
content: n.text,
|
|
94
|
+
placement: "top",
|
|
95
|
+
"popper-class": "low-tsp"
|
|
96
|
+
}, {
|
|
97
|
+
default: y(() => [
|
|
98
|
+
n.icon ? (d(), m(j, {
|
|
99
|
+
key: 0,
|
|
100
|
+
name: n.icon.name,
|
|
101
|
+
color: n.icon.color,
|
|
102
|
+
class: "btn-icon"
|
|
103
|
+
}, null, 8, ["name", "color"])) : f("", !0)
|
|
104
|
+
]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1032, ["content"])
|
|
107
|
+
]),
|
|
108
|
+
_: 2
|
|
109
|
+
}, 1032, ["onClick", "disabled", "type"]))
|
|
110
|
+
], 64))), 128))
|
|
111
|
+
])
|
|
112
|
+
])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 16, ["current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}), T = /* @__PURE__ */ D(G, [["__scopeId", "data-v-016a1506"]]);
|
|
119
|
+
export {
|
|
120
|
+
T as default
|
|
121
|
+
};
|
|
@@ -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-6IzTZ8mI.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = { key: 0 }, g = /* @__PURE__ */ p({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
|
|
2
2
|
import { ElMessage as M, ElMessageBox as N } from "element-plus";
|
|
3
|
-
import { _ as f } from "./index-
|
|
3
|
+
import { _ as f } from "./index-6IzTZ8mI.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -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 { b as H, u as K, d as Q } from "./index-
|
|
2
|
+
import { b as H, u as K, d as Q } from "./index-6IzTZ8mI.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-6IzTZ8mI.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
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 b, b as x } from "./index-
|
|
5
|
+
import { u as b, b as x } from "./index-6IzTZ8mI.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
function S() {
|
|
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__ */ x(k, [["__scopeId", "data-v-
|
|
114
|
+
}), T = /* @__PURE__ */ x(k, [["__scopeId", "data-v-eda48825"]]);
|
|
115
115
|
export {
|
|
116
116
|
T as default
|
|
117
117
|
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { defineComponent as U, inject as M, ref as k, resolveComponent as C, openBlock as o, createElementBlock as s, normalizeClass as m, normalizeStyle as A, createElementVNode as c, createBlock as p, createCommentVNode as u, toDisplayString as z, withCtx as v, Fragment as B, renderList as R, createTextVNode as O, createVNode as r, withKeys as q, unref as I, withDirectives as G, vShow as H } from "vue";
|
|
2
|
+
import { u as J, I as h, a as V, B as Q, i as W, b as X } from "./index-6IzTZ8mI.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const Y = ["id"], Z = { class: "left-part" }, x = { class: "title" }, ee = { class: "right-part" }, le = { key: 0 }, ae = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "switch-panel"
|
|
7
|
+
}, oe = { key: 3 }, ne = /* @__PURE__ */ U({
|
|
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
|
+
handleSearch: {},
|
|
30
|
+
searchInputChange: {}
|
|
31
|
+
},
|
|
32
|
+
setup(D) {
|
|
33
|
+
const t = M("ruleModule", void 0), y = M("pageMethodMap", {}), T = k(""), n = D, b = k(n.radioDefault ?? "2"), _ = (e) => {
|
|
34
|
+
if (e && t)
|
|
35
|
+
try {
|
|
36
|
+
t[e](y);
|
|
37
|
+
} catch (a) {
|
|
38
|
+
console.error(a + `
|
|
39
|
+
funcName: ${e}`);
|
|
40
|
+
}
|
|
41
|
+
}, L = (e) => {
|
|
42
|
+
n.onRadioChange && t && t[n.onRadioChange](y, e);
|
|
43
|
+
}, N = () => {
|
|
44
|
+
d.value = !d.value, n.onCollapsed && t && t[n.onCollapsed](y, d.value);
|
|
45
|
+
}, d = k(n.defaultCollapse ?? !1), f = k(n.displayType || (n.typeSwitch ? "card" : "table")), P = J(), S = (e) => {
|
|
46
|
+
f.value = e;
|
|
47
|
+
const a = W(P.schema.items, n.name), g = (w) => {
|
|
48
|
+
w.forEach((i) => {
|
|
49
|
+
i.component === "Table" && i.props && (i.props.displayType = e), i.children && i.children.length > 0 && g(i.children);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
a && a.children && g(a.children);
|
|
53
|
+
}, $ = (e) => {
|
|
54
|
+
n.handleSearch && t && t[n.handleSearch](y, e);
|
|
55
|
+
}, j = (e) => {
|
|
56
|
+
n.searchInputChange && t && t[n.searchInputChange](y, e);
|
|
57
|
+
};
|
|
58
|
+
return S(f.value), (e, a) => {
|
|
59
|
+
const g = C("el-radio"), w = C("el-radio-group"), i = C("el-tooltip"), E = C("el-input"), F = C("el-collapse-transition");
|
|
60
|
+
return o(), s("div", {
|
|
61
|
+
class: m(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
|
|
62
|
+
style: A(e.style),
|
|
63
|
+
id: e.name
|
|
64
|
+
}, [
|
|
65
|
+
c("div", {
|
|
66
|
+
class: m(["card-header", {
|
|
67
|
+
inline: e.type === "inline",
|
|
68
|
+
mix: e.type === "mix",
|
|
69
|
+
default: e.type === "default",
|
|
70
|
+
gridItem: e.type === "gridItem",
|
|
71
|
+
collapsedPadding: d.value && e.onCollapsed,
|
|
72
|
+
"has-search-input": e.hasSearchInput
|
|
73
|
+
}])
|
|
74
|
+
}, [
|
|
75
|
+
c("div", Z, [
|
|
76
|
+
e.mainIcon ? (o(), p(h, {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "title-icon",
|
|
79
|
+
size: "large",
|
|
80
|
+
name: e.mainIcon.name,
|
|
81
|
+
color: e.mainIcon.color
|
|
82
|
+
}, null, 8, ["name", "color"])) : u("", !0),
|
|
83
|
+
c("span", x, z(e.title), 1),
|
|
84
|
+
e.radioList ? (o(), p(w, {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "ml-9",
|
|
87
|
+
modelValue: b.value,
|
|
88
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => b.value = l),
|
|
89
|
+
onChange: a[1] || (a[1] = (l) => L(b.value))
|
|
90
|
+
}, {
|
|
91
|
+
default: v(() => [
|
|
92
|
+
(o(!0), s(B, null, R(e.radioList, (l) => (o(), p(g, {
|
|
93
|
+
value: l.value,
|
|
94
|
+
key: l.value
|
|
95
|
+
}, {
|
|
96
|
+
default: v(() => [
|
|
97
|
+
O(z(l.label), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 2
|
|
100
|
+
}, 1032, ["value"]))), 128))
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["modelValue"])) : u("", !0),
|
|
104
|
+
(o(!0), s(B, null, R(e.extraIcons, (l) => (o(), s(B, {
|
|
105
|
+
key: l.name
|
|
106
|
+
}, [
|
|
107
|
+
l.tips ? (o(), p(i, {
|
|
108
|
+
key: 0,
|
|
109
|
+
content: l.tips,
|
|
110
|
+
placement: "right"
|
|
111
|
+
}, {
|
|
112
|
+
default: v(() => [
|
|
113
|
+
r(h, {
|
|
114
|
+
class: "extra-icon",
|
|
115
|
+
name: l.name,
|
|
116
|
+
color: l.color,
|
|
117
|
+
onClick: (K) => _(l.onClick)
|
|
118
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
119
|
+
]),
|
|
120
|
+
_: 2
|
|
121
|
+
}, 1032, ["content"])) : (o(), p(h, {
|
|
122
|
+
key: 1,
|
|
123
|
+
class: "extra-icon",
|
|
124
|
+
name: l.name,
|
|
125
|
+
color: l.color,
|
|
126
|
+
onClick: (K) => _(l.onClick)
|
|
127
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
128
|
+
], 64))), 128))
|
|
129
|
+
]),
|
|
130
|
+
e.hasSearchInput ? (o(), s("div", {
|
|
131
|
+
key: 0,
|
|
132
|
+
class: m(["card-search-input", { collapsedPadding: d.value && e.onCollapsed }])
|
|
133
|
+
}, [
|
|
134
|
+
r(E, {
|
|
135
|
+
modelValue: T.value,
|
|
136
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => T.value = l),
|
|
137
|
+
placeholder: e.searchPlaceholder,
|
|
138
|
+
size: "large",
|
|
139
|
+
onInput: j,
|
|
140
|
+
onKeyup: q($, ["enter"])
|
|
141
|
+
}, {
|
|
142
|
+
prefix: v(() => a[5] || (a[5] = [])),
|
|
143
|
+
suffix: v(() => [
|
|
144
|
+
r(h, {
|
|
145
|
+
class: "cursor-pointer",
|
|
146
|
+
name: "icon-lujing2",
|
|
147
|
+
color: "#666666",
|
|
148
|
+
size: "normal",
|
|
149
|
+
onClick: $
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["modelValue", "placeholder"])
|
|
154
|
+
], 2)) : u("", !0),
|
|
155
|
+
c("div", ee, [
|
|
156
|
+
e.formSlots ? (o(), s("div", le, [
|
|
157
|
+
r(I(V), { list: e.formSlots }, null, 8, ["list"])
|
|
158
|
+
])) : u("", !0),
|
|
159
|
+
e.typeSwitch ? (o(), s("div", ae, [
|
|
160
|
+
c("div", {
|
|
161
|
+
class: m(["switch-icon-wrapper", { active: f.value === "card" }]),
|
|
162
|
+
onClick: a[3] || (a[3] = (l) => S("card"))
|
|
163
|
+
}, [
|
|
164
|
+
r(h, { name: "icon-kapian" })
|
|
165
|
+
], 2),
|
|
166
|
+
c("div", {
|
|
167
|
+
class: m(["switch-icon-wrapper", { active: f.value === "table" }]),
|
|
168
|
+
onClick: a[4] || (a[4] = (l) => S("table"))
|
|
169
|
+
}, [
|
|
170
|
+
r(h, { name: "icon-biaoge" })
|
|
171
|
+
], 2)
|
|
172
|
+
])) : u("", !0),
|
|
173
|
+
e.collapsible ? (o(), s("div", {
|
|
174
|
+
key: 2,
|
|
175
|
+
class: m(["collapse-icon-wrapper", { collapsed: d.value }]),
|
|
176
|
+
onClick: N
|
|
177
|
+
}, [
|
|
178
|
+
r(h, { name: "icon-shaixuan" })
|
|
179
|
+
], 2)) : u("", !0),
|
|
180
|
+
e.btns && e.btns.length > 0 ? (o(), s("div", oe, [
|
|
181
|
+
r(I(Q), {
|
|
182
|
+
btns: e.btns || []
|
|
183
|
+
}, null, 8, ["btns"])
|
|
184
|
+
])) : u("", !0)
|
|
185
|
+
])
|
|
186
|
+
], 2),
|
|
187
|
+
e.onCollapsed ? (o(), p(I(V), {
|
|
188
|
+
key: 1,
|
|
189
|
+
list: e.children
|
|
190
|
+
}, null, 8, ["list"])) : (o(), p(F, { key: 0 }, {
|
|
191
|
+
default: v(() => [
|
|
192
|
+
G(c("div", null, [
|
|
193
|
+
r(I(V), { list: e.children }, null, 8, ["list"])
|
|
194
|
+
], 512), [
|
|
195
|
+
[H, !d.value]
|
|
196
|
+
])
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}))
|
|
200
|
+
], 14, Y);
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}), ie = /* @__PURE__ */ X(ne, [["__scopeId", "data-v-f502e871"]]);
|
|
204
|
+
export {
|
|
205
|
+
ie as default
|
|
206
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as
|
|
2
|
-
import { b as i } from "./index-
|
|
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 { b as i } from "./index-6IzTZ8mI.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -12,15 +12,15 @@ const f = {
|
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const o = p(
|
|
17
|
-
return (e, m) => e.componentName ? (t(), d(
|
|
15
|
+
setup(a) {
|
|
16
|
+
const o = p(a, "modelValue");
|
|
17
|
+
return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
|
|
18
18
|
key: 1,
|
|
19
19
|
modelValue: o.value,
|
|
20
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
20
|
+
"onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
|
|
21
21
|
}, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
|
|
22
22
|
}
|
|
23
|
-
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-
|
|
23
|
+
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
|
|
24
24
|
export {
|
|
25
25
|
v as default
|
|
26
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, mergeModels as f, useModel as v, useAttrs as k, computed as r, resolveComponent as y, openBlock as l, createElementBlock as _, toDisplayString as V, createBlock as B, mergeProps as M } from "vue";
|
|
2
2
|
import { dayjs as g } from "element-plus";
|
|
3
|
-
import { u as h } from "./index-
|
|
3
|
+
import { u as h } from "./index-6IzTZ8mI.js";
|
|
4
4
|
const D = { key: 0 }, I = /* @__PURE__ */ i({
|
|
5
5
|
__name: "DatePicker",
|
|
6
6
|
props: /* @__PURE__ */ f({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as G, reactive as W, ref as F, onBeforeMount as le, onMounted as ie, nextTick as v, onBeforeUnmount as re, watch as u, provide as T, toRefs as V, openBlock as S, createElementBlock as j, normalizeStyle as ne, renderSlot as q, Fragment as se, renderList as ue, createBlock as P, mergeProps as de, withCtx as J, withDirectives as ce, createVNode as K, vShow as me, mergeModels as pe, useModel as ge, onUnmounted as ye, unref as A, readonly as O } from "vue";
|
|
2
|
-
import { w as ve, m as fe, n as he, o as b, T as we, v as xe, p as k, A as Be, q as X, x as be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as Y, V as Se, c as ze, j as Re, a as Ne, b as $e } from "./index-
|
|
2
|
+
import { w as ve, m as fe, n as he, o as b, T as we, v as xe, p as k, A as Be, q as X, x as be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as Y, V as Se, c as ze, j as Re, a as Ne, b as $e } from "./index-6IzTZ8mI.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Ie = /* @__PURE__ */ G({
|
|
5
5
|
__name: "grid-layout",
|
|
@@ -288,7 +288,8 @@ const Ie = /* @__PURE__ */ G({
|
|
|
288
288
|
try {
|
|
289
289
|
d[f.onMoved](R, O(a.value));
|
|
290
290
|
} catch (o) {
|
|
291
|
-
console.error(o
|
|
291
|
+
console.error(o + `
|
|
292
|
+
onMoved: ${f.onMoved}`);
|
|
292
293
|
}
|
|
293
294
|
};
|
|
294
295
|
if (z(l), f.name) {
|
|
@@ -321,7 +322,7 @@ const Ie = /* @__PURE__ */ G({
|
|
|
321
322
|
_: 1
|
|
322
323
|
}, 8, ["layout", "col-num", "row-height", "max-rows", "is-draggable"]));
|
|
323
324
|
}
|
|
324
|
-
}), We = /* @__PURE__ */ $e(Ee, [["__scopeId", "data-v-
|
|
325
|
+
}), We = /* @__PURE__ */ $e(Ee, [["__scopeId", "data-v-4c9d1c4f"]]);
|
|
325
326
|
export {
|
|
326
327
|
We as default
|
|
327
328
|
};
|