@zat-design/sisyphus-react 3.4.2 → 3.4.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.
Files changed (204) hide show
  1. package/dist/index.esm.css +286 -240
  2. package/dist/less.esm.css +5022 -0
  3. package/dist/less.esm.js +3 -0
  4. package/es/ProConfigProvider/index.js +2 -1
  5. package/es/ProEditLabel/style/index.less +1 -1
  6. package/es/ProEditTable/components/RenderField/index.js +28 -20
  7. package/es/ProEditTable/index.js +3 -3
  8. package/es/ProEditTable/propsType.d.ts +1 -1
  9. package/es/ProEditTable/style/index.less +1 -1
  10. package/es/ProEditTable/utils/config.js +5 -5
  11. package/es/ProEditTable/utils/index.js +67 -30
  12. package/es/ProEditTable/utils/tools.js +3 -1
  13. package/es/ProEnum/components/Group.d.ts +2 -0
  14. package/es/ProEnum/components/Group.js +26 -8
  15. package/es/ProEnum/index.js +4 -3
  16. package/es/ProEnum/style/index.less +12 -3
  17. package/es/ProForm/components/base/DatePicker/index.js +2 -2
  18. package/es/ProForm/components/combination/FormList/index.js +6 -3
  19. package/es/ProForm/components/combination/FormList/utils.d.ts +2 -1
  20. package/es/ProForm/components/combination/FormList/utils.js +5 -3
  21. package/es/ProForm/components/combination/Group/index.js +28 -15
  22. package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
  23. package/es/ProForm/components/combination/Group/style/index.less +4 -4
  24. package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
  25. package/es/ProForm/components/combination/Group/utils.js +10 -0
  26. package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
  27. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  28. package/es/ProForm/components/index.d.ts +0 -1
  29. package/es/ProForm/components/index.js +1 -1
  30. package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
  31. package/es/ProForm/components/render/Render.js +21 -13
  32. package/es/ProForm/components/render/RenderFields.d.ts +2 -1
  33. package/es/ProForm/components/render/RenderFields.js +7 -3
  34. package/es/ProForm/components/render/propsType.d.ts +1 -4
  35. package/es/ProForm/index.js +8 -6
  36. package/es/ProForm/propsType.d.ts +5 -1
  37. package/es/ProForm/style/index.less +17 -13
  38. package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
  39. package/es/ProForm/utils/diffOriginal.js +61 -0
  40. package/es/ProForm/utils/index.d.ts +1 -1
  41. package/es/ProForm/utils/index.js +1 -1
  42. package/es/ProForm/utils/transformNames.d.ts +1 -1
  43. package/es/ProForm/utils/transformNames.js +11 -4
  44. package/es/ProForm/utils/transformValue.js +2 -2
  45. package/es/ProForm/utils/useChanged.js +4 -3
  46. package/es/ProForm/utils/useListChanged.d.ts +1 -1
  47. package/es/ProForm/utils/useListChanged.js +5 -3
  48. package/es/ProForm/utils/valueType.d.ts +10 -5
  49. package/es/ProForm/utils/valueType.js +20 -10
  50. package/es/ProIcon/config/index.d.ts +2 -1
  51. package/es/ProIcon/config/index.js +191 -133
  52. package/es/ProIcon/index.d.ts +0 -1
  53. package/es/ProIcon/index.js +21 -36
  54. package/es/ProIcon/propsTypes.d.ts +2 -1
  55. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  56. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
  57. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
  58. package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
  59. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
  60. package/es/ProLayout/components/ProCollapse/index.js +22 -3
  61. package/es/ProLayout/components/ProCollapse/style/index.less +29 -11
  62. package/es/ProLayout/components/ProFooter/index.js +1 -1
  63. package/es/ProLayout/components/ProFooter/style/index.less +1 -1
  64. package/es/ProLayout/components/ProHeader/style/index.less +6 -5
  65. package/es/ProLayout/style/index.less +176 -88
  66. package/es/ProStep/components/Item/index.js +2 -1
  67. package/es/ProStep/style/index.less +71 -70
  68. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  69. package/es/ProTable/components/RenderColumn/index.js +3 -3
  70. package/es/ProTable/propsType.d.ts +1 -1
  71. package/es/ProTable/style/index.less +2 -2
  72. package/es/ProTable/utils.js +9 -9
  73. package/es/ProTabs/style/index.less +3 -1
  74. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  75. package/es/ProThemeTools/component/PrdTools/index.js +2 -2
  76. package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
  77. package/es/ProThemeTools/index.js +21 -28
  78. package/es/ProThemeTools/propsType.d.ts +1 -1
  79. package/es/ProThemeTools/style/index.less +25 -8
  80. package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
  81. package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
  82. package/es/ProTree/index.js +1 -1
  83. package/es/ProTreeModal/style/index.less +2 -2
  84. package/es/ProUpload/style/fileItem.less +2 -2
  85. package/es/ProUpload/style/index.less +2 -2
  86. package/es/assets/catalog.svg +30 -1
  87. package/es/assets/fold.svg +27 -0
  88. package/es/assets/setting.svg +14 -0
  89. package/es/locale/en_US.d.ts +3 -0
  90. package/es/locale/en_US.js +3 -0
  91. package/es/locale/zh_CN.d.ts +3 -0
  92. package/es/locale/zh_CN.js +3 -0
  93. package/es/style/components.less +0 -1
  94. package/es/style/less.less +2 -0
  95. package/es/style/theme/antd.less +1 -2
  96. package/es/style/theme/index.less +2 -2
  97. package/es/style/theme/tokens.less +2 -2
  98. package/es/tokens.js +2 -2
  99. package/lib/ProConfigProvider/index.js +2 -1
  100. package/lib/ProEditLabel/style/index.less +1 -1
  101. package/lib/ProEditTable/components/RenderField/index.js +27 -19
  102. package/lib/ProEditTable/index.js +3 -3
  103. package/lib/ProEditTable/propsType.d.ts +1 -1
  104. package/lib/ProEditTable/style/index.less +1 -1
  105. package/lib/ProEditTable/utils/config.js +5 -5
  106. package/lib/ProEditTable/utils/index.js +67 -30
  107. package/lib/ProEditTable/utils/tools.js +3 -1
  108. package/lib/ProEnum/components/Group.d.ts +2 -0
  109. package/lib/ProEnum/components/Group.js +26 -8
  110. package/lib/ProEnum/index.js +4 -3
  111. package/lib/ProEnum/style/index.less +12 -3
  112. package/lib/ProForm/components/base/DatePicker/index.js +1 -1
  113. package/lib/ProForm/components/combination/FormList/index.js +6 -3
  114. package/lib/ProForm/components/combination/FormList/utils.d.ts +2 -1
  115. package/lib/ProForm/components/combination/FormList/utils.js +5 -3
  116. package/lib/ProForm/components/combination/Group/index.js +25 -12
  117. package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
  118. package/lib/ProForm/components/combination/Group/style/index.less +4 -4
  119. package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
  120. package/lib/ProForm/components/combination/Group/utils.js +11 -1
  121. package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -1
  122. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  123. package/lib/ProForm/components/index.d.ts +0 -1
  124. package/lib/ProForm/components/index.js +0 -7
  125. package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
  126. package/lib/ProForm/components/render/Render.js +21 -13
  127. package/lib/ProForm/components/render/RenderFields.d.ts +2 -1
  128. package/lib/ProForm/components/render/RenderFields.js +7 -3
  129. package/lib/ProForm/components/render/propsType.d.ts +1 -4
  130. package/lib/ProForm/index.js +7 -5
  131. package/lib/ProForm/propsType.d.ts +5 -1
  132. package/lib/ProForm/style/index.less +17 -13
  133. package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
  134. package/lib/ProForm/utils/diffOriginal.js +68 -0
  135. package/lib/ProForm/utils/index.d.ts +1 -1
  136. package/lib/ProForm/utils/index.js +2 -2
  137. package/lib/ProForm/utils/transformNames.d.ts +1 -1
  138. package/lib/ProForm/utils/transformNames.js +10 -3
  139. package/lib/ProForm/utils/transformValue.js +1 -1
  140. package/lib/ProForm/utils/useChanged.js +4 -3
  141. package/lib/ProForm/utils/useListChanged.d.ts +1 -1
  142. package/lib/ProForm/utils/useListChanged.js +5 -3
  143. package/lib/ProForm/utils/valueType.d.ts +10 -5
  144. package/lib/ProForm/utils/valueType.js +20 -10
  145. package/lib/ProIcon/config/index.d.ts +2 -1
  146. package/lib/ProIcon/config/index.js +191 -133
  147. package/lib/ProIcon/index.d.ts +0 -1
  148. package/lib/ProIcon/index.js +21 -37
  149. package/lib/ProIcon/propsTypes.d.ts +2 -1
  150. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  151. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
  152. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
  153. package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
  154. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
  155. package/lib/ProLayout/components/ProCollapse/index.js +20 -3
  156. package/lib/ProLayout/components/ProCollapse/style/index.less +29 -11
  157. package/lib/ProLayout/components/ProFooter/index.js +1 -1
  158. package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
  159. package/lib/ProLayout/components/ProHeader/style/index.less +6 -5
  160. package/lib/ProLayout/style/index.less +176 -88
  161. package/lib/ProStep/components/Item/index.js +2 -1
  162. package/lib/ProStep/style/index.less +71 -70
  163. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  164. package/lib/ProTable/components/RenderColumn/index.js +3 -3
  165. package/lib/ProTable/propsType.d.ts +1 -1
  166. package/lib/ProTable/style/index.less +2 -2
  167. package/lib/ProTable/utils.js +9 -9
  168. package/lib/ProTabs/style/index.less +3 -1
  169. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  170. package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
  171. package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
  172. package/lib/ProThemeTools/index.js +19 -27
  173. package/lib/ProThemeTools/propsType.d.ts +1 -1
  174. package/lib/ProThemeTools/style/index.less +25 -8
  175. package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
  176. package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
  177. package/lib/ProTree/index.js +1 -1
  178. package/lib/ProTreeModal/style/index.less +2 -2
  179. package/lib/ProUpload/style/fileItem.less +2 -2
  180. package/lib/ProUpload/style/index.less +2 -2
  181. package/lib/assets/catalog.svg +30 -1
  182. package/lib/assets/fold.svg +27 -0
  183. package/lib/assets/setting.svg +14 -0
  184. package/lib/locale/en_US.d.ts +3 -0
  185. package/lib/locale/en_US.js +3 -0
  186. package/lib/locale/zh_CN.d.ts +3 -0
  187. package/lib/locale/zh_CN.js +3 -0
  188. package/lib/style/components.less +0 -1
  189. package/lib/style/less.less +2 -0
  190. package/lib/style/theme/antd.less +1 -2
  191. package/lib/style/theme/index.less +2 -2
  192. package/lib/style/theme/tokens.less +2 -2
  193. package/lib/tokens.js +2 -2
  194. package/package.json +1 -1
  195. package/es/ProForm/utils/contrastOriginal.js +0 -24
  196. package/es/ProIcon/symbolIcon.js +0 -43
  197. package/lib/ProForm/utils/contrastOriginal.js +0 -30
  198. package/lib/ProIcon/symbolIcon.js +0 -45
  199. /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
  200. /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
  201. /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
  202. /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
  203. /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
  204. /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
