@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,9 +1,9 @@
1
- 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); }
2
- 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; }
3
- 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; }
1
+ 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); }
2
+ 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; }
3
+ 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; }
4
4
  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; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- 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); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
7
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
8
  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."); }
9
9
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -11,14 +11,17 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
12
  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."); }
13
13
  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); }
14
- 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; }
15
- 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; } }
14
+ 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; }
15
+ 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; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  import React, { forwardRef, isValidElement, useEffect, useState } from 'react';
18
18
  import classnames from 'classnames';
19
- import { CloseIcon, CloseWhiteIcon, ArrowIcon } from '../../SVGstring';
20
- import { getSvgImageBase64 } from '../../../../utils/img';
21
- import './Drawer.less';
19
+ import { CloseIcon, CloseWhiteIcon, ArrowIcon } from "../../SVGstring";
20
+ import { getSvgImageBase64 } from "../../../../utils/img";
21
+ import "./Drawer.less";
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { Fragment as _Fragment } from "react/jsx-runtime";
22
25
  var isDomEle = function isDomEle(target) {
23
26
  return typeof target === 'string' || typeof target === 'number' || /*#__PURE__*/isValidElement(target);
24
27
  };
@@ -89,46 +92,52 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
89
92
  return cont;
90
93
  };
91
94
  return items.map(function (item) {
92
- return /*#__PURE__*/React.createElement("div", {
95
+ return /*#__PURE__*/_jsxs("div", {
93
96
  className: "lx-drawer-group-article",
94
- key: item[contentRowKey]
95
- }, isDomEle(item === null || item === void 0 ? void 0 : item.title) ? /*#__PURE__*/React.createElement("div", {
96
- className: "lx-drawer-group-article-title"
97
- }, item === null || item === void 0 ? void 0 : item.title) : null, isDomEle(item === null || item === void 0 ? void 0 : item.author) ? /*#__PURE__*/React.createElement("div", {
98
- className: "lx-drawer-group-article-author"
99
- }, item === null || item === void 0 ? void 0 : item.author) : null, isDomEle(item === null || item === void 0 ? void 0 : item.content) ? /*#__PURE__*/React.createElement("div", {
100
- className: "lx-drawer-group-article-content"
101
- }, 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.createElement("a", {
102
- className: "lx-drawer-group-article-extra",
103
- onClick: function onClick() {
104
- setExtraConts(function (list) {
105
- var cloneList = _toConsumableArray(list);
106
- if (!item[contentRowKey]) {
107
- return cloneList;
108
- }
109
- if (list.includes(item[contentRowKey])) {
110
- return cloneList.filter(function (record) {
111
- return record !== item[contentRowKey];
97
+ children: [isDomEle(item === null || item === void 0 ? void 0 : item.title) ? /*#__PURE__*/_jsx("div", {
98
+ className: "lx-drawer-group-article-title",
99
+ children: item === null || item === void 0 ? void 0 : item.title
100
+ }) : null, isDomEle(item === null || item === void 0 ? void 0 : item.author) ? /*#__PURE__*/_jsx("div", {
101
+ className: "lx-drawer-group-article-author",
102
+ children: item === null || item === void 0 ? void 0 : item.author
103
+ }) : null, isDomEle(item === null || item === void 0 ? void 0 : item.content) ? /*#__PURE__*/_jsxs("div", {
104
+ className: "lx-drawer-group-article-content",
105
+ 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__*/_jsx("a", {
106
+ className: "lx-drawer-group-article-extra",
107
+ onClick: function onClick() {
108
+ setExtraConts(function (list) {
109
+ var cloneList = _toConsumableArray(list);
110
+ if (!item[contentRowKey]) {
111
+ return cloneList;
112
+ }
113
+ if (list.includes(item[contentRowKey])) {
114
+ return cloneList.filter(function (record) {
115
+ return record !== item[contentRowKey];
116
+ });
117
+ }
118
+ return [].concat(_toConsumableArray(cloneList), [item[contentRowKey]]);
112
119
  });
113
- }
114
- return [].concat(_toConsumableArray(cloneList), [item[contentRowKey]]);
115
- });
116
- }
117
- }, extraConts.includes(item[contentRowKey]) ? getLocale('packUp', '收起') : getLocale('open', '展开')) : null) : null);
120
+ },
121
+ children: extraConts.includes(item[contentRowKey]) ? getLocale('packUp', '收起') : getLocale('open', '展开')
122
+ }) : null]
123
+ }) : null]
124
+ }, item[contentRowKey]);
118
125
  });
119
126
  }
