@lingxiteam/assets 3.2.1 → 3.3.1-alpha.2

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 (71) hide show
  1. package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +9 -3
  2. package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +29 -26
  3. package/es/error/errorDisplay/Mobile/Modal/Modal.js +5 -3
  4. package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +9 -1
  5. package/es/error/errorDisplay/Web/Drawer/Drawer.js +10 -4
  6. package/es/error/errorDisplay/Web/ErrorMsg/index.js +64 -46
  7. package/es/error/errorDisplay/Web/defaultGlobalConfig.js +10 -2
  8. package/es/error/errorDisplay/const.js +29 -7
  9. package/es/rootConfig/mobile/MobileModal.d.ts +33 -0
  10. package/es/rootConfig/mobile/MobileModal.js +49 -4
  11. package/es/rootConfig/mobile/MobilePopover.d.ts +3 -0
  12. package/es/rootConfig/mobile/MobilePopover.js +4 -1
  13. package/es/rootConfig/mobile/page.d.ts +13 -0
  14. package/es/rootConfig/mobile/page.js +15 -2
  15. package/es/rootConfig/pc/Drawer.d.ts +9 -0
  16. package/es/rootConfig/pc/Drawer.js +10 -1
  17. package/es/rootConfig/pc/Modal.d.ts +3 -0
  18. package/es/rootConfig/pc/Modal.js +4 -1
  19. package/es/rootConfig/pc/Popover.d.ts +3 -0
  20. package/es/rootConfig/pc/Popover.js +4 -1
  21. package/es/rootConfig/pc/page.d.ts +3 -18
  22. package/es/rootConfig/pc/page.js +4 -14
  23. package/es/rootConfig/todoActionList.d.ts +408 -65
  24. package/es/rootConfig/todoActionList.js +517 -118
  25. package/es/rootConfig/todoOptionList.d.ts +13 -2
  26. package/es/rootConfig/todoOptionList.js +16 -7
  27. package/es/security/encipher/sign.js +4 -3
  28. package/es/security/fetch.js +7 -0
  29. package/es/theme/bin/default/theme.js +1 -1
  30. package/es/theme/bin/default/theme.less +1 -1
  31. package/es/theme/bin/default/theme.scss +1 -1
  32. package/es/theme/index.js +54 -0
  33. package/es/theme/src/default/index.js +1 -1
  34. package/es/utils/url.d.ts +1 -0
  35. package/es/utils/url.js +5 -0
  36. package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +9 -3
  37. package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +29 -26
  38. package/lib/error/errorDisplay/Mobile/Modal/Modal.js +5 -3
  39. package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +9 -1
  40. package/lib/error/errorDisplay/Web/Drawer/Drawer.js +10 -4
  41. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +64 -46
  42. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +10 -1
  43. package/lib/error/errorDisplay/const.js +33 -9
  44. package/lib/rootConfig/mobile/MobileModal.d.ts +33 -0
  45. package/lib/rootConfig/mobile/MobileModal.js +49 -4
  46. package/lib/rootConfig/mobile/MobilePopover.d.ts +3 -0
  47. package/lib/rootConfig/mobile/MobilePopover.js +4 -1
  48. package/lib/rootConfig/mobile/page.d.ts +13 -0
  49. package/lib/rootConfig/mobile/page.js +15 -2
  50. package/lib/rootConfig/pc/Drawer.d.ts +9 -0
  51. package/lib/rootConfig/pc/Drawer.js +10 -1
  52. package/lib/rootConfig/pc/Modal.d.ts +3 -0
  53. package/lib/rootConfig/pc/Modal.js +4 -1
  54. package/lib/rootConfig/pc/Popover.d.ts +3 -0
  55. package/lib/rootConfig/pc/Popover.js +4 -1
  56. package/lib/rootConfig/pc/page.d.ts +3 -18
  57. package/lib/rootConfig/pc/page.js +4 -14
  58. package/lib/rootConfig/todoActionList.d.ts +408 -65
  59. package/lib/rootConfig/todoActionList.js +517 -118
  60. package/lib/rootConfig/todoOptionList.d.ts +13 -2
  61. package/lib/rootConfig/todoOptionList.js +16 -7
  62. package/lib/security/encipher/sign.js +3 -2
  63. package/lib/security/fetch.js +7 -0
  64. package/lib/theme/bin/default/theme.js +1 -1
  65. package/lib/theme/bin/default/theme.less +1 -1
  66. package/lib/theme/bin/default/theme.scss +1 -1
  67. package/lib/theme/index.js +61 -0
  68. package/lib/theme/src/default/index.js +1 -1
  69. package/lib/utils/url.d.ts +1 -0
  70. package/lib/utils/url.js +7 -1
  71. package/package.json +4 -3
