zhihao-ui 1.2.70 → 1.2.72

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 (63) hide show
  1. package/dist/es/{BaseItem-ByAS3S8w.js → BaseItem-CcDWBfoz.js} +1 -1
  2. package/dist/es/CascaderLoadMore-Cs9tSDmi.js +261 -0
  3. package/dist/es/{DatePicker-C-2zM1dY.js → DatePicker-OFa_X3SK.js} +1 -1
  4. package/dist/es/{DetailHeader-Dd_oHefQ.js → DetailHeader-CqZEznN3.js} +1 -1
  5. package/dist/es/{DetailSubTitle-1YWi0mX_.js → DetailSubTitle-CMZHFO7G.js} +1 -1
  6. package/dist/es/{DiyDataTable-beBJdlLe.js → DiyDataTable-xIPNp8SM.js} +38 -36
  7. package/dist/es/{EditInfoPair-BCbIIBEP.js → EditInfoPair-D4OdVVv0.js} +1 -1
  8. package/dist/es/{FileWrapper-ClTHhvQU.js → FileWrapper-CaI9Two-.js} +1 -1
  9. package/dist/es/{Grid-DvrmAWyU.js → Grid-gC33_S4r.js} +1 -1
  10. package/dist/es/{InfoPair-Bf-X09VT.js → InfoPair-DqDXekp4.js} +1 -1
  11. package/dist/es/{Map-XWdLIa5C.js → Map-C1pKJIU2.js} +1 -1
  12. package/dist/es/{MoneyInput-D8V7_PZq.js → MoneyInput-CyuL9f-x.js} +1 -1
  13. package/dist/es/{Table-DgS42Pzw.js → Table-HzWLO4s5.js} +411 -401
  14. package/dist/es/index.js +15 -15
  15. package/dist/index.css +1 -1
  16. package/dist/types/components/BaseItem/BaseItem.vue.d.ts +1 -1
  17. package/dist/types/components/BaseItem/index.d.ts +4 -4
  18. package/dist/types/components/BaseItem/types.d.ts +1 -1
  19. package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +2 -0
  20. package/dist/types/components/CascaderLoadMore/index.d.ts +5 -0
  21. package/dist/types/components/DetailHeader/index.d.ts +3 -3
  22. package/dist/types/components/DetailHeader/types.d.ts +1 -1
  23. package/dist/types/components/Dialog/Dialog.vue.d.ts +6 -6
  24. package/dist/types/components/Dialog/index.d.ts +9 -9
  25. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +368 -0
  26. package/dist/types/components/DiyDataTable/index.d.ts +1101 -0
  27. package/dist/types/components/Map/config/global.d.ts +2 -0
  28. package/dist/types/components/Map/config/index.d.ts +2 -0
  29. package/dist/types/components/Map/config/map.d.ts +22 -0
  30. package/dist/types/components/Map/function/carTrack.d.ts +11 -0
  31. package/dist/types/components/Map/function/drawLine.d.ts +12 -0
  32. package/dist/types/components/Map/function/drawPolygon.d.ts +9 -0
  33. package/dist/types/components/Map/function/event.d.ts +9 -0
  34. package/dist/types/components/Map/function/layers.d.ts +10 -0
  35. package/dist/types/components/Map/function/map.d.ts +18 -0
  36. package/dist/types/components/Map/function/port.d.ts +10 -0
  37. package/dist/types/components/Map/function/position.d.ts +8 -0
  38. package/dist/types/components/Map/function/props.d.ts +7 -0
  39. package/dist/types/components/Map/function/ship/index.d.ts +15 -0
  40. package/dist/types/components/Map/function/ship/label.d.ts +5 -0
  41. package/dist/types/components/Map/function/ship/style.d.ts +22 -0
  42. package/dist/types/components/Map/function/shipTrack.d.ts +16 -0
  43. package/dist/types/components/Map/interface/carTrack.d.ts +70 -0
  44. package/dist/types/components/Map/interface/label.d.ts +27 -0
  45. package/dist/types/components/Map/interface/mapProps.d.ts +15 -0
  46. package/dist/types/components/Map/interface/position.d.ts +7 -0
  47. package/dist/types/components/Map/interface/shipInfoVo.d.ts +214 -0
  48. package/dist/types/components/Map/interface/shipTrack.d.ts +57 -0
  49. package/dist/types/components/Map/interface/wharfEntity.d.ts +20 -0
  50. package/dist/types/components/Map/meta/index.d.ts +17 -0
  51. package/dist/types/components/Map/meta/ship.d.ts +26 -0
  52. package/dist/types/components/Map/useMap.d.ts +17 -0
  53. package/dist/types/components/Map/utils/cursor.d.ts +3 -0
  54. package/dist/types/components/Map/utils/events.d.ts +4 -0
  55. package/dist/types/components/Map/utils/overlay.d.ts +5 -0
  56. package/dist/types/components/Map/utils/rbush.d.ts +13 -0
  57. package/dist/types/components/Map/utils/shipOverlay.d.ts +12 -0
  58. package/dist/types/components/Map/utils/track.d.ts +45 -0
  59. package/dist/types/components/Table/utils.d.ts +4 -0
  60. package/dist/umd/index.css +1 -1
  61. package/dist/umd/index.umd.cjs +29 -15
  62. package/package.json +1 -1
  63. package/dist/es/CascaderLoadMore-B3dBPBJz.js +0 -243
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhihao-ui",
3
- "version": "1.2.70",
3
+ "version": "1.2.72",
4
4
  "description": "components",
