zhihao-ui 1.3.58-alpha.4 → 1.3.58-alpha.6

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 (27) hide show
  1. package/dist/es/{BaseInfo-CD2tAAod.js → BaseInfo-DKBBAr5h.js} +1 -1
  2. package/dist/es/{BaseItem-DcezA7sa.js → BaseItem-Q3XdscQ-.js} +1 -1
  3. package/dist/es/{CascaderLoadMore-Bt031LmH.js → CascaderLoadMore-Dsb_tK-O.js} +64 -67
  4. package/dist/es/{DatePicker-CP0KSqBs.js → DatePicker-C1pTOs2W.js} +1 -1
  5. package/dist/es/{DetailHeader-DoaD0eKO.js → DetailHeader-Bbe3QzQc.js} +1 -1
  6. package/dist/es/{DetailSubTitle-oiPuqJg6.js → DetailSubTitle-D02cB8NQ.js} +1 -1
  7. package/dist/es/{DiyDataTable-Bwk_tQDp.js → DiyDataTable-Bc_wX-Ef.js} +1 -1
  8. package/dist/es/{EditInfoPair-BRkRrmJI.js → EditInfoPair-DUVVgScj.js} +1 -1
  9. package/dist/es/{FileWrapper-Bw-FhIY5.js → FileWrapper-BKWkQlPw.js} +1 -1
  10. package/dist/es/{Grid-Cndtkriq.js → Grid-Boo-wcAp.js} +1 -1
  11. package/dist/es/{InfoPair-CIuXeXV1.js → InfoPair-D4m5TSIA.js} +1 -1
  12. package/dist/es/Map-CAbB_F9P.js +2888 -0
  13. package/dist/es/{MoneyInput-DZuOujIc.js → MoneyInput-BCq23_x7.js} +1 -1
  14. package/dist/es/{Table-NT97DzT0.js → Table-C--wSMKv.js} +2 -2
  15. package/dist/es/index.js +15 -15
  16. package/dist/index.css +1 -1
  17. package/dist/types/components/Map/Map.vue.d.ts +5 -1
  18. package/dist/types/components/Map/function/event.d.ts +2 -1
  19. package/dist/types/components/Map/function/ship/style.d.ts +1 -1
  20. package/dist/types/components/Map/index.d.ts +15 -3
  21. package/dist/types/components/Map/meta/index.d.ts +2 -1
  22. package/dist/types/components/Map/utils/animation.d.ts +13 -0
  23. package/dist/types/components/Map/utils/shipOverlay.d.ts +1 -0
  24. package/dist/umd/index.css +1 -1
  25. package/dist/umd/index.umd.cjs +38 -38
  26. package/package.json +2 -2
  27. package/dist/es/Map-BvfSse1V.js +0 -2565
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as o, provide as n, watch as i, openBlock as u, createBlock as m, withCtx as p, renderSlot as W } from "vue";
2
- import { _ } from "./Grid-Cndtkriq.js";
2
+ import { _ } from "./Grid-Boo-wcAp.js";
3
3
  import { w as b } from "./utils-vqG84sMo.js";
