halo-mobile 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -0
- package/dist/Autocomplete-XXlWKdZ7.js +26 -0
- package/dist/Autocomplete-Yvl0RCLc.js +64 -0
- package/dist/CSharp-KyLMHymK.js +26 -0
- package/dist/Cascader-PzpVQ7AB.js +40 -0
- package/dist/Cascader-YLS04_2K.js +48 -0
- package/dist/Checkbox-T3g7wr0e.js +102 -0
- package/dist/Checkbox-xtKe1aWq.js +26 -0
- package/dist/Code-EYCtRAN7.js +4 -0
- package/dist/Code-Kt2CerlI.js +4 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js +50 -0
- package/dist/Code.vue_vue_type_style_index_0_lang-tCrm737u.js +29 -0
- package/dist/Color-iWLZHYMu.js +33 -0
- package/dist/Color-tf48GpkC.js +30 -0
- package/dist/Copy-c0RFSh48.js +35 -0
- package/dist/Date-PIiMOa7G.js +75 -0
- package/dist/Date-ZvcltpXD.js +26 -0
- package/dist/DateRange-UGAw4vvX.js +38 -0
- package/dist/DateRange-u_NTVOsq.js +29 -0
- package/dist/DateTimeRange-XMx5BSsY.js +60 -0
- package/dist/Datetime-9uSognrF.js +68 -0
- package/dist/Datetime-yUYlyiVe.js +26 -0
- package/dist/Decimal-64RFuThb.js +26 -0
- package/dist/Decimal-hbTpK8HG.js +53 -0
- package/dist/Dictionary-9wRln3ML.js +4 -0
- package/dist/Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js +33 -0
- package/dist/Email-Y2RZC3Pp.js +29 -0
- package/dist/Email-sXlLv1De.js +35 -0
- package/dist/Index--r9hKHmH.js +4 -0
- package/dist/Index-DpwKrUS5.js +4 -0
- package/dist/Index.vue_vue_type_script_setup_true_lang-IyVPMbcI.js +41 -0
- package/dist/Int-cJfYzdCu.js +28 -0
- package/dist/Int-ctDLC_Su.js +47 -0
- package/dist/Int-fJBASDM7.js +29 -0
- package/dist/Json-BFAMwsfX.js +28 -0
- package/dist/Json-gCo-Zdv_.js +26 -0
- package/dist/Month-B_1hI-Rh.js +72 -0
- package/dist/MySql-enArT5D7.js +30 -0
- package/dist/MySql-vcBpsfvo.js +26 -0
- package/dist/Normal-KRIGE5xc.js +31 -0
- package/dist/Password-R6_k-rn2.js +29 -0
- package/dist/Password-pOFH57lW.js +47 -0
- package/dist/Progress-cjSNkpkZ.js +34 -0
- package/dist/Progress-dvuJ1mVx.js +27 -0
- package/dist/Radio-MgtZXxhO.js +38 -0
- package/dist/Radio-NLiXdnr7.js +26 -0
- package/dist/Rate-8Ojfu4Pl.js +28 -0
- package/dist/Rate-tlqTCUfE.js +45 -0
- package/dist/RichText-7YHU6ukx.js +7558 -0
- package/dist/RichText-YQxC6ync.js +53 -0
- package/dist/RichText-chshsG49.js +27 -0
- package/dist/Select-BSzLsx0C.js +26 -0
- package/dist/Select-HdlI6DWS.js +69 -0
- package/dist/Select-fY1P8Gei.js +71 -0
- package/dist/Sql-Ww3tPZxu.js +26 -0
- package/dist/Switch-jHDDXeAv.js +35 -0
- package/dist/Switch-xgpu_bmM.js +26 -0
- package/dist/Table-xOt0TEu7.js +52 -0
- package/dist/Text-4hfe8ACo.js +40 -0
- package/dist/Text-CznHk-ab.js +4 -0
- package/dist/Text-dPJvVg8h.js +27 -0
- package/dist/Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js +29 -0
- package/dist/Textarea-1xTv6tuq.js +27 -0
- package/dist/Textarea-CX_-wFIg.js +29 -0
- package/dist/Textarea-hxjW3zKV.js +38 -0
- package/dist/Time-U_PlgRNm.js +35 -0
- package/dist/Upload-6otTjgzq.js +54 -0
- package/dist/Upload-N-FekeJG.js +82 -0
- package/dist/Year-W5E5x4fI.js +73 -0
- package/dist/main-GfL1Y5aJ.js +30973 -0
- package/dist/main.d.ts +329 -0
- package/dist/main.js +38 -0
- package/dist/style.css +15 -0
- package/package.json +48 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineComponent as c, toRefs as p, computed as d, resolveComponent as f, openBlock as s, createBlock as i, unref as e, withCtx as m, createTextVNode as _, toDisplayString as b } from "vue";
|
2
|
+
const O = /* @__PURE__ */ c({
|
3
|
+
__name: "DateRange",
|
4
|
+
props: {
|
5
|
+
table: { type: Object, default: null },
|
6
|
+
field: { type: Object, default: null },
|
7
|
+
data: { type: Object, default: null },
|
8
|
+
row: { type: Object, default: null },
|
9
|
+
modelValue: String
|
10
|
+
},
|
11
|
+
setup(t) {
|
12
|
+
let l = t, { table: v, field: a, data: x, row: y, modelValue: n } = p(l), o = d(() => n.value);
|
13
|
+
return (u, g) => {
|
14
|
+
const r = f("van-cell");
|
15
|
+
return s(), i(r, {
|
16
|
+
class: "text-daterange",
|
17
|
+
title: e(a).label
|
18
|
+
}, {
|
19
|
+
default: m(() => [
|
20
|
+
_(b(e(o)), 1)
|
21
|
+
]),
|
22
|
+
_: 1
|
23
|
+
}, 8, ["title"]);
|
24
|
+
};
|
25
|
+
}
|
26
|
+
});
|
27
|
+
export {
|
28
|
+
O as default
|
29
|
+
};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { defineComponent as u, computed as m, resolveComponent as f, openBlock as h, createBlock as k, unref as d, isRef as y } from "vue";
|
2
|
+
import { h as o, C as s } from "./main-GfL1Y5aJ.js";
|
3
|
+
const _ = /* @__PURE__ */ u({
|
4
|
+
__name: "DateTimeRange",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
emits: ["change", "update:modelValue"],
|
13
|
+
setup(n, { emit: r }) {
|
14
|
+
let p = r, c = ref({
|
15
|
+
shortcuts: [{
|
16
|
+
text: "小时",
|
17
|
+
onClick(t) {
|
18
|
+
let e = o().add(-1, "hours").toDate();
|
19
|
+
const l = o().toDate();
|
20
|
+
t.$emit("pick", [e, l]);
|
21
|
+
}
|
22
|
+
}, {
|
23
|
+
text: "今天",
|
24
|
+
onClick(t) {
|
25
|
+
let e = o().add(-1, "days").toDate(), l = o().toDate();
|
26
|
+
t.$emit("pick", [e, l]);
|
27
|
+
}
|
28
|
+
}, {
|
29
|
+
text: "昨天",
|
30
|
+
onClick(t) {
|
31
|
+
const e = /* @__PURE__ */ new Date();
|
32
|
+
e.setTime(e.getTime() - 3600 * 1e3 * 24), t.$emit("pick", [e, e]);
|
33
|
+
}
|
34
|
+
}]
|
35
|
+
}), a = m({
|
36
|
+
get() {
|
37
|
+
return s.getValue(this.data, this.index, this.table, this.field);
|
38
|
+
},
|
39
|
+
set(t) {
|
40
|
+
s.setValue(t, this.data, this.table, this.index, this.field), p("change", this.data);
|
41
|
+
}
|
42
|
+
});
|
43
|
+
return (t, e) => {
|
44
|
+
const l = f("el-date-picker");
|
45
|
+
return h(), k(l, {
|
46
|
+
type: "datetimerange",
|
47
|
+
"value-dataat": "yyyy-MM-dd HH:mm:ss",
|
48
|
+
"start-placeholder": "开始时间",
|
49
|
+
"end-placeholder": "结束时间",
|
50
|
+
disabled: n.field.readonly,
|
51
|
+
"picker-options": d(c),
|
52
|
+
modelValue: d(a),
|
53
|
+
"onUpdate:modelValue": e[0] || (e[0] = (i) => y(a) ? a.value = i : a = i)
|
54
|
+
}, null, 8, ["disabled", "picker-options", "modelValue"]);
|
55
|
+
};
|
56
|
+
}
|
57
|
+
});
|
58
|
+
export {
|
59
|
+
_ as default
|
60
|
+
};
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { defineComponent as y, toRefs as C, ref as S, computed as _, resolveComponent as s, openBlock as k, createElementBlock as w, Fragment as j, createVNode as f, unref as a, isRef as d, withCtx as O } from "vue";
|
2
|
+
import { b as q, S as x } from "./main-GfL1Y5aJ.js";
|
3
|
+
const R = /* @__PURE__ */ y({
|
4
|
+
__name: "Datetime",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
emits: ["change", "update:modelValue"],
|
13
|
+
setup(c, { emit: v }) {
|
14
|
+
let b = v, g = c, { table: U, field: p, data: B, row: D, modelValue: n } = C(g), l = S(!1), V = (o) => {
|
15
|
+
l.value = !1;
|
16
|
+
let e = o.selectedValues, r = e[0] + "-" + e[1] + "-" + e[2];
|
17
|
+
u.value = r;
|
18
|
+
}, u = _({
|
19
|
+
get() {
|
20
|
+
let o = n.value;
|
21
|
+
if (o) {
|
22
|
+
let e = q.getTime(o), r = e.getFullYear().toString(), i = x.padStart(e.getMonth().toString(), 2, "0"), m = e.getDate().toString();
|
23
|
+
return [r, i, m];
|
24
|
+
}
|
25
|
+
return [];
|
26
|
+
},
|
27
|
+
set(o) {
|
28
|
+
b("update:modelValue", o), b("change", o);
|
29
|
+
}
|
30
|
+
});
|
31
|
+
return (o, e) => {
|
32
|
+
const r = s("van-field"), i = s("van-date-picker"), m = s("van-popup");
|
33
|
+
return k(), w(j, null, [
|
34
|
+
f(r, {
|
35
|
+
class: "control-datetime",
|
36
|
+
clickable: "",
|
37
|
+
readonly: "",
|
38
|
+
label: a(p).label,
|
39
|
+
placeholder: "点击选择" + a(p).label,
|
40
|
+
required: a(p).control.required,
|
41
|
+
onClick: e[0] || (e[0] = (t) => d(l) ? l.value = !0 : l = !0),
|
42
|
+
modelValue: a(n),
|
43
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => d(n) ? n.value = t : n = t)
|
44
|
+
}, null, 8, ["label", "placeholder", "required", "modelValue"]),
|
45
|
+
f(m, {
|
46
|
+
position: "bottom",
|
47
|
+
show: a(l),
|
48
|
+
"onUpdate:show": e[4] || (e[4] = (t) => d(l) ? l.value = t : l = t)
|
49
|
+
}, {
|
50
|
+
default: O(() => [
|
51
|
+
f(i, {
|
52
|
+
type: "datetime",
|
53
|
+
title: "选择" + a(p).label,
|
54
|
+
onConfirm: a(V),
|
55
|
+
onCancel: e[2] || (e[2] = (t) => d(l) ? l.value = !1 : l = !1),
|
56
|
+
modelValue: a(u),
|
57
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => d(u) ? u.value = t : u = t)
|
58
|
+
}, null, 8, ["title", "onConfirm", "modelValue"])
|
59
|
+
]),
|
60
|
+
_: 1
|
61
|
+
}, 8, ["show"])
|
62
|
+
], 64);
|
63
|
+
};
|
64
|
+
}
|
65
|
+
});
|
66
|
+
export {
|
67
|
+
R as default
|
68
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { defineComponent as p, toRefs as m, openBlock as i, createBlock as s, unref as e, isRef as c } from "vue";
|
2
|
+
import { _ as b } from "./Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js";
|
3
|
+
const w = /* @__PURE__ */ p({
|
4
|
+
__name: "Datetime",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
setup(o) {
|
13
|
+
let d = o, { table: u, field: r, data: f, row: n, modelValue: l } = m(d);
|
14
|
+
return (_, t) => (i(), s(b, {
|
15
|
+
table: e(u),
|
16
|
+
field: e(r),
|
17
|
+
data: e(f),
|
18
|
+
row: e(n),
|
19
|
+
modelValue: e(l),
|
20
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => c(l) ? l.value = a : l = a)
|
21
|
+
}, null, 8, ["table", "field", "data", "row", "modelValue"]));
|
22
|
+
}
|
23
|
+
});
|
24
|
+
export {
|
25
|
+
w as default
|
26
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { defineComponent as p, toRefs as m, openBlock as i, createBlock as c, unref as e, isRef as s } from "vue";
|
2
|
+
import { _ as b } from "./Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js";
|
3
|
+
const w = /* @__PURE__ */ p({
|
4
|
+
__name: "Decimal",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
setup(o) {
|
13
|
+
let d = o, { table: u, field: r, data: f, row: n, modelValue: l } = m(d);
|
14
|
+
return (_, t) => (i(), c(b, {
|
15
|
+
table: e(u),
|
16
|
+
field: e(r),
|
17
|
+
data: e(f),
|
18
|
+
row: e(n),
|
19
|
+
modelValue: e(l),
|
20
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => s(l) ? l.value = a : l = a)
|
21
|
+
}, null, 8, ["table", "field", "data", "row", "modelValue"]));
|
22
|
+
}
|
23
|
+
});
|
24
|
+
export {
|
25
|
+
w as default
|
26
|
+
};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { defineComponent as c, toRefs as f, computed as n, resolveComponent as b, openBlock as v, createBlock as V, unref as u, isRef as _ } from "vue";
|
2
|
+
const y = /* @__PURE__ */ c({
|
3
|
+
__name: "Decimal",
|
4
|
+
props: {
|
5
|
+
table: { type: Object, default: null },
|
6
|
+
field: { type: Object, default: null },
|
7
|
+
data: { type: Object, default: null },
|
8
|
+
row: { type: Object, default: null },
|
9
|
+
modelValue: String
|
10
|
+
},
|
11
|
+
emits: ["change", "update:modelValue"],
|
12
|
+
setup(d, { emit: i }) {
|
13
|
+
let r = i, s = d, { table: g, field: a, data: N, row: h, modelValue: p } = f(s), l = n({
|
14
|
+
get() {
|
15
|
+
let e = p.value;
|
16
|
+
return a.value.search == "Betweens" ? e ? e.split(",") : [null, null] : e;
|
17
|
+
},
|
18
|
+
set(e) {
|
19
|
+
let t;
|
20
|
+
a.value.search == "Betweens" ? (t = e.join(","), r("update:modelValue", t)) : (t = e, isNaN(t) || r("update:modelValue", t)), r("change", e);
|
21
|
+
}
|
22
|
+
});
|
23
|
+
return n({
|
24
|
+
get() {
|
25
|
+
return l.value[0];
|
26
|
+
},
|
27
|
+
set(e) {
|
28
|
+
isNaN(e) || (l.value = [e, l.value[1]]);
|
29
|
+
}
|
30
|
+
}), n({
|
31
|
+
get() {
|
32
|
+
return l.value[1];
|
33
|
+
},
|
34
|
+
set(e) {
|
35
|
+
isNaN(e) || (l.value = [l.value[0], e]);
|
36
|
+
}
|
37
|
+
}), (e, t) => {
|
38
|
+
const m = b("van-field");
|
39
|
+
return v(), V(m, {
|
40
|
+
class: "control-decimal",
|
41
|
+
type: "number",
|
42
|
+
label: u(a).label,
|
43
|
+
placeholder: "请输入" + u(a).label,
|
44
|
+
required: u(a).control.required,
|
45
|
+
modelValue: u(l),
|
46
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => _(l) ? l.value = o : l = o)
|
47
|
+
}, null, 8, ["label", "placeholder", "required", "modelValue"]);
|
48
|
+
};
|
49
|
+
}
|
50
|
+
});
|
51
|
+
export {
|
52
|
+
y as default
|
53
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { defineComponent as y, toRefs as _, computed as c, resolveComponent as b, openBlock as l, createBlock as x, unref as r, withCtx as g, createElementBlock as s, Fragment as O, renderList as h, normalizeStyle as j, toDisplayString as a } from "vue";
|
2
|
+
import { a as k } from "./main-GfL1Y5aJ.js";
|
3
|
+
const V = /* @__PURE__ */ y({
|
4
|
+
__name: "Dictionary",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: [String, Number, Boolean]
|
11
|
+
},
|
12
|
+
setup(f) {
|
13
|
+
let p = f, { table: w, field: n, data: B, row: S, modelValue: t } = _(p), u = c(() => k.isString(t.value) ? t.value.split(",") : t.value ? [t.value] : []), o = c(() => u.value.length > 0 ? n.value.dictionary.data.filter((i) => u.value.indexOf(i.value) > -1) : []);
|
14
|
+
return (d, i) => {
|
15
|
+
const v = b("van-cell");
|
16
|
+
return l(), x(v, {
|
17
|
+
class: "text-dictionary",
|
18
|
+
title: r(n).label
|
19
|
+
}, {
|
20
|
+
default: g(() => [
|
21
|
+
(l(!0), s(O, null, h(r(o), (e, m) => (l(), s("span", {
|
22
|
+
style: j({ color: e.color }),
|
23
|
+
key: e.value
|
24
|
+
}, a(e.text) + a(e.suffix ? `(${e.suffix})` : "") + a(m == r(o).length - 1 ? "" : ", "), 5))), 128))
|
25
|
+
]),
|
26
|
+
_: 1
|
27
|
+
}, 8, ["title"]);
|
28
|
+
};
|
29
|
+
}
|
30
|
+
});
|
31
|
+
export {
|
32
|
+
V as _
|
33
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineComponent as r, toRefs as p, computed as d, resolveComponent as f, openBlock as i, createBlock as m, unref as e, withCtx as s, createTextVNode as _, toDisplayString as b } from "vue";
|
2
|
+
const w = /* @__PURE__ */ r({
|
3
|
+
__name: "Email",
|
4
|
+
props: {
|
5
|
+
table: { type: Object, default: null },
|
6
|
+
field: { type: Object, default: null },
|
7
|
+
data: { type: Object, default: null },
|
8
|
+
row: { type: Object, default: null },
|
9
|
+
modelValue: String
|
10
|
+
},
|
11
|
+
setup(t) {
|
12
|
+
let l = t, { table: v, field: a, data: x, row: y, modelValue: o } = p(l), n = d(() => o.value);
|
13
|
+
return (u, j) => {
|
14
|
+
const c = f("van-cell");
|
15
|
+
return i(), m(c, {
|
16
|
+
class: "text-email",
|
17
|
+
title: e(a).label
|
18
|
+
}, {
|
19
|
+
default: s(() => [
|
20
|
+
_(b(e(n)), 1)
|
21
|
+
]),
|
22
|
+
_: 1
|
23
|
+
}, 8, ["title"]);
|
24
|
+
};
|
25
|
+
}
|
26
|
+
});
|
27
|
+
export {
|
28
|
+
w as default
|
29
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { defineComponent as s, toRefs as f, computed as i, resolveComponent as b, openBlock as V, createBlock as _, unref as u, isRef as g } from "vue";
|
2
|
+
const v = /* @__PURE__ */ s({
|
3
|
+
__name: "Email",
|
4
|
+
props: {
|
5
|
+
table: { type: Object, default: null },
|
6
|
+
field: { type: Object, default: null },
|
7
|
+
data: { type: Object, default: null },
|
8
|
+
row: { type: Object, default: null },
|
9
|
+
modelValue: String
|
10
|
+
},
|
11
|
+
emits: ["change", "update:modelValue"],
|
12
|
+
setup(n, { emit: d }) {
|
13
|
+
let t = d, m = n, { table: j, field: r, data: y, row: O, modelValue: p } = f(m), e = i({
|
14
|
+
get() {
|
15
|
+
return p.value;
|
16
|
+
},
|
17
|
+
set(l) {
|
18
|
+
t("update:modelValue", l), t("change", l);
|
19
|
+
}
|
20
|
+
});
|
21
|
+
return (l, a) => {
|
22
|
+
const c = b("van-field");
|
23
|
+
return V(), _(c, {
|
24
|
+
class: "control-email",
|
25
|
+
label: u(r).label,
|
26
|
+
clickable: "",
|
27
|
+
modelValue: u(e),
|
28
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => g(e) ? e.value = o : e = o)
|
29
|
+
}, null, 8, ["label", "modelValue"]);
|
30
|
+
};
|
31
|
+
}
|
32
|
+
});
|
33
|
+
export {
|
34
|
+
v as default
|
35
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { defineComponent as s, toRefs as y, unref as e, openBlock as r, createBlock as n, resolveDynamicComponent as d, withCtx as c, createTextVNode as p, toDisplayString as u } from "vue";
|
2
|
+
const h = /* @__PURE__ */ s({
|
3
|
+
__name: "Index",
|
4
|
+
props: {
|
5
|
+
schema: { type: Array, default: null },
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null }
|
10
|
+
},
|
11
|
+
emits: ["change", "update:modelValue"],
|
12
|
+
setup(f, { emit: m }) {
|
13
|
+
let i = f, { schema: _, table: l, field: t, data: a, row: o } = y(i);
|
14
|
+
return (b, w) => e(t).control.textualize ? (r(), n(d(`text-${e(t).control.type.toLowerCase()}`), {
|
15
|
+
key: 0,
|
16
|
+
table: e(l),
|
17
|
+
field: e(t),
|
18
|
+
data: e(a),
|
19
|
+
row: e(o)
|
20
|
+
}, {
|
21
|
+
default: c(() => [
|
22
|
+
p(" 未支持的表单控件:" + u(e(t).control.type), 1)
|
23
|
+
]),
|
24
|
+
_: 1
|
25
|
+
}, 8, ["table", "field", "data", "row"])) : (r(), n(d(`control-${e(t).control.type.toLowerCase()}`), {
|
26
|
+
key: 1,
|
27
|
+
table: e(l),
|
28
|
+
field: e(t),
|
29
|
+
data: e(a),
|
30
|
+
row: e(o)
|
31
|
+
}, {
|
32
|
+
default: c(() => [
|
33
|
+
p(" 未支持的详情控件:" + u(e(t).control.type), 1)
|
34
|
+
]),
|
35
|
+
_: 1
|
36
|
+
}, 8, ["table", "field", "data", "row"]));
|
37
|
+
}
|
38
|
+
});
|
39
|
+
export {
|
40
|
+
h as _
|
41
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { defineComponent as m, toRefs as d, resolveComponent as f, openBlock as c, createBlock as s, unref as e } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ m({
|
3
|
+
__name: "Int",
|
4
|
+
props: {
|
5
|
+
schema: { type: Array, default: null },
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
row: { type: Object, default: null },
|
8
|
+
field: { type: Object, default: null },
|
9
|
+
form: { type: Object, default: null }
|
10
|
+
},
|
11
|
+
setup(o) {
|
12
|
+
let r = o, { field: l, form: t, table: a, schema: b } = d(r);
|
13
|
+
return (i, n) => {
|
14
|
+
const p = f("van-field");
|
15
|
+
return c(), s(p, {
|
16
|
+
class: "search-int",
|
17
|
+
label: e(l).label,
|
18
|
+
placeholder: "请输入" + e(l).label,
|
19
|
+
type: "number",
|
20
|
+
modelValue: e(t)[e(a).name][e(l).name],
|
21
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => e(t)[e(a).name][e(l).name] = u)
|
22
|
+
}, null, 8, ["label", "placeholder", "modelValue"]);
|
23
|
+
};
|
24
|
+
}
|
25
|
+
});
|
26
|
+
export {
|
27
|
+
_ as default
|
28
|
+
};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { defineComponent as _, toRefs as y, computed as V, resolveComponent as r, unref as l, openBlock as d, createBlock as c, withCtx as g, createTextVNode as x, toDisplayString as h, isRef as j } from "vue";
|
2
|
+
const C = /* @__PURE__ */ _({
|
3
|
+
__name: "Int",
|
4
|
+
props: {
|
5
|
+
table: { type: Object, default: null },
|
6
|
+
field: { type: Object, default: null },
|
7
|
+
data: { type: Object, default: null },
|
8
|
+
row: { type: Object, default: null },
|
9
|
+
modelValue: Number
|
10
|
+
},
|
11
|
+
emits: ["change", "update:modelValue"],
|
12
|
+
setup(i, { emit: p }) {
|
13
|
+
let a = p, m = i, { table: k, field: t, data: O, row: q, modelValue: s } = y(m), o = V({
|
14
|
+
get() {
|
15
|
+
return s.value;
|
16
|
+
},
|
17
|
+
set(e) {
|
18
|
+
e && (e = parseInt(e)), a("update:modelValue", e), a("change", e);
|
19
|
+
}
|
20
|
+
});
|
21
|
+
return (e, n) => {
|
22
|
+
const f = r("van-cell"), b = r("van-field");
|
23
|
+
return l(t).control.textualize ? (d(), c(f, {
|
24
|
+
key: 0,
|
25
|
+
class: "control-int",
|
26
|
+
title: l(t).label
|
27
|
+
}, {
|
28
|
+
default: g(() => [
|
29
|
+
x(h(l(o)), 1)
|
30
|
+
]),
|
31
|
+
_: 1
|
32
|
+
}, 8, ["title"])) : (d(), c(b, {
|
33
|
+
key: 1,
|
34
|
+
class: "control-int",
|
35
|
+
type: "digit",
|
36
|
+
label: l(t).label,
|
37
|
+
placeholder: "请输入" + l(t).label,
|
38
|
+
required: l(t).control.required,
|
39
|
+
modelValue: l(o),
|
40
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => j(o) ? o.value = u : o = u)
|
41
|
+
}, null, 8, ["label", "placeholder", "required", "modelValue"]));
|
42
|
+
};
|
43
|
+
}
|
44
|
+
});
|
45
|
+
export {
|
46
|
+
C as default
|
47
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineComponent as r, toRefs as p, computed as d, resolveComponent as f, openBlock as s, createBlock as i, unref as e, withCtx as m, createTextVNode as _, toDisplayString as b } from "vue";
|
2
|
+
const w = /* @__PURE__ */ r({
|
3
|
+
__name: "Int",
|
4
|
+
props: {
|
5
|
+
table: { type: Object, default: null },
|
6
|
+
field: { type: Object, default: null },
|
7
|
+
data: { type: Object, default: null },
|
8
|
+
row: { type: Object, default: null },
|
9
|
+
modelValue: [Number]
|
10
|
+
},
|
11
|
+
setup(t) {
|
12
|
+
let l = t, { table: v, field: a, data: x, row: y, modelValue: n } = p(l), o = d(() => n.value);
|
13
|
+
return (u, j) => {
|
14
|
+
const c = f("van-cell");
|
15
|
+
return s(), i(c, {
|
16
|
+
class: "text-int",
|
17
|
+
title: e(a).label
|
18
|
+
}, {
|
19
|
+
default: m(() => [
|
20
|
+
_(b(e(o)), 1)
|
21
|
+
]),
|
22
|
+
_: 1
|
23
|
+
}, 8, ["title"]);
|
24
|
+
};
|
25
|
+
}
|
26
|
+
});
|
27
|
+
export {
|
28
|
+
w as default
|
29
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { defineComponent as p, toRefs as m, openBlock as i, createBlock as s, unref as e } from "vue";
|
2
|
+
import { _ } from "./Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js";
|
3
|
+
const w = /* @__PURE__ */ p({
|
4
|
+
__name: "Json",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
emits: ["change", "update:modelValue"],
|
13
|
+
setup(l, { emit: a }) {
|
14
|
+
let n = a, o = l, { table: d, field: r, data: u, row: c, modelValue: b } = m(o), f = (t) => {
|
15
|
+
n("change", t);
|
16
|
+
};
|
17
|
+
return (t, g) => (i(), s(_, {
|
18
|
+
table: e(d),
|
19
|
+
field: e(r),
|
20
|
+
data: e(u),
|
21
|
+
row: e(c),
|
22
|
+
onChange: e(f)
|
23
|
+
}, null, 8, ["table", "field", "data", "row", "onChange"]));
|
24
|
+
}
|
25
|
+
});
|
26
|
+
export {
|
27
|
+
w as default
|
28
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { defineComponent as p, toRefs as m, openBlock as i, createBlock as s, unref as e, isRef as c } from "vue";
|
2
|
+
import { _ as b } from "./Code.vue_vue_type_style_index_0_lang-tCrm737u.js";
|
3
|
+
const w = /* @__PURE__ */ p({
|
4
|
+
__name: "Json",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
setup(o) {
|
13
|
+
let d = o, { table: u, field: n, data: r, row: f, modelValue: l } = m(d);
|
14
|
+
return (_, t) => (i(), s(b, {
|
15
|
+
table: e(u),
|
16
|
+
field: e(n),
|
17
|
+
data: e(r),
|
18
|
+
row: e(f),
|
19
|
+
modelValue: e(l),
|
20
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => c(l) ? l.value = a : l = a)
|
21
|
+
}, null, 8, ["table", "field", "data", "row", "modelValue"]));
|
22
|
+
}
|
23
|
+
});
|
24
|
+
export {
|
25
|
+
w as default
|
26
|
+
};
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { defineComponent as O, toRefs as q, ref as B, computed as s, resolveComponent as d, openBlock as p, createElementBlock as T, Fragment as U, unref as t, createBlock as f, withCtx as c, createTextVNode as M, toDisplayString as N, isRef as u, createVNode as b } from "vue";
|
2
|
+
import { b as v } from "./main-GfL1Y5aJ.js";
|
3
|
+
const F = /* @__PURE__ */ O({
|
4
|
+
__name: "Month",
|
5
|
+
props: {
|
6
|
+
table: { type: Object, default: null },
|
7
|
+
field: { type: Object, default: null },
|
8
|
+
data: { type: Object, default: null },
|
9
|
+
row: { type: Object, default: null },
|
10
|
+
modelValue: String
|
11
|
+
},
|
12
|
+
emits: ["change", "update:modelValue"],
|
13
|
+
setup(V, { emit: _ }) {
|
14
|
+
let i = _, y = V, { table: R, field: r, data: S, row: z, modelValue: k } = q(y), l = B(!1), g = (o) => {
|
15
|
+
a.value = v.formatMonth(o), l.value = !1;
|
16
|
+
}, C = (o, e) => o == "year" ? `${e}年` : o == "month" ? `${e}月` : e, m = s(() => v.getTime(a.value)), a = s({
|
17
|
+
get() {
|
18
|
+
return k.value;
|
19
|
+
},
|
20
|
+
set(o) {
|
21
|
+
i("update:modelValue", o), i("change", o);
|
22
|
+
}
|
23
|
+
});
|
24
|
+
return (o, e) => {
|
25
|
+
const w = d("van-cell"), h = d("van-field"), x = d("van-date-picker"), j = d("van-popup");
|
26
|
+
return p(), T(U, null, [
|
27
|
+
t(r).control.textualize ? (p(), f(w, {
|
28
|
+
key: 0,
|
29
|
+
class: "control-month",
|
30
|
+
title: t(r).label
|
31
|
+
}, {
|
32
|
+
default: c(() => [
|
33
|
+
M(N(t(a)), 1)
|
34
|
+
]),
|
35
|
+
_: 1
|
36
|
+
}, 8, ["title"])) : (p(), f(h, {
|
37
|
+
key: 1,
|
38
|
+
class: "control-month",
|
39
|
+
clickable: "",
|
40
|
+
readonly: "",
|
41
|
+
label: t(r).label,
|
42
|
+
placeholder: "点击选择" + t(r).label,
|
43
|
+
required: t(r).control.required,
|
44
|
+
onClick: e[0] || (e[0] = (n) => u(l) ? l.value = !0 : l = !0),
|
45
|
+
modelValue: t(a),
|
46
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => u(a) ? a.value = n : a = n)
|
47
|
+
}, null, 8, ["label", "placeholder", "required", "modelValue"])),
|
48
|
+
b(j, {
|
49
|
+
position: "bottom",
|
50
|
+
show: t(l),
|
51
|
+
"onUpdate:show": e[4] || (e[4] = (n) => u(l) ? l.value = n : l = n)
|
52
|
+
}, {
|
53
|
+
default: c(() => [
|
54
|
+
b(x, {
|
55
|
+
type: "year-month",
|
56
|
+
title: "选择年月",
|
57
|
+
formatter: t(C),
|
58
|
+
onConfirm: t(g),
|
59
|
+
onCancel: e[2] || (e[2] = (n) => u(l) ? l.value = !1 : l = !1),
|
60
|
+
modelValue: t(m),
|
61
|
+
"onUpdate:modelValue": e[3] || (e[3] = (n) => u(m) ? m.value = n : m = n)
|
62
|
+
}, null, 8, ["formatter", "onConfirm", "modelValue"])
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
}, 8, ["show"])
|
66
|
+
], 64);
|
67
|
+
};
|
68
|
+
}
|
69
|
+
});
|
70
|
+
export {
|
71
|
+
F as default
|
72
|
+
};
|