@partex/one-core 2.0.61 → 2.0.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/lib/one-core.js CHANGED
@@ -862,7 +862,7 @@ const aD = {
862
862
  "zh-CN": { ...aD },
863
863
  "fr-FR": {}
864
864
  }
865
- }), Ut = oD, R_ = "2.0.61", _p = {
865
+ }), Ut = oD, R_ = "2.0.63", _p = {
866
866
  Components: {
867
867
  platformName: () => `${Ut.global.t("Platform.components")} v${R_}`,
868
868
  platformType: "T0",
@@ -962,7 +962,7 @@ const hs = (e, t) => ge(
962
962
  },
963
963
  {
964
964
  trigger: () => e,
965
- default: () => t
965
+ default: () => typeof t == "function" ? t() : t
966
966
  }
967
967
  ), Fr = (e, t = "default", r, n, a) => {
968
968
  const i = {
@@ -972,7 +972,7 @@ const hs = (e, t) => ge(
972
972
  disabled: typeof e.disabled == "function" ? e.disabled(n, a) : e.disabled || !1,
973
973
  loading: e.loading || !1
974
974
  }, o = {
975
- default: () => e.buttonText || null
975
+ default: () => typeof e.buttonText == "function" ? e.buttonText() : e.buttonText || null
976
976
  };
977
977
  if (!e.confirmText) {
978
978
  if (e.onClick && typeof e.onClick == "string") {
@@ -1016,7 +1016,7 @@ const hs = (e, t) => ge(
1016
1016
  }
1017
1017
  },
1018
1018
  {
1019
- default: () => t.confirmText
1019
+ default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText
1020
1020
  }
1021
1021
  ),
1022
1022
  trigger: () => e
@@ -1133,7 +1133,7 @@ const hs = (e, t) => ge(
1133
1133
  trigger: () => Fr(
1134
1134
  // @ts-ignore
1135
1135
  {
1136
- buttonText: a.buttonText,
1136
+ buttonText: typeof a.buttonText == "function" ? a.buttonText() : a.buttonText,
1137
1137
  disabled: typeof a.disabled == "function" ? a.disabled(t, r) : a.disabled,
1138
1138
  loading: a.loading
1139
1139
  },
@@ -1236,6 +1236,10 @@ const bD = /* @__PURE__ */ re(yD, [["render", _D]]), wD = Ee({
1236
1236
  type: Number,
1237
1237
  default: 0
1238
1238
  },
1239
+ circleTxt: {
1240
+ type: String,
1241
+ default: ""
1242
+ },
1239
1243
  pointA: {
1240
1244
  type: Number,
1241
1245
  default: void 0
@@ -1370,7 +1374,7 @@ function PD(e, t, r, n, a, i) {
1370
1374
  }),
1371
1375
  onMouseout: t[3] || (t[3] = (...s) => e.mouseOut && e.mouseOut(...s))
1372
1376
  }, null, 40, AD)) : te("", !0),
1373
- V("text", MD, ue(e.circle) + "% ", 1)
1377
+ V("text", MD, ue(e.circleTxt ? e.circleTxt : `${e.circle}%`), 1)
1374
1378
  ])),
1375
1379
  N(o, {
1376
1380
  show: e.popover.show,
@@ -28392,7 +28396,7 @@ const ZG = Ee({
28392
28396
  },
28393
28397
  icon: Fo,
28394
28398
  color: "info",
28395
- tooltipText: e("Common.importer.retry")
28399
+ tooltipText: () => e("Common.importer.retry")
28396
28400
  }) : v.unshift({
28397
28401
  type: "custom",
28398
28402
  disabled: h.jobStatus !== 1,
@@ -28401,7 +28405,7 @@ const ZG = Ee({
28401
28405
  },
28402
28406
  icon: du,
28403
28407
  color: "success",
28404
- tooltipText: e("Common.importer.btnDownload")
28408
+ tooltipText: () => e("Common.importer.btnDownload")
28405
28409
  }), Sa(v);
28406
28410
  }
28407
28411
  }
@@ -28609,8 +28613,8 @@ const QG = /* @__PURE__ */ re(ZG, [["render", JG]]), eH = Ee({
28609
28613
  {
28610
28614
  type: "custom",
28611
28615
  color: "primary",
28612
- tooltipText: e("Common.message.read"),
28613
- buttonText: e("Common.message.read"),
28616
+ tooltipText: () => e("Common.message.read"),
28617
+ buttonText: () => e("Common.message.read"),
28614
28618
  onClick: () => {
28615
28619
  XG(h.messageId).then(() => {
28616
28620
  d();
@@ -29432,7 +29436,7 @@ const lH = /* @__PURE__ */ re(aH, [["render", sH]]), L2 = (e) => {
29432
29436
  },
29433
29437
  icon: du,
29434
29438
  color: "success",
29435
- tooltipText: r("Common.importer.btnDownload")
29439
+ tooltipText: () => r("Common.importer.btnDownload")
29436
29440
  }
29437
29441
  ]);
29438
29442
  }