zhihao-ui 1.3.62-alpha.2 → 1.3.63
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-DRE7tqhe.js → BaseInfo-aiVRbjTP.js} +2 -2
- package/dist/es/{BaseItem-B9hyAgCm.js → BaseItem-B_4mwWHs.js} +3 -3
- package/dist/es/{Button-CSE0Mb4I.js → Button-BFA52ivn.js} +2 -2
- package/dist/es/{CascaderLoadMore-DlIfow9Z.js → CascaderLoadMore-C6micaqI.js} +2 -2
- package/dist/es/{DatePicker-DRO5YMZ8.js → DatePicker-DyqXtiRa.js} +3 -3
- package/dist/es/{DetailHeader-WPFCQJFq.js → DetailHeader-pQXMyG5I.js} +3 -3
- package/dist/es/{DetailSubTitle-BWOpKhxk.js → DetailSubTitle-B-DcaPqI.js} +2 -2
- package/dist/es/{Dialog-CAiA_v3J.js → Dialog-BptDzN8n.js} +3 -3
- package/dist/es/{DiyDataTable-BXFjTq4h.js → DiyDataTable-BzNrVInw.js} +117 -117
- package/dist/es/{EditInfoPair-CZ_m9ph_.js → EditInfoPair-DCjZGPkz.js} +3 -3
- package/dist/es/{FileWrapper-Dk5178uk.js → FileWrapper-xu2XFTT8.js} +4 -4
- package/dist/es/{Grid-DXdd3Eqi.js → Grid-DEbsTV3v.js} +2 -2
- package/dist/es/{InfoPair-C8tc2XjH.js → InfoPair-B9nTZ_iX.js} +3 -3
- package/dist/es/{Input-CCkgPIDm.js → Input-FPnMJc-X.js} +3 -3
- package/dist/es/{Loading-CtaMdigH.js → Loading-D1OYqPWU.js} +2 -2
- package/dist/es/Map-JC-tR-ga.js +2474 -0
- package/dist/es/{MessageBox-DdmHDM2f.js → MessageBox-CvwRq0Fw.js} +2 -2
- package/dist/es/{MoneyInput-CsELS7YH.js → MoneyInput-DJ5g8rhm.js} +5 -5
- package/dist/es/{PageHeadPanel-TzAwDM3_.js → PageHeadPanel-BV5qQLDj.js} +2 -2
- package/dist/es/{Table-DELBhqxN.js → Table-D49FFXP7.js} +6 -6
- package/dist/es/{ToolTips-BsqDNvAz.js → ToolTips-B9Z_U4WM.js} +3 -3
- package/dist/es/index.js +23 -23
- package/dist/es/{utils-SutTRvhl.js → utils-COxKH46Q.js} +1 -1
- package/dist/es/{vendor-BnoIpJXx.js → vendor-CbeG2C4c.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +1 -1
- package/dist/types/components/DiyDataTable/index.d.ts +3 -3
- package/dist/types/components/Map/Map.vue.d.ts +0 -3
- package/dist/types/components/Map/function/port.d.ts +0 -3
- package/dist/types/components/Map/index.d.ts +0 -9
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +50 -50
- package/package.json +1 -1
- package/dist/es/Map-BTJrG_eT.js +0 -2536
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, ref as o, provide as n, watch as i, openBlock as u, createBlock as m, withCtx as p, renderSlot as W } from "vue";
|
|
2
|
-
import { _ } from "./Grid-
|
|
3
|
-
import { w as b } from "./utils-
|
|
2
|
+
import { _ } from "./Grid-DEbsTV3v.js";
|
|
3
|
+
import { w as b } from "./utils-COxKH46Q.js";
|
|
4
4
|
const D = /* @__PURE__ */ h({
|
|
5
5
|
name: "ZhBaseInfo",
|
|
6
6
|
__name: "BaseInfo",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as R, useSlots as T, inject as L, computed as n, ref as M, watchEffect as A, openBlock as t, createBlock as u, unref as s, withCtx as m, createElementVNode as h, normalizeClass as d, normalizeStyle as S, resolveDynamicComponent as D, createElementBlock as i, toDisplayString as o, renderSlot as V, Fragment as p, withModifiers as O, createTextVNode as f, createVNode as b, createCommentVNode as W } from "vue";
|
|
2
|
-
import { E as C, a as g, d as Z } from "./vendor-
|
|
3
|
-
import { Z as G } from "./Grid-
|
|
4
|
-
import { w as U } from "./utils-
|
|
2
|
+
import { E as C, a as g, d as Z } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { Z as G } from "./Grid-DEbsTV3v.js";
|
|
4
|
+
import { w as U } from "./utils-COxKH46Q.js";
|
|
5
5
|
const y = "--", X = "YYYY-MM-DDTHH:mm:ss", x = "YYYY-MM-DDT23:59:59", ee = "YYYY-MM-DD", le = "https://static.zhihaoscm.cn/", _ = { key: 1 }, H = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "zh-base-item--value--file"
|
|
@@ -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 { b as m, c as d } from "./vendor-
|
|
3
|
-
import { w as _ } from "./utils-
|
|
2
|
+
import { b as m, c as d } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { w as _ } from "./utils-COxKH46Q.js";
|
|
4
4
|
const h = /* @__PURE__ */ r({
|
|
5
5
|
name: "ZhButton",
|
|
6
6
|
inheritAttrs: !1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as le, useModel as ae, ref as s, watch as R, nextTick as f, withDirectives as te, openBlock as g, createElementBlock as P, createVNode as F, unref as C, withCtx as V, createBlock as z, toDisplayString as oe, createCommentVNode as se, mergeProps as ne, Fragment as re, renderList as ce, mergeModels as $ } from "vue";
|
|
2
|
-
import { e as A, f as ie, g as ue, h as pe, i as de, C as ve } from "./vendor-
|
|
3
|
-
import { w as fe } from "./utils-
|
|
2
|
+
import { e as A, f as ie, g as ue, h as pe, i as de, C as ve } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { w as fe } from "./utils-COxKH46Q.js";
|
|
4
4
|
const ge = { class: "w-100" }, me = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "cascader-select-empty"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as u, openBlock as f, createElementBlock as h, normalizeClass as D, createVNode as g, unref as _, mergeProps as A } from "vue";
|
|
2
|
-
import { j as T, k as y } from "./vendor-
|
|
3
|
-
import { D as m, a as b, L as p, b as k } from "./BaseItem-
|
|
4
|
-
import { w as E } from "./utils-
|
|
2
|
+
import { j as T, k as y } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { D as m, a as b, L as p, b as k } from "./BaseItem-B_4mwWHs.js";
|
|
4
|
+
import { w as E } from "./utils-COxKH46Q.js";
|
|
5
5
|
const d = (e, l = b) => e ? T(e).format(l).replace("Invalid date", m) : m, P = (e) => typeof e == "number" ? !0 : typeof e == "string" ? !isNaN(parseFloat(e)) : !1;
|
|
6
6
|
function U(e) {
|
|
7
7
|
const l = ["角", "分"], r = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], s = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 "./BaseItem-
|
|
3
|
-
import { _ as k } from "./Button-
|
|
4
|
-
import { w as y } from "./utils-
|
|
2
|
+
import { D as v } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { _ as k } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as y } from "./utils-COxKH46Q.js";
|
|
5
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
6
|
key: 1,
|
|
7
7
|
class: "detail-header--right"
|
|
@@ -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 "./BaseItem-
|
|
3
|
-
import { w as f } from "./utils-
|
|
2
|
+
import { D as u } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { w as f } from "./utils-COxKH46Q.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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as k, useModel as w, computed as T, openBlock as r, createBlock as v, unref as D, mergeProps as M, withCtx as o, renderSlot as s, createElementVNode as c, createVNode as u, createTextVNode as m, toDisplayString as l, createElementBlock as Z, createCommentVNode as z, mergeModels as p } from "vue";
|
|
2
|
-
import { Z as f } from "./Button-
|
|
3
|
-
import { l as E } from "./vendor-
|
|
4
|
-
import { w as I } from "./utils-
|
|
2
|
+
import { Z as f } from "./Button-BFA52ivn.js";
|
|
3
|
+
import { l as E } from "./vendor-CbeG2C4c.js";
|
|
4
|
+
import { w as I } from "./utils-COxKH46Q.js";
|
|
5
5
|
const N = { class: "title" }, O = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sub-title"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as K, useModel as j, ref as
|
|
2
|
-
import { D as F } from "./BaseItem-
|
|
3
|
-
import { m as
|
|
4
|
-
import { _ as oe } from "./Button-
|
|
5
|
-
import { w as le } from "./utils-
|
|
1
|
+
import { defineComponent as K, useModel as j, ref as k, computed as G, openBlock as s, createBlock as m, unref as u, withCtx as f, createVNode as A, mergeProps as J, createCommentVNode as x, createElementBlock as v, Fragment as T, renderList as Q, normalizeClass as S, toDisplayString as C, renderSlot as D, createTextVNode as V, createElementVNode as b, mergeModels as Y } from "vue";
|
|
2
|
+
import { D as F } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { m as _, e as N, n as ee, o as te, p as $, q as L, r as ae, s as I, b as U } from "./vendor-CbeG2C4c.js";
|
|
4
|
+
import { _ as oe } from "./Button-BFA52ivn.js";
|
|
5
|
+
import { w as le } from "./utils-COxKH46Q.js";
|
|
6
6
|
var w = /* @__PURE__ */ ((h) => (h.AUTOCOMPLETE = "autocomplete", h.FORMAT = "format", h.TEXT = "text", h.INDEX = "index", h))(w || {});
|
|
7
7
|
const re = { key: 0 }, de = {
|
|
8
8
|
key: 1,
|
|
@@ -28,44 +28,44 @@ const re = { key: 0 }, de = {
|
|
|
28
28
|
}),
|
|
29
29
|
emits: ["update:rawData"],
|
|
30
30
|
setup(h, { expose: q }) {
|
|
31
|
-
const
|
|
31
|
+
const i = h, n = j(h, "rawData"), d = k([]), g = k({
|
|
32
32
|
isShow: !0,
|
|
33
33
|
width: 150,
|
|
34
34
|
customAddRow: !0,
|
|
35
35
|
addRowText: "增行",
|
|
36
36
|
customAddColumn: !0,
|
|
37
37
|
addColumnText: "增列"
|
|
38
|
-
}), c = G(() =>
|
|
38
|
+
}), c = G(() => i.operationOption ? {
|
|
39
39
|
...g.value,
|
|
40
|
-
...
|
|
40
|
+
...i.operationOption || {}
|
|
41
41
|
} : {
|
|
42
42
|
...g.value,
|
|
43
43
|
// 兼容之前单个配置项
|
|
44
|
-
customAddRow:
|
|
45
|
-
addRowText:
|
|
46
|
-
customAddColumn:
|
|
47
|
-
addColumnText:
|
|
48
|
-
}),
|
|
49
|
-
if (n.value.length ===
|
|
50
|
-
|
|
51
|
-
message: `最多添加${
|
|
44
|
+
customAddRow: i.customAddRow !== void 0 ? i.customAddRow : g.value.customAddRow,
|
|
45
|
+
addRowText: i.addRowText !== void 0 ? i.addRowText : g.value.addRowText,
|
|
46
|
+
customAddColumn: i.customAddColumn !== void 0 ? i.customAddColumn : g.value.customAddColumn,
|
|
47
|
+
addColumnText: i.addColumnText !== void 0 ? i.addColumnText : g.value.addColumnText
|
|
48
|
+
}), O = () => {
|
|
49
|
+
if (n.value.length === i.maxRowLength) {
|
|
50
|
+
_({
|
|
51
|
+
message: `最多添加${i.maxRowLength}行`,
|
|
52
52
|
type: "warning"
|
|
53
53
|
});
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
let t = {};
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
if (d.value.filter((e) => e.isAdd).length >=
|
|
60
|
-
|
|
61
|
-
message: `最多添加${
|
|
57
|
+
i.beforeAddRow && (t = i.beforeAddRow(n.value)), n.value.push(t);
|
|
58
|
+
}, M = () => {
|
|
59
|
+
if (d.value.filter((e) => e.isAdd).length >= i.maxColLength) {
|
|
60
|
+
_({
|
|
61
|
+
message: `最多添加${i.maxColLength}列`,
|
|
62
62
|
type: "warning"
|
|
63
63
|
});
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const a = String(Date.now());
|
|
67
67
|
d.value.push({
|
|
68
|
-
prop:
|
|
68
|
+
prop: a,
|
|
69
69
|
label: "",
|
|
70
70
|
isEditHeader: !0,
|
|
71
71
|
isAdd: !0,
|
|
@@ -74,21 +74,21 @@ const re = { key: 0 }, de = {
|
|
|
74
74
|
headerMaxlength: 15,
|
|
75
75
|
isNewlyColumn: !0
|
|
76
76
|
});
|
|
77
|
-
}, B = (t,
|
|
77
|
+
}, B = (t, a) => {
|
|
78
78
|
d.value.splice(t, 1), n.value.forEach((e) => {
|
|
79
|
-
delete e[
|
|
79
|
+
delete e[a.prop];
|
|
80
80
|
});
|
|
81
81
|
}, W = (t) => {
|
|
82
|
-
t === 0 && d.value.forEach((
|
|
83
|
-
|
|
82
|
+
t === 0 && d.value.forEach((a) => {
|
|
83
|
+
a.isSameData && (n.value[1][a.prop] = n.value[0][a.prop]);
|
|
84
84
|
}), n.value.splice(t, 1);
|
|
85
|
-
}, X = (t,
|
|
86
|
-
|
|
85
|
+
}, X = (t, a, e) => {
|
|
86
|
+
a(
|
|
87
87
|
e.completeList.filter((l) => l.includes(t)).map((l) => ({ value: l }))
|
|
88
88
|
);
|
|
89
89
|
}, Z = (t) => [
|
|
90
90
|
{
|
|
91
|
-
validator: (
|
|
91
|
+
validator: (a, e, l) => {
|
|
92
92
|
if (!d.value[t].label) {
|
|
93
93
|
l(new Error("请输入表头"));
|
|
94
94
|
return;
|
|
@@ -98,23 +98,23 @@ const re = { key: 0 }, de = {
|
|
|
98
98
|
message: "请输入表头",
|
|
99
99
|
trigger: ["blur", "change"]
|
|
100
100
|
}
|
|
101
|
-
], z = (t,
|
|
101
|
+
], z = (t, a, e) => {
|
|
102
102
|
const l = [];
|
|
103
103
|
return t.required && l.push({
|
|
104
104
|
required: !0,
|
|
105
105
|
message: t.requiredMessage || t.label + "不能为空",
|
|
106
106
|
trigger: t.slot ? void 0 : "blur"
|
|
107
107
|
}), t.varidate && l.push({
|
|
108
|
-
validator: (
|
|
109
|
-
const
|
|
110
|
-
|
|
108
|
+
validator: (o, r, p) => {
|
|
109
|
+
const E = t.varidate(r, a, e);
|
|
110
|
+
E !== !0 ? p(new Error(E)) : p();
|
|
111
111
|
}
|
|
112
112
|
// trigger: column.slot ? undefined : "blur",
|
|
113
113
|
}), l;
|
|
114
|
-
}, P = (t,
|
|
114
|
+
}, P = (t, a) => {
|
|
115
115
|
let e = t;
|
|
116
|
-
return
|
|
117
|
-
},
|
|
116
|
+
return a.isSameData && (e = n.value[0] || F), a.formatter ? a.showFormatter ? a.type === w.FORMAT ? a.showFormatter(a.formatter(e)) : a.showFormatter(e[a.prop]) : a.formatter(e[a.prop]) : e[a.prop] || F;
|
|
117
|
+
}, R = k(), y = k({
|
|
118
118
|
width: 132,
|
|
119
119
|
type: w.INDEX,
|
|
120
120
|
prop: "index",
|
|
@@ -125,24 +125,24 @@ const re = { key: 0 }, de = {
|
|
|
125
125
|
});
|
|
126
126
|
return q({
|
|
127
127
|
/** 初始化数据 */
|
|
128
|
-
initData: (t,
|
|
129
|
-
const e = (
|
|
130
|
-
e && (y.value = { ...e, isShow: e.isShow !== !1 }), t = N(t) || [], t.length === 0 && t.push({}),
|
|
128
|
+
initData: (t, a) => {
|
|
129
|
+
const e = (a || []).find((l) => l.type === w.INDEX) || null;
|
|
130
|
+
e && (y.value = { ...e, isShow: e.isShow !== !1 }), t = N(t) || [], t.length === 0 && t.push({}), a = [...a.filter((l) => l.type !== w.INDEX)], console.log("initData", t, a);
|
|
131
131
|
for (const l in t[0])
|
|
132
|
-
if (!
|
|
133
|
-
(
|
|
132
|
+
if (!a.some(
|
|
133
|
+
(o) => o.prop === l
|
|
134
134
|
)) {
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
135
|
+
const o = Date.now() + l, r = l.split(H);
|
|
136
|
+
if (r.length !== 2) {
|
|
137
137
|
console.log("keySplit 失败", l);
|
|
138
138
|
continue;
|
|
139
139
|
}
|
|
140
|
-
const p = Number(
|
|
141
|
-
|
|
140
|
+
const p = Number(r[1]);
|
|
141
|
+
a[p] = {
|
|
142
142
|
prop: l,
|
|
143
143
|
isEditHeader: !0,
|
|
144
|
-
label:
|
|
145
|
-
key:
|
|
144
|
+
label: r[0],
|
|
145
|
+
key: o,
|
|
146
146
|
isAdd: !0,
|
|
147
147
|
maxlength: 15,
|
|
148
148
|
headerMaxlength: 15,
|
|
@@ -150,16 +150,16 @@ const re = { key: 0 }, de = {
|
|
|
150
150
|
isNewlyColumn: !1
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
n.value = t, d.value =
|
|
153
|
+
n.value = t, d.value = a.filter((l) => l);
|
|
154
154
|
},
|
|
155
155
|
/** 获取数据 */
|
|
156
156
|
getData: async () => {
|
|
157
|
-
await
|
|
158
|
-
for (const
|
|
159
|
-
const e = d.value[
|
|
157
|
+
await R.value.validate();
|
|
158
|
+
for (const a in d.value) {
|
|
159
|
+
const e = d.value[a];
|
|
160
160
|
for (const l of d.value)
|
|
161
161
|
if (e.prop !== l.prop && e.label === l.label) {
|
|
162
|
-
|
|
162
|
+
_({
|
|
163
163
|
message: "所有列的表头不可重复",
|
|
164
164
|
type: "warning"
|
|
165
165
|
});
|
|
@@ -167,19 +167,19 @@ const re = { key: 0 }, de = {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
const t = N(n.value);
|
|
170
|
-
for (const
|
|
171
|
-
const e = t[
|
|
170
|
+
for (const a in t) {
|
|
171
|
+
const e = t[a];
|
|
172
172
|
for (const l in d.value) {
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
173
|
+
const o = d.value[l];
|
|
174
|
+
if (o.isSameData && a !== "0" && (e[o.prop] = t[0][o.prop]), o.varidate && !o.varidate(e[o.prop], e, a))
|
|
175
175
|
return;
|
|
176
|
-
if (
|
|
177
|
-
const
|
|
178
|
-
delete e[
|
|
179
|
-
const p =
|
|
180
|
-
e[p] =
|
|
176
|
+
if (o.isAdd) {
|
|
177
|
+
const r = e[o.prop];
|
|
178
|
+
delete e[o.prop];
|
|
179
|
+
const p = o.label + H + l;
|
|
180
|
+
e[p] = r;
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
o.formatter && o.type === w.FORMAT && (e[o.prop] = o.formatter(e));
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
return {
|
|
@@ -188,39 +188,39 @@ const re = { key: 0 }, de = {
|
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
190
|
/** 更新列配置数据 */
|
|
191
|
-
updateColumn: (t,
|
|
191
|
+
updateColumn: (t, a) => {
|
|
192
192
|
const e = d.value[t].prop;
|
|
193
|
-
if (d.value[t] =
|
|
193
|
+
if (d.value[t] = a, e !== a.prop)
|
|
194
194
|
for (const l of n.value)
|
|
195
|
-
l[
|
|
195
|
+
l[a.prop] = l[e], delete l[e];
|
|
196
196
|
},
|
|
197
197
|
/** 重置默认列配置数据 */
|
|
198
|
-
resetColumns: (t) => {
|
|
199
|
-
const
|
|
200
|
-
n.value.forEach((
|
|
201
|
-
|
|
202
|
-
delete
|
|
198
|
+
resetColumns: (t, a = !1) => {
|
|
199
|
+
const l = d.value.filter((r) => !r.isAdd).reduce((r, p) => (t.some((E) => E.prop === p.prop) || r.push(p.prop), r), []);
|
|
200
|
+
n.value.forEach((r) => {
|
|
201
|
+
l.forEach((p) => {
|
|
202
|
+
delete r[p];
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
const
|
|
206
|
-
d.value = [...t, ...
|
|
205
|
+
const o = d.value.filter((r) => r.isAdd);
|
|
206
|
+
a ? d.value = [...t] : d.value = [...t, ...o];
|
|
207
207
|
},
|
|
208
|
-
onAddRow:
|
|
209
|
-
onAddColumn:
|
|
208
|
+
onAddRow: O,
|
|
209
|
+
onAddColumn: M,
|
|
210
210
|
// 导出formRef
|
|
211
|
-
formRef:
|
|
211
|
+
formRef: R,
|
|
212
212
|
// 导出columns
|
|
213
213
|
getColumns: () => d.value
|
|
214
|
-
}), (t,
|
|
214
|
+
}), (t, a) => (s(), m(u(ee), {
|
|
215
215
|
class: "diy-data-table",
|
|
216
216
|
model: h.rawData,
|
|
217
217
|
ref_key: "formRef",
|
|
218
|
-
ref:
|
|
218
|
+
ref: R
|
|
219
219
|
}, {
|
|
220
220
|
default: f(() => [
|
|
221
|
-
|
|
221
|
+
A(u(te), J({ data: n.value }, t.$attrs), {
|
|
222
222
|
default: f(() => [
|
|
223
|
-
y.value.isShow ? (s(), m(u(
|
|
223
|
+
y.value.isShow ? (s(), m(u($), {
|
|
224
224
|
key: 0,
|
|
225
225
|
type: y.value.type,
|
|
226
226
|
label: y.value.label,
|
|
@@ -228,7 +228,7 @@ const re = { key: 0 }, de = {
|
|
|
228
228
|
minWidth: y.value.minWidth,
|
|
229
229
|
fixed: y.value.fixed
|
|
230
230
|
}, null, 8, ["type", "label", "width", "minWidth", "fixed"])) : x("", !0),
|
|
231
|
-
(s(!0), v(
|
|
231
|
+
(s(!0), v(T, null, Q(d.value, (e, l) => (s(), m(u($), {
|
|
232
232
|
key: e.key || l,
|
|
233
233
|
prop: e.prop,
|
|
234
234
|
label: e.label,
|
|
@@ -238,14 +238,14 @@ const re = { key: 0 }, de = {
|
|
|
238
238
|
}, {
|
|
239
239
|
header: f(() => [
|
|
240
240
|
t.isEdit ? e.isEditHeader && t.canOnlyEditNewlyColumnHeader && e.isNewlyColumn || e.isEditHeader && !t.canOnlyEditNewlyColumnHeader ? (s(), v("div", de, [
|
|
241
|
-
|
|
241
|
+
A(u(L), {
|
|
242
242
|
prop: `columns.${l}`,
|
|
243
243
|
rules: Z(l)
|
|
244
244
|
}, {
|
|
245
245
|
default: f(() => [
|
|
246
|
-
|
|
246
|
+
A(u(I), {
|
|
247
247
|
modelValue: e.label,
|
|
248
|
-
"onUpdate:modelValue": (
|
|
248
|
+
"onUpdate:modelValue": (o) => e.label = o,
|
|
249
249
|
maxlength: e.headerMaxlength || 20,
|
|
250
250
|
placeholder: "请输入表头"
|
|
251
251
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "maxlength"])
|
|
@@ -255,38 +255,38 @@ const re = { key: 0 }, de = {
|
|
|
255
255
|
e.isAdd ? (s(), v("i", {
|
|
256
256
|
key: 0,
|
|
257
257
|
class: "iconfont icon-close",
|
|
258
|
-
onClick: (
|
|
258
|
+
onClick: (o) => B(l, e)
|
|
259
259
|
}, null, 8, ie)) : x("", !0)
|
|
260
260
|
])) : (s(), v("div", {
|
|
261
261
|
key: 2,
|
|
262
262
|
class: S({ "is-required-label": e.required })
|
|
263
263
|
}, C(e.label), 3)) : (s(), v("div", re, C(e.label), 1))
|
|
264
264
|
]),
|
|
265
|
-
default: f((
|
|
266
|
-
|
|
265
|
+
default: f((o) => [
|
|
266
|
+
i.isEdit && (!e.isSameData || o.$index === 0) && e.type !== u(w).TEXT && !o.row.disabled ? (s(), m(u(L), {
|
|
267
267
|
key: 0,
|
|
268
|
-
prop: `${
|
|
269
|
-
rules: z(e,
|
|
268
|
+
prop: `${o.$index}.${e.prop}`,
|
|
269
|
+
rules: z(e, o.row, o.$index),
|
|
270
270
|
class: S(["col-edit-container", { "close-padding": e.isAdd }])
|
|
271
271
|
}, {
|
|
272
272
|
default: f(() => [
|
|
273
273
|
e.type === u(w).FORMAT && e.formatter ? (s(), v("div", se, C(e.showFormatter ? e.showFormatter(
|
|
274
|
-
e.formatter(
|
|
275
|
-
) : e.formatter(
|
|
274
|
+
e.formatter(o.row)
|
|
275
|
+
) : e.formatter(o.row)), 1)) : e.type === u(w).AUTOCOMPLETE ? (s(), m(u(ae), {
|
|
276
276
|
key: 1,
|
|
277
|
-
modelValue:
|
|
278
|
-
"onUpdate:modelValue": (
|
|
277
|
+
modelValue: o.row[e.prop],
|
|
278
|
+
"onUpdate:modelValue": (r) => o.row[e.prop] = r,
|
|
279
279
|
placeholder: e.placeholder || "请输入",
|
|
280
|
-
"fetch-suggestions": (
|
|
280
|
+
"fetch-suggestions": (r, p) => X(r, p, e),
|
|
281
281
|
maxlength: e.maxlength || 20
|
|
282
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : e.slot ?
|
|
282
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "fetch-suggestions", "maxlength"])) : e.slot ? D(t.$slots, e.slot, {
|
|
283
283
|
key: 2,
|
|
284
|
-
row:
|
|
285
|
-
$index:
|
|
284
|
+
row: o.row,
|
|
285
|
+
$index: o.$index
|
|
286
286
|
}, void 0, !0) : (s(), m(u(I), {
|
|
287
287
|
key: 3,
|
|
288
|
-
modelValue:
|
|
289
|
-
"onUpdate:modelValue": (
|
|
288
|
+
modelValue: o.row[e.prop],
|
|
289
|
+
"onUpdate:modelValue": (r) => o.row[e.prop] = r,
|
|
290
290
|
placeholder: e.placeholder || "请输入",
|
|
291
291
|
formatter: e.formatter,
|
|
292
292
|
parser: e.parser,
|
|
@@ -295,32 +295,32 @@ const re = { key: 0 }, de = {
|
|
|
295
295
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "formatter", "parser", "maxlength", "show-word-limit"]))
|
|
296
296
|
]),
|
|
297
297
|
_: 2
|
|
298
|
-
}, 1032, ["prop", "rules", "class"])) : e.slot ?
|
|
298
|
+
}, 1032, ["prop", "rules", "class"])) : e.slot ? D(t.$slots, e.slot, {
|
|
299
299
|
key: 1,
|
|
300
|
-
row:
|
|
301
|
-
$index:
|
|
302
|
-
}, void 0, !0) : (s(), v(
|
|
303
|
-
|
|
300
|
+
row: o.row,
|
|
301
|
+
$index: o.$index
|
|
302
|
+
}, void 0, !0) : (s(), v(T, { key: 2 }, [
|
|
303
|
+
V(C(P(o.row, e)), 1)
|
|
304
304
|
], 64))
|
|
305
305
|
]),
|
|
306
306
|
_: 2
|
|
307
307
|
}, 1032, ["prop", "label", "width", "min-width", "fixed"]))), 128)),
|
|
308
|
-
|
|
308
|
+
i.isEdit && c.value.isShow ? (s(), m(u($), {
|
|
309
309
|
key: 1,
|
|
310
310
|
width: c.value.width,
|
|
311
311
|
fixed: "right"
|
|
312
312
|
}, {
|
|
313
313
|
header: f(() => [
|
|
314
|
-
|
|
314
|
+
b("div", ne, [
|
|
315
315
|
c.value.customAddRow ? (s(), m(u(U), {
|
|
316
316
|
key: 0,
|
|
317
317
|
type: "primary",
|
|
318
318
|
link: "",
|
|
319
|
-
onClick:
|
|
319
|
+
onClick: O
|
|
320
320
|
}, {
|
|
321
321
|
default: f(() => [
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
a[0] || (a[0] = b("i", { class: "iconfont icon-Frame1" }, null, -1)),
|
|
323
|
+
V(C(c.value.addRowText), 1)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})) : x("", !0),
|
|
@@ -328,27 +328,27 @@ const re = { key: 0 }, de = {
|
|
|
328
328
|
key: 1,
|
|
329
329
|
type: "primary",
|
|
330
330
|
link: "",
|
|
331
|
-
onClick:
|
|
331
|
+
onClick: M
|
|
332
332
|
}, {
|
|
333
333
|
default: f(() => [
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
a[1] || (a[1] = b("i", { class: "iconfont icon-Frame-11" }, null, -1)),
|
|
335
|
+
V(C(c.value.addColumnText), 1)
|
|
336
336
|
]),
|
|
337
337
|
_: 1
|
|
338
338
|
})) : x("", !0)
|
|
339
339
|
])
|
|
340
340
|
]),
|
|
341
341
|
default: f(({ $index: e, row: l }) => [
|
|
342
|
-
|
|
343
|
-
t.$slots.operation ?
|
|
342
|
+
b("div", ue, [
|
|
343
|
+
t.$slots.operation ? D(t.$slots, "operation", {
|
|
344
344
|
key: 0,
|
|
345
345
|
row: n.value[e],
|
|
346
346
|
$index: e
|
|
347
|
-
}, void 0, !0) : (s(), v(
|
|
347
|
+
}, void 0, !0) : (s(), v(T, { key: 1 }, [
|
|
348
348
|
n.value.length > 1 && !l.disabled ? (s(), v("i", {
|
|
349
349
|
key: 0,
|
|
350
350
|
class: "iconfont icon-close",
|
|
351
|
-
onClick: (
|
|
351
|
+
onClick: (o) => W(e)
|
|
352
352
|
}, null, 8, pe)) : x("", !0)
|
|
353
353
|
], 64))
|
|
354
354
|
])
|
|
@@ -362,7 +362,7 @@ const re = { key: 0 }, de = {
|
|
|
362
362
|
_: 3
|
|
363
363
|
}, 8, ["model"]));
|
|
364
364
|
}
|
|
365
|
-
}), he = /* @__PURE__ */ oe(fe, [["__scopeId", "data-v-
|
|
365
|
+
}), he = /* @__PURE__ */ oe(fe, [["__scopeId", "data-v-7618ed5a"]]), ce = le(he);
|
|
366
366
|
export {
|
|
367
367
|
w as D,
|
|
368
368
|
ce as Z
|
|
@@ -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 "./BaseItem-
|
|
3
|
-
import { _ } from "./Button-
|
|
4
|
-
import { w as u } from "./utils-
|
|
2
|
+
import { D as f } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { _ } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as u } from "./utils-COxKH46Q.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 "./BaseItem-
|
|
3
|
-
import { E as y } from "./vendor-
|
|
4
|
-
import { _ as h } from "./Button-
|
|
5
|
-
import { w as v } from "./utils-
|
|
2
|
+
import { D as w } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { E as y } from "./vendor-CbeG2C4c.js";
|
|
4
|
+
import { _ as h } from "./Button-BFA52ivn.js";
|
|
5
|
+
import { w as v } from "./utils-COxKH46Q.js";
|
|
6
6
|
const k = { class: "file_wrapper" }, x = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "header"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
-
import { w as A } from "./utils-
|
|
2
|
+
import { g as X } from "./Table-D49FFXP7.js";
|
|
3
|
+
import { w as A } from "./utils-COxKH46Q.js";
|
|
4
4
|
const Y = /* @__PURE__ */ L({
|
|
5
5
|
name: "Grid",
|
|
6
6
|
__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 "./BaseItem-
|
|
3
|
-
import { _ } from "./Button-
|
|
4
|
-
import { w as u } from "./utils-
|
|
2
|
+
import { D as d } from "./BaseItem-B_4mwWHs.js";
|
|
3
|
+
import { _ } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as u } from "./utils-COxKH46Q.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 V, useAttrs as v, useModel as E, openBlock as I, createElementBlock as z, normalizeClass as S, createVNode as $, unref as N, mergeProps as x, createSlots as _, renderList as y, withCtx as B, renderSlot as C, normalizeProps as M, guardReactiveProps as P, mergeModels as j, normalizeStyle as A } from "vue";
|
|
2
|
-
import { s as U } from "./vendor-
|
|
3
|
-
import { _ as Z } from "./Button-
|
|
4
|
-
import { w as k } from "./utils-
|
|
2
|
+
import { s as U } from "./vendor-CbeG2C4c.js";
|
|
3
|
+
import { _ as Z } from "./Button-BFA52ivn.js";
|
|
4
|
+
import { w as k } from "./utils-COxKH46Q.js";
|
|
5
5
|
const H = /* @__PURE__ */ V({
|
|
6
6
|
name: "zh-input",
|
|
7
7
|
__name: "Input",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as s, createElementBlock as a, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as e } from "./Button-
|
|
3
|
-
import { w as i } from "./utils-
|
|
2
|
+
import { _ as e } from "./Button-BFA52ivn.js";
|
|
3
|
+
import { w as i } from "./utils-COxKH46Q.js";
|
|
4
4
|
const d = { class: "loading-box" }, r = /* @__PURE__ */ t({
|
|
5
5
|
name: "zh-loading",
|
|
6
6
|
__name: "Loading",
|