zhihao-ui 1.2.65 → 1.2.67

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 (76) hide show
  1. package/dist/es/{BaseInfo-VzgiaCKn.js → BaseInfo-ChbjTGfs.js} +1 -1
  2. package/dist/es/{BaseItem-BtsARxvz.js → BaseItem-Bm9MGEJ9.js} +3 -3
  3. package/dist/es/{Button-Dw3i74l2.js → Button-MxEBey6B.js} +2 -2
  4. package/dist/es/CascaderLoadMore-DlILOdn-.js +241 -0
  5. package/dist/es/{DatePicker-BCvYHlC7.js → DatePicker-CmHAGAfV.js} +3 -3
  6. package/dist/es/{DetailHeader-C5LjDuTv.js → DetailHeader-CET8dXQK.js} +3 -3
  7. package/dist/es/{DetailSubTitle-ak2l4HyV.js → DetailSubTitle-BjRMPd-x.js} +2 -2
  8. package/dist/es/{Dialog-Cw3E3ZU6.js → Dialog-DbLFMPUc.js} +6 -6
  9. package/dist/es/DiyDataTable-Dl9cbZPM.js +364 -0
  10. package/dist/es/{EditInfoPair-8SWkyWJC.js → EditInfoPair-BFhom7kE.js} +3 -3
  11. package/dist/es/{FileWrapper-BKxBr28L.js → FileWrapper-dvsZpeCo.js} +4 -4
  12. package/dist/es/{Grid-C8tYH4s7.js → Grid-BE291DBa.js} +2 -2
  13. package/dist/es/{InfoPair-C3obQrjB.js → InfoPair-vBH3EpPX.js} +3 -3
  14. package/dist/es/{Input-C3HDYWCC.js → Input-CAfBuNDL.js} +3 -3
  15. package/dist/es/{Loading-DfL7OJvd.js → Loading-DqAl0_Bv.js} +2 -2
  16. package/dist/es/{Map-BpqtL7_q.js → Map-Ds8BCcrZ.js} +4 -4
  17. package/dist/es/{MessageBox-ByLWEDby.js → MessageBox-D40uRNZW.js} +2 -2
  18. package/dist/es/{MoneyInput-CxngoHAe.js → MoneyInput-D1qzFVtu.js} +5 -5
  19. package/dist/es/{PageHeadPanel-d3ponlDx.js → PageHeadPanel-BKSrXbjM.js} +2 -2
  20. package/dist/es/Table-oEih0-VJ.js +1167 -0
  21. package/dist/es/{ToolTips-D0FAOOvm.js → ToolTips-CUiNF0wz.js} +3 -3
  22. package/dist/es/index.js +58 -55
  23. package/dist/es/{utils-BSQSj8Ii.js → utils-B4dXhR36.js} +1 -1
  24. package/dist/es/{vendor-DaYdW1_n.js → vendor-BxbXJpfv.js} +12452 -11469
  25. package/dist/index.css +1 -1
  26. package/dist/types/components/BaseItem/index.d.ts +9 -9
  27. package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +197 -0
  28. package/dist/types/components/CascaderLoadMore/index.d.ts +369 -0
  29. package/dist/types/components/CascaderLoadMore/types.d.ts +7 -0
  30. package/dist/types/components/Dialog/Dialog.vue.d.ts +16 -16
  31. package/dist/types/components/Dialog/index.d.ts +24 -24
  32. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +18 -1
  33. package/dist/types/components/DiyDataTable/index.d.ts +30 -0
  34. package/dist/types/components/DiyDataTable/type.d.ts +17 -1
  35. package/dist/types/components/Map/config/global.d.ts +2 -0
  36. package/dist/types/components/Map/config/index.d.ts +2 -0
  37. package/dist/types/components/Map/config/map.d.ts +22 -0
  38. package/dist/types/components/Map/function/carTrack.d.ts +11 -0
  39. package/dist/types/components/Map/function/drawLine.d.ts +12 -0
  40. package/dist/types/components/Map/function/drawPolygon.d.ts +8 -0
  41. package/dist/types/components/Map/function/event.d.ts +8 -0
  42. package/dist/types/components/Map/function/layers.d.ts +10 -0
  43. package/dist/types/components/Map/function/map.d.ts +18 -0
  44. package/dist/types/components/Map/function/port.d.ts +10 -0
  45. package/dist/types/components/Map/function/position.d.ts +8 -0
  46. package/dist/types/components/Map/function/props.d.ts +7 -0
  47. package/dist/types/components/Map/function/ship/index.d.ts +18 -0
  48. package/dist/types/components/Map/function/ship/label.d.ts +5 -0
  49. package/dist/types/components/Map/function/ship/style.d.ts +23 -0
  50. package/dist/types/components/Map/function/shipOverlay.d.ts +12 -0
  51. package/dist/types/components/Map/function/shipTrack.d.ts +16 -0
  52. package/dist/types/components/Map/interface/carTrack.d.ts +70 -0
  53. package/dist/types/components/Map/interface/label.d.ts +27 -0
  54. package/dist/types/components/Map/interface/mapProps.d.ts +15 -0
  55. package/dist/types/components/Map/interface/position.d.ts +7 -0
  56. package/dist/types/components/Map/interface/shipInfoVo.d.ts +212 -0
  57. package/dist/types/components/Map/interface/shipTrack.d.ts +57 -0
  58. package/dist/types/components/Map/interface/wharfEntity.d.ts +20 -0
  59. package/dist/types/components/Map/meta/index.d.ts +12 -0
  60. package/dist/types/components/Map/meta/ship.d.ts +26 -0
  61. package/dist/types/components/Map/useMap.d.ts +17 -0
  62. package/dist/types/components/Map/utils/cursor.d.ts +3 -0
  63. package/dist/types/components/Map/utils/events.d.ts +4 -0
  64. package/dist/types/components/Map/utils/overlay.d.ts +5 -0
  65. package/dist/types/components/Map/utils/rbush.d.ts +13 -0
  66. package/dist/types/components/Map/utils/shipOverlay.d.ts +12 -0
  67. package/dist/types/components/Map/utils/track.d.ts +45 -0
  68. package/dist/types/components/Map/utils/util.d.ts +42 -0
  69. package/dist/types/components/Table/types.d.ts +1 -0
  70. package/dist/types/components/ToolTips/index.d.ts +12 -12
  71. package/dist/types/components/index.d.ts +1 -0
  72. package/dist/umd/index.css +1 -1
  73. package/dist/umd/index.umd.cjs +25 -19
  74. package/package.json +1 -1
  75. package/dist/es/DiyDataTable-Cgqys5z_.js +0 -331
  76. package/dist/es/Table-BufcZ4Wy.js +0 -1155