120
127
  return null;
121
128
  };
122
129
  if (Array.isArray(dataSource) && dataSource.length > 0) {
123
130
  return dataSource.map(function (item, index) {
124
- return renderRecord instanceof Function ? renderRecord(item, index) : /*#__PURE__*/React.createElement("div", {
131
+ return renderRecord instanceof Function ? renderRecord(item, index) : /*#__PURE__*/_jsxs("div", {
125
132
  className: "lx-drawer-group-item",
126
- key: item[rowKey]
127
- }, /*#__PURE__*/React.createElement("div", {
128
- className: "lx-drawer-group-item-head"
129
- }, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React.createElement("div", {
130
- className: "lx-drawer-group-item-body"
131
- }, 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)));
133
+ children: [/*#__PURE__*/_jsx("div", {
134
+ className: "lx-drawer-group-item-head",
135
+ children: item === null || item === void 0 ? void 0 : item.title
136
+ }), /*#__PURE__*/_jsxs("div", {
137
+ className: "lx-drawer-group-item-body",
138
+ 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)]
139
+ })]
140
+ }, item[rowKey]);
132
141
  });
133
142
  }
134
143
  return null;
@@ -138,48 +147,60 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
138
147
  _errorInfoProps$tabsR = errorInfoProps.tabsRowKey,
139
148
  tabsRowKey = _errorInfoProps$tabsR === void 0 ? 'key' : _errorInfoProps$tabsR;
