zhihao-ui 1.2.20 → 1.2.22

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 (59) hide show
  1. package/dist/es/{BaseInfo-Dr298ctb.js → BaseInfo-DCB7xgRw.js} +1 -1
  2. package/dist/es/{Button-CYr52jII.js → Button-Va8xfPJd.js} +2 -2
  3. package/dist/es/{DatePicker-vGQGWrmB.js → DatePicker-BrD1XS6-.js} +2 -2
  4. package/dist/es/DetailHeader-B9ttfBlv.js +59 -0
  5. package/dist/es/{DetailSubTitle-Cgs5HrKC.js → DetailSubTitle-BgbefcLD.js} +2 -2
  6. package/dist/es/{Dialog-stUaKQ4m.js → Dialog-CnqJMaPI.js} +31 -34
  7. package/dist/es/DiyDataTable-DHGMMFO9.js +315 -0
  8. package/dist/es/{EditInfoPair-DwwAGFc6.js → EditInfoPair-XiseN2F2.js} +3 -3
  9. package/dist/es/{FileWrapper-brjp8Thj.js → FileWrapper-CAwHicjK.js} +4 -4
  10. package/dist/es/{Grid-CIMCXeIw.js → Grid-CshEwvAH.js} +1 -1
  11. package/dist/es/{InfoPair-DZL6Vegw.js → InfoPair-DhVT8u-f.js} +3 -3
  12. package/dist/es/{Input-C4aIqSby.js → Input-CeiPnMtt.js} +3 -3
  13. package/dist/es/{Loading-DhEOgvVz.js → Loading-bv2DpqBO.js} +2 -2
  14. package/dist/es/Map-DhceUygQ.js +2020 -0
  15. package/dist/es/{MessageBox-d6upGeyX.js → MessageBox-2Vpy3Mva.js} +2 -2
  16. package/dist/es/{MoneyInput-DLMJRug1.js → MoneyInput-Deg1aj66.js} +7 -7
  17. package/dist/es/{PageHeadPanel-CldjeRYl.js → PageHeadPanel-BWjWkx8n.js} +2 -2
  18. package/dist/es/{Table-DwDzhuHY.js → Table-KSl_JT2q.js} +94 -94
  19. package/dist/es/{ToolTips-CLcRoFO4.js → ToolTips-Bw2lHQxC.js} +3 -3
  20. package/dist/es/index.js +21 -21
  21. package/dist/es/{utils-CbI5IWJJ.js → utils-D-zYpBSZ.js} +3 -3
  22. package/dist/es/{vendor-AIl6iHcE.js → vendor-gTOtiVzA.js} +6895 -6495
  23. package/dist/index.css +1 -1
  24. package/dist/types/components/DetailHeader/index.d.ts +9 -0
  25. package/dist/types/components/DetailHeader/types.d.ts +1 -0
  26. package/dist/types/components/Dialog/Dialog.vue.d.ts +2 -4
  27. package/dist/types/components/Dialog/index.d.ts +5 -10
  28. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +8 -1
  29. package/dist/types/components/DiyDataTable/index.d.ts +12 -0
  30. package/dist/types/components/DiyDataTable/type.d.ts +3 -1
  31. package/dist/types/components/Map/Map.vue.d.ts +60 -5
  32. package/dist/types/components/Map/components/scaleLine.vue.d.ts +3 -1
  33. package/dist/types/components/Map/components/toolPanel.vue.d.ts +4 -0
  34. package/dist/types/components/Map/config.d.ts +2 -0
  35. package/dist/types/components/Map/index.d.ts +174 -9
  36. package/dist/types/components/Map/interface/entity/render.d.ts +12 -0
  37. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +21 -3
  38. package/dist/types/components/Map/interface/entity/shipMapData.d.ts +2 -1
  39. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +2 -1
  40. package/dist/types/components/Map/render/canvasRender/geometry.d.ts +3 -0
  41. package/dist/types/components/Map/render/canvasRender/renderCustomOverlay.d.ts +3 -1
  42. package/dist/types/components/Map/render/canvasRender/renderShipStyle.d.ts +3 -1
  43. package/dist/types/components/Map/render/canvasRender/renderTrackStyle.d.ts +5 -1
  44. package/dist/types/components/Map/render/drawPolygon.d.ts +4 -0
  45. package/dist/types/components/Map/render/renderDashboard.d.ts +3 -0
  46. package/dist/types/components/Map/render/renderMarker.d.ts +4 -3
  47. package/dist/types/components/Map/render/renderShip.d.ts +5 -2
  48. package/dist/types/components/Map/render/renderTrack.d.ts +3 -4
  49. package/dist/types/components/Map/render/renderTruck.d.ts +3 -1
  50. package/dist/types/components/Map/utils/common.d.ts +4 -8
  51. package/dist/types/components/Map/utils/format.d.ts +6 -14
  52. package/dist/types/components/Map/utils/store.d.ts +7 -1
  53. package/dist/types/components/Map/utils/transform.d.ts +13 -5
  54. package/dist/umd/index.css +1 -1
  55. package/dist/umd/index.umd.cjs +23 -23
  56. package/package.json +1 -1
  57. package/dist/es/DetailHeader-oqCdup4q.js +0 -58
  58. package/dist/es/DiyDataTable-A1P5k0Eh.js +0 -304
  59. package/dist/es/Map-DGFoAMyH.js +0 -1803
