halo-mobile 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/README.md +3 -0
  2. package/dist/Autocomplete-XXlWKdZ7.js +26 -0
  3. package/dist/Autocomplete-Yvl0RCLc.js +64 -0
  4. package/dist/CSharp-KyLMHymK.js +26 -0
  5. package/dist/Cascader-PzpVQ7AB.js +40 -0
  6. package/dist/Cascader-YLS04_2K.js +48 -0
  7. package/dist/Checkbox-T3g7wr0e.js +102 -0
  8. package/dist/Checkbox-xtKe1aWq.js +26 -0
  9. package/dist/Code-EYCtRAN7.js +4 -0
  10. package/dist/Code-Kt2CerlI.js +4 -0
  11. package/dist/Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js +50 -0
  12. package/dist/Code.vue_vue_type_style_index_0_lang-tCrm737u.js +29 -0
  13. package/dist/Color-iWLZHYMu.js +33 -0
  14. package/dist/Color-tf48GpkC.js +30 -0
  15. package/dist/Copy-c0RFSh48.js +35 -0
  16. package/dist/Date-PIiMOa7G.js +75 -0
  17. package/dist/Date-ZvcltpXD.js +26 -0
  18. package/dist/DateRange-UGAw4vvX.js +38 -0
  19. package/dist/DateRange-u_NTVOsq.js +29 -0
  20. package/dist/DateTimeRange-XMx5BSsY.js +60 -0
  21. package/dist/Datetime-9uSognrF.js +68 -0
  22. package/dist/Datetime-yUYlyiVe.js +26 -0
  23. package/dist/Decimal-64RFuThb.js +26 -0
  24. package/dist/Decimal-hbTpK8HG.js +53 -0
  25. package/dist/Dictionary-9wRln3ML.js +4 -0
  26. package/dist/Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js +33 -0
  27. package/dist/Email-Y2RZC3Pp.js +29 -0
  28. package/dist/Email-sXlLv1De.js +35 -0
  29. package/dist/Index--r9hKHmH.js +4 -0
  30. package/dist/Index-DpwKrUS5.js +4 -0
  31. package/dist/Index.vue_vue_type_script_setup_true_lang-IyVPMbcI.js +41 -0
  32. package/dist/Int-cJfYzdCu.js +28 -0
  33. package/dist/Int-ctDLC_Su.js +47 -0
  34. package/dist/Int-fJBASDM7.js +29 -0
  35. package/dist/Json-BFAMwsfX.js +28 -0
  36. package/dist/Json-gCo-Zdv_.js +26 -0
  37. package/dist/Month-B_1hI-Rh.js +72 -0
  38. package/dist/MySql-enArT5D7.js +30 -0
  39. package/dist/MySql-vcBpsfvo.js +26 -0
  40. package/dist/Normal-KRIGE5xc.js +31 -0
  41. package/dist/Password-R6_k-rn2.js +29 -0
  42. package/dist/Password-pOFH57lW.js +47 -0
  43. package/dist/Progress-cjSNkpkZ.js +34 -0
  44. package/dist/Progress-dvuJ1mVx.js +27 -0
  45. package/dist/Radio-MgtZXxhO.js +38 -0
  46. package/dist/Radio-NLiXdnr7.js +26 -0
  47. package/dist/Rate-8Ojfu4Pl.js +28 -0
  48. package/dist/Rate-tlqTCUfE.js +45 -0
  49. package/dist/RichText-7YHU6ukx.js +7558 -0
  50. package/dist/RichText-YQxC6ync.js +53 -0
  51. package/dist/RichText-chshsG49.js +27 -0
  52. package/dist/Select-BSzLsx0C.js +26 -0
  53. package/dist/Select-HdlI6DWS.js +69 -0
  54. package/dist/Select-fY1P8Gei.js +71 -0
  55. package/dist/Sql-Ww3tPZxu.js +26 -0
  56. package/dist/Switch-jHDDXeAv.js +35 -0
  57. package/dist/Switch-xgpu_bmM.js +26 -0
  58. package/dist/Table-xOt0TEu7.js +52 -0
  59. package/dist/Text-4hfe8ACo.js +40 -0
  60. package/dist/Text-CznHk-ab.js +4 -0
  61. package/dist/Text-dPJvVg8h.js +27 -0
  62. package/dist/Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js +29 -0
  63. package/dist/Textarea-1xTv6tuq.js +27 -0
  64. package/dist/Textarea-CX_-wFIg.js +29 -0
  65. package/dist/Textarea-hxjW3zKV.js +38 -0
  66. package/dist/Time-U_PlgRNm.js +35 -0
  67. package/dist/Upload-6otTjgzq.js +54 -0
  68. package/dist/Upload-N-FekeJG.js +82 -0
  69. package/dist/Year-W5E5x4fI.js +73 -0
  70. package/dist/main-GfL1Y5aJ.js +30973 -0
  71. package/dist/main.d.ts +329 -0
  72. package/dist/main.js +38 -0
  73. package/dist/style.css +15 -0
  74. package/package.json +48 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 使用教程