@@ -35,14 +35,27 @@ var isElm = function isElm(val) {
35
35
  var emptyTxt = '暂无匹配信息,请联系平台管理员';
36
36
  var defaultFeedbackUrl = process.env.LingXi_ERROR_FEEBACK_URL || (0, _compUtils.resolveRequestPath)('/portal/IssueFeedback/addUserIssueFeedback');
37
37
  var feedbackPlacements = ['notification', 'drawer'];
38
- var feedbackTxts = ['故障上报', '故障已上报', '故障上报中...'];
38
+ var feedbackTxts = [{
39
+ code: 'faultReport',
40
+ title: '故障上报'
41
+ }, {
42
+ code: 'hasReported',
43
+ title: '故障已上报'
44
+ }, {
45
+ code: 'reporting',
46
+ title: '故障上报中...'
47
+ }];
39
48
  var targetTypes = ['request', 'dom', 'event'];
40
49
  var btnDisableClass = ['lx-notification-btn-disabled', 'lx-drawer-btn-disabled'];
41
50
  var getInstance = function getInstance(placement) {
42
51
  return _Notification.notificationInstance["lx-notification-root ".concat(placement)];
43
52
  };
44
53
  var renderErrList = function renderErrList(errList, opts) {
45
- var erorrListShowType = opts.erorrListShowType;
54
+ var erorrListShowType = opts.erorrListShowType,
55
+ _opts$getLocale = opts.getLocale,
56
+ getLocale = _opts$getLocale === void 0 ? function (k, p) {
57
+ return p;
58
+ } : _opts$getLocale;
46
59
  if (Array.isArray(errList) && errList.length > 0) {
47
60
  return errList.map(function (item) {
48
61
  var _item$guidance, _item$guidance2;
@@ -69,15 +82,15 @@ var renderErrList = function renderErrList(errList, opts) {
69
82
  })
70
83
  });
71
84
  }
72
- }, "\u8BE6\u60C5")
85
+ }, getLocale('detail', ' 详情'))
73
86
  };
74
87
  });
75
88
  }
76
89
  return /*#__PURE__*/_react.default.createElement("div", {
77
90
  className: "lx-drawer-empty"
78
- }, emptyTxt);
91
+ }, getLocale('ErrorMsg.no-information', emptyTxt));
79
92
  };
80
- var renderGuidance = function renderGuidance(guidance) {
93
+ var renderGuidance = function renderGuidance(guidance, opts) {
81
94
  return (guidance === null || guidance === void 0 ? void 0 : guidance.title) || (guidance === null || guidance === void 0 ? void 0 : guidance.content) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
82
95
  className: "lx-drawer-group-article lx-drawer-article"
83
96
  // eslint-disable-next-line react/no-danger
@@ -89,18 +102,19 @@ var renderGuidance = function renderGuidance(guidance) {
89
102
  onClick: function onClick() {
90
103
  window.open(guidance === null || guidance === void 0 ? void 0 : guidance.guidanceUrl, '_blank');
91
104
  }
92
- }, "\u6587\u6863\u94FE\u63A5")) : null) : /*#__PURE__*/_react.default.createElement("div", {
105
+ }, opts.getLocale('documentLink', '文档链接'))) : null) : /*#__PURE__*/_react.default.createElement("div", {
93
106
  className: "lx-drawer-empty"
94
- }, emptyTxt);
107
+ }, opts.getLocale('ErrorMsg.no-information', emptyTxt));
95
108
  };
96
- var renderTitle = function renderTitle(msg) {
109
+ var renderTitle = function renderTitle(msg, opts) {
110
+ var errTypeTitMap = opts.errTypeTitMap;
97
111
  if (isElm(msg === null || msg === void 0 ? void 0 : msg.title)) {
98
112
  return msg.title;
99
113
  }
100
114
  if (typeof (msg === null || msg === void 0 ? void 0 : msg.code) === 'string') {
101
115
  var _msg$code;
102
116
  var nbr = msg === null || msg === void 0 ? void 0 : (_msg$code = msg.code) === null || _msg$code === void 0 ? void 0 : _msg$code.split('-')[0];
103
- return nbr && _const.errTypeTitMap[nbr] ? _const.errTypeTitMap[nbr] : '';
117
+ return nbr && errTypeTitMap[nbr] ? errTypeTitMap[nbr] : '';
104
118
  }
105
119
  return '';
106
120
  };
@@ -123,7 +137,7 @@ var ErrorMsg = {
123
137
  }
124
138
  // 打开错误提示
125
139
  _Notification.default.open(_objectSpread({
126
- title: renderTitle(msg),
140
+ title: renderTitle(msg, opts),
127
141
  code: msg === null || msg === void 0 ? void 0 : msg.code,
128
142
  content: msg === null || msg === void 0 ? void 0 : msg.msg,
129
143
  footer: function () {
@@ -143,14 +157,14 @@ var ErrorMsg = {
143
157
  footerContent = [];
144
158
  loadingStates = ['loading', 'finish'];
145
159
  mapFeebackTxt = {
146
- loading: feedbackTxts[2],
147
- finish: feedbackTxts[1]
160
+ loading: opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title),
161
+ finish: opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title)
148
162
  }; // 故障上报loading
149
163
  feedbackLoading = ''; // 故障上报地址
150
164
  feedbackUrl = defaultFeedbackUrl; // 是否显示故障上报
151
165
  isShowFeedback = true; // 页面请求路径
152
166
  pageUrl = window.location.href;
153
- getDes = "<h3>\u9875\u9762\u8BF7\u6C42\u8DEF\u5F84<h3><p>".concat(pageUrl, "</p><h3>\u63A5\u53E3\u8BF7\u6C42\u8DEF\u5F84<h3><p>").concat(target === null || target === void 0 ? void 0 : target.id, "</p><h3>\u63A5\u53E3\u8FD4\u56DE\u62A5\u6587<h3><p>").concat(resMsg, " ").concat(stack, "</p>"); // 故障上报数据
167
+ getDes = "<h3>".concat(opts.getLocale('PageRequestPath', '页面请求路径'), "<h3><p>").concat(pageUrl, "</p><h3>").concat(opts.getLocale('PageRequestPath', '接口请求路径'), "<h3><p>").concat(target === null || target === void 0 ? void 0 : target.id, "</p><h3>").concat(opts.getLocale('PageRequestPath', '接口返回报文'), "<h3><p>").concat(resMsg, " ").concat(stack, "</p>"); // 故障上报数据
154
168
  feedbackParams = {
155
169
  feedbackType: '5000',
156
170
  feedbackProductType: '5000',
@@ -194,10 +208,11 @@ var ErrorMsg = {
194
208
  _Notification.default.setOpenList(_toConsumableArray(getAllList));
195
209
  var feedbackDrawerDom = document.getElementById("lx-feedback-drawer-".concat(_key));
196
210
  if (feedbackDrawerDom) {
197
- feedbackDrawerDom.innerHTML = _state ? feedbackTxts[2] : feedbackTxts[1];
211
+ // eslint-disable-next-line max-len
212
+ feedbackDrawerDom.innerHTML = _state ? opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title) : opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title);
198
213
  feedbackDrawerDom.classList.add(btnDisableClass[1]);
199
214
  if (_error) {
200
- feedbackDrawerDom.innerHTML = feedbackTxts[0];
215
+ feedbackDrawerDom.innerHTML = opts.getLocale(feedbackTxts[0].code, feedbackTxts[0].title);
201
216
  feedbackDrawerDom.classList.remove(btnDisableClass[1]);
202
217
  }
203
218
  }
@@ -240,9 +255,10 @@ var ErrorMsg = {
240
255
  }(), 400);
241
256
  renderTxt = function renderTxt(_state) {
242
257
  if (_state) {
243
- return _state === loadingStates[0] ? feedbackTxts[2] : feedbackTxts[1];
258
+ // eslint-disable-next-line max-len
259
+ return _state === loadingStates[0] ? opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title) : opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title);
244
260
  }
245
- return feedbackTxts[0];
261
+ return opts.getLocale(feedbackTxts[0].code, feedbackTxts[0].title);
246
262
  };
247
263
  renderDisabled = function renderDisabled(flag, _key) {
248
264
  if (_param.feedbackState) {
@@ -268,7 +284,7 @@ var ErrorMsg = {
268
284
  handleFeeback(feedbackPlacements[0], getKey);
269
285
  }
270
286
  }
271
- }, mapFeebackTxt[_param === null || _param === void 0 ? void 0 : _param.feedbackState] || feedbackTxts[0]));
287
+ }, mapFeebackTxt[_param === null || _param === void 0 ? void 0 : _param.feedbackState] || opts.getLocale(feedbackTxts[0].code, feedbackTxts[0].title)));
272
288
  }