@@ -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-BSQSj8Ii.js";
2
+ import { w as g } from "./utils-B4dXhR36.js";
3
3
  const C = /* @__PURE__ */ h({
4
4
  name: "ZhBaseInfo",
5
5
  __name: "BaseInfo",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as z, useSlots as R, inject as T, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as s, withCtx as d, createElementVNode as h, normalizeClass as m, normalizeStyle as W, resolveDynamicComponent as k, createElementBlock as i, toDisplayString as o, renderSlot as S, Fragment as v, withModifiers as V, createTextVNode as f, createVNode as p, createCommentVNode as O } from "vue";
2
- import { E as D, a as Z, d as g } from "./vendor-DaYdW1_n.js";
3
- import { Z as G } from "./Grid-C8tYH4s7.js";
4
- import { w as U } from "./utils-BSQSj8Ii.js";
2
+ import { E as D, a as Z, d as g } from "./vendor-BxbXJpfv.js";
3
+ import { Z as G } from "./Grid-BE291DBa.js";
4
+ import { w as U } from "./utils-B4dXhR36.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,
7
7
  class: "zh-base-item--value--file"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, openBlock as a, createBlock as p, unref as u, mergeProps as c, withCtx as l, renderSlot as i } from "vue";
2
- import { b as m, c as d } from "./vendor-DaYdW1_n.js";
3
- import { w as _ } from "./utils-BSQSj8Ii.js";
2
+ import { b as m, c as d } from "./vendor-BxbXJpfv.js";
3
+ import { w as _ } from "./utils-B4dXhR36.js";
4
4
  const h = /* @__PURE__ */ r({
5
5
  name: "ZhButton",
6
6
  inheritAttrs: !1,
@@ -0,0 +1,241 @@
1
+ import { defineComponent as J, useModel as K, ref as n, watch as B, nextTick as F, resolveComponent as X, openBlock as y, createElementBlock as O, createVNode as T, unref as q, withCtx as M, createCommentVNode as Y, mergeProps as _, Fragment as ee, renderList as le, createBlock as ae, mergeModels as L } from "vue";
2
+ import { e as w, f as te, g as oe, h as ne } from "./vendor-BxbXJpfv.js";
3
+ import { w as se } from "./utils-B4dXhR36.js";
4
+ const re = { class: "w-100" }, ce = {
5
+ key: 0,
6
+ class: "loading"
7
+ }, ue = /* @__PURE__ */ J({
8
+ name: "CascaderLoadMore",
9
+ __name: "CascaderLoadMore",
10
+ props: /* @__PURE__ */ L({
11
+ onChange: {
12
+ type: Function,
13
+ required: !1
14
+ },
15
+ // 默认选中项
16
+ initialValue: {
17
+ type: [String, Number, Array],
18
+ required: !1
19
+ },
20
+ pageSize: {
21
+ type: Number,
22
+ default: 10
23
+ },
24
+ // 数据请求函数
25
+ requestFunction: {
26
+ type: Function,
27
+ required: !0
28
+ },
29
+ // 选项处理函数
30
+ handleOptionsFunction: {
31
+ type: Function,
32
+ required: !0
33
+ },
34
+ placeholder: {
35
+ type: String,
36
+ default: "输入关键字搜索名称"
37
+ },
38
+ // 强制搜索:不输入内容也进行搜索,即点击下拉默认展示数据
39
+ forceSearch: {
40
+ type: Boolean,
41
+ default: !0
42
+ },
43
+ // 初始下拉项用于回显数据
44
+ initialOptions: {
45
+ type: Array,
46
+ required: !1,
47
+ default: () => []
48
+ },
49
+ // 多选,默认false
50
+ multiple: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ collapseTags: {
55
+ type: Boolean,
56
+ default: !1
57
+ },
58
+ collapseTagsTooltip: {
59
+ type: Boolean,
60
+ default: !1
61
+ },
62
+ clearable: {
63
+ type: Boolean,
64
+ default: !0
65
+ },
66
+ cascaderProps: {
67
+ type: Object,
68
+ default: () => ({})
69
+ },
70
+ placement: {
71
+ type: String,
72
+ default: "bottom-start"
73
+ },
74
+ trigger: {
75
+ type: String,
76
+ default: "click"
77
+ },
78
+ popperClass: {
79
+ type: String,
80
+ default: "warp-cascade-panel"
81
+ }
82
+ }, {
83
+ modelValue: {},
84
+ modelModifiers: {}
85
+ }),
86
+ emits: /* @__PURE__ */ L(["removeTag"], ["update:modelValue"]),
87
+ setup(u, { expose: R, emit: x }) {
88
+ const t = u, r = K(u, "modelValue"), p = n(r.value || []), m = n(!1), s = n({
89
+ page: 1,
90
+ size: t.pageSize
91
+ }), g = n(void 0), C = n(!1), c = n(t.initialOptions || []), i = n(t.initialOptions || []), v = n(void 0), S = n(!1), z = {
92
+ expandTrigger: "hover",
93
+ checkStrictly: !0,
94
+ emitPath: !1,
95
+ multiple: t.multiple,
96
+ ...t.cascaderProps
97
+ }, D = (e) => {
98
+ const a = /* @__PURE__ */ new Map();
99
+ return (e || []).forEach((o) => {
100
+ const l = `${o.value}`;
101
+ a.has(l) || a.set(l, o);
102
+ }), Array.from(a.values());
103
+ };
104
+ function V(e) {
105
+ const a = [];
106
+ function o(l) {
107
+ a.push({ value: l.value, label: l.label }), l.children && l.children.length > 0 && l.children.forEach((d) => o(d));
108
+ }
109
+ return e.forEach((l) => o(l)), a;
110
+ }
111
+ const b = async (e) => {
112
+ var k;
113
+ if (!t.forceSearch && !e) return;
114
+ const a = v.value === e || !v.value && !e;
115
+ if (a || (s.value.page = 1), a && g.value !== void 0 && s.value.page > g.value && !S.value) return;
116
+ S.value = !1, C.value = !0;
117
+ const l = await t.requestFunction(s.value.page, s.value.size, e);
118
+ g.value = l.totalPage;
119
+ const d = (k = l == null ? void 0 : l.list) == null ? void 0 : k.map(t.handleOptionsFunction);
120
+ a && s.value.page !== 1 ? i.value = D([...i.value, ...d]) : i.value = d, p.value = w(r.value), c.value = V(i.value), v.value = e, C.value = !1;
121
+ }, I = () => {
122
+ s.value.page = s.value.page + 1, b(v.value);
123
+ }, N = (e) => {
124
+ r.value = e, p.value = e;
125
+ const a = P(e), o = t.onChange;
126
+ o && o(e, a);
127
+ }, P = (e) => {
128
+ const a = e || r.value;
129
+ return t.multiple ? c.value.filter(
130
+ (o) => (a || []).includes(o.value)
131
+ ) : c.value.find((o) => o.value === a);
132
+ }, U = () => {
133
+ r.value = t.initialValue, p.value = t.initialValue, s.value.page = 1, s.value.size = t.pageSize, c.value = [], g.value = void 0, v.value = void 0;
134
+ }, A = x;
135
+ B(
136
+ () => t.initialOptions,
137
+ () => {
138
+ c.value = V(t.initialOptions), console.log("options.value", c.value), i.value = t.initialOptions;
139
+ },
140
+ { immediate: !0 }
141
+ );
142
+ const H = (e) => {
143
+ A("removeTag", e);
144
+ }, Z = n(), $ = n(), j = (e) => {
145
+ S.value = e;
146
+ }, h = n(null), f = n(null), E = () => {
147
+ if (!m.value) return;
148
+ const e = document == null ? void 0 : document.querySelector(".el-cascader-panel .el-scrollbar__wrap");
149
+ console.log("selectDom", e), e && (h.value = e, f.value = () => W(e), e.addEventListener("scroll", f.value));
150
+ }, Q = () => {
151
+ h.value && f.value && (h.value.removeEventListener("scroll", f.value), h.value = null, f.value = null);
152
+ }, W = (e) => {
153
+ const { scrollTop: a, scrollHeight: o, clientHeight: l } = e;
154
+ let d = o - a;
155
+ l + 10 > d && (I(), console.log("handleScroll", "触底了"));
156
+ };
157
+ F(() => E()), B(m, (e) => {
158
+ e ? F(() => E()) : Q();
159
+ });
160
+ const G = (e) => {
161
+ r.value = w(p.value);
162
+ const a = P(e), o = t.onChange;
163
+ o && o(e, a);
164
+ };
165
+ return R({
166
+ reset: U,
167
+ getSelectedOption: P,
168
+ remoteMethod: b,
169
+ handleRequestParamsChanged: j,
170
+ options: c,
171
+ cascderOptions: i
172
+ }), (e, a) => {
173
+ const o = X("el-option");
174
+ return y(), O("div", re, [
175
+ T(q(te), {
176
+ ref: "cascaderPopperRef",
177
+ visible: m.value,
178
+ "onUpdate:visible": a[2] || (a[2] = (l) => m.value = l),
179
+ width: "100%",
180
+ teleported: !0,
181
+ placement: t.placement,
182
+ trigger: t.trigger,
183
+ "popper-class": t.popperClass
184
+ }, {
185
+ reference: M(() => [
186
+ T(q(ne), _({
187
+ ref_key: "remoteSelectRef",
188
+ ref: Z,
189
+ modelValue: r.value,
190
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => r.value = l),
191
+ multiple: u.multiple,
192
+ placeholder: u.placeholder,
193
+ "remote-method": b,
194
+ teleported: !0,
195
+ clearable: u.clearable,
196
+ "collapse-tags": u.collapseTags,
197
+ "collapse-tags-tooltip": u.collapseTagsTooltip,
198
+ filterable: "",
199
+ height: "300",
200
+ remote: "",
201
+ "remote-show-suffix": "",
202
+ "reserve-keyword": "",
203
+ "popper-class": "hidden-dropdown",
204
+ class: "cascader-select"
205
+ }, e.$attrs, {
206
+ onChange: N,
207
+ onRemoveTag: H
208
+ }), {
209
+ default: M(() => [
210
+ (y(!0), O(ee, null, le(c.value, (l) => (y(), ae(o, {
211
+ key: l.value,
212
+ label: l.label,
213
+ value: l.value
214
+ }, null, 8, ["label", "value"]))), 128))
215
+ ]),
216
+ _: 1
217
+ }, 16, ["modelValue", "multiple", "placeholder", "clearable", "collapse-tags", "collapse-tags-tooltip"])
218
+ ]),
219
+ default: M(() => [
220
+ T(q(oe), {
221
+ ref_key: "cascaderPanelRef",
222
+ ref: $,
223
+ modelValue: p.value,
224
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
225
+ border: !1,
226
+ props: z,
227
+ options: i.value,
228
+ class: "select-cascader-panel",
229
+ onChange: G
230
+ }, null, 8, ["modelValue", "options"]),
231
+ C.value ? (y(), O("div", ce, "加载中...")) : Y("", !0)
232
+ ]),
233
+ _: 1
234
+ }, 8, ["visible", "placement", "trigger", "popper-class"])
235
+ ]);
236
+ };
237
+ }
238
+ }), ve = se(ue);
239
+ export {
240
+ ve as Z
241
+ };
@@ -1,7 +1,7 @@
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
- import { h as D, e as E } from "./vendor-DaYdW1_n.js";
3
- import { D as p, a as M, L as f, b as T } from "./BaseItem-BtsARxvz.js";
4
- import { w as b } from "./utils-BSQSj8Ii.js";
2
+ import { i as D, j as E } from "./vendor-BxbXJpfv.js";
3
+ import { D as p, a as M, L as f, b as T } from "./BaseItem-Bm9MGEJ9.js";
4
+ import { w as b } from "./utils-B4dXhR36.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) {
7
7
  const t = ["角", "分"], a = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], s = [
@@ -1,7 +1,7 @@
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-BtsARxvz.js";
3
- import { _ as k } from "./Button-Dw3i74l2.js";
4
- import { w as y } from "./utils-BSQSj8Ii.js";
2
+ import { D as v } from "./BaseItem-Bm9MGEJ9.js";
3
+ import { _ as k } from "./Button-MxEBey6B.js";
4
+ import { w as y } from "./utils-B4dXhR36.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 "./BaseItem-BtsARxvz.js";
3
- import { w as f } from "./utils-BSQSj8Ii.js";
2
+ import { D as u } from "./BaseItem-Bm9MGEJ9.js";
3
+ import { w as f } from "./utils-B4dXhR36.js";
4
4
  const _ = { class: "info-pair" }, v = { class: "info-pair--title" }, h = {
5
5
  key: 0,
6
6
  class: "info-pair--title--tip"
@@ -1,11 +1,11 @@
1
- import { defineComponent as k, useModel as w, computed as T, openBlock as r, createBlock as v, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as m, toDisplayString as l, createElementBlock as Z, createCommentVNode as z, mergeModels as p } from "vue";
2
- import { Z as f } from "./Button-Dw3i74l2.js";
3
- import { f as E } from "./vendor-DaYdW1_n.js";
4
- import { w as I } from "./utils-BSQSj8Ii.js";
1
+ import { defineComponent as V, useModel as w, computed as T, openBlock as r, createBlock as v, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as m, toDisplayString as l, createElementBlock as Z, createCommentVNode as z, mergeModels as p } from "vue";
2
+ import { Z as f } from "./Button-MxEBey6B.js";
3
+ import { k as E } from "./vendor-BxbXJpfv.js";
4
+ import { w as I } from "./utils-B4dXhR36.js";
5
5
  const N = { class: "title" }, O = {
6
6
  key: 0,
7
7
  class: "sub-title"
8
- }, S = { class: "zh-dialog__footer" }, _ = /* @__PURE__ */ k({
8
+ }, S = { class: "zh-dialog__footer" }, _ = /* @__PURE__ */ V({
9
9
  name: "ZhDialog",
10
10
  inheritAttrs: !1,
11
11
  __name: "Dialog",
@@ -61,7 +61,7 @@ const N = { class: "title" }, O = {
61
61
  }, b = T(() => t.width ? t.width : g[t.size]);
62
62
  return (e, i) => (r(), v(D(E), M({
63
63
  modelValue: d.value,
64
- "onUpdate:modelValue": i[0] || (i[0] = (V) => d.value = V),
64
+ "onUpdate:modelValue": i[0] || (i[0] = (k) => d.value = k),
65
65
  class: "zh-dialog"
66
66
  }, e.$attrs, {
67
67
  width: b.value,