@lingxiteam/assets 4.2.1-alpha.2 → 4.3.2-alpha.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 (175) hide show
  1. package/es/IconSvg/index.js +8 -7
  2. package/es/error/errorCatch/index.js +1 -1
  3. package/es/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -77
  4. package/es/error/errorDisplay/Mobile/Drawer/index.js +26 -26
  5. package/es/error/errorDisplay/Mobile/ErrorMsg/index.js +127 -129
  6. package/es/error/errorDisplay/Mobile/Modal/Modal.js +46 -31
  7. package/es/error/errorDisplay/Mobile/Modal/index.js +24 -24
  8. package/es/error/errorDisplay/Mobile/defaultGlobalConfig.js +2 -2
  9. package/es/error/errorDisplay/Web/Drawer/Drawer.js +183 -145
  10. package/es/error/errorDisplay/Web/Drawer/DrawerConnect.js +43 -46
  11. package/es/error/errorDisplay/Web/Drawer/index.js +15 -15
  12. package/es/error/errorDisplay/Web/ErrorMsg/index.js +341 -327
  13. package/es/error/errorDisplay/Web/Notification/Notice.js +78 -65
  14. package/es/error/errorDisplay/Web/Notification/Notification.js +15 -15
  15. package/es/error/errorDisplay/Web/Notification/index.js +36 -38
  16. package/es/error/errorDisplay/Web/defaultGlobalConfig.js +2 -2
  17. package/es/error/errorDisplay/compUtils.js +6 -6
  18. package/es/error/errorDisplay/http.js +7 -7
  19. package/es/error/index.js +6 -6
  20. package/es/index.js +5 -5
  21. package/es/rootConfig/index.d.ts +1 -1
  22. package/es/rootConfig/index.js +5 -5
  23. package/es/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
  24. package/es/rootConfig/locales/enus/config-locales-es.js +13 -0
  25. package/es/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
  26. package/es/rootConfig/locales/enus/config-locales-es.mobile.js +106 -0
  27. package/es/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
  28. package/es/rootConfig/locales/enus/config-locales-es.pc.js +42 -0
  29. package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
  30. package/es/rootConfig/locales/enus/config-locales-es.todo-actionList.js +865 -0
  31. package/es/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
  32. package/es/rootConfig/locales/enus/config-locales-es.todo-callback.js +20 -0
  33. package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
  34. package/es/rootConfig/locales/enus/config-locales-es.todo-optionList.js +266 -0
  35. package/es/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
  36. package/es/rootConfig/locales/zhcn/config-locales-cn.js +13 -0
  37. package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
  38. package/es/rootConfig/locales/zhcn/config-locales-cn.mobile.js +57 -0
  39. package/es/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
  40. package/es/rootConfig/locales/zhcn/config-locales-cn.pc.js +97 -0
  41. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
  42. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +583 -0
  43. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
  44. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +13 -0
  45. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
  46. package/es/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +127 -0
  47. package/es/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
  48. package/es/rootConfig/locales/zhhk/config-locales-hk.js +13 -0
  49. package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
  50. package/es/rootConfig/locales/zhhk/config-locales-hk.mobile.js +106 -0
  51. package/es/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
  52. package/es/rootConfig/locales/zhhk/config-locales-hk.pc.js +174 -0
  53. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
  54. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +869 -0
  55. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
  56. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +20 -0
  57. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
  58. package/es/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +266 -0
  59. package/es/rootConfig/mobile/BusiComp.d.ts +0 -1
  60. package/es/rootConfig/mobile/BusiComp.js +13 -10
  61. package/es/rootConfig/mobile/MobileModal.js +32 -27
  62. package/es/rootConfig/mobile/MobilePopover.d.ts +0 -2
  63. package/es/rootConfig/mobile/MobilePopover.js +16 -13
  64. package/es/rootConfig/mobile/index.js +4 -4
  65. package/es/rootConfig/mobile/page.d.ts +17 -2
  66. package/es/rootConfig/mobile/page.js +45 -38
  67. package/es/rootConfig/pc/BusiComp.js +82 -12
  68. package/es/rootConfig/pc/Drawer.d.ts +8 -9
  69. package/es/rootConfig/pc/Drawer.js +116 -46
  70. package/es/rootConfig/pc/Modal.d.ts +0 -1
  71. package/es/rootConfig/pc/Modal.js +90 -20
  72. package/es/rootConfig/pc/Popover.d.ts +0 -1
  73. package/es/rootConfig/pc/Popover.js +85 -15
  74. package/es/rootConfig/pc/index.js +5 -5
  75. package/es/rootConfig/pc/page.d.ts +0 -2
  76. package/es/rootConfig/pc/page.js +91 -22
  77. package/es/rootConfig/todoActionList.d.ts +1 -0
  78. package/es/rootConfig/todoActionList.js +1845 -719
  79. package/es/rootConfig/todoCallback.d.ts +12 -1
  80. package/es/rootConfig/todoCallback.js +175 -103
  81. package/es/rootConfig/todoOptionList.d.ts +0 -66
  82. package/es/rootConfig/todoOptionList.js +197 -198
  83. package/es/theme/index.js +18 -20
  84. package/es/theme/src/default/index.js +7 -7
  85. package/es/theme/utils/renderColors.js +1 -1
  86. package/es/utils/url.js +8 -7
  87. package/lib/IconSvg/index.js +10 -9
  88. package/lib/error/errorCatch/index.js +2 -3
  89. package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +99 -79
  90. package/lib/error/errorDisplay/Mobile/Drawer/index.js +25 -26
  91. package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +123 -126
  92. package/lib/error/errorDisplay/Mobile/Modal/Modal.js +45 -33
  93. package/lib/error/errorDisplay/Mobile/Modal/index.js +23 -24
  94. package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +3 -5
  95. package/lib/error/errorDisplay/SVGstring.js +6 -12
  96. package/lib/error/errorDisplay/Web/Drawer/Drawer.js +181 -146
  97. package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +44 -48
  98. package/lib/error/errorDisplay/Web/Drawer/index.js +18 -20
  99. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +336 -324
  100. package/lib/error/errorDisplay/Web/Notification/Notice.js +79 -68
  101. package/lib/error/errorDisplay/Web/Notification/Notification.js +15 -16
  102. package/lib/error/errorDisplay/Web/Notification/index.js +37 -41
  103. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +3 -5
  104. package/lib/error/errorDisplay/compUtils.js +9 -12
  105. package/lib/error/errorDisplay/const.js +7 -13
  106. package/lib/error/errorDisplay/http.js +8 -9
  107. package/lib/index.js +3 -6
  108. package/lib/rootConfig/index.d.ts +1 -1
  109. package/lib/rootConfig/index.js +9 -3
  110. package/lib/rootConfig/locales/enus/config-locales-es.d.ts +2 -0
  111. package/lib/rootConfig/locales/enus/config-locales-es.js +19 -0
  112. package/lib/rootConfig/locales/enus/config-locales-es.mobile.d.ts +2 -0
  113. package/lib/rootConfig/locales/enus/config-locales-es.mobile.js +112 -0
  114. package/lib/rootConfig/locales/enus/config-locales-es.pc.d.ts +2 -0
  115. package/lib/rootConfig/locales/enus/config-locales-es.pc.js +48 -0
  116. package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.d.ts +2 -0
  117. package/lib/rootConfig/locales/enus/config-locales-es.todo-actionList.js +871 -0
  118. package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.d.ts +2 -0
  119. package/lib/rootConfig/locales/enus/config-locales-es.todo-callback.js +26 -0
  120. package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.d.ts +2 -0
  121. package/lib/rootConfig/locales/enus/config-locales-es.todo-optionList.js +272 -0
  122. package/lib/rootConfig/locales/zhcn/config-locales-cn.d.ts +2 -0
  123. package/lib/rootConfig/locales/zhcn/config-locales-cn.js +19 -0
  124. package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.d.ts +2 -0
  125. package/lib/rootConfig/locales/zhcn/config-locales-cn.mobile.js +63 -0
  126. package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.d.ts +2 -0
  127. package/lib/rootConfig/locales/zhcn/config-locales-cn.pc.js +103 -0
  128. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.d.ts +2 -0
  129. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-actionList.js +589 -0
  130. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.d.ts +2 -0
  131. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-callback.js +19 -0
  132. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.d.ts +2 -0
  133. package/lib/rootConfig/locales/zhcn/config-locales-cn.todo-optionList.js +133 -0
  134. package/lib/rootConfig/locales/zhhk/config-locales-hk.d.ts +2 -0
  135. package/lib/rootConfig/locales/zhhk/config-locales-hk.js +19 -0
  136. package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.d.ts +2 -0
  137. package/lib/rootConfig/locales/zhhk/config-locales-hk.mobile.js +112 -0
  138. package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.d.ts +2 -0
  139. package/lib/rootConfig/locales/zhhk/config-locales-hk.pc.js +180 -0
  140. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.d.ts +2 -0
  141. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-actionList.js +875 -0
  142. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.d.ts +2 -0
  143. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-callback.js +26 -0
  144. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.d.ts +2 -0
  145. package/lib/rootConfig/locales/zhhk/config-locales-hk.todo-optionList.js +272 -0
  146. package/lib/rootConfig/mobile/BusiComp.d.ts +0 -1
  147. package/lib/rootConfig/mobile/BusiComp.js +14 -12
  148. package/lib/rootConfig/mobile/MobileModal.js +33 -29
  149. package/lib/rootConfig/mobile/MobilePopover.d.ts +0 -2
  150. package/lib/rootConfig/mobile/MobilePopover.js +17 -15
  151. package/lib/rootConfig/mobile/page.d.ts +17 -2
  152. package/lib/rootConfig/mobile/page.js +46 -40
  153. package/lib/rootConfig/pc/BusiComp.js +83 -14
  154. package/lib/rootConfig/pc/Drawer.d.ts +8 -9
  155. package/lib/rootConfig/pc/Drawer.js +117 -48
  156. package/lib/rootConfig/pc/Modal.d.ts +0 -1
  157. package/lib/rootConfig/pc/Modal.js +91 -22
  158. package/lib/rootConfig/pc/Popover.d.ts +0 -1
  159. package/lib/rootConfig/pc/Popover.js +86 -17
  160. package/lib/rootConfig/pc/page.d.ts +0 -2
  161. package/lib/rootConfig/pc/page.js +92 -24
  162. package/lib/rootConfig/todoActionList.d.ts +1 -0
  163. package/lib/rootConfig/todoActionList.js +1815 -695
  164. package/lib/rootConfig/todoCallback.d.ts +12 -1
  165. package/lib/rootConfig/todoCallback.js +182 -116
  166. package/lib/rootConfig/todoOptionList.d.ts +0 -66
  167. package/lib/rootConfig/todoOptionList.js +198 -200
  168. package/lib/theme/bin/default/modalWidth.js +1 -2
  169. package/lib/theme/index.js +19 -22
  170. package/lib/theme/src/default/index.js +7 -7
  171. package/lib/theme/utils/renderColors.js +1 -1
  172. package/lib/utils/cookieUtil.js +1 -2
  173. package/lib/utils/img.js +2 -3
  174. package/lib/utils/url.js +13 -16
  175. package/package.json +3 -4
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -10,14 +10,15 @@ var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _SVGstring = require("../../SVGstring");
11
11
  var _img = require("../../../../utils/img");