273
289
  if (opts.extendFooter) {
274
290
  if (typeof opts.footer === 'function') {
@@ -281,7 +297,7 @@ var ErrorMsg = {
281
297
  footerContent.push( /*#__PURE__*/_react.default.createElement("a", {
282
298
  onClick: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
283
299
  var _detRes;
284
- var detRes, url, errMsg, renderSubTitle;
300
+ var detRes, article, url, errMsg, renderSubTitle;
285
301
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
286
302
  while (1) {
287
303
  switch (_context2.prev = _context2.next) {
@@ -294,18 +310,19 @@ var ErrorMsg = {
294
310
  extend: resolve === null || resolve === void 0 ? void 0 : resolve.extend
295
311
  };
296
312
  }
297
- if (!_const.articleMap[msg.code]) {
298
- _context2.next = 6;
313
+ article = opts.getArticle(msg.code, opts.getLocale);
314
+ if (!article) {
315
+ _context2.next = 7;
299
316
  break;
300
317
  }
301
318
  // 网络异常无法获取解决方案,使用内置的
302
319
  detRes = {
303
- article: _const.articleMap[msg.code],
320
+ article: article,
304
321
  extend: []
305
322
  };
306
- _context2.next = 21;
323
+ _context2.next = 22;
307
324
  break;
308
- case 6:
325
+ case 7:
309
326
  // 请求后端获取解决方案
310
327
 
311
328
  if (typeof resolve === 'string') {
@@ -314,58 +331,59 @@ var ErrorMsg = {
314
331
  url = resolve.href;
315
332
  }
316
333
  if (!url) {
317
- _context2.next = 20;
334
+ _context2.next = 21;
318
335
  break;
319
336
  }
320
- _context2.prev = 8;
321
- _context2.next = 11;
337
+ _context2.prev = 9;
338
+ _context2.next = 12;
322
339
  return _http.default.get(url, {
323
340
  params: {
324
341
  errorCode: msg === null || msg === void 0 ? void 0 : msg.code,
325
342
  errorMsg: msg === null || msg === void 0 ? void 0 : msg.msg
326
343
  }
327
344
  });
328
- case 11:
345
+ case 12:
329
346
  errMsg = _context2.sent;
330
347
  detRes = {
331
348
  article: errMsg === null || errMsg === void 0 ? void 0 : errMsg.guidance,
332
349
  extend: errMsg === null || errMsg === void 0 ? void 0 : errMsg.errorInfos
333
350
  };
334
- _context2.next = 18;
351
+ _context2.next = 19;
335
352
  break;
336
- case 15:
337
- _context2.prev = 15;
338
- _context2.t0 = _context2["catch"](8);
353
+ case 16:
354
+ _context2.prev = 16;
355
+ _context2.t0 = _context2["catch"](9);
339
356
  // eslint-disable-next-line no-console
340
357
  console.error(new Error("ErrorMsg\u7EC4\u4EF6: \u83B7\u53D6\u89E3\u51B3\u65B9\u6848\u5931\u8D25\uFF0C".concat(_context2.t0)));
341
- case 18:
342
- _context2.next = 21;
358
+ case 19:
359
+ _context2.next = 22;
343
360
  break;
344
- case 20:
361
+ case 21:
345
362
  // eslint-disable-next-line no-console
346
363
  console.error(new Error('ErrorMsg组件: 无效resolve'));
347
- case 21:
364
+ case 22:
348
365
  renderSubTitle = function renderSubTitle() {
349
366
  if (target.type === targetTypes[0] && (target === null || target === void 0 ? void 0 : target.id)) {
350
- return "\u670D\u52A1\u5730\u5740\uFF1A".concat(target === null || target === void 0 ? void 0 : target.id);
367
+ return "".concat(opts.getLocale('serviceURL', '服务地址'), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
351
368
  }
352
369
  return null;
353
370
  };
354
371
  _Drawer.drawerHandel.open({
355
- title: "".concat(renderTitle(msg), "(").concat((msg === null || msg === void 0 ? void 0 : msg.code) || '', ")"),
372
+ getLocale: opts.getLocale,
373
+ title: "".concat(renderTitle(msg, opts), "(").concat((msg === null || msg === void 0 ? void 0 : msg.code) || '', ")"),
356
374
  status: 'error',
357
375
  mode: 'errorInfo',
358
376
  content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (msg === null || msg === void 0 ? void 0 : msg.msg) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, msg.msg, /*#__PURE__*/_react.default.createElement("br", null)) : '', msg === null || msg === void 0 ? void 0 : msg.stack),
359
377
  errorInfoProps: {
360
378
  tabs: [{
361
379
  key: 'article',
362
- tab: '解决方案'
380
+ tab: opts.getLocale('ErrorMsg.solution', '解决方案')
363
381
  }, {
364
382
  key: 'extend',
365
- tab: '错误信息匹配'
383
+ tab: opts.getLocale('ErrorMsg.errorMsgMatch', '错误信息匹配')
366
384
  }],
367
385
  tabsActiveKey: 'article',
368
- tabsContent: renderGuidance((_detRes = detRes) === null || _detRes === void 0 ? void 0 : _detRes.article),
386
+ tabsContent: renderGuidance((_detRes = detRes) === null || _detRes === void 0 ? void 0 : _detRes.article, opts),
369
387
  onTabsChange: function onTabsChange(record) {
370
388
  var _detRes2, _detRes3;
371
389
  switch (record === null || record === void 0 ? void 0 : record.key) {
@@ -373,7 +391,7 @@ var ErrorMsg = {
373
391
  record.update({
374
392
  errorInfoProps: {
375
393
  tabsActiveKey: record === null || record === void 0 ? void 0 : record.key,
376
- tabsContent: renderGuidance((_detRes2 = detRes) === null || _detRes2 === void 0 ? void 0 : _detRes2.article)
394
+ tabsContent: renderGuidance((_detRes2 = detRes) === null || _detRes2 === void 0 ? void 0 : _detRes2.article, opts)
377
395
  }
378
396
  });
379
397
  break;
@@ -396,7 +414,7 @@ var ErrorMsg = {
396
414
  onClick: function onClick() {
397
415
  _Drawer.drawerHandel.close();
398
416
  }
399
- }, "\u53D6 \u6D88"), /*#__PURE__*/_react.default.createElement("a", {
417
+ }, opts.cancelText), /*#__PURE__*/_react.default.createElement("a", {
400
418
  className: "lx-drawer-btn lx-drawer-btn-primary ".concat(renderDisabled(feedbackPlacements[1], _param.itemKey)),
401
419
  id: "lx-feedback-drawer-".concat(_param.itemKey),
402
420
  config: _param.itemKey,
@@ -409,14 +427,14 @@ var ErrorMsg = {
409
427
  }
410
428
  }, renderTxt(_param.feedbackState))) : null
411
429
  });
412
- case 23:
430
+ case 24:
413
431
  case "end":
414
432
  return _context2.stop();
415
433
  }
416
434
  }
417
- }, _callee2, null, [[8, 15]]);
435
+ }, _callee2, null, [[9, 16]]);
418
436
  }))
419
- }, "\u5F02\u5E38\u5E2E\u52A9"));
437
+ }, opts.okText));
420
438
  }
