@zat-design/sisyphus-react 3.1.5-beta.9 → 3.2.0
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/index.esm.css +60 -1
- package/es/ProAction/index.js +7 -5
- package/es/ProConfigProvider/index.js +6 -1
- package/es/ProDownload/utils.js +4 -3
- package/es/ProDrawerForm/components/ProDrawer/index.js +6 -4
- package/es/ProDrawerForm/index.js +4 -4
- package/es/ProEditTable/components/ActionButton/index.js +3 -2
- package/es/ProEditTable/components/RenderField/index.js +2 -1
- package/es/ProEditTable/index.js +7 -6
- package/es/ProEditTable/utils/config.d.ts +8 -8
- package/es/ProEditTable/utils/config.js +9 -8
- package/es/ProEditTable/utils/index.js +3 -2
- package/es/ProEnum/hooks/useEnumRequest.js +17 -10
- package/es/ProEnum/index.js +9 -4
- package/es/ProForm/components/FormFooter/index.js +16 -20
- package/es/ProForm/components/base/Input/index.js +4 -3
- package/es/ProForm/components/base/InputNumber/index.js +4 -3
- package/es/ProForm/components/base/Select/index.js +2 -1
- package/es/ProForm/components/base/Switch/index.js +9 -5
- package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -1
- package/es/ProForm/components/base/TextArea/index.js +4 -2
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
- package/es/ProForm/components/combination/Group/index.js +2 -2
- package/es/ProForm/components/combination/ProAddressBar/index.js +5 -5
- package/es/ProForm/components/combination/ProModalSelect/index.js +3 -4
- package/es/ProForm/components/combination/ProNumberRange/index.js +3 -2
- package/es/ProForm/components/combination/ProRangeLimit/index.js +3 -7
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -11
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +17 -0
- package/es/ProForm/components/render/Render.js +4 -2
- package/es/ProForm/components/render/RenderFields.js +6 -4
- package/es/ProForm/index.js +14 -2
- package/es/ProForm/style/index.less +65 -35
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +7 -2
- package/es/ProForm/utils/rulesCreator.js +2 -1
- package/es/ProForm/utils/useRules.js +4 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
- package/es/ProLayout/components/Layout/Notice/index.js +3 -2
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +2 -1
- package/es/ProLayout/components/ProHeader/index.js +5 -4
- package/es/ProLayout/utils/index.js +1 -1
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/index.js +4 -2
- package/es/ProStep/components/Step/index.js +3 -1
- package/es/ProTable/index.js +7 -6
- package/es/ProTable/useAntdTable.d.ts +12 -4
- package/es/ProTable/useAntdTable.js +18 -6
- package/es/ProTree/components/ProTree.js +5 -4
- package/es/ProTree/components/Tree.js +3 -1
- package/es/ProTreeModal/components/List.js +0 -14
- package/es/ProTreeModal/components/Trigger.js +9 -3
- package/es/ProTreeModal/index.js +29 -13
- package/es/ProUpload/components/ButtonRender.js +5 -2
- package/es/ProUpload/components/DragRender.js +8 -8
- package/es/ProUpload/components/Example.js +3 -1
- package/es/ProUpload/components/ImageRender.js +8 -6
- package/es/ProUpload/index.js +8 -6
- package/es/locale/en_US.d.ts +123 -54
- package/es/locale/en_US.js +130 -61
- package/es/locale/index.d.ts +6 -0
- package/es/locale/index.js +11 -0
- package/es/locale/zh_CN.d.ts +122 -54
- package/es/locale/zh_CN.js +128 -60
- package/es/style/core/normalize.less +0 -1
- package/lib/ProAction/index.js +7 -5
- package/lib/ProConfigProvider/index.js +6 -1
- package/lib/ProDownload/utils.js +4 -3
- package/lib/ProDrawerForm/components/ProDrawer/index.js +6 -4
- package/lib/ProDrawerForm/index.js +4 -4
- package/lib/ProEditTable/components/ActionButton/index.js +3 -2
- package/lib/ProEditTable/components/RenderField/index.js +2 -1
- package/lib/ProEditTable/index.js +7 -6
- package/lib/ProEditTable/utils/config.d.ts +8 -8
- package/lib/ProEditTable/utils/config.js +9 -8
- package/lib/ProEditTable/utils/index.js +3 -2
- package/lib/ProEnum/hooks/useEnumRequest.js +17 -10
- package/lib/ProEnum/index.js +9 -4
- package/lib/ProForm/components/FormFooter/index.js +16 -19
- package/lib/ProForm/components/base/Input/index.js +4 -3
- package/lib/ProForm/components/base/InputNumber/index.js +4 -3
- package/lib/ProForm/components/base/Select/index.js +2 -1
- package/lib/ProForm/components/base/Switch/index.js +8 -5
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -1
- package/lib/ProForm/components/base/TextArea/index.js +4 -2
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
- package/lib/ProForm/components/combination/Group/index.js +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.js +5 -5
- package/lib/ProForm/components/combination/ProModalSelect/index.js +3 -4
- package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -2
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +3 -7
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -11
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +17 -0
- package/lib/ProForm/components/render/Render.js +4 -2
- package/lib/ProForm/components/render/RenderFields.js +5 -3
- package/lib/ProForm/index.js +14 -2
- package/lib/ProForm/style/index.less +65 -35
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +7 -2
- package/lib/ProForm/utils/rulesCreator.js +2 -1
- package/lib/ProForm/utils/useRules.js +4 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
- package/lib/ProLayout/components/Layout/Notice/index.js +3 -2
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +3 -1
- package/lib/ProLayout/components/ProHeader/index.js +5 -4
- package/lib/ProLayout/utils/index.js +1 -1
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/index.js +4 -2
- package/lib/ProStep/components/Step/index.js +3 -1
- package/lib/ProTable/index.js +7 -6
- package/lib/ProTable/useAntdTable.d.ts +12 -4
- package/lib/ProTable/useAntdTable.js +19 -6
- package/lib/ProTree/components/ProTree.js +5 -4
- package/lib/ProTree/components/Tree.js +3 -1
- package/lib/ProTreeModal/components/List.js +0 -14
- package/lib/ProTreeModal/components/Trigger.js +10 -3
- package/lib/ProTreeModal/index.js +29 -13
- package/lib/ProUpload/components/ButtonRender.js +5 -2
- package/lib/ProUpload/components/DragRender.js +8 -8
- package/lib/ProUpload/components/Example.js +3 -1
- package/lib/ProUpload/components/ImageRender.js +8 -6
- package/lib/ProUpload/index.js +8 -6
- package/lib/locale/en_US.d.ts +123 -54
- package/lib/locale/en_US.js +130 -61
- package/lib/locale/index.d.ts +6 -0
- package/lib/locale/index.js +14 -1
- package/lib/locale/zh_CN.d.ts +122 -54
- package/lib/locale/zh_CN.js +128 -60
- package/lib/style/core/normalize.less +0 -1
- package/package.json +1 -1
- package/.dumi/theme/builtins/Alert.tsx +0 -19
- package/.dumi/theme/builtins/Previewer.tsx +0 -232
- package/.dumi/theme/builtins/SourceCode.tsx +0 -64
- package/.dumi/theme/hooks/useCodeSandbox.tsx +0 -197
- package/.dumi/theme/hooks/useTheme.tsx +0 -707
- package/.dumi/theme/layouts/BasicLayout.tsx +0 -88
- package/.dumi/theme/layouts/components/Dark.less +0 -157
- package/.dumi/theme/layouts/components/Dark.tsx +0 -78
- package/.dumi/theme/layouts/components/Navbar.tsx +0 -83
- package/.dumi/theme/layouts/components/SideMenu.tsx +0 -61
- package/.dumi/theme/layouts/index.tsx +0 -26
- package/.dumi/theme/layouts/layout.less +0 -87
- package/.dumi/theme/typings.d.ts +0 -7
package/es/locale/en_US.d.ts
CHANGED
|
@@ -1,69 +1,138 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
ProDrawerForm: {
|
|
3
3
|
save: string;
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
isSureClose: string;
|
|
7
|
+
secondTipsWhenSave: string;
|
|
8
|
+
};
|
|
9
|
+
ProLayout: {
|
|
10
|
+
tipAlt: string;
|
|
11
|
+
closeAlt: string;
|
|
12
|
+
};
|
|
13
|
+
ProHeader: {
|
|
14
|
+
versionTitle: string;
|
|
15
|
+
confirm: string;
|
|
4
16
|
cancel: string;
|
|
17
|
+
confirmTitle: string;
|
|
18
|
+
backText: string;
|
|
19
|
+
copyTooltips: string[];
|
|
5
20
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
openModal: string;
|
|
21
|
+
ProDownload: {
|
|
22
|
+
errorMessage: string;
|
|
9
23
|
};
|
|
10
|
-
|
|
24
|
+
ProForm: {
|
|
25
|
+
unfold: string;
|
|
26
|
+
packUp: string;
|
|
27
|
+
inputPlaceholder: string;
|
|
28
|
+
selectPlaceHolder: string;
|
|
29
|
+
switchText: string[];
|
|
11
30
|
search: string;
|
|
12
31
|
reset: string;
|
|
13
|
-
|
|
32
|
+
ruleText: string;
|
|
33
|
+
completeText: string;
|
|
34
|
+
formList_actions: string[];
|
|
35
|
+
formList_confirmMessage: string;
|
|
36
|
+
};
|
|
37
|
+
ProAction: {
|
|
38
|
+
errorMessage: string;
|
|
39
|
+
defaultTitle: string;
|
|
40
|
+
};
|
|
41
|
+
ProWaterMark: {};
|
|
42
|
+
ProTable: {
|
|
43
|
+
noData: string;
|
|
44
|
+
resetColumnWidth: string;
|
|
45
|
+
customColumns: string;
|
|
46
|
+
transformResponseMsg: string;
|
|
47
|
+
deselect: string;
|
|
48
|
+
selectCurPage: string;
|
|
49
|
+
selectAll: string;
|
|
50
|
+
hasSelected: string;
|
|
51
|
+
total: string;
|
|
52
|
+
};
|
|
53
|
+
ProAddressBar: {
|
|
54
|
+
placeholder: string;
|
|
55
|
+
detailPlaceholder: string;
|
|
56
|
+
};
|
|
57
|
+
ProTree: {
|
|
58
|
+
inputPlaceholder: string;
|
|
59
|
+
unExpand: string;
|
|
14
60
|
expand: string;
|
|
61
|
+
all: string;
|
|
62
|
+
emptyTips: string;
|
|
63
|
+
};
|
|
64
|
+
ProUpload: {
|
|
65
|
+
exampleTitle: string;
|
|
66
|
+
errorInfoExt: string;
|
|
67
|
+
errorInfoSize: string;
|
|
68
|
+
buttonText: string;
|
|
69
|
+
draggerSelect: string;
|
|
70
|
+
draggerDelete: string;
|
|
71
|
+
draggerTips: string;
|
|
72
|
+
draggerBtnTxt: string;
|
|
73
|
+
draggerFileExt: string;
|
|
74
|
+
draggerLimitless: string;
|
|
75
|
+
view: string;
|
|
76
|
+
delete: string;
|
|
77
|
+
download: string;
|
|
78
|
+
};
|
|
79
|
+
ProStep: {
|
|
80
|
+
catalogue: string;
|
|
15
81
|
};
|
|
16
|
-
|
|
17
|
-
modeAdd: string;
|
|
18
|
-
modeUpdate: string;
|
|
19
|
-
modeDetail: string;
|
|
20
|
-
modeCustom: string;
|
|
21
|
-
close: string;
|
|
82
|
+
ProEditTable: {
|
|
22
83
|
confirm: string;
|
|
84
|
+
cancel: string;
|
|
85
|
+
noData: string;
|
|
86
|
+
clickAdd: string;
|
|
87
|
+
select: string;
|
|
88
|
+
enter: string;
|
|
89
|
+
add: string;
|
|
90
|
+
edit: string;
|
|
91
|
+
copy: string;
|
|
92
|
+
delete: string;
|
|
93
|
+
mulDelete: string;
|
|
94
|
+
save: string;
|
|
95
|
+
custom: string;
|
|
96
|
+
operation: string;
|
|
97
|
+
onlyOneLineMsg: string;
|
|
98
|
+
deletePoConfirmMsg: string;
|
|
99
|
+
mulDeletePoConfirmMsg: string;
|
|
23
100
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
101
|
+
ProModalSelect: {
|
|
102
|
+
checkMsg: string;
|
|
103
|
+
select: string;
|
|
104
|
+
};
|
|
105
|
+
ProSelect: {
|
|
106
|
+
checkMsg: string;
|
|
107
|
+
select: string;
|
|
108
|
+
};
|
|
109
|
+
ProEnum: {
|
|
110
|
+
errorDataSource: string;
|
|
111
|
+
errorMessage: string;
|
|
112
|
+
errorArrayMessage: string;
|
|
113
|
+
errorNoEnumType: string;
|
|
114
|
+
mainInitByRequest: string;
|
|
115
|
+
mainInitByCache: string;
|
|
116
|
+
requestError: string;
|
|
117
|
+
mainInitOnce: string;
|
|
118
|
+
sonInitEvent: string;
|
|
119
|
+
};
|
|
120
|
+
ProTreeModal: {
|
|
121
|
+
checkMsg: string;
|
|
122
|
+
select: string;
|
|
123
|
+
input: string;
|
|
124
|
+
errorArrayMessage: string;
|
|
125
|
+
selectMin: string;
|
|
126
|
+
selectMax: string;
|
|
127
|
+
noCheck: string;
|
|
128
|
+
checkAll: string;
|
|
129
|
+
check: string;
|
|
130
|
+
clearAll: string;
|
|
131
|
+
checkNumber: string;
|
|
132
|
+
noFinal: string;
|
|
49
133
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
totalAfter: string;
|
|
53
|
-
selectedTitle: string;
|
|
54
|
-
selectedBefore: string;
|
|
55
|
-
selectedAfter: string;
|
|
56
|
-
selectedClear: string;
|
|
57
|
-
};
|
|
58
|
-
form: {
|
|
59
|
-
pleaseInput: string;
|
|
60
|
-
pleaseInputAfter: string;
|
|
61
|
-
pleaseSelect: string;
|
|
62
|
-
pleaseSelectAfter: string;
|
|
63
|
-
requiredText: string;
|
|
64
|
-
startDate: string;
|
|
65
|
-
endDate: string;
|
|
66
|
-
dateTo: string;
|
|
134
|
+
ProTimeLimit: {
|
|
135
|
+
foreverText: string;
|
|
67
136
|
};
|
|
68
137
|
};
|
|
69
138
|
export default _default;
|
package/es/locale/en_US.js
CHANGED
|
@@ -1,68 +1,137 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
save: '
|
|
4
|
-
|
|
2
|
+
ProDrawerForm: {
|
|
3
|
+
save: 'Save',
|
|
4
|
+
confirm: 'Confirm',
|
|
5
|
+
cancel: 'Cancel',
|
|
6
|
+
isSureClose: 'Confirm to close the current page',
|
|
7
|
+
secondTipsWhenSave: 'Close the current page content will not be saved, need to click the Save button to save'
|
|
5
8
|
},
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
ProLayout: {
|
|
10
|
+
tipAlt: 'Tips',
|
|
11
|
+
closeAlt: 'Close'
|
|
9
12
|
},
|
|
10
|
-
|
|
13
|
+
ProHeader: {
|
|
14
|
+
versionTitle: 'Version number',
|
|
15
|
+
confirm: 'Confirm',
|
|
16
|
+
cancel: 'Cancel',
|
|
17
|
+
confirmTitle: 'Confirm return?',
|
|
18
|
+
backText: 'Return',
|
|
19
|
+
copyTooltips: ['Copy', 'Copy successfully']
|
|
20
|
+
},
|
|
21
|
+
ProDownload: {
|
|
22
|
+
errorMessage: 'Request failed!'
|
|
23
|
+
},
|
|
24
|
+
ProForm: {
|
|
25
|
+
unfold: 'Unfold',
|
|
26
|
+
packUp: 'PackUp',
|
|
27
|
+
inputPlaceholder: 'Please enter',
|
|
28
|
+
selectPlaceHolder: 'Please select',
|
|
29
|
+
switchText: ['Yes', 'No'],
|
|
11
30
|
search: 'Search',
|
|
12
31
|
reset: 'Reset',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
32
|
+
ruleText: 'correct',
|
|
33
|
+
completeText: 'enter in full',
|
|
34
|
+
formList_actions: ['Add', 'Delete', 'Copy', 'Move up', 'Move down', 'Add a new line'],
|
|
35
|
+
formList_confirmMessage: 'Are you sure delete it?'
|
|
36
|
+
},
|
|
37
|
+
ProAction: {
|
|
38
|
+
errorMessage: 'The configuration config for ProAction must be data',
|
|
39
|
+
defaultTitle: 'Are you sure delete it?'
|
|
40
|
+
},
|
|
41
|
+
ProWaterMark: {},
|
|
42
|
+
ProTable: {
|
|
43
|
+
noData: 'No data',
|
|
44
|
+
resetColumnWidth: 'Reset column width',
|
|
45
|
+
customColumns: 'Custom columns',
|
|
46
|
+
transformResponseMsg: 'Please return the correct data type',
|
|
47
|
+
deselect: 'Deselect',
|
|
48
|
+
selectCurPage: 'Select the current page ({total} items)',
|
|
49
|
+
selectAll: 'Select All ({total} items)',
|
|
50
|
+
hasSelected: '{selectedNum} items selected',
|
|
51
|
+
total: '{total} items in total'
|
|
52
|
+
},
|
|
53
|
+
ProAddressBar: {
|
|
54
|
+
placeholder: 'Please select',
|
|
55
|
+
detailPlaceholder: 'Please enter detailed address'
|
|
56
|
+
},
|
|
57
|
+
ProTree: {
|
|
58
|
+
inputPlaceholder: 'Please enter',
|
|
59
|
+
unExpand: 'Put it all away',
|
|
60
|
+
expand: 'Expand all',
|
|
61
|
+
all: 'Select all',
|
|
62
|
+
emptyTips: "Oops, what you were looking for couldn't be found"
|
|
63
|
+
},
|
|
64
|
+
ProUpload: {
|
|
65
|
+
exampleTitle: 'View sample',
|
|
66
|
+
errorInfoExt: 'Only {} format files are supported',
|
|
67
|
+
errorInfoSize: 'File size cannot exceed ',
|
|
68
|
+
buttonText: 'Upload',
|
|
69
|
+
draggerSelect: 'Select file',
|
|
70
|
+
draggerDelete: 'Delete',
|
|
71
|
+
draggerTips: 'Click or drag file to this area to upload',
|
|
72
|
+
draggerBtnTxt: 'Click to upload',
|
|
73
|
+
draggerFileExt: 'Support for extensions',
|
|
74
|
+
draggerLimitless: 'Limitless',
|
|
75
|
+
view: 'View',
|
|
76
|
+
delete: 'Delete',
|
|
77
|
+
download: 'Download'
|
|
78
|
+
},
|
|
79
|
+
ProStep: {
|
|
80
|
+
catalogue: 'Catalogue'
|
|
81
|
+
},
|
|
82
|
+
ProEditTable: {
|
|
83
|
+
confirm: 'Confirm',
|
|
84
|
+
cancel: 'Cancel',
|
|
85
|
+
noData: 'No data',
|
|
86
|
+
clickAdd: 'Click add',
|
|
87
|
+
select: 'Please select',
|
|
88
|
+
enter: 'Please enter',
|
|
89
|
+
add: 'Add',
|
|
90
|
+
edit: 'Edit',
|
|
91
|
+
copy: 'Copy',
|
|
92
|
+
delete: 'Delete',
|
|
93
|
+
mulDelete: 'Batch delete',
|
|
94
|
+
save: 'Save',
|
|
95
|
+
custom: 'Custom',
|
|
96
|
+
operation: 'Operation',
|
|
97
|
+
onlyOneLineMsg: 'Please save the data first',
|
|
98
|
+
deletePoConfirmMsg: 'Are you sure you want to delete this row of data?',
|
|
99
|
+
mulDeletePoConfirmMsg: 'Are you sure you want to delete the selected data?'
|
|
100
|
+
},
|
|
101
|
+
ProModalSelect: {
|
|
102
|
+
checkMsg: 'Please check the box first',
|
|
103
|
+
select: 'Please select'
|
|
104
|
+
},
|
|
105
|
+
ProSelect: {
|
|
106
|
+
checkMsg: 'Please check first',
|
|
107
|
+
select: 'Please select'
|
|
108
|
+
},
|
|
109
|
+
ProEnum: {
|
|
110
|
+
errorDataSource: 'Please pass in a valid data source',
|
|
111
|
+
errorMessage: 'Please return the correct data type',
|
|
112
|
+
errorArrayMessage: 'Please return a valid array',
|
|
113
|
+
errorNoEnumType: 'Please pass in the enumeration type',
|
|
114
|
+
mainInitByRequest: 'Main application initialization triggers read data update from interface',
|
|
115
|
+
mainInitByCache: 'Main application initialization triggers data update from cache',
|
|
116
|
+
requestError: 'Request failed',
|
|
117
|
+
mainInitOnce: 'Main application initialization triggers once',
|
|
118
|
+
sonInitEvent: 'Sub-application initializes listening actions'
|
|
119
|
+
},
|
|
120
|
+
ProTreeModal: {
|
|
121
|
+
checkMsg: 'Please check first',
|
|
122
|
+
select: 'Please select',
|
|
123
|
+
input: 'please enter',
|
|
124
|
+
errorArrayMessage: 'Please return a valid array',
|
|
125
|
+
selectMin: 'Select at least {min}',
|
|
126
|
+
selectMax: 'Select at most {max} items',
|
|
127
|
+
noCheck: 'None selected yet',
|
|
128
|
+
checkAll: 'select all',
|
|
129
|
+
check: 'selected',
|
|
130
|
+
clearAll: 'Clear all',
|
|
131
|
+
checkNumber: '{num} items selected',
|
|
132
|
+
noFinal: 'Oops, the content you are looking for is not found.'
|
|
133
|
+
},
|
|
134
|
+
ProTimeLimit: {
|
|
135
|
+
foreverText: 'long term'
|
|
67
136
|
}
|
|
68
137
|
};
|
package/es/locale/index.d.ts
CHANGED
|
@@ -3,5 +3,11 @@
|
|
|
3
3
|
* isReload 切换语言后是否刷新页面,一般在项目上使用都需要刷新
|
|
4
4
|
*/
|
|
5
5
|
export declare const setLanguage: (lang: string, isReload?: boolean) => void;
|
|
6
|
+
/**
|
|
7
|
+
* @param str 待替换字符串 eg: 我是{name},年龄{age}
|
|
8
|
+
* @param variables 变量对象 {name: 'xx', age: 23}
|
|
9
|
+
* @returns 替换后字符串 我是xx,年龄23
|
|
10
|
+
*/
|
|
11
|
+
export declare function formatMessage(str: string, variables: object): string;
|
|
6
12
|
declare const _default: any;
|
|
7
13
|
export default _default;
|
package/es/locale/index.js
CHANGED
|
@@ -18,4 +18,15 @@ export var setLanguage = function setLanguage(lang, isReload) {
|
|
|
18
18
|
window.location.reload();
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @param str 待替换字符串 eg: 我是{name},年龄{age}
|
|
23
|
+
* @param variables 变量对象 {name: 'xx', age: 23}
|
|
24
|
+
* @returns 替换后字符串 我是xx,年龄23
|
|
25
|
+
*/
|
|
26
|
+
export function formatMessage(str, variables) {
|
|
27
|
+
return str.replace(/{\s*([\w\s]+)\s*}/g, function (match, variable) {
|
|
28
|
+
var trimmedVariable = variable.trim();
|
|
29
|
+
return variables[trimmedVariable] || '';
|
|
30
|
+
});
|
|
31
|
+
}
|
|
21
32
|
export default langMap[activeLang];
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -1,69 +1,137 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
ProDrawerForm: {
|
|
3
3
|
save: string;
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
isSureClose: string;
|
|
7
|
+
secondTipsWhenSave: string;
|
|
8
|
+
};
|
|
9
|
+
ProLayout: {
|
|
10
|
+
tipAlt: string;
|
|
11
|
+
closeAlt: string;
|
|
12
|
+
};
|
|
13
|
+
ProHeader: {
|
|
14
|
+
versionTitle: string;
|
|
15
|
+
confirmTitle: string;
|
|
16
|
+
confirm: string;
|
|
4
17
|
cancel: string;
|
|
18
|
+
backText: string;
|
|
19
|
+
copyTooltips: string[];
|
|
5
20
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
openModal: string;
|
|
21
|
+
ProDownload: {
|
|
22
|
+
errorMessage: string;
|
|
9
23
|
};
|
|
10
|
-
|
|
24
|
+
ProForm: {
|
|
25
|
+
unfold: string;
|
|
26
|
+
packUp: string;
|
|
27
|
+
inputPlaceholder: string;
|
|
28
|
+
selectPlaceHolder: string;
|
|
29
|
+
switchText: string[];
|
|
11
30
|
search: string;
|
|
12
31
|
reset: string;
|
|
13
|
-
|
|
32
|
+
ruleText: string;
|
|
33
|
+
completeText: string;
|
|
34
|
+
formList_actions: string[];
|
|
35
|
+
formList_confirmMessage: string;
|
|
36
|
+
};
|
|
37
|
+
ProAction: {
|
|
38
|
+
errorMessage: string;
|
|
39
|
+
defaultTitle: string;
|
|
40
|
+
};
|
|
41
|
+
ProWaterMark: {};
|
|
42
|
+
ProTable: {
|
|
43
|
+
noData: string;
|
|
44
|
+
resetColumnWidth: string;
|
|
45
|
+
customColumns: string;
|
|
46
|
+
transformResponseMsg: string;
|
|
47
|
+
deselect: string;
|
|
48
|
+
selectCurPage: string;
|
|
49
|
+
selectAll: string;
|
|
50
|
+
hasSelected: string;
|
|
51
|
+
total: string;
|
|
52
|
+
};
|
|
53
|
+
ProAddressBar: {
|
|
54
|
+
placeholder: string;
|
|
55
|
+
detailPlaceholder: string;
|
|
56
|
+
};
|
|
57
|
+
ProTree: {
|
|
58
|
+
inputPlaceholder: string;
|
|
59
|
+
unExpand: string;
|
|
14
60
|
expand: string;
|
|
61
|
+
all: string;
|
|
62
|
+
emptyTips: string;
|
|
63
|
+
};
|
|
64
|
+
ProUpload: {
|
|
65
|
+
exampleTitle: string;
|
|
66
|
+
errorInfoExt: string;
|
|
67
|
+
errorInfoSize: string;
|
|
68
|
+
buttonText: string;
|
|
69
|
+
draggerSelect: string;
|
|
70
|
+
draggerDelete: string;
|
|
71
|
+
draggerTips: string;
|
|
72
|
+
draggerBtnTxt: string;
|
|
73
|
+
draggerFileExt: string;
|
|
74
|
+
draggerLimitless: string;
|
|
75
|
+
view: string;
|
|
76
|
+
delete: string;
|
|
77
|
+
download: string;
|
|
78
|
+
};
|
|
79
|
+
ProStep: {
|
|
80
|
+
catalogue: string;
|
|
15
81
|
};
|
|
16
|
-
|
|
17
|
-
modeAdd: string;
|
|
18
|
-
modeUpdate: string;
|
|
19
|
-
modeDetail: string;
|
|
20
|
-
modeCustom: string;
|
|
21
|
-
close: string;
|
|
82
|
+
ProEditTable: {
|
|
22
83
|
confirm: string;
|
|
84
|
+
cancel: string;
|
|
85
|
+
select: string;
|
|
86
|
+
enter: string;
|
|
87
|
+
add: string;
|
|
88
|
+
edit: string;
|
|
89
|
+
copy: string;
|
|
90
|
+
delete: string;
|
|
91
|
+
mulDelete: string;
|
|
92
|
+
save: string;
|
|
93
|
+
custom: string;
|
|
94
|
+
operation: string;
|
|
95
|
+
noData: string;
|
|
96
|
+
clickAdd: string;
|
|
97
|
+
onlyOneLineMsg: string;
|
|
98
|
+
deletePoConfirmMsg: string;
|
|
99
|
+
mulDeletePoConfirmMsg: string;
|
|
23
100
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
101
|
+
ProModalSelect: {
|
|
102
|
+
checkMsg: string;
|
|
103
|
+
select: string;
|
|
104
|
+
};
|
|
105
|
+
ProSelect: {
|
|
106
|
+
checkMsg: string;
|
|
107
|
+
select: string;
|
|
108
|
+
};
|
|
109
|
+
ProEnum: {
|
|
110
|
+
errorDataSource: string;
|
|
111
|
+
errorMessage: string;
|
|
112
|
+
errorArrayMessage: string;
|
|
113
|
+
errorNoEnumType: string;
|
|
114
|
+
mainInitByRequest: string;
|
|
115
|
+
mainInitByCache: string;
|
|
116
|
+
requestError: string;
|
|
117
|
+
mainInitOnce: string;
|
|
118
|
+
sonInitEvent: string;
|
|
119
|
+
};
|
|
120
|
+
ProTreeModal: {
|
|
121
|
+
checkMsg: string;
|
|
122
|
+
select: string;
|
|
123
|
+
input: string;
|
|
124
|
+
errorArrayMessage: string;
|
|
125
|
+
selectMin: string;
|
|
126
|
+
selectMax: string;
|
|
127
|
+
noCheck: string;
|
|
128
|
+
checkAll: string;
|
|
129
|
+
check: string;
|
|
130
|
+
clearAll: string;
|
|
131
|
+
checkNumber: string;
|
|
49
132
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
totalAfter: string;
|
|
53
|
-
selectedTitle: string;
|
|
54
|
-
selectedBefore: string;
|
|
55
|
-
selectedAfter: string;
|
|
56
|
-
selectedClear: string;
|
|
57
|
-
};
|
|
58
|
-
form: {
|
|
59
|
-
pleaseInput: string;
|
|
60
|
-
pleaseInputAfter: string;
|
|
61
|
-
pleaseSelect: string;
|
|
62
|
-
pleaseSelectAfter: string;
|
|
63
|
-
requiredText: string;
|
|
64
|
-
startDate: string;
|
|
65
|
-
endDate: string;
|
|
66
|
-
dateTo: string;
|
|
133
|
+
ProTimeLimit: {
|
|
134
|
+
foreverText: string;
|
|
67
135
|
};
|
|
68
136
|
};
|
|
69
137
|
export default _default;
|