12
12
  require("./Drawer.less");
13
+ var _jsxRuntime = require("react/jsx-runtime");
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
19
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
22
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
22
23
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23
24
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -25,8 +26,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
25
26
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
26
27
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
27
28
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
28
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
29
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
29
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
30
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
30
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
32
  var isDomEle = function isDomEle(target) {
32
33
  return typeof target === 'string' || typeof target === 'number' || /*#__PURE__*/(0, _react.isValidElement)(target);
@@ -98,46 +99,52 @@ var Drawer = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
98
99
  return cont;
99
100
  };
100
101
  return items.map(function (item) {
101
- return /*#__PURE__*/_react.default.createElement("div", {
102
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
102
103
  className: "lx-drawer-group-article",
103
- key: item[contentRowKey]
104
- }, isDomEle(item === null || item === void 0 ? void 0 : item.title) ? /*#__PURE__*/_react.default.createElement("div", {
105
- className: "lx-drawer-group-article-title"
106
- }, item === null || item === void 0 ? void 0 : item.title) : null, isDomEle(item === null || item === void 0 ? void 0 : item.author) ? /*#__PURE__*/_react.default.createElement("div", {
107
- className: "lx-drawer-group-article-author"
108
- }, item === null || item === void 0 ? void 0 : item.author) : null, isDomEle(item === null || item === void 0 ? void 0 : item.content) ? /*#__PURE__*/_react.default.createElement("div", {
109
- className: "lx-drawer-group-article-content"
110
- }, renderItemÇont(item === null || item === void 0 ? void 0 : item.content, item[contentRowKey]), typeof (item === null || item === void 0 ? void 0 : item.content) === 'string' && (item === null || item === void 0 ? void 0 : item.content.length) > contentMaxLen ? /*#__PURE__*/_react.default.createElement("a", {
111
- className: "lx-drawer-group-article-extra",
112
- onClick: function onClick() {
113
- setExtraConts(function (list) {
114
- var cloneList = _toConsumableArray(list);
115
- if (!item[contentRowKey]) {
116
- return cloneList;
117
- }
118
- if (list.includes(item[contentRowKey])) {
119
- return cloneList.filter(function (record) {
120
- return record !== item[contentRowKey];
104
+ children: [isDomEle(item === null || item === void 0 ? void 0 : item.title) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
105
+ className: "lx-drawer-group-article-title",
106
+ children: item === null || item === void 0 ? void 0 : item.title
107
+ }) : null, isDomEle(item === null || item === void 0 ? void 0 : item.author) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
108
+ className: "lx-drawer-group-article-author",
109
+ children: item === null || item === void 0 ? void 0 : item.author
110
+ }) : null, isDomEle(item === null || item === void 0 ? void 0 : item.content) ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
111
+ className: "lx-drawer-group-article-content",
112
+ children: [renderItemÇont(item === null || item === void 0 ? void 0 : item.content, item[contentRowKey]), typeof (item === null || item === void 0 ? void 0 : item.content) === 'string' && (item === null || item === void 0 ? void 0 : item.content.length) > contentMaxLen ? /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
113
+ className: "lx-drawer-group-article-extra",
114
+ onClick: function onClick() {
115
+ setExtraConts(function (list) {
116
+ var cloneList = _toConsumableArray(list);
117
+ if (!item[contentRowKey]) {
118
+ return cloneList;
119
+ }
120
+ if (list.includes(item[contentRowKey])) {
121
+ return cloneList.filter(function (record) {
122
+ return record !== item[contentRowKey];
123
+ });
124
+ }
125
+ return [].concat(_toConsumableArray(cloneList), [item[contentRowKey]]);
121
126
  });
122
- }
123
- return [].concat(_toConsumableArray(cloneList), [item[contentRowKey]]);
124
- });
125
- }
126
- }, extraConts.includes(item[contentRowKey]) ? getLocale('packUp', '收起') : getLocale('open', '展开')) : null) : null);
127
+ },
128
+ children: extraConts.includes(item[contentRowKey]) ? getLocale('packUp', '收起') : getLocale('open', '展开')
129
+ }) : null]
130
+ }) : null]
131
+ }, item[contentRowKey]);
127
132
  });