140
149
  if (Array.isArray(tabsCont) && tabsCont.length > 0) {
141
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
142
- className: "lx-drawer-err-list"
143
- }, tabsCont.map(function (item) {
144
- return tabsRowRender instanceof Function ? tabsRowRender(item) : /*#__PURE__*/React.createElement("div", {
145
- key: item[tabsRowKey],
146
- className: classnames('lx-drawer-err-item', item === null || item === void 0 ? void 0 : item.status)
147
- }, /*#__PURE__*/React.createElement("div", {
148
- className: "lx-drawer-err-item-head"
149
- }, /*#__PURE__*/React.createElement("div", {
150
- className: "lx-drawer-err-item-head-cell"
151
- }, /*#__PURE__*/React.createElement("span", {
152
- className: "lx-drawer-err-item-head-title"
153
- }, item === null || item === void 0 ? void 0 : item.title, ' '), item === null || item === void 0 ? void 0 : item.code), /*#__PURE__*/React.createElement("div", {
154
- className: "lx-drawer-err-item-head-extra"
155
- }, ' ', isDomEle(item === null || item === void 0 ? void 0 : item.extra) ? item === null || item === void 0 ? void 0 : item.extra : null, item.subContent && /*#__PURE__*/React.createElement("a", {
156
- onClick: function onClick() {
157
- return setErrorCollapseMap(function (pre) {
158
- return _objectSpread(_objectSpread({}, pre), {}, _defineProperty({}, item[tabsRowKey], !errorCollapseMap[item[tabsRowKey]]));
159
- });
160
- }
161
- }, errorCollapseMap[item[tabsRowKey]] ? getLocale('packUp', '收起') : getLocale('open', '展开'), /*#__PURE__*/React.createElement("img", {
162
- src: getSvgImageBase64(ArrowIcon),
163
- alt: "",
164
- className: classnames('lx-drawer-err-item-head-extra-arrow', {
165
- 'lx-icon-up': errorCollapseMap[item[tabsRowKey]]
150
+ return /*#__PURE__*/_jsx(_Fragment, {
151
+ children: /*#__PURE__*/_jsx("div", {
152
+ className: "lx-drawer-err-list",
153
+ children: tabsCont.map(function (item) {
154
+ return tabsRowRender instanceof Function ? tabsRowRender(item) : /*#__PURE__*/_jsxs("div", {
155
+ className: classnames('lx-drawer-err-item', item === null || item === void 0 ? void 0 : item.status),
156
+ children: [/*#__PURE__*/_jsxs("div", {
157
+ className: "lx-drawer-err-item-head",
158
+ children: [/*#__PURE__*/_jsxs("div", {
159
+ className: "lx-drawer-err-item-head-cell",
160
+ children: [/*#__PURE__*/_jsxs("span", {
161
+ className: "lx-drawer-err-item-head-title",
162
+ children: [item === null || item === void 0 ? void 0 : item.title, ' ']
163
+ }), item === null || item === void 0 ? void 0 : item.code]
164
+ }), /*#__PURE__*/_jsxs("div", {
165
+ className: "lx-drawer-err-item-head-extra",
166
+ children: [' ', isDomEle(item === null || item === void 0 ? void 0 : item.extra) ? item === null || item === void 0 ? void 0 : item.extra : null, item.subContent && /*#__PURE__*/_jsxs("a", {
167
+ onClick: function onClick() {
168
+ return setErrorCollapseMap(function (pre) {
169
+ return _objectSpread(_objectSpread({}, pre), {}, _defineProperty({}, item[tabsRowKey], !errorCollapseMap[item[tabsRowKey]]));
170
+ });
171
+ },
172
+ children: [errorCollapseMap[item[tabsRowKey]] ? getLocale('packUp', '收起') : getLocale('open', '展开'), /*#__PURE__*/_jsx("img", {
173
+ src: getSvgImageBase64(ArrowIcon),
174
+ alt: "",
175
+ className: classnames('lx-drawer-err-item-head-extra-arrow', {
176
+ 'lx-icon-up': errorCollapseMap[item[tabsRowKey]]
177
+ })
178
+ })]
179
+ })]
180
+ })]
181
+ }), /*#__PURE__*/_jsxs("div", {
182
+ className: "lx-drawer-err-item-body",
183
+ children: [item === null || item === void 0 ? void 0 : item.content, errorCollapseMap[item[tabsRowKey]] && item.subContent && /*#__PURE__*/_jsxs(_Fragment, {
184
+ children: [/*#__PURE__*/_jsx("div", {
185
+ className: "lx-drawer-err-item-body-subcontent lx-drawer-article"
186
+ // eslint-disable-next-line react/no-danger
187
+ ,
188
+ dangerouslySetInnerHTML: {
189
+ __html: item === null || item === void 0 ? void 0 : item.subContent
190
+ }
191
+ }), item.url && /*#__PURE__*/_jsx("a", {
192
+ className: "lx-drawer-err-item-body-jump",
193
+ href: item.url,
194
+ target: "_blank",
195
+ rel: "noreferrer",
196
+ children: getLocale('documentLink', '文档链接')
197
+ })]
198
+ })]
199
+ })]
200
+ }, item[tabsRowKey]);
166
201
  })
167
- })))), /*#__PURE__*/React.createElement("div", {
168
- className: "lx-drawer-err-item-body"
169
- }, item === null || item === void 0 ? void 0 : item.content, errorCollapseMap[item[tabsRowKey]] && item.subContent && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
170
- className: "lx-drawer-err-item-body-subcontent lx-drawer-article"
171
- // eslint-disable-next-line react/no-danger
172
- ,
173
- dangerouslySetInnerHTML: {
174
- __html: item === null || item === void 0 ? void 0 : item.subContent
175
- }
176
- }), item.url && /*#__PURE__*/React.createElement("a", {
177
- className: "lx-drawer-err-item-body-jump",
178
- href: item.url,
179
- target: "_blank",
180
- rel: "noreferrer"
181
- }, getLocale('documentLink', '文档链接')))));
182
- })));
202
+ })
203
+ });
183
204
  }
184
205
  return isDomEle(tabsCont) ? tabsCont : null;
185
206
  };
@@ -193,78 +214,95 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
193
214
  tabsContent = errorInfoProps.tabsContent,
194
215
  tabsFooter = errorInfoProps.tabsFooter,
195
216
  onTabsChange = errorInfoProps.onTabsChange;