@@ -6,200 +6,258 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.iconMap = void 0;
7
7
  var iconMap = exports.iconMap = [{
8
8
  type: 'view',
9
- text: '查看'
9
+ 'text-cn': '查看',
10
+ 'text-en': 'view'
10
11
  }, {
11
- type: '',
12
- text: '编辑'
12
+ type: 'edit',
13
+ 'text-cn': '编辑',
14
+ 'text-en': 'edit'
13
15
  }, {
14
- type: '',
15
- text: '查看上传结果'
16
+ type: 'chakanshangchuanjieguo',
17
+ 'text-cn': '查看上传结果',
18
+ 'text-en': 'view upload results'
16
19
  }, {
17
- type: '',
18
- text: '操作日志'
20
+ type: 'caozuorizhi',
21
+ 'text-cn': '操作日志',
22
+ 'text-en': 'operation log'
19
23
  }, {
20
- type: '',
21
- text: '监管停售'
24
+ type: 'jianguantingshou',
25
+ 'text-cn': '监管停售',
26
+ 'text-en': 'regulatory suspension'
22
27
  }, {
23
- type: '',
24
- text: '下架'
28
+ type: 'xiajia',
29
+ 'text-cn': '下架',
30
+ 'text-en': 'delist'
25
31
  }, {
26
- type: '',
27
- text: '上架'
32
+ type: 'shangjia',
33
+ 'text-cn': '上架',
34
+ 'text-en': 'listing'
28
35
  }, {
29
- type: '',
30
- text: '解锁'
36
+ type: 'jiesuo',
37
+ 'text-cn': '解锁',
38
+ 'text-en': 'unlock'
31
39
  }, {
32
- type: '',
33
- text: '审核'
40
+ type: 'shenhe',
41
+ 'text-cn': '审核',
42
+ 'text-en': 'check'
34
43
  }, {
35
- type: '',
36
- text: '下载导入文件'
44
+ type: 'xiazaidaoruwenjian',
45
+ 'text-cn': '下载导入文件',
46
+ 'text-en': 'download import file'
37
47
  }, {
38
- type: '',
39
- text: '删除'
48
+ type: 'shanchu',
49
+ 'text-cn': '删除',
50
+ 'text-en': 'delete'
40
51
  }, {
41
- type: '',
42
- text: '撤回'
52
+ type: 'chehui',
53
+ 'text-cn': '撤回',
54
+ 'text-en': 'revocation'
43
55
  }, {
44
- type: '',
45
- text: '再次询价'
56
+ type: 'zaicixunjia',
57
+ 'text-cn': '再次询价',
58
+ 'text-en': 'reinquiry'
46
59
  }, {
47
- type: '',
48
- text: '复制'
60
+ type: 'fuzhi',
61
+ 'text-cn': '复制',
62
+ 'text-en': 'copy'
49
63
  }, {
50
- type: '',
51
- text: '撤回登记'
64
+ type: 'chehuidengji',
65
+ 'text-cn': '撤回登记',
66
+ 'text-en': 'withdrawal of registration'
52
67
  }, {
53
- type: '',
54
- text: '占号补录'
68
+ type: 'zhanhaobulu',
69
+ 'text-cn': '占号补录',
70
+ 'text-en': 'fill in the number'
55
71
  }, {
56
- type: '',
57
- text: '处理'
72
+ type: 'chuli',
73
+ 'text-cn': '处理',
74
+ 'text-en': 'handle'
58
75
  }, {
59
- type: '',
60
- text: '释放'
76
+ type: 'shifang',
77
+ 'text-cn': '释放',
78
+ 'text-en': 'release'
61
79
  }, {
62
- type: '',
63
- text: '关闭'
80
+ type: 'guanbi',
81
+ 'text-cn': '关闭',
82
+ 'text-en': 'close'
64
83
  }, {
65
- type: '',
66
- text: '认领'
84
+ type: 'renling',
85
+ 'text-cn': '认领',
86
+ 'text-en': 'claim'
67
87
  }, {
68
- type: '',
69
- text: '缴费登记'
88
+ type: 'jiaofeidengji',
89
+ 'text-cn': '缴费登记',
90
+ 'text-en': 'payment registration'
70
91
  }, {
71
- type: '',
72
- text: '补传资料'
92
+ type: 'buchuanziliao',
93
+ 'text-cn': '补传资料',
94
+ 'text-en': 'supplementary data'
73
95
  }, {
74
- type: '',
75
- text: '资料补传确认'
96
+ type: 'ziliaobuchuanqueren',
97
+ 'text-cn': '资料补传确认',
98
+ 'text-en': 'data retransmission confirmed'
76
99
  }, {
77
- type: '',
78
- text: '启用'
100
+ type: 'qiyong',
101
+ 'text-cn': '启用',
102
+ 'text-en': 'enable'
79
103
  }, {
80
- type: '',
81
- text: '查勘'
104
+ type: 'chakan',
105
+ 'text-cn': '查勘',
106
+ 'text-en': 'survey'
82
107
  }, {
83
- type: '',
84
- text: '会签处理'
108
+ type: 'huiqianchuli',
109
+ 'text-cn': '会签处理',
110
+ 'text-en': 'countersign processing'
85
111
  }, {
86
- type: '',
87
- text: '已阅'
112
+ type: 'yiyue',
113
+ 'text-cn': '已阅',
114
+ 'text-en': 'have read'
88
115
  }, {
89
- type: '',
90
- text: '下载'
116
+ type: 'xiazai',
117
+ 'text-cn': '下载',
118
+ 'text-en': 'download'
91
119
  }, {
92
- type: '',
93
- text: '发送'
120
+ type: 'fasong',
121
+ 'text-cn': '发送',
122
+ 'text-en': 'send'
94
123
  }, {
95
- type: '',
96
- text: '导出'
124
+ type: 'daochu',
125
+ 'text-cn': '导出',
126
+ 'text-en': 'export'
97
127
  }, {
98
- type: '',
99
- text: '设为失效'
128
+ type: 'sheweishixiao',
129
+ 'text-cn': '设为失效',
130
+ 'text-en': 'set invalidate'
100
131
  }, {
101
- type: '',
102
- text: '复制'
132
+ type: 'qingkong',
133
+ 'text-cn': '清空',
134
+ 'text-en': 'clear'
103
135
  }, {
104
- type: '',
105
- text: '清空'
136
+ type: 'shixiao',
137
+ 'text-cn': '失效',
138
+ 'text-en': 'lose effectiveness'
106
139
  }, {
107
- type: '',
108
- text: '失效'
140
+ type: 'zhongzhi',
141
+ 'text-cn': '中止',
142
+ 'text-en': 'stop'
109
143
  }, {
110
- type: '',
111
- text: '预览模版'
144
+ type: 'wangdian',
145
+ 'text-cn': '网点',
146
+ 'text-en': 'site'
112
147
  }, {
113
- type: '',
114
- text: '中止'
148
+ type: 'fuwuwangdian',
149
+ 'text-cn': '服务网点',
150
+ 'text-en': 'server site'
115
151
  }, {
116
- type: '',
117
- text: '网点'
152
+ type: 'rukoupeizhi',
153
+ 'text-cn': '入口配置',
154
+ 'text-en': 'entry config'
118
155
  }, {
119
- type: '',
120
- text: '服务网点'
156
+ type: 'yemianpeizhi',
157
+ 'text-cn': '页面配置',
158
+ 'text-en': 'page config'
121
159
  }, {
122
- type: '',
123
- text: '入口配置'
160
+ type: 'bianjifenpei',
161
+ 'text-cn': '编辑分配',
162
+ 'text-en': 'edit assignment'
124
163
  }, {
125
- type: '',
126
- text: '页面配置'
164
+ type: 'chakanxiangqing',
165
+ 'text-cn': '查看详情',
166
+ 'text-en': 'view detail'
127
167
  }, {
128
- type: '',
129
- text: '编辑分配'
168
+ type: 'toubaopeizhi',
169
+ 'text-cn': '投保配置',
170
+ 'text-en': 'insurance config'
130
171
  }, {
131
- type: '',
132
- text: '查看详情'
172
+ type: 'tuiguangweipeizhi',
173
+ 'text-cn': '推广位配置',
174
+ 'text-en': 'promotion bit config'
133
175
  }, {
134
- type: '',
135
- text: '投保配置'
176
+ type: 'kaishihezuo',
177
+ 'text-cn': '开始合作',
178
+ 'text-en': 'start cooperation'
136
179
  }, {
137
- type: '',
138
- text: '推广位配置'
180
+ type: 'tingzhihezuo',
181
+ 'text-cn': '停止合作',
182
+ 'text-en': 'stop cooperation'
139
183
  }, {
140
- type: '',
141
- text: '开始合作'
184
+ type: 'fuzhilianjie',
185
+ 'text-cn': '复制链接',
186
+ 'text-en': 'copy link'
142
187
  }, {
143
- type: '',
144
- text: '停止合作'
188
+ type: 'jinyong',
189
+ 'text-cn': '禁用',
190
+ 'text-en': 'disabled'
145
191
  }, {
146
- type: '',
147
- text: '复制链接'
192
+ type: 'bianjipeizhi',
193
+ 'text-cn': '编辑配置',
194
+ 'text-en': 'edit config'
148
195
  }, {
149
- type: '',
150
- text: '禁用'
196
+ type: 'yulan',
197
+ 'text-cn': '预览',
198
+ 'text-en': 'preview'
151
199
  }, {
152
- type: '',
153
- text: '编辑配置'
200
+ type: 'daochumoban',
201
+ 'text-cn': '导出模板',
202
+ 'text-en': 'export template'
154
203
  }, {
155
- type: '',
156
- text: '预览'
204
+ type: 'xiangqing',
205
+ 'text-cn': '详情',
206
+ 'text-en': 'detail'
157
207
  }, {
158
- type: '',
159
- text: '导出模板'
208
+ type: 'zhongzhiqudao',
209
+ 'text-cn': '终止渠道',
210
+ 'text-en': 'stop channel'
160
211
  }, {
161
- type: '',
162
- text: '详情'
212
+ type: 'chakanfapiao',
213
+ 'text-cn': '查看发票',
214
+ 'text-en': 'view invoice'
163
215
  }, {
164
- type: '',
165
- text: '终止渠道'
216
+ type: 'qiyerenzheng',
217
+ 'text-cn': '企业认证',
218
+ 'text-en': 'enterprise certification'
166
219
  }, {
167
- type: '',
168
- text: '查看发票'
220
+ type: 'apishouquan',
221
+ 'text-cn': 'API授权',
222
+ 'text-en': 'api accredit'
169
223
  }, {
170
- type: '',
171
- text: '企业认证'
224
+ type: 'chanpinshouquan',
225
+ 'text-cn': '产品授权',
226
+ 'text-en': 'product accredit'
172
227
  }, {
173
- type: '',
174
- text: 'API授权'
228
+ type: 'chongzhimima',
229
+ 'text-cn': '重置密码',
230
+ 'text-en': 'reset password'
175
231
  }, {
176
- type: '',
177
- text: '产品授权'
232
+ type: 'tingyong',
233
+ 'text-cn': '停用',
234
+ 'text-en': 'disuse'
178
235
  }, {
179
- type: '',
180
- text: '重置密码'
236
+ type: 'apiquanxian',
237
+ 'text-cn': 'API权限',
238
+ 'text-en': 'api authorization'
181
239
  }, {
182
- type: '',
183
- text: '停用'
240
+ type: 'ipbaimingdan',
241
+ 'text-cn': 'IP白名单',
242
+ 'text-en': 'ip whitelist'
184
243
  }, {
185
- type: '',
186
- text: 'API权限'
244
+ type: 'yulanmoban',
245
+ 'text-cn': '预览模板',
246
+ 'text-en': 'preview template'
187
247
  }, {
188
- type: '',
189
- text: 'IP白名单'
248
+ type: 'queren',
249
+ 'text-cn': '确认',
250
+ 'text-en': 'confirm'
190
251
  }, {
191
- type: '',
192
- text: '预览模板'
252
+ type: 'xiugai',
253
+ 'text-cn': '修改',
254
+ 'text-en': 'edit'
193
255
  }, {
194
- type: '',
195
- text: '确认'
256
+ type: 'chakanlishipeizhi',
257
+ 'text-cn': '查看历史配置',
258
+ 'text-en': 'view history conifg'
196
259
  }, {
197
- type: '',
198
- text: '修改'
199
- }, {
200
- type: '',
201
- text: '查看历史配置'
202
- }, {
203
- type: '',
204
- text: '调整序号'
260
+ type: 'tiaozhengxuhao',
261
+ 'text-cn': '调整序号',
262
+ 'text-en': 'adjust order'
205
263
  }];
