@kengic/core.react 0.0.1-beta.53 → 0.0.1-beta.54
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/kengic-core.react.js +16 -11
- package/package.json +1 -1
package/kengic-core.react.js
CHANGED
|
@@ -66477,25 +66477,30 @@ class KgUtil {
|
|
|
66477
66477
|
*/
|
|
66478
66478
|
static confirm(t) {
|
|
66479
66479
|
const r = Modal.confirm({
|
|
66480
|
-
|
|
66481
|
-
|
|
66482
|
-
content: t.intl.formatMessage({ id: "kg.confirmDelete" }),
|
|
66483
|
-
okText: t.intl.formatMessage({ id: "kg.confirm" }),
|
|
66484
|
-
okButtonProps: {
|
|
66485
|
-
danger: !0,
|
|
66486
|
-
...t.okButtonProps ?? {}
|
|
66487
|
-
},
|
|
66480
|
+
animation: !1,
|
|
66481
|
+
autoFocusButton: null,
|
|
66488
66482
|
cancelButtonProps: {
|
|
66489
66483
|
// 通过设置样式, 隐藏取消按钮
|
|
66490
|
-
|
|
66484
|
+
className: t.kgHideCancelButton === !0 ? "kg-invisible" : "",
|
|
66491
66485
|
disabled: !1,
|
|
66492
66486
|
...t.cancelButtonProps ?? {}
|
|
66493
66487
|
},
|
|
66494
66488
|
cancelText: t.intl.formatMessage({ id: "kg.cancel" }),
|
|
66495
|
-
closable: !1,
|
|
66496
66489
|
centered: !0,
|
|
66497
|
-
|
|
66490
|
+
closable: !1,
|
|
66491
|
+
content: t.intl.formatMessage({ id: "kg.confirmDelete" }),
|
|
66492
|
+
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$2, { icon: "ant-design:exclamation-circle-outlined" }),
|
|
66498
66493
|
keyboard: !1,
|
|
66494
|
+
maskTransitionName: "",
|
|
66495
|
+
okButtonProps: {
|
|
66496
|
+
danger: !0,
|
|
66497
|
+
...t.okButtonProps ?? {}
|
|
66498
|
+
},
|
|
66499
|
+
okText: t.intl.formatMessage({ id: "kg.confirm" }),
|
|
66500
|
+
onCancel() {
|
|
66501
|
+
},
|
|
66502
|
+
title: t.intl.formatMessage({ id: "kg.confirm" }),
|
|
66503
|
+
transitionName: "",
|
|
66499
66504
|
...t
|
|
66500
66505
|
});
|
|
66501
66506
|
return r.showLoading = () => {
|