196
- return /*#__PURE__*/React.createElement(React.Fragment, null, isDomEle(subTitle) ? /*#__PURE__*/React.createElement("div", {
197
- className: "lx-drawer-sub-title",
198
- title: subTitle
199
- }, subTitle) : null, isDomEle(content) ? /*#__PURE__*/React.createElement("div", {
200
- className: "lx-drawer-code-desc"
201
- }, content) : null, /*#__PURE__*/React.createElement("div", {
202
- className: classnames('lx-drawer-code-tabs', {
203
- full: isFull
204
- })
205
- }, Array.isArray(tabs) && tabs.length > 0 ? /*#__PURE__*/React.createElement("div", {
206
- className: "lx-drawer-code-tabs-head"
207
- }, isDomEle(content) ? /*#__PURE__*/React.createElement("div", {
208
- className: "lx-drawer-code-tabs-control",
209
- onClick: function onClick() {
210
- setIsFull(!isFull);
211
- }
212
- }, /*#__PURE__*/React.createElement("img", {
213
- src: getSvgImageBase64(ArrowIcon),
214
- alt: "",
215
- className: classnames('lx-drawer-code-tabs-control-icon', isFull ? '' : 'flip')
216
- })) : null, tabs.map(function (item) {
217
- return /*#__PURE__*/React.createElement("div", {
218
- className: classnames({
219
- active: tabsActiveKey === item.key
220
- }, 'lx-drawer-code-tabs-head-item'),
221
- key: item.key,
222
- onClick: function onClick(ev) {
223
- onTabsChange(_objectSpread(_objectSpread({}, item), {}, {
224
- update: props === null || props === void 0 ? void 0 : props.onUpdate
225
- }), ev);
226
- }
227
- }, item.tab);
228
- })) : null, /*#__PURE__*/React.createElement("div", {
229
- className: "lx-drawer-code-tabs-body"
230
- }, renderTabsList(tabsContent), isDomEle(tabsFooter) ? tabsFooter : null)));
217
+ return /*#__PURE__*/_jsxs(_Fragment, {
218
+ children: [isDomEle(subTitle) ? /*#__PURE__*/_jsx("div", {
219
+ className: "lx-drawer-sub-title",
220
+ title: subTitle,
221
+ children: subTitle
222
+ }) : null, isDomEle(content) ? /*#__PURE__*/_jsx("div", {
223
+ className: "lx-drawer-code-desc",
224
+ children: content
225
+ }) : null, /*#__PURE__*/_jsxs("div", {
226
+ className: classnames('lx-drawer-code-tabs', {
227
+ full: isFull
228
+ }),
229
+ children: [Array.isArray(tabs) && tabs.length > 0 ? /*#__PURE__*/_jsxs("div", {
230
+ className: "lx-drawer-code-tabs-head",
231
+ children: [isDomEle(content) ? /*#__PURE__*/_jsx("div", {
232
+ className: "lx-drawer-code-tabs-control",
233
+ onClick: function onClick() {
234
+ setIsFull(!isFull);
235
+ },
236
+ children: /*#__PURE__*/_jsx("img", {
237
+ src: getSvgImageBase64(ArrowIcon),
238
+ alt: "",
239
+ className: classnames('lx-drawer-code-tabs-control-icon', isFull ? '' : 'flip')
240
+ })
241
+ }) : null, tabs.map(function (item) {
242
+ return /*#__PURE__*/_jsx("div", {
243
+ className: classnames({
244
+ active: tabsActiveKey === item.key
245
+ }, 'lx-drawer-code-tabs-head-item'),
246
+ onClick: function onClick(ev) {
247
+ onTabsChange(_objectSpread(_objectSpread({}, item), {}, {
248
+ update: props === null || props === void 0 ? void 0 : props.onUpdate
249
+ }), ev);
250
+ },
251
+ children: item.tab
252
+ }, item.key);
253
+ })]
254
+ }) : null, /*#__PURE__*/_jsxs("div", {
255
+ className: "lx-drawer-code-tabs-body",
256
+ children: [renderTabsList(tabsContent), isDomEle(tabsFooter) ? tabsFooter : null]
257
+ })]
258
+ })]
259
+ });
231
260
  }
232
261
  if (mode === 'groupList') {
233
- return /*#__PURE__*/React.createElement("div", null, renderGroups());
262
+ return /*#__PURE__*/_jsx("div", {
263
+ children: renderGroups()
264
+ });
234
265
  }
235
266
  return isDomEle(content) ? content : null;
236
267
  };
