halo-mobile 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/dist/assets/@intlify-BISCQg1h.js +2189 -0
  2. package/dist/assets/@monaco-editor-BCDRi0Ti.js +258 -0
  3. package/dist/assets/@vue-aVYGocXp.js +93 -0
  4. package/dist/assets/clone-DtpAsLoe.js +139 -0
  5. package/dist/assets/echarts-GNlBOlA2.js +35788 -0
  6. package/dist/assets/file-saver-Cnua3zoa.js +74 -0
  7. package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
  8. package/dist/assets/moment-h96o7c8I.js +2578 -0
  9. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  10. package/dist/assets/state-local-CEworIRt.js +131 -0
  11. package/dist/assets/tslib-Mk5CobFr.js +33 -0
  12. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  13. package/dist/assets/underscore.string-oDfap0sE.js +425 -0
  14. package/dist/assets/util-deprecate-BqFawLoO.js +28 -0
  15. package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
  16. package/dist/assets/zrender-DL5fpFCv.js +8571 -0
  17. package/dist/main.js +6717 -36
  18. package/dist/style.css +4 -14
  19. package/package.json +25 -24
  20. package/dist/Autocomplete-XXlWKdZ7.js +0 -26
  21. package/dist/Autocomplete-Yvl0RCLc.js +0 -64
  22. package/dist/CSharp-KyLMHymK.js +0 -26
  23. package/dist/Cascader-PzpVQ7AB.js +0 -40
  24. package/dist/Cascader-YLS04_2K.js +0 -48
  25. package/dist/Checkbox-T3g7wr0e.js +0 -102
  26. package/dist/Checkbox-xtKe1aWq.js +0 -26
  27. package/dist/Code-EYCtRAN7.js +0 -4
  28. package/dist/Code-Kt2CerlI.js +0 -4
  29. package/dist/Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js +0 -50
  30. package/dist/Code.vue_vue_type_style_index_0_lang-tCrm737u.js +0 -29
  31. package/dist/Color-iWLZHYMu.js +0 -33
  32. package/dist/Color-tf48GpkC.js +0 -30
  33. package/dist/Copy-c0RFSh48.js +0 -35
  34. package/dist/Date-PIiMOa7G.js +0 -75
  35. package/dist/Date-ZvcltpXD.js +0 -26
  36. package/dist/DateRange-UGAw4vvX.js +0 -38
  37. package/dist/DateRange-u_NTVOsq.js +0 -29
  38. package/dist/DateTimeRange-XMx5BSsY.js +0 -60
  39. package/dist/Datetime-9uSognrF.js +0 -68
  40. package/dist/Datetime-yUYlyiVe.js +0 -26
  41. package/dist/Decimal-64RFuThb.js +0 -26
  42. package/dist/Decimal-hbTpK8HG.js +0 -53
  43. package/dist/Dictionary-9wRln3ML.js +0 -4
  44. package/dist/Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js +0 -33
  45. package/dist/Email-Y2RZC3Pp.js +0 -29
  46. package/dist/Email-sXlLv1De.js +0 -35
  47. package/dist/Index--r9hKHmH.js +0 -4
  48. package/dist/Index-DpwKrUS5.js +0 -4
  49. package/dist/Index.vue_vue_type_script_setup_true_lang-IyVPMbcI.js +0 -41
  50. package/dist/Int-cJfYzdCu.js +0 -28
  51. package/dist/Int-ctDLC_Su.js +0 -47
  52. package/dist/Int-fJBASDM7.js +0 -29
  53. package/dist/Json-BFAMwsfX.js +0 -28
  54. package/dist/Json-gCo-Zdv_.js +0 -26
  55. package/dist/Month-B_1hI-Rh.js +0 -72
  56. package/dist/MySql-enArT5D7.js +0 -30
  57. package/dist/MySql-vcBpsfvo.js +0 -26
  58. package/dist/Normal-KRIGE5xc.js +0 -31
  59. package/dist/Password-R6_k-rn2.js +0 -29
  60. package/dist/Password-pOFH57lW.js +0 -47
  61. package/dist/Progress-cjSNkpkZ.js +0 -34
  62. package/dist/Progress-dvuJ1mVx.js +0 -27
  63. package/dist/Radio-MgtZXxhO.js +0 -38
  64. package/dist/Radio-NLiXdnr7.js +0 -26
  65. package/dist/Rate-8Ojfu4Pl.js +0 -28
  66. package/dist/Rate-tlqTCUfE.js +0 -45
  67. package/dist/RichText-7YHU6ukx.js +0 -7558
  68. package/dist/RichText-YQxC6ync.js +0 -53
  69. package/dist/RichText-chshsG49.js +0 -27
  70. package/dist/Select-BSzLsx0C.js +0 -26
  71. package/dist/Select-HdlI6DWS.js +0 -69
  72. package/dist/Select-fY1P8Gei.js +0 -71
  73. package/dist/Sql-Ww3tPZxu.js +0 -26
  74. package/dist/Switch-jHDDXeAv.js +0 -35
  75. package/dist/Switch-xgpu_bmM.js +0 -26
  76. package/dist/Table-xOt0TEu7.js +0 -52
  77. package/dist/Text-4hfe8ACo.js +0 -40
  78. package/dist/Text-CznHk-ab.js +0 -4
  79. package/dist/Text-dPJvVg8h.js +0 -27
  80. package/dist/Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js +0 -29
  81. package/dist/Textarea-1xTv6tuq.js +0 -27
  82. package/dist/Textarea-CX_-wFIg.js +0 -29
  83. package/dist/Textarea-hxjW3zKV.js +0 -38
  84. package/dist/Time-U_PlgRNm.js +0 -35
  85. package/dist/Upload-6otTjgzq.js +0 -54
  86. package/dist/Upload-N-FekeJG.js +0 -82
  87. package/dist/Year-W5E5x4fI.js +0 -73
  88. package/dist/main-GfL1Y5aJ.js +0 -30973
  89. package/dist/main.d.ts +0 -329