@@ -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-CbI5IWJJ.js";
2
+ import { w as g } from "./utils-D-zYpBSZ.js";
3
3
  const C = /* @__PURE__ */ h({
4
4
  name: "ZhBaseInfo",
5
5
  __name: "BaseInfo",
@@ -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 { E as m, a as d } from "./vendor-AIl6iHcE.js";
3
- import { w as _ } from "./utils-CbI5IWJJ.js";
2
+ import { E as m, a as d } from "./vendor-gTOtiVzA.js";
3
+ import { w as _ } from "./utils-D-zYpBSZ.js";
4
4
  const h = /* @__PURE__ */ r({
5
5
  name: "ZhButton",
6
6
  inheritAttrs: !1,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, openBlock as u, createElementBlock as h, normalizeClass as f, createVNode as D, unref as M, mergeProps as _ } from "vue";
2
- import { h as g, b as Y } from "./vendor-AIl6iHcE.js";
3
- import { w as A } from "./utils-CbI5IWJJ.js";
2
+ import { h as g, b as Y } from "./vendor-gTOtiVzA.js";
3
+ import { w as A } from "./utils-D-zYpBSZ.js";
4
4
  const p = "--", m = "YYYY-MM-DDTHH:mm:ss", T = "YYYY-MM-DDT23:59:59", E = "YYYY-MM-DD", C = "https://static.zhihaoscm.cn/", i = (e, l = E) => e ? g(e).format(l).replace("Invalid date", p) : p, N = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
5
5
  function U(e) {
6
6
  const l = ["角", "分"], c = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], s = [
@@ -0,0 +1,59 @@
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 "./DatePicker-BrD1XS6-.js";
3
+ import { _ as k } from "./Button-Va8xfPJd.js";
4
+ import { w as y } from "./utils-D-zYpBSZ.js";
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
+ key: 1,
7
+ class: "detail-header--right"
8
+ }, L = { class: "info-pair--label" }, S = { class: "info-pair--value" }, V = /* @__PURE__ */ p({
9
+ name: "ZhDetailHeader",
10
+ __name: "DetailHeader",
11
+ props: {
12
+ title: {},
13
+ leftInfos: {},
14
+ rightInfos: {},
15
+ stateMeta: {},
16
+ stateDesc: {}
17
+ },
18
+ setup(f) {
19
+ const h = _(), r = f;
20
+ return (e, w) => {
21
+ var d, c;
22
+ return a(), o("div", I, [
23
+ t("div", null, [
24
+ l(e.$slots, "menu", {}, void 0, !0)
25
+ ]),
26
+ t("div", b, [
27
+ t("div", E, [
28
+ t("div", H, i(r.title), 1),
29
+ l(e.$slots, "extra-info", {}, void 0, !0),
30
+ (a(!0), o(m, null, u(r.leftInfos, (s) => (a(), o("div", {
31
+ class: "info-pair",
32
+ key: s.value
33
+ }, [
34
+ t("div", M, i(s.label), 1),
35
+ t("div", $, i(s.value ?? n(v)), 1)
36
+ ]))), 128))
37
+ ]),
38
+ l(e.$slots, "default", {}, void 0, !0),
39
+ n(h)["right-infos"] ? l(e.$slots, "right-infos", { key: 0 }, void 0, !0) : (a(), o("div", C, [
40
+ (a(!0), o(m, null, u(r.rightInfos, (s) => (a(), o("div", {
41
+ class: "info-pair",
42
+ key: s.value
43
+ }, [
44
+ t("div", L, i(s.label), 1),
45
+ t("div", S, i(s.value ?? n(v)), 1)
46
+ ]))), 128)),
47
+ e.stateDesc || e.stateMeta ? (a(), o("div", {
48
+ key: 0,
49
+ class: D(["state common-title", (d = e.stateMeta) == null ? void 0 : d.state])
50
+ }, i(e.stateDesc || ((c = e.stateMeta) == null ? void 0 : c.intro)), 3)) : g("", !0)
51
+ ]))
52
+ ])
53
+ ]);
54
+ };
55
+ }
56
+ }), Z = /* @__PURE__ */ k(V, [["__scopeId", "data-v-e58ec09d"]]), U = y(Z);
57
+ export {
58
+ U as Z
59
+ };
@@ -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 "./DatePicker-vGQGWrmB.js";
3
- import { w as f } from "./utils-CbI5IWJJ.js";
2
+ import { D as u } from "./DatePicker-BrD1XS6-.js";
3
+ import { w as f } from "./utils-D-zYpBSZ.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 v, useModel as b, computed as w, openBlock as r, createBlock as T, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as p, toDisplayString as t, createElementBlock as z, createCommentVNode as E, mergeModels as m } from "vue";
2
- import { Z as f } from "./Button-CYr52jII.js";
3
- import { c as Z } from "./vendor-AIl6iHcE.js";
4
- import { w as I } from "./utils-CbI5IWJJ.js";
5
- const N = { class: "title" }, O = {
1
+ import { defineComponent as V, useModel as k, computed as w, openBlock as r, createBlock as T, unref as v, mergeProps as D, withCtx as o, renderSlot as a, createElementVNode as c, createVNode as u, createTextVNode as p, toDisplayString as l, createElementBlock as M, createCommentVNode as z, mergeModels as m } from "vue";
2
+ import { Z as f } from "./Button-Va8xfPJd.js";
3
+ import { c as E } from "./vendor-gTOtiVzA.js";
4
+ import { w as Z } from "./utils-D-zYpBSZ.js";
5
+ const I = { class: "title" }, N = {
6
6
  key: 0,
7
7
  class: "sub-title"
8
- }, S = { class: "zh-dialog__footer" }, _ = /* @__PURE__ */ v({
8
+ }, O = { class: "zh-dialog__footer" }, S = /* @__PURE__ */ V({
9
9
  __name: "Dialog",
10
10
  props: /* @__PURE__ */ m({
11
11
  title: {},
@@ -43,54 +43,51 @@ const N = { class: "title" }, O = {
43
43
  modelValue: { type: Boolean, default: !0 },
44
44
  modelModifiers: {}
45
45
  }),
46
- emits: /* @__PURE__ */ m(["cancel", "confirm", "close"], ["update:modelValue"]),
47
- setup(d, { emit: B }) {
48
- const a = d, l = b(d, "modelValue"), n = B, y = () => {
49
- n("close");
46
+ emits: /* @__PURE__ */ m(["submit", "close"], ["update:modelValue"]),
47
+ setup(n, { emit: B }) {
48
+ const t = n, s = k(n, "modelValue"), d = B, y = () => {
49
+ d("close");
50
50
  }, h = () => {
51
- l.value = !1, n("cancel");
52
- }, C = () => {
53
- l.value = !1, n("confirm");
54
- }, g = {
51
+ d("submit");
52
+ }, C = {
55
53
  small: "400px",
56
54
  middle: "600px",
57
55
  large: "800px",
58
56
  extraLarge: "920px"
59
- }, V = w(() => a.width ? a.width : g[a.size]);
60
- return (e, i) => (r(), T(D(Z), M({
61
- modelValue: l.value,
62
- "onUpdate:modelValue": i[0] || (i[0] = (k) => l.value = k),
57
+ }, g = w(() => t.width ? t.width : C[t.size]);
58
+ return (e, i) => (r(), T(v(E), D({
59
+ modelValue: s.value,
60
+ "onUpdate:modelValue": i[0] || (i[0] = (b) => s.value = b),
63
61
  class: "zh-dialog"
64
62
  }, e.$attrs, {
65
- width: V.value,
66
- "close-on-click-modal": e.closeOnClickModal,
67
- onClose: y
63
+ width: g.value,
64
+ "close-on-click-modal": e.closeOnClickModal
68
65
  }), {
69
66
  header: o(() => [
70
- s(e.$slots, "header", {}, () => [
71
- c("div", N, t(e.title), 1),
72
- e.subTitle ? (r(), z("div", O, t(e.subTitle), 1)) : E("", !0)
67
+ a(e.$slots, "header", {}, () => [
68
+ c("div", I, l(e.title), 1),
69
+ e.subTitle ? (r(), M("div", N, l(e.subTitle), 1)) : z("", !0)
73
70
  ])
74
71
  ]),
75
72
  footer: o(() => [
76
- s(e.$slots, "footer", {}, () => [
77
- c("div", S, [
73
+ a(e.$slots, "footer", {}, () => [
74
+ c("div", O, [
78
75
  u(f, {
79
76
  plain: "",
80
- onClick: h
77
+ onClick: y
81
78
  }, {
82
79
  default: o(() => [
83
- p(t(e.cancelButtonText), 1)
80
+ p(l(e.cancelButtonText), 1)
84
81
  ]),
85
82
  _: 1
86
83
  }),
87
84
  u(f, {
88
85
  type: "primary",
89
86
  disabled: e.confirmButtonDisabled,
90
- onClick: C
87
+ onClick: h
91
88
  }, {
92
89
  default: o(() => [
93
- p(t(e.confirmButtonText), 1)
90
+ p(l(e.confirmButtonText), 1)
94
91
  ]),
95
92
  _: 1
96
93
  }, 8, ["disabled"])
@@ -98,13 +95,13 @@ const N = { class: "title" }, O = {
98
95
  ])
99
96
  ]),
100
97
  default: o(() => [
101
- s(e.$slots, "default")
98
+ a(e.$slots, "default")
102
99
  ]),
103
100
  _: 3
104
101
  }, 16, ["modelValue", "width", "close-on-click-modal"]));
105
102
  }
106
- }), A = I(_);
103
+ }), P = Z(S);
107
104
  export {
108
- A as Z,
109
- _
105
+ P as Z,
106
+ S as _
110
107
  };
@@ -0,0 +1,315 @@
1
+ import { defineComponent as Z, useModel as z, ref as D, openBlock as n, createBlock as v, unref as s, withCtx as p, createVNode as g, createElementBlock as h, Fragment as C, renderList as P, normalizeClass as V, toDisplayString as y, renderSlot as R, createTextVNode as x, createCommentVNode as k, createElementVNode as c, mergeModels as X } from "vue";
2
+ import { D as $ } from "./DatePicker-BrD1XS6-.js";
3
+ import { d as b, e as A, f as j, g as K, i as E, j as T, k as G, l as M, E as F } from "./vendor-gTOtiVzA.js";
4
+ import { _ as J } from "./Button-Va8xfPJd.js";
5
+ import { w as Q } from "./utils-D-zYpBSZ.js";
6
+ var m = /* @__PURE__ */ ((f) => (f.AUTOCOMPLETE = "autocomplete", f.FORMAT = "format", f.TEXT = "text", f))(m || {});
7
+ const Y = { key: 0 }, ee = {
8
+ key: 1,
9
+ class: "col-edit-header"
10
+ }, te = ["onClick"], ae = { key: 0 }, re = { class: "header-operation-container" }, oe = { class: "operation-container" }, le = ["onClick"], L = "$ZH_DIV$", ie = /* @__PURE__ */ Z({
11
+ name: "zh-diy-data-table",
12
+ __name: "DiyDataTable",
13
+ props: /* @__PURE__ */ X({
14
+ isEdit: { type: Boolean, default: !1 },
15
+ maxRowLength: { default: 50 },
16
+ maxColLength: { default: 10 },
17
+ defaultMinWidth: { default: 120 },
18
+ beforeAddRow: {}
19
+ }, {
20
+ rawData: { required: !0 },
21
+ rawDataModifiers: {}
22
+ }),
23
+ emits: ["update:rawData"],
24
+ setup(f, { expose: S }) {
25
+ const u = f, d = z(f, "rawData"), l = D([]), U = () => {
26
+ if (d.value.length === u.maxRowLength) {
27
+ b({
28
+ message: `最多添加${u.maxRowLength}行`,
29
+ type: "warning"
30
+ });
31
+ return;
32
+ }
33
+ let t = {};
34
+ u.beforeAddRow && (t = u.beforeAddRow(d.value)), d.value.push(t);
35
+ }, I = () => {
36
+ if (l.value.filter((e) => e.isAdd).length >= u.maxColLength) {
37
+ b({
38
+ message: `最多添加${u.maxColLength}列`,
39
+ type: "warning"
40
+ });
41
+ return;
42
+ }
43
+ const a = String(Date.now());
44
+ l.value.push({
45
+ prop: a,
46
+ label: "",
47
+ isEditHeader: !0,
48
+ isAdd: !0,
49
+ maxlength: 15,
50
+ minWidth: 150,
51
+ headerMaxlength: 15
52
+ });
53
+ }, O = (t, a) => {
54
+ l.value.splice(t, 1), d.value.forEach((e) => {
55
+ delete e[a.prop];
56
+ });
57
+ }, q = (t) => {
58
+ t === 0 && l.value.forEach((a) => {
59
+ a.isSameData && (d.value[1][a.prop] = d.value[0][a.prop]);
60
+ }), d.value.splice(t, 1);
61
+ }, B = (t, a, e) => {
62
+ a(
63
+ e.completeList.filter((o) => o.includes(t)).map((o) => ({ value: o }))
64
+ );
65
+ }, H = (t) => [
66
+ {
67
+ validator: (a, e, o) => {
68
+ if (!l.value[t].label) {
69
+ o(new Error("请输入表头"));
70
+ return;
71
+ }
72
+ o();
73
+ },
74
+ message: "请输入表头",
75
+ trigger: ["blur", "change"]
76
+ }
77
+ ], N = (t) => {
78
+ const a = [];
79
+ return t.required && a.push({
80
+ required: !0,
81
+ message: "请输入" + t.label,
82
+ trigger: t.slot ? void 0 : "blur"
83
+ }), t.varidate && a.push({
84
+ validator: (e, o, r) => {
85
+ const i = t.varidate(o);
86
+ i !== !0 ? r(new Error(i)) : r();
87
+ },
88
+ trigger: t.slot ? void 0 : "blur"
89
+ }), a;
90
+ }, W = (t, a) => {
91
+ let e = t;
92
+ return a.isSameData && (e = d.value[0] || $), a.formatter ? a.type === m.FORMAT ? a.showFormatter ? a.showFormatter(a.formatter(e)) : a.formatter(e) : a.formatter(e[a.prop]) : e[a.prop] || $;
93
+ }, _ = D();
94
+ return S({
95
+ /** 初始化数据 */
96
+ initData: (t, a) => {
97
+ console.log("initData", t, a), t = A(t) || [], t.length === 0 && t.push({}), a = [...a];
98
+ for (const e in t[0])
99
+ if (!a.some(
100
+ (o) => o.prop === e
101
+ )) {
102
+ const o = Date.now() + e, r = e.split(L);
103
+ if (r.length !== 2) {
104
+ console.log("keySplit 失败", e);
105
+ continue;
106
+ }
107
+ const i = Number(r[1]);
108
+ a[i] = {
109
+ prop: e,
110
+ isEditHeader: !0,
111
+ label: r[0],
112
+ key: o,
113
+ isAdd: !0,
114
+ maxlength: 15,
115
+ headerMaxlength: 15
116
+ };
117
+ }
118
+ d.value = t, l.value = a;
119
+ },
120
+ /** 获取数据 */
121
+ getData: async () => {
122
+ await _.value.validate();
123
+ for (const a in l.value) {
124
+ const e = l.value[a];
125
+ for (const o of l.value)
126
+ if (e.prop !== o.prop && e.label === o.label) {
127
+ b({
128
+ message: "所有列的表头不可重复",
129
+ type: "warning"
130
+ });
131
+ return;
132
+ }
133
+ }
134
+ const t = A(d.value);
135
+ for (const a in t) {
136
+ const e = t[a];
137
+ for (const o in l.value) {
138
+ const r = l.value[o];
139
+ if (r.isSameData && a !== "0" && (e[r.prop] = t[0][r.prop]), r.varidate && !r.varidate(e[r.prop]))
140
+ return;
141
+ if (r.isAdd) {
142
+ const i = r.label + L + o;
143
+ e[i] = e[r.prop], delete e[r.prop];
144
+ }
145
+ r.formatter && r.type === m.FORMAT && (e[r.prop] = r.formatter(e));
146
+ }
147
+ }
148
+ return console.log("DiyDataTable 获取数据", t, l.value), {
149
+ data: t,
150
+ columns: l.value
151
+ };
152
+ },
153
+ /** 更新列配置数据 */
154
+ updateColumn: (t, a) => {
155
+ const e = l.value[t].prop;
156
+ if (l.value[t] = a, e !== a.prop)
157
+ for (const o of d.value)
158
+ o[a.prop] = o[e], delete o[e];
159
+ },
160
+ /** 重置默认列配置数据 */
161
+ resetColumns: (t) => {
162
+ const e = l.value.filter((r) => !r.isAdd).reduce((r, i) => (t.some((w) => w.prop === i.prop) || r.push(i.prop), r), []);
163
+ d.value.forEach((r) => {
164
+ e.forEach((i) => {
165
+ delete r[i];
166
+ });
167
+ });
168
+ const o = t.filter((r) => r.isAdd);
169
+ l.value = [...t, ...o];
170
+ }
171
+ }), (t, a) => (n(), v(s(j), {
172
+ class: "diy-data-table",
173
+ model: f.rawData,
174
+ ref_key: "formRef",
175
+ ref: _
176
+ }, {
177
+ default: p(() => [
178
+ g(s(K), { data: d.value }, {
179
+ default: p(() => [
180
+ g(s(E), {
181
+ type: "index",
182
+ label: "序号",
183
+ width: "132",
184
+ fixed: "left"
185
+ }),
186
+ (n(!0), h(C, null, P(l.value, (e, o) => (n(), v(s(E), {
187
+ key: e.key || o,
188
+ prop: e.prop,
189
+ label: e.label,
190
+ width: e.width,
191
+ "min-width": e.minWidth || t.defaultMinWidth,
192
+ fixed: e.fixed
193
+ }, {
194
+ header: p(() => [
195
+ t.isEdit ? e.isEditHeader ? (n(), h("div", ee, [
196
+ g(s(T), {
197
+ prop: `columns.${o}`,
198
+ rules: H(o)
199
+ }, {
200
+ default: p(() => [
201
+ g(s(M), {
202
+ modelValue: e.label,
203
+ "onUpdate:modelValue": (r) => e.label = r,
204
+ maxlength: e.headerMaxlength || 20,
205
+ placeholder: "请输入表头"
206
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength"])
207
+ ]),
208
+ _: 2
209
+ }, 1032, ["prop", "rules"]),
210
+ e.isAdd ? (n(), h("i", {
211
+ key: 0,
212
+ class: "iconfont icon-close",
213
+ onClick: (r) => O(o, e)
214
+ }, null, 8, te)) : k("", !0)
215
+ ])) : (n(), h("div", {
216
+ key: 2,
217
+ class: V({ "is-required-label": e.required })
218
+ }, y(e.label), 3)) : (n(), h("div", Y, y(e.label), 1))
219
+ ]),
220
+ default: p((r) => [
221
+ u.isEdit && (!e.isSameData || r.$index === 0) && e.type !== s(m).TEXT ? (n(), v(s(T), {
222
+ key: 0,
223
+ prop: `${r.$index}.${e.prop}`,
224
+ rules: N(e),
225
+ class: V(["col-edit-container", { "close-padding": e.isAdd }])
226
+ }, {
227
+ default: p(() => [
228
+ e.type === s(m).FORMAT && e.formatter ? (n(), h("div", ae, y(e.showFormatter ? e.showFormatter(
229
+ e.formatter(r.row)
230
+ ) : e.formatter(r.row)), 1)) : e.type === s(m).AUTOCOMPLETE ? (n(), v(s(G), {
231
+ key: 1,
232
+ modelValue: r.row[e.prop],
233
+ "onUpdate:modelValue": (i) => r.row[e.prop] = i,
234
+ placeholder: e.placeholder || "请输入",
235
+ "fetch-suggestions": (i, w) => B(i, w, e),
236
+ maxlength: e.maxlength || 20
237
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : e.slot ? R(t.$slots, e.slot, {
238
+ key: 2,
239
+ row: r.row,
240
+ $index: r.$index
241
+ }, void 0, !0) : (n(), v(s(M), {
242
+ key: 3,
243
+ modelValue: r.row[e.prop],
244
+ "onUpdate:modelValue": (i) => r.row[e.prop] = i,
245
+ placeholder: e.placeholder || "请输入",
246
+ formatter: e.formatter,
247
+ parser: e.parser,
248
+ maxlength: e.maxlength || 20
249
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "formatter", "parser", "maxlength"]))
250
+ ]),
251
+ _: 2
252
+ }, 1032, ["prop", "rules", "class"])) : e.slot ? R(t.$slots, e.slot, {
253
+ key: 1,
254
+ row: r.row,
255
+ $index: r.$index
256
+ }, void 0, !0) : (n(), h(C, { key: 2 }, [
257
+ x(y(W(r.row, e)), 1)
258
+ ], 64))
259
+ ]),
260
+ _: 2
261
+ }, 1032, ["prop", "label", "width", "min-width", "fixed"]))), 128)),
262
+ u.isEdit ? (n(), v(s(E), {
263
+ key: 0,
264
+ width: "150",
265
+ fixed: "right"
266
+ }, {
267
+ header: p(() => [
268
+ c("div", re, [
269
+ g(s(F), {
270
+ type: "primary",
271
+ link: "",
272
+ onClick: U
273
+ }, {
274
+ default: p(() => a[0] || (a[0] = [
275
+ c("i", { class: "iconfont icon-Frame1" }, null, -1),
276
+ x("增行")
277
+ ])),
278
+ _: 1
279
+ }),
280
+ g(s(F), {
281
+ type: "primary",
282
+ link: "",
283
+ onClick: I
284
+ }, {
285
+ default: p(() => a[1] || (a[1] = [
286
+ c("i", { class: "iconfont icon-Frame-11" }, null, -1),
287
+ x("增列")
288
+ ])),
289
+ _: 1
290
+ })
291
+ ])
292
+ ]),
293
+ default: p(({ $index: e }) => [
294
+ c("div", oe, [
295
+ d.value.length > 1 ? (n(), h("i", {
296
+ key: 0,
297
+ class: "iconfont icon-close",
298
+ onClick: (o) => q(e)
299
+ }, null, 8, le)) : k("", !0)
300
+ ])
301
+ ]),
302
+ _: 1
303
+ })) : k("", !0)
304
+ ]),
305
+ _: 3
306
+ }, 8, ["data"])
307
+ ]),
308
+ _: 3
309
+ }, 8, ["model"]));
310
+ }
311
+ }), se = /* @__PURE__ */ J(ie, [["__scopeId", "data-v-373ba924"]]), he = Q(se);
312
+ export {
313
+ m as D,
314
+ he as Z
315
+ };
@@ -1,7 +1,7 @@
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 "./DatePicker-vGQGWrmB.js";
3
- import { _ } from "./Button-CYr52jII.js";
4
- import { w as u } from "./utils-CbI5IWJJ.js";
2
+ import { D as f } from "./DatePicker-BrD1XS6-.js";
3
+ import { _ } from "./Button-Va8xfPJd.js";
4
+ import { w as u } from "./utils-D-zYpBSZ.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"
@@ -1,8 +1,8 @@
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 "./DatePicker-vGQGWrmB.js";
3
- import { m as y } from "./vendor-AIl6iHcE.js";
4
- import { _ as h } from "./Button-CYr52jII.js";
5
- import { w as v } from "./utils-CbI5IWJJ.js";
2
+ import { D as w } from "./DatePicker-BrD1XS6-.js";
3
+ import { m as y } from "./vendor-gTOtiVzA.js";
4
+ import { _ as h } from "./Button-Va8xfPJd.js";
5
+ import { w as v } from "./utils-D-zYpBSZ.js";
6
6
  const k = { class: "file_wrapper" }, x = {
7
7
  key: 0,
8
8
  class: "header"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, onBeforeMount as B, useSlots as C, ref as k, computed as f, onMounted as L, onActivated as S, onUnmounted as j, onDeactivated as M, provide as p, watch as z, openBlock as P, createElementBlock as R, normalizeStyle as Z, renderSlot as D } from "vue";
2
- import { w as H } from "./utils-CbI5IWJJ.js";
2
+ import { w as H } from "./utils-D-zYpBSZ.js";
3
3
  const N = /* @__PURE__ */ $({
4
4
  name: "zh-grid",
5
5
  __name: "Grid",
@@ -1,7 +1,7 @@
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 "./DatePicker-vGQGWrmB.js";
3
- import { _ } from "./Button-CYr52jII.js";
4
- import { w as u } from "./utils-CbI5IWJJ.js";
2
+ import { D as d } from "./DatePicker-BrD1XS6-.js";
3
+ import { _ } from "./Button-Va8xfPJd.js";
4
+ import { w as u } from "./utils-D-zYpBSZ.js";
5
5
  const v = { class: "info-pair" }, h = { class: "info-pair--title" }, I = {
6
6
  key: 0,
7
7
  class: "info-pair--title--tip"
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, useAttrs as v, useModel as k, openBlock as h, createElementBlock as I, normalizeClass as z, createVNode as S, unref as $, mergeProps as N, createSlots as x, renderList as _, withCtx as y, renderSlot as B, normalizeProps as M, guardReactiveProps as C, mergeModels as E, normalizeStyle as j } from "vue";
2
- import { l as P } from "./vendor-AIl6iHcE.js";
3
- import { _ as U } from "./Button-CYr52jII.js";
4
- import { w as Z } from "./utils-CbI5IWJJ.js";
2
+ import { l as P } from "./vendor-gTOtiVzA.js";
3
+ import { _ as U } from "./Button-Va8xfPJd.js";
4
+ import { w as Z } from "./utils-D-zYpBSZ.js";
5
5
  const A = /* @__PURE__ */ b({
6
6
  name: "zh-input",
7
7
  __name: "Input",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, openBlock as a, createElementBlock as s, createElementVNode as o } from "vue";
2
- import { _ as e } from "./Button-CYr52jII.js";
3
- import { w as i } from "./utils-CbI5IWJJ.js";
2
+ import { _ as e } from "./Button-Va8xfPJd.js";
3
+ import { w as i } from "./utils-D-zYpBSZ.js";
4
4
  const r = { class: "loading-box" }, c = /* @__PURE__ */ t({
5
5
  name: "zh-loading",
6
6
  __name: "Loading",