zhihao-ui 1.2.33 → 1.2.35

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 (36) hide show
  1. package/dist/es/{BaseItem-Dok2Aus9.js → BaseItem-DwoIxH38.js} +1 -1
  2. package/dist/es/{DatePicker-DJuI_Emt.js → DatePicker-BkfvEDok.js} +1 -1
  3. package/dist/es/{DetailHeader-DKjKORoT.js → DetailHeader-CmvLT5jU.js} +1 -1
  4. package/dist/es/{DetailSubTitle-zqhDyrw7.js → DetailSubTitle-BXjqx7Gl.js} +1 -1
  5. package/dist/es/{DiyDataTable-0J0XHWOg.js → DiyDataTable-02Fvx4gj.js} +1 -1
  6. package/dist/es/{EditInfoPair-BCrdjdwr.js → EditInfoPair-2lOiJK1x.js} +1 -1
  7. package/dist/es/{FileWrapper-DwI3Gpd7.js → FileWrapper-oSb83fz-.js} +1 -1
  8. package/dist/es/{Grid-BEBnaQkh.js → Grid-CHKAGBr9.js} +36 -37
  9. package/dist/es/{InfoPair-8ibzEbk8.js → InfoPair-CDbyplp2.js} +1 -1
  10. package/dist/es/{Map-zDBSTbli.js → Map-Cgw7AB3i.js} +289 -271
  11. package/dist/es/{MoneyInput-BUtchReq.js → MoneyInput-BGmF3L2m.js} +17 -17
  12. package/dist/es/{Table-Ce83Xr3L.js → Table-D8EshRWb.js} +3 -3
  13. package/dist/es/ToolTips-Beib4mGU.js +31 -0
  14. package/dist/es/index.js +60 -57
  15. package/dist/index.css +1 -1
  16. package/dist/types/components/Button/types.d.ts +1 -7
  17. package/dist/types/components/Grid/Grid.vue.d.ts +0 -3
  18. package/dist/types/components/Grid/index.d.ts +0 -15
  19. package/dist/types/components/Grid/types.d.ts +0 -1
  20. package/dist/types/components/Map/Map.vue.d.ts +2 -0
  21. package/dist/types/components/Map/components/copyright.vue.d.ts +30 -1
  22. package/dist/types/components/Map/index.d.ts +10 -0
  23. package/dist/types/components/Map/types.d.ts +4 -0
  24. package/dist/types/components/MoneyInput/MoneyInput.vue.d.ts +2 -6
  25. package/dist/types/components/MoneyInput/index.d.ts +3 -13
  26. package/dist/types/components/Table/types.d.ts +1 -0
  27. package/dist/types/components/ToolTips/ToolTips.vue.d.ts +28 -19
  28. package/dist/types/components/ToolTips/index.d.ts +21 -21
  29. package/dist/umd/index.css +1 -1
  30. package/dist/umd/index.umd.cjs +19 -19
  31. package/package.json +45 -45
  32. package/dist/es/ToolTips-D7B0F-bQ.js +0 -37
  33. package/dist/types/components/Map/components/fullscreen.vue.d.ts +0 -14
  34. package/dist/types/components/Table/Table.vue.d.ts +0 -986
  35. package/dist/types/components/Table/index.d.ts +0 -2948
  36. package/dist/types/components/utils/color.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, useSlots as T, inject as z, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as i, withCtx as d, createElementVNode as h, normalizeClass as m, normalizeStyle as W, resolveDynamicComponent as k, createElementBlock as o, toDisplayString as s, renderSlot as S, Fragment as v, withModifiers as V, createTextVNode as f, createVNode as p, createCommentVNode as O } from "vue";
2
2
  import { E as D, a as Z, d as g } from "./vendor-Bonn9k5m.js";
3
- import { Z as G } from "./Grid-BEBnaQkh.js";
3
+ import { Z as G } from "./Grid-CHKAGBr9.js";
4
4
  import { w as U } from "./utils-hD_p7bGY.js";
5
5
  const b = "--", X = "YYYY-MM-DDTHH:mm:ss", x = "YYYY-MM-DDT23:59:59", ee = "YYYY-MM-DD", le = "https://static.zhihaoscm.cn/", _ = { key: 1 }, H = {
6
6
  key: 1,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, openBlock as u, createElementBlock as h, normalizeClass as d, createVNode as g, unref as _, mergeProps as A } from "vue";
2
2
  import { h as D, e as E } from "./vendor-Bonn9k5m.js";
3
- import { D as p, a as M, L as f, b as T } from "./BaseItem-Dok2Aus9.js";
3
+ import { D as p, a as M, L as f, b as T } from "./BaseItem-DwoIxH38.js";
4
4
  import { w as b } from "./utils-hD_p7bGY.js";
