zhihao-ui 1.2.7 → 1.2.9

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.
Files changed (47) hide show
  1. package/dist/es/{BaseInfo-CboHDiqp.js → BaseInfo-Dv-eon6t.js} +1 -1
  2. package/dist/es/Button-DBbUF88w.js +51 -0
  3. package/dist/es/{DatePicker-AcRbvS-8.js → DatePicker-CWQoV03Q.js} +13 -13
  4. package/dist/es/{DetailHeader-CoaVXtN3.js → DetailHeader-C_mAB8-2.js} +3 -3
  5. package/dist/es/{DetailSubTitle-Csp4LjFx.js → DetailSubTitle-DD7Yllhf.js} +2 -2
  6. package/dist/es/Dialog-DyDSVm-6.js +109 -0
  7. package/dist/es/{DiyDataTable-CP7yYQaU.js → DiyDataTable-KOY6vjPs.js} +90 -85
  8. package/dist/es/{EditInfoPair-DBbRqppY.js → EditInfoPair-D0b5jY5Y.js} +3 -3
  9. package/dist/es/{FileWrapper-BwQhQopY.js → FileWrapper-CMSYWmEz.js} +4 -4
  10. package/dist/es/{Grid-B-FutGih.js → Grid-B5O9dZNI.js} +1 -1
  11. package/dist/es/{InfoPair-WmMCXoUh.js → InfoPair-Do3sSVw-.js} +3 -3
  12. package/dist/es/{Input-DFnH7_jo.js → Input-DVpd0Yte.js} +11 -11
  13. package/dist/es/{Loading-BW6Doqh_.js → Loading-DwtfOhMD.js} +2 -2
  14. package/dist/es/{Map-IjNHD4K5.js → Map-CMiThYaG.js} +641 -315
  15. package/dist/es/MessageBox-BowhqMYW.js +48 -0
  16. package/dist/es/{MoneyInput-BwkFhS2B.js → MoneyInput-CaTrJLi1.js} +7 -7
  17. package/dist/es/{PageHeadPanel-BhR3Bq1A.js → PageHeadPanel-_mKu2rMQ.js} +2 -2
  18. package/dist/es/{ToolTips-BEYXkt4n.js → ToolTips-BTCP0N--.js} +3 -3
  19. package/dist/es/index.js +30 -28
  20. package/dist/es/{utils-B1dH8Kx6.js → utils-DZ8-2Fg2.js} +1 -1
  21. package/dist/es/{vendor-Cu-cEPs_.js → vendor-BY-fHNA3.js} +9646 -8896
  22. package/dist/index.css +1 -1
  23. package/dist/types/components/ButtonGroup/ButtonGroup.test.d.ts +1 -0
  24. package/dist/types/components/ButtonGroup/ButtonGroup.vue.d.ts +37 -0
  25. package/dist/types/components/ButtonGroup/index.d.ts +38 -0
  26. package/dist/types/components/Dialog/Dialog.test.d.ts +1 -0
  27. package/dist/types/components/Dialog/Dialog.vue.d.ts +187 -14
  28. package/dist/types/components/Dialog/index.d.ts +296 -25
  29. package/dist/types/components/Dialog/types.d.ts +15 -5
  30. package/dist/types/components/DiyDataTable/type.d.ts +5 -3
  31. package/dist/types/components/Map/Map.vue.d.ts +15 -5
  32. package/dist/types/components/Map/index.d.ts +27 -0
  33. package/dist/types/components/Map/interface/entity/render.d.ts +32 -0
  34. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +4 -0
  35. package/dist/types/components/Map/interface/index.d.ts +1 -0
  36. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +5 -3
  37. package/dist/types/components/Map/render/drawPolygon.d.ts +9 -0
  38. package/dist/types/components/MessageBox/MessageBox.test.d.ts +1 -0
  39. package/dist/types/components/MessageBox/MessageBox.vue.d.ts +11 -218
  40. package/dist/types/components/MessageBox/index.d.ts +4 -342
  41. package/dist/types/components/index.d.ts +1 -0
  42. package/dist/umd/index.css +1 -1
  43. package/dist/umd/index.umd.cjs +25 -17
  44. package/package.json +1 -1
  45. package/dist/es/Button-C1Q6WvkI.js +0 -32
  46. package/dist/es/Dialog-CtU-qGdR.js +0 -74
  47. package/dist/es/MessageBox-CjuBt74R.js +0 -100
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as o, provide as n, watch as i, resolveComponent as p, openBlock as m, createBlock as W, withCtx as v, renderSlot as b } from "vue";
2
- import { w as g } from "./utils-B1dH8Kx6.js";
2
+ import { w as g } from "./utils-DZ8-2Fg2.js";
3
3
  const C = /* @__PURE__ */ h({
4
4
  name: "ZhBaseInfo",
5
5
  __name: "BaseInfo",
@@ -0,0 +1,51 @@
1
+ import { defineComponent as a, openBlock as r, createBlock as u, unref as c, mergeProps as p, withCtx as l, renderSlot as i } from "vue";
2
+ import { E as f, a as d } from "./vendor-BY-fHNA3.js";
3
+ import { w as _ } from "./utils-DZ8-2Fg2.js";
4
+ const h = /* @__PURE__ */ a({
5
+ name: "ZhButton",
6
+ inheritAttrs: !1,
7
+ __name: "Button",
8
+ emits: ["click"],
9
+ setup(n, { emit: t }) {
10
+ const e = t, s = (o) => {
11
+ e("click", o);
12
+ };
13
+ return (o, v) => (r(), u(c(f), p(o.$attrs, {
14
+ class: "zh-button",
15
+ onClick: s
16
+ }), {
17
+ default: l(() => [
18
+ i(o.$slots, "default", {}, void 0, !0)
19
+ ]),
20
+ _: 3
21
+ }, 16));
22
+ }
23
+ }), m = (n, t) => {
24
+ const e = n.__vccOpts || n;
25
+ for (const [s, o] of t)
26
+ e[s] = o;
27
+ return e;
28
+ }, B = /* @__PURE__ */ m(h, [["__scopeId", "data-v-59ad2ca5"]]), C = _(B), k = /* @__PURE__ */ a({
29
+ name: "ZhButtonGroup",
30
+ inheritAttrs: !1,
31
+ __name: "ButtonGroup",
32
+ props: {
33
+ template: { default: "" }
34
+ },
35
+ setup(n) {
36
+ return (t, e) => (r(), u(c(d), p(t.$attrs, {
37
+ class: ["zh-button-group", { "operation-fix-button": t.template === "operation-fix-button" }]
38
+ }), {
39
+ default: l(() => [
40
+ i(t.$slots, "default", {}, void 0, !0)
41
+ ]),
42
+ _: 3
43
+ }, 16, ["class"]));
44
+ }
45
+ }), b = /* @__PURE__ */ m(k, [["__scopeId", "data-v-08e5ab10"]]), g = _(b);
46
+ export {
47
+ B as Z,
48
+ m as _,
49
+ C as a,
50
+ g as b
51
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, openBlock as u, createElementBlock as f, normalizeClass as h, createVNode as D, unref as M, mergeProps as _ } from "vue";
2
- import { h as g, a as Y } from "./vendor-Cu-cEPs_.js";
3
- import { w as A } from "./utils-B1dH8Kx6.js";
2
+ import { h as g, b as Y } from "./vendor-BY-fHNA3.js";
3
+ import { w as A } from "./utils-DZ8-2Fg2.js";
4
4
  const p = "--", m = "YYYY-MM-DDTHH:mm:ss", T = "YYYY-MM-DDT23:59:59", E = "YYYY-MM-DD", i = (e, l = E) => e ? g(e).format(l).replace("Invalid date", p) : p, N = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
5
5
  function O(e) {
6
6
  const l = ["角", "分"], c = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], s = [
@@ -8,17 +8,17 @@ function O(e) {
8
8
  ["", "拾", "佰", "仟"]
9
9
  ], n = e < 0 ? "负" : "";
10
10
  e = Math.abs(e);
11
- let o = "";
12
- for (let a = 0; a < l.length; a++)
13
- o += (c[Math.floor(e * 10 * Math.pow(10, a)) % 10] + l[a]).replace(/零./, "");
14
- o = o || "整", e = Math.floor(e);
15
- for (let a = 0; a < s[0].length && e > 0; a++) {
11
+ let a = "";
12
+ for (let o = 0; o < l.length; o++)
13
+ a += (c[Math.floor(e * 10 * Math.pow(10, o)) % 10] + l[o]).replace(/零./, "");
14
+ a = a || "整", e = Math.floor(e);
15
+ for (let o = 0; o < s[0].length && e > 0; o++) {
16
16
  let t = "";
17
17
  for (let r = 0; r < s[1].length && e > 0; r++)
18
18
  t = c[e % 10] + s[1][r] + t, e = Math.floor(e / 10);
19
- o = t.replace(/(零.)*零$/, "").replace(/^$/, "零") + s[0][a] + o;
19
+ a = t.replace(/(零.)*零$/, "").replace(/^$/, "零") + s[0][o] + a;
20
20
  }
21
- return n + o.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
21
+ return n + a.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
22
22
  }
23
23
  const k = /* @__PURE__ */ d({
24
24
  name: "zh-date-picker",
@@ -30,10 +30,10 @@ const k = /* @__PURE__ */ d({
30
30
  },
31
31
  emits: ["update:modelValue", "change"],
32
32
  setup(e, { emit: l }) {
33
- const c = e, s = l, n = (t) => Array.isArray(t) ? [i(t[0], m), i(t[1], T)] : t && i(t, m), o = (t) => {
33
+ const c = e, s = l, n = (t) => Array.isArray(t) ? [i(t[0], m), i(t[1], T)] : t && i(t, m), a = (t) => {
34
34
  const r = n(t);
35
35
  s("update:modelValue", r);
36
- }, a = (t) => {
36
+ }, o = (t) => {
37
37
  const r = n(t);
38
38
  s("change", r);
39
39
  };
@@ -43,8 +43,8 @@ const k = /* @__PURE__ */ d({
43
43
  D(M(Y), _(t.$attrs, {
44
44
  style: c.style,
45
45
  "model-value": c.modelValue,
46
- "onUpdate:modelValue": o,
47
- onChange: a
46
+ "onUpdate:modelValue": a,
47
+ onChange: o
48
48
  }), null, 16, ["style", "model-value"])
49
49
  ], 2));
50
50
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, useSlots as p, openBlock as a, createElementBlock as o, createElementVNode as e, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as g, createCommentVNode as k } from "vue";
2
- import { D as v } from "./DatePicker-AcRbvS-8.js";
3
- import { _ as D } from "./Button-C1Q6WvkI.js";
4
- import { w as y } from "./utils-B1dH8Kx6.js";
2
+ import { D as v } from "./DatePicker-CWQoV03Q.js";
3
+ import { _ as D } from "./Button-DBbUF88w.js";
4
+ import { w as y } from "./utils-DZ8-2Fg2.js";
5
5
  const I = { class: "common-card" }, b = { class: "detail-header" }, E = { class: "detail-header--left" }, H = { class: "title common-title" }, M = { class: "info-pair--label" }, $ = { class: "info-pair--value" }, C = {
6
6
  key: 1,
7
7
  class: "detail-header--right"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, openBlock as o, createElementBlock as s, createElementVNode as l, createTextVNode as a, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as d } from "vue";
2
- import { D as u } from "./DatePicker-AcRbvS-8.js";
3
- import { w as f } from "./utils-B1dH8Kx6.js";
2
+ import { D as u } from "./DatePicker-CWQoV03Q.js";
3
+ import { w as f } from "./utils-DZ8-2Fg2.js";
4
4
  const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
5
5
  key: 0,
6
6
  class: "info-pair--title--tip"
@@ -0,0 +1,109 @@
1
+ import { defineComponent as v, useModel as b, computed as w, openBlock as r, createBlock as T, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as p, toDisplayString as t, createElementBlock as z, createCommentVNode as E, mergeModels as m } from "vue";
2
+ import { Z as f } from "./Button-DBbUF88w.js";
3
+ import { c as Z } from "./vendor-BY-fHNA3.js";
4
+ import { w as I } from "./utils-DZ8-2Fg2.js";
5
+ const N = { class: "title" }, O = {
6
+ key: 0,
7
+ class: "sub-title"
8
+ }, S = { class: "zh-dialog__footer" }, $ = /* @__PURE__ */ v({
9
+ __name: "Dialog",
10
+ props: /* @__PURE__ */ m({
11
+ title: {},
12
+ subTitle: {},
13
+ cancelButtonText: { default: "取消" },
14
+ confirmButtonText: { default: "确定" },
15
+ confirmButtonDisabled: { type: Boolean, default: !1 },
16
+ closeOnClickModal: { type: Boolean, default: !1 },
17
+ size: { default: "middle" },
18
+ width: {},
19
+ appendToBody: { type: Boolean },
20
+ appendTo: {},
21
+ beforeClose: {},
22
+ destroyOnClose: { type: Boolean },
23
+ closeOnPressEscape: { type: Boolean },
24
+ lockScroll: { type: Boolean },
25
+ modal: { type: Boolean },
26
+ openDelay: {},
27
+ closeDelay: {},
28
+ top: {},
29
+ modelValue: { type: Boolean },
30
+ modalClass: {},
31
+ zIndex: {},
32
+ trapFocus: { type: Boolean },
33
+ headerAriaLevel: {},
34
+ center: { type: Boolean },
35
+ alignCenter: { type: Boolean },
36
+ closeIcon: {},
37
+ draggable: { type: Boolean },
38
+ overflow: { type: Boolean },
39
+ fullscreen: { type: Boolean },
40
+ showClose: { type: Boolean },
41
+ ariaLevel: {}
42
+ }, {
43
+ modelValue: { type: Boolean, default: !0 },
44
+ modelModifiers: {}
45
+ }),
46
+ emits: /* @__PURE__ */ m(["cancel", "confirm", "close"], ["update:modelValue"]),
47
+ setup(d, { emit: B }) {
48
+ const a = d, l = b(d, "modelValue"), n = B, y = () => {
49
+ n("close");
50
+ }, h = () => {
51
+ l.value = !1, n("cancel");
52
+ }, C = () => {
53
+ l.value = !1, n("confirm");
54
+ }, g = {
55
+ small: "400px",
56
+ middle: "600px",
57
+ large: "800px",
58
+ extraLarge: "920px"
59
+ }, V = w(() => a.width ? a.width : g[a.size]);
60
+ return (e, i) => (r(), T(D(Z), M({
61
+ modelValue: l.value,
62
+ "onUpdate:modelValue": i[0] || (i[0] = (k) => l.value = k),
63
+ class: "zh-dialog"
64
+ }, e.$attrs, {
65
+ width: V.value,
66
+ "close-on-click-modal": e.closeOnClickModal,
67
+ onClose: y
68
+ }), {
69
+ header: o(() => [
70
+ s(e.$slots, "header", {}, () => [
71
+ c("div", N, t(e.title), 1),
72
+ e.subTitle ? (r(), z("div", O, t(e.subTitle), 1)) : E("", !0)
73
+ ])
74
+ ]),
75
+ footer: o(() => [
76
+ s(e.$slots, "footer", {}, () => [
77
+ c("div", S, [
78
+ u(f, {
79
+ plain: "",
80
+ onClick: h
81
+ }, {
82
+ default: o(() => [
83
+ p(t(e.cancelButtonText), 1)
84
+ ]),
85
+ _: 1
86
+ }),
87
+ u(f, {
88
+ type: "primary",
89
+ disabled: e.confirmButtonDisabled,
90
+ onClick: C
91
+ }, {
92
+ default: o(() => [
93
+ p(t(e.confirmButtonText), 1)
94
+ ]),
95
+ _: 1
96
+ }, 8, ["disabled"])
97
+ ])
98
+ ])
99
+ ]),
100
+ default: o(() => [
101
+ s(e.$slots, "default")
102
+ ]),
103
+ _: 3
104
+ }, 16, ["modelValue", "width", "close-on-click-modal"]));
105
+ }
106
+ }), A = I($);
107
+ export {
108
+ A as Z
109
+ };
@@ -1,13 +1,13 @@
1
- import { defineComponent as B, useModel as N, ref as D, openBlock as s, createBlock as h, unref as i, withCtx as p, createVNode as g, createElementBlock as u, Fragment as Z, renderList as H, normalizeClass as E, toDisplayString as m, createCommentVNode as y, createElementVNode as v, createTextVNode as w, mergeModels as z } from "vue";
2
- import { D as P } from "./DatePicker-AcRbvS-8.js";
3
- import { c as _, d as V, e as j, f as K, g as k, i as C, j as G, k as L, E as T } from "./vendor-Cu-cEPs_.js";
4
- import { _ as J } from "./Button-C1Q6WvkI.js";
5
- import { w as Q } from "./utils-B1dH8Kx6.js";
6
- var b = /* @__PURE__ */ ((f) => (f.AUTOCOMPLETE = "autocomplete", f.FORMAT = "format", f))(b || {});
7
- const W = { key: 0 }, X = {
1
+ import { defineComponent as B, useModel as H, ref as E, openBlock as s, createBlock as c, unref as o, withCtx as p, createVNode as g, createElementBlock as f, Fragment as N, renderList as Z, normalizeClass as D, toDisplayString as m, createCommentVNode as x, createElementVNode as v, createTextVNode as w, mergeModels as z } from "vue";
2
+ import { D as X } from "./DatePicker-CWQoV03Q.js";
3
+ import { d as _, e as V, f as j, g as K, i as k, j as C, k as P, l as T, E as L } from "./vendor-BY-fHNA3.js";
4
+ import { _ as G } from "./Button-DBbUF88w.js";
5
+ import { w as J } from "./utils-DZ8-2Fg2.js";
6
+ var y = /* @__PURE__ */ ((u) => (u.AUTOCOMPLETE = "autocomplete", u.FORMAT = "format", u.TEXT = "text", u))(y || {});
7
+ const Q = { key: 0 }, W = {
8
8
  key: 1,
9
9
  class: "col-edit-header"
10
- }, Y = ["onClick"], ee = { key: 0 }, te = { key: 1 }, ae = { class: "header-operation-container" }, le = { class: "operation-container" }, re = ["onClick"], R = "$ZH_DIV$", oe = /* @__PURE__ */ B({
10
+ }, Y = ["onClick"], ee = { key: 0 }, te = { key: 1 }, ae = { class: "header-operation-container" }, le = { class: "operation-container" }, re = ["onClick"], M = "$ZH_DIV$", oe = /* @__PURE__ */ B({
11
11
  name: "zh-diy-data-table",
12
12
  __name: "DiyDataTable",
13
13
  props: /* @__PURE__ */ z({
@@ -19,46 +19,47 @@ const W = { key: 0 }, X = {
19
19
  rawDataModifiers: {}
20
20
  }),
21
21
  emits: ["update:rawData"],
22
- setup(f, { expose: $ }) {
23
- const c = f, d = N(f, "rawData"), o = D([]), A = () => {
24
- if (d.value.length === c.maxRowLength) {
22
+ setup(u, { expose: R }) {
23
+ const h = u, n = H(u, "rawData"), i = E([]), $ = () => {
24
+ if (n.value.length === h.maxRowLength) {
25
25
  _({
26
- message: `最多添加至${c.maxRowLength}行`,
26
+ message: `最多添加${h.maxRowLength}行`,
27
27
  type: "warning"
28
28
  });
29
29
  return;
30
30
  }
31
- d.value.push({});
32
- }, M = () => {
33
- if (o.value.length === c.maxColLength) {
31
+ n.value.push({});
32
+ }, U = () => {
33
+ if (i.value.filter((e) => e.isAdd).length >= h.maxColLength) {
34
34
  _({
35
- message: `最多添加至${c.maxColLength}列`,
35
+ message: `最多添加${h.maxColLength}列`,
36
36
  type: "warning"
37
37
  });
38
38
  return;
39
39
  }
40
- const t = String(Date.now());
41
- o.value.push({
42
- prop: t,
40
+ const l = String(Date.now());
41
+ i.value.push({
42
+ prop: l,
43
43
  label: "",
44
+ isEditHeader: !0,
44
45
  isAdd: !0,
45
46
  maxlength: 15,
46
47
  headerMaxlength: 15
47
48
  });
48
- }, U = (t, l) => {
49
- o.value.splice(t, 1), d.value.forEach((e) => {
49
+ }, A = (t, l) => {
50
+ i.value.splice(t, 1), n.value.forEach((e) => {
50
51
  delete e[l.prop];
51
52
  });
52
53
  }, F = (t) => {
53
- d.value.splice(t, 1);
54
+ n.value.splice(t, 1);
54
55
  }, S = (t, l, e) => {
55
56
  l(
56
57
  e.completeList.filter((r) => r.includes(t)).map((r) => ({ value: r }))
57
58
  );
58
- }, I = (t) => [
59
+ }, q = (t) => [
59
60
  {
60
61
  validator: (l, e, r) => {
61
- if (!o.value[t].label) {
62
+ if (!i.value[t].label) {
62
63
  r(new Error("请输入表头"));
63
64
  return;
64
65
  }
@@ -67,7 +68,7 @@ const W = { key: 0 }, X = {
67
68
  message: "请输入表头",
68
69
  trigger: ["blur", "change"]
69
70
  }
70
- ], q = (t) => {
71
+ ], I = (t) => {
71
72
  const l = [];
72
73
  return t.required && l.push({
73
74
  required: !0,
@@ -75,13 +76,13 @@ const W = { key: 0 }, X = {
75
76
  trigger: "blur"
76
77
  }), t.varidate && l.push({
77
78
  validator: (e, r, a) => {
78
- const n = t.varidate(r);
79
- n !== !0 ? a(new Error(n)) : a();
79
+ const d = t.varidate(r);
80
+ d !== !0 ? a(new Error(d)) : a();
80
81
  },
81
82
  trigger: "blur"
82
83
  }), l;
83
- }, x = D();
84
- return $({
84
+ }, b = E();
85
+ return R({
85
86
  /** 初始化数据 */
86
87
  initData: (t, l) => {
87
88
  console.log("initData", t, l), t = V(t) || [], t.length === 0 && t.push({}), l = [...l];
@@ -89,27 +90,30 @@ const W = { key: 0 }, X = {
89
90
  if (!l.some(
90
91
  (r) => r.prop === e
91
92
  )) {
92
- const r = Date.now() + e, a = e.split(R);
93
+ const r = Date.now() + e, a = e.split(M);
93
94
  if (a.length !== 2) {
94
95
  console.log("keySplit 失败", e);
95
96
  continue;
96
97
  }
97
- const n = Number(a[1]);
98
- l[n] = {
99
- prop: r,
98
+ const d = Number(a[1]);
99
+ l[d] = {
100
+ prop: e,
101
+ isEditHeader: !0,
100
102
  label: a[0],
101
103
  key: r,
102
- isAdd: !0
104
+ isAdd: !0,
105
+ maxlength: 15,
106
+ headerMaxlength: 15
103
107
  };
104
108
  }
105
- d.value = t, o.value = l;
109
+ n.value = t, i.value = l;
106
110
  },
107
111
  /** 获取数据 */
108
112
  getData: async () => {
109
- await x.value.validate();
110
- for (const l in o.value) {
111
- const e = o.value[l];
112
- for (const r of o.value)
113
+ await b.value.validate();
114
+ for (const l in i.value) {
115
+ const e = i.value[l];
116
+ for (const r of i.value)
113
117
  if (e.prop !== r.prop && e.label === r.label) {
114
118
  _({
115
119
  message: "所有列的表头不可重复",
@@ -118,48 +122,48 @@ const W = { key: 0 }, X = {
118
122
  return;
119
123
  }
120
124
  }
121
- const t = V(d.value);
125
+ const t = V(n.value);
122
126
  for (const l in t) {
123
127
  const e = t[l];
124
- for (const r in o.value) {
125
- const a = o.value[r];
128
+ for (const r in i.value) {
129
+ const a = i.value[r];
126
130
  if (a.isSameData && l !== "0" && (e[a.prop] = t[0][a.prop]), a.varidate && !a.varidate(e[a.prop]))
127
131
  return;
128
132
  if (a.isAdd) {
129
- const n = a.label + R + r;
130
- e[n] = e[a.prop], delete e[a.prop];
133
+ const d = a.label + M + r;
134
+ e[d] = e[a.prop], delete e[a.prop];
131
135
  }
132
136
  a.formatter && (e[a.prop] = a.formatter(e));
133
137
  }
134
138
  }
135
- return console.log("DiyDataTable 获取数据", t, o.value), {
139
+ return console.log("DiyDataTable 获取数据", t, i.value), {
136
140
  data: t,
137
- columns: o.value
141
+ columns: i.value
138
142
  };
139
143
  },
140
144
  /** 更新列配置数据 */
141
145
  updateColumn: (t, l) => {
142
- const e = o.value[t].prop;
143
- if (o.value[t] = l, e !== l.prop)
144
- for (const r of d.value)
146
+ const e = i.value[t].prop;
147
+ if (i.value[t] = l, e !== l.prop)
148
+ for (const r of n.value)
145
149
  r[l.prop] = r[e], delete r[e];
146
150
  }
147
- }), (t, l) => (s(), h(i(j), {
151
+ }), (t, l) => (s(), c(o(j), {
148
152
  class: "diy-data-table",
149
- model: f.rawData,
153
+ model: u.rawData,
150
154
  ref_key: "formRef",
151
- ref: x
155
+ ref: b
152
156
  }, {
153
157
  default: p(() => [
154
- g(i(K), { data: d.value }, {
158
+ g(o(K), { data: n.value }, {
155
159
  default: p(() => [
156
- g(i(k), {
160
+ g(o(k), {
157
161
  type: "index",
158
162
  label: "序号",
159
163
  width: "132",
160
164
  fixed: "left"
161
165
  }),
162
- (s(!0), u(Z, null, H(o.value, (e, r) => (s(), h(i(k), {
166
+ (s(!0), f(N, null, Z(i.value, (e, r) => (s(), c(o(k), {
163
167
  key: e.key || r,
164
168
  prop: e.prop,
165
169
  label: e.label,
@@ -167,16 +171,13 @@ const W = { key: 0 }, X = {
167
171
  fixed: e.fixed
168
172
  }, {
169
173
  header: p(() => [
170
- t.isEdit ? e.isEditHeader ? (s(), u("div", {
171
- key: 2,
172
- class: E({ "is-required-label": e.required })
173
- }, m(e.label), 3)) : (s(), u("div", X, [
174
- g(i(C), {
174
+ t.isEdit ? e.isEditHeader ? (s(), f("div", W, [
175
+ g(o(C), {
175
176
  prop: `columns.${r}`,
176
- rules: I(r)
177
+ rules: q(r)
177
178
  }, {
178
179
  default: p(() => [
179
- g(i(L), {
180
+ g(o(T), {
180
181
  modelValue: e.label,
181
182
  "onUpdate:modelValue": (a) => e.label = a,
182
183
  maxlength: e.headerMaxlength || 20,
@@ -185,31 +186,35 @@ const W = { key: 0 }, X = {
185
186
  ]),
186
187
  _: 2
187
188
  }, 1032, ["prop", "rules"]),
188
- e.isAdd ? (s(), u("i", {
189
+ e.isAdd ? (s(), f("i", {
189
190
  key: 0,
190
191
  class: "iconfont icon-close",
191
- onClick: (a) => U(r, e)
192
- }, null, 8, Y)) : y("", !0)
193
- ])) : (s(), u("div", W, m(e.label), 1))
192
+ onClick: (a) => A(r, e)
193
+ }, null, 8, Y)) : x("", !0)
194
+ ])) : (s(), f("div", {
195
+ key: 2,
196
+ class: D({ "is-required-label": e.required })
197
+ }, m(e.label), 3)) : (s(), f("div", Q, m(e.label), 1))
194
198
  ]),
195
199
  default: p((a) => [
196
- c.isEdit && (!e.isSameData || a.$index === 0) ? (s(), h(i(C), {
200
+ h.isEdit && (!e.isSameData || a.$index === 0) && e.type !== o(y).TEXT ? (s(), c(o(C), {
197
201
  key: 0,
198
202
  prop: `${a.$index}.${e.prop}`,
199
- rules: q(e),
200
- class: E(["col-edit-container", { "close-padding": e.isAdd }])
203
+ rules: I(e),
204
+ class: D(["col-edit-container", { "close-padding": e.isAdd }])
201
205
  }, {
202
206
  default: p(() => [
203
- e.type === i(b).FORMAT && e.formatter ? (s(), u("div", ee, m(e.formatter(a.row)), 1)) : e.type === i(b).AUTOCOMPLETE ? (s(), h(i(G), {
207
+ e.type === o(y).FORMAT && e.formatter ? (s(), f("div", ee, m(e.formatter(a.row)), 1)) : e.type === o(y).AUTOCOMPLETE ? (s(), c(o(P), {
204
208
  key: 1,
205
209
  modelValue: a.row[e.prop],
206
- "onUpdate:modelValue": (n) => a.row[e.prop] = n,
210
+ "onUpdate:modelValue": (d) => a.row[e.prop] = d,
207
211
  placeholder: e.placeholder || "请输入",
208
- "fetch-suggestions": (n, O) => S(n, O, e)
209
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions"])) : (s(), h(i(L), {
212
+ "fetch-suggestions": (d, O) => S(d, O, e),
213
+ maxlength: e.maxlength || 20
214
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : (s(), c(o(T), {
210
215
  key: 2,
211
216
  modelValue: a.row[e.prop],
212
- "onUpdate:modelValue": (n) => a.row[e.prop] = n,
217
+ "onUpdate:modelValue": (d) => a.row[e.prop] = d,
213
218
  placeholder: e.placeholder || "请输入",
214
219
  formatter: e.formatter,
215
220
  parser: e.parser,
@@ -217,21 +222,21 @@ const W = { key: 0 }, X = {
217
222
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "formatter", "parser", "maxlength"]))
218
223
  ]),
219
224
  _: 2
220
- }, 1032, ["prop", "rules", "class"])) : (s(), u("div", te, m((e.isSameData ? d.value[0][e.prop] : a.row[e.prop]) || i(P)), 1))
225
+ }, 1032, ["prop", "rules", "class"])) : (s(), f("div", te, m((e.isSameData ? n.value[0][e.prop] : a.row[e.prop]) || o(X)), 1))
221
226
  ]),
222
227
  _: 2
223
228
  }, 1032, ["prop", "label", "width", "fixed"]))), 128)),
224
- c.isEdit ? (s(), h(i(k), {
229
+ h.isEdit ? (s(), c(o(k), {
225
230
  key: 0,
226
231
  width: "150",
227
232
  fixed: "right"
228
233
  }, {
229
234
  header: p(() => [
230
235
  v("div", ae, [
231
- g(i(T), {
236
+ g(o(L), {
232
237
  type: "primary",
233
238
  link: "",
234
- onClick: A
239
+ onClick: $
235
240
  }, {
236
241
  default: p(() => l[0] || (l[0] = [
237
242
  v("i", { class: "iconfont icon-Frame1" }, null, -1),
@@ -239,10 +244,10 @@ const W = { key: 0 }, X = {
239
244
  ])),
240
245
  _: 1
241
246
  }),
242
- g(i(T), {
247
+ g(o(L), {
243
248
  type: "primary",
244
249
  link: "",
245
- onClick: M
250
+ onClick: U
246
251
  }, {
247
252
  default: p(() => l[1] || (l[1] = [
248
253
  v("i", { class: "iconfont icon-Frame-11" }, null, -1),
@@ -254,15 +259,15 @@ const W = { key: 0 }, X = {
254
259
  ]),
255
260
  default: p(({ $index: e }) => [
256
261
  v("div", le, [
257
- d.value.length > 1 ? (s(), u("i", {
262
+ n.value.length > 1 ? (s(), f("i", {
258
263
  key: 0,
259
264
  class: "iconfont icon-close",
260
265
  onClick: (r) => F(e)
261
- }, null, 8, re)) : y("", !0)
266
+ }, null, 8, re)) : x("", !0)
262
267
  ])
263
268
  ]),
264
269
  _: 1
265
- })) : y("", !0)
270
+ })) : x("", !0)
266
271
  ]),
267
272
  _: 1
268
273
  }, 8, ["data"])
@@ -270,8 +275,8 @@ const W = { key: 0 }, X = {
270
275
  _: 1
271
276
  }, 8, ["model"]));
272
277
  }
273
- }), ie = /* @__PURE__ */ J(oe, [["__scopeId", "data-v-5b738ba1"]]), fe = Q(ie);
278
+ }), ie = /* @__PURE__ */ G(oe, [["__scopeId", "data-v-345db26b"]]), fe = J(ie);
274
279
  export {
275
- b as D,
280
+ y as D,
276
281
  fe as Z
277
282
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as o, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as d, unref as m } from "vue";
2
- import { D as f } from "./DatePicker-AcRbvS-8.js";
3
- import { _ } from "./Button-C1Q6WvkI.js";
4
- import { w as u } from "./utils-B1dH8Kx6.js";
2
+ import { D as f } from "./DatePicker-CWQoV03Q.js";
3
+ import { _ } from "./Button-DBbUF88w.js";
4
+ import { w as u } from "./utils-DZ8-2Fg2.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
6
6
  key: 0,
7
7
  class: "info-pair--title--tip"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as f, openBlock as i, createElementBlock as o, toDisplayString as n, createCommentVNode as s, createElementVNode as t, createVNode as p, unref as m, withCtx as _, createTextVNode as u } from "vue";
2
- import { D as w } from "./DatePicker-AcRbvS-8.js";
3
- import { l as y } from "./vendor-Cu-cEPs_.js";
4
- import { _ as h } from "./Button-C1Q6WvkI.js";
5
- import { w as v } from "./utils-B1dH8Kx6.js";
2
+ import { D as w } from "./DatePicker-CWQoV03Q.js";
3
+ import { m as y } from "./vendor-BY-fHNA3.js";
4
+ import { _ as h } from "./Button-DBbUF88w.js";
5
+ import { w as v } from "./utils-DZ8-2Fg2.js";
6
6
  const k = { class: "file_wrapper" }, x = {
7
7
  key: 0,
8
8
  class: "header"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, onBeforeMount as B, useSlots as C, ref as k, computed as f, onMounted as L, onActivated as S, onUnmounted as j, onDeactivated as M, provide as p, watch as z, openBlock as P, createElementBlock as R, normalizeStyle as Z, renderSlot as D } from "vue";
2
- import { w as H } from "./utils-B1dH8Kx6.js";
2
+ import { w as H } from "./utils-DZ8-2Fg2.js";
3
3
  const N = /* @__PURE__ */ $({
4
4
  name: "zh-grid",
5
5
  __name: "Grid",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as i, createElementBlock as s, createElementVNode as a, createTextVNode as r, toDisplayString as t, createCommentVNode as p, normalizeClass as c, renderSlot as m, unref as f } from "vue";
2
- import { D as d } from "./DatePicker-AcRbvS-8.js";
3
- import { _ } from "./Button-C1Q6WvkI.js";
4
- import { w as u } from "./utils-B1dH8Kx6.js";
2
+ import { D as d } from "./DatePicker-CWQoV03Q.js";
3
+ import { _ } from "./Button-DBbUF88w.js";
4
+ import { w as u } from "./utils-DZ8-2Fg2.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
6
6
  key: 0,
7
7
  class: "info-pair--title--tip"