zhihao-ui 1.3.64 → 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 (95) 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 +665 -378
  29. package/dist/types/components/DiyDataTable/index.d.ts +1974 -1131
  30. package/dist/types/components/DiyDataTable/type.d.ts +19 -4
  31. package/dist/types/components/Map/Map.vue.d.ts +13 -13
  32. package/dist/types/components/Map/index.d.ts +39 -39
  33. package/dist/types/components/Map/useMap.d.ts +38 -2
  34. package/dist/types/components/utils.d.ts +1 -1
  35. package/dist/umd/index.css +1 -1
  36. package/dist/umd/index.umd.cjs +58 -66
  37. package/package.json +1 -1
  38. package/dist/es/DiyDataTable-SdMOvzzG.js +0 -369
  39. package/dist/es/InfoPair-C8tc2XjH.js +0 -36
  40. package/dist/types/components/Button/types.d.ts +0 -1
  41. package/dist/types/components/DatePicker/types.d.ts +0 -1
  42. package/dist/types/components/EditInfoPair/types.d.ts +0 -1
  43. package/dist/types/components/FileWrapper/types.d.ts +0 -1
  44. package/dist/types/components/InfoPair/types.d.ts +0 -1
  45. package/dist/types/components/Input/types.d.ts +0 -1
  46. package/dist/types/components/InputNumber/types.d.ts +0 -1
  47. package/dist/types/components/Loading/types.d.ts +0 -1
  48. package/dist/types/components/Map/components/copyright.vue.d.ts +0 -36
  49. package/dist/types/components/Map/components/measure.vue.d.ts +0 -23
  50. package/dist/types/components/Map/components/toolPanel.vue.d.ts +0 -40
  51. package/dist/types/components/Map/config.d.ts +0 -32
  52. package/dist/types/components/Map/enum/car.d.ts +0 -5
  53. package/dist/types/components/Map/enum/device.d.ts +0 -8
  54. package/dist/types/components/Map/enum/index.d.ts +0 -5
  55. package/dist/types/components/Map/enum/openLayers.d.ts +0 -10
  56. package/dist/types/components/Map/enum/ship.d.ts +0 -50
  57. package/dist/types/components/Map/function/renderPolygon.d.ts +0 -25
  58. package/dist/types/components/Map/function/ship/label.d.ts +0 -5
  59. package/dist/types/components/Map/function/shipTrack.d.ts +0 -16
  60. package/dist/types/components/Map/interface/common/BaseEntity.d.ts +0 -29
  61. package/dist/types/components/Map/interface/common/page.d.ts +0 -34
  62. package/dist/types/components/Map/interface/entity/dashboard.d.ts +0 -16
  63. package/dist/types/components/Map/interface/entity/map.d.ts +0 -36
  64. package/dist/types/components/Map/interface/entity/point.d.ts +0 -10
  65. package/dist/types/components/Map/interface/entity/queryLicenseResponse.d.ts +0 -86
  66. package/dist/types/components/Map/interface/entity/render.d.ts +0 -57
  67. package/dist/types/components/Map/interface/entity/ship.d.ts +0 -361
  68. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +0 -210
  69. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +0 -27
  70. package/dist/types/components/Map/interface/entity/shipMarker.d.ts +0 -8
  71. package/dist/types/components/Map/interface/entity/shipTrack.d.ts +0 -56
  72. package/dist/types/components/Map/interface/entity/vehicle.d.ts +0 -345
  73. package/dist/types/components/Map/interface/vo/vehicleVo.d.ts +0 -20
  74. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +0 -15
  75. package/dist/types/components/Map/render/canvasRender/geometry.d.ts +0 -22
  76. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +0 -5
  77. package/dist/types/components/Map/render/canvasRender/renderPointStyle.d.ts +0 -10
  78. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +0 -5
  79. package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +0 -12
  80. package/dist/types/components/Map/render/canvasRender/renderTruckStyle.d.ts +0 -3
  81. package/dist/types/components/Map/render/drawPolygon.d.ts +0 -10
  82. package/dist/types/components/Map/render/renderDashboard.d.ts +0 -12
  83. package/dist/types/components/Map/render/renderMarker.d.ts +0 -7
  84. package/dist/types/components/Map/render/renderPoint.d.ts +0 -80
  85. package/dist/types/components/Map/render/renderShip.d.ts +0 -20
  86. package/dist/types/components/Map/render/renderTrack.d.ts +0 -12
  87. package/dist/types/components/Map/render/renderTruck.d.ts +0 -10
  88. package/dist/types/components/Map/utils/common.d.ts +0 -27
  89. package/dist/types/components/Map/utils/format.d.ts +0 -10
  90. package/dist/types/components/Map/utils/overlay.d.ts +0 -5
  91. package/dist/types/components/Map/utils/store.d.ts +0 -32
  92. package/dist/types/components/Map/utils/transform.d.ts +0 -44
  93. package/dist/types/components/MoneyInput/types.d.ts +0 -1
  94. package/dist/types/components/PageHeadPanel/types.d.ts +0 -1
  95. package/dist/types/components/ToolTips/types.d.ts +0 -1