5
5
  const i = (e, t = M) => e ? D(e).format(t).replace("Invalid date", p) : p, O = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
6
6
  function P(e) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as _, openBlock as a, createElementBlock as o, createElementVNode as t, renderSlot as l, toDisplayString as i, Fragment as m, renderList as u, unref as n, normalizeClass as D, createCommentVNode as g } from "vue";
2
- import { D as v } from "./BaseItem-Dok2Aus9.js";
2
+ import { D as v } from "./BaseItem-DwoIxH38.js";
3
3
  import { _ as k } from "./Button-BbUxF68h.js";
4
4
  import { w as y } from "./utils-hD_p7bGY.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 = {
@@ -1,5 +1,5 @@
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 "./BaseItem-Dok2Aus9.js";
2
+ import { D as u } from "./BaseItem-DwoIxH38.js";
3
3
  import { w as f } from "./utils-hD_p7bGY.js";
4
4
  const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Z, useModel as z, ref as D, openBlock as n, createBlock as v, unref as s, withCtx as p, createVNode as g, createElementBlock as h, Fragment as C, renderList as P, normalizeClass as V, toDisplayString as c, renderSlot as R, createTextVNode as x, createCommentVNode as k, createElementVNode as w, mergeModels as X } from "vue";
2
- import { D as $ } from "./BaseItem-Dok2Aus9.js";
2
+ import { D as $ } from "./BaseItem-DwoIxH38.js";
3
3
  import { g as b, i as A, j, k as K, l as E, m as T, n as G, o as F, b as M } from "./vendor-Bonn9k5m.js";
4
4
  import { _ as J } from "./Button-BbUxF68h.js";
5
5
  import { w as Q } from "./utils-hD_p7bGY.js";
@@ -1,5 +1,5 @@
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 "./BaseItem-Dok2Aus9.js";
2
+ import { D as f } from "./BaseItem-DwoIxH38.js";
3
3
  import { _ } from "./Button-BbUxF68h.js";
4
4
  import { w as u } from "./utils-hD_p7bGY.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
@@ -1,5 +1,5 @@
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 "./BaseItem-Dok2Aus9.js";
2
+ import { D as w } from "./BaseItem-DwoIxH38.js";
3
3
  import { E as y } from "./vendor-Bonn9k5m.js";
4
4
  import { _ as h } from "./Button-BbUxF68h.js";
5
5
  import { w as v } from "./utils-hD_p7bGY.js";
@@ -1,5 +1,5 @@
1
- import { defineComponent as W, onBeforeMount as Z, useSlots as j, ref as u, computed as I, onMounted as S, onActivated as H, onUnmounted as U, onDeactivated as N, provide as g, watch as $, onBeforeUpdate as T, onUpdated as O, openBlock as L, createElementBlock as k, normalizeStyle as z, renderSlot as M, useAttrs as q, inject as v, watchEffect as F, withDirectives as J, vShow as K, reactive as Q } from "vue";
2
- import { g as V } from "./Table-Ce83Xr3L.js";
1
+ import { defineComponent as W, onBeforeMount as Z, useSlots as j, ref as u, computed as I, onMounted as z, onActivated as H, onUnmounted as U, onDeactivated as N, provide as g, watch as $, onBeforeUpdate as T, onUpdated as O, openBlock as L, createElementBlock as k, normalizeStyle as S, renderSlot as M, useAttrs as q, inject as v, watchEffect as F, withDirectives as J, vShow as K, reactive as Q } from "vue";
2
+ import { g as V } from "./Table-D8EshRWb.js";
3
3
  import { w as D } from "./utils-hD_p7bGY.js";