@@ -1,5 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { ProIconProps } from './propsTypes';
3
- export declare function createScriptUrlElements(scriptUrls: string[], index?: number): void;
4
3
  declare const ProIcon: FC<ProIconProps>;
5
4
  export default ProIcon;
@@ -4,45 +4,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.createScriptUrlElements = createScriptUrlElements;
8
7
  exports.default = void 0;
9
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
9
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
10
  var _jsxRuntime = require("react/jsx-runtime");
11
+ var _ahooks = require("ahooks");
12
12
  var _antd = require("antd");
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
14
  var _lodash = require("lodash");
15
- var _config2 = require("./config");
16
- var _symbolIcon = _interopRequireDefault(require("./symbolIcon"));
17
15
  var _ProConfigProvider = require("../ProConfigProvider");
16
+ var _config2 = require("./config");
17
+ var _locale = _interopRequireDefault(require("../locale"));
18
18
  var _excluded = ["type", "onClick", "size", "color", "className", "style", "spin", "rotate", "theme", "disabled", "mode", "buttonProps", "children", "mapList"];
19
- var customCache = new Set();
20
- function isValidCustomScriptUrl(scriptUrl) {
21
- return Boolean(typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl));
22
- }
23
- function createScriptUrlElements(scriptUrls) {
24
- var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
25
- var currentScriptUrl = scriptUrls[index];
26
- if (isValidCustomScriptUrl(currentScriptUrl)) {
27
- var script = document.createElement('script');
28
- script.setAttribute('src', currentScriptUrl);
29
- script.setAttribute('data-namespace', currentScriptUrl);
30
- if (scriptUrls.length > index + 1) {
31
- script.onload = function () {
32
- createScriptUrlElements(scriptUrls, index + 1);
33
- };
34
- script.onerror = function () {
35
- createScriptUrlElements(scriptUrls, index + 1);
36
- };
37
- }
38
- customCache.add(currentScriptUrl);
39
- document.body.appendChild(script);
40
- }
41
- }
42
- // 加载内部icon
43
- if (_symbolIcon.default && typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function') {
44
- createScriptUrlElements([_symbolIcon.default]);
45
- }
46
19
  var ProIcon = function ProIcon(props) {
47
20
  var config = (0, _ProConfigProvider.useProConfig)('ProIcon') || {};
48
21
  var _config = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), props !== null && props !== void 0 ? props : {});
