@teamias/rex-design 0.0.5 → 0.0.7
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.
|
@@ -145,8 +145,8 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
145
145
|
size: 4,
|
|
146
146
|
children: inlineLabelRender(_objectSpread(_objectSpread({}, item), {}, {
|
|
147
147
|
label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : formatMessage({
|
|
148
|
-
id: '
|
|
149
|
-
defaultMessage: '
|
|
148
|
+
id: 'rex.components.action-buttons.item-label-fallback',
|
|
149
|
+
defaultMessage: '未配置按钮标签'
|
|
150
150
|
})
|
|
151
151
|
}))
|
|
152
152
|
}));
|
|
@@ -177,8 +177,8 @@ export var ActionButtons = function ActionButtons(_ref) {
|
|
|
177
177
|
size: 4,
|
|
178
178
|
children: inlineLabelRender(_objectSpread(_objectSpread({}, groupItem), {}, {
|
|
179
179
|
label: (_groupItem$label = groupItem.label) !== null && _groupItem$label !== void 0 ? _groupItem$label : formatMessage({
|
|
180
|
-
id: '
|
|
181
|
-
defaultMessage: '
|
|
180
|
+
id: 'rex.components.action-buttons.group-label-fallback',
|
|
181
|
+
defaultMessage: '未配置分组标签'
|
|
182
182
|
})
|
|
183
183
|
}))
|
|
184
184
|
})
|
|
@@ -86,8 +86,8 @@ var Icons = function Icons(_ref) {
|
|
|
86
86
|
state.errorText = '';
|
|
87
87
|
setError = function setError() {
|
|
88
88
|
state.errorText = "".concat(formatMessage({
|
|
89
|
-
id: '
|
|
90
|
-
defaultMessage: '
|
|
89
|
+
id: 'rex.components.icons.loader-error',
|
|
90
|
+
defaultMessage: '图标加载失败'
|
|
91
91
|
}), ": ").concat(type, "-").concat(name);
|
|
92
92
|
state.content = /*#__PURE__*/_jsx(WarningOutlined, {
|
|
93
93
|
style: {
|
|
@@ -110,8 +110,8 @@ var Icons = function Icons(_ref) {
|
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
throw new Error("@ant-design/icons ".concat(formatMessage({
|
|
113
|
-
id: '
|
|
114
|
-
defaultMessage: '
|
|
113
|
+
id: 'rex.components.icons.not-found',
|
|
114
|
+
defaultMessage: '图标未找到'
|
|
115
115
|
})));
|
|
116
116
|
case 9:
|
|
117
117
|
state.content = /*#__PURE__*/createElement(data[name]);
|
|
@@ -127,8 +127,8 @@ var Icons = function Icons(_ref) {
|
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
throw new Error("iconify ".concat(formatMessage({
|
|
130
|
-
id: '
|
|
131
|
-
defaultMessage: '
|
|
130
|
+
id: 'rex.components.icons.not-found',
|
|
131
|
+
defaultMessage: '图标未找到'
|
|
132
132
|
})));
|
|
133
133
|
case 15:
|
|
134
134
|
_name$split = name.split(':'), _name$split2 = _slicedToArray(_name$split, 2), iconLib = _name$split2[0], icon = _name$split2[1];
|
|
@@ -208,8 +208,8 @@ var Icons = function Icons(_ref) {
|
|
|
208
208
|
break;
|
|
209
209
|
case 44:
|
|
210
210
|
throw new Error(formatMessage({
|
|
211
|
-
id: '
|
|
212
|
-
defaultMessage: '
|
|
211
|
+
id: 'rex.components.icons.type-not-matched',
|
|
212
|
+
defaultMessage: '图标类型不支持'
|
|
213
213
|
}));
|
|
214
214
|
case 45:
|
|
215
215
|
update();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,83 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export * from './context';
|
|
3
3
|
export * from './hooks';
|
|
4
|
+
export declare const designLocales: {
|
|
5
|
+
zhCN: {
|
|
6
|
+
rex: {
|
|
7
|
+
components: {
|
|
8
|
+
"base-list-table": {
|
|
9
|
+
"expand-more-data-hide": string;
|
|
10
|
+
"expand-more-data": string;
|
|
11
|
+
};
|
|
12
|
+
"base-table": {
|
|
13
|
+
"column-serial-number-title": string;
|
|
14
|
+
};
|
|
15
|
+
"base-form": {
|
|
16
|
+
placeholder: {
|
|
17
|
+
input: string;
|
|
18
|
+
select: string;
|
|
19
|
+
"date-range": {
|
|
20
|
+
start: string;
|
|
21
|
+
end: string;
|
|
22
|
+
};
|
|
23
|
+
"input-number-range": {
|
|
24
|
+
min: string;
|
|
25
|
+
max: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
"value-type-match-error": string;
|
|
29
|
+
};
|
|
30
|
+
"action-buttons": {
|
|
31
|
+
"item-label-fallback": string;
|
|
32
|
+
"group-label-fallback": string;
|
|
33
|
+
};
|
|
34
|
+
icons: {
|
|
35
|
+
"loader-error": string;
|
|
36
|
+
"not-found": string;
|
|
37
|
+
"type-not-matched": string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
context: {};
|
|
41
|
+
hooks: {};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
enUS: {
|
|
45
|
+
rex: {
|
|
46
|
+
components: {
|
|
47
|
+
"base-list-table": {
|
|
48
|
+
"expand-more-data": string;
|
|
49
|
+
"expand-more-data-hide": string;
|
|
50
|
+
};
|
|
51
|
+
"base-table": {
|
|
52
|
+
"column-serial-number-title": string;
|
|
53
|
+
};
|
|
54
|
+
"base-form": {
|
|
55
|
+
placeholder: {
|
|
56
|
+
input: string;
|
|
57
|
+
select: string;
|
|
58
|
+
"date-range": {
|
|
59
|
+
start: string;
|
|
60
|
+
end: string;
|
|
61
|
+
};
|
|
62
|
+
"input-number-range": {
|
|
63
|
+
min: string;
|
|
64
|
+
max: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
"value-type-match-error": string;
|
|
68
|
+
};
|
|
69
|
+
"action-buttons": {
|
|
70
|
+
"item-label-fallback": string;
|
|
71
|
+
"group-label-fallback": string;
|
|
72
|
+
};
|
|
73
|
+
icons: {
|
|
74
|
+
"loader-error": string;
|
|
75
|
+
"not-found": string;
|
|
76
|
+
"type-not-matched": string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
context: {};
|
|
80
|
+
hooks: {};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
package/dist/index.js
CHANGED
package/dist/locales/en-US.json
CHANGED
|
@@ -10,18 +10,27 @@
|
|
|
10
10
|
},
|
|
11
11
|
"base-form": {
|
|
12
12
|
"placeholder": {
|
|
13
|
+
"input": "Please enter",
|
|
14
|
+
"select": "Please select",
|
|
13
15
|
"date-range": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
+
"start": "Start time",
|
|
17
|
+
"end": "End time"
|
|
16
18
|
},
|
|
17
|
-
"input": "Please enter",
|
|
18
19
|
"input-number-range": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
}
|
|
22
|
-
"select": "Please select"
|
|
20
|
+
"min": "Minimum value",
|
|
21
|
+
"max": "Maximum value"
|
|
22
|
+
}
|
|
23
23
|
},
|
|
24
24
|
"value-type-match-error": "Not matched"
|
|
25
|
+
},
|
|
26
|
+
"action-buttons": {
|
|
27
|
+
"item-label-fallback": "Unconfigured button label",
|
|
28
|
+
"group-label-fallback": "Unconfigured group label"
|
|
29
|
+
},
|
|
30
|
+
"icons": {
|
|
31
|
+
"loader-error": "Icon loading failed",
|
|
32
|
+
"not-found": "Icon not found",
|
|
33
|
+
"type-not-matched": "Icon type not supported"
|
|
25
34
|
}
|
|
26
35
|
},
|
|
27
36
|
"context": {},
|
package/dist/locales/zh-CN.json
CHANGED
|
@@ -22,6 +22,15 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"value-type-match-error": "匹配不到"
|
|
25
|
+
},
|
|
26
|
+
"action-buttons": {
|
|
27
|
+
"item-label-fallback": "未配置按钮标签",
|
|
28
|
+
"group-label-fallback": "未配置分组标签"
|
|
29
|
+
},
|
|
30
|
+
"icons": {
|
|
31
|
+
"loader-error": "图标加载失败",
|
|
32
|
+
"not-found": "图标未找到",
|
|
33
|
+
"type-not-matched": "图标类型不支持"
|
|
25
34
|
}
|
|
26
35
|
},
|
|
27
36
|
"context": {},
|