@@ -1,53 +0,0 @@
1
- import { defineComponent as y, toRefs as w, ref as v, onMounted as S, onUnmounted as k, computed as x, resolveComponent as _, openBlock as a, createBlock as b, unref as t, withCtx as C, createElementBlock as r, createCommentVNode as i, createElementVNode as g } from "vue";
2
- import { S as j } from "./main-GfL1Y5aJ.js";
3
- const H = ["innerHTML"], E = /* @__PURE__ */ y({
4
- __name: "RichText",
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(u) {
13
- let p = u, { table: O, field: d, data: T, row: V, modelValue: f } = w(p), l = v(!1), m = (n) => {
14
- l.value = !0;
15
- let e = new SpeechSynthesisUtterance();
16
- e.rate = 1.5, e.pitch = 1.5, e.text = j.getTextFromHtml(n), window.speechSynthesis.speak(e), window.speechSynthesis.resume();
17
- }, o = () => {
18
- l.value = !1, window.speechSynthesis.pause();
19
- };
20
- S(() => {
21
- window.speechSynthesis.cancel();
22
- }), k(() => {
23
- window.speechSynthesis.cancel();
24
- });
25
- let s = x(() => f.value || "");
26
- return (n, e) => {
27
- const h = _("van-cell");
28
- return a(), b(h, {
29
- class: "text-rich-text",
30
- title: t(d).label
31
- }, {
32
- default: C(() => [
33
- t(l) ? i("", !0) : (a(), r("i", {
34
- key: 0,
35
- class: "fa fa-play-circle",
36
- onClick: e[0] || (e[0] = (c) => t(m)(t(s)))
37
- })),
38
- t(l) ? (a(), r("i", {
39
- key: 1,
40
- class: "fa fa-pause-circle",
41
- onClick: e[1] || (e[1] = //@ts-ignore
42
- (...c) => t(o) && t(o)(...c))
43
- })) : i("", !0),
44
- g("div", { innerHTML: t(s) }, null, 8, H)
45
- ]),
46
- _: 1
47
- }, 8, ["title"]);
48
- };
49
- }
50
- });
51
- export {
52
- E as default
53
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as c, toRefs as m, resolveComponent as d, openBlock as f, createBlock as s, unref as e } from "vue";
2
- const h = /* @__PURE__ */ c({
3
- __name: "RichText",
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 } = m(r);
13
- return (i, n) => {
14
- const p = d("van-field");
15
- return f(), s(p, {
16
- class: "search-rich-text",
17
- label: e(l).label,
18
- placeholder: "请输入" + e(l).label,
19
- modelValue: e(t)[e(a).name][e(l).name],
20
- "onUpdate:modelValue": n[0] || (n[0] = (u) => e(t)[e(a).name][e(l).name] = u)
21
- }, null, 8, ["label", "placeholder", "modelValue"]);
22
- };
23
- }
24
- });
25
- export {
26
- h as default
27
- };
@@ -1,26 +0,0 @@
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: "Select",
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
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as j, toRefs as S, ref as f, computed as p, resolveComponent as s, openBlock as q, createElementBlock as U, Fragment as B, createVNode as m, unref as a, isRef as n, withCtx as c, createElementVNode as E, toDisplayString as N } from "vue";
2
- import { C as R } from "./main-GfL1Y5aJ.js";
3
- const D = { class: "select-text" }, H = /* @__PURE__ */ j({
4
- __name: "Select",
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(b, { emit: F }) {
14
- let V = b, { table: _, field: u, data: C, row: z, modelValue: v } = S(V), t = f(!1), x = (o) => {
15
- let e = o.selectedOptions[0];
16
- R.setValue(e.value, C.value, _.value, index.value, u.value), t.value = !1;
17
- }, y = () => {
18
- let o = v.value;
19
- return o && u.value.multiple ? o.split(",") : [o];
20
- }, d = p(() => v.value), k = p(() => u.value.dictionary.data), r = p(() => {
21
- if (!d.value)
22
- return null;
23
- let o = u.value.dictionary.data.find((e) => e.value == d.value);
24
- return o ? o.text : d.value;
25
- }), i = f(y());
26
- return (o, e) => {
27
- const w = s("van-field"), g = s("van-picker"), O = s("van-popup");
28
- return q(), U(B, null, [
29
- m(w, {
30
- class: "control-select",
31
- clickable: "",
32
- readonly: "",
33
- "is-link": "",
34
- label: a(u).label,
35
- placeholder: "点击选择" + a(u).label,
36
- required: a(u).control.required,
37
- onClick: e[0] || (e[0] = (l) => n(t) ? t.value = !0 : t = !0),
38
- modelValue: a(r),
39
- "onUpdate:modelValue": e[1] || (e[1] = (l) => n(r) ? r.value = l : r = l)
40
- }, null, 8, ["label", "placeholder", "required", "modelValue"]),
41
- m(O, {
42
- position: "bottom",
43
- show: a(t),
44
- "onUpdate:show": e[4] || (e[4] = (l) => n(t) ? t.value = l : t = l)
45
- }, {
46
- default: c(() => [
47
- m(g, {
48
- title: "选择" + a(u).label,
49
- columns: a(k),
50
- onConfirm: a(x),
51
- onCancel: e[2] || (e[2] = (l) => n(t) ? t.value = !1 : t = !1),
52
- modelValue: a(i),
53
- "onUpdate:modelValue": e[3] || (e[3] = (l) => n(i) ? i.value = l : i = l)
54
- }, {
55
- option: c((l) => [
56
- E("div", D, N(l.text), 1)
57
- ]),
58
- _: 1
59
- }, 8, ["title", "columns", "onConfirm", "modelValue"])
60
- ]),
61
- _: 1
62
- }, 8, ["show"])
63
- ], 64);
64
- };
65
- }
66
- });
67
- export {
68
- H as default
69
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as U, toRefs as B, ref as m, computed as _, resolveComponent as c, openBlock as E, createElementBlock as N, Fragment as R, createVNode as v, unref as o, isRef as s, withCtx as y, createElementVNode as A, toDisplayString as D } from "vue";
2
- import { C as f } from "./main-GfL1Y5aJ.js";
3
- const F = { class: "select-text" }, G = /* @__PURE__ */ U({
4
- __name: "Select",
5
- props: {
6
- schema: { type: Array, default: null },
7
- table: { type: Object, default: null },
8
- field: { type: Object, default: null },
9
- row: { type: Object, default: null },
10
- form: { type: Object, default: null }
11
- },
12
- setup(C) {
13
- let x = C, { schema: T, table: i, field: a, form: p } = B(x), u = m(!1), k = _(() => a.value.dictionary.data), g = () => {
14
- let e = f.getValue(p.value, null, i.value, a.value);
15
- return e && a.value.multiple ? e.split(",") : [e];
16
- }, b = (e) => {
17
- f.setValue(e, p.value, i.value, null, a.value), n.value = V();
18
- }, w = (e) => {
19
- let l = e.selectedOptions[0];
20
- b(l.value), u.value = !1;
21
- }, O = () => {
22
- b(null), u.value = !1;
23
- }, d = _(() => f.getValue(p.value, null, i.value, a.value)), V = () => {
24
- if (!d.value)
25
- return null;
26
- let e = a.value.dictionary.data.find((l) => l.value == d.value);
27
- return e ? e.text : d.value;
28
- }, n = m(V()), r = m(g());
29
- return (e, l) => {
30
- const j = c("van-field"), h = c("van-picker"), S = c("van-popup");
31
- return E(), N(R, null, [
32
- v(j, {
33
- class: "search-select",
34
- clickable: "",
35
- readonly: "",
36
- "is-link": "",
37
- label: o(a).label,
38
- placeholder: "请输入" + o(a).label,
39
- modelValue: o(n),
40
- "onUpdate:modelValue": l[0] || (l[0] = (t) => s(n) ? n.value = t : n = t),
41
- onClick: l[1] || (l[1] = (t) => s(u) ? u.value = !0 : u = !0)
42
- }, null, 8, ["label", "placeholder", "modelValue"]),
43
- v(S, {
44
- position: "bottom",
45
- show: o(u),
46
- "onUpdate:show": l[3] || (l[3] = (t) => s(u) ? u.value = t : u = t)
47
- }, {
48
- default: y(() => [
49
- v(h, {
50
- title: "选择" + o(a).label,
51
- columns: o(k),
52
- onConfirm: o(w),
53
- onCancel: o(O),
54
- modelValue: o(r),
55
- "onUpdate:modelValue": l[2] || (l[2] = (t) => s(r) ? r.value = t : r = t)
56
- }, {
57
- option: y((t) => [
58
- A("div", F, D(t.text), 1)
59
- ]),
60
- _: 1
61
- }, 8, ["title", "columns", "onConfirm", "onCancel", "modelValue"])
62
- ]),
63
- _: 1
64
- }, 8, ["show"])
65
- ], 64);
66
- };
67
- }
68
- });
69
- export {
70
- G as default
71
- };
@@ -1,26 +0,0 @@
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: "Sql",
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
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as p, toRefs as i, computed as f, openBlock as h, createElementBlock as b, unref as t } from "vue";
2
- const y = ["checked", "disabled"], O = /* @__PURE__ */ p({
3
- __name: "Switch",
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
- modelValue: [Boolean, Number]
11
- },
12
- emits: ["change", "update:modelValue"],
13
- setup(d, { emit: n }) {
14
- let l = n, c = d, { schema: _, table: g, field: r, data: w, row: j, modelValue: s } = i(c), a = ({ detail: e }) => {
15
- o.value = e.value;
16
- }, o = f({
17
- get() {
18
- return s.value;
19
- },
20
- set(e) {
21
- l("update:modelValue", e), l("change", e);
22
- }
23
- });
24
- return (e, u) => (h(), b("switch", {
25
- class: "control-switch",
26
- checked: t(o),
27
- disabled: t(r).readonly,
28
- onChange: u[0] || (u[0] = //@ts-ignore
29
- (...m) => t(a) && t(a)(...m))
30
- }, null, 40, y));
31
- }
32
- });
33
- export {
34
- O as default
35
- };
@@ -1,26 +0,0 @@
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 j = /* @__PURE__ */ p({
4
- __name: "Switch",
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: [Boolean, Number]
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
- j as default
26
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as h, toRefs as y, resolveComponent as k, openBlock as t, createElementBlock as a, createElementVNode as m, Fragment as s, renderList as c, unref as e, toDisplayString as V, createVNode as f, createCommentVNode as u, createBlock as g } from "vue";
2
- import { _ as v } from "./Index.vue_vue_type_script_setup_true_lang-IyVPMbcI.js";
3
- const j = { class: "single-table" }, x = { class: "table-scroller" }, A = /* @__PURE__ */ h({
4
- __name: "Table",
5
- props: {
6
- module: Object,
7
- next: Object,
8
- data: Object,
9
- schema: Array,
10
- table: Object
11
- },
12
- setup(d) {
13
- let p = d, { module: O, next: B, data: o, schema: _, table: n } = y(p);
14
- return (C, N) => {
15
- const b = k("van-empty");
16
- return t(), a("div", j, [
17
- m("div", x, [
18
- m("table", null, [
19
- m("tr", null, [
20
- (t(!0), a(s, null, c(e(n).show, (l) => (t(), a("th", {
21
- key: l.name
22
- }, V(l.label), 1))), 128))
23
- ]),
24
- e(o)[e(n).name].length ? (t(!0), a(s, { key: 0 }, c(e(o)[e(n).name], (l, E) => (t(), a("tr", null, [
25
- (t(!0), a(s, null, c(e(n).show, (r) => (t(), a("td", {
26
- key: r.name
27
- }, [
28
- f(v, {
29
- schema: e(_),
30
- table: e(n),
31
- field: r,
32
- data: e(o),
33
- row: l,
34
- modelValue: l[r.name],
35
- "onUpdate:modelValue": (i) => l[r.name] = i
36
- }, null, 8, ["schema", "table", "field", "data", "row", "modelValue", "onUpdate:modelValue"])
37
- ]))), 128))
38
- ]))), 256)) : u("", !0)
39
- ])
40
- ]),
41
- e(o)[e(n).name].length == 0 ? (t(), g(b, {
42
- key: 0,
43
- class: "no-data",
44
- description: "暂无数据"
45
- })) : u("", !0)
46
- ]);
47
- };
48
- }
49
- });
50
- export {
51
- A as default
52
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as i, toRefs as f, computed as p, resolveComponent as b, openBlock as V, createBlock as _, unref as o, isRef as v } from "vue";
2
- const y = /* @__PURE__ */ i({
3
- __name: "Text",
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(c, { emit: m }) {
13
- let u = m, s = c, { table: g, field: l, data: x, row: h, modelValue: r } = f(s), t = p({
14
- get() {
15
- return r.value;
16
- },
17
- set(e) {
18
- u("update:modelValue", e), u("change", e);
19
- }
20
- });
21
- return p(() => {
22
- let e = r.value, a = e && e.replace(/\n/g, "<br/>");
23
- return (l.value.control.prefix || "") + (a || "");
24
- }), (e, a) => {
25
- const n = b("van-field");
26
- return V(), _(n, {
27
- class: "control-text",
28
- clickable: "",
29
- label: o(l).label,
30
- placeholder: "请输入" + o(l).label,
31
- required: o(l).control.required,
32
- modelValue: o(t),
33
- "onUpdate:modelValue": a[0] || (a[0] = (d) => v(t) ? t.value = d : t = d)
34
- }, null, 8, ["label", "placeholder", "required", "modelValue"]);
35
- };
36
- }
37
- });
38
- export {
39
- y as default
40
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js";
2
- export {
3
- f as default
4
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as m, toRefs as d, resolveComponent as f, openBlock as c, createBlock as s, unref as e } from "vue";
2
- const y = /* @__PURE__ */ m({
3
- __name: "Text",
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-text",
17
- label: e(l).label,
18
- placeholder: "请输入" + e(l).label,
19
- modelValue: e(t)[e(a).name][e(l).name],
20
- "onUpdate:modelValue": n[0] || (n[0] = (u) => e(t)[e(a).name][e(l).name] = u)
21
- }, null, 8, ["label", "placeholder", "modelValue"]);
22
- };
23
- }
24
- });
25
- export {
26
- y as default
27
- };
@@ -1,29 +0,0 @@
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 _, createTextVNode as m, toDisplayString as b } from "vue";
2
- const w = /* @__PURE__ */ r({
3
- __name: "Text",
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 s(), i(c, {
16
- class: "text-text",
17
- title: e(a).label
18
- }, {
19
- default: _(() => [
20
- m(b(e(n)), 1)
21
- ]),
22
- _: 1
23
- }, 8, ["title"]);
24
- };
25
- }
26
- });
27
- export {
28
- w as _
29
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as m, toRefs as d, resolveComponent as f, openBlock as c, createBlock as s, unref as e } from "vue";
2
- const y = /* @__PURE__ */ m({
3
- __name: "Textarea",
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: a, table: t, schema: b } = d(r);
13
- return (i, n) => {
14
- const p = f("van-field");
15
- return c(), s(p, {
16
- class: "search-textarea",
17
- label: e(l).label,
18
- placeholder: "请输入" + e(l).label,
19
- modelValue: e(a)[e(t).name][e(l).name],
20
- "onUpdate:modelValue": n[0] || (n[0] = (u) => e(a)[e(t).name][e(l).name] = u)
21
- }, null, 8, ["label", "placeholder", "modelValue"]);
22
- };
23
- }
24
- });
25
- export {
26
- y as default
27
- };
@@ -1,29 +0,0 @@
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 w = /* @__PURE__ */ c({
3
- __name: "Textarea",
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 r = f("van-cell");
15
- return s(), i(r, {
16
- class: "text-textarea",
17
- title: e(a).label
18
- }, {
19
- default: m(() => [
20
- _(b(e(n)), 1)
21
- ]),
22
- _: 1
23
- }, 8, ["title"]);
24
- };
25
- }
26
- });
27
- export {
28
- w as default
29
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as s, toRefs as i, computed as f, resolveComponent as b, openBlock as V, createBlock as _, unref as t, isRef as w } from "vue";
2
- const y = /* @__PURE__ */ s({
3
- __name: "Textarea",
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 o = n, p = d, { table: g, field: a, data: h, row: j, modelValue: m } = i(p), e = f({
14
- get() {
15
- return m.value;
16
- },
17
- set(l) {
18
- o("update:modelValue", l), o("change", l);
19
- }
20
- });
21
- return (l, r) => {
22
- const c = b("van-field");
23
- return V(), _(c, {
24
- class: "control-textarea",
25
- label: t(a).label,
26
- rows: "2",
27
- "show-word-limit": "",
28
- placeholder: "请输入" + t(a).label,
29
- required: t(a).control.required,
30
- modelValue: t(e),
31
- "onUpdate:modelValue": r[0] || (r[0] = (u) => w(e) ? e.value = u : e = u)
32
- }, null, 8, ["label", "placeholder", "required", "modelValue"]);
33
- };
34
- }
35
- });
36
- export {
37
- y as default
38
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as m, toRefs as p, computed as s, resolveComponent as i, openBlock as f, createBlock as _, unref as l } from "vue";
2
- const v = /* @__PURE__ */ m({
3
- __name: "Time",
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 t = n, o = a, { table: b, field: u, data: h, row: g, modelValue: d } = p(o), r = s({
14
- get() {
15
- return d.value;
16
- },
17
- set(e) {
18
- t("update:modelValue", e), t("change", this.data);
19
- }
20
- });
21
- return (e, y) => {
22
- const c = i("el-time-select");
23
- return f(), _(c, {
24
- disabled: l(u).readonly,
25
- type: "time",
26
- placeholder: "选择时间",
27
- value: l(r),
28
- onChange: e.change
29
- }, null, 8, ["disabled", "value", "onChange"]);
30
- };
31
- }
32
- });
33
- export {
34
- v as default
35
- };