@@ -69,6 +42,13 @@ var ProIcon = function ProIcon(props) {
69
42
  _config$mapList = _config.mapList,
70
43
  mapList = _config$mapList === void 0 ? [] : _config$mapList,
71
44
  reset = (0, _objectWithoutProperties2.default)(_config, _excluded);
45
+ // 语言
46
+ var language = _locale.default.ProIcon.language;
47
+ // 加载内部icon
48
+ var status = (0, _ahooks.useExternal)('https://at.alicdn.com/t/c/font_4063056_jmnz9g5uycp.js');
49
+ if (status !== 'ready') {
50
+ return null;
51
+ }
72
52
  var rotateStyle = rotate ? {
73
53
  msTransform: "rotate(".concat(rotate, "deg)"),
74
54
  transform: "rotate(".concat(rotate, "deg)")
@@ -80,32 +60,36 @@ var ProIcon = function ProIcon(props) {
80
60
  'pro-icon-btn': disabled
81
61
  });
82
62
  var _mode = mode || 'icon';
63
+ // 特殊情况,如果指定了type,并且没有接收到组件内的mode,那模式就是icon
64
+ if (type && !props.mode) {
65
+ _mode = 'icon';
66
+ }
67
+ var targetTextFill = "text-".concat(language); // text-cn text-en
83
68
  var isIconMode = _mode === 'icon';
84
69
  var isExtendButtonMode = !isIconMode || isIconMode && disabled;
85
- var mergedMapList = (0, _lodash.uniqBy)(mapList.concat(_config2.iconMap), 'text');
70
+ var mergedMapList = (0, _lodash.uniqBy)(mapList.concat(_config2.iconMap), targetTextFill);
86
71
  var _type = type;
87
72
  var _text = children;
88
- var textIsExistAndIncludeChinese = _text && /[\u4e00-\u9fa5]/.test(String(_text));
89
73
  var typeIsExistAndIncludeEnglish = _type && /[a-zA-Z]/.test(_type);
90
- // 模式为icon下,对传入的text进行中文-icon 映射
74
+ // 模式为icon下,对传入的text进行指定语言-icon 映射
91
75
  if (isIconMode && !type) {
92
- if (textIsExistAndIncludeChinese) {
76
+ if (_text) {
93
77
  var target = mergedMapList.find(function (item) {
94
- return item.text === _text;
78
+ return item['text-cn'] === _text || item['text-en'] === _text;
95
79
  });
96
80
  if (target) {
97
81
  _type = target === null || target === void 0 ? void 0 : target.type;
98
82
  }
99
83
  }
100
84
  }
101
- // 模式为button下,对传入的type进行icon-中文 映射
85
+ // 模式为button下,对传入的type进行icon-指定语言 映射
102
86
  if (!isIconMode) {
103
87
  if (typeIsExistAndIncludeEnglish) {
104
88
  var _target = mergedMapList.find(function (item) {
105
89
  return item.type === _type;
106
90
  });
107
91
  if (_target) {
108
- _text = _target === null || _target === void 0 ? void 0 : _target.text;
92
+ _text = _target[targetTextFill];
109
93
  }
110
94
  }
111
95
  }
@@ -3,7 +3,8 @@ import { ButtonProps } from 'antd/lib/button';
3
3
  export type ModeType = 'icon' | 'button';
4
4
  interface iconMap {
5
5
  type: string;
6
- text: string;
6
+ 'text-cn'?: string;
7
+ 'text-en'?: string;
7
8
  }
8
9
  export interface ProIconProps {
9
10
  /**
@@ -2,7 +2,7 @@
2
2
  .pro-layout-header {
3
3
  position : fixed;
4
4
  top : 0;
5
- z-index : 101;
5
+ z-index : 103;
6
6
  display : flex;
7
7
  flex-direction : row;
8
8
  align-items : center;