4
4
  const D = /* @__PURE__ */ h({
5
5
  name: "ZhBaseInfo",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, useSlots as T, inject as L, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as s, withCtx as m, createElementVNode as h, normalizeClass as d, normalizeStyle as S, resolveDynamicComponent as D, createElementBlock as i, toDisplayString as o, renderSlot as V, Fragment as p, withModifiers as O, createTextVNode as f, createVNode as b, createCommentVNode as W } from "vue";
2
2
  import { E as C, a as g, d as Z } from "./vendor-MMWA2y7U.js";
3
- import { Z as G } from "./Grid-Cndtkriq.js";
3
+ import { Z as G } from "./Grid-Boo-wcAp.js";
4
4
  import { w as U } from "./utils-vqG84sMo.js";
5
5
  const y = "--", 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,5 +1,5 @@
1
- import { defineComponent as le, useModel as ae, ref as s, watch as L, nextTick as y, withDirectives as te, openBlock as f, createElementBlock as P, createVNode as z, unref as C, withCtx as R, createBlock as $, toDisplayString as oe, createCommentVNode as se, mergeProps as ne, Fragment as re, renderList as ce, mergeModels as A } from "vue";
2
- import { e as I, f as ie, g as ue, h as pe, i as de, C as ve } from "./vendor-MMWA2y7U.js";
1
+ import { defineComponent as le, useModel as ae, ref as s, watch as R, nextTick as f, withDirectives as te, openBlock as g, createElementBlock as P, createVNode as F, unref as C, withCtx as V, createBlock as z, toDisplayString as oe, createCommentVNode as se, mergeProps as ne, Fragment as re, renderList as ce, mergeModels as $ } from "vue";
2
+ import { e as A, f as ie, g as ue, h as pe, i as de, C as ve } from "./vendor-MMWA2y7U.js";
3
3
  import { w as fe } from "./utils-vqG84sMo.js";
4
4
  const ge = { class: "w-100" }, me = {
5
5
  key: 1,
@@ -10,7 +10,7 @@ const ge = { class: "w-100" }, me = {
10
10
  }, ye = /* @__PURE__ */ le({
11
11
  name: "CascaderLoadMore",
12
12
  __name: "CascaderLoadMore",
13
- props: /* @__PURE__ */ A({
13
+ props: /* @__PURE__ */ $({
14
14
  onChange: {
15
15
  type: Function,
16
16
  required: !1
@@ -93,121 +93,119 @@ const ge = { class: "w-100" }, me = {
93
93
  modelValue: {},
94
94
  modelModifiers: {}
95
95
  }),
96
- emits: /* @__PURE__ */ A(["change", "removeTag"], ["update:modelValue"]),
97
- setup(c, { expose: N, emit: W }) {
96
+ emits: /* @__PURE__ */ $(["change", "removeTag"], ["update:modelValue"]),
97
+ setup(c, { expose: w, emit: I }) {
98
98
  const o = c, r = ae(c, "modelValue"), d = s(r.value || []), v = s(!1), i = s({
99
99
  page: 1,
100
100
  size: o.pageSize
101
- }), S = s(void 0), k = s(!1), O = s(!0), p = s(o.initialOptions || []), n = s(o.initialOptions || []), g = s(void 0), T = s(!1), H = {
101
+ }), S = s(void 0), k = s(!1), O = s(!0), p = s(o.initialOptions || []), n = s(o.initialOptions || []), m = s(void 0), T = s(!1), N = {
102
102
  expandTrigger: "hover",
103
103
  checkStrictly: !1,
104
104
  multiple: o.multiple,
105
105
  emitPath: !0,
106
106
  ...o.cascaderProps
107
- }, B = s(), q = s(), U = () => {
107
+ }, x = s(), q = s(), W = () => {
108
108
  v.value = !0;
109
- }, j = () => {
109
+ }, U = () => {
110
110
  v.value = !1;
111
- }, w = (e) => {
111
+ }, j = (e) => {
112
112
  const l = /* @__PURE__ */ new Map();
113
113
  return (e || []).forEach((a) => {
114
114
  const t = `${a.value}`;
115
115
  l.has(t) || l.set(t, a);
116
116
  }), Array.from(l.values());
117
117
  };
118
- function D(e) {
118
+ function B(e) {
119
119
  const l = [];
120
120
  function a(t, u = "") {
121
- const h = u && (o.cascaderProps.emitPath ?? !0) ? `${u}/${t.label}` : t.label;
121
+ const y = u && (o.cascaderProps.emitPath ?? !0) ? `${u}/${t.label}` : t.label;
122
122
  l.push({
123
123
  ...t,
124
124
  value: t.value,
125
- label: h
125
+ label: y
126
126
  // 如果需要保留原始路径结构,可加上 fullPath 字段
127
127
  // fullPath: currentPath
128
- }), t.children && t.children.length > 0 && t.children.forEach((ee) => a(ee, h));
128
+ }), t.children && t.children.length > 0 && t.children.forEach((ee) => a(ee, y));
129
129
  }
130
130
  return e.forEach((t) => a(t)), l;
131
131
  }
132
- const E = async (e) => {
132
+ const M = async (e) => {
133
133
  var u;
134
134
  if (!o.forceSearch && !e) return;
135
- const l = g.value === e || !g.value && !e;
135
+ const l = m.value === e || !m.value && !e;
136
136
  if (l || (i.value.page = 1), l && S.value !== void 0 && i.value.page > S.value && !T.value) return;
137
137
  T.value = !1, k.value = !0, n.value.length === 0 && (O.value = !0);
138
138
  const t = await o.requestFunction(i.value.page, i.value.size, e);
139
139
  if (t && Object.keys(t).length) {
140
140
  S.value = t.totalPage;
141
- const h = (u = t == null ? void 0 : t.list) == null ? void 0 : u.map(o.handleOptionsFunction);
142
- l && i.value.page !== 1 ? n.value = w([...n.value, ...h]) : n.value = h || [], d.value = I(r.value), p.value = D(n.value);
141
+ const y = (u = t == null ? void 0 : t.list) == null ? void 0 : u.map(o.handleOptionsFunction);
142
+ l && i.value.page !== 1 ? n.value = j([...n.value, ...y]) : n.value = y || [], d.value = A(r.value), p.value = B(n.value);
143
143
  }
144
- y(() => {
144
+ f(() => {
145
145
  _();
146
- }), g.value = e, k.value = !1, n.value.length !== 0 && (O.value = !1);
147
- }, Z = () => {
148
- i.value.page = i.value.page + 1, E(g.value);
149
- }, Q = (e) => {
150
- r.value = e, d.value = e;
151
- const l = M(e), a = o.onChange;
146
+ }), m.value = e, k.value = !1, n.value.length !== 0 && (O.value = !1);
147
+ }, H = () => {
148
+ i.value.page = i.value.page + 1, M(m.value);
149
+ }, Z = async (e) => {
150
+ r.value = e, d.value = e, await f();
151
+ const l = E(e), a = o.onChange;
152
152
  a && a(e, l);
153
- }, M = (e) => {
153
+ }, E = (e) => {
154
154
  const l = e || r.value;
155
155
  return o.multiple ? p.value.filter(
156
156
  (a) => (l || []).includes(a.value)
157
157
  ) : p.value.find((a) => a.value === l);
158
- }, G = () => {
159
- r.value = o.initialValue, d.value = o.initialValue, i.value.page = 1, i.value.size = o.pageSize, p.value = o.initialOptions || [], n.value = o.initialOptions || [], S.value = void 0, g.value = void 0;
160
- }, V = W;
161
- L(
158
+ }, Q = () => {
159
+ r.value = o.initialValue, d.value = o.initialValue, i.value.page = 1, i.value.size = o.pageSize, p.value = o.initialOptions || [], n.value = o.initialOptions || [], S.value = void 0, m.value = void 0;
160
+ }, G = I;
161
+ R(
162
162
  () => o.initialOptions,
163
163
  () => {
164
- p.value = D(o.initialOptions), console.log("options.value", p.value), n.value = o.initialOptions;
164
+ p.value = B(o.initialOptions), console.log("options.value", p.value), n.value = o.initialOptions;
165
165
  },
166
166
  { immediate: !0 }
167
167
  );
168
168
  const J = (e) => {
169
- V("removeTag", e);
169
+ G("removeTag", e);
170
170
  }, K = (e) => {
171
171
  T.value = e;
172
- }, b = s(null), m = s(null), x = () => {
172
+ }, b = s(null), h = s(null), L = () => {
173
173
  if (!v.value) return;
174
174
  const e = q.value.popperRef.contentRef, l = e == null ? void 0 : e.querySelector(".el-cascader-panel .el-scrollbar__wrap");
175
- l && (b.value = l, m.value = () => X(l), l.addEventListener("scroll", m.value));
176
- }, F = () => {
177
- b.value && m.value && (b.value.removeEventListener("scroll", m.value), b.value = null, m.value = null);
175
+ l && (b.value = l, h.value = () => X(l), l.addEventListener("scroll", h.value));
176
+ }, D = () => {
177
+ b.value && h.value && (b.value.removeEventListener("scroll", h.value), b.value = null, h.value = null);
178
178
  }, X = (e) => {
179
179
  const { scrollTop: l, scrollHeight: a, clientHeight: t } = e;
180
180
  let u = a - l;
181
- t + 10 > u && Z();
181
+ t + 10 > u && H();
182
182
  };
183
- y(() => x()), L(v, (e) => {
184
- e ? (console.log("visible", e), y(() => x())) : F();
185
- }), L(n, (e) => {
186
- e != null && e.length && v.value ? y(() => x()) : F();
183
+ f(() => L()), R(v, (e) => {
184
+ e ? (console.log("visible", e), f(() => L())) : D();
185
+ }), R(n, (e) => {
186
+ e != null && e.length && v.value ? f(() => L()) : D();
187
187
  });
188
188
  const Y = async (e) => {
189
- (o.cascaderProps.emitPath ?? !0) && Array.isArray(e) ? o.multiple ? r.value = e.map((t) => t.at(-1)) : r.value = e.at(-1) : r.value = I(d.value), await y();
190
- const l = M(r.value);
191
- V("change", e, l);
192
- const a = o.onChange;
189
+ (o.cascaderProps.emitPath ?? !0) && Array.isArray(e) ? o.multiple ? r.value = e.map((t) => t.at(-1)) : r.value = e.at(-1) : r.value = A(d.value), await f();
190
+ const l = E(r.value), a = o.onChange;
193
191
  a && a(e, l);
194
192
  }, _ = () => {
195
193
  var t;
196
- const e = q.value.popperRef.contentRef, l = (t = B.value) == null ? void 0 : t.$el, a = e == null ? void 0 : e.querySelector(".cascader-select-empty");
194
+ const e = q.value.popperRef.contentRef, l = (t = x.value) == null ? void 0 : t.$el, a = e == null ? void 0 : e.querySelector(".cascader-select-empty");
197
195
  if (l && a) {
198
196
  const u = l.offsetWidth;
199
197
  a.style.width = `${u}px`;
200
198
  }
201
199
  };
202
- return N({
203
- reset: G,
204
- getSelectedOption: M,
205
- remoteMethod: E,
200
+ return w({
201
+ reset: Q,
202
+ getSelectedOption: E,
203
+ remoteMethod: M,
206
204
  handleRequestParamsChanged: K,
207
205
  options: p,
208
206
  cascderOptions: n
209
- }), (e, l) => te((f(), P("div", ge, [
210
- z(C(ie), {
207
+ }), (e, l) => te((g(), P("div", ge, [
208
+ F(C(ie), {
211
209
  ref_key: "popoverRef",
212
210
  ref: q,
213
211
  teleported: c.teleported,
@@ -216,15 +214,15 @@ const ge = { class: "w-100" }, me = {
216
214
  "popper-class": "warp-cascade-panel " + o.popperClass,
217
215
  visible: v.value
218
216
  }, {
219
- reference: R(() => [
220
- z(C(pe), ne({
217
+ reference: V(() => [
218
+ F(C(pe), ne({
221
219
  ref_key: "remoteSelectRef",
222
- ref: B,
220
+ ref: x,
223
221
  modelValue: r.value,
224
222
  "onUpdate:modelValue": l[0] || (l[0] = (a) => r.value = a),
225
223
  multiple: c.multiple,
226
224
  placeholder: c.placeholder,
227
- "remote-method": E,
225
+ "remote-method": M,
228
226
  teleported: !0,
229
227
  clearable: c.clearable,
230
228
  "collapse-tags": c.collapseTags,
@@ -237,12 +235,12 @@ const ge = { class: "w-100" }, me = {
237
235
  "popper-class": "hidden-dropdown",
238
236
  class: "cascader-select"
239
237
  }, e.$attrs, {
240
- onClick: U,
241
- onChange: Q,
238
+ onClick: W,
239
+ onChange: Z,
242
240
  onRemoveTag: J
243
241
  }), {
244
- default: R(() => [
245
- (f(!0), P(re, null, ce(p.value, (a) => (f(), $(C(de), {
242
+ default: V(() => [
243
+ (g(!0), P(re, null, ce(p.value, (a) => (g(), z(C(de), {
246
244
  key: a.value,
247
245
  label: a.label,
248
246
  value: a.value
@@ -251,24 +249,23 @@ const ge = { class: "w-100" }, me = {
251
249
  _: 1
252
250
  }, 16, ["modelValue", "multiple", "placeholder", "clearable", "collapse-tags", "collapse-tags-tooltip"])
253
251
  ]),
254
- default: R(() => [
255
- !O.value && n.value.length > 0 ? (f(), $(C(ue), {
252
+ default: V(() => [
253
+ !O.value && n.value.length > 0 ? (g(), z(C(ue), {
256
254
  key: 0,
257
255
  modelValue: d.value,
258
256
  "onUpdate:modelValue": l[1] || (l[1] = (a) => d.value = a),
259
257
  border: !1,
260
- props: H,
258
+ props: N,
261
259
  options: n.value,
262
260
  class: "select-cascader-panel",
263
- onChange: Y,
264
- onExpandChange: e.expandHandle
265
- }, null, 8, ["modelValue", "options", "onExpandChange"])) : (f(), P("div", me, oe(c.noDataText), 1)),
266
- k.value ? (f(), P("div", he, "加载中...")) : se("", !0)
261
+ onChange: Y
262
+ }, null, 8, ["modelValue", "options"])) : (g(), P("div", me, oe(c.noDataText), 1)),
263
+ k.value ? (g(), P("div", he, "加载中...")) : se("", !0)
267
264
  ]),
268
265
  _: 1
269
266
  }, 8, ["teleported", "placement", "trigger", "popper-class", "visible"])
270
267
  ])), [
271
- [C(ve), j]
268
+ [C(ve), U]
272
269
  ]);
273
270
  }
274
271
  }), Pe = fe(ye);
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as u, openBlock as f, createElementBlock as h, normalizeClass as D, createVNode as g, unref as _, mergeProps as A } from "vue";
2
2
  import { j as T, k as y } from "./vendor-MMWA2y7U.js";
3
- import { D as m, a as b, L as p, b as k } from "./BaseItem-DcezA7sa.js";
3
+ import { D as m, a as b, L as p, b as k } from "./BaseItem-Q3XdscQ-.js";
4
4
  import { w as E } from "./utils-vqG84sMo.js";
5
5
  const d = (e, l = b) => e ? T(e).format(l).replace("Invalid date", m) : m, P = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
6
6
  function U(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-DcezA7sa.js";
2
+ import { D as v } from "./BaseItem-Q3XdscQ-.js";
3
3
  import { _ as k } from "./Button-B2Z_WKdq.js";
4
4
  import { w as y } from "./utils-vqG84sMo.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-DcezA7sa.js";
2
+ import { D as u } from "./BaseItem-Q3XdscQ-.js";
3
3
  import { w as f } from "./utils-vqG84sMo.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 K, useModel as j, ref as E, computed as G, openBlock as s, createBlock as m, unref as u, withCtx as f, createVNode as R, mergeProps as J, createCommentVNode as x, createElementBlock as v, Fragment as A, renderList as Q, normalizeClass as S, toDisplayString as C, renderSlot as T, createTextVNode as D, createElementVNode as k, mergeModels as Y } from "vue";
2
- import { D as F } from "./BaseItem-DcezA7sa.js";
2
+ import { D as F } from "./BaseItem-Q3XdscQ-.js";
3
3
  import { m as V, e as N, n as ee, o as te, p as _, q as L, r as ae, s as I, b as U } from "./vendor-MMWA2y7U.js";
4
4
  import { _ as oe } from "./Button-B2Z_WKdq.js";
5
5
  import { w as le } from "./utils-vqG84sMo.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-DcezA7sa.js";
2
+ import { D as f } from "./BaseItem-Q3XdscQ-.js";
3
3
  import { _ } from "./Button-B2Z_WKdq.js";
4
4
  import { w as u } from "./utils-vqG84sMo.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-DcezA7sa.js";
2
+ import { D as w } from "./BaseItem-Q3XdscQ-.js";
3
3
  import { E as y } from "./vendor-MMWA2y7U.js";
4
4
  import { _ as h } from "./Button-B2Z_WKdq.js";
5
5
  import { w as v } from "./utils-vqG84sMo.js";
@@ -1,5 +1,5 @@
1
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";
2
+ import { g as X } from "./Table-C--wSMKv.js";
3
3
  import { w as A } from "./utils-vqG84sMo.js";
4
4
  const Y = /* @__PURE__ */ L({
5
5
  name: "Grid",
@@ -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-DcezA7sa.js";
2
+ import { D as d } from "./BaseItem-Q3XdscQ-.js";
3
3
  import { _ } from "./Button-B2Z_WKdq.js";
4
4
  import { w as u } from "./utils-vqG84sMo.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {