zhihao-ui 1.3.64-alpha.2 → 1.3.65-alpha.1

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 (92) hide show
  1. package/dist/es/{BaseInfo-DRE7tqhe.js → BaseInfo-DqEFRLn8.js} +4 -4
  2. package/dist/es/{BaseItem-B9hyAgCm.js → BaseItem-m83RrA2F.js} +4 -4
  3. package/dist/es/{Button-CSE0Mb4I.js → Button-BbbSzwN-.js} +5 -5
  4. package/dist/es/{CascaderLoadMore-DlIfow9Z.js → CascaderLoadMore-DBsWANI9.js} +11 -11
  5. package/dist/es/{DatePicker-DRO5YMZ8.js → DatePicker-CWP-R2oa.js} +5 -5
  6. package/dist/es/{DetailHeader-WPFCQJFq.js → DetailHeader-lHQhoYOA.js} +11 -11
  7. package/dist/es/{DetailSubTitle-BWOpKhxk.js → DetailSubTitle-Bz7xsRSw.js} +5 -5
  8. package/dist/es/{Dialog-CAiA_v3J.js → Dialog-BjIyAcj7.js} +24 -19
  9. package/dist/es/DiyDataTable-B4MAzhOX.js +448 -0
  10. package/dist/es/{EditInfoPair-CZ_m9ph_.js → EditInfoPair-Cf0uYf93.js} +7 -7
  11. package/dist/es/{FileWrapper-Dk5178uk.js → FileWrapper-BV8cQBfA.js} +11 -11
  12. package/dist/es/{Grid-DXdd3Eqi.js → Grid-ipgXJGA5.js} +10 -10
  13. package/dist/es/InfoPair-BzyTEuuM.js +36 -0
  14. package/dist/es/{Input-CCkgPIDm.js → Input-CJN-YLXW.js} +16 -16
  15. package/dist/es/{Loading-CtaMdigH.js → Loading-cq6BW1kF.js} +4 -4
  16. package/dist/es/{Map-BTJrG_eT.js → Map-gs0EAlCP.js} +12 -12
  17. package/dist/es/{MessageBox-DdmHDM2f.js → MessageBox-CZdTHeI3.js} +2 -2
  18. package/dist/es/{MoneyInput-CsELS7YH.js → MoneyInput-DFvUG16j.js} +15 -15
  19. package/dist/es/{PageHeadPanel-TzAwDM3_.js → PageHeadPanel-CLV6EyGv.js} +4 -4
  20. package/dist/es/{Table-DELBhqxN.js → Table-ejaaY5Zk.js} +20 -20
  21. package/dist/es/{ToolTips-BsqDNvAz.js → ToolTips-Cajf-Tbu.js} +5 -5
  22. package/dist/es/index.js +23 -23
  23. package/dist/es/{utils-SutTRvhl.js → utils-BCPlncac.js} +1 -1
  24. package/dist/es/{vendor-BnoIpJXx.js → vendor-CrOEdcTJ.js} +19400 -17975
  25. package/dist/index.css +1 -1
  26. package/dist/types/components/Dialog/Dialog.vue.d.ts +44 -14
  27. package/dist/types/components/Dialog/index.d.ts +66 -21
  28. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +653 -382
  29. package/dist/types/components/DiyDataTable/index.d.ts +1953 -1143
  30. package/dist/types/components/DiyDataTable/type.d.ts +4 -1
  31. package/dist/types/components/utils.d.ts +1 -1
  32. package/dist/umd/index.css +1 -1
  33. package/dist/umd/index.umd.cjs +58 -66
  34. package/package.json +1 -1
  35. package/dist/es/DiyDataTable-CPbTx9G5.js +0 -405
  36. package/dist/es/InfoPair-C8tc2XjH.js +0 -36
  37. package/dist/types/components/Button/types.d.ts +0 -1
  38. package/dist/types/components/DatePicker/types.d.ts +0 -1
  39. package/dist/types/components/EditInfoPair/types.d.ts +0 -1
  40. package/dist/types/components/FileWrapper/types.d.ts +0 -1
  41. package/dist/types/components/InfoPair/types.d.ts +0 -1
  42. package/dist/types/components/Input/types.d.ts +0 -1
  43. package/dist/types/components/InputNumber/types.d.ts +0 -1
  44. package/dist/types/components/Loading/types.d.ts +0 -1
  45. package/dist/types/components/Map/components/copyright.vue.d.ts +0 -36
  46. package/dist/types/components/Map/components/measure.vue.d.ts +0 -23
  47. package/dist/types/components/Map/components/toolPanel.vue.d.ts +0 -40
  48. package/dist/types/components/Map/config.d.ts +0 -32
  49. package/dist/types/components/Map/enum/car.d.ts +0 -5
  50. package/dist/types/components/Map/enum/device.d.ts +0 -8
  51. package/dist/types/components/Map/enum/index.d.ts +0 -5
  52. package/dist/types/components/Map/enum/openLayers.d.ts +0 -10
  53. package/dist/types/components/Map/enum/ship.d.ts +0 -50
  54. package/dist/types/components/Map/function/renderPolygon.d.ts +0 -25
  55. package/dist/types/components/Map/function/ship/label.d.ts +0 -5
  56. package/dist/types/components/Map/function/shipTrack.d.ts +0 -16
  57. package/dist/types/components/Map/interface/common/BaseEntity.d.ts +0 -29
  58. package/dist/types/components/Map/interface/common/page.d.ts +0 -34
  59. package/dist/types/components/Map/interface/entity/dashboard.d.ts +0 -16
  60. package/dist/types/components/Map/interface/entity/map.d.ts +0 -36
  61. package/dist/types/components/Map/interface/entity/point.d.ts +0 -10
  62. package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +0 -86
  63. package/dist/types/components/Map/interface/entity/render.d.ts +0 -57
  64. package/dist/types/components/Map/interface/entity/ship.d.ts +0 -361
  65. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +0 -210
  66. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +0 -27
  67. package/dist/types/components/Map/interface/entity/shipMarker.d.ts +0 -8
  68. package/dist/types/components/Map/interface/entity/shipTrack.d.ts +0 -56
  69. package/dist/types/components/Map/interface/entity/vehicle.d.ts +0 -345
  70. package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +0 -20
  71. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +0 -15
  72. package/dist/types/components/Map/render/canvasRender/geometry.d.ts +0 -22
  73. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +0 -5
  74. package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +0 -10
  75. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +0 -5
  76. package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +0 -12
  77. package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +0 -3
  78. package/dist/types/components/Map/render/drawPolygon.d.ts +0 -10
  79. package/dist/types/components/Map/render/renderDashboard.d.ts +0 -12
  80. package/dist/types/components/Map/render/renderMarker.d.ts +0 -7
  81. package/dist/types/components/Map/render/renderPoint.d.ts +0 -80
  82. package/dist/types/components/Map/render/renderShip.d.ts +0 -20
  83. package/dist/types/components/Map/render/renderTrack.d.ts +0 -12
  84. package/dist/types/components/Map/render/renderTruck.d.ts +0 -10
  85. package/dist/types/components/Map/utils/common.d.ts +0 -27
  86. package/dist/types/components/Map/utils/format.d.ts +0 -10
  87. package/dist/types/components/Map/utils/overlay.d.ts +0 -5
  88. package/dist/types/components/Map/utils/store.d.ts +0 -32
  89. package/dist/types/components/Map/utils/transform.d.ts +0 -44
  90. package/dist/types/components/MoneyInput/types.d.ts +0 -1
  91. package/dist/types/components/PageHeadPanel/types.d.ts +0 -1
  92. package/dist/types/components/ToolTips/types.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhihao-ui",
