halo-mobile 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/package.json +24 -23
  2. package/dist/Autocomplete-XXlWKdZ7.js +0 -26
  3. package/dist/Autocomplete-Yvl0RCLc.js +0 -64
  4. package/dist/CSharp-KyLMHymK.js +0 -26
  5. package/dist/Cascader-PzpVQ7AB.js +0 -40
  6. package/dist/Cascader-YLS04_2K.js +0 -48
  7. package/dist/Checkbox-T3g7wr0e.js +0 -102
  8. package/dist/Checkbox-xtKe1aWq.js +0 -26
  9. package/dist/Code-EYCtRAN7.js +0 -4
  10. package/dist/Code-Kt2CerlI.js +0 -4
  11. package/dist/Code.vue_vue_type_style_index_0_lang-kiGLlqK3.js +0 -50
  12. package/dist/Code.vue_vue_type_style_index_0_lang-tCrm737u.js +0 -29
  13. package/dist/Color-iWLZHYMu.js +0 -33
  14. package/dist/Color-tf48GpkC.js +0 -30
  15. package/dist/Copy-c0RFSh48.js +0 -35
  16. package/dist/Date-PIiMOa7G.js +0 -75
  17. package/dist/Date-ZvcltpXD.js +0 -26
  18. package/dist/DateRange-UGAw4vvX.js +0 -38
  19. package/dist/DateRange-u_NTVOsq.js +0 -29
  20. package/dist/DateTimeRange-XMx5BSsY.js +0 -60
  21. package/dist/Datetime-9uSognrF.js +0 -68
  22. package/dist/Datetime-yUYlyiVe.js +0 -26
  23. package/dist/Decimal-64RFuThb.js +0 -26
  24. package/dist/Decimal-hbTpK8HG.js +0 -53
  25. package/dist/Dictionary-9wRln3ML.js +0 -4
  26. package/dist/Dictionary.vue_vue_type_script_setup_true_lang-5HlYf8uW.js +0 -33
  27. package/dist/Email-Y2RZC3Pp.js +0 -29
  28. package/dist/Email-sXlLv1De.js +0 -35
  29. package/dist/Index--r9hKHmH.js +0 -4
  30. package/dist/Index-DpwKrUS5.js +0 -4
  31. package/dist/Index.vue_vue_type_script_setup_true_lang-IyVPMbcI.js +0 -41
  32. package/dist/Int-cJfYzdCu.js +0 -28
  33. package/dist/Int-ctDLC_Su.js +0 -47
  34. package/dist/Int-fJBASDM7.js +0 -29
  35. package/dist/Json-BFAMwsfX.js +0 -28
  36. package/dist/Json-gCo-Zdv_.js +0 -26
  37. package/dist/Month-B_1hI-Rh.js +0 -72
  38. package/dist/MySql-enArT5D7.js +0 -30
  39. package/dist/MySql-vcBpsfvo.js +0 -26
  40. package/dist/Normal-KRIGE5xc.js +0 -31
  41. package/dist/Password-R6_k-rn2.js +0 -29
  42. package/dist/Password-pOFH57lW.js +0 -47
  43. package/dist/Progress-cjSNkpkZ.js +0 -34
  44. package/dist/Progress-dvuJ1mVx.js +0 -27
  45. package/dist/Radio-MgtZXxhO.js +0 -38
  46. package/dist/Radio-NLiXdnr7.js +0 -26
  47. package/dist/Rate-8Ojfu4Pl.js +0 -28
  48. package/dist/Rate-tlqTCUfE.js +0 -45
  49. package/dist/RichText-7YHU6ukx.js +0 -7558
  50. package/dist/RichText-YQxC6ync.js +0 -53
  51. package/dist/RichText-chshsG49.js +0 -27
  52. package/dist/Select-BSzLsx0C.js +0 -26
  53. package/dist/Select-HdlI6DWS.js +0 -69
  54. package/dist/Select-fY1P8Gei.js +0 -71
  55. package/dist/Sql-Ww3tPZxu.js +0 -26
  56. package/dist/Switch-jHDDXeAv.js +0 -35
  57. package/dist/Switch-xgpu_bmM.js +0 -26
  58. package/dist/Table-xOt0TEu7.js +0 -52
  59. package/dist/Text-4hfe8ACo.js +0 -40
  60. package/dist/Text-CznHk-ab.js +0 -4
  61. package/dist/Text-dPJvVg8h.js +0 -27
  62. package/dist/Text.vue_vue_type_script_setup_true_lang-3i3pp-y0.js +0 -29
  63. package/dist/Textarea-1xTv6tuq.js +0 -27
  64. package/dist/Textarea-CX_-wFIg.js +0 -29
  65. package/dist/Textarea-hxjW3zKV.js +0 -38
  66. package/dist/Time-U_PlgRNm.js +0 -35
  67. package/dist/Upload-6otTjgzq.js +0 -54
  68. package/dist/Upload-N-FekeJG.js +0 -82
  69. package/dist/Year-W5E5x4fI.js +0 -73
  70. package/dist/main-GfL1Y5aJ.js +0 -30973
  71. package/dist/main.d.ts +0 -329
  72. package/dist/main.js +0 -38
  73. package/dist/style.css +0 -15