@@ -0,0 +1,448 @@
1
+ import { defineComponent as ne, mergeModels as ue, useModel as pe, ref as A, computed as O, createBlock as w, openBlock as i, unref as p, withCtx as v, createVNode as $, mergeProps as I, createElementBlock as h, createCommentVNode as k, Fragment as R, renderList as K, renderSlot as L, normalizeClass as P, toDisplayString as E, createTextVNode as M, resolveDynamicComponent as fe, createElementVNode as T } from "vue";
2
+ import { D as W } from "./BaseItem-m83RrA2F.js";
3
+ import { m as V, i as X, n as he, o as me, p as N, q as Z, r as we, s as z, b as j } from "./vendor-CrOEdcTJ.js";
4
+ import { _ as ve } from "./Button-BbbSzwN-.js";
5
+ import { w as ce } from "./utils-BCPlncac.js";
6
+ var c = /* @__PURE__ */ ((m) => (m.AUTOCOMPLETE = "autocomplete", m.FORMAT = "format", m.TEXT = "text", m.INDEX = "index", m.SELECTION = "selection", m))(c || {});
7
+ const ye = { key: 0 }, Ce = {
8
+ key: 1,
9
+ class: "col-edit-header"
10
+ }, ge = ["onClick"], xe = {
11
+ key: 0,
12
+ class: "col-edit-container-text"
13
+ }, Ee = { class: "header-operation-container" }, ke = { class: "operation-container" }, Re = ["onClick"], G = "$ZH_DIV$", be = /* @__PURE__ */ ne({
14
+ name: "zh-diy-data-table",
15
+ __name: "DiyDataTable",
16
+ props: /* @__PURE__ */ ue({
17
+ isEdit: { type: Boolean, default: !1 },
18
+ maxRowLength: { default: 50 },
19
+ maxColLength: { default: 10 },
20
+ defaultMinWidth: { default: 120 },
21
+ beforeAddRow: {},
22
+ addRowText: { default: "增行" },
23
+ addColumnText: { default: "增列" },
24
+ customAddRow: { type: Boolean, default: !0 },
25
+ customAddColumn: { type: Boolean, default: !0 },
26
+ operationOption: {},
27
+ canOnlyEditNewlyColumnHeader: { type: Boolean, default: !1 },
28
+ rowKey: { default: "id" }
29
+ }, {
30
+ rawData: { required: !0 },
31
+ rawDataModifiers: {}
32
+ }),
33
+ emits: ["update:rawData"],
34
+ setup(m, { expose: J }) {
35
+ const n = m, u = pe(m, "rawData"), s = A([]), _ = O(() => n.rowKey || "id");
36
+ let F = 0;
37
+ const y = A({
38
+ isShow: !0,
39
+ width: 150,
40
+ customAddRow: !0,
41
+ addRowText: "增行",
42
+ customAddColumn: !0,
43
+ addColumnText: "增列"
44
+ }), C = O(() => n.operationOption ? {
45
+ ...y.value,
46
+ ...n.operationOption
47
+ } : {
48
+ ...y.value,
49
+ // 兼容之前单个配置项
50
+ customAddRow: n.customAddRow !== void 0 ? n.customAddRow : y.value.customAddRow,
51
+ addRowText: n.addRowText !== void 0 ? n.addRowText : y.value.addRowText,
52
+ customAddColumn: n.customAddColumn !== void 0 ? n.customAddColumn : y.value.customAddColumn,
53
+ addColumnText: n.addColumnText !== void 0 ? n.addColumnText : y.value.addColumnText
54
+ }), b = () => (F++, `key_${Date.now()}_${F}_${Math.random().toString(36).substring(2, 11)}`), U = () => {
55
+ if (u.value.length === n.maxRowLength) {
56
+ V({
57
+ message: `最多添加${n.maxRowLength}行`,
58
+ type: "warning"
59
+ });
60
+ return;
61
+ }
62
+ const t = _.value;
63
+ let o = {
64
+ [t]: b()
65
+ };
66
+ n.beforeAddRow && (o = n.beforeAddRow(u.value), o[t] || (o[t] = b())), u.value.push(o);
67
+ }, q = () => {
68
+ if (s.value.filter((e) => e.isAdd).length >= n.maxColLength) {
69
+ V({
70
+ message: `最多添加${n.maxColLength}列`,
71
+ type: "warning"
72
+ });
73
+ return;
74
+ }
75
+ const o = String(Date.now());
76
+ s.value.push({
77
+ prop: o,
78
+ label: "",
79
+ isEditHeader: !0,
80
+ isAdd: !0,
81
+ maxlength: 15,
82
+ minWidth: 150,
83
+ headerMaxlength: 15,
84
+ isNewlyColumn: !0
85
+ });
86
+ }, Q = (t, o) => {
87
+ s.value.splice(t, 1), u.value.forEach((e) => {
88
+ delete e[o.prop];
89
+ });
90
+ }, Y = (t) => {
91
+ t === 0 && s.value.forEach((o) => {
92
+ o.isSameData && (u.value[1][o.prop] = u.value[0][o.prop]);
93
+ }), u.value.splice(t, 1);
94
+ }, ee = (t, o, e) => {
95
+ o(
96
+ e.completeList.filter((a) => a.includes(t)).map((a) => ({ value: a }))
97
+ );
98
+ }, te = (t) => [
99
+ {
100
+ validator: (o, e, a) => {
101
+ if (!s.value[t].label) {
102
+ a(new Error("请输入表头"));
103
+ return;
104
+ }
105
+ a();
106
+ },
107
+ message: "请输入表头",
108
+ trigger: ["blur", "change"]
109
+ }
110
+ ], oe = (t, o, e) => {
111
+ const a = [];
112
+ return t.required && a.push({
113
+ required: !0,
114
+ message: t.requiredMessage || t.label + "不能为空",
115
+ trigger: t.slot ? void 0 : "blur"
116
+ }), t.varidate && a.push({
117
+ validator: (r, l, d) => {
118
+ const f = t.varidate(l, o, e);
119
+ f !== !0 ? d(new Error(f)) : d();
120
+ }
121
+ // trigger: column.slot ? undefined : "blur",
122
+ }), a;
123
+ }, ae = (t, o) => {
124
+ let e = t;
125
+ return o.isSameData && (e = u.value[0] || W), o.formatter ? o.showFormatter ? o.type === c.FORMAT ? o.showFormatter(o.formatter(e)) : o.showFormatter(e[o.prop]) : o.formatter(e[o.prop]) : e[o.prop] || W;
126
+ }, D = A(), re = [
127
+ "isAdd",
128
+ "maxlength",
129
+ "headerMaxlength",
130
+ "placeholder",
131
+ "required",
132
+ "requiredMessage",
133
+ "isEditHeader",
134
+ "isSameData",
135
+ "completeList",
136
+ "formatter",
137
+ "showFormatter",
138
+ "parser",
139
+ "varidate",
140
+ "slot",
141
+ "isShow",
142
+ "isNewlyColumn",
143
+ "showWordLimit",
144
+ "headerRender"
145
+ ], le = (t) => {
146
+ const o = {};
147
+ for (const e in t)
148
+ re.includes(e) || (o[e] = t[e]);
149
+ return o;
150
+ }, de = (t, o, e) => {
151
+ if (t.headerRender) {
152
+ const { column: a, ...r } = e, l = {
153
+ $index: o,
154
+ column: a,
155
+ ...r
156
+ };
157
+ return () => t.headerRender(l);
158
+ }
159
+ return null;
160
+ }, S = [c.INDEX, c.SELECTION], H = {
161
+ width: 132,
162
+ type: c.INDEX,
163
+ prop: "index",
164
+ label: "序号",
165
+ fixed: "left",
166
+ isShow: !0
167
+ // 默认显示序号列
168
+ }, B = {
169
+ width: 55,
170
+ type: c.SELECTION,
171
+ isShow: !1
172
+ // 默认不显示多选列
173
+ }, g = A([H, B]), ie = O(() => g.value.filter((t) => t.isShow));
174
+ return J({
175
+ /** 初始化数据 */
176
+ initData: (t, o) => {
177
+ S.forEach((a) => {
178
+ const r = (o || []).find((l) => l.type === a);
179
+ if (r) {
180
+ const l = g.value.findIndex((d) => d.type === a);
181
+ l > -1 && (g.value[l] = {
182
+ ...r,
183
+ isShow: r.isShow !== !1
184
+ });
185
+ }
186
+ }), t = X(t) || [];
187
+ const e = _.value;
188
+ t.length === 0 ? t.push({ [e]: b() }) : t.forEach((a) => {
189
+ a[e] || (a[e] = b());
190
+ }), o = [
191
+ ...o.filter(
192
+ (a) => !S.includes(a.type)
193
+ )
194
+ ];
195
+ for (const a in t[0])
196
+ if (!o.some(
197
+ (r) => r.prop === a
198
+ )) {
199
+ const r = Date.now() + a, l = a.split(G);
200
+ if (l.length !== 2) {
201
+ console.log("keySplit 失败", a);
202
+ continue;
203
+ }
204
+ const d = Number(l[1]);
205
+ o[d] = {
206
+ prop: a,
207
+ isEditHeader: !0,
208
+ label: l[0],
209
+ key: r,
210
+ isAdd: !0,
211
+ maxlength: 15,
212
+ headerMaxlength: 15,
213
+ // 是否是本地新增的数据
214
+ isNewlyColumn: !1
215
+ };
216
+ }
217
+ u.value = t, s.value = o.filter((a) => a);
218
+ },
219
+ /** 获取数据 */
220
+ getData: async () => {
221
+ await D.value.validate();
222
+ for (const o in s.value) {
223
+ const e = s.value[o];
224
+ for (const a of s.value)
225
+ if (e.prop !== a.prop && e.label === a.label) {
226
+ V({
227
+ message: "所有列的表头不可重复",
228
+ type: "warning"
229
+ });
230
+ return;
231
+ }
232
+ }
233
+ const t = X(u.value);
234
+ for (const o in t) {
235
+ const e = t[o];
236
+ for (const a in s.value) {
237
+ const r = s.value[a];
238
+ if (r.isSameData && o !== "0" && (e[r.prop] = t[0][r.prop]), r.varidate && !r.varidate(e[r.prop], e, o))
239
+ return;
240
+ if (r.isAdd) {
241
+ const l = e[r.prop];
242
+ delete e[r.prop];
243
+ const d = r.label + G + a;
244
+ e[d] = l;
245
+ }
246
+ r.formatter && r.type === c.FORMAT && (e[r.prop] = r.formatter(e));
247
+ }
248
+ }
249
+ return {
250
+ data: t,
251
+ columns: s.value
252
+ };
253
+ },
254
+ /** 更新列配置数据 */
255
+ updateColumn: (t, o) => {
256
+ const e = s.value[t].prop;
257
+ if (s.value[t] = o, e !== o.prop)
258
+ for (const a of u.value)
259
+ a[o.prop] = a[e], delete a[e];
260
+ },
261
+ /** 重置默认列配置数据 */
262
+ resetColumns: (t, o = !1) => {
263
+ g.value = [H, B], S.forEach((d) => {
264
+ const f = (t || []).find((x) => x.type === d);
265
+ if (f) {
266
+ const x = g.value.findIndex((se) => se.type === d);
267
+ x > -1 && (g.value[x] = {
268
+ ...f,
269
+ isShow: f.isShow !== !1
270
+ });
271
+ }
272
+ });
273
+ const a = s.value.filter((d) => !d.isAdd).reduce((d, f) => (t.some((x) => x.prop === f.prop) || d.push(f.prop), d), []);
274
+ u.value.forEach((d) => {
275
+ a.forEach((f) => {
276
+ delete d[f];
277
+ });
278
+ });
279
+ const r = s.value.filter((d) => d.isAdd), l = [
280
+ ...t.filter((d) => !S.includes(d.type))
281
+ ];
282
+ o ? s.value = [...l] : s.value = [...l, ...r];
283
+ },
284
+ onAddRow: U,
285
+ onAddColumn: q,
286
+ // 导出formRef
287
+ formRef: D,
288
+ // 导出columns
289
+ getColumns: () => s.value
290
+ }), (t, o) => (i(), w(p(he), {
291
+ class: "diy-data-table",
292
+ model: m.rawData,
293
+ ref_key: "formRef",
294
+ ref: D
295
+ }, {
296
+ default: v(() => [
297
+ $(p(me), I({
298
+ class: "diy-data-table-table",
299
+ data: u.value,
300
+ "row-key": _.value
301
+ }, t.$attrs), {
302
+ default: v(() => [
303
+ (i(!0), h(R, null, K(ie.value, (e, a) => (i(), w(p(N), I({
304
+ key: `special-${a}`,
305
+ ref_for: !0
306
+ }, e), null, 16))), 128)),
307
+ (i(!0), h(R, null, K(s.value, (e, a) => (i(), w(p(N), I({
308
+ key: e.key || a,
309
+ prop: e.prop,
310
+ label: e.label,
311
+ width: e.width,
312
+ "min-width": e.minWidth || t.defaultMinWidth,
313
+ fixed: e.fixed,
314
+ ref_for: !0
315
+ }, le(e)), {
316
+ header: v((r) => [
317
+ e.headerRender ? (i(), w(fe(de(e, a, r)), { key: 0 })) : (i(), h(R, { key: 1 }, [
318
+ t.isEdit ? e.isEditHeader && t.canOnlyEditNewlyColumnHeader && e.isNewlyColumn || e.isEditHeader && !t.canOnlyEditNewlyColumnHeader ? (i(), h("div", Ce, [
319
+ $(p(Z), {
320
+ prop: `columns.${a}`,
321
+ rules: te(a)
322
+ }, {
323
+ default: v(() => [
324
+ $(p(z), {
325
+ modelValue: e.label,
326
+ "onUpdate:modelValue": (l) => e.label = l,
327
+ maxlength: e.headerMaxlength || 20,
328
+ placeholder: "请输入表头"
329
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength"])
330
+ ]),
331
+ _: 2
332
+ }, 1032, ["prop", "rules"]),
333
+ e.isAdd ? (i(), h("i", {
334
+ key: 0,
335
+ class: "iconfont icon-close",
336
+ onClick: (l) => Q(a, e)
337
+ }, null, 8, ge)) : k("", !0)
338
+ ])) : (i(), h("div", {
339
+ key: 2,
340
+ class: P({ "is-required-label": e.required })
341
+ }, E(e.label), 3)) : (i(), h("div", ye, E(e.label), 1))
342
+ ], 64))
343
+ ]),
344
+ default: v((r) => [
345
+ n.isEdit && (!e.isSameData || r.$index === 0) && e.type !== p(c).TEXT && !r.row.disabled ? (i(), w(p(Z), {
346
+ key: 0,
347
+ prop: `${r.$index}.${e.prop}`,
348
+ rules: oe(e, r.row, r.$index),
349
+ class: P(["col-edit-container", { "close-padding": e.isAdd }])
350
+ }, {
351
+ default: v(() => [
352
+ e.type === p(c).FORMAT && e.formatter ? (i(), h("div", xe, E(e.showFormatter ? e.showFormatter(
353
+ e.formatter(r.row)
354
+ ) : e.formatter(r.row)), 1)) : e.type === p(c).AUTOCOMPLETE ? (i(), w(p(we), {
355
+ key: 1,
356
+ modelValue: r.row[e.prop],
357
+ "onUpdate:modelValue": (l) => r.row[e.prop] = l,
358
+ placeholder: e.placeholder || "请输入",
359
+ "fetch-suggestions": (l, d) => ee(l, d, e),
360
+ maxlength: e.maxlength || 20
361
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : e.slot ? L(t.$slots, e.slot, {
362
+ key: 2,
363
+ row: r.row,
364
+ $index: r.$index
365
+ }, void 0, !0) : (i(), w(p(z), {
366
+ key: 3,
367
+ modelValue: r.row[e.prop],
368
+ "onUpdate:modelValue": (l) => r.row[e.prop] = l,
369
+ placeholder: e.placeholder || "请输入",
370
+ formatter: e.formatter,
371
+ parser: e.parser,
372
+ maxlength: e.maxlength || 20,
373
+ "show-word-limit": e.showWordLimit
374
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "formatter", "parser", "maxlength", "show-word-limit"]))
375
+ ]),
376
+ _: 2
377
+ }, 1032, ["prop", "rules", "class"])) : e.slot ? L(t.$slots, e.slot, {
378
+ key: 1,
379
+ row: r.row,
380
+ $index: r.$index
381
+ }, void 0, !0) : (i(), h(R, { key: 2 }, [
382
+ M(E(ae(r.row, e)), 1)
383
+ ], 64))
384
+ ]),
385
+ _: 2
386
+ }, 1040, ["prop", "label", "width", "min-width", "fixed"]))), 128)),
387
+ n.isEdit && C.value.isShow ? (i(), w(p(N), {
388
+ key: 0,
389
+ width: C.value.width,
390
+ fixed: "right"
391
+ }, {
392
+ header: v(() => [
393
+ T("div", Ee, [
394
+ C.value.customAddRow ? (i(), w(p(j), {
395
+ key: 0,
396
+ type: "primary",
397
+ link: "",
398
+ onClick: U
399
+ }, {
400
+ default: v(() => [
401
+ o[0] || (o[0] = T("i", { class: "iconfont icon-Frame1" }, null, -1)),
402
+ M(E(C.value.addRowText), 1)
403
+ ]),
404
+ _: 1
405
+ })) : k("", !0),
406
+ C.value.customAddColumn ? (i(), w(p(j), {
407
+ key: 1,
408
+ type: "primary",
409
+ link: "",
410
+ onClick: q
411
+ }, {
412
+ default: v(() => [
413
+ o[1] || (o[1] = T("i", { class: "iconfont icon-Frame-11" }, null, -1)),
414
+ M(E(C.value.addColumnText), 1)
415
+ ]),
416
+ _: 1
417
+ })) : k("", !0)
418
+ ])
419
+ ]),
420
+ default: v(({ $index: e, row: a }) => [
421
+ T("div", ke, [
422
+ t.$slots.operation ? L(t.$slots, "operation", {
423
+ key: 0,
424
+ row: u.value[e],
425
+ $index: e
426
+ }, void 0, !0) : (i(), h(R, { key: 1 }, [
427
+ u.value.length > 1 && !a.disabled ? (i(), h("i", {
428
+ key: 0,
429
+ class: "iconfont icon-close",
430
+ onClick: (r) => Y(e)
431
+ }, null, 8, Re)) : k("", !0)
432
+ ], 64))
433
+ ])
434
+ ]),
435
+ _: 3
436
+ }, 8, ["width"])) : k("", !0)
437
+ ]),
438
+ _: 3
439
+ }, 16, ["data", "row-key"])
440
+ ]),
441
+ _: 3
442
+ }, 8, ["model"]));
443
+ }
444
+ }), Se = /* @__PURE__ */ ve(be, [["__scopeId", "data-v-61a6050f"]]), $e = ce(Se);
445
+ export {
446
+ c as D,
447
+ $e as Z
448
+ };
@@ -1,7 +1,7 @@
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-B9hyAgCm.js";
3
- import { _ } from "./Button-CSE0Mb4I.js";
4
- import { w as u } from "./utils-SutTRvhl.js";
1
+ import { defineComponent as l, createElementBlock as o, openBlock as s, createElementVNode as a, createTextVNode as r, createCommentVNode as p, toDisplayString as t, normalizeClass as c, renderSlot as d, unref as m } from "vue";
2
+ import { D as f } from "./BaseItem-m83RrA2F.js";
3
+ import { _ } from "./Button-BbbSzwN-.js";
4
+ import { w as u } from "./utils-BCPlncac.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
6
6
  key: 0,
7
7
  class: "info-pair--title--tip"
@@ -16,10 +16,10 @@ const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
16
16
  },
17
17
  setup(n) {
18
18
  const i = n;
19
- return (e, k) => (o(), s("div", v, [
19
+ return (e, k) => (s(), o("div", v, [
20
20
  a("div", h, [
21
21
  r(t(i.title) + " ", 1),
22
- e.tip ? (o(), s("div", E, t(e.tip), 1)) : p("", !0)
22
+ e.tip ? (s(), o("div", E, t(e.tip), 1)) : p("", !0)
23
23
  ]),
24
24
  a("div", {
25
25
  class: c(["info-pair--value", { ellipsis: e.ellipsis }])
@@ -30,7 +30,7 @@ const v = { class: "info-pair" }, h = { class: "info-pair--title" }, E = {
30
30
  ], 2)
31
31
  ]));
32
32
  }
33
- }), V = /* @__PURE__ */ _(I, [["__scopeId", "data-v-c62707eb"]]), N = u(V);
33
+ }), V = /* @__PURE__ */ _(I, [["__scopeId", "data-v-e6b04280"]]), N = u(V);
34
34
  export {
35
35
  N as Z
36
36
  };
@@ -1,8 +1,8 @@
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-B9hyAgCm.js";
3
- import { E as y } from "./vendor-BnoIpJXx.js";
4
- import { _ as h } from "./Button-CSE0Mb4I.js";
5
- import { w as v } from "./utils-SutTRvhl.js";
1
+ import { defineComponent as f, createElementBlock as i, openBlock as o, createCommentVNode as n, createElementVNode as t, toDisplayString as s, createVNode as p, unref as m, withCtx as _, createTextVNode as u } from "vue";
2
+ import { D as w } from "./BaseItem-m83RrA2F.js";
3
+ import { E as y } from "./vendor-CrOEdcTJ.js";
4
+ import { _ as h } from "./Button-BbbSzwN-.js";
5
+ import { w as v } from "./utils-BCPlncac.js";
6
6
  const k = { class: "file_wrapper" }, x = {
7
7
  key: 0,
8
8
  class: "header"
@@ -40,14 +40,14 @@ const k = { class: "file_wrapper" }, x = {
40
40
  const e = a, d = r, c = () => {
41
41
  e.canDelete && d("deleteFile", e.fileId);
42
42
  };
43
- return (L, l) => (i(), o("div", k, [
44
- e.title ? (i(), o("div", x, n(e.title), 1)) : s("", !0),
43
+ return (L, l) => (o(), i("div", k, [
44
+ e.title ? (o(), i("div", x, s(e.title), 1)) : n("", !0),
45
45
  t("div", F, [
46
46
  t("div", N, [
47
47
  l[0] || (l[0] = t("div", { class: "file_type mr-12" }, [
48
48
  t("i", { class: "iconfont icon-xiangmuguanli" })
49
49
  ], -1)),
50
- t("div", g, n(e.fileName), 1)
50
+ t("div", g, s(e.fileName), 1)
51
51
  ]),
52
52
  p(m(y), {
53
53
  size: "small",
@@ -63,15 +63,15 @@ const k = { class: "file_wrapper" }, x = {
63
63
  ])),
64
64
  _: 1
65
65
  }, 8, ["href"]),
66
- a.canDelete ? (i(), o("i", {
66
+ a.canDelete ? (o(), i("i", {
67
67
  key: 0,
68
68
  class: "iconfont icon-close close",
69
69
  onClick: c
70
- })) : s("", !0)
70
+ })) : n("", !0)
71
71
  ])
72
72
  ]));
73
73
  }
74
- }), E = /* @__PURE__ */ h(D, [["__scopeId", "data-v-d98ece31"]]), U = v(E);
74
+ }), E = /* @__PURE__ */ h(D, [["__scopeId", "data-v-f39312c3"]]), U = v(E);
75
75
  export {
76
76
  U as Z
77
77
  };
@@ -1,6 +1,6 @@
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-DELBhqxN.js";
3
- import { w as A } from "./utils-SutTRvhl.js";
1
+ import { defineComponent as L, onBeforeMount as H, onMounted as P, onActivated as U, onUnmounted as N, onDeactivated as T, ref as d, provide as p, computed as D, useSlots as O, watch as _, inject as m, onBeforeUpdate as q, onUpdated as F, createElementBlock as k, openBlock 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-ejaaY5Zk.js";
3
+ import { w as A } from "./utils-BCPlncac.js";
4
4
  const Y = /* @__PURE__ */ L({
5
5
  name: "Grid",
6
6
  __name: "Grid",
@@ -14,11 +14,11 @@ const Y = /* @__PURE__ */ L({
14
14
  const a = l;
15
15
  H(() => a.collapsed && G()), P(() => {
16
16
  f({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", f);
17
- }), N(() => {
17
+ }), U(() => {
18
18
  f({ target: { innerWidth: window.innerWidth } }), window.addEventListener("resize", f);
19
- }), T(() => {
19
+ }), N(() => {
20
20
  window.removeEventListener("resize", f);
21
- }), O(() => {
21
+ }), T(() => {
22
22
  window.removeEventListener("resize", f);
23
23
  });
24
24
  const f = (n) => {
@@ -48,7 +48,7 @@ const Y = /* @__PURE__ */ L({
48
48
  p("shouldHiddenIndex", o);
49
49
  const v = D(() => typeof a.cols == "object" ? a.cols[e.value] ?? a.cols : a.cols);
50
50
  p("cols", v);
51
- const c = U().default(), G = () => {
51
+ const c = O().default(), G = () => {
52
52
  var y, w, t, r;
53
53
  let n = [], s = null;
54
54
  c.forEach((i) => {
@@ -92,7 +92,7 @@ const Y = /* @__PURE__ */ L({
92
92
  g.value = !1, x();
93
93
  }), F(() => {
94
94
  g.value = !0;
95
- }), p("isRegistrationComplete", g), u({ breakPoint: e }), (n, s) => (k(), M("div", {
95
+ }), p("isRegistrationComplete", g), u({ breakPoint: e }), (n, s) => (M(), k("div", {
96
96
  style: Z($.value)
97
97
  }, [
98
98
  E(n.$slots, "default")
@@ -154,7 +154,7 @@ const Y = /* @__PURE__ */ L({
154
154
  const t = I(n.value);
155
155
  t.maxWidth !== g.value && (g.value = t.maxWidth);
156
156
  }
157
- }), (t, r) => Q((k(), M("div", {
157
+ }), (t, r) => Q((M(), k("div", {
158
158
  style: Z(G.value),
159
159
  ref_key: "gridItemRef",
160
160
  ref: x
@@ -194,7 +194,7 @@ const Y = /* @__PURE__ */ L({
194
194
  __name: "MultiGrid",
195
195
  setup(l) {
196
196
  const { getColumnData: u, registerGridItem: a, clearGridItemData: f, gridItemData: e } = te();
197
- return p("registerGridItem", a), p("getColumnData", u), p("clearGridItemData", f), p("gridItemData", e), p("isMultiGrid", d(!0)), (o, v) => (k(), M("div", ae, [
197
+ return p("registerGridItem", a), p("getColumnData", u), p("clearGridItemData", f), p("gridItemData", e), p("isMultiGrid", d(!0)), (o, v) => (M(), k("div", ae, [
198
198
  E(o.$slots, "default")
199
199
  ]));
200
200
  }
@@ -0,0 +1,36 @@
1
+ import { defineComponent as l, createElementBlock as i, openBlock as s, createElementVNode as a, createTextVNode as r, createCommentVNode as p, toDisplayString as t, normalizeClass as c, renderSlot as f, unref as m } from "vue";
2
+ import { D as d } from "./BaseItem-m83RrA2F.js";
3
+ import { _ } from "./Button-BbbSzwN-.js";
4
+ import { w as u } from "./utils-BCPlncac.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) => (s(), i("div", v, [
20
+ a("div", h, [
21
+ r(t(o.title) + " ", 1),
22
+ e.tip ? (s(), i("div", I, t(e.tip), 1)) : p("", !0)
23
+ ]),
24
+ a("div", {
25
+ class: c(["info-pair--value", { ellipsis: e.ellipsis }])
26
+ }, [
27
+ f(e.$slots, "value", {}, () => [
28
+ r(t(o.value || m(d)), 1)
29
+ ], !0)
30
+ ], 2)
31
+ ]));
32
+ }
33
+ }), V = /* @__PURE__ */ _(E, [["__scopeId", "data-v-0a3c35f5"]]), N = u(V);
34
+ export {
35
+ N as Z
36
+ };