128
133
  }
129
134
  return null;
130
135
  };
131
136
  if (Array.isArray(dataSource) && dataSource.length > 0) {
132
137
  return dataSource.map(function (item, index) {
133
- return renderRecord instanceof Function ? renderRecord(item, index) : /*#__PURE__*/_react.default.createElement("div", {
138
+ return renderRecord instanceof Function ? renderRecord(item, index) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
134
139
  className: "lx-drawer-group-item",
135
- key: item[rowKey]
136
- }, /*#__PURE__*/_react.default.createElement("div", {
137
- className: "lx-drawer-group-item-head"
138
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/_react.default.createElement("div", {
139
- className: "lx-drawer-group-item-body"
140
- }, isDomEle(item === null || item === void 0 ? void 0 : item.content) ? item === null || item === void 0 ? void 0 : item.content : '', renderList(item === null || item === void 0 ? void 0 : item.content)));
140
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
141
+ className: "lx-drawer-group-item-head",
142
+ children: item === null || item === void 0 ? void 0 : item.title
143
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
144
+ className: "lx-drawer-group-item-body",
145
+ children: [isDomEle(item === null || item === void 0 ? void 0 : item.content) ? item === null || item === void 0 ? void 0 : item.content : '', renderList(item === null || item === void 0 ? void 0 : item.content)]
146
+ })]
147
+ }, item[rowKey]);
141
148
  });