237
- return /*#__PURE__*/React.createElement("div", {
268
+ return /*#__PURE__*/_jsxs("div", {
238
269
  className: classnames('lx-drawer', {
239
270
  opening: visible,
240
271
  closeing: !visible
241
272
  }),
242
- ref: ref
243
- }, mask ? /*#__PURE__*/React.createElement("div", {
244
- className: "lx-drawer-mask",
245
- onClick: onClose
246
- }) : null, /*#__PURE__*/React.createElement("div", {
247
- className: classnames('lx-drawer-container', status),
248
- style: {
249
- width: "".concat(width, "px"),
250
- transform: "translateX(-".concat(offset, "px)")
251
- }
252
- }, /*#__PURE__*/React.createElement("div", {
253
- className: "lx-drawer-head"
254
- }, /*#__PURE__*/React.createElement("div", {
255
- className: "lx-drawer-head-title"
256
- }, isDomEle(title) ? title : null), /*#__PURE__*/React.createElement("div", {
257
- className: "lx-drawer-head-extra",
258
- onClick: onClose
259
- }, /*#__PURE__*/React.createElement("img", {
260
- src: getSvgImageBase64(status === 'default' ? CloseIcon : CloseWhiteIcon),
261
- alt: "",
262
- className: "lx-drawer-head-close"
263
- }))), /*#__PURE__*/React.createElement("div", {
264
- className: "lx-drawer-body"
265
- }, renderContent()), isDomEle(footer) ? /*#__PURE__*/React.createElement("div", {
266
- className: "lx-drawer-footer"
267
- }, footer) : null));
273
+ ref: ref,
274
+ children: [mask ? /*#__PURE__*/_jsx("div", {
275
+ className: "lx-drawer-mask",
276
+ onClick: onClose
277
+ }) : null, /*#__PURE__*/_jsxs("div", {
278
+ className: classnames('lx-drawer-container', status),
279
+ style: {
280
+ width: "".concat(width, "px"),
281
+ transform: "translateX(-".concat(offset, "px)")
282
+ },
283
+ children: [/*#__PURE__*/_jsxs("div", {
284
+ className: "lx-drawer-head",
285
+ children: [/*#__PURE__*/_jsx("div", {
286
+ className: "lx-drawer-head-title",
287
+ children: isDomEle(title) ? title : null
288
+ }), /*#__PURE__*/_jsx("div", {
289
+ className: "lx-drawer-head-extra",
290
+ onClick: onClose,
291
+ children: /*#__PURE__*/_jsx("img", {
292
+ src: getSvgImageBase64(status === 'default' ? CloseIcon : CloseWhiteIcon),
293
+ alt: "",
294
+ className: "lx-drawer-head-close"
295
+ })
296
+ })]
297
+ }), /*#__PURE__*/_jsx("div", {
298
+ className: "lx-drawer-body",
299
+ children: renderContent()
300
+ }), isDomEle(footer) ? /*#__PURE__*/_jsx("div", {
301
+ className: "lx-drawer-footer",
302
+ children: footer
303
+ }) : null]
304
+ })]
305
+ });
268
306
  });
269
307
  Drawer.defaultProps = {
270
308
  getLocale: function getLocale(t, p) {
@@ -1,15 +1,14 @@
1
- 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); }
1
+ 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); }
2
2
  var _excluded = ["key", "mask"],
3
3
  _excluded2 = ["getContainer", "mask", "cacheKey"];
4
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
4
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
7
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
8
- 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; }
9
- 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; }
6
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
7
+ 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; }
8
+ 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; }
10
9
  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; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
- 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); }
10
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
11
+ 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); }
13
12
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
14
13
  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."); }
15
14
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
@@ -19,13 +18,14 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
19
18
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
19
  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."); }
21
20
  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); }
22
- 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; }
23
- 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; } }
21
+ 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; }
22
+ 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; } }
24
23
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
24
  import React, { forwardRef, useState, useEffect, useImperativeHandle } from 'react';
26
25
  import { render } from 'react-dom';
