@ecoding/components.antd 0.4.17 → 0.4.18
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.
|
@@ -16,10 +16,10 @@ const confirm = {
|
|
|
16
16
|
Modal.confirm({
|
|
17
17
|
okType: opts.okType || "danger",
|
|
18
18
|
icon: React.createElement(ExclamationCircleOutlined, null),
|
|
19
|
-
title: opts.title
|
|
19
|
+
title: opts.title ? opts.title : opts.i18n ? opts.i18n.$t('global.del.tip') : "确定要删除吗?",
|
|
20
20
|
content: opts.content || "",
|
|
21
|
-
okText: opts.okText
|
|
22
|
-
cancelText: opts.cancelText
|
|
21
|
+
okText: opts.okText ? opts.okText : opts.i18n ? opts.i18n.$t('global.confirm') : "确定",
|
|
22
|
+
cancelText: opts.cancelText ? opts.cancelText : opts.i18n ? opts.i18n.$t('global.cancel') : "取消",
|
|
23
23
|
width: opts.width || 450,
|
|
24
24
|
onOk() {
|
|
25
25
|
loading = true;
|
|
@@ -51,8 +51,8 @@ const confirm = {
|
|
|
51
51
|
title: opts.title || "标题",
|
|
52
52
|
content: opts.content || "",
|
|
53
53
|
okType: opts.okType || "primary",
|
|
54
|
-
okText: opts.okText
|
|
55
|
-
cancelText: opts.cancelText
|
|
54
|
+
okText: opts.okText ? opts.okText : opts.i18n ? opts.i18n.$t('global.confirm') : "确定",
|
|
55
|
+
cancelText: opts.cancelText ? opts.cancelText : opts.i18n ? opts.i18n.$t('global.cancel') : "取消",
|
|
56
56
|
width: opts.width || 450,
|
|
57
57
|
onOk() {
|
|
58
58
|
loading = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/components.antd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.18",
|
|
4
4
|
"author": "cxc",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"antd": "5.27.0",
|
|
48
48
|
"axios": "^1.1.2"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "0b06f78f06fce0cee8c4e16b59560eaa1f3ff288"
|
|
51
51
|
}
|