3
- "version": "1.3.64-alpha.2",
3
+ "version": "1.3.65-alpha.1",
4
4
  "description": "components",
5
5
  "type": "module",
6
6
  "main": "./dist/umd/index.umd.cjs",
@@ -1,405 +0,0 @@
1
- import { defineComponent as le, useModel as de, ref as R, computed as S, openBlock as d, createBlock as m, unref as p, withCtx as v, createVNode as $, mergeProps as U, createElementBlock as f, Fragment as C, renderList as q, normalizeClass as H, toDisplayString as g, renderSlot as D, createTextVNode as O, resolveDynamicComponent as ie, createCommentVNode as E, createElementVNode as b, mergeModels as se } from "vue";
2
- import { D as B } from "./BaseItem-B9hyAgCm.js";
3
- import { m as _, e as K, n as ne, o as ue, p as V, q as W, r as pe, s as X, b as Z } from "./vendor-BnoIpJXx.js";
4
- import { _ as fe } from "./Button-CSE0Mb4I.js";
5
- import { w as he } from "./utils-SutTRvhl.js";
6
- var w = /* @__PURE__ */ ((h) => (h.AUTOCOMPLETE = "autocomplete", h.FORMAT = "format", h.TEXT = "text", h.INDEX = "index", h.SELECTION = "selection", h))(w || {});
7
- const me = { key: 0 }, ve = {
8
- key: 1,
9
- class: "col-edit-header"
10
- }, we = ["onClick"], ce = { key: 0 }, ye = { class: "header-operation-container" }, ge = { class: "operation-container" }, Ce = ["onClick"], P = "$ZH_DIV$", Ee = /* @__PURE__ */ le({
11
- name: "zh-diy-data-table",
12
- __name: "DiyDataTable",
13
- props: /* @__PURE__ */ se({
14
- isEdit: { type: Boolean, default: !1 },
15
- maxRowLength: { default: 50 },
16
- maxColLength: { default: 10 },
17
- defaultMinWidth: { default: 120 },
18
- beforeAddRow: {},
19
- addRowText: { default: "增行" },
20
- addColumnText: { default: "增列" },
21
- customAddRow: { type: Boolean, default: !0 },
22
- customAddColumn: { type: Boolean, default: !0 },
23
- operationOption: {},
24
- canOnlyEditNewlyColumnHeader: { type: Boolean, default: !1 },
25
- rowKey: { default: "id" }
26
- }, {
27
- rawData: { required: !0 },
28
- rawDataModifiers: {}
29
- }),
30
- emits: ["update:rawData"],
31
- setup(h, { expose: z }) {
32
- const s = h, n = de(h, "rawData"), i = R([]), A = S(() => s.rowKey || "id");
33
- let L = 0;
34
- const c = R({
35
- isShow: !0,
36
- width: 150,
37
- customAddRow: !0,
38
- addRowText: "增行",
39
- customAddColumn: !0,
40
- addColumnText: "增列"
41
- }), y = S(() => s.operationOption ? {
42
- ...c.value,
43
- ...s.operationOption || {}
44
- } : {
45
- ...c.value,
46
- // 兼容之前单个配置项
47
- customAddRow: s.customAddRow !== void 0 ? s.customAddRow : c.value.customAddRow,
48
- addRowText: s.addRowText !== void 0 ? s.addRowText : c.value.addRowText,
49
- customAddColumn: s.customAddColumn !== void 0 ? s.customAddColumn : c.value.customAddColumn,
50
- addColumnText: s.addColumnText !== void 0 ? s.addColumnText : c.value.addColumnText
51
- }), x = () => (L++, `key_${Date.now()}_${L}_${Math.random().toString(36).substring(2, 11)}`), M = () => {
52
- if (n.value.length === s.maxRowLength) {
53
- _({
54
- message: `最多添加${s.maxRowLength}行`,
55
- type: "warning"
56
- });
57
- return;
58
- }
59
- const t = A.value;
60
- let o = {
61
- [t]: x()
62
- };
63
- s.beforeAddRow && (o = s.beforeAddRow(n.value), o[t] || (o[t] = x())), n.value.push(o);
64
- }, N = () => {
65
- if (i.value.filter((e) => e.isAdd).length >= s.maxColLength) {
66
- _({
67
- message: `最多添加${s.maxColLength}列`,
68
- type: "warning"
69
- });
70
- return;
71
- }
72
- const o = String(Date.now());
73
- i.value.push({
74
- prop: o,
75
- label: "",
76
- isEditHeader: !0,
77
- isAdd: !0,
78
- maxlength: 15,
79
- minWidth: 150,
80
- headerMaxlength: 15,
81
- isNewlyColumn: !0
82
- });
83
- }, j = (t, o) => {
84
- i.value.splice(t, 1), n.value.forEach((e) => {
85
- delete e[o.prop];
86
- });
87
- }, G = (t) => {
88
- t === 0 && i.value.forEach((o) => {
89
- o.isSameData && (n.value[1][o.prop] = n.value[0][o.prop]);
90
- }), n.value.splice(t, 1);
91
- }, J = (t, o, e) => {
92
- o(
93
- e.completeList.filter((a) => a.includes(t)).map((a) => ({ value: a }))
94
- );
95
- }, Q = (t) => [
96
- {
97
- validator: (o, e, a) => {
98
- if (!i.value[t].label) {
99
- a(new Error("请输入表头"));
100
- return;
101
- }
102
- a();
103
- },
104
- message: "请输入表头",
105
- trigger: ["blur", "change"]
106
- }
107
- ], Y = (t, o, e) => {
108
- const a = [];
109
- return t.required && a.push({
110
- required: !0,
111
- message: t.requiredMessage || t.label + "不能为空",
112
- trigger: t.slot ? void 0 : "blur"
113
- }), t.varidate && a.push({
114
- validator: (r, l, u) => {
115
- const k = t.varidate(l, o, e);
116
- k !== !0 ? u(new Error(k)) : u();
117
- }
118
- // trigger: column.slot ? undefined : "blur",
119
- }), a;
120
- }, ee = (t, o) => {
121
- let e = t;
122
- return o.isSameData && (e = n.value[0] || B), o.formatter ? o.showFormatter ? o.type === w.FORMAT ? o.showFormatter(o.formatter(e)) : o.showFormatter(e[o.prop]) : o.formatter(e[o.prop]) : e[o.prop] || B;
123
- }, T = R(), te = (t, o, e) => {
124
- if (t.headerRender) {
125
- const { column: a, ...r } = e, l = {
126
- $index: o,
127
- column: a,
128
- ...r
129
- };
130
- return () => t.headerRender(l);
131
- }
132
- return null;
133
- }, I = [w.INDEX, w.SELECTION], oe = {
134
- width: 132,
135
- type: w.INDEX,
136
- prop: "index",
137
- label: "序号",
138
- fixed: "left",
139
- isShow: !0
140
- // 默认显示序号列
141
- }, ae = {
142
- width: 55,
143
- type: w.SELECTION,
144
- isShow: !1
145
- // 默认不显示多选列
146
- }, F = R([oe, ae]), re = S(() => F.value.filter((t) => t.isShow));
147
- return z({
148
- /** 初始化数据 */
149
- initData: (t, o) => {
150
- I.forEach((a, r) => {
151
- const l = (o || []).find((u) => u.type === a);
152
- l && (F.value[r] = {
153
- ...l,
154
- isShow: l.isShow !== !1
155
- });
156
- }), t = K(t) || [];
157
- const e = A.value;
158
- t.length === 0 ? t.push({ [e]: x() }) : t.forEach((a) => {
159
- a[e] || (a[e] = x());
160
- }), o = [
161
- ...o.filter(
162
- (a) => !I.includes(a.type)
163
- )
164
- ];
165
- for (const a in t[0])
166
- if (!o.some(
167
- (r) => r.prop === a
168
- )) {
169
- const r = Date.now() + a, l = a.split(P);
170
- if (l.length !== 2) {
171
- console.log("keySplit 失败", a);
172
- continue;
173
- }
174
- const u = Number(l[1]);
175
- o[u] = {
176
- prop: a,
177
- isEditHeader: !0,
178
- label: l[0],
179
- key: r,
180
- isAdd: !0,
181
- maxlength: 15,
182
- headerMaxlength: 15,
183
- // 是否是本地新增的数据
184
- isNewlyColumn: !1
185
- };
186
- }
187
- n.value = t, i.value = o.filter((a) => a);
188
- },
189
- /** 获取数据 */
190
- getData: async () => {
191
- await T.value.validate();
192
- for (const o in i.value) {
193
- const e = i.value[o];
194
- for (const a of i.value)
195
- if (e.prop !== a.prop && e.label === a.label) {
196
- _({
197
- message: "所有列的表头不可重复",
198
- type: "warning"
199
- });
200
- return;
201
- }
202
- }
203
- const t = K(n.value);
204
- for (const o in t) {
205
- const e = t[o];
206
- for (const a in i.value) {
207
- const r = i.value[a];
208
- if (r.isSameData && o !== "0" && (e[r.prop] = t[0][r.prop]), r.varidate && !r.varidate(e[r.prop], e, o))
209
- return;
210
- if (r.isAdd) {
211
- const l = e[r.prop];
212
- delete e[r.prop];
213
- const u = r.label + P + a;
214
- e[u] = l;
215
- }
216
- r.formatter && r.type === w.FORMAT && (e[r.prop] = r.formatter(e));
217
- }
218
- }
219
- return {
220
- data: t,
221
- columns: i.value
222
- };
223
- },
224
- /** 更新列配置数据 */
225
- updateColumn: (t, o) => {
226
- const e = i.value[t].prop;
227
- if (i.value[t] = o, e !== o.prop)
228
- for (const a of n.value)
229
- a[o.prop] = a[e], delete a[e];
230
- },
231
- /** 重置默认列配置数据 */
232
- resetColumns: (t, o = !1) => {
233
- const a = i.value.filter((l) => !l.isAdd).reduce((l, u) => (t.some((k) => k.prop === u.prop) || l.push(u.prop), l), []);
234
- n.value.forEach((l) => {
235
- a.forEach((u) => {
236
- delete l[u];
237
- });
238
- });
239
- const r = i.value.filter((l) => l.isAdd);
240
- o ? i.value = [...t] : i.value = [...t, ...r];
241
- },
242
- onAddRow: M,
243
- onAddColumn: N,
244
- // 导出formRef
245
- formRef: T,
246
- // 导出columns
247
- getColumns: () => i.value
248
- }), (t, o) => (d(), m(p(ne), {
249
- class: "diy-data-table",
250
- model: h.rawData,
251
- ref_key: "formRef",
252
- ref: T
253
- }, {
254
- default: v(() => [
255
- $(p(ue), U({
256
- class: "diy-data-table-table",
257
- data: n.value,
258
- "row-key": A.value
259
- }, t.$attrs), {
260
- default: v(() => [
261
- (d(!0), f(C, null, q(re.value, (e, a) => (d(), m(p(V), U({
262
- key: `special-${a}`,
263
- ref_for: !0
264
- }, e), null, 16))), 128)),
265
- (d(!0), f(C, null, q(i.value, (e, a) => (d(), m(p(V), {
266
- key: e.key || a,
267
- prop: e.prop,
268
- label: e.label,
269
- width: e.width,
270
- "min-width": e.minWidth || t.defaultMinWidth,
271
- fixed: e.fixed
272
- }, {
273
- header: v((r) => [
274
- e.headerRender ? (d(), m(ie(te(e, a, r)), { key: 0 })) : (d(), f(C, { key: 1 }, [
275
- t.isEdit ? e.isEditHeader && t.canOnlyEditNewlyColumnHeader && e.isNewlyColumn || e.isEditHeader && !t.canOnlyEditNewlyColumnHeader ? (d(), f("div", ve, [
276
- $(p(W), {
277
- prop: `columns.${a}`,
278
- rules: Q(a)
279
- }, {
280
- default: v(() => [
281
- $(p(X), {
282
- modelValue: e.label,
283
- "onUpdate:modelValue": (l) => e.label = l,
284
- maxlength: e.headerMaxlength || 20,
285
- placeholder: "请输入表头"
286
- }, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength"])
287
- ]),
288
- _: 2
289
- }, 1032, ["prop", "rules"]),
290
- e.isAdd ? (d(), f("i", {
291
- key: 0,
292
- class: "iconfont icon-close",
293
- onClick: (l) => j(a, e)
294
- }, null, 8, we)) : E("", !0)
295
- ])) : (d(), f("div", {
296
- key: 2,
297
- class: H({ "is-required-label": e.required })
298
- }, g(e.label), 3)) : (d(), f("div", me, g(e.label), 1))
299
- ], 64))
300
- ]),
301
- default: v((r) => [
302
- s.isEdit && (!e.isSameData || r.$index === 0) && e.type !== p(w).TEXT && !r.row.disabled ? (d(), m(p(W), {
303
- key: 0,
304
- prop: `${r.$index}.${e.prop}`,
305
- rules: Y(e, r.row, r.$index),
306
- class: H(["col-edit-container", { "close-padding": e.isAdd }])
307
- }, {
308
- default: v(() => [
309
- e.type === p(w).FORMAT && e.formatter ? (d(), f("div", ce, g(e.showFormatter ? e.showFormatter(
310
- e.formatter(r.row)
311
- ) : e.formatter(r.row)), 1)) : e.type === p(w).AUTOCOMPLETE ? (d(), m(p(pe), {
312
- key: 1,
313
- modelValue: r.row[e.prop],
314
- "onUpdate:modelValue": (l) => r.row[e.prop] = l,
315
- placeholder: e.placeholder || "请输入",
316
- "fetch-suggestions": (l, u) => J(l, u, e),
317
- maxlength: e.maxlength || 20
318
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : e.slot ? D(t.$slots, e.slot, {
319
- key: 2,
320
- row: r.row,
321
- $index: r.$index
322
- }, void 0, !0) : (d(), m(p(X), {
323
- key: 3,
324
- modelValue: r.row[e.prop],
325
- "onUpdate:modelValue": (l) => r.row[e.prop] = l,
326
- placeholder: e.placeholder || "请输入",
327
- formatter: e.formatter,
328
- parser: e.parser,
329
- maxlength: e.maxlength || 20,
330
- "show-word-limit": e.showWordLimit
331
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "formatter", "parser", "maxlength", "show-word-limit"]))
332
- ]),
333
- _: 2
334
- }, 1032, ["prop", "rules", "class"])) : e.slot ? D(t.$slots, e.slot, {
335
- key: 1,
336
- row: r.row,
337
- $index: r.$index
338
- }, void 0, !0) : (d(), f(C, { key: 2 }, [
339
- O(g(ee(r.row, e)), 1)
340
- ], 64))
341
- ]),
342
- _: 2
343
- }, 1032, ["prop", "label", "width", "min-width", "fixed"]))), 128)),
344
- s.isEdit && y.value.isShow ? (d(), m(p(V), {
345
- key: 0,
346
- width: y.value.width,
347
- fixed: "right"
348
- }, {
349
- header: v(() => [
350
- b("div", ye, [
351
- y.value.customAddRow ? (d(), m(p(Z), {
352
- key: 0,
353
- type: "primary",
354
- link: "",
355
- onClick: M
356
- }, {
357
- default: v(() => [
358
- o[0] || (o[0] = b("i", { class: "iconfont icon-Frame1" }, null, -1)),
359
- O(g(y.value.addRowText), 1)
360
- ]),
361
- _: 1
362
- })) : E("", !0),
363
- y.value.customAddColumn ? (d(), m(p(Z), {
364
- key: 1,
365
- type: "primary",
366
- link: "",
367
- onClick: N
368
- }, {
369
- default: v(() => [
370
- o[1] || (o[1] = b("i", { class: "iconfont icon-Frame-11" }, null, -1)),
371
- O(g(y.value.addColumnText), 1)
372
- ]),
373
- _: 1
374
- })) : E("", !0)
375
- ])
376
- ]),
377
- default: v(({ $index: e, row: a }) => [
378
- b("div", ge, [
379
- t.$slots.operation ? D(t.$slots, "operation", {
380
- key: 0,
381
- row: n.value[e],
382
- $index: e
383
- }, void 0, !0) : (d(), f(C, { key: 1 }, [
384
- n.value.length > 1 && !a.disabled ? (d(), f("i", {
385
- key: 0,
386
- class: "iconfont icon-close",
387
- onClick: (r) => G(e)
388
- }, null, 8, Ce)) : E("", !0)
389
- ], 64))
390
- ])
391
- ]),
392
- _: 3
393
- }, 8, ["width"])) : E("", !0)
394
- ]),
395
- _: 3
396
- }, 16, ["data", "row-key"])
397
- ]),
398
- _: 3
399
- }, 8, ["model"]));
400
- }
401
- }), xe = /* @__PURE__ */ fe(Ee, [["__scopeId", "data-v-007b68b0"]]), Se = he(xe);
402
- export {
403
- w as D,
404
- Se as Z
405
- };
@@ -1,36 +0,0 @@
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-B9hyAgCm.js";
3
- import { _ } from "./Button-CSE0Mb4I.js";
4
- import { w as u } from "./utils-SutTRvhl.js";
5
- const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
6
- key: 0,
7
- class: "info-pair--title--tip"
8
- }, E = /* @__PURE__ */ l({
9
- name: "zh-info-pair",
10
- __name: "InfoPair",
11
- props: {
12
- title: {},
13
- value: {},
14
- ellipsis: { type: Boolean },
15
- tip: {}
16
- },
17
- setup(n) {
18
- const o = n;
19
- return (e, k) => (i(), s("div", v, [
20
- a("div", h, [
21
- r(t(o.title) + " ", 1),
22
- e.tip ? (i(), s("div", I, t(e.tip), 1)) : p("", !0)
23
- ]),
24
- a("div", {
25
- class: c(["info-pair--value", { ellipsis: e.ellipsis }])
26
- }, [
27
- m(e.$slots, "value", {}, () => [
28
- r(t(o.value || f(d)), 1)
29
- ], !0)
30
- ], 2)
31
- ]));
32
- }
33
- }), V = /* @__PURE__ */ _(E, [["__scopeId", "data-v-5a1b0655"]]), N = u(V);
34
- export {
35
- N as Z
36
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,36 +0,0 @@
1
- import { BaseMapType, COPY_RIGHT_TYPE } from '../types.ts';
2
-
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- type?: number;
5
- mapTile: number;
6
- }>, {
7
- type: COPY_RIGHT_TYPE;
8
- mapTile: BaseMapType;
9
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
- type?: number;
11
- mapTile: number;
12
- }>, {
13
- type: COPY_RIGHT_TYPE;
14
- mapTile: BaseMapType;
15
- }>>> & Readonly<{}>, {
16
- type: number;
17
- mapTile: number;
18
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
- export default _default;
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToRuntimeProps<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
- type __VLS_WithDefaults<P, D> = {
30
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
- default: D[K];
32
- }> : P[K];
33
- };
34
- type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
@@ -1,23 +0,0 @@
1
- declare function removeInteraction(): void;
2
- declare function addInteraction(): void;
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
- visible: import('vue').PropType<boolean>;
5
- viewMode: {
6
- type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip" | "markerPosition">;
7
- required: true;
8
- };
9
- }>, {
10
- addInteraction: typeof addInteraction;
11
- removeInteraction: typeof removeInteraction;
12
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- close: (...args: any[]) => void;
14
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
- visible: import('vue').PropType<boolean>;
16
- viewMode: {
17
- type: import('vue').PropType<"PC" | "WxMiniprogram" | "APP" | "findShip" | "markerPosition">;
18
- required: true;
19
- };
20
- }>> & Readonly<{
21
- onClose?: ((...args: any[]) => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
- export default _default;
@@ -1,40 +0,0 @@
1
- import { BaseMapType } from '../types.ts';
2
-
3
- declare function __VLS_template(): {
4
- toolPanel?(_: {}): any;
5
- };
6
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- vehicleMode: "truck" | "ship";
8
- viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip" | "markerPosition";
9
- disableGreenDot: boolean;
10
- showTrackLayer: boolean;
11
- mapTileMode: BaseMapType;
12
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- switchGreenDot: (...args: any[]) => void;
14
- switchMapTile: (...args: any[]) => void;
15
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
16
- vehicleMode: "truck" | "ship";
17
- viewMode: "PC" | "WxMiniprogram" | "APP" | "findShip" | "markerPosition";
18
- disableGreenDot: boolean;
19
- showTrackLayer: boolean;
20
- mapTileMode: BaseMapType;
21
- }>>> & Readonly<{
22
- onSwitchGreenDot?: ((...args: any[]) => any) | undefined;
23
- onSwitchMapTile?: ((...args: any[]) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
26
- export default _default;
27
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
- type __VLS_TypePropsToRuntimeProps<T> = {
29
- [K in keyof T]-?: {} extends Pick<T, K> ? {
30
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
- } : {
32
- type: import('vue').PropType<T[K]>;
33
- required: true;
34
- };
35
- };
36
- type __VLS_WithTemplateSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };
@@ -1,32 +0,0 @@
1
- export declare const CDN_URL = "https://static.zhihaoscm.cn/";
2
- export declare const tiandituKey = "a6e8f78974f2581f2ca00485b40c948f";
3
- export declare const zhongkeKey = "15c81cc0a191a232e0a0ca1a51c3ca81";
4
- export declare const baseMap: {
5
- tiandituTile: string;
6
- tiandituTileMark: string;
7
- tiandituImgTile: string;
8
- tiandituImgTileMark: string;
9
- greenTile: string;
10
- };
11
- export declare const mapZoom: {
12
- default: number;
13
- min: number;
14
- max: number;
15
- findShipMin: number;
16
- findShip: number;
17
- findTruck: number;
18
- shipGreenDotMax: number;
19
- truckDefault: number;
20
- truckStatistics: number;
21
- shipModelMin: number;
22
- shipModelMax: number;
23
- markerPosition: number;
24
- };
25
- export declare const renderShipsLimit = 200;
26
- export declare const mapDefaultCenter: [number, number];
27
- export declare const projection: {
28
- data: string;
29
- mercator: string;
30
- };
31
- export declare const LOG_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss";
32
- export declare const DEFAULT_VALUE = "--";
@@ -1,5 +0,0 @@
1
- export declare enum CAR_COLOR {
2
- BLUE = 1,// 蓝色
3
- YELLOW = 2,// 黄色
4
- Y_GREEN = 3
5
- }
@@ -1,8 +0,0 @@
1
- export declare enum DEVICE_TYPE {
2
- HOST = 1,//主机
3
- TALK = 2,//对讲机
4
- STORAGE = 3,//存储卡
5
- INTERNET = 4,//物联网卡
6
- CAMERA = 5,//尾厢摄像机
7
- LOAD = 6
8
- }
@@ -1,5 +0,0 @@
1
- export { CAR_COLOR } from './car';
2
- export { DEVICE_TYPE } from './device';
3
- export { LENGTH_UNIT } from './openLayers';
4
- export { LENGTH_UNIT_LABEL } from './openLayers';
5
- export { SEARCH_TYPE, SWITCH_BTN } from './ship';
@@ -1,10 +0,0 @@
1
- export declare enum LENGTH_UNIT {
2
- M = 1,// m
3
- KM = 2,// km
4
- NM = 3
5
- }
6
- export declare const LENGTH_UNIT_LABEL: {
7
- 1: string;
8
- 2: string;
9
- 3: string;
10
- };