142
149
  }
143
150
  return null;
@@ -147,48 +154,60 @@ var Drawer = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
147
154
  _errorInfoProps$tabsR = errorInfoProps.tabsRowKey,
148
155
  tabsRowKey = _errorInfoProps$tabsR === void 0 ? 'key' : _errorInfoProps$tabsR;
149
156
  if (Array.isArray(tabsCont) && tabsCont.length > 0) {
150
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
151
- className: "lx-drawer-err-list"
152
- }, tabsCont.map(function (item) {
153
- return tabsRowRender instanceof Function ? tabsRowRender(item) : /*#__PURE__*/_react.default.createElement("div", {
154
- key: item[tabsRowKey],
155
- className: (0, _classnames.default)('lx-drawer-err-item', item === null || item === void 0 ? void 0 : item.status)
156
- }, /*#__PURE__*/_react.default.createElement("div", {
157
- className: "lx-drawer-err-item-head"
158
- }, /*#__PURE__*/_react.default.createElement("div", {
159
- className: "lx-drawer-err-item-head-cell"
160
- }, /*#__PURE__*/_react.default.createElement("span", {
161
- className: "lx-drawer-err-item-head-title"
162
- }, item === null || item === void 0 ? void 0 : item.title, ' '), item === null || item === void 0 ? void 0 : item.code), /*#__PURE__*/_react.default.createElement("div", {
163
- className: "lx-drawer-err-item-head-extra"
164
- }, ' ', isDomEle(item === null || item === void 0 ? void 0 : item.extra) ? item === null || item === void 0 ? void 0 : item.extra : null, item.subContent && /*#__PURE__*/_react.default.createElement("a", {
165
- onClick: function onClick() {
166
- return setErrorCollapseMap(function (pre) {
167
- return _objectSpread(_objectSpread({}, pre), {}, _defineProperty({}, item[tabsRowKey], !errorCollapseMap[item[tabsRowKey]]));
168
- });
169
- }
170
- }, errorCollapseMap[item[tabsRowKey]] ? getLocale('packUp', '收起') : getLocale('open', '展开'), /*#__PURE__*/_react.default.createElement("img", {
171
- src: (0, _img.getSvgImageBase64)(_SVGstring.ArrowIcon),
172
- alt: "",
173
- className: (0, _classnames.default)('lx-drawer-err-item-head-extra-arrow', {
174
- 'lx-icon-up': errorCollapseMap[item[tabsRowKey]]
157
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
158
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
159
+ className: "lx-drawer-err-list",
160
+ children: tabsCont.map(function (item) {
161
+ return tabsRowRender instanceof Function ? tabsRowRender(item) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
162
+ className: (0, _classnames.default)('lx-drawer-err-item', item === null || item === void 0 ? void 0 : item.status),
163
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
164
+ className: "lx-drawer-err-item-head",
165
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
166
+ className: "lx-drawer-err-item-head-cell",
167
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
168
+ className: "lx-drawer-err-item-head-title",
169
+ children: [item === null || item === void 0 ? void 0 : item.title, ' ']
170
+ }), item === null || item === void 0 ? void 0 : item.code]
171
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
172
+ className: "lx-drawer-err-item-head-extra",
173
+ children: [' ', isDomEle(item === null || item === void 0 ? void 0 : item.extra) ? item === null || item === void 0 ? void 0 : item.extra : null, item.subContent && /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", {
174
+ onClick: function onClick() {
175
+ return setErrorCollapseMap(function (pre) {
176
+ return _objectSpread(_objectSpread({}, pre), {}, _defineProperty({}, item[tabsRowKey], !errorCollapseMap[item[tabsRowKey]]));
177
+ });
178
+ },
179
+ children: [errorCollapseMap[item[tabsRowKey]] ? getLocale('packUp', '收起') : getLocale('open', '展开'), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
180
+ src: (0, _img.getSvgImageBase64)(_SVGstring.ArrowIcon),
181
+ alt: "",
182
+ className: (0, _classnames.default)('lx-drawer-err-item-head-extra-arrow', {
183
+ 'lx-icon-up': errorCollapseMap[item[tabsRowKey]]
184
+ })
185
+ })]
186
+ })]
187
+ })]
188
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
189
+ className: "lx-drawer-err-item-body",
190
+ children: [item === null || item === void 0 ? void 0 : item.content, errorCollapseMap[item[tabsRowKey]] && item.subContent && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
191
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
192
+ className: "lx-drawer-err-item-body-subcontent lx-drawer-article"
193
+ // eslint-disable-next-line react/no-danger
194
+ ,
195
+ dangerouslySetInnerHTML: {
196
+ __html: item === null || item === void 0 ? void 0 : item.subContent
197
+ }
198
+ }), item.url && /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
199
+ className: "lx-drawer-err-item-body-jump",
200
+ href: item.url,
201
+ target: "_blank",
202
+ rel: "noreferrer",
203
+ children: getLocale('documentLink', '文档链接')
204
+ })]
205
+ })]
206
+ })]
207
+ }, item[tabsRowKey]);
175
208
  })