2
+
3
+ Halo Mobile端框架
@@ -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 "./Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js";
3
+ const w = /* @__PURE__ */ p({
4
+ __name: "Autocomplete",
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 u = o, { table: d, field: r, data: f, row: n, modelValue: l } = m(u);
14
+ return (_, t) => (i(), c(b, {
15
+ table: e(d),
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,64 @@
1
+ import { defineComponent as g, toRefs as _, ref as p, computed as d, resolveComponent as j, openBlock as C, createBlock as E, unref as c, isRef as O } from "vue";
2
+ import { C as f } from "./main-GfL1Y5aJ.js";
3
+ const R = /* @__PURE__ */ g({
4
+ __name: "Autocomplete",
5
+ props: {
6
+ schema: { type: Array, default: null },
7
+ table: { type: Object, default: null },
8
+ field: { type: Object, default: null },
9
+ data: { type: Object, default: null },
10
+ row: { type: Object, default: null },
11
+ modelValue: String
12
+ },
13
+ setup(v) {
14
+ let b = v, { schema: y, table: o, field: a, data: n, row: k, modelValue: w } = _(b);
15
+ p(), p(!1);
16
+ let h = (e, l) => {
17
+ let u = [];
18
+ return y.value.forEach((t) => {
19
+ t.fields.forEach((i) => {
20
+ i.dictionary && i.dictionary.conditions.forEach((m) => {
21
+ m.table == e.name && m.field == l.name && u.push({
22
+ table: t,
23
+ field: i
24
+ });
25
+ });
26
+ });
27
+ }), u;
28
+ }, s = (e, l) => {
29
+ h(e, l).forEach((t) => {
30
+ f.setValue(null, n.value, t.table, index.value, t.field), s(t.table, t.field);
31
+ });
32
+ }, r = d({
33
+ get() {
34
+ let e = a.value.dictionary.data.find((l) => l.value == V.value);
35
+ return e && e.text;
36
+ },
37
+ set(e) {
38
+ return a.value.dictionary.data.find((u) => u.text == e).value;
39
+ }
40
+ }), x = d(() => a.value.dictionary.data.map((l) => l.text)), V = d({
41
+ get() {
42
+ let e = f.getValue(n.value, index.value, o.value, a.value);
43
+ return e && a.value.multiple ? e.split(",") : e;
44
+ },
45
+ set(e) {
46
+ let l;
47
+ a.value.multiple ? e.length > 0 ? l = e.join(",") : l = null : l = e, f.setValue(l, n.value, o.value, index.value, a.value), s(o.value, a.value), emit("change", n.value);
48
+ }
49
+ });
50
+ return (e, l) => {
51
+ const u = j("uni-combox");
52
+ return C(), E(u, {
53
+ class: "control-autocomplete",
54
+ candidates: c(x),
55
+ placeholder: "请选择" + c(a).label,
56
+ modelValue: c(r),
57
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => O(r) ? r.value = t : r = t)
58
+ }, null, 8, ["candidates", "placeholder", "modelValue"]);
59
+ };
60
+ }
61
+ });
62
+ export {
63
+ R as default
64
+ };
@@ -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: "CSharp",
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,40 @@
1
+ import { defineComponent as f, toRefs as m, ref as c, computed as h, openBlock as g, createElementBlock as _ } from "vue";
2
+ import { C as p } from "./main-GfL1Y5aJ.js";
3
+ const b = { class: "control-cascader" }, V = /* @__PURE__ */ f({
4
+ __name: "Cascader",
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(i) {
13
+ let v = i, { schema: j, table: s, field: a, data: n, row: y, modelValue: x } = m(v), u = c(null);
14
+ return c(null), h({
15
+ get() {
16
+ u.value || (u.value = a.value.dictionary.data);
17
+ let e = p.getValue(n.value, index.value, s.value, a.value), l = [];
18
+ if (a.value.multiple)
19
+ (e ? e.split(",") : [e]).forEach((o) => {
20
+ let r = [];
21
+ getParents(o, u.value, r, []), r.length > 0 && l.push(r.map((d) => d.value));
22
+ });
23
+ else {
24
+ let t = [];
25
+ getParents(e, u.value, t, []), t.forEach((o) => {
26
+ l.push(o.value);
27
+ });
28
+ }
29
+ return l;
30
+ },
31
+ set(e) {
32
+ let l;
33
+ a.value.multiple ? l = e.map((t) => t[t.length - 1]).join(",") : l = e[e.length - 1], p.setValue(l, n.value, s.value, index.value, a.value), emit("change", n.value);
34
+ }
35
+ }), (e, l) => (g(), _("div", b));
36
+ }
37
+ });
38
+ export {
39
+ V as default
40
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as b, toRefs as k, computed as i, resolveComponent as C, openBlock as e, createBlock as j, unref as o, withCtx as x, createElementBlock as l, Fragment as m, renderList as y, normalizeStyle as B, toDisplayString as _, createCommentVNode as O } from "vue";
2
+ import { T as w } from "./main-GfL1Y5aJ.js";
3
+ const S = {
4
+ key: 0,
5
+ class: "cascader-seperator"
6
+ }, F = /* @__PURE__ */ b({
7
+ __name: "Cascader",
8
+ props: {
9
+ table: { type: Object, default: null },
10
+ field: { type: Object, default: null },
11
+ data: { type: Object, default: null },
12
+ row: { type: Object, default: null },
13
+ modelValue: String
14
+ },
15
+ setup(v) {
16
+ let h = v, { table: V, field: u, data: E, row: T, modelValue: s } = k(h), c = i(() => s.value ? s.value.split(",") : []), p = i(() => {
17
+ if (c.value.length > 0) {
18
+ let d = u.value.dictionary.data, a = [];
19
+ return c.value.forEach((r) => {
20
+ let t = w.getParentsById(r, "value", d, "children", !1);
21
+ t.length > 0 && a.push(t);
22
+ }), a;
23
+ }
24
+ return [];
25
+ });
26
+ return (d, a) => {
27
+ const r = C("van-cell");
28
+ return e(), j(r, {
29
+ class: "text-cascader",
30
+ title: o(u).label
31
+ }, {
32
+ default: x(() => [
33
+ (e(!0), l(m, null, y(o(p), (t, f) => (e(), l("span", { key: f }, [
34
+ (e(!0), l(m, null, y(t, (n, g) => (e(), l("span", {
35
+ style: B({ color: n.color }),
36
+ key: n.value
37
+ }, _(n.text) + _(g == t.length - 1 ? "" : " / "), 5))), 128)),
38
+ f != o(p).length - 1 ? (e(), l("span", S, ",")) : O("", !0)
39
+ ]))), 128))
40
+ ]),
41
+ _: 1
42
+ }, 8, ["title"]);
43
+ };
44
+ }
45
+ });
46
+ export {
47
+ F as default
48
+ };
@@ -0,0 +1,102 @@
1
+ import { defineComponent as S, toRefs as U, ref as D, computed as h, resolveComponent as u, openBlock as f, createElementBlock as b, Fragment as V, createVNode as i, unref as o, isRef as c, withCtx as d, toDisplayString as C, createCommentVNode as E, renderList as L, createBlock as z, createTextVNode as A } from "vue";
2
+ const F = {
3
+ key: 0,
4
+ class: "text"
5
+ }, H = /* @__PURE__ */ S({
6
+ __name: "Checkbox",
7
+ props: {
8
+ table: { type: Object, default: null },
9
+ field: { type: Object, default: null },
10
+ data: { type: Object, default: null },
11
+ row: { type: Object, default: null },
12
+ modelValue: String
13
+ },
14
+ emits: ["change", "update:modelValue"],
15
+ setup(y, { emit: w }) {
16
+ let x = w, j = y, { table: P, field: r, data: T, row: q, modelValue: O } = U(j), l = D(!1), B = () => {
17
+ l.value = !0;
18
+ }, N = (a) => {
19
+ s.value = a;
20
+ }, k = () => {
21
+ let a = O.value;
22
+ return a ? a.split(",") : [];
23
+ }, s = h({
24
+ get() {
25
+ return k();
26
+ },
27
+ set(a) {
28
+ let e = a.toString();
29
+ x("update:modelValue", e), x("change", e);
30
+ }
31
+ }), n = h(() => {
32
+ let a = k(), e = [], v = r.value.dictionary.data;
33
+ return a.forEach((p) => {
34
+ let m = v.find((_) => _.value == p);
35
+ m ? e.push(m.text) : e.push(p);
36
+ }), e.join(",");
37
+ });
38
+ return (a, e) => {
39
+ const v = u("van-cell"), g = u("van-icon"), p = u("van-nav-bar"), m = u("van-checkbox"), _ = u("van-checkbox-group"), R = u("van-popup");
40
+ return f(), b(V, null, [
41
+ i(v, {
42
+ class: "control-checkbox",
43
+ clickable: "",
44
+ "is-link": "",
45
+ title: o(r).label,
46
+ onClick: o(B),
47
+ modelValue: o(n),
48
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => c(n) ? n.value = t : n = t)
49
+ }, {
50
+ value: d(() => [
51
+ o(n) ? (f(), b("div", F, C(o(n)), 1)) : E("", !0)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["title", "onClick", "modelValue"]),
55
+ i(R, {
56
+ class: "control-checkbox",
57
+ position: "bottom",
58
+ show: o(l),
59
+ "onUpdate:show": e[4] || (e[4] = (t) => c(l) ? l.value = t : l = t)
60
+ }, {
61
+ default: d(() => [
62
+ i(p, {
63
+ title: o(r).label,
64
+ "right-text": "确定",
65
+ onClickLeft: e[1] || (e[1] = (t) => c(l) ? l.value = !1 : l = !1),
66
+ onClickRight: e[2] || (e[2] = (t) => c(l) ? l.value = !1 : l = !1)
67
+ }, {
68
+ left: d(() => [
69
+ i(g, { name: "cross" })
70
+ ]),
71
+ _: 1
72
+ }, 8, ["title"]),
73
+ i(_, {
74
+ direction: "horizontal",
75
+ onChange: o(N),
76
+ modelValue: o(s),
77
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => c(s) ? s.value = t : s = t)
78
+ }, {
79
+ default: d(() => [
80
+ (f(!0), b(V, null, L(o(r).dictionary.data, (t) => (f(), z(m, {
81
+ disabled: o(r).readonly,
82
+ name: t.value,
83
+ key: t.value
84
+ }, {
85
+ default: d(() => [
86
+ A(C(t.text), 1)
87
+ ]),
88
+ _: 2
89
+ }, 1032, ["disabled", "name"]))), 128))
90
+ ]),
91
+ _: 1
92
+ }, 8, ["onChange", "modelValue"])
93
+ ]),
94
+ _: 1
95
+ }, 8, ["show"])
96
+ ], 64);
97
+ };
98
+ }
99
+ });
100
+ export {
101
+ H as default
102
+ };
@@ -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 "./Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js";
3
+ const w = /* @__PURE__ */ p({
4
+ __name: "Checkbox",
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,4 @@
1
+ import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./Code.vue_vue_type_style_index_0_lang-tCrm737u.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,50 @@
1
+ import { defineComponent as b, toRefs as y, computed as V, resolveComponent as d, unref as e, openBlock as u, createBlock as c, withCtx as g, createTextVNode as v, toDisplayString as w, isRef as x } from "vue";
2
+ const O = /* @__PURE__ */ b({
3
+ __name: "Code",
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(i, { emit: p }) {
13
+ let n = p, s = i, { table: h, field: l, data: j, row: k, modelValue: m } = y(s), t = V({
14
+ get() {
15
+ return m.value || "";
16
+ },
17
+ set(o) {
18
+ let a = o.toString();
19
+ n("update:modelValue", a), n("change", o);
20
+ }
21
+ });
22
+ return (o, a) => {
23
+ const f = d("van-cell"), _ = d("van-field");
24
+ return e(l).control.textualize ? (u(), c(f, {
25
+ key: 0,
26
+ class: "control-code",
27
+ title: e(l).label
28
+ }, {
29
+ default: g(() => [
30
+ v(w(e(t)), 1)
31
+ ]),
32
+ _: 1
33
+ }, 8, ["title"])) : (u(), c(_, {
34
+ key: 1,
35
+ class: "control-code",
36
+ type: "textarea",
37
+ rows: "5",
38
+ label: e(l).label,
39
+ placeholder: "请输入" + e(l).label,
40
+ "show-word-limit": "",
41
+ required: e(l).control.required,
42
+ modelValue: e(t),
43
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => x(t) ? t.value = r : t = r)
44
+ }, null, 8, ["label", "placeholder", "required", "modelValue"]));
45
+ };
46
+ }
47
+ });
48
+ export {
49
+ O as _
50
+ };
@@ -0,0 +1,29 @@
1
+ import { defineComponent as p, toRefs as d, computed as t, resolveComponent as s, openBlock as f, createBlock as i, unref as l, withCtx as _, createTextVNode as m, toDisplayString as v } from "vue";
2
+ const w = /* @__PURE__ */ p({
3
+ __name: "Code",
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(o) {
12
+ let a = o, { table: b, field: e, data: y, row: x, modelValue: n } = d(a), r = t(() => n.value);
13
+ return t(() => e.value.control.type.toLowerCase()), (u, C) => {
14
+ const c = s("van-cell");
15
+ return f(), i(c, {
16
+ class: "text-code",
17
+ title: l(e).label
18
+ }, {
19
+ default: _(() => [
20
+ m(v(l(r)), 1)
21
+ ]),
22
+ _: 1
23
+ }, 8, ["title"]);
24
+ };
25
+ }
26
+ });
27
+ export {
28
+ w as _
29
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as s, toRefs as i, computed as f, resolveComponent as b, openBlock as _, createBlock as V, unref as u, isRef as y } from "vue";
2
+ const C = /* @__PURE__ */ s({
3
+ __name: "Color",
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: n }) {
13
+ let t = n, r = d, { table: g, field: p, data: j, row: k, modelValue: m } = i(r), e = f({
14
+ get() {
15
+ return m.value;
16
+ },
17
+ set(l) {
18
+ t("update:modelValue", l), t("change", this.data);
19
+ }
20
+ });
21
+ return (l, o) => {
22
+ const c = b("el-color-picker");
23
+ return _(), V(c, {
24
+ disabled: u(p).readonly,
25
+ modelValue: u(e),
26
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => y(e) ? e.value = a : e = a)
27
+ }, null, 8, ["disabled", "modelValue"]);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ C as default
33
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as c, toRefs as p, computed as d, resolveComponent as s, openBlock as f, createBlock as i, unref as e, normalizeStyle as m, withCtx as _, createTextVNode as y, toDisplayString as b } from "vue";
2
+ const w = /* @__PURE__ */ c({
3
+ __name: "Color",
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(l) {
12
+ let o = l, { table: v, field: a, data: x, row: j, modelValue: n } = p(o), t = d(() => n.value);
13
+ return (r, C) => {
14
+ const u = s("van-cell");
15
+ return f(), i(u, {
16
+ class: "text-color",
17
+ title: e(a).label,
18
+ style: m({ color: e(t) })
19
+ }, {
20
+ default: _(() => [
21
+ y(b(e(t)), 1)
22
+ ]),
23
+ _: 1
24
+ }, 8, ["title", "style"]);
25
+ };
26
+ }
27
+ });
28
+ export {
29
+ w as default
30
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as i, toRefs as f, computed as m, unref as l, openBlock as o, createElementBlock as a, renderSlot as n, createElementVNode as s } from "vue";
2
+ const y = { key: 0 }, _ = {
3
+ key: 1,
4
+ class: "copy-container"
5
+ }, b = ["src"], O = /* @__PURE__ */ i({
6
+ __name: "Copy",
7
+ props: {
8
+ table: { type: Object, default: null },
9
+ field: { type: Object, default: null },
10
+ data: { type: Object, default: null },
11
+ row: { type: Object, default: null },
12
+ modelValue: String
13
+ },
14
+ setup(u) {
15
+ let c = u, { table: v, field: r, data: k, row: g, modelValue: d } = f(c), p = () => {
16
+ };
17
+ return m(() => d.value), (e, t) => l(r).copy ? (o(), a("view", _, [
18
+ s("i", {
19
+ class: "btn-copy",
20
+ onClick: t[0] || (t[0] = (j) => l(p)())
21
+ }, [
22
+ s("img", {
23
+ src: "/default/images/clippy.svg",
24
+ alt: "复制文本"
25
+ }, null, 8, b)
26
+ ]),
27
+ n(e.$slots, "default")
28
+ ])) : (o(), a("view", y, [
29
+ n(e.$slots, "default")
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ O as default
35
+ };
@@ -0,0 +1,75 @@
1
+ import { defineComponent as B, toRefs as D, ref as s, computed as c, resolveComponent as d, openBlock as i, createElementBlock as T, Fragment as U, unref as e, createBlock as f, withCtx as b, createTextVNode as N, toDisplayString as R, isRef as p, createVNode as v } from "vue";
2
+ import { b as V } from "./main-GfL1Y5aJ.js";
3
+ const H = /* @__PURE__ */ B({
4
+ __name: "Date",
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(_, { emit: k }) {
14
+ let m = k, y = _, { table: S, field: u, data: h, row: z, modelValue: C } = D(y);
15
+ s();
16
+ let l = s(!1), g = () => {
17
+ l.value = !1;
18
+ }, w = (n) => {
19
+ l.value = !1, a.value = V.formatDate(n);
20
+ }, r = c(() => V.getTime(a.value)), a = c({
21
+ get() {
22
+ return C.value;
23
+ },
24
+ set(n) {
25
+ m("update:modelValue", n), m("change", n);
26
+ }
27
+ });
28
+ return (n, o) => {
29
+ const x = d("van-cell"), j = d("van-field"), O = d("van-date-picker"), q = d("van-popup");
30
+ return i(), T(U, null, [
31
+ e(u).control.textualize ? (i(), f(x, {
32
+ key: 0,
33
+ class: "control-date",
34
+ title: e(u).label
35
+ }, {
36
+ default: b(() => [
37
+ N(R(e(a)), 1)
38
+ ]),
39
+ _: 1
40
+ }, 8, ["title"])) : (i(), f(j, {
41
+ key: 1,
42
+ class: "control-date",
43
+ clickable: "",
44
+ readonly: "",
45
+ label: e(u).label,
46
+ placeholder: "点击选择" + e(u).label,
47
+ required: e(u).control.required,
48
+ onClick: o[0] || (o[0] = (t) => p(l) ? l.value = !0 : l = !0),
49
+ modelValue: e(a),
50
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => p(a) ? a.value = t : a = t)
51
+ }, null, 8, ["label", "placeholder", "required", "modelValue"])),
52
+ v(q, {
53
+ position: "bottom",
54
+ show: e(l),
55
+ "onUpdate:show": o[3] || (o[3] = (t) => p(l) ? l.value = t : l = t)
56
+ }, {
57
+ default: b(() => [
58
+ v(O, {
59
+ type: "date",
60
+ title: "选择日期",
61
+ onConfirm: e(w),
62
+ onCancel: e(g),
63
+ modelValue: e(r),
64
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => p(r) ? r.value = t : r = t)
65
+ }, null, 8, ["onConfirm", "onCancel", "modelValue"])
66
+ ]),
67
+ _: 1
68
+ }, 8, ["show"])
69
+ ], 64);
70
+ };
71
+ }
72
+ });
73
+ export {
74
+ H as default
75
+ };
@@ -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: "Date",
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,38 @@
1
+ import { defineComponent as m, toRefs as s, computed as i, resolveComponent as f, openBlock as y, createBlock as _, unref as t } from "vue";
2
+ const v = /* @__PURE__ */ m({
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
+ emits: ["change", "update:modelValue"],
12
+ setup(a, { emit: n }) {
13
+ let l = n, d = a, { table: g, field: o, data: b, row: h, modelValue: u } = s(d), r = () => {
14
+ }, p = i({
15
+ get() {
16
+ return u.value;
17
+ },
18
+ set(e) {
19
+ l("update:modelValue", e), l("change", e);
20
+ }
21
+ });
22
+ return (e, j) => {
23
+ const c = f("el-date-picker");
24
+ return y(), _(c, {
25
+ type: "daterange",
26
+ "value-dataat": "yyyy-MM-dd",
27
+ "start-placeholder": "开始日期",
28
+ "end-placeholder": "结束日期",
29
+ disabled: t(o).readonly,
30
+ value: t(p),
31
+ onChange: t(r)
32
+ }, null, 8, ["disabled", "value", "onChange"]);
33
+ };
34
+ }
35
+ });
36
+ export {
37
+ v as default
38
+ };