zhihao-ui 1.2.68 → 1.2.70
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.
- package/dist/es/{BaseInfo-BhnEjLKF.js → BaseInfo-BQ9mgGZQ.js} +1 -1
- package/dist/es/{BaseItem-C4NJy1i4.js → BaseItem-ByAS3S8w.js} +3 -3
- package/dist/es/{Button-CGndQwez.js → Button-BdGo3Kfv.js} +2 -2
- package/dist/es/CascaderLoadMore-B3dBPBJz.js +243 -0
- package/dist/es/DatePicker-C-2zM1dY.js +73 -0
- package/dist/es/{DetailHeader-DaabNj_4.js → DetailHeader-Dd_oHefQ.js} +3 -3
- package/dist/es/{DetailSubTitle-CzFZPXeE.js → DetailSubTitle-1YWi0mX_.js} +2 -2
- package/dist/es/{Dialog-BUW6ag1B.js → Dialog-Cib_m5sM.js} +3 -3
- package/dist/es/DiyDataTable-beBJdlLe.js +364 -0
- package/dist/es/{EditInfoPair-B2f6zoGY.js → EditInfoPair-BCbIIBEP.js} +3 -3
- package/dist/es/{FileWrapper-D4IxJemr.js → FileWrapper-ClTHhvQU.js} +4 -4
- package/dist/es/{Grid-DIs695lY.js → Grid-DvrmAWyU.js} +2 -2
- package/dist/es/{InfoPair-Ce7nDfxD.js → InfoPair-Bf-X09VT.js} +3 -3
- package/dist/es/{Input-C5X2X_YD.js → Input-uOt745UZ.js} +14 -14
- package/dist/es/{Loading-BgoEv5qE.js → Loading-C_6ERpeb.js} +2 -2
- package/dist/es/Map-XWdLIa5C.js +2528 -0
- package/dist/es/{MessageBox-DiGH5x51.js → MessageBox-h_sFrr4D.js} +2 -2
- package/dist/es/{MoneyInput-D0kYiOfP.js → MoneyInput-D8V7_PZq.js} +8 -8
- package/dist/es/{PageHeadPanel-C6IdOq6I.js → PageHeadPanel-DLs1xYME.js} +2 -2
- package/dist/es/Table-DgS42Pzw.js +1167 -0
- package/dist/es/{ToolTips-CiQHxGrw.js → ToolTips-CSVL9wbb.js} +6 -6
- package/dist/es/index.js +77 -60
- package/dist/es/{utils-D2wHR1YB.js → utils-UjENBVnX.js} +1 -1
- package/dist/es/{vendor-D2mv9LHk.js → vendor-9390iK3y.js} +30756 -26238
- package/dist/index.css +1 -1
- package/dist/types/components/BaseItem/index.d.ts +9 -9
- package/dist/types/components/Dialog/Dialog.vue.d.ts +16 -16
- package/dist/types/components/Dialog/index.d.ts +24 -24
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +18 -1
- package/dist/types/components/DiyDataTable/index.d.ts +30 -0
- package/dist/types/components/DiyDataTable/type.d.ts +17 -1
- package/dist/types/components/Map/Map.vue.d.ts +138 -101
- package/dist/types/components/Map/components/scaleLine.vue.d.ts +1 -2
- package/dist/types/components/Map/components/zoomControl.vue.d.ts +3 -7
- package/dist/types/components/Map/index.d.ts +390 -324
- package/dist/types/components/Map/interface/index.d.ts +13 -6
- package/dist/types/components/Map/types.d.ts +13 -1
- package/dist/types/components/Table/types.d.ts +1 -0
- package/dist/types/components/ToolTips/index.d.ts +12 -12
- package/dist/types/components/index.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +604 -130
- package/package.json +1 -1
- package/dist/es/DatePicker-Dy1K1cJQ.js +0 -57
- package/dist/es/DiyDataTable-D-UZVciZ.js +0 -331
- package/dist/es/Map-DbbD377l.js +0 -2235
- package/dist/es/Table-B_3YA1mb.js +0 -1155
- package/dist/types/components/Map/config/global.d.ts +0 -2
- package/dist/types/components/Map/config/index.d.ts +0 -2
- package/dist/types/components/Map/config/map.d.ts +0 -22
- package/dist/types/components/Map/function/carTrack.d.ts +0 -11
- package/dist/types/components/Map/function/drawLine.d.ts +0 -12
- package/dist/types/components/Map/function/drawPolygon.d.ts +0 -9
- package/dist/types/components/Map/function/event.d.ts +0 -9
- package/dist/types/components/Map/function/layers.d.ts +0 -10
- package/dist/types/components/Map/function/map.d.ts +0 -18
- package/dist/types/components/Map/function/port.d.ts +0 -10
- package/dist/types/components/Map/function/position.d.ts +0 -8
- package/dist/types/components/Map/function/props.d.ts +0 -7
- package/dist/types/components/Map/function/ship/index.d.ts +0 -16
- package/dist/types/components/Map/function/ship/label.d.ts +0 -5
- package/dist/types/components/Map/function/ship/style.d.ts +0 -23
- package/dist/types/components/Map/function/shipOverlay.d.ts +0 -12
- package/dist/types/components/Map/function/shipTrack.d.ts +0 -16
- package/dist/types/components/Map/interface/carTrack.d.ts +0 -70
- package/dist/types/components/Map/interface/label.d.ts +0 -27
- package/dist/types/components/Map/interface/mapProps.d.ts +0 -15
- package/dist/types/components/Map/interface/position.d.ts +0 -7
- package/dist/types/components/Map/interface/shipInfoVo.d.ts +0 -214
- package/dist/types/components/Map/interface/shipTrack.d.ts +0 -57
- package/dist/types/components/Map/interface/wharfEntity.d.ts +0 -20
- package/dist/types/components/Map/meta/index.d.ts +0 -17
- package/dist/types/components/Map/meta/ship.d.ts +0 -26
- package/dist/types/components/Map/useMap.d.ts +0 -17
- package/dist/types/components/Map/utils/cursor.d.ts +0 -3
- package/dist/types/components/Map/utils/events.d.ts +0 -4
- package/dist/types/components/Map/utils/overlay.d.ts +0 -5
- package/dist/types/components/Map/utils/rbush.d.ts +0 -13
- package/dist/types/components/Map/utils/shipOverlay.d.ts +0 -12
- package/dist/types/components/Map/utils/track.d.ts +0 -45
- package/dist/types/components/Map/utils/util.d.ts +0 -42
package/package.json
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, openBlock as u, createElementBlock as f, normalizeClass as h, createVNode as _, unref as g, mergeProps as A } from "vue";
|
|
2
|
-
import { h as D, e as E } from "./vendor-D2mv9LHk.js";
|
|
3
|
-
import { D as p, a as M, L as m, b as k } from "./BaseItem-C4NJy1i4.js";
|
|
4
|
-
import { w as y } from "./utils-D2wHR1YB.js";
|
|
5
|
-
const i = (e, l = M) => e ? D(e).format(l).replace("Invalid date", p) : p, O = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
|
|
6
|
-
function P(e) {
|
|
7
|
-
const l = ["角", "分"], c = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], s = [
|
|
8
|
-
["元", "万", "亿"],
|
|
9
|
-
["", "拾", "佰", "仟"]
|
|
10
|
-
], n = e < 0 ? "负" : "";
|
|
11
|
-
e = Math.abs(e);
|
|
12
|
-
let r = "";
|
|
13
|
-
for (let a = 0; a < l.length; a++)
|
|
14
|
-
r += (c[Math.floor(e * 10 * Math.pow(10, a)) % 10] + l[a]).replace(/零./, "");
|
|
15
|
-
r = r || "整", e = Math.floor(e);
|
|
16
|
-
for (let a = 0; a < s[0].length && e > 0; a++) {
|
|
17
|
-
let t = "";
|
|
18
|
-
for (let o = 0; o < s[1].length && e > 0; o++)
|
|
19
|
-
t = c[e % 10] + s[1][o] + t, e = Math.floor(e / 10);
|
|
20
|
-
r = t.replace(/(零.)*零$/, "").replace(/^$/, "零") + s[0][a] + r;
|
|
21
|
-
}
|
|
22
|
-
return n + r.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
23
|
-
}
|
|
24
|
-
const T = /* @__PURE__ */ d({
|
|
25
|
-
name: "zh-date-picker",
|
|
26
|
-
__name: "DatePicker",
|
|
27
|
-
props: {
|
|
28
|
-
style: {},
|
|
29
|
-
class: {},
|
|
30
|
-
modelValue: {}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:modelValue", "change"],
|
|
33
|
-
setup(e, { emit: l }) {
|
|
34
|
-
const c = e, s = l, n = (t) => Array.isArray(t) ? [i(t[0], m), i(t[1], k)] : t && i(t, m), r = (t) => {
|
|
35
|
-
const o = n(t);
|
|
36
|
-
s("update:modelValue", o);
|
|
37
|
-
}, a = (t) => {
|
|
38
|
-
const o = n(t);
|
|
39
|
-
s("change", o);
|
|
40
|
-
};
|
|
41
|
-
return (t, o) => (u(), f("div", {
|
|
42
|
-
class: h([c.class, "zh-date-picker"])
|
|
43
|
-
}, [
|
|
44
|
-
_(g(E), A(t.$attrs, {
|
|
45
|
-
style: c.style,
|
|
46
|
-
"model-value": c.modelValue,
|
|
47
|
-
"onUpdate:modelValue": r,
|
|
48
|
-
onChange: a
|
|
49
|
-
}), null, 16, ["style", "model-value"])
|
|
50
|
-
], 2));
|
|
51
|
-
}
|
|
52
|
-
}), U = y(T);
|
|
53
|
-
export {
|
|
54
|
-
U as Z,
|
|
55
|
-
P as d,
|
|
56
|
-
O as v
|
|
57
|
-
};
|
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Z, useModel as P, ref as V, openBlock as i, createBlock as v, unref as n, withCtx as p, createVNode as c, mergeProps as z, createElementBlock as u, Fragment as b, renderList as X, normalizeClass as _, toDisplayString as m, renderSlot as E, createTextVNode as x, createCommentVNode as w, createElementVNode as k, mergeModels as j } from "vue";
|
|
2
|
-
import { D as $ } from "./BaseItem-C4NJy1i4.js";
|
|
3
|
-
import { g as C, i as F, j as K, k as G, l as D, m as M, n as J, o as L, b as S } from "./vendor-D2mv9LHk.js";
|
|
4
|
-
import { _ as Q } from "./Button-CGndQwez.js";
|
|
5
|
-
import { w as Y } from "./utils-D2wHR1YB.js";
|
|
6
|
-
var g = /* @__PURE__ */ ((f) => (f.AUTOCOMPLETE = "autocomplete", f.FORMAT = "format", f.TEXT = "text", f))(g || {});
|
|
7
|
-
const ee = { key: 0 }, te = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "col-edit-header"
|
|
10
|
-
}, ae = ["onClick"], re = { key: 0 }, oe = { class: "header-operation-container" }, le = { class: "operation-container" }, de = ["onClick"], U = "$ZH_DIV$", ie = /* @__PURE__ */ Z({
|
|
11
|
-
name: "zh-diy-data-table",
|
|
12
|
-
__name: "DiyDataTable",
|
|
13
|
-
props: /* @__PURE__ */ j({
|
|
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
|
-
}, {
|
|
24
|
-
rawData: { required: !0 },
|
|
25
|
-
rawDataModifiers: {}
|
|
26
|
-
}),
|
|
27
|
-
emits: ["update:rawData"],
|
|
28
|
-
setup(f, { expose: I }) {
|
|
29
|
-
const h = f, s = P(f, "rawData"), l = V([]), A = () => {
|
|
30
|
-
if (s.value.length === h.maxRowLength) {
|
|
31
|
-
C({
|
|
32
|
-
message: `最多添加${h.maxRowLength}行`,
|
|
33
|
-
type: "warning"
|
|
34
|
-
});
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
let t = {};
|
|
38
|
-
h.beforeAddRow && (t = h.beforeAddRow(s.value)), s.value.push(t);
|
|
39
|
-
}, R = () => {
|
|
40
|
-
if (l.value.filter((e) => e.isAdd).length >= h.maxColLength) {
|
|
41
|
-
C({
|
|
42
|
-
message: `最多添加${h.maxColLength}列`,
|
|
43
|
-
type: "warning"
|
|
44
|
-
});
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const a = String(Date.now());
|
|
48
|
-
l.value.push({
|
|
49
|
-
prop: a,
|
|
50
|
-
label: "",
|
|
51
|
-
isEditHeader: !0,
|
|
52
|
-
isAdd: !0,
|
|
53
|
-
maxlength: 15,
|
|
54
|
-
minWidth: 150,
|
|
55
|
-
headerMaxlength: 15
|
|
56
|
-
});
|
|
57
|
-
}, O = (t, a) => {
|
|
58
|
-
l.value.splice(t, 1), s.value.forEach((e) => {
|
|
59
|
-
delete e[a.prop];
|
|
60
|
-
});
|
|
61
|
-
}, B = (t) => {
|
|
62
|
-
t === 0 && l.value.forEach((a) => {
|
|
63
|
-
a.isSameData && (s.value[1][a.prop] = s.value[0][a.prop]);
|
|
64
|
-
}), s.value.splice(t, 1);
|
|
65
|
-
}, q = (t, a, e) => {
|
|
66
|
-
a(
|
|
67
|
-
e.completeList.filter((o) => o.includes(t)).map((o) => ({ value: o }))
|
|
68
|
-
);
|
|
69
|
-
}, H = (t) => [
|
|
70
|
-
{
|
|
71
|
-
validator: (a, e, o) => {
|
|
72
|
-
if (!l.value[t].label) {
|
|
73
|
-
o(new Error("请输入表头"));
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
o();
|
|
77
|
-
},
|
|
78
|
-
message: "请输入表头",
|
|
79
|
-
trigger: ["blur", "change"]
|
|
80
|
-
}
|
|
81
|
-
], N = (t) => {
|
|
82
|
-
const a = [];
|
|
83
|
-
return t.required && a.push({
|
|
84
|
-
required: !0,
|
|
85
|
-
message: "请输入" + t.label,
|
|
86
|
-
trigger: t.slot ? void 0 : "blur"
|
|
87
|
-
}), t.varidate && a.push({
|
|
88
|
-
validator: (e, o, r) => {
|
|
89
|
-
const d = t.varidate(o);
|
|
90
|
-
d !== !0 ? r(new Error(d)) : r();
|
|
91
|
-
},
|
|
92
|
-
trigger: t.slot ? void 0 : "blur"
|
|
93
|
-
}), a;
|
|
94
|
-
}, W = (t, a) => {
|
|
95
|
-
let e = t;
|
|
96
|
-
return a.isSameData && (e = s.value[0] || $), a.formatter ? a.showFormatter ? a.type === g.FORMAT ? a.showFormatter(a.formatter(e)) : a.showFormatter(e[a.prop]) : a.formatter(e[a.prop]) : e[a.prop] || $;
|
|
97
|
-
}, T = V();
|
|
98
|
-
return I({
|
|
99
|
-
/** 初始化数据 */
|
|
100
|
-
initData: (t, a) => {
|
|
101
|
-
console.log("initData", t, a), t = F(t) || [], t.length === 0 && t.push({}), a = [...a];
|
|
102
|
-
for (const e in t[0])
|
|
103
|
-
if (!a.some(
|
|
104
|
-
(o) => o.prop === e
|
|
105
|
-
)) {
|
|
106
|
-
const o = Date.now() + e, r = e.split(U);
|
|
107
|
-
if (r.length !== 2) {
|
|
108
|
-
console.log("keySplit 失败", e);
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
const d = Number(r[1]);
|
|
112
|
-
a[d] = {
|
|
113
|
-
prop: e,
|
|
114
|
-
isEditHeader: !0,
|
|
115
|
-
label: r[0],
|
|
116
|
-
key: o,
|
|
117
|
-
isAdd: !0,
|
|
118
|
-
maxlength: 15,
|
|
119
|
-
headerMaxlength: 15
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
s.value = t, l.value = a;
|
|
123
|
-
},
|
|
124
|
-
/** 获取数据 */
|
|
125
|
-
getData: async () => {
|
|
126
|
-
await T.value.validate();
|
|
127
|
-
for (const a in l.value) {
|
|
128
|
-
const e = l.value[a];
|
|
129
|
-
for (const o of l.value)
|
|
130
|
-
if (e.prop !== o.prop && e.label === o.label) {
|
|
131
|
-
C({
|
|
132
|
-
message: "所有列的表头不可重复",
|
|
133
|
-
type: "warning"
|
|
134
|
-
});
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
const t = F(s.value);
|
|
139
|
-
for (const a in t) {
|
|
140
|
-
const e = t[a];
|
|
141
|
-
for (const o in l.value) {
|
|
142
|
-
const r = l.value[o];
|
|
143
|
-
if (r.isSameData && a !== "0" && (e[r.prop] = t[0][r.prop]), r.varidate && !r.varidate(e[r.prop]))
|
|
144
|
-
return;
|
|
145
|
-
if (r.isAdd) {
|
|
146
|
-
const d = e[r.prop];
|
|
147
|
-
delete e[r.prop];
|
|
148
|
-
const y = r.label + U + o;
|
|
149
|
-
e[y] = d;
|
|
150
|
-
}
|
|
151
|
-
r.formatter && r.type === g.FORMAT && (e[r.prop] = r.formatter(e));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return console.log("DiyDataTable 获取数据", t, l.value), {
|
|
155
|
-
data: t,
|
|
156
|
-
columns: l.value
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
/** 更新列配置数据 */
|
|
160
|
-
updateColumn: (t, a) => {
|
|
161
|
-
const e = l.value[t].prop;
|
|
162
|
-
if (l.value[t] = a, e !== a.prop)
|
|
163
|
-
for (const o of s.value)
|
|
164
|
-
o[a.prop] = o[e], delete o[e];
|
|
165
|
-
},
|
|
166
|
-
/** 重置默认列配置数据 */
|
|
167
|
-
resetColumns: (t) => {
|
|
168
|
-
const e = l.value.filter((r) => !r.isAdd).reduce((r, d) => (t.some((y) => y.prop === d.prop) || r.push(d.prop), r), []);
|
|
169
|
-
s.value.forEach((r) => {
|
|
170
|
-
e.forEach((d) => {
|
|
171
|
-
delete r[d];
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
const o = t.filter((r) => r.isAdd);
|
|
175
|
-
l.value = [...t, ...o];
|
|
176
|
-
},
|
|
177
|
-
onAddRow: A,
|
|
178
|
-
onAddColumn: R
|
|
179
|
-
}), (t, a) => (i(), v(n(K), {
|
|
180
|
-
class: "diy-data-table",
|
|
181
|
-
model: f.rawData,
|
|
182
|
-
ref_key: "formRef",
|
|
183
|
-
ref: T
|
|
184
|
-
}, {
|
|
185
|
-
default: p(() => [
|
|
186
|
-
c(n(G), z({ data: s.value }, t.$attrs), {
|
|
187
|
-
default: p(() => [
|
|
188
|
-
c(n(D), {
|
|
189
|
-
type: "index",
|
|
190
|
-
label: "序号",
|
|
191
|
-
width: "132",
|
|
192
|
-
fixed: "left"
|
|
193
|
-
}),
|
|
194
|
-
(i(!0), u(b, null, X(l.value, (e, o) => (i(), v(n(D), {
|
|
195
|
-
key: e.key || o,
|
|
196
|
-
prop: e.prop,
|
|
197
|
-
label: e.label,
|
|
198
|
-
width: e.width,
|
|
199
|
-
"min-width": e.minWidth || t.defaultMinWidth,
|
|
200
|
-
fixed: e.fixed
|
|
201
|
-
}, {
|
|
202
|
-
header: p(() => [
|
|
203
|
-
t.isEdit ? e.isEditHeader ? (i(), u("div", te, [
|
|
204
|
-
c(n(M), {
|
|
205
|
-
prop: `columns.${o}`,
|
|
206
|
-
rules: H(o)
|
|
207
|
-
}, {
|
|
208
|
-
default: p(() => [
|
|
209
|
-
c(n(L), {
|
|
210
|
-
modelValue: e.label,
|
|
211
|
-
"onUpdate:modelValue": (r) => e.label = r,
|
|
212
|
-
maxlength: e.headerMaxlength || 20,
|
|
213
|
-
placeholder: "请输入表头"
|
|
214
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength"])
|
|
215
|
-
]),
|
|
216
|
-
_: 2
|
|
217
|
-
}, 1032, ["prop", "rules"]),
|
|
218
|
-
e.isAdd ? (i(), u("i", {
|
|
219
|
-
key: 0,
|
|
220
|
-
class: "iconfont icon-close",
|
|
221
|
-
onClick: (r) => O(o, e)
|
|
222
|
-
}, null, 8, ae)) : w("", !0)
|
|
223
|
-
])) : (i(), u("div", {
|
|
224
|
-
key: 2,
|
|
225
|
-
class: _({ "is-required-label": e.required })
|
|
226
|
-
}, m(e.label), 3)) : (i(), u("div", ee, m(e.label), 1))
|
|
227
|
-
]),
|
|
228
|
-
default: p((r) => [
|
|
229
|
-
h.isEdit && (!e.isSameData || r.$index === 0) && e.type !== n(g).TEXT ? (i(), v(n(M), {
|
|
230
|
-
key: 0,
|
|
231
|
-
prop: `${r.$index}.${e.prop}`,
|
|
232
|
-
rules: N(e),
|
|
233
|
-
class: _(["col-edit-container", { "close-padding": e.isAdd }])
|
|
234
|
-
}, {
|
|
235
|
-
default: p(() => [
|
|
236
|
-
e.type === n(g).FORMAT && e.formatter ? (i(), u("div", re, m(e.showFormatter ? e.showFormatter(
|
|
237
|
-
e.formatter(r.row)
|
|
238
|
-
) : e.formatter(r.row)), 1)) : e.type === n(g).AUTOCOMPLETE ? (i(), v(n(J), {
|
|
239
|
-
key: 1,
|
|
240
|
-
modelValue: r.row[e.prop],
|
|
241
|
-
"onUpdate:modelValue": (d) => r.row[e.prop] = d,
|
|
242
|
-
placeholder: e.placeholder || "请输入",
|
|
243
|
-
"fetch-suggestions": (d, y) => q(d, y, e),
|
|
244
|
-
maxlength: e.maxlength || 20
|
|
245
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : e.slot ? E(t.$slots, e.slot, {
|
|
246
|
-
key: 2,
|
|
247
|
-
row: r.row,
|
|
248
|
-
$index: r.$index
|
|
249
|
-
}, void 0, !0) : (i(), v(n(L), {
|
|
250
|
-
key: 3,
|
|
251
|
-
modelValue: r.row[e.prop],
|
|
252
|
-
"onUpdate:modelValue": (d) => r.row[e.prop] = d,
|
|
253
|
-
placeholder: e.placeholder || "请输入",
|
|
254
|
-
formatter: e.formatter,
|
|
255
|
-
parser: e.parser,
|
|
256
|
-
maxlength: e.maxlength || 20
|
|
257
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "formatter", "parser", "maxlength"]))
|
|
258
|
-
]),
|
|
259
|
-
_: 2
|
|
260
|
-
}, 1032, ["prop", "rules", "class"])) : e.slot ? E(t.$slots, e.slot, {
|
|
261
|
-
key: 1,
|
|
262
|
-
row: r.row,
|
|
263
|
-
$index: r.$index
|
|
264
|
-
}, void 0, !0) : (i(), u(b, { key: 2 }, [
|
|
265
|
-
x(m(W(r.row, e)), 1)
|
|
266
|
-
], 64))
|
|
267
|
-
]),
|
|
268
|
-
_: 2
|
|
269
|
-
}, 1032, ["prop", "label", "width", "min-width", "fixed"]))), 128)),
|
|
270
|
-
h.isEdit ? (i(), v(n(D), {
|
|
271
|
-
key: 0,
|
|
272
|
-
width: "150",
|
|
273
|
-
fixed: "right"
|
|
274
|
-
}, {
|
|
275
|
-
header: p(() => [
|
|
276
|
-
k("div", oe, [
|
|
277
|
-
t.customAddRow ? (i(), v(n(S), {
|
|
278
|
-
key: 0,
|
|
279
|
-
type: "primary",
|
|
280
|
-
link: "",
|
|
281
|
-
onClick: A
|
|
282
|
-
}, {
|
|
283
|
-
default: p(() => [
|
|
284
|
-
a[0] || (a[0] = k("i", { class: "iconfont icon-Frame1" }, null, -1)),
|
|
285
|
-
x(m(t.addRowText), 1)
|
|
286
|
-
]),
|
|
287
|
-
_: 1
|
|
288
|
-
})) : w("", !0),
|
|
289
|
-
t.customAddColumn ? (i(), v(n(S), {
|
|
290
|
-
key: 1,
|
|
291
|
-
type: "primary",
|
|
292
|
-
link: "",
|
|
293
|
-
onClick: R
|
|
294
|
-
}, {
|
|
295
|
-
default: p(() => [
|
|
296
|
-
a[1] || (a[1] = k("i", { class: "iconfont icon-Frame-11" }, null, -1)),
|
|
297
|
-
x(m(t.addColumnText), 1)
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
})) : w("", !0)
|
|
301
|
-
])
|
|
302
|
-
]),
|
|
303
|
-
default: p(({ $index: e }) => [
|
|
304
|
-
k("div", le, [
|
|
305
|
-
t.$slots.operation ? E(t.$slots, "operation", {
|
|
306
|
-
key: 0,
|
|
307
|
-
row: s.value[e],
|
|
308
|
-
$index: e
|
|
309
|
-
}, void 0, !0) : (i(), u(b, { key: 1 }, [
|
|
310
|
-
s.value.length > 1 ? (i(), u("i", {
|
|
311
|
-
key: 0,
|
|
312
|
-
class: "iconfont icon-close",
|
|
313
|
-
onClick: (o) => B(e)
|
|
314
|
-
}, null, 8, de)) : w("", !0)
|
|
315
|
-
], 64))
|
|
316
|
-
])
|
|
317
|
-
]),
|
|
318
|
-
_: 3
|
|
319
|
-
})) : w("", !0)
|
|
320
|
-
]),
|
|
321
|
-
_: 3
|
|
322
|
-
}, 16, ["data"])
|
|
323
|
-
]),
|
|
324
|
-
_: 3
|
|
325
|
-
}, 8, ["model"]));
|
|
326
|
-
}
|
|
327
|
-
}), se = /* @__PURE__ */ Q(ie, [["__scopeId", "data-v-048d82d3"]]), ve = Y(se);
|
|
328
|
-
export {
|
|
329
|
-
g as D,
|
|
330
|
-
ve as Z
|
|
331
|
-
};
|