176
- })))), /*#__PURE__*/_react.default.createElement("div", {
177
- className: "lx-drawer-err-item-body"
178
- }, item === null || item === void 0 ? void 0 : item.content, errorCollapseMap[item[tabsRowKey]] && item.subContent && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
179
- className: "lx-drawer-err-item-body-subcontent lx-drawer-article"
180
- // eslint-disable-next-line react/no-danger
181
- ,
182
- dangerouslySetInnerHTML: {
183
- __html: item === null || item === void 0 ? void 0 : item.subContent
184
- }
185
- }), item.url && /*#__PURE__*/_react.default.createElement("a", {
186
- className: "lx-drawer-err-item-body-jump",
187
- href: item.url,
188
- target: "_blank",
189
- rel: "noreferrer"
190
- }, getLocale('documentLink', '文档链接')))));
191
- })));
209
+ })
210
+ });
192
211
  }
193
212
  return isDomEle(tabsCont) ? tabsCont : null;
194
213
  };
@@ -202,83 +221,99 @@ var Drawer = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
202
221
  tabsContent = errorInfoProps.tabsContent,
203
222
  tabsFooter = errorInfoProps.tabsFooter,
204
223
  onTabsChange = errorInfoProps.onTabsChange;
205
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isDomEle(subTitle) ? /*#__PURE__*/_react.default.createElement("div", {
206
- className: "lx-drawer-sub-title",
207
- title: subTitle
208
- }, subTitle) : null, isDomEle(content) ? /*#__PURE__*/_react.default.createElement("div", {
209
- className: "lx-drawer-code-desc"
210
- }, content) : null, /*#__PURE__*/_react.default.createElement("div", {
211
- className: (0, _classnames.default)('lx-drawer-code-tabs', {
212
- full: isFull
213
- })
214
- }, Array.isArray(tabs) && tabs.length > 0 ? /*#__PURE__*/_react.default.createElement("div", {
215
- className: "lx-drawer-code-tabs-head"
216
- }, isDomEle(content) ? /*#__PURE__*/_react.default.createElement("div", {
217
- className: "lx-drawer-code-tabs-control",
218
- onClick: function onClick() {
219
- setIsFull(!isFull);
220
- }
221
- }, /*#__PURE__*/_react.default.createElement("img", {
222
- src: (0, _img.getSvgImageBase64)(_SVGstring.ArrowIcon),
223
- alt: "",
224
- className: (0, _classnames.default)('lx-drawer-code-tabs-control-icon', isFull ? '' : 'flip')
225
- })) : null, tabs.map(function (item) {
226
- return /*#__PURE__*/_react.default.createElement("div", {
227
- className: (0, _classnames.default)({
228
- active: tabsActiveKey === item.key
229
- }, 'lx-drawer-code-tabs-head-item'),
230
- key: item.key,
231
- onClick: function onClick(ev) {
232
- onTabsChange(_objectSpread(_objectSpread({}, item), {}, {
233
- update: props === null || props === void 0 ? void 0 : props.onUpdate
234
- }), ev);
235
- }
236
- }, item.tab);
237
- })) : null, /*#__PURE__*/_react.default.createElement("div", {
238
- className: "lx-drawer-code-tabs-body"
239
- }, renderTabsList(tabsContent), isDomEle(tabsFooter) ? tabsFooter : null)));
224
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
225
+ children: [isDomEle(subTitle) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
226
+ className: "lx-drawer-sub-title",
227
+ title: subTitle,
228
+ children: subTitle
229
+ }) : null, isDomEle(content) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
230
+ className: "lx-drawer-code-desc",
231
+ children: content
232
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
233
+ className: (0, _classnames.default)('lx-drawer-code-tabs', {
234
+ full: isFull
235
+ }),
236
+ children: [Array.isArray(tabs) && tabs.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
237
+ className: "lx-drawer-code-tabs-head",
238
+ children: [isDomEle(content) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
239
+ className: "lx-drawer-code-tabs-control",
240
+ onClick: function onClick() {
241
+ setIsFull(!isFull);
242
+ },
243
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
244
+ src: (0, _img.getSvgImageBase64)(_SVGstring.ArrowIcon),
245
+ alt: "",
246
+ className: (0, _classnames.default)('lx-drawer-code-tabs-control-icon', isFull ? '' : 'flip')
247
+ })
248
+ }) : null, tabs.map(function (item) {
249
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
250
+ className: (0, _classnames.default)({
251
+ active: tabsActiveKey === item.key
252
+ }, 'lx-drawer-code-tabs-head-item'),
253
+ onClick: function onClick(ev) {
254
+ onTabsChange(_objectSpread(_objectSpread({}, item), {}, {
255
+ update: props === null || props === void 0 ? void 0 : props.onUpdate
256
+ }), ev);
257
+ },
258
+ children: item.tab
259
+ }, item.key);
260
+ })]
261
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
262
+ className: "lx-drawer-code-tabs-body",
263
+ children: [renderTabsList(tabsContent), isDomEle(tabsFooter) ? tabsFooter : null]
264
+ })]
265
+ })]
266
+ });
240
267
  }
