zhytech-ui 1.0.24 → 1.0.26
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/zhytech-ui.es.js +38 -36
- package/dist/zhytech-ui.umd.js +2 -2
- package/package.json +3 -2
package/dist/zhytech-ui.es.js
CHANGED
|
@@ -989,7 +989,7 @@ const Wn = {
|
|
|
989
989
|
Di
|
|
990
990
|
], Ei = {
|
|
991
991
|
name: "zhy-icon"
|
|
992
|
-
},
|
|
992
|
+
}, ye = /* @__PURE__ */ oe({
|
|
993
993
|
...Ei,
|
|
994
994
|
props: {
|
|
995
995
|
name: {
|
|
@@ -1099,7 +1099,7 @@ const Si = {
|
|
|
1099
1099
|
};
|
|
1100
1100
|
return (d, m) => {
|
|
1101
1101
|
var z, x, V;
|
|
1102
|
-
const h = D("el-switch"), v = D("filter-item", !0), c =
|
|
1102
|
+
const h = D("el-switch"), v = D("filter-item", !0), c = ye, b = D("el-option"), _ = D("el-select"), y = D("el-cascader"), C = D("el-input");
|
|
1103
1103
|
return i(n) ? (f(), E("div", Si, [
|
|
1104
1104
|
S("div", ki, [
|
|
1105
1105
|
t.showConditionType ? (f(), E(te, { key: 0 }, [
|
|
@@ -1498,7 +1498,7 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
|
|
|
1498
1498
|
y = V == null ? void 0 : V.replace("{value1}", T[0]).replace("{value2}", T[1]);
|
|
1499
1499
|
else {
|
|
1500
1500
|
let Z = "", re = "";
|
|
1501
|
-
$.length ? (Z = (N = $.find((
|
|
1501
|
+
$.length ? (Z = (N = $.find((be) => be.value === T[0])) == null ? void 0 : N.label, re = (O = $.find((be) => be.value === T[1])) == null ? void 0 : O.label) : (Z = x.replace("value", T[0]), re = x.replace("value", T[1])), y = w == null ? void 0 : w.replace("{value1}", Z).replace("{value2}", re);
|
|
1502
1502
|
}
|
|
1503
1503
|
return y;
|
|
1504
1504
|
}
|
|
@@ -1554,7 +1554,7 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
|
|
|
1554
1554
|
return b.message && (b.filterConditionExpression = "", b.filterConditionContent = "", b.filterConditions = [], Se("error", b.message)), b;
|
|
1555
1555
|
}
|
|
1556
1556
|
}), (b, _) => {
|
|
1557
|
-
const y =
|
|
1557
|
+
const y = ye;
|
|
1558
1558
|
return f(), E("div", Ti, [
|
|
1559
1559
|
(f(!0), E(te, null, he(i(s), (C, z) => (f(), E("div", {
|
|
1560
1560
|
key: z,
|
|
@@ -2494,11 +2494,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2494
2494
|
if ($ === 0 || T === n)
|
|
2495
2495
|
return z(!1);
|
|
2496
2496
|
vt = n, Pt = $;
|
|
2497
|
-
var re = n.nextElementSibling,
|
|
2498
|
-
|
|
2499
|
-
var $e = Kt(ce, e, A, l, n, a, o,
|
|
2497
|
+
var re = n.nextElementSibling, be = !1;
|
|
2498
|
+
be = $ === 1;
|
|
2499
|
+
var $e = Kt(ce, e, A, l, n, a, o, be);
|
|
2500
2500
|
if ($e !== !1)
|
|
2501
|
-
return ($e === 1 || $e === -1) && (
|
|
2501
|
+
return ($e === 1 || $e === -1) && (be = $e === 1), Io = !0, setTimeout(i2, 30), C(), be && !re ? e.appendChild(A) : n.parentNode.insertBefore(A, be ? re : n), P && bn(P, 0, X - P.scrollTop), ve = A.parentNode, F !== void 0 && !Xt && (lo = Math.abs(F - ue(n)[O])), x(), z(!0);
|
|
2502
2502
|
}
|
|
2503
2503
|
if (e.contains(A))
|
|
2504
2504
|
return z(!1);
|
|
@@ -2838,8 +2838,8 @@ var Mo = _n(function(t, o, e, n) {
|
|
|
2838
2838
|
we[Z] || (we[Z] = {});
|
|
2839
2839
|
(we[h].vx != X || we[h].vy != T || we[h].el !== c) && (we[h].el = c, we[h].vx = X, we[h].vy = T, clearInterval(we[h].pid), (X != 0 || T != 0) && (d = !0, we[h].pid = setInterval((function() {
|
|
2840
2840
|
n && this.layer === 0 && B.active._onTouchMove(fo);
|
|
2841
|
-
var re = we[this.layer].vy ? we[this.layer].vy * r : 0,
|
|
2842
|
-
typeof m == "function" && m.call(B.dragged.parentNode[ke],
|
|
2841
|
+
var re = we[this.layer].vy ? we[this.layer].vy * r : 0, be = we[this.layer].vx ? we[this.layer].vx * r : 0;
|
|
2842
|
+
typeof m == "function" && m.call(B.dragged.parentNode[ke], be, re, t, fo, we[this.layer].el) !== "continue" || bn(we[this.layer].el, be, re);
|
|
2843
2843
|
}).bind({
|
|
2844
2844
|
layer: h
|
|
2845
2845
|
}), 24))), h++;
|
|
@@ -4040,7 +4040,7 @@ const N2 = ["onClick"], B2 = {
|
|
|
4040
4040
|
u.value.splice(_, 1), s.selectComponent = void 0, d("deleteComponent", y);
|
|
4041
4041
|
};
|
|
4042
4042
|
return (_, y) => {
|
|
4043
|
-
const C = D("el-form-item"), z =
|
|
4043
|
+
const C = D("el-form-item"), z = ye;
|
|
4044
4044
|
return f(), M(i(Ht), {
|
|
4045
4045
|
list: i(u),
|
|
4046
4046
|
"item-key": "id",
|
|
@@ -4363,7 +4363,7 @@ const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class
|
|
|
4363
4363
|
(c = a.value[e.componentID]) != null && c.length && (v += `,您已上传了${a.value[e.componentID].length}个文件,最多还能选择${s.value.fileLimit - a.value[e.componentID].length}个文件`), Se("error", v);
|
|
4364
4364
|
};
|
|
4365
4365
|
return (v, c) => {
|
|
4366
|
-
const b =
|
|
4366
|
+
const b = ye, _ = D("el-button"), y = D("el-upload");
|
|
4367
4367
|
return f(), E("div", W2, [
|
|
4368
4368
|
p(y, {
|
|
4369
4369
|
ref_key: "uploadRef",
|
|
@@ -4594,7 +4594,7 @@ const ea = { class: "upload-image-component" }, ta = { class: "el-upload-list__i
|
|
|
4594
4594
|
};
|
|
4595
4595
|
return (c, b) => {
|
|
4596
4596
|
var z;
|
|
4597
|
-
const _ =
|
|
4597
|
+
const _ = ye, y = D("el-image"), C = D("el-upload");
|
|
4598
4598
|
return f(), E("div", ea, [
|
|
4599
4599
|
p(C, {
|
|
4600
4600
|
ref_key: "uploadImageRef",
|
|
@@ -4796,7 +4796,7 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
|
|
|
4796
4796
|
}, u.value = e.options;
|
|
4797
4797
|
};
|
|
4798
4798
|
return (v, c) => {
|
|
4799
|
-
const b = D("el-radio-button"), _ = D("el-radio-group"), y = D("el-form-item"), C = D("el-switch"), z = D("el-input-number"), x = D("el-divider"), V =
|
|
4799
|
+
const b = D("el-radio-button"), _ = D("el-radio-group"), y = D("el-form-item"), C = D("el-switch"), z = D("el-input-number"), x = D("el-divider"), V = ye, w = D("el-option"), $ = D("el-select"), F = D("el-button"), Y = D("el-form");
|
|
4800
4800
|
return f(), M(Y, {
|
|
4801
4801
|
"label-width": "80px",
|
|
4802
4802
|
"label-suffix": ":",
|
|
@@ -5064,7 +5064,7 @@ const ba = { class: "employee-component" }, ya = {
|
|
|
5064
5064
|
a.value.clearable && l.value[e.componentID] === h && (s.value = void 0, m.preventDefault());
|
|
5065
5065
|
};
|
|
5066
5066
|
return (m, h) => {
|
|
5067
|
-
const v = D("el-radio"), c = D("el-radio-group"), b = D("el-checkbox"), _ = D("el-checkbox-group"), y = D("el-option"), C = D("el-select"), z =
|
|
5067
|
+
const v = D("el-radio"), c = D("el-radio-group"), b = D("el-checkbox"), _ = D("el-checkbox-group"), y = D("el-option"), C = D("el-select"), z = ye;
|
|
5068
5068
|
return f(), E("div", ba, [
|
|
5069
5069
|
i(a).type === "radio" ? (f(), M(c, {
|
|
5070
5070
|
key: 0,
|
|
@@ -5487,7 +5487,7 @@ const ka = { class: "grade-component" }, Ma = {
|
|
|
5487
5487
|
s.value.clearable && r.value.score === v && (delete r.value.score, h.preventDefault());
|
|
5488
5488
|
};
|
|
5489
5489
|
return (h, v) => {
|
|
5490
|
-
const c = D("el-radio"), b = D("el-radio-group"), _ = Sa, y =
|
|
5490
|
+
const c = D("el-radio"), b = D("el-radio-group"), _ = Sa, y = ye;
|
|
5491
5491
|
return f(), E("div", ka, [
|
|
5492
5492
|
p(b, {
|
|
5493
5493
|
class: xe(["grade-items", { "new-line": i(s).newLine }]),
|
|
@@ -5808,7 +5808,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
|
5808
5808
|
a.value.clearable && l.value[e.componentID] === h && (s.value = void 0, m.preventDefault());
|
|
5809
5809
|
};
|
|
5810
5810
|
return (m, h) => {
|
|
5811
|
-
const v = D("el-radio"), c = D("el-radio-group"), b = D("el-checkbox"), _ = D("el-checkbox-group"), y = D("el-option"), C = D("el-select"), z =
|
|
5811
|
+
const v = D("el-radio"), c = D("el-radio-group"), b = D("el-checkbox"), _ = D("el-checkbox-group"), y = D("el-option"), C = D("el-select"), z = ye;
|
|
5812
5812
|
return f(), E("div", Oa, [
|
|
5813
5813
|
i(a).type === "radio" ? (f(), M(c, {
|
|
5814
5814
|
key: 0,
|
|
@@ -6053,7 +6053,7 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ oe({
|
|
|
6053
6053
|
d.value = u.value, d.itemSourceType = u.itemSourceType;
|
|
6054
6054
|
};
|
|
6055
6055
|
return (u, d) => {
|
|
6056
|
-
const m = D("el-option"), h = D("el-select"), v = D("el-form-item"), c = D("el-switch"), b = D("el-input-number"), _ = D("el-divider"), y =
|
|
6056
|
+
const m = D("el-option"), h = D("el-select"), v = D("el-form-item"), c = D("el-switch"), b = D("el-input-number"), _ = D("el-divider"), y = ye, C = D("el-checkbox"), z = D("el-tooltip"), x = D("el-button"), V = D("el-form");
|
|
6057
6057
|
return f(), M(V, {
|
|
6058
6058
|
"label-width": "80px",
|
|
6059
6059
|
"label-suffix": ":",
|
|
@@ -6279,7 +6279,7 @@ const Wa = { class: "checkbox-component" }, Ya = {
|
|
|
6279
6279
|
});
|
|
6280
6280
|
};
|
|
6281
6281
|
return (d, m) => {
|
|
6282
|
-
const h = D("el-checkbox"), v = D("el-input"), c = D("el-checkbox-group"), b =
|
|
6282
|
+
const h = D("el-checkbox"), v = D("el-input"), c = D("el-checkbox-group"), b = ye;
|
|
6283
6283
|
return f(), E("div", Wa, [
|
|
6284
6284
|
p(c, {
|
|
6285
6285
|
class: xe({ "new-line": i(a).newLine }),
|
|
@@ -6545,7 +6545,7 @@ const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
|
|
|
6545
6545
|
},
|
|
6546
6546
|
{ immediate: !0, deep: !0 }
|
|
6547
6547
|
), (u, d) => {
|
|
6548
|
-
const m = D("el-input"), h =
|
|
6548
|
+
const m = D("el-input"), h = ye;
|
|
6549
6549
|
return f(), E("div", Qa, [
|
|
6550
6550
|
p(m, {
|
|
6551
6551
|
type: i(a).type,
|
|
@@ -6684,7 +6684,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
|
|
|
6684
6684
|
d.value = u.value, d.itemSourceType = u.itemSourceType;
|
|
6685
6685
|
};
|
|
6686
6686
|
return (u, d) => {
|
|
6687
|
-
const m = D("el-option"), h = D("el-select"), v = D("el-form-item"), c = D("el-switch"), b = D("el-divider"), _ =
|
|
6687
|
+
const m = D("el-option"), h = D("el-select"), v = D("el-form-item"), c = D("el-switch"), b = D("el-divider"), _ = ye, y = D("el-checkbox"), C = D("el-tooltip"), z = D("el-button"), x = D("el-form");
|
|
6688
6688
|
return f(), M(x, {
|
|
6689
6689
|
"label-width": "80px",
|
|
6690
6690
|
"label-suffix": ":",
|
|
@@ -6891,7 +6891,7 @@ const ds = { class: "radio-component" }, us = {
|
|
|
6891
6891
|
}
|
|
6892
6892
|
};
|
|
6893
6893
|
return (m, h) => {
|
|
6894
|
-
const v = D("el-radio"), c = D("el-input"), b = D("el-radio-group"), _ =
|
|
6894
|
+
const v = D("el-radio"), c = D("el-input"), b = D("el-radio-group"), _ = ye;
|
|
6895
6895
|
return f(), E("div", ds, [
|
|
6896
6896
|
p(b, {
|
|
6897
6897
|
class: xe({ "new-line": i(a).newLine }),
|
|
@@ -7448,14 +7448,16 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7448
7448
|
var re;
|
|
7449
7449
|
if (!d.value[X])
|
|
7450
7450
|
return;
|
|
7451
|
-
const T = (re = u.value.searchParams) == null ? void 0 : re.find((
|
|
7451
|
+
const T = (re = u.value.searchParams) == null ? void 0 : re.find((be) => be.key === X);
|
|
7452
7452
|
if (!(T != null && T.type))
|
|
7453
7453
|
return;
|
|
7454
7454
|
const Z = T.type;
|
|
7455
|
-
c.value = c.value.filter((
|
|
7456
|
-
|
|
7455
|
+
c.value = c.value.filter((be) => {
|
|
7456
|
+
if (!Object.keys(be).includes(T.key))
|
|
7457
|
+
return Se("error", `参数配置错误,【${T.label}】的属性(${T.key})在数据中不存在!`), !1;
|
|
7458
|
+
const $e = be[T.key];
|
|
7457
7459
|
if (!$e)
|
|
7458
|
-
return
|
|
7460
|
+
return !0;
|
|
7459
7461
|
if ([Ce.DATETIME, Ce.DATE, Ce.TIME].includes(Z))
|
|
7460
7462
|
return v($e, d.value[X], Z);
|
|
7461
7463
|
if (Z === Ce.SELECTOR)
|
|
@@ -7513,7 +7515,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7513
7515
|
Y("select", O), s.value = !1;
|
|
7514
7516
|
};
|
|
7515
7517
|
return (O, P) => {
|
|
7516
|
-
const X =
|
|
7518
|
+
const X = ye, T = D("el-input"), Z = D("el-option"), re = D("el-select"), be = D("el-cascader"), $e = D("el-date-picker"), Ie = D("el-time-picker"), it = D("el-form-item"), Qe = D("el-form"), Ge = D("el-divider"), xt = D("el-empty"), at = wt, qt = D("el-link"), Dt = D("el-button"), jt = D("el-dialog");
|
|
7517
7519
|
return f(), E("div", null, [
|
|
7518
7520
|
p(jt, {
|
|
7519
7521
|
modelValue: s.value,
|
|
@@ -7612,7 +7614,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7612
7614
|
]),
|
|
7613
7615
|
_: 2
|
|
7614
7616
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : I("", !0),
|
|
7615
|
-
J.type === i(Ce).CASCADER_SELECTOR ? (f(), M(
|
|
7617
|
+
J.type === i(Ce).CASCADER_SELECTOR ? (f(), M(be, {
|
|
7616
7618
|
key: 2,
|
|
7617
7619
|
ref_for: !0,
|
|
7618
7620
|
ref: "cascaderRef",
|
|
@@ -8382,7 +8384,7 @@ const Ls = /* @__PURE__ */ oe({
|
|
|
8382
8384
|
};
|
|
8383
8385
|
return (b, _) => {
|
|
8384
8386
|
var x;
|
|
8385
|
-
const y =
|
|
8387
|
+
const y = ye, C = D("el-button"), z = D("el-popconfirm");
|
|
8386
8388
|
return f(), E("div", Ps, [
|
|
8387
8389
|
Us,
|
|
8388
8390
|
S("div", Fs, [
|
|
@@ -8773,7 +8775,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
8773
8775
|
r.value.components.splice(0, r.value.components.length), h.selectComponent = void 0;
|
|
8774
8776
|
}, Z = H(!1), re = () => {
|
|
8775
8777
|
Z.value = !0;
|
|
8776
|
-
},
|
|
8778
|
+
}, be = (L) => {
|
|
8777
8779
|
L != null && L.length && (w(L), L.forEach((k) => r.value.components.push(k)));
|
|
8778
8780
|
}, $e = () => {
|
|
8779
8781
|
qt.value = l(r.value), at.value = !0;
|
|
@@ -8840,7 +8842,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
8840
8842
|
};
|
|
8841
8843
|
return (L, k) => {
|
|
8842
8844
|
var Go;
|
|
8843
|
-
const q =
|
|
8845
|
+
const q = ye, R = D("el-collapse-item"), ie = D("el-collapse"), De = D("el-input"), de = D("el-form"), pe = D("el-empty"), Re = D("el-tab-pane"), ft = D("el-tabs"), Wt = D("el-dialog");
|
|
8844
8846
|
return f(), E(te, null, [
|
|
8845
8847
|
S("div", Ys, [
|
|
8846
8848
|
S("div", Xs, [
|
|
@@ -9076,7 +9078,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
9076
9078
|
modelValue: i(Z),
|
|
9077
9079
|
"onUpdate:modelValue": k[12] || (k[12] = (ae) => _e(Z) ? Z.value = ae : null),
|
|
9078
9080
|
params: i(m),
|
|
9079
|
-
onSelect:
|
|
9081
|
+
onSelect: be
|
|
9080
9082
|
}, null, 8, ["modelValue", "params"])) : I("", !0)
|
|
9081
9083
|
], 64);
|
|
9082
9084
|
};
|
|
@@ -9088,10 +9090,10 @@ so.install = function(t) {
|
|
|
9088
9090
|
wt.install = function(t) {
|
|
9089
9091
|
t.component(wt.name, wt);
|
|
9090
9092
|
};
|
|
9091
|
-
|
|
9092
|
-
t.component(
|
|
9093
|
+
ye.install = function(t) {
|
|
9094
|
+
t.component(ye.name, ye);
|
|
9093
9095
|
};
|
|
9094
|
-
const l6 = [
|
|
9096
|
+
const l6 = [ye, so, wt, At], i6 = function(t, o) {
|
|
9095
9097
|
l6.forEach((e) => {
|
|
9096
9098
|
t.component(e.name, e);
|
|
9097
9099
|
});
|
|
@@ -9104,5 +9106,5 @@ export {
|
|
|
9104
9106
|
At as zhyDynamicFilter,
|
|
9105
9107
|
so as zhyFormDesigner,
|
|
9106
9108
|
wt as zhyFormRenderer,
|
|
9107
|
-
|
|
9109
|
+
ye as zhyIcon
|
|
9108
9110
|
};
|