@@ -1,54 +0,0 @@
1
- import { defineComponent as _, toRefs as g, ref as b, computed as y, resolveComponent as n, openBlock as r, createBlock as s, withCtx as i, unref as t, createElementBlock as h, isRef as k, createCommentVNode as d, createElementVNode as C } from "vue";
2
- import { u as O, U as V, F as p } from "./main-GfL1Y5aJ.js";
3
- const j = ["src", "alt"], w = ["src"], I = /* @__PURE__ */ _({
4
- __name: "Upload",
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(c) {
13
- let m = c, { table: x, field: B, data: F, row: H, modelValue: l } = g(m);
14
- O();
15
- let a = b(!1), o = y(() => {
16
- if (!l.value)
17
- return l.value;
18
- let e = V.httpOrHttps(l.value) ? l.value : store.state.system.settings.api.url + value.value;
19
- return p.isImage(e) ? e : p.getFileIcon(e);
20
- });
21
- return (e, u) => {
22
- const f = n("el-dialog"), v = n("van-uploader");
23
- return r(), s(v, { class: "text-upload" }, {
24
- default: i(() => [
25
- t(o) ? (r(), h("img", {
26
- key: 0,
27
- class: "detail-image",
28
- src: t(o),
29
- onClick: u[0] || (u[0] = (S) => k(a) ? a.value = !0 : a = !0),
30
- alt: e.value
31
- }, null, 8, j)) : d("", !0),
32
- t(o) ? (r(), s(f, {
33
- key: 1,
34
- top: "5vh",
35
- "append-to-body": "",
36
- visible: t(a)
37
- }, {
38
- default: i(() => [
39
- C("img", {
40
- width: "100%",
41
- src: t(o)
42
- }, null, 8, w)
43
- ]),
44
- _: 1
45
- }, 8, ["visible"])) : d("", !0)
46
- ]),
47
- _: 1
48
- });
49
- };
50
- }
51
- });
52
- export {
53
- I as default
54
- };
@@ -1,82 +0,0 @@
1
- import { defineComponent as L, toRefs as M, onMounted as P, computed as c, ref as B, openBlock as d, createElementBlock as f, normalizeClass as C, unref as t, createElementVNode as m } from "vue";
2
- import { F as v, M as b, H as E, U as R } from "./main-GfL1Y5aJ.js";
3
- const S = ["list-type", "action", "headers", "file-list", "before-upload", "before-remove", "on-preview", "on-success", "disabled"], T = {
4
- key: 0,
5
- class: "el-icon-plus"
6
- }, z = {
7
- key: 1,
8
- type: "button"
9
- }, N = ["visible"], q = ["src"], W = /* @__PURE__ */ L({
10
- __name: "Upload",
11
- props: {
12
- table: { type: Object, default: null },
13
- field: { type: Object, default: null },
14
- data: { type: Object, default: null },
15
- row: { type: Object, default: null },
16
- modelValue: String
17
- },
18
- emits: ["change", "update:modelValue"],
19
- setup(h, { emit: y }) {
20
- let s = y, _ = h, { table: A, field: a, data: D, row: G, modelValue: w } = M(_), g = !1, V = setting, H = {}, u = [], O = (e) => new Promise((l, o) => {
21
- a.value.control.fileType == "Image" ? e.type.indexOf("image") == 0 ? l() : (b.error("请上传正确的图片文件"), o("图片格式错误")) : l();
22
- }), j = (e, l) => {
23
- let p = [e.name.replace(setting.api.url, "")];
24
- return E.post("/system/uploaddelete", { files: p }).then(({ data: i }) => (s("update:modelValue", null), s("change", val), Promise.resolve())).catch((i) => Promise.reject(i));
25
- }, I = (e) => {
26
- g = !0;
27
- }, U = ({ code: e, message: l, data: o }, p) => {
28
- if (e !== 200)
29
- b.error(l), u = [];
30
- else {
31
- let i = o[0].url;
32
- v.isImage(i) || (p.url = n(i)), s("update:modelValue", i), s("change", val);
33
- }
34
- }, k = () => {
35
- if (!r.value)
36
- return;
37
- let e = R.httpOrHttps(r.value) ? r.value : setting.api.url + r.value, l = { name: e };
38
- v.isImage(e) ? l.url = e : l.url = n(e), u.push(l);
39
- }, n = (e) => e;
40
- P(() => {
41
- k();
42
- });
43
- let F = c(() => a.value.control.preview ? "picture-card" : null), x = c(() => {
44
- if (!r.value)
45
- return r.value;
46
- let e = setting.api.url + r.value;
47
- return v.isImage(e) ? e : n(e);
48
- });
49
- c(() => store.state.system.settings);
50
- let r = B(w.value);
51
- return (e, l) => (d(), f("view", {
52
- class: C(t(a).control.preview ? "control-file-preview" : "control-file")
53
- }, [
54
- m("view", {
55
- "list-type": t(F),
56
- action: t(V),
57
- headers: t(H),
58
- "file-list": t(u),
59
- "before-upload": t(O),
60
- "before-remove": t(j),
61
- "on-preview": t(I),
62
- "on-success": t(U),
63
- disabled: t(a).readonly
64
- }, [
65
- t(a).control.preview ? (d(), f("i", T)) : (d(), f("button", z, "点击上传"))
66
- ], 40, S),
67
- m("view", {
68
- visible: t(g),
69
- "append-to-body": !0
70
- }, [
71
- m("img", {
72
- width: "100%",
73
- src: t(x),
74
- alt: ""
75
- }, null, 8, q)
76
- ], 8, N)
77
- ], 2));
78
- }
79
- });
80
- export {
81
- W as default
82
- };
@@ -1,73 +0,0 @@
1
- import { defineComponent as q, toRefs as B, ref as T, computed as s, resolveComponent as d, openBlock as p, createElementBlock as U, Fragment as N, unref as l, createBlock as f, withCtx as c, createTextVNode as R, toDisplayString as S, isRef as u, createVNode as b } from "vue";
2
- import { b as v } from "./main-GfL1Y5aJ.js";
3
- const F = /* @__PURE__ */ q({
4
- __name: "Year",
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(y, { emit: V }) {
14
- let i = V, _ = y, { table: Y, field: n, data: h, row: z, modelValue: k } = B(_), t = T(!1), g = (o) => {
15
- r.value = v.formatYear(o), t.value = !1;
16
- }, C = (o, e) => o == "year" ? `${e}年` : o == "month" ? `${e}月` : e, m = s(() => v.getTime(r.value)), r = 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"), x = d("van-field"), j = d("van-date-picker"), O = d("van-popup");
26
- return p(), U(N, null, [
27
- l(n).control.textualize ? (p(), f(w, {
28
- key: 0,
29
- class: "control-year",
30
- title: l(n).label
31
- }, {
32
- default: c(() => [
33
- R(S(l(r)), 1)
34
- ]),
35
- _: 1
36
- }, 8, ["title"])) : (p(), f(x, {
37
- key: 1,
38
- class: "control-year",
39
- clickable: "",
40
- readonly: "",
41
- label: l(n).label,
42
- placeholder: "点击选择" + l(n).label,
43
- required: l(n).control.required,
44
- onClick: e[0] || (e[0] = (a) => u(t) ? t.value = !0 : t = !0),
45
- modelValue: l(r),
46
- "onUpdate:modelValue": e[1] || (e[1] = (a) => u(r) ? r.value = a : r = a)
47
- }, null, 8, ["label", "placeholder", "required", "modelValue"])),
48
- b(O, {
49
- position: "bottom",
50
- show: l(t),
51
- "onUpdate:show": e[4] || (e[4] = (a) => u(t) ? t.value = a : t = a)
52
- }, {
53
- default: c(() => [
54
- b(j, {
55
- type: "year-month",
56
- title: "选择" + l(n).label,
57
- formatter: l(C),
58
- "columns-order": ["year"],
59
- onConfirm: l(g),
60
- onCancel: e[2] || (e[2] = (a) => u(t) ? t.value = !1 : t = !1),
61
- modelValue: l(m),
62
- "onUpdate:modelValue": e[3] || (e[3] = (a) => u(m) ? m.value = a : m = a)
63
- }, null, 8, ["title", "formatter", "onConfirm", "modelValue"])
64
- ]),
65
- _: 1
66
- }, 8, ["show"])
67
- ], 64);
68
- };
69
- }
70
- });
71
- export {
72
- F as default
73
- };