241
268
  if (mode === 'groupList') {
242
- return /*#__PURE__*/_react.default.createElement("div", null, renderGroups());
269
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
270
+ children: renderGroups()
271
+ });
243
272
  }
244
273
  return isDomEle(content) ? content : null;
245
274
  };
246
- return /*#__PURE__*/_react.default.createElement("div", {
275
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
247
276
  className: (0, _classnames.default)('lx-drawer', {
248
277
  opening: visible,
249
278
  closeing: !visible
250
279
  }),
251
- ref: ref
252
- }, mask ? /*#__PURE__*/_react.default.createElement("div", {
253
- className: "lx-drawer-mask",
254
- onClick: onClose
255
- }) : null, /*#__PURE__*/_react.default.createElement("div", {
256
- className: (0, _classnames.default)('lx-drawer-container', status),
257
- style: {
258
- width: "".concat(width, "px"),
259
- transform: "translateX(-".concat(offset, "px)")
260
- }
261
- }, /*#__PURE__*/_react.default.createElement("div", {
262
- className: "lx-drawer-head"
263
- }, /*#__PURE__*/_react.default.createElement("div", {
264
- className: "lx-drawer-head-title"
265
- }, isDomEle(title) ? title : null), /*#__PURE__*/_react.default.createElement("div", {
266
- className: "lx-drawer-head-extra",
267
- onClick: onClose
268
- }, /*#__PURE__*/_react.default.createElement("img", {
269
- src: (0, _img.getSvgImageBase64)(status === 'default' ? _SVGstring.CloseIcon : _SVGstring.CloseWhiteIcon),
270
- alt: "",
271
- className: "lx-drawer-head-close"
272
- }))), /*#__PURE__*/_react.default.createElement("div", {
273
- className: "lx-drawer-body"
274
- }, renderContent()), isDomEle(footer) ? /*#__PURE__*/_react.default.createElement("div", {
275
- className: "lx-drawer-footer"
276
- }, footer) : null));
280
+ ref: ref,
281
+ children: [mask ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
282
+ className: "lx-drawer-mask",
283
+ onClick: onClose
284
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
285
+ className: (0, _classnames.default)('lx-drawer-container', status),
286
+ style: {
287
+ width: "".concat(width, "px"),
288
+ transform: "translateX(-".concat(offset, "px)")
289
+ },
290
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
291
+ className: "lx-drawer-head",
292
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
293
+ className: "lx-drawer-head-title",
294
+ children: isDomEle(title) ? title : null
295
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
296
+ className: "lx-drawer-head-extra",
297
+ onClick: onClose,
298
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
299
+ src: (0, _img.getSvgImageBase64)(status === 'default' ? _SVGstring.CloseIcon : _SVGstring.CloseWhiteIcon),
300
+ alt: "",
301
+ className: "lx-drawer-head-close"
302
+ })
303
+ })]
304
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
305
+ className: "lx-drawer-body",
306
+ children: renderContent()
307
+ }), isDomEle(footer) ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
308
+ className: "lx-drawer-footer",
309
+ children: footer
310
+ }) : null]
311
+ })]
312
+ });
277
313
  });
278
314
  Drawer.defaultProps = {
279
315
  getLocale: function getLocale(t, p) {
280
316
  return p !== null && p !== void 0 ? p : '';
281
317
  }
282
318
  };
283
- var _default = Drawer;
284
- exports.default = _default;
319
+ var _default = exports.default = Drawer;