zhihao-ui 1.3.57 → 1.3.58-alpha.2

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 (56) hide show
  1. package/dist/es/BaseInfo-CD2tAAod.js +51 -0
  2. package/dist/es/BaseItem-DcezA7sa.js +127 -0
  3. package/dist/es/{Button-DlEYWX3X.js → Button-B2Z_WKdq.js} +2 -2
  4. package/dist/es/CascaderLoadMore-Bt031LmH.js +277 -0
  5. package/dist/es/{DatePicker-CymT2gjS.js → DatePicker-CP0KSqBs.js} +3 -3
  6. package/dist/es/{DetailHeader-DlAjiYhV.js → DetailHeader-DoaD0eKO.js} +3 -3
  7. package/dist/es/{DetailSubTitle-OH6TMyKI.js → DetailSubTitle-oiPuqJg6.js} +2 -2
  8. package/dist/es/{Dialog-B_Psb_wh.js → Dialog-BynyEy56.js} +3 -3
  9. package/dist/es/{DiyDataTable-DRuRQedj.js → DiyDataTable-Bwk_tQDp.js} +9 -7
  10. package/dist/es/{EditInfoPair-B3TKNnnl.js → EditInfoPair-BRkRrmJI.js} +3 -3
  11. package/dist/es/{FileWrapper-bVyPV48o.js → FileWrapper-Bw-FhIY5.js} +4 -4
  12. package/dist/es/{Grid-CLU3cdzX.js → Grid-Cndtkriq.js} +35 -34
  13. package/dist/es/{InfoPair-nPqi45Ys.js → InfoPair-CIuXeXV1.js} +3 -3
  14. package/dist/es/{Input-DjQtffZg.js → Input-EcnKRK5Q.js} +3 -3
  15. package/dist/es/{Loading-CDxuHkdt.js → Loading-Mq3IiaFA.js} +2 -2
  16. package/dist/es/Map-CxCxmeGO.js +2560 -0
  17. package/dist/es/{MessageBox-kkpNeAii.js → MessageBox-wQY1ft63.js} +2 -2
  18. package/dist/es/{MoneyInput-ZLGQmpLk.js → MoneyInput-DZuOujIc.js} +5 -5
  19. package/dist/es/{PageHeadPanel-DsEeXTgj.js → PageHeadPanel-B2Uqf3zz.js} +2 -2
  20. package/dist/es/{Table-gFH87j_O.js → Table-NT97DzT0.js} +155 -155
  21. package/dist/es/{ToolTips-BRjrysPf.js → ToolTips-CVkx0nFU.js} +3 -3
  22. package/dist/es/index.js +60 -60
  23. package/dist/es/{utils-B-n1yx0L.js → utils-vqG84sMo.js} +1 -1
  24. package/dist/es/{vendor-DkGhDRdQ.js → vendor-MMWA2y7U.js} +29 -28
  25. package/dist/index.css +1 -1
  26. package/dist/types/components/BaseInfo/BaseInfo.vue.d.ts +2 -2
  27. package/dist/types/components/BaseInfo/index.d.ts +33 -33
  28. package/dist/types/components/BaseItem/BaseItem.vue.d.ts +1 -1
  29. package/dist/types/components/BaseItem/index.d.ts +24 -24
  30. package/dist/types/components/DetailSubTitle/index.d.ts +1 -0
  31. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +32 -6
  32. package/dist/types/components/DiyDataTable/index.d.ts +96 -18
  33. package/dist/types/components/DiyDataTable/type.d.ts +1 -1
  34. package/dist/types/components/Grid/Grid.vue.d.ts +1 -1
  35. package/dist/types/components/Grid/index.d.ts +15 -15
  36. package/dist/types/components/Input/Input.vue.d.ts +6 -6
  37. package/dist/types/components/Input/index.d.ts +9 -9
  38. package/dist/types/components/Map/Map.vue.d.ts +9 -1
  39. package/dist/types/components/Map/function/drawPolygon.d.ts +1 -1
  40. package/dist/types/components/Map/function/event.d.ts +2 -1
  41. package/dist/types/components/Map/function/map.d.ts +2 -0
  42. package/dist/types/components/Map/function/renderPolygon.d.ts +24 -0
  43. package/dist/types/components/Map/function/ship/index.d.ts +1 -1
  44. package/dist/types/components/Map/function/ship/style.d.ts +5 -3
  45. package/dist/types/components/Map/index.d.ts +27 -3
  46. package/dist/types/components/Map/meta/index.d.ts +2 -1
  47. package/dist/types/components/MoneyInput/MoneyInput.vue.d.ts +4 -4
  48. package/dist/types/components/MoneyInput/index.d.ts +6 -6
  49. package/dist/types/components/Table/types.d.ts +2 -2
  50. package/dist/umd/index.css +1 -1
  51. package/dist/umd/index.umd.cjs +57 -58
  52. package/package.json +1 -1
  53. package/dist/es/BaseInfo-ehtLJvVF.js +0 -53
  54. package/dist/es/BaseItem-6LMSv4Je.js +0 -130
  55. package/dist/es/CascaderLoadMore-DKTvm00E.js +0 -287
  56. package/dist/es/Map-CmcmvvxF.js +0 -2363
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, onBeforeMount as H, useSlots as U, ref as d, computed as D, onMounted as P, onActivated as N, onUnmounted as T, onDeactivated as O, provide as p, watch as C, inject as m, onBeforeUpdate as q, onUpdated as F, openBlock as k, createElementBlock as M, normalizeStyle as Z, renderSlot as E, useAttrs as J, reactive as W, watchEffect as K, withDirectives as Q, vShow as V } from "vue";
2
- import { g as X } from "./Table-gFH87j_O.js";
3
- import { w as A } from "./utils-B-n1yx0L.js";
1
+ import { defineComponent as L, onBeforeMount as H, useSlots as U, ref as d, computed as D, onMounted as P, onActivated as N, onUnmounted as T, onDeactivated as O, provide as p, watch as _, inject as m, onBeforeUpdate as q, onUpdated as F, openBlock as k, createElementBlock as M, normalizeStyle as Z, renderSlot as E, useAttrs as J, reactive as W, watchEffect as K, withDirectives as Q, vShow as V } from "vue";
2
+ import { g as X } from "./Table-NT97DzT0.js";
3
+ import { w as A } from "./utils-vqG84sMo.js";
4
4
  const Y = /* @__PURE__ */ L({
5
5
  name: "Grid",
6
6
  __name: "Grid",
@@ -22,21 +22,21 @@ const Y = /* @__PURE__ */ L({
22
22
  window.removeEventListener("resize", f);
23
23
  });
24
24
  const f = (n) => {
25
- let r = n.target.innerWidth;
26
- switch (!!r) {
27
- case r < 768:
25
+ let s = n.target.innerWidth;
26
+ switch (!!s) {
27
+ case s < 768:
28
28
  e.value = "xs";
29
29
  break;
30
- case (r >= 768 && r < 992):
30
+ case (s >= 768 && s < 992):
31
31
  e.value = "sm";
32
32
  break;
33
- case (r >= 992 && r < 1200):
33
+ case (s >= 992 && s < 1200):
34
34
  e.value = "md";
35
35
  break;
36
- case (r >= 1200 && r < 1920):
36
+ case (s >= 1200 && s < 1920):
37
37
  e.value = "lg";
38
38
  break;
39
- case r >= 1920:
39
+ case s >= 1920:
40
40
  e.value = "xl";
41
41
  break;
42
42
  }
@@ -49,14 +49,14 @@ const Y = /* @__PURE__ */ L({
49
49
  const v = D(() => typeof a.cols == "object" ? a.cols[e.value] ?? a.cols : a.cols);
50
50
  p("cols", v);
51
51
  const c = U().default(), G = () => {
52
- var y, w, t, s;
53
- let n = [], r = null;
52
+ var y, w, t, r;
53
+ let n = [], s = null;
54
54
  c.forEach((i) => {
55
55
  var h;
56
- typeof i.type == "object" && i.type.name === "GridItem" && ((h = i.props) == null ? void 0 : h.suffix) !== void 0 && (r = i), typeof i.type == "symbol" && Array.isArray(i.children) && n.push(...i.children);
56
+ typeof i.type == "object" && i.type.name === "GridItem" && ((h = i.props) == null ? void 0 : h.suffix) !== void 0 && (s = i), typeof i.type == "symbol" && Array.isArray(i.children) && n.push(...i.children);
57
57
  });
58
58
  let I = 0;
59
- r && (I = (((y = r.props[e.value]) == null ? void 0 : y.span) ?? ((w = r.props) == null ? void 0 : w.span) ?? 1) + (((t = r.props[e.value]) == null ? void 0 : t.offset) ?? ((s = r.props) == null ? void 0 : s.offset) ?? 0));
59
+ s && (I = (((y = s.props[e.value]) == null ? void 0 : y.span) ?? ((w = s.props) == null ? void 0 : w.span) ?? 1) + (((t = s.props[e.value]) == null ? void 0 : t.offset) ?? ((r = s.props) == null ? void 0 : r.offset) ?? 0));
60
60
  try {
61
61
  let i = !1;
62
62
  n.reduce((h = 0, b, j) => {
@@ -68,21 +68,21 @@ const Y = /* @__PURE__ */ L({
68
68
  } catch {
69
69
  }
70
70
  };
71
- C(
71
+ _(
72
72
  () => e.value,
73
73
  () => {
74
74
  a.collapsed && G();
75
75
  }
76
- ), C(
76
+ ), _(
77
77
  () => a.collapsed,
78
78
  (n) => {
79
79
  if (n) return G();
80
80
  o.value = -1;
81
81
  }
82
82
  );
83
- const _ = D(() => typeof a.gap == "number" ? `${a.gap}px` : Array.isArray(a.gap) ? `${a.gap[1]}px ${a.gap[0]}px` : "unset"), $ = D(() => ({
83
+ const C = D(() => typeof a.gap == "number" ? `${a.gap}px` : Array.isArray(a.gap) ? `${a.gap[1]}px ${a.gap[0]}px` : "unset"), $ = D(() => ({
84
84
  display: "grid",
85
- gridGap: _.value,
85
+ gridGap: C.value,
86
86
  gridTemplateColumns: `repeat(${v.value}, minmax(0, 1fr))`
87
87
  })), x = m("clearGridItemData", () => {
88
88
  }), g = d(!1);
@@ -92,7 +92,7 @@ const Y = /* @__PURE__ */ L({
92
92
  g.value = !1, x();
93
93
  }), F(() => {
94
94
  g.value = !0;
95
- }), p("isRegistrationComplete", g), u({ breakPoint: e }), (n, r) => (k(), M("div", {
95
+ }), p("isRegistrationComplete", g), u({ breakPoint: e }), (n, s) => (k(), M("div", {
96
96
  style: Z($.value)
97
97
  }, [
98
98
  E(n.$slots, "default")
@@ -114,7 +114,7 @@ const Y = /* @__PURE__ */ L({
114
114
  },
115
115
  setup(l) {
116
116
  const u = l, a = J(), f = d(!0), e = m("breakPoint", d("xl")), o = m("shouldHiddenIndex", d(-1));
117
- C(
117
+ _(
118
118
  () => [o.value, e.value],
119
119
  (t) => {
120
120
  a.index && (f.value = !(t[0] !== -1 && parseInt(a.index) >= Number(t[0])));
@@ -123,24 +123,24 @@ const Y = /* @__PURE__ */ L({
123
123
  );
124
124
  const v = m("gap", 0), c = m("cols", d(4)), G = D(() => {
125
125
  var i, h;
126
- let t = ((i = u[e.value]) == null ? void 0 : i.span) ?? u.span, s = ((h = u[e.value]) == null ? void 0 : h.offset) ?? u.offset;
126
+ let t = ((i = u[e.value]) == null ? void 0 : i.span) ?? u.span, r = ((h = u[e.value]) == null ? void 0 : h.offset) ?? u.offset;
127
127
  return u.suffix ? {
128
- gridColumnStart: c.value - t - s + 1,
129
- gridColumnEnd: `span ${t + s}`,
130
- marginLeft: s !== 0 ? `calc(((100% + ${v}px) / ${t + s}) * ${s})` : "unset"
128
+ gridColumnStart: c.value - t - r + 1,
129
+ gridColumnEnd: `span ${t + r}`,
130
+ marginLeft: r !== 0 ? `calc(((100% + ${v}px) / ${t + r}) * ${r})` : "unset"
131
131
  } : {
132
- gridColumn: `span ${t + s > c.value ? c.value : t + s}/span ${t + s > c.value ? c.value : t + s}`,
133
- marginLeft: s !== 0 ? `calc(((100% + ${v}px) / ${t + s}) * ${s})` : "unset"
132
+ gridColumn: `span ${t + r > c.value ? c.value : t + r}/span ${t + r > c.value ? c.value : t + r}`,
133
+ marginLeft: r !== 0 ? `calc(((100% + ${v}px) / ${t + r}) * ${r})` : "unset"
134
134
  };
135
- }), _ = m("gridItemData", W({})), $ = m("isMultiGrid", d(!1)), x = d(null), g = d(0), n = d(0), r = m("registerGridItem", null), I = m(
135
+ }), C = m("gridItemData", W({})), $ = m("isMultiGrid", d(!1)), x = d(null), g = d(0), n = d(0), s = m("registerGridItem", null), I = m(
136
136
  "getColumnData",
137
137
  null
138
138
  ), y = m("isRegistrationComplete", d(!1)), w = () => {
139
- if (x.value && r) {
139
+ if (x.value && s) {
140
140
  const t = x.value.parentElement;
141
141
  if (t) {
142
- const s = x.value.offsetLeft, i = t.offsetWidth / c.value;
143
- n.value = Math.floor(s / i) + 1, i && r(n.value, u.label || "");
142
+ const r = x.value.offsetLeft, i = t.offsetWidth / c.value;
143
+ n.value = Math.floor(r / i) + 1, i && s(n.value, u.label || "");
144
144
  }
145
145
  }
146
146
  };
@@ -149,12 +149,12 @@ const Y = /* @__PURE__ */ L({
149
149
  const t = I(n.value);
150
150
  g.value = t.maxWidth || 0;
151
151
  }
152
- }), C(_, () => {
152
+ }), _(C, () => {
153
153
  if (I) {
154
154
  const t = I(n.value);
155
155
  t.maxWidth !== g.value && (g.value = t.maxWidth);
156
156
  }
157
- }), (t, s) => Q((k(), M("div", {
157
+ }), (t, r) => Q((k(), M("div", {
158
158
  style: Z(G.value),
159
159
  ref_key: "gridItemRef",
160
160
  ref: x
@@ -189,7 +189,7 @@ const Y = /* @__PURE__ */ L({
189
189
  l = W({});
190
190
  }
191
191
  };
192
- }, ae = { class: "multi-grid" }, re = /* @__PURE__ */ L({
192
+ }, ae = { class: "multi-grid" }, se = /* @__PURE__ */ L({
193
193
  name: "MultiGrid",
194
194
  __name: "MultiGrid",
195
195
  setup(l) {
@@ -198,9 +198,10 @@ const Y = /* @__PURE__ */ L({
198
198
  E(o.$slots, "default")
199
199
  ]));
200
200
  }
201
- }), ne = A(Y), oe = A(ee), de = A(re);
201
+ }), ne = A(Y), oe = A(ee), de = A(se);
202
202
  export {
203
203
  oe as Z,
204
+ Y as _,
204
205
  ne as a,
205
206
  de as b
206
207
  };
@@ -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 "./BaseItem-6LMSv4Je.js";
3
- import { _ } from "./Button-DlEYWX3X.js";
4
- import { w as u } from "./utils-B-n1yx0L.js";
2
+ import { D as d } from "./BaseItem-DcezA7sa.js";
3
+ import { _ } from "./Button-B2Z_WKdq.js";
4
+ import { w as u } from "./utils-vqG84sMo.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"
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, useAttrs as v, useModel as E, openBlock as I, createElementBlock as z, normalizeClass as S, createVNode as $, unref as N, mergeProps as x, createSlots as _, renderList as y, withCtx as B, renderSlot as C, normalizeProps as M, guardReactiveProps as P, mergeModels as j, normalizeStyle as A } from "vue";
2
- import { s as U } from "./vendor-DkGhDRdQ.js";
3
- import { _ as Z } from "./Button-DlEYWX3X.js";
4
- import { w as k } from "./utils-B-n1yx0L.js";
2
+ import { s as U } from "./vendor-MMWA2y7U.js";
3
+ import { _ as Z } from "./Button-B2Z_WKdq.js";
4
+ import { w as k } from "./utils-vqG84sMo.js";
5
5
  const H = /* @__PURE__ */ V({
6
6
  name: "zh-input",
7
7
  __name: "Input",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, openBlock as s, createElementBlock as a, createElementVNode as o } from "vue";
2
- import { _ as e } from "./Button-DlEYWX3X.js";
3
- import { w as i } from "./utils-B-n1yx0L.js";
2
+ import { _ as e } from "./Button-B2Z_WKdq.js";
3
+ import { w as i } from "./utils-vqG84sMo.js";
4
4
  const d = { class: "loading-box" }, r = /* @__PURE__ */ t({
5
5
  name: "zh-loading",
6
6
  __name: "Loading",