@teamias/rex-pro 0.0.1 → 0.0.3
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/components/rex-pro-table/components/ActionButtons.js +7 -7
- package/dist/components/rex-pro-table/components/modal-form/InlineForm.js +3 -3
- package/dist/components/rex-pro-table/rex-pro-table.js +4 -4
- package/dist/locales/en-US.json +10 -12
- package/dist/locales/zh-CN.json +6 -8
- package/package.json +6 -3
|
@@ -89,7 +89,7 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
89
89
|
status = _checkSelected.status;
|
|
90
90
|
if (!status) {
|
|
91
91
|
message.warning(formatMessage({
|
|
92
|
-
id: '
|
|
92
|
+
id: 'pro.components.rex-pro-table.action-buttons.please-check-data',
|
|
93
93
|
defaultMessage: '请勾选数据'
|
|
94
94
|
}));
|
|
95
95
|
return;
|
|
@@ -101,7 +101,7 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
101
101
|
whiteSpace: 'pre-wrap'
|
|
102
102
|
},
|
|
103
103
|
children: (_item$confirmTitle = item.confirmTitle) !== null && _item$confirmTitle !== void 0 ? _item$confirmTitle : formatMessage({
|
|
104
|
-
id: '
|
|
104
|
+
id: 'pro.components.rex-pro-table.action-buttons.confirm-operation',
|
|
105
105
|
defaultMessage: '确认操作{label}'
|
|
106
106
|
}, {
|
|
107
107
|
label: item.label
|
|
@@ -112,7 +112,7 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
112
112
|
whiteSpace: 'pre-wrap'
|
|
113
113
|
},
|
|
114
114
|
children: (_item$confirmContent = item.confirmContent) !== null && _item$confirmContent !== void 0 ? _item$confirmContent : formatMessage({
|
|
115
|
-
id: '
|
|
115
|
+
id: 'pro.components.rex-pro-table.action-buttons.confirm-execute',
|
|
116
116
|
defaultMessage: '确认要执行此操作吗?'
|
|
117
117
|
})
|
|
118
118
|
}),
|
|
@@ -272,8 +272,8 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
272
272
|
key: "".concat(index, "-").concat(item.key),
|
|
273
273
|
onClick: item.onClick
|
|
274
274
|
}), (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : formatMessage({
|
|
275
|
-
id: '
|
|
276
|
-
defaultMessage: '
|
|
275
|
+
id: 'pro.components.rex-pro-table.action-buttons.item-label-missing',
|
|
276
|
+
defaultMessage: '未配置按钮标签'
|
|
277
277
|
}));
|
|
278
278
|
})
|
|
279
279
|
});
|
|
@@ -294,8 +294,8 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
294
294
|
size: size
|
|
295
295
|
}, groupItem.buttonProps), {}, {
|
|
296
296
|
children: (_groupItem$label = groupItem.label) !== null && _groupItem$label !== void 0 ? _groupItem$label : formatMessage({
|
|
297
|
-
id: '
|
|
298
|
-
defaultMessage: '
|
|
297
|
+
id: 'pro.components.rex-pro-table.action-buttons.group-label-missing',
|
|
298
|
+
defaultMessage: '未配置分组标签'
|
|
299
299
|
})
|
|
300
300
|
}))
|
|
301
301
|
}), index);
|
|
@@ -83,7 +83,7 @@ var InlineForm = function InlineForm(_ref) {
|
|
|
83
83
|
return actionRef.onCancel();
|
|
84
84
|
},
|
|
85
85
|
children: formatMessage({
|
|
86
|
-
id: '
|
|
86
|
+
id: 'pro.components.rex-pro-table.form.cancel',
|
|
87
87
|
defaultMessage: '取消'
|
|
88
88
|
})
|
|
89
89
|
}), /*#__PURE__*/_jsx(Button, {
|
|
@@ -91,8 +91,8 @@ var InlineForm = function InlineForm(_ref) {
|
|
|
91
91
|
type: "primary",
|
|
92
92
|
loading: isSubmitting,
|
|
93
93
|
children: formatMessage({
|
|
94
|
-
id: '
|
|
95
|
-
defaultMessage: '
|
|
94
|
+
id: 'pro.components.rex-pro-table.form.confirm',
|
|
95
|
+
defaultMessage: '确认'
|
|
96
96
|
})
|
|
97
97
|
})]
|
|
98
98
|
});
|
|
@@ -67,8 +67,8 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
|
|
|
67
67
|
actionButtonItemsPromise: undefined,
|
|
68
68
|
hasBatchAction: true,
|
|
69
69
|
customEmptyText: formatMessage({
|
|
70
|
-
id: '
|
|
71
|
-
defaultMessage: '
|
|
70
|
+
id: 'pro.components.rex-pro-table.empty-text',
|
|
71
|
+
defaultMessage: '请选择相关筛选条件进行搜索'
|
|
72
72
|
})
|
|
73
73
|
};
|
|
74
74
|
}),
|
|
@@ -177,7 +177,7 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
|
|
|
177
177
|
};
|
|
178
178
|
var extraColumns = actionConfig || responseConfig.tableActionButtonUrl || responseConfig.tableActionButtonConfig ? [_objectSpread(_objectSpread({
|
|
179
179
|
title: formatMessage({
|
|
180
|
-
id: '
|
|
180
|
+
id: 'pro.components.rex-pro-table.column-action-title',
|
|
181
181
|
defaultMessage: '操作'
|
|
182
182
|
}),
|
|
183
183
|
fixed: 'right',
|
|
@@ -334,7 +334,7 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
|
|
|
334
334
|
showLessItems: true,
|
|
335
335
|
showTotal: function showTotal(total) {
|
|
336
336
|
return formatMessage({
|
|
337
|
-
id: '
|
|
337
|
+
id: 'pro.components.rex-pro-table.pagination-total',
|
|
338
338
|
defaultMessage: '共 {total} 条'
|
|
339
339
|
}, {
|
|
340
340
|
total: total
|
package/dist/locales/en-US.json
CHANGED
|
@@ -2,26 +2,24 @@
|
|
|
2
2
|
"pro": {
|
|
3
3
|
"components": {
|
|
4
4
|
"rex-pro-table": {
|
|
5
|
+
"empty-text": "Please select relevant filter criteria to search",
|
|
6
|
+
"column-action-title": "Actions",
|
|
7
|
+
"pagination-total": "{total} entries in total",
|
|
5
8
|
"action-buttons": {
|
|
6
|
-
"
|
|
9
|
+
"please-check-data": "Please select data",
|
|
7
10
|
"confirm-operation": "Confirm operation {label}",
|
|
8
|
-
"
|
|
9
|
-
"item-label": "
|
|
10
|
-
"
|
|
11
|
+
"confirm-execute": "Are you sure you want to proceed?",
|
|
12
|
+
"item-label-missing": "Button label not configured",
|
|
13
|
+
"group-label-missing": "Group label not configured"
|
|
11
14
|
},
|
|
12
|
-
"column-action-title": "operate",
|
|
13
|
-
"empty-text": "Please select relevant filter criteria to search.",
|
|
14
15
|
"form": {
|
|
15
16
|
"cancel": "Cancel",
|
|
16
|
-
"
|
|
17
|
-
}
|
|
18
|
-
"pagination-total": "{total} entries in total"
|
|
17
|
+
"confirm": "Confirm"
|
|
18
|
+
}
|
|
19
19
|
},
|
|
20
20
|
"filter-form": {
|
|
21
21
|
"reset": "Reset",
|
|
22
|
-
"search": "Search"
|
|
23
|
-
"expand": "Expand",
|
|
24
|
-
"collapse": "Collapse"
|
|
22
|
+
"search": "Search"
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
}
|
package/dist/locales/zh-CN.json
CHANGED
|
@@ -2,26 +2,24 @@
|
|
|
2
2
|
"pro": {
|
|
3
3
|
"components": {
|
|
4
4
|
"rex-pro-table": {
|
|
5
|
-
"empty-text": "
|
|
5
|
+
"empty-text": "请选择相关筛选条件进行搜索",
|
|
6
6
|
"column-action-title": "操作",
|
|
7
7
|
"pagination-total": "共 {total} 条",
|
|
8
8
|
"action-buttons": {
|
|
9
9
|
"please-check-data": "请勾选数据",
|
|
10
10
|
"confirm-operation": "确认操作{label}",
|
|
11
|
-
"confirm-execute
|
|
12
|
-
"item-label": "
|
|
13
|
-
"group-label": "
|
|
11
|
+
"confirm-execute": "确认要执行此操作吗?",
|
|
12
|
+
"item-label-missing": "未配置按钮标签",
|
|
13
|
+
"group-label-missing": "未配置分组标签"
|
|
14
14
|
},
|
|
15
15
|
"form": {
|
|
16
16
|
"cancel": "取消",
|
|
17
|
-
"
|
|
17
|
+
"confirm": "确认"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"filter-form": {
|
|
21
21
|
"reset": "重置",
|
|
22
|
-
"search": "查询"
|
|
23
|
-
"expand": "展开",
|
|
24
|
-
"collapse": "收起"
|
|
22
|
+
"search": "查询"
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamias/rex-pro",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
"adduser": "npm adduser",
|
|
13
13
|
"build": "father build",
|
|
14
14
|
"build:watch": "father dev",
|
|
15
|
-
"deploy": "changeset && changeset version && npm publish",
|
|
15
|
+
"deploy": "changeset && changeset version && npm publish && npm run docs:deploy",
|
|
16
16
|
"dev": "dumi dev",
|
|
17
17
|
"docs:build": "dumi build",
|
|
18
|
+
"docs:deploy": "vercel --prod",
|
|
18
19
|
"docs:preview": "dumi preview",
|
|
19
20
|
"doctor": "father doctor",
|
|
20
21
|
"lint": "npm run lint:es",
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"@changesets/cli": "^2.29.5",
|
|
64
65
|
"@commitlint/cli": "^17.1.2",
|
|
65
66
|
"@commitlint/config-conventional": "^17.1.0",
|
|
67
|
+
"@teamias/umi-loader-source-plugin": "^0.0.6",
|
|
66
68
|
"@types/lodash": "^4.17.20",
|
|
67
69
|
"@types/react": "^18.0.0",
|
|
68
70
|
"@types/react-dom": "^18.0.0",
|
|
@@ -77,7 +79,8 @@
|
|
|
77
79
|
"prettier-plugin-packagejson": "^2.2.18",
|
|
78
80
|
"react": "^18.0.0",
|
|
79
81
|
"react-dom": "^18.0.0",
|
|
80
|
-
"stylelint": "^14.9.1"
|
|
82
|
+
"stylelint": "^14.9.1",
|
|
83
|
+
"umi-plugin-upload-build": "^1.1.0"
|
|
81
84
|
},
|
|
82
85
|
"peerDependencies": {
|
|
83
86
|
"@ant-design/icons": ">=5.0.0",
|