27
- import { getChildren } from '../../compUtils';
28
- import Drawer from './Drawer';
26
+ import { getChildren } from "../../compUtils";
27
+ import Drawer from "./Drawer";
28
+ import { jsx as _jsx } from "react/jsx-runtime";
29
29
  var DrawerConnect = /*#__PURE__*/forwardRef(function (props, ref) {
30
30
  var cacheKey = props.cacheKey,
31
31
  _props$maxCount = props.maxCount,
@@ -43,40 +43,38 @@ var DrawerConnect = /*#__PURE__*/forwardRef(function (props, ref) {
43
43
  var onDrawerUpdate = /*#__PURE__*/function () {
44
44
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config) {
45
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
46
- while (1) {
47
- switch (_context.prev = _context.next) {
48
- case 0:
49
- if (!(config === null || config === void 0 ? void 0 : config.key)) {
50
- _context.next = 4;
51
- break;
52
- }
53
- _context.next = 3;
54
- return setConfigList(function (list) {
55
- var clone = _toConsumableArray(list);
56
- var index = clone.findIndex(function (item) {
57
- return item.key === (config === null || config === void 0 ? void 0 : config.key);
58
- });
59
- if (index > -1) {
60
- var _clone$index, _clone$index2;
61
- clone[index] = _objectSpread(_objectSpread(_objectSpread({}, clone[index]), config), {}, {
62
- groupListProps: _objectSpread(_objectSpread({}, ((_clone$index = clone[index]) === null || _clone$index === void 0 ? void 0 : _clone$index.groupListProps) || {}), (config === null || config === void 0 ? void 0 : config.groupListProps) || {}),
63
- errorInfoProps: _objectSpread(_objectSpread({}, ((_clone$index2 = clone[index]) === null || _clone$index2 === void 0 ? void 0 : _clone$index2.errorInfoProps) || {}), (config === null || config === void 0 ? void 0 : config.errorInfoProps) || {})
64
- });
65
- }
66
- return clone;
46
+ while (1) switch (_context.prev = _context.next) {
47
+ case 0:
48
+ if (!(config !== null && config !== void 0 && config.key)) {
49
+ _context.next = 4;
50
+ break;
51
+ }
52
+ _context.next = 3;
53
+ return setConfigList(function (list) {
54
+ var clone = _toConsumableArray(list);
55
+ var index = clone.findIndex(function (item) {
56
+ return item.key === (config === null || config === void 0 ? void 0 : config.key);
67
57
  });
68
- case 3:
69
- return _context.abrupt("return", true);
70
- case 4:
71
- return _context.abrupt("return", false);
72
- case 5:
73
- case "end":
74
- return _context.stop();
75
- }
58
+ if (index > -1) {
59
+ var _clone$index, _clone$index2;
60
+ clone[index] = _objectSpread(_objectSpread(_objectSpread({}, clone[index]), config), {}, {
61
+ groupListProps: _objectSpread(_objectSpread({}, ((_clone$index = clone[index]) === null || _clone$index === void 0 ? void 0 : _clone$index.groupListProps) || {}), (config === null || config === void 0 ? void 0 : config.groupListProps) || {}),
62
+ errorInfoProps: _objectSpread(_objectSpread({}, ((_clone$index2 = clone[index]) === null || _clone$index2 === void 0 ? void 0 : _clone$index2.errorInfoProps) || {}), (config === null || config === void 0 ? void 0 : config.errorInfoProps) || {})
63
+ });
64
+ }
65
+ return clone;
66
+ });
67
+ case 3:
68
+ return _context.abrupt("return", true);
69
+ case 4:
70
+ return _context.abrupt("return", false);
71
+ case 5:
72
+ case "end":
73
+ return _context.stop();
76
74
  }
77
75
  }, _callee);
78
76
  }));
79
- return function onDrawerUpdate(_x2) {
77
+ return function onDrawerUpdate(_x) {
80
78
  return _ref.apply(this, arguments);
81
79
  };
82
80
  }();
@@ -118,7 +116,7 @@ var DrawerConnect = /*#__PURE__*/forwardRef(function (props, ref) {
118
116
  },
119
117
  onClose: function onClose() {
120
118
  var _config$onClose;
121
- config === null || config === void 0 ? void 0 : (_config$onClose = config.onClose) === null || _config$onClose === void 0 ? void 0 : _config$onClose.call(config);
119
+ config === null || config === void 0 || (_config$onClose = config.onClose) === null || _config$onClose === void 0 || _config$onClose.call(config);
122
120
  onDrawerClose(cacheKey);
123
121
  }
124
122
  };
@@ -154,10 +152,9 @@ var DrawerConnect = /*#__PURE__*/forwardRef(function (props, ref) {
154
152
  var key = attr.key,
155
153
  mask = attr.mask,
156
154
  otherArr = _objectWithoutProperties(attr, _excluded);
157
- return /*#__PURE__*/React.createElement(Drawer, _extends({
158
- key: key,
155
+ return /*#__PURE__*/_jsx(Drawer, _objectSpread({
159
156
  offset: idx < configList.length - 1 && attr.visible ? (configList.length - 1 - idx) * 60 : 0
160
- }, otherArr));
157
+ }, otherArr), key);
161
158
  });
162
159
  }
163
160
  return '';
@@ -195,7 +192,7 @@ DrawerConnect.insert = function () {
195
192
  update: drawer.onUpdate
196
193
  });
197
194
  };
198
- render( /*#__PURE__*/React.createElement(DrawerConnect, _extends({}, props, {
195
+ render( /*#__PURE__*/_jsx(DrawerConnect, _objectSpread(_objectSpread({}, props), {}, {
199
196
  ref: ref,
200
197
  cacheKey: cacheKey
201
198
  })), div);