@partex/one-core 2.0.13 → 2.0.14
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/lib/one-core.cjs +2 -2
- package/lib/one-core.js +15 -7
- package/lib/one-core.umd.cjs +2 -2
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -963,14 +963,15 @@ const sa = (e, a) => q(
|
|
|
963
963
|
}, u = {
|
|
964
964
|
default: () => e.buttonText || null
|
|
965
965
|
};
|
|
966
|
-
if (!e.confirmText)
|
|
967
|
-
if (typeof e.onClick == "string") {
|
|
966
|
+
if (!e.confirmText) {
|
|
967
|
+
if (e.onClick && typeof e.onClick == "string") {
|
|
968
968
|
const f = e.onClick;
|
|
969
969
|
d.onClick = () => {
|
|
970
970
|
new Function("rowData", "rowIndex", f)(r, s);
|
|
971
971
|
};
|
|
972
|
-
}
|
|
973
|
-
|
|
972
|
+
}
|
|
973
|
+
e.onClick && typeof e.onClick == "function" && (d.onClick = e.onClick.bind(void 0, r, s));
|
|
974
|
+
}
|
|
974
975
|
return o && (u.icon = () => q(
|
|
975
976
|
ie,
|
|
976
977
|
{},
|
|
@@ -1028,7 +1029,7 @@ const sa = (e, a) => q(
|
|
|
1028
1029
|
)), e.type === "delete" && (r = Ga(
|
|
1029
1030
|
sa(
|
|
1030
1031
|
be(
|
|
1031
|
-
e,
|
|
1032
|
+
{ ...e, onClick: "" },
|
|
1032
1033
|
e.color ? e.color : "error",
|
|
1033
1034
|
e.icon ? e.icon : mr,
|
|
1034
1035
|
a,
|
|
@@ -1043,7 +1044,13 @@ const sa = (e, a) => q(
|
|
|
1043
1044
|
a,
|
|
1044
1045
|
o
|
|
1045
1046
|
)), e.type === "custom" && (r = sa(
|
|
1046
|
-
be(
|
|
1047
|
+
be(
|
|
1048
|
+
e.confirmText ? { ...e, onClick: "" } : e,
|
|
1049
|
+
e.color,
|
|
1050
|
+
e.icon,
|
|
1051
|
+
a,
|
|
1052
|
+
o
|
|
1053
|
+
),
|
|
1047
1054
|
e.tooltipText
|
|
1048
1055
|
)), e.confirmText && (r = Ga(r, e, a, o)), r;
|
|
1049
1056
|
}, qs = (e, a, o) => {
|
|
@@ -1069,6 +1076,7 @@ const sa = (e, a) => q(
|
|
|
1069
1076
|
be(
|
|
1070
1077
|
{
|
|
1071
1078
|
...s,
|
|
1079
|
+
onClick: "",
|
|
1072
1080
|
buttonText: G.lang === "zh-CN" ? "删除" : "Delete"
|
|
1073
1081
|
},
|
|
1074
1082
|
"error",
|
|
@@ -9363,7 +9371,7 @@ const kb = /* @__PURE__ */ j(nb, [["render", Cb]]), bo = /* @__PURE__ */ Object.
|
|
|
9363
9371
|
langUS: o0,
|
|
9364
9372
|
scaleStore: Ko,
|
|
9365
9373
|
userStore: O
|
|
9366
|
-
}, Symbol.toStringTag, { value: "Module" })), Nb = "2.0.
|
|
9374
|
+
}, Symbol.toStringTag, { value: "Module" })), Nb = "2.0.14";
|
|
9367
9375
|
let Cn;
|
|
9368
9376
|
async function kn() {
|
|
9369
9377
|
const e = await fetch(
|