421
439
  return _context3.abrupt("return", footerContent);
422
440
  case 29:
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.setGlobalConfig = exports.defaultGlobalConfig = void 0;
7
7
  var _compUtils = require("../compUtils");
8
+ var _const = require("../const");
8
9
  var defaultGlobalConfig = {
9
10
  duration: 3500,
10
11
  maxLine: null,
@@ -20,7 +21,15 @@ var defaultGlobalConfig = {
20
21
  erorrListShowType: 'innerWindow',
21
22
  // 'innerWindow' , 'openDrawer'
22
23
  resolve: process.env.LingXi_ERROR_RESOLVE || (0, _compUtils.resolveRequestPath)('/lcdp/error/queryErrorInfoByCodeOrMsg'),
23
- feebackAction: false // 故障上报地址,默认不展示故障上报
24
+ feebackAction: false,
25
+ // 故障上报地址,默认不展示故障上报
26
+ okText: '异常帮助',
27
+ cancelText: '取消',
28
+ getLocale: function getLocale(k, p) {
29
+ return p !== null && p !== void 0 ? p : '';
30
+ },
31
+ errTypeTitMap: _const.errTypeTitMap,
32
+ getArticle: _const.getArticle
24
33
  };
25
34
  exports.defaultGlobalConfig = defaultGlobalConfig;
26
35
  var setGlobalConfig = function setGlobalConfig() {
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.statusClrMap = exports.httpErrorMap = exports.errTypeTitMap = exports.articleMap = void 0;
6
+ exports.statusClrMap = exports.httpErrorMap = exports.getArticle = exports.errTypeTitMap = exports.defaultArticleMap = exports.articleMap = void 0;
7
+ // 因运行态多语言需要,调整至 该文件只作为默认值配置,如果需要添加配置,请记得运行态一起修改。
7
8
  var errTypeTitMap = {
8
9
  '01': '网络请求异常',
9
10
  '02': '程序处理异常',
@@ -48,36 +49,59 @@ try {
48
49
  } catch (err) {
49
50
  // console.warn(err);
50
51
  }
51
- var articleMap = {
52
+ var defaultArticleMap = {
52
53
  // 网络异常
53
- '01-00-2-000-000001': localArticles['01-00-2-000-000001'] || {
54
+ '01-00-2-000-000001': {
54
55
  title: '服务请求失败,网络出现异常',
55
56
  content: "<dl>\n <dt>\u7F51\u7EDC\u5F02\u5E38\u539F\u56E0\uFF1A</dt>\n <dd>\n <ol>\n <li>\u7F51\u7EDC\u6545\u969C\uFF0C\u60A8\u7684\u8BA1\u7B97\u673A/\u624B\u673A\u65E0Internet\u8BBF\u95EE\uFF1B</li>\n <li>\u8BA1\u7B97\u673A/\u624B\u673A\u5F00\u542F\u4E86\u5176\u4ED6\u7F51\u7EDC\u4EE3\u7406\uFF1B</li>\n <li>\u8BF7\u6C42\u88AB\u7F51\u7EDC\u5B89\u5168\u62E6\u622A\uFF1B</li>\n </ol>\n <dd>\n <dt>\u89E3\u51B3\u65B9\u6CD5\uFF1A</dt>\n <dd>\n <ol>\n <li>\u9996\u5148\u786E\u4FDD\u60A8\u7684\u8BA1\u7B97\u673A/\u624B\u673A\u5DF2\u7ECF\u901A\u8FC7Wi-Fi\u6216\u7535\u7F06\u65B9\u5F0F\u6B63\u5E38\u63A5\u5165\u7F51\u7EDC;</li>\n <li>\u5982\u679C\u4F7F\u7528\u516C\u7F51\u8BBF\u95EE\u7CFB\u7EDF\uFF0C\u68C0\u67E5\u60A8\u7684\u8BA1\u7B97\u673A/\u624B\u673A\u662F\u5426\u5DF2\u8FDE\u63A5\u5230Internet\uFF0C\u5982\u65E0Internet\u8BBF\u95EE\uFF0C\u4F60\u53EF\u4EE5\u5C1D\u8BD5:<br />\n - \u91CD\u542F\u7535\u8111\u3001\u5149\u732B\u3001\u8DEF\u7531\u5668\u3001\u624B\u673A\u7F51\u7EDC<br />\n - \u8C03\u6574DNS\u914D\u7F6E<br />\n - \u91CD\u7F6ETCP/IP\u7F51\u7EDC\u914D\u7F6E<br />\n - \u4F7F\u7528\u5176\u4ED6\u6D4F\u89C8\u5668<br />\n \u5982\u679C\u95EE\u9898\u4ECD\u7136\u5B58\uFF0C\u60A8\u5E94\u8BE5\u8054\u7CFB\u60A8\u7684\u4E92\u8054\u7F51\u670D\u52A1\u63D0\u4F9B\u5546\u5E76\u68C0\u67E5\u662F\u5426\u6709\u4EFB\u4F55\u6280\u672F\u95EE\u9898\u3002\n </li>\n <li>\u68C0\u67E5\u662F\u5426\u5F00\u542F\u5176\u4ED6\u7F51\u7EDC\u4EE3\u7406\uFF0C\u5982\u5F00\u542F\u8BF7\u5C1D\u8BD5\u5173\u95ED\u3002</li>\n </ol>\n </dd>\n </dl>\n "
56
57
  },
57
58
  // 请求超时
58
- '01-00-2-000-000002': localArticles['01-00-2-000-000002'] || {
59
+ '01-00-2-000-000002': {
59
60
  title: '服务请求失败,请求超时',
60
61
  content: "<dl>\n <dt>\u8BF7\u6C42\u5931\u8D25\u53EF\u80FD\u539F\u56E0\uFF1A</dt>\n <dd>\n <ol>\n <li>\u5F53\u524D\u7CFB\u7EDF\u5904\u4E8E\u4F7F\u7528\u9AD8\u5CF0\u671F\uFF0C\u54CD\u5E94\u8F83\u6162\uFF1B</li>\n <li>\u7F51\u7EDC\u4E0A\u884C\u4E0B\u884C\u901F\u7387\u6162\uFF1B</li>\n <li>\u8BF7\u6C42\u62A5\u6587\u8FC7\u5927\uFF0C\u4E0A\u4F20\u9700\u8981\u8F83\u591A\u65F6\u95F4\uFF1B</li>\n <li>\u6587\u4EF6\u4E0B\u8F7D\uFF0C\u6587\u4EF6\u5927\u5C0F\u8FC7\u5927\uFF0C\u9700\u8981\u8F83\u591A\u65F6\u95F4\uFF1B</li>\n </ol>\n </dd>\n </dl>\n <dt>\u89E3\u51B3\u65B9\u6CD5\uFF1A</dt>\n <dd>\n <ol>\n <li>\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF1B</li>\n <li>\u68C0\u67E5\u7F51\u7EDC\uFF0C\u6D4B\u8BD5\u7F51\u7EDC\u901F\u5EA6\uFF0C\u5E76\u4F18\u5316\uFF1B</li>\n <li>\u5982\u5185\u5BB9\u8FC7\u5927\uFF0C\u8054\u7CFB\u7BA1\u7406\u5458\u8C03\u6574\u8D85\u65F6\u65F6\u957F\uFF1B</li>\n </ol>\n </dd>\n </dl>\n "
61
62
  },
62
63
  // 请求404
63
- '01-00-2-000-000404': localArticles['01-00-2-000-000404'] || {
64
+ '01-00-2-000-000404': {
64
65
  title: '服务请求失败,请求资源不存在(404)',
65
66
  content: "<dl>\n <dt>\u8BF7\u6C42\u5931\u8D25\u53EF\u80FD\u539F\u56E0\uFF1A</dt>\n <dd>\n <ol>\n <li>\u8D44\u6E90\u5730\u5740\u4E0D\u6B63\u786E\uFF1B</li>\n <li>\u8D44\u6E90\u5DF2\u88AB\u5220\u9664\uFF0C\u6D4F\u89C8\u5668\u7F13\u5B58\u5BFC\u81F4\u8D44\u6E90\u5730\u5740\u6CA1\u66F4\u65B0\uFF1B</li>\n <li>\u9875\u9762\u7248\u672C\u8DDF\u670D\u52A1\u7248\u672C\u4E0D\u4E00\u81F4\uFF1B</li>\n </ol>\n </dd>\n </dl>\n <dt>\u89E3\u51B3\u65B9\u6CD5\uFF1A</dt>\n <dd>\n <ol>\n <li>\u6E05\u9664\u6D4F\u89C8\u5668\u7F13\u5B58\u518D\u91CD\u8BD5\uFF1B</li>\n <li>\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\u6392\u67E5\u8D44\u6E90\u5730\u5740\u548C\u7248\u672C\u4FE1\u606F\uFF1B</li>\n </ol>\n </dd>\n </dl>\n "
66
67
  },
67
68
  // 请求413
68
- '01-00-2-000-000413': localArticles['01-00-2-000-000413'] || {
69
+ '01-00-2-000-000413': {
69
70
  title: '服务请求失败,请求报文体超过网关限制',
70
71
  content: "<dl>\n <dt>\u8BF7\u6C42\u5931\u8D25\u539F\u56E0\uFF1A</dt>\n <dd>\n <ol>\n <li>\u8BF7\u6C42\u62A5\u6587\u4F53\u8FC7\u5927\u5F15\u8D77\u7684\uFF0C\u8BF7\u6C42\u957F\u5EA6\u8D85\u8FC7\u4E86\u7F51\u5173\u9ED8\u8BA4\u7684\u7F13\u5B58\u5927\u5C0F\u548C\u6700\u5927\u5BA2\u6237\u7AEF\u6700\u5927\u8BF7\u6C42\u5927\u5C0F\uFF1B</li>\n </ol>\n </dd>\n </dl>\n <dt>\u89E3\u51B3\u65B9\u6CD5\uFF1A</dt>\n <dd>\n <ol>\n <li>\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF0C\u8C03\u6574\u7F51\u5173\u914D\u7F6E</li>\n </ol>\n </dd>\n </dl>\n "
71
72
  },
72
73
  // 网关错误
73
- '06-00-3-000-000502': localArticles['06-00-3-000-000502'] || {
74
+ '06-00-3-000-000502': {
74
75
  title: '服务请求失败,请稍后再试或者联系系统管理员',
75
76
  content: "<dl>\n <dt>\u8BF7\u6C42\u5931\u8D25\u53EF\u80FD\u539F\u56E0\uFF1A</dt>\n <dd>\n <ol>\n <li>\u7CFB\u7EDF\u6B63\u5728\u53D1\u7248\uFF1B</li>\n <li>\u5F53\u524D\u7CFB\u7EDF\u5904\u4E8E\u4F7F\u7528\u9AD8\u5CF0\u671F\uFF0C\u54CD\u5E94\u8F83\u6162\uFF1B</li>\n <li>\u7CFB\u7EDF\u5B58\u5728\u5185\u90E8\u9519\u8BEF\uFF1B</li>\n </ol>\n </dd>\n </dl>\n <dt>\u89E3\u51B3\u65B9\u6CD5\uFF1A</dt>\n <dd>\n <ol>\n <li>\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF1B</li>\n <li>\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF0C\u6838\u67E5\uFF1A<br />\n - \u4ECE\u670D\u52A1\u7AEF\u541E\u5410\u91CF\u627F\u8F7D\u8003\u8651\uFF0C\u662F\u5426\u9700\u8981\u8FDB\u884C\u7CFB\u7EDF\u6269\u5BB9\uFF1B<br />\n - \u4ECE\u670D\u52A1\u7AEF\u7A0B\u5E8F\u95EE\u9898\u65B9\u9762\u8003\u8651\uFF0C\u662F\u5426\u9700\u8981\u8FDB\u884C\u7A0B\u5E8F\u4F18\u5316\uFF1B<br />\n - \u4ECE\u7F51\u7EDC\u95EE\u9898\u65B9\u9762\u8003\u8651\uFF0C\u662F\u5426\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6D88\u8017\u3001\u8D1F\u8F7D\u5747\u8861\u914D\u7F6E\u662F\u5426\u6B63\u786E\u3002\n </li>\n </ol>\n </dd>\n </dl>\n "
76
77
  },
77
78
  // 网关超时
78
- '06-00-3-000-000504': localArticles['06-00-3-000-000504'] || {
79
+ '06-00-3-000-000504': {
79
80
  title: '服务请求失败,请稍后再试或者联系系统管理员',
80
81
  content: "<dl>\n <dt>\u8BF7\u6C42\u5931\u8D25\u53EF\u80FD\u539F\u56E0\uFF1A</dt>\n <dd>\n <ol>\n <li>\u5F53\u524D\u7CFB\u7EDF\u5904\u4E8E\u4F7F\u7528\u9AD8\u5CF0\u671F\uFF0C\u54CD\u5E94\u8F83\u6162\uFF1B</li>\n </ol>\n </dd>\n </dl>\n <dt>\u89E3\u51B3\u65B9\u6CD5\uFF1A</dt>\n <dd>\n <ol>\n <li>\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF1B</li>\n <li>\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF0C\u6838\u67E5\uFF1A<br />\n - \u4ECE\u670D\u52A1\u7AEF\u541E\u5410\u91CF\u627F\u8F7D\u8003\u8651\uFF0C\u662F\u5426\u9700\u8981\u8FDB\u884C\u7CFB\u7EDF\u6269\u5BB9\uFF1B<br />\n - \u4ECE\u7F51\u7EDC\u95EE\u9898\u65B9\u9762\u8003\u8651\uFF0C\u662F\u5426\u9700\u8981\u68C0\u67E5\u7F51\u7EDC\u6D88\u8017\u3001\u8D1F\u8F7D\u5747\u8861\u914D\u7F6E\u662F\u5426\u6B63\u786E\u3002\n </li>\n </ol>\n </dd>\n </dl>\n "
81
82
  }
82
83
  };
83
- exports.articleMap = articleMap;
84
+ exports.defaultArticleMap = defaultArticleMap;
85
+ var articleMap = {
86
+ // 网络异常
87
+ '01-00-2-000-000001': localArticles['01-00-2-000-000001'],
88
+ // 请求超时
89
+ '01-00-2-000-000002': localArticles['01-00-2-000-000002'],
90
+ // 请求404
91
+ '01-00-2-000-000404': localArticles['01-00-2-000-000404'],
92
+ // 请求413
93
+ '01-00-2-000-000413': localArticles['01-00-2-000-000413'],
94
+ // 网关错误
95
+ '06-00-3-000-000502': localArticles['06-00-3-000-000502'],
96
+ // 网关超时
97
+ '06-00-3-000-000504': localArticles['06-00-3-000-000504']
98
+ };
99
+ exports.articleMap = articleMap;
100
+ var getArticle = function getArticle(code) {
101
+ var _articleMap$code;
102
+ var getLocale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (t, p) {
103
+ return p !== null && p !== void 0 ? p : {};
104
+ };
105
+ return (_articleMap$code = articleMap[code]) !== null && _articleMap$code !== void 0 ? _articleMap$code : getLocale('ErrorMsg.articleMap', defaultArticleMap)[code];
106
+ };
107
+ exports.getArticle = getArticle;
@@ -5,6 +5,8 @@ declare const _default: {
5
5
  isContainer: boolean;
6
6
  label: string;
7
7
  props: {
8
+ width: string;
9
+ height: string;
8
10
  catalogItemId: number;
9
11
  ignoreLogin: boolean;
10
12
  mode: string;
@@ -57,6 +59,9 @@ declare const _default: {
57
59
  props: {
58
60
  required: boolean;
59
61
  options: never[];
62
+ mold: string;
63
+ catalogItemType: string;
64
+ visibleControlCode: string;
60
65
  };
61
66
  };
62
67
  scenarioList: {
@@ -78,6 +83,34 @@ declare const _default: {
78
83
  }[];
79
84
  };
80
85
  };
86
+ width: {
87
+ label: string;
88
+ groupsName: string;
89
+ type: string;
90
+ props: {
91
+ dependProps: {
92
+ mode: string[];
93
+ };
94
+ option: {
95
+ label: string;
96
+ value: string;
97
+ }[];
98
+ };
99
+ };
100
+ height: {
101
+ label: string;
102
+ groupsName: string;
103
+ type: string;
104
+ props: {
105
+ dependProps: {
106
+ mode: string[];
107
+ };
108
+ option: {
109
+ label: string;
110
+ value: string;
111
+ }[];
112
+ };
113
+ };
81
114
  closeOnClickOverlay: {
82
115
  label: string;
83
116
  type: string;
@@ -18,12 +18,14 @@ var _default = {
18
18
  isContainer: false,
19
19
  label: '弹窗',
20
20
  props: {
21
+ width: '50vw',
22
+ height: '50vh',
21
23
  catalogItemId: -1,
22
24
  ignoreLogin: false,
23
25
  mode: 'alert',
24
- closeOnClickOverlay: false,
25
- destroyOnClose: false,
26
- showCloseButton: false,
26
+ closeOnClickOverlay: true,
27
+ destroyOnClose: true,
28
+ showCloseButton: true,
27
29
  compState: [{
28
30
  name: '业务主键',
29
31
  code: 'bizId'
@@ -89,7 +91,10 @@ var _default = {
89
91
  groupsName: '基础',
90
92
  props: {
91
93
  required: true,
92
- options: []
94
+ options: [],
95
+ mold: "app-page",
96
+ catalogItemType: "APPPAGE",
97
+ visibleControlCode: "app-page-add-group"
93
98
  }
94
99
  },
95
100
  scenarioList: {
@@ -123,6 +128,46 @@ var _default = {
123
128
  }]
124
129
  }
125
130
  },
131
+ width: {
132
+ label: '宽度',
133
+ groupsName: '基础',
134
+ type: 'HeightInput',
135
+ props: {
136
+ dependProps: {
137
+ mode: ['alert', 'sliderLeft', 'sliderRight']
138
+ },
139
+ option: [{
140
+ label: 'px',
141
+ value: 'px'
142
+ }, {
143
+ label: '%',
144
+ value: '%'
145
+ }, {
146
+ label: 'vw',
147
+ value: 'vw'
148
+ }]
149
+ }
150
+ },
151
+ height: {
152
+ label: '高度',
153
+ groupsName: '基础',
154
+ type: 'HeightInput',
155
+ props: {
156
+ dependProps: {
157
+ mode: ['alert', 'popup', 'dropdown']
158
+ },
159
+ option: [{
160
+ label: 'px',
161
+ value: 'px'
162
+ }, {
163
+ label: '%',
164
+ value: '%'
165
+ }, {
166
+ label: 'vh',
167
+ value: 'vh'
168
+ }]
169
+ }
170
+ },
126
171
  closeOnClickOverlay: {
127
172
  label: '关闭方式',
128
173
  type: 'Select',
@@ -56,6 +56,9 @@ declare const _default: {
56
56
  props: {
57
57
  required: boolean;
58
58
  options: never[];
59
+ mold: string;
60
+ catalogItemType: string;
61
+ visibleControlCode: string;
59
62
  };
60
63
  };
61
64
  remark: {
@@ -88,7 +88,10 @@ var _default = {
88
88
  groupsName: '基础',
89
89
  props: {
90
90
  required: true,
91
- options: []
91
+ options: [],
92
+ mold: "app-page",
93
+ catalogItemType: "APPPAGE",
94
+ visibleControlCode: "app-page-add-group"
92
95
  }
93
96
  },
94
97
  remark: {
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  pageDynamicFlag: boolean;
10
10
  catalogItemId: number;
11
11
  ignoreLogin: boolean;
12
+ hideNavBar: boolean;
12
13
  layout: string;
13
14
  searchParams: {
14
15
  name: string;
@@ -93,6 +94,9 @@ declare const _default: {
93
94
  type: string;
94
95
  groupsName: string;
95
96
  istodoBind: boolean;
97
+ props: {
98
+ description: string;
99
+ };
96
100
  };
97
101
  catalogItemId: {
98
102
  label: string;
@@ -101,6 +105,9 @@ declare const _default: {
101
105
  props: {
102
106
  required: boolean;
103
107
  options: never[];
108
+ mold: string;
109
+ catalogItemType: string;
110
+ visibleControlCode: string;
104
111
  };
105
112
  };
106
113
  scenarioList: {
@@ -178,6 +185,12 @@ declare const _default: {
178
185
  type: string;
179
186
  props: {};
180
187
  };
188
+ colorType: {
189
+ groupsName: string;
190
+ label: string;
191
+ type: string;
192
+ props: {};
193
+ };
181
194
  };
182
195
  };
183
196
  export default _default;
@@ -22,6 +22,7 @@ var _default = {
22
22
  pageDynamicFlag: false,
23
23
  catalogItemId: -1,
24
24
  ignoreLogin: false,
25
+ hideNavBar: false,
25
26
  layout: 'BaseLayout',
26
27
  searchParams: [{
27
28
  name: '业务主键',
@@ -127,7 +128,10 @@ var _default = {
127
128
  label: '页面标题',
128
129
  type: 'Input',
129
130
  groupsName: '基础',
130
- istodoBind: true
131
+ istodoBind: true,
132
+ props: {
133
+ description: '适用场景:当前页面需要动态更改页面名称的时候,可通过表达式进行绑定。默认名称'
134
+ }
131
135
  },
132
136
  catalogItemId: {
133
137
  label: '分组',
@@ -135,7 +139,10 @@ var _default = {
135
139
  groupsName: '基础',
136
140
  props: {
137
141
  required: true,
138
- options: []
142
+ options: [],
143
+ mold: "app-page",
144
+ catalogItemType: "APPPAGE",
145
+ visibleControlCode: "app-page-add-group"
139
146
  }
140
147
  },
141
148
  scenarioList: {
@@ -222,6 +229,12 @@ var _default = {
222
229
  label: '填充类型',
223
230
  type: 'BackgroundType',
224
231
  props: {}
232
+ },
233
+ colorType: {
234
+ groupsName: '标题&返回键颜色',
235
+ label: '填充类型',
236
+ type: 'BackgroundType',
237
+ props: {}
225
238
  }
226
239
  }
227
240
  };