5
5
  "type": "module",
6
6
  "main": "./dist/umd/index.umd.cjs",
@@ -1,243 +0,0 @@
1
- import { defineComponent as K, useModel as X, ref as r, watch as D, nextTick as F, resolveDirective as Y, openBlock as v, createElementBlock as P, withDirectives as ee, createBlock as T, unref as m, mergeProps as le, withCtx as L, Fragment as ae, renderList as te, createVNode as oe, createCommentVNode as w, mergeModels as R } from "vue";
2
- import { e as x, f as re, g as se, h as ne, i as ue } from "./vendor-9390iK3y.js";
3
- import { w as ce } from "./utils-UjENBVnX.js";
4
- const ie = { class: "w-100" }, pe = {
5
- key: 1,
6
- class: "loading"
7
- }, de = /* @__PURE__ */ K({
8
- name: "CascaderLoadMore",
9
- __name: "CascaderLoadMore",
10
- props: /* @__PURE__ */ R({
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__ */ R(["removeTag"], ["update:modelValue"]),
87
- setup(i, { expose: z, emit: I }) {
88
- const t = i, n = X(i, "modelValue"), p = r(n.value || []), k = r(!1), s = r({
89
- page: 1,
90
- size: t.pageSize
91
- }), h = r(void 0), y = r(!1), u = r(t.initialOptions || []), c = r(t.initialOptions || []), f = r(void 0), S = r(!1), N = {
92
- expandTrigger: "hover",
93
- checkStrictly: !0,
94
- emitPath: !1,
95
- multiple: t.multiple,
96
- ...t.cascaderProps
97
- }, q = r(), M = r(), A = () => {
98
- var e, l;
99
- (l = (e = m(M).popperRef) == null ? void 0 : e.delayHide) == null || l.call(e);
100
- }, H = (e) => {
101
- const l = /* @__PURE__ */ new Map();
102
- return (e || []).forEach((o) => {
103
- const a = `${o.value}`;
104
- l.has(a) || l.set(a, o);
105
- }), Array.from(l.values());
106
- };
107
- function V(e) {
108
- const l = [];
109
- function o(a) {
110
- l.push({ value: a.value, label: a.label }), a.children && a.children.length > 0 && a.children.forEach((d) => o(d));
111
- }
112
- return e.forEach((a) => o(a)), l;
113
- }
114
- const b = async (e) => {
115
- var B;
116
- if (!t.forceSearch && !e) return;
117
- const l = f.value === e || !f.value && !e;
118
- if (l || (s.value.page = 1), l && h.value !== void 0 && s.value.page > h.value && !S.value) return;
119
- S.value = !1, y.value = !0;
120
- const a = await t.requestFunction(s.value.page, s.value.size, e);
121
- h.value = a.totalPage;
122
- const d = (B = a == null ? void 0 : a.list) == null ? void 0 : B.map(t.handleOptionsFunction);
123
- l && s.value.page !== 1 ? c.value = H([...c.value, ...d]) : c.value = d, p.value = x(n.value), u.value = V(c.value), f.value = e, y.value = !1;
124
- }, U = () => {
125
- s.value.page = s.value.page + 1, b(f.value);
126
- }, Z = (e) => {
127
- n.value = e, p.value = e;
128
- const l = O(e), o = t.onChange;
129
- o && o(e, l);
130
- }, O = (e) => {
131
- const l = e || n.value;
132
- return t.multiple ? u.value.filter(
133
- (o) => (l || []).includes(o.value)
134
- ) : u.value.find((o) => o.value === l);
135
- }, _ = () => {
136
- n.value = t.initialValue, p.value = t.initialValue, s.value.page = 1, s.value.size = t.pageSize, u.value = [], h.value = void 0, f.value = void 0;
137
- }, $ = I;
138
- D(
139
- () => t.initialOptions,
140
- () => {
141
- u.value = V(t.initialOptions), console.log("options.value", u.value), c.value = t.initialOptions;
142
- },
143
- { immediate: !0 }
144
- );
145
- const j = (e) => {
146
- $("removeTag", e);
147
- }, Q = (e) => {
148
- S.value = e;
149
- }, C = r(null), g = r(null), E = () => {
150
- if (!k.value) return;
151
- const e = document == null ? void 0 : document.querySelector(".el-cascader-panel .el-scrollbar__wrap");
152
- console.log("selectDom", e), e && (C.value = e, g.value = () => G(e), e.addEventListener("scroll", g.value));
153
- }, W = () => {
154
- C.value && g.value && (C.value.removeEventListener("scroll", g.value), C.value = null, g.value = null);
155
- }, G = (e) => {
156
- const { scrollTop: l, scrollHeight: o, clientHeight: a } = e;
157
- let d = o - l;
158
- a + 10 > d && (U(), console.log("handleScroll", "触底了"));
159
- };
160
- F(() => E()), D(k, (e) => {
161
- e ? F(() => E()) : W();
162
- });
163
- const J = (e) => {
164
- n.value = x(p.value);
165
- const l = O(e), o = t.onChange;
166
- o && o(e, l);
167
- };
168
- return z({
169
- reset: _,
170
- getSelectedOption: O,
171
- remoteMethod: b,
172
- handleRequestParamsChanged: Q,
173
- options: u,
174
- cascderOptions: c
175
- }), (e, l) => {
176
- const o = Y("click-outside");
177
- return v(), P("div", ie, [
178
- ee((v(), T(m(re), le({
179
- ref_key: "remoteSelectRef",
180
- ref: q,
181
- modelValue: n.value,
182
- "onUpdate:modelValue": l[0] || (l[0] = (a) => n.value = a),
183
- multiple: i.multiple,
184
- placeholder: i.placeholder,
185
- "remote-method": b,
186
- teleported: !0,
187
- clearable: i.clearable,
188
- "collapse-tags": i.collapseTags,
189
- "collapse-tags-tooltip": i.collapseTagsTooltip,
190
- filterable: "",
191
- height: "300",
192
- remote: "",
193
- "remote-show-suffix": "",
194
- "reserve-keyword": "",
195
- "popper-class": "hidden-dropdown",
196
- class: "cascader-select"
197
- }, e.$attrs, {
198
- onChange: Z,
199
- onRemoveTag: j
200
- }), {
201
- default: L(() => [
202
- (v(!0), P(ae, null, te(u.value, (a) => (v(), T(m(se), {
203
- key: a.value,
204
- label: a.label,
205
- value: a.value
206
- }, null, 8, ["label", "value"]))), 128))
207
- ]),
208
- _: 1
209
- }, 16, ["modelValue", "multiple", "placeholder", "clearable", "collapse-tags", "collapse-tags-tooltip"])), [
210
- [o, A]
211
- ]),
212
- oe(m(ne), {
213
- ref_key: "popoverRef",
214
- ref: M,
215
- teleported: !0,
216
- placement: t.placement,
217
- trigger: t.trigger,
218
- "popper-class": t.popperClass,
219
- "virtual-ref": q.value,
220
- "virtual-triggering": ""
221
- }, {
222
- default: L(() => [
223
- !y.value || c.value.length > 0 ? (v(), T(m(ue), {
224
- key: 0,
225
- modelValue: p.value,
226
- "onUpdate:modelValue": l[1] || (l[1] = (a) => p.value = a),
227
- border: !1,
228
- props: N,
229
- options: c.value,
230
- class: "select-cascader-panel",
231
- onChange: J
232
- }, null, 8, ["modelValue", "options"])) : w("", !0),
233
- y.value ? (v(), P("div", pe, "加载中...")) : w("", !0)
234
- ]),
235
- _: 1
236
- }, 8, ["placement", "trigger", "popper-class", "virtual-ref"])
237
- ]);
238
- };
239
- }
240
- }), me = ce(de);
241
- export {
242
- me as Z
243
- };