4
4
  const X = /* @__PURE__ */ W({
5
5
  name: "Grid",
@@ -8,12 +8,11 @@ const X = /* @__PURE__ */ W({
8
8
  cols: { default: () => ({ xs: 1, sm: 2, md: 2, lg: 4, xl: 4 }) },
9
9
  collapsed: { type: Boolean, default: !1 },
10
10
  collapsedRows: { default: 1 },
11
- gap: { default: 16 },
12
- enableSameLabelWidthInCol: { type: Boolean, default: !0 }
11
+ gap: { default: 16 }
13
12
  },
14
- setup(i, { expose: d }) {
15
- const t = i;
16
- Z(() => t.collapsed && y()), S(() => {
13
+ setup(l, { expose: d }) {
14
+ const t = l;
15
+ Z(() => t.collapsed && y()), z(() => {
17
16
  a({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", a);
18
17
  }), H(() => {
19
18
  a({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", a);
@@ -50,19 +49,19 @@ const X = /* @__PURE__ */ W({
50
49
  const f = I(() => typeof t.cols == "object" ? t.cols[e.value] ?? t.cols : t.cols);
51
50
  g("cols", f);
52
51
  const m = j().default(), y = () => {
53
- var b, G, s, l;
52
+ var G, b, s, i;
54
53
  let o = [], r = null;
55
54
  m.forEach((n) => {
56
55
  var p;
57
56
  typeof n.type == "object" && n.type.name === "GridItem" && ((p = n.props) == null ? void 0 : p.suffix) !== void 0 && (r = n), typeof n.type == "symbol" && Array.isArray(n.children) && o.push(...n.children);
58
57
  });
59
58
  let w = 0;
60
- r && (w = (((b = r.props[e.value]) == null ? void 0 : b.span) ?? ((G = r.props) == null ? void 0 : G.span) ?? 1) + (((s = r.props[e.value]) == null ? void 0 : s.offset) ?? ((l = r.props) == null ? void 0 : l.offset) ?? 0));
59
+ r && (w = (((G = r.props[e.value]) == null ? void 0 : G.span) ?? ((b = r.props) == null ? void 0 : b.span) ?? 1) + (((s = r.props[e.value]) == null ? void 0 : s.offset) ?? ((i = r.props) == null ? void 0 : i.offset) ?? 0));
61
60
  try {
62
61
  let n = !1;
63
62
  o.reduce((p = 0, C, P) => {
64
- var E, A, B, R;
65
- if (p += (((E = C.props[e.value]) == null ? void 0 : E.span) ?? ((A = C.props) == null ? void 0 : A.span) ?? 1) + (((B = C.props[e.value]) == null ? void 0 : B.offset) ?? ((R = C.props) == null ? void 0 : R.offset) ?? 0), Number(p) > t.collapsedRows * f.value - w)
63
+ var E, A, R, B;
64
+ if (p += (((E = C.props[e.value]) == null ? void 0 : E.span) ?? ((A = C.props) == null ? void 0 : A.span) ?? 1) + (((R = C.props[e.value]) == null ? void 0 : R.offset) ?? ((B = C.props) == null ? void 0 : B.offset) ?? 0), Number(p) > t.collapsedRows * f.value - w)
66
65
  throw c.value = P, n = !0, "find it";
67
66
  return p;
68
67
  }, 0), n || (c.value = -1);
@@ -86,14 +85,14 @@ const X = /* @__PURE__ */ W({
86
85
  gridGap: _.value,
87
86
  gridTemplateColumns: `repeat(${f.value}, minmax(0, 1fr))`
88
87
  })), x = u(!1);
89
- return S(() => {
88
+ return z(() => {
90
89
  x.value = !0;
91
90
  }), T(() => {
92
91
  x.value = !1;
93
92
  }), O(() => {
94
93
  x.value = !0;
95
94
  }), g("isRegistrationComplete", x), d({ breakPoint: e }), (o, r) => (L(), k("div", {
96
- style: z(h.value)
95
+ style: S(h.value)
97
96
  }, [
98
97
  M(o.$slots, "default")
99
98
  ], 4));
@@ -112,8 +111,8 @@ const X = /* @__PURE__ */ W({
112
111
  xl: { default: void 0 },
113
112
  label: {}
114
113
  },
115
- setup(i) {
116
- const d = i, t = q(), a = u(!0), e = v("breakPoint", u("xl")), c = v("shouldHiddenIndex", u(-1));
114
+ setup(l) {
115
+ const d = l, t = q(), a = u(!0), e = v("breakPoint", u("xl")), c = v("shouldHiddenIndex", u(-1));
117
116
  $(
118
117
  () => [c.value, e.value],
119
118
  (s) => {
@@ -123,34 +122,34 @@ const X = /* @__PURE__ */ W({
123
122
  );
124
123
  const f = v("gap", 0), m = v("cols", u(4)), y = I(() => {
125
124
  var n, p;
126
- let s = ((n = d[e.value]) == null ? void 0 : n.span) ?? d.span, l = ((p = d[e.value]) == null ? void 0 : p.offset) ?? d.offset;
125
+ let s = ((n = d[e.value]) == null ? void 0 : n.span) ?? d.span, i = ((p = d[e.value]) == null ? void 0 : p.offset) ?? d.offset;
127
126
  return d.suffix ? {
128
- gridColumnStart: m.value - s - l + 1,
129
- gridColumnEnd: `span ${s + l}`,
130
- marginLeft: l !== 0 ? `calc(((100% + ${f}px) / ${s + l}) * ${l})` : "unset"
127
+ gridColumnStart: m.value - s - i + 1,
128
+ gridColumnEnd: `span ${s + i}`,
129
+ marginLeft: i !== 0 ? `calc(((100% + ${f}px) / ${s + i}) * ${i})` : "unset"
131
130
  } : {
132
- gridColumn: `span ${s + l > m.value ? m.value : s + l}/span ${s + l > m.value ? m.value : s + l}`,
133
- marginLeft: l !== 0 ? `calc(((100% + ${f}px) / ${s + l}) * ${l})` : "unset"
131
+ gridColumn: `span ${s + i > m.value ? m.value : s + i}/span ${s + i > m.value ? m.value : s + i}`,
132
+ marginLeft: i !== 0 ? `calc(((100% + ${f}px) / ${s + i}) * ${i})` : "unset"
134
133
  };
135
134
  }), _ = v("isMultiGrid", u(!1)), h = u(null), x = u(0), o = u(0), r = v("registerGridItem", null), w = v(
136
135
  "getColumnData",
137
136
  null
138
- ), b = v("isRegistrationComplete", u(!1)), G = () => {
137
+ ), G = v("isRegistrationComplete", u(!1)), b = () => {
139
138
  if (h.value && r) {
140
139
  const s = h.value.parentElement;
141
140
  if (s) {
142
- const l = h.value.offsetLeft, n = s.offsetWidth / m.value;
143
- o.value = Math.floor(l / n) + 1, r(o.value, d.label || "");
141
+ const i = h.value.offsetLeft, n = s.offsetWidth / m.value;
142
+ o.value = Math.floor(i / n) + 1, r(o.value, d.label || "");
144
143
  }
145
144
  }
146
145
  };
147
146
  return F(() => {
148
- if (_.value && b.value && d.label && h.value && (G(), w)) {
147
+ if (_.value && G.value && d.label && h.value && (b(), w)) {
149
148
  const s = w(o.value);
150
149
  x.value = s.maxWidth || 0;
151
150
  }
152
- }), (s, l) => J((L(), k("div", {
153
- style: z(y.value),
151
+ }), (s, i) => J((L(), k("div", {
152
+ style: S(y.value),
154
153
  ref_key: "gridItemRef",
155
154
  ref: h
156
155
  }, [
@@ -163,36 +162,36 @@ const X = /* @__PURE__ */ W({
163
162
  ]);
164
163
  }
165
164
  }), ee = () => {
166
- const i = Q({});
165
+ const l = Q({});
167
166
  return {
168
- gridItemData: i,
167
+ gridItemData: l,
169
168
  registerGridItem: (a, e) => {
170
169
  var f;
171
170
  if (!e) return;
172
- i[a] || (i[a] = { labels: [], maxLength: 0, maxWidth: 0 }), (f = i[a]) == null || f.labels.push(e), i[a].maxLength = Math.max(
171
+ l[a] || (l[a] = { labels: [], maxLength: 0, maxWidth: 0 }), (f = l[a]) == null || f.labels.push(e), l[a].maxLength = Math.max(
173
172
  e.length,
174
- i[a].maxLength
173
+ l[a].maxLength
175
174
  );
176
175
  const c = Math.ceil(V(e, 14));
177
- i[a].maxWidth = Math.max(
176
+ l[a].maxWidth = Math.max(
178
177
  c || 0,
179
- i[a].maxWidth
178
+ l[a].maxWidth
180
179
  );
181
180
  },
182
- getColumnData: (a) => i[a] || {}
181
+ getColumnData: (a) => l[a] || {}
183
182
  };
184
183
  }, te = { class: "multi-grid" }, ae = /* @__PURE__ */ W({
185
184
  name: "MultiGrid",
186
185
  __name: "MultiGrid",
187
- setup(i) {
186
+ setup(l) {
188
187
  const { getColumnData: d, registerGridItem: t } = ee();
189
188
  return g("registerGridItem", t), g("getColumnData", d), g("isMultiGrid", u(!0)), (a, e) => (L(), k("div", te, [
190
189
  M(a.$slots, "default")
191
190
  ]));
192
191
  }
193
- }), ne = D(X), ie = D(Y), oe = D(ae);
192
+ }), ne = D(X), le = D(Y), oe = D(ae);
194
193
  export {
195
- ie as Z,
194
+ le as Z,
196
195
  ne as a,
197
196
  oe as b
198
197
  };
@@ -1,5 +1,5 @@
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-Dok2Aus9.js";
2
+ import { D as d } from "./BaseItem-DwoIxH38.js";
3
3
  import { _ } from "./Button-BbUxF68h.js";
4
4
  import { w as u } from "./utils-hD_p7bGY.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {