asiaint-lowcode 3.1.56 → 3.1.58
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 +190 -188
- package/dist/index.d.ts +383 -7
- package/dist/lazy/{Card-BlakHGF_.js → Card-D0bbXvkE.js} +2 -2
- package/dist/lazy/{Cascader-BOwEQkqr.js → Cascader-CVF7Mugg.js} +1 -1
- package/dist/lazy/{Checkbox-1qYzxvx3.js → Checkbox-_T8IhBqC.js} +2 -2
- package/dist/lazy/{Collapse-DFhQjGTg.js → Collapse-Ds1b3YDU.js} +1 -1
- package/dist/lazy/{Component-D6OIJgBS.js → Component-B8bF5XT4.js} +1 -1
- package/dist/lazy/Component-C9plUbiY.js +143 -0
- package/dist/lazy/Component-CFM9XDEd.js +162 -0
- package/dist/lazy/{Component-DqTP-dqG.js → Component-CdoBzMc7.js} +2 -2
- package/dist/lazy/Component-D3ko2zV_.js +30 -0
- package/dist/lazy/{Component-uvnooS14.js → Component-DP42ZKK_.js} +2 -2
- package/dist/lazy/{Component-BOC_tZaw.js → Component-DomwdjSx.js} +1 -1
- package/dist/lazy/{CurdCard-7elTeYSM.js → CurdCard-BQRlQVr1.js} +21 -20
- package/dist/lazy/Custom-g38jchRO.js +26 -0
- package/dist/lazy/{DatePicker-vabWbXWk.js → DatePicker-CH9-SrZS.js} +22 -20
- package/dist/lazy/{DragList-ptXtINib.js → DragList-DrNbhRhP.js} +13 -13
- package/dist/lazy/{FilterSearch-DX7lyU5K.js → FilterSearch-FpJsKJ3o.js} +8 -8
- package/dist/lazy/FloatCurd-5xXw_Uuf.js +161 -0
- package/dist/lazy/{FormList-CQafRlf1.js → FormList-uX7IBTqh.js} +1 -1
- package/dist/lazy/{Grid-BHXnN5tG.js → Grid-ysr0Sucp.js} +1 -1
- package/dist/lazy/{InfiniteScroll-B9A8fTzl.js → InfiniteScroll-DZQrpuci.js} +4 -4
- package/dist/lazy/{Inline-CLeU2_yh.js → Inline-CbhYGfPg.js} +3 -3
- package/dist/lazy/{JsonEdit-CR8pc1r0.js → JsonEdit-CyMnmq3r.js} +3 -3
- package/dist/lazy/{LogList-C0n583jZ.js → LogList-uph8HlCd.js} +7 -7
- package/dist/lazy/{ObjGroup-CWyMW8ok.js → ObjGroup-N7KsOVel.js} +1 -1
- package/dist/lazy/{OfferDetails-Bk2fm7if.js → OfferDetails-CIul9KOu.js} +10 -8
- package/dist/lazy/{Pagination-BTgJMuH1.js → Pagination-DjW7ZS5F.js} +4 -4
- package/dist/lazy/{Progress-DbQWJ6ZF.js → Progress-CdesxNAo.js} +15 -15
- package/dist/lazy/{Radio-BFsZCzNl.js → Radio-_4avXRsG.js} +3 -3
- package/dist/lazy/{SearchSelect-CTNUhnXg.js → SearchSelect-smSaLg9O.js} +6 -6
- package/dist/lazy/{Select-CImoPfB1.js → Select-CSAee2NV.js} +2 -2
- package/dist/lazy/Table-DwCCVOES.js +568 -0
- package/dist/lazy/Tabs-CwqrqWqQ.js +127 -0
- package/dist/lazy/TextArea-Cvka_TgI.js +34 -0
- package/dist/lazy/{Wrapper-B4mdrBTT.js → Wrapper-Bu6nqkrG.js} +2 -2
- package/dist/lazy/{index-BMlHLc-c.js → index-BOGnFXnC.js} +18345 -18107
- package/dist/lazy/{useSelect-DWF-2iPr.js → useSelect-koHM4kMI.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Component-BybPseK_.js +0 -153
- package/dist/lazy/Component-T0MaVDE3.js +0 -13
- package/dist/lazy/Component-TyczCMR3.js +0 -120
- package/dist/lazy/Custom-CFg-E0l1.js +0 -26
- package/dist/lazy/Table-CQKjjRQt.js +0 -527
- package/dist/lazy/Tabs-Qh5RoptW.js +0 -72
- package/dist/lazy/TextArea-CHd9bsw8.js +0 -34
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as B, inject as v, ref as g, watch as E, useTemplateRef as I, readonly as P, onUnmounted as V, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as j, withCtx as k, createElementVNode as p, normalizeClass as K, toDisplayString as x, createElementBlock as f, createCommentVNode as C, Fragment as L, renderList as F, unref as z, withModifiers as D, createVNode as S } from "vue";
|
|
2
|
+
import { j as U, h as q, I as G, _ as H } from "./index-BOGnFXnC.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const J = { class: "tree-node-text" }, O = ["title"], Q = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "tree-node-present"
|
|
7
|
+
}, W = /* @__PURE__ */ B({
|
|
8
|
+
__name: "Component",
|
|
9
|
+
props: {
|
|
10
|
+
onNodeClick: {},
|
|
11
|
+
onCheckChange: {},
|
|
12
|
+
onLoad: {},
|
|
13
|
+
btns: {},
|
|
14
|
+
data: {},
|
|
15
|
+
props: {},
|
|
16
|
+
nodeKey: {},
|
|
17
|
+
styleType: {},
|
|
18
|
+
name: {}
|
|
19
|
+
},
|
|
20
|
+
setup(M, { expose: $ }) {
|
|
21
|
+
const o = M, a = v("ruleModule", void 0), u = v("pageMethodMap", {}), s = g(), b = (e, t) => {
|
|
22
|
+
s.value = e[o.nodeKey];
|
|
23
|
+
}, R = (e, t, r) => {
|
|
24
|
+
if (e && a)
|
|
25
|
+
try {
|
|
26
|
+
a[e](u, { node: t, data: r });
|
|
27
|
+
} catch (l) {
|
|
28
|
+
console.error(l + `
|
|
29
|
+
onNodeClick: ${o.onNodeClick}`);
|
|
30
|
+
}
|
|
31
|
+
}, T = (e, t) => {
|
|
32
|
+
if (o.onNodeClick && a)
|
|
33
|
+
try {
|
|
34
|
+
a[o.onNodeClick](u, { node: e, data: t });
|
|
35
|
+
} catch (r) {
|
|
36
|
+
console.error(r + `
|
|
37
|
+
onNodeClick: ${o.onNodeClick}`);
|
|
38
|
+
}
|
|
39
|
+
}, w = (e, t, r) => {
|
|
40
|
+
if (o.onLoad && a)
|
|
41
|
+
try {
|
|
42
|
+
a[o.onLoad](u, { node: e, resolve: t, reject: r });
|
|
43
|
+
} catch (l) {
|
|
44
|
+
console.error(l + `
|
|
45
|
+
onLoad: ${o.onLoad}`);
|
|
46
|
+
}
|
|
47
|
+
}, h = g([]);
|
|
48
|
+
E(
|
|
49
|
+
//默认展开根节点
|
|
50
|
+
() => o.data,
|
|
51
|
+
() => {
|
|
52
|
+
if (!o.data || !Array.isArray(o.data) || o.data.length === 0)
|
|
53
|
+
return;
|
|
54
|
+
const t = [o.data[0][o.nodeKey]];
|
|
55
|
+
h.value = t;
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
immediate: !0
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
const _ = I("treeRef"), N = P({
|
|
62
|
+
getCheckedNodes: () => {
|
|
63
|
+
var e;
|
|
64
|
+
return (e = _.value) == null ? void 0 : e.getCheckedNodes();
|
|
65
|
+
},
|
|
66
|
+
type: "tree"
|
|
67
|
+
});
|
|
68
|
+
if (o.name) {
|
|
69
|
+
const e = U(o.name, N);
|
|
70
|
+
V(() => {
|
|
71
|
+
e();
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return $(N), (e, t) => {
|
|
75
|
+
const r = m("el-tooltip"), l = m("el-button"), A = m("el-tree");
|
|
76
|
+
return d(), y(A, j(e.$attrs, {
|
|
77
|
+
onNodeClick: T,
|
|
78
|
+
load: w,
|
|
79
|
+
ref_key: "treeRef",
|
|
80
|
+
ref: _,
|
|
81
|
+
class: ["crm-tree", { "modal-tree": e.styleType === "modal" }],
|
|
82
|
+
indent: 32,
|
|
83
|
+
"current-node-key": s.value,
|
|
84
|
+
onCurrentChange: b,
|
|
85
|
+
"node-key": e.nodeKey,
|
|
86
|
+
props: o.props,
|
|
87
|
+
data: e.data,
|
|
88
|
+
"default-expanded-keys": h.value
|
|
89
|
+
}), {
|
|
90
|
+
default: k(({ node: c, data: i }) => [
|
|
91
|
+
p("div", {
|
|
92
|
+
class: K(["custom-tree-node", { "modal-tree-node": e.styleType === "modal" }])
|
|
93
|
+
}, [
|
|
94
|
+
p("div", J, [
|
|
95
|
+
p("span", {
|
|
96
|
+
class: K(["tree-node-label", { active: i[e.nodeKey] === s.value && e.styleType === "modal" }]),
|
|
97
|
+
title: c.label
|
|
98
|
+
}, x(c.label), 11, O),
|
|
99
|
+
i[e.nodeKey] === s.value ? (d(), f("div", Q, "Present")) : C("", !0)
|
|
100
|
+
]),
|
|
101
|
+
p("div", null, [
|
|
102
|
+
(d(!0), f(L, null, F(e.btns, (n) => (d(), f(L, {
|
|
103
|
+
key: n.key
|
|
104
|
+
}, [
|
|
105
|
+
z(q)(n.hidden, { $node: c, $data: i }) ? C("", !0) : (d(), y(l, {
|
|
106
|
+
key: 0,
|
|
107
|
+
link: "",
|
|
108
|
+
onClick: D((Y) => R(n.onClick || "", c, i), ["stop"]),
|
|
109
|
+
disabled: n.disabled,
|
|
110
|
+
type: n.type
|
|
111
|
+
}, {
|
|
112
|
+
default: k(() => [
|
|
113
|
+
S(r, {
|
|
114
|
+
class: "box-item",
|
|
115
|
+
effect: "dark",
|
|
116
|
+
content: n.text,
|
|
117
|
+
placement: "top"
|
|
118
|
+
}, {
|
|
119
|
+
default: k(() => [
|
|
120
|
+
n.icon ? (d(), y(G, {
|
|
121
|
+
key: 0,
|
|
122
|
+
name: n.icon.name,
|
|
123
|
+
color: n.icon.color,
|
|
124
|
+
class: "btn-icon"
|
|
125
|
+
}, null, 8, ["name", "color"])) : C("", !0)
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1032, ["content"])
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
}, 1032, ["onClick", "disabled", "type"]))
|
|
132
|
+
], 64))), 128))
|
|
133
|
+
])
|
|
134
|
+
], 2)
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 16, ["class", "current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}), te = /* @__PURE__ */ H(W, [["__scopeId", "data-v-524b29b2"]]);
|
|
141
|
+
export {
|
|
142
|
+
te as default
|
|
143
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { defineComponent as F, mergeModels as V, useModel as $, ref as E, resolveComponent as C, openBlock as o, createElementBlock as n, Fragment as d, createVNode as u, normalizeClass as I, createSlots as L, withCtx as c, createTextVNode as f, createElementVNode as i, createBlock as b, toDisplayString as p, createCommentVNode as y, unref as N, renderList as O } from "vue";
|
|
2
|
+
import { genFileId as R, ElMessage as z, ElMessageBox as j } from "element-plus";
|
|
3
|
+
import { c as P, I as g, a as q, _ as A } from "./index-BOGnFXnC.js";
|
|
4
|
+
const G = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "smallDragStyle-text"
|
|
7
|
+
}, H = { class: "el-upload__tip" }, J = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "upload-bottom-part"
|
|
10
|
+
}, K = { class: "file-list-wrapper" }, Q = { class: "file-item-name" }, W = /* @__PURE__ */ F({
|
|
11
|
+
__name: "Component",
|
|
12
|
+
props: /* @__PURE__ */ V({
|
|
13
|
+
action: {},
|
|
14
|
+
multiple: { type: Boolean },
|
|
15
|
+
btnText: { default: "点击上传" },
|
|
16
|
+
tip: {},
|
|
17
|
+
limit: {},
|
|
18
|
+
drag: { type: Boolean },
|
|
19
|
+
name: { default: "file" },
|
|
20
|
+
listType: { default: "text" },
|
|
21
|
+
attachmentTitle: {},
|
|
22
|
+
showFileList: { type: Boolean, default: !0 },
|
|
23
|
+
autoUpload: { type: Boolean },
|
|
24
|
+
beforeUpload: {},
|
|
25
|
+
isOnlyOne: { type: Boolean, default: !1 },
|
|
26
|
+
onChange: {},
|
|
27
|
+
smallDragStyle: { type: Boolean }
|
|
28
|
+
}, {
|
|
29
|
+
modelValue: {
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
modelModifiers: {}
|
|
33
|
+
}),
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(h) {
|
|
36
|
+
const t = h, s = $(h, "modelValue"), { ruleModule: v, pageMethodMap: k } = P(), T = (e) => {
|
|
37
|
+
if (t.beforeUpload)
|
|
38
|
+
try {
|
|
39
|
+
return v[t.beforeUpload](k, e);
|
|
40
|
+
} catch (l) {
|
|
41
|
+
console.error(l);
|
|
42
|
+
}
|
|
43
|
+
return !0;
|
|
44
|
+
}, B = (e, l) => {
|
|
45
|
+
if (t.onChange)
|
|
46
|
+
try {
|
|
47
|
+
v[t.onChange](k, e, l);
|
|
48
|
+
} catch (a) {
|
|
49
|
+
console.error(a);
|
|
50
|
+
}
|
|
51
|
+
}, w = (e) => {
|
|
52
|
+
const l = s.value.findIndex((a) => a.uid === e.uid);
|
|
53
|
+
l !== -1 && s.value.splice(l, 1);
|
|
54
|
+
}, D = (e, l) => {
|
|
55
|
+
console.log(e, l);
|
|
56
|
+
}, M = (e) => {
|
|
57
|
+
console.log(e);
|
|
58
|
+
}, m = E(), S = (e, l) => {
|
|
59
|
+
if (t.isOnlyOne && t.limit === 1) {
|
|
60
|
+
m.value.clearFiles();
|
|
61
|
+
const a = e[0];
|
|
62
|
+
a.uid = R(), m.value.handleStart(a);
|
|
63
|
+
} else
|
|
64
|
+
z.warning(
|
|
65
|
+
`The limit is ${t.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
|
|
66
|
+
);
|
|
67
|
+
}, U = (e, l) => t.beforeUpload ? !1 : j.confirm(`Cancel the transfer of ${e.name} ?`).then(
|
|
68
|
+
() => !0,
|
|
69
|
+
() => !1
|
|
70
|
+
);
|
|
71
|
+
return (e, l) => {
|
|
72
|
+
const a = C("el-button"), _ = C("el-upload");
|
|
73
|
+
return o(), n(d, null, [
|
|
74
|
+
u(_, {
|
|
75
|
+
"file-list": s.value,
|
|
76
|
+
"onUpdate:fileList": l[0] || (l[0] = (r) => s.value = r),
|
|
77
|
+
action: e.action,
|
|
78
|
+
multiple: e.multiple,
|
|
79
|
+
limit: e.limit,
|
|
80
|
+
drag: e.drag,
|
|
81
|
+
name: e.name,
|
|
82
|
+
listType: e.listType,
|
|
83
|
+
"show-file-list": e.showFileList,
|
|
84
|
+
"on-preview": M,
|
|
85
|
+
"on-remove": D,
|
|
86
|
+
"before-remove": U,
|
|
87
|
+
"before-upload": T,
|
|
88
|
+
"on-change": B,
|
|
89
|
+
"on-exceed": S,
|
|
90
|
+
class: I({ dragUpload: e.drag, smallDragStyle: e.smallDragStyle }),
|
|
91
|
+
ref_key: "upload",
|
|
92
|
+
ref: m
|
|
93
|
+
}, L({
|
|
94
|
+
default: c(() => [
|
|
95
|
+
e.listType === "text" ? (o(), n(d, { key: 0 }, [
|
|
96
|
+
e.drag ? (o(), n(d, { key: 0 }, [
|
|
97
|
+
e.smallDragStyle ? (o(), n("div", G, l[1] || (l[1] = [
|
|
98
|
+
f("Drop file here or "),
|
|
99
|
+
i("span", null, "click to upload", -1)
|
|
100
|
+
]))) : (o(), n(d, { key: 1 }, [
|
|
101
|
+
u(g, {
|
|
102
|
+
name: "icon-shangchuan",
|
|
103
|
+
color: "var(--el-color-primary)"
|
|
104
|
+
}),
|
|
105
|
+
l[2] || (l[2] = i("div", null, [
|
|
106
|
+
f("Drop file here or "),
|
|
107
|
+
i("em", null, "click to upload")
|
|
108
|
+
], -1))
|
|
109
|
+
], 64))
|
|
110
|
+
], 64)) : (o(), b(a, {
|
|
111
|
+
key: 1,
|
|
112
|
+
type: "primary"
|
|
113
|
+
}, {
|
|
114
|
+
default: c(() => [
|
|
115
|
+
f(p(e.btnText), 1)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}))
|
|
119
|
+
], 64)) : y("", !0),
|
|
120
|
+
e.listType === "picture-card" ? (o(), b(N(q), {
|
|
121
|
+
key: 1,
|
|
122
|
+
name: "add"
|
|
123
|
+
})) : y("", !0)
|
|
124
|
+
]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, [
|
|
127
|
+
e.tip ? {
|
|
128
|
+
name: "tip",
|
|
129
|
+
fn: c(() => [
|
|
130
|
+
i("div", H, p(e.tip), 1)
|
|
131
|
+
]),
|
|
132
|
+
key: "0"
|
|
133
|
+
} : void 0
|
|
134
|
+
]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "show-file-list", "class"]),
|
|
135
|
+
e.drag && s.value.length > 0 ? (o(), n("div", J, [
|
|
136
|
+
i("div", null, p(e.attachmentTitle), 1),
|
|
137
|
+
i("div", K, [
|
|
138
|
+
(o(!0), n(d, null, O(s.value, (r) => (o(), n("div", {
|
|
139
|
+
class: "file-item",
|
|
140
|
+
key: r.uid
|
|
141
|
+
}, [
|
|
142
|
+
u(g, {
|
|
143
|
+
name: "icon-fujiantubiao1",
|
|
144
|
+
size: "ultra-large"
|
|
145
|
+
}),
|
|
146
|
+
i("div", Q, p(r.name), 1),
|
|
147
|
+
u(g, {
|
|
148
|
+
name: "icon-guanbi",
|
|
149
|
+
class: "file-item-close",
|
|
150
|
+
size: "x-small",
|
|
151
|
+
onClick: (X) => w(r)
|
|
152
|
+
}, null, 8, ["onClick"])
|
|
153
|
+
]))), 128))
|
|
154
|
+
])
|
|
155
|
+
])) : y("", !0)
|
|
156
|
+
], 64);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}), ee = /* @__PURE__ */ A(W, [["__scopeId", "data-v-39327a11"]]);
|
|
160
|
+
export {
|
|
161
|
+
ee as default
|
|
162
|
+
};
|
|
@@ -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-BOGnFXnC.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
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as a, inject as t, openBlock as i, createElementBlock as p, mergeProps as d } from "vue";
|
|
2
|
+
const u = ["innerHTML"], m = /* @__PURE__ */ a({
|
|
3
|
+
__name: "Component",
|
|
4
|
+
props: {
|
|
5
|
+
text: {},
|
|
6
|
+
color: {},
|
|
7
|
+
onClick: {},
|
|
8
|
+
params: {}
|
|
9
|
+
},
|
|
10
|
+
setup(c) {
|
|
11
|
+
const e = t("ruleModule", void 0), l = t("pageMethodMap", {}), n = c, s = async () => {
|
|
12
|
+
const o = n.onClick;
|
|
13
|
+
if (o && e)
|
|
14
|
+
try {
|
|
15
|
+
await e[o](l, n);
|
|
16
|
+
} catch (r) {
|
|
17
|
+
console.error(r + `
|
|
18
|
+
onClick: ${o}`);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
return (o, r) => (i(), p("div", d(o.$attrs, {
|
|
22
|
+
innerHTML: o.text,
|
|
23
|
+
onClick: s,
|
|
24
|
+
style: { color: o.color, cursor: o.onClick ? "pointer" : "default" }
|
|
25
|
+
}), null, 16, u));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
m as default
|
|
30
|
+
};
|
|
@@ -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-BOGnFXnC.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 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-BOGnFXnC.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = { key: 0 }, g = /* @__PURE__ */ p({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as U, inject as
|
|
2
|
-
import { u as Q, I as h, b as V, B as W, i as X, _ as Y } from "./index-
|
|
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, i as X, _ as Y } from "./index-BOGnFXnC.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,
|
|
@@ -30,7 +30,7 @@ const Z = ["id"], x = { class: "left-part" }, ee = { class: "title" }, le = { cl
|
|
|
30
30
|
searchInputChange: {}
|
|
31
31
|
},
|
|
32
32
|
setup(D) {
|
|
33
|
-
const t =
|
|
33
|
+
const t = $("ruleModule", void 0), y = $("pageMethodMap", {}), T = k(""), n = D, b = k(n.radioDefault ?? "2"), z = (e) => {
|
|
34
34
|
if (e && t)
|
|
35
35
|
try {
|
|
36
36
|
t[e](y);
|
|
@@ -49,21 +49,21 @@ funcName: ${e}`);
|
|
|
49
49
|
i.value = n.defaultCollapse ?? !1;
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const C = k(n.displayType || (n.typeSwitch ? "card" : "table")), P = Q(), S = (e) => {
|
|
53
|
+
C.value = e;
|
|
54
54
|
const a = X(P.schema.items, n.name), g = (w) => {
|
|
55
55
|
w.forEach((d) => {
|
|
56
56
|
d.component === "Table" && d.props && (d.props.displayType = e), d.children && d.children.length > 0 && g(d.children);
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
a && a.children && g(a.children);
|
|
60
|
-
},
|
|
60
|
+
}, _ = (e) => {
|
|
61
61
|
n.handleSearch && t && t[n.handleSearch](y, e);
|
|
62
62
|
}, j = (e) => {
|
|
63
63
|
n.searchInputChange && t && t[n.searchInputChange](y, e);
|
|
64
64
|
};
|
|
65
|
-
return S(
|
|
66
|
-
const g =
|
|
65
|
+
return S(C.value), (e, a) => {
|
|
66
|
+
const g = f("el-radio"), w = f("el-radio-group"), d = f("el-tooltip"), E = f("el-input"), F = f("el-collapse-transition");
|
|
67
67
|
return o(), s("div", {
|
|
68
68
|
class: m(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
|
|
69
69
|
style: O(e.style),
|
|
@@ -75,6 +75,7 @@ funcName: ${e}`);
|
|
|
75
75
|
mix: e.type === "mix",
|
|
76
76
|
default: e.type === "default",
|
|
77
77
|
gridItem: e.type === "gridItem",
|
|
78
|
+
advanceSearch: e.type === "advanceSearch",
|
|
78
79
|
collapsedPadding: i.value && e.onCollapsed,
|
|
79
80
|
"has-search-input": e.hasSearchInput
|
|
80
81
|
}])
|
|
@@ -87,7 +88,7 @@ funcName: ${e}`);
|
|
|
87
88
|
name: e.mainIcon.name,
|
|
88
89
|
color: e.mainIcon.color
|
|
89
90
|
}, null, 8, ["name", "color"])) : u("", !0),
|
|
90
|
-
c("span", ee,
|
|
91
|
+
c("span", ee, M(e.title), 1),
|
|
91
92
|
e.radioList ? (o(), p(w, {
|
|
92
93
|
key: 1,
|
|
93
94
|
class: "ml-9",
|
|
@@ -101,7 +102,7 @@ funcName: ${e}`);
|
|
|
101
102
|
key: l.value
|
|
102
103
|
}, {
|
|
103
104
|
default: v(() => [
|
|
104
|
-
q(
|
|
105
|
+
q(M(l.label), 1)
|
|
105
106
|
]),
|
|
106
107
|
_: 2
|
|
107
108
|
}, 1032, ["value"]))), 128))
|
|
@@ -121,7 +122,7 @@ funcName: ${e}`);
|
|
|
121
122
|
class: "extra-icon",
|
|
122
123
|
name: l.name,
|
|
123
124
|
color: l.color,
|
|
124
|
-
onClick: (K) =>
|
|
125
|
+
onClick: (K) => z(l.onClick)
|
|
125
126
|
}, null, 8, ["name", "color", "onClick"])
|
|
126
127
|
]),
|
|
127
128
|
_: 2
|
|
@@ -130,8 +131,9 @@ funcName: ${e}`);
|
|
|
130
131
|
class: "extra-icon",
|
|
131
132
|
name: l.name,
|
|
132
133
|
color: l.color,
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
size: l.size,
|
|
135
|
+
onClick: (K) => z(l.onClick)
|
|
136
|
+
}, null, 8, ["name", "color", "size", "onClick"]))
|
|
135
137
|
], 64))), 128))
|
|
136
138
|
]),
|
|
137
139
|
e.hasSearchInput ? (o(), s("div", {
|
|
@@ -142,9 +144,8 @@ funcName: ${e}`);
|
|
|
142
144
|
modelValue: T.value,
|
|
143
145
|
"onUpdate:modelValue": a[2] || (a[2] = (l) => T.value = l),
|
|
144
146
|
placeholder: e.searchPlaceholder,
|
|
145
|
-
size: "large",
|
|
146
147
|
onInput: j,
|
|
147
|
-
onKeyup: G(
|
|
148
|
+
onKeyup: G(_, ["enter"])
|
|
148
149
|
}, {
|
|
149
150
|
prefix: v(() => a[5] || (a[5] = [])),
|
|
150
151
|
suffix: v(() => [
|
|
@@ -152,8 +153,8 @@ funcName: ${e}`);
|
|
|
152
153
|
class: "cursor-pointer",
|
|
153
154
|
name: "icon-lujing2",
|
|
154
155
|
color: "#666666",
|
|
155
|
-
size: "
|
|
156
|
-
onClick:
|
|
156
|
+
size: "small",
|
|
157
|
+
onClick: _
|
|
157
158
|
})
|
|
158
159
|
]),
|
|
159
160
|
_: 1
|
|
@@ -165,13 +166,13 @@ funcName: ${e}`);
|
|
|
165
166
|
])) : u("", !0),
|
|
166
167
|
e.typeSwitch ? (o(), s("div", oe, [
|
|
167
168
|
c("div", {
|
|
168
|
-
class: m(["switch-icon-wrapper", { active:
|
|
169
|
+
class: m(["switch-icon-wrapper", { active: C.value === "card" }]),
|
|
169
170
|
onClick: a[3] || (a[3] = (l) => S("card"))
|
|
170
171
|
}, [
|
|
171
172
|
r(h, { name: "icon-kapian" })
|
|
172
173
|
], 2),
|
|
173
174
|
c("div", {
|
|
174
|
-
class: m(["switch-icon-wrapper", { active:
|
|
175
|
+
class: m(["switch-icon-wrapper", { active: C.value === "table" }]),
|
|
175
176
|
onClick: a[4] || (a[4] = (l) => S("table"))
|
|
176
177
|
}, [
|
|
177
178
|
r(h, { name: "icon-biaoge" })
|
|
@@ -207,7 +208,7 @@ funcName: ${e}`);
|
|
|
207
208
|
], 14, Z);
|
|
208
209
|
};
|
|
209
210
|
}
|
|
210
|
-
}), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-
|
|
211
|
+
}), de = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-c360f8f2"]]);
|
|
211
212
|
export {
|
|
212
213
|
de as default
|
|
213
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-BOGnFXnC.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,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { dayjs as
|
|
3
|
-
import { u as B } from "./index-
|
|
4
|
-
const
|
|
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
|
+
import { dayjs as b } from "element-plus";
|
|
3
|
+
import { u as B } from "./index-BOGnFXnC.js";
|
|
4
|
+
const F = { key: 0 }, j = /* @__PURE__ */ y({
|
|
5
5
|
__name: "DatePicker",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ M({
|
|
7
7
|
onChange: {},
|
|
8
8
|
onInput: {},
|
|
9
9
|
onEnter: {},
|
|
@@ -12,14 +12,15 @@ const w = { key: 0 }, j = /* @__PURE__ */ C({
|
|
|
12
12
|
readTextColor: {},
|
|
13
13
|
onClick: {},
|
|
14
14
|
defaultStartTime: {},
|
|
15
|
-
defaultEndTime: {}
|
|
15
|
+
defaultEndTime: {},
|
|
16
|
+
disabledDate: {}
|
|
16
17
|
}, {
|
|
17
18
|
modelValue: {},
|
|
18
19
|
modelModifiers: {}
|
|
19
20
|
}),
|
|
20
21
|
emits: ["update:modelValue"],
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
22
|
+
setup(r) {
|
|
23
|
+
const a = k(r, "modelValue"), e = r, d = D(), m = l(() => {
|
|
23
24
|
if (e.defaultStartTime && e.defaultEndTime)
|
|
24
25
|
return [
|
|
25
26
|
new Date(
|
|
@@ -39,29 +40,30 @@ const w = { key: 0 }, j = /* @__PURE__ */ C({
|
|
|
39
40
|
parseInt(e.defaultEndTime.split(":")[2])
|
|
40
41
|
)
|
|
41
42
|
];
|
|
42
|
-
}),
|
|
43
|
+
}), p = B(), c = l(() => e.read || p.schema.read), f = l(() => a.value ? d.valueFormat ? b(a.value).format(d.valueFormat) : a.value : "--"), h = [
|
|
43
44
|
{
|
|
44
45
|
text: "Today",
|
|
45
46
|
value: /* @__PURE__ */ new Date()
|
|
46
47
|
}
|
|
47
|
-
],
|
|
48
|
-
if (console.log("zytest-----handleChange",
|
|
48
|
+
], n = u("ruleModule", void 0), s = u("pageMethodMap", {}), v = (t) => {
|
|
49
|
+
if (console.log("zytest-----handleChange", t), e.onChange && n)
|
|
49
50
|
try {
|
|
50
|
-
|
|
51
|
+
n[e.onChange](s, t);
|
|
51
52
|
} catch (o) {
|
|
52
53
|
console.error(o + `
|
|
53
54
|
onChange: ${e.onChange}`);
|
|
54
55
|
}
|
|
55
|
-
};
|
|
56
|
-
return (
|
|
57
|
-
const
|
|
58
|
-
return
|
|
59
|
-
modelValue:
|
|
60
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
56
|
+
}, g = (t) => e.disabledDate ? n[e.disabledDate](s, t) : !1;
|
|
57
|
+
return (t, o) => {
|
|
58
|
+
const T = I("el-date-picker");
|
|
59
|
+
return c.value ? (i(), E("span", F, _(f.value), 1)) : (i(), S(T, V({ key: 1 }, t.$attrs, {
|
|
60
|
+
modelValue: a.value,
|
|
61
|
+
"onUpdate:modelValue": o[0] || (o[0] = (C) => a.value = C),
|
|
61
62
|
style: { width: "100%" },
|
|
62
|
-
shortcuts:
|
|
63
|
+
shortcuts: h,
|
|
64
|
+
"disabled-date": g,
|
|
63
65
|
onChange: v,
|
|
64
|
-
"default-time":
|
|
66
|
+
"default-time": m.value
|
|
65
67
|
}), null, 16, ["modelValue", "default-time"]));
|
|
66
68
|
};
|
|
67
69
|
}
|