@vortex-ui/env-puzzle 2.0.0-beta.9 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +46 -46
  2. package/lib/b-map/b-map.d.ts +1 -1
  3. package/lib/b-map/b-map.js +100 -162
  4. package/lib/b-map/b-map.js.map +1 -1
  5. package/lib/b-map/custom-overlay.js +17 -37
  6. package/lib/b-map/custom-overlay.js.map +1 -1
  7. package/lib/b-map/drawing.js +11 -25
  8. package/lib/b-map/drawing.js.map +1 -1
  9. package/lib/b-map/index.d.ts +2 -2
  10. package/lib/b-map/index.js +4 -16
  11. package/lib/b-map/index.js.map +1 -1
  12. package/lib/b-map/js/marker-clusterer.js +223 -339
  13. package/lib/b-map/js/marker-clusterer.js.map +1 -1
  14. package/lib/b-map/lushu.js +17 -36
  15. package/lib/b-map/lushu.js.map +1 -1
  16. package/lib/b-map/marker-clusterer.js +6 -14
  17. package/lib/b-map/marker-clusterer.js.map +1 -1
  18. package/lib/b-map/marker.js +32 -70
  19. package/lib/b-map/marker.js.map +1 -1
  20. package/lib/b-map/polygon.js +5 -13
  21. package/lib/b-map/polygon.js.map +1 -1
  22. package/lib/b-map/style/css.js.map +1 -1
  23. package/lib/b-map/style/index.js.map +1 -1
  24. package/lib/b-map/style/index.less +10 -10
  25. package/lib/create-modal/create-modal.d.ts +3 -2
  26. package/lib/create-modal/create-modal.js +163 -307
  27. package/lib/create-modal/create-modal.js.map +1 -1
  28. package/lib/create-modal/index.d.ts +1 -2
  29. package/lib/create-modal/index.js +2 -8
  30. package/lib/create-modal/index.js.map +1 -1
  31. package/lib/create-modal/style/css.js +0 -18
  32. package/lib/create-modal/style/css.js.map +1 -1
  33. package/lib/create-modal/style/index.css +2 -2
  34. package/lib/create-modal/style/index.d.ts +0 -9
  35. package/lib/create-modal/style/index.js +0 -18
  36. package/lib/create-modal/style/index.js.map +1 -1
  37. package/lib/create-modal/style/index.less +116 -119
  38. package/lib/global.less +5 -6
  39. package/lib/import-modal/import-modal.d.ts +3 -1
  40. package/lib/import-modal/import-modal.js +140 -204
  41. package/lib/import-modal/import-modal.js.map +1 -1
  42. package/lib/import-modal/index.js +2 -6
  43. package/lib/import-modal/index.js.map +1 -1
  44. package/lib/import-modal/style/css.js +0 -10
  45. package/lib/import-modal/style/css.js.map +1 -1
  46. package/lib/import-modal/style/index.d.ts +0 -5
  47. package/lib/import-modal/style/index.js +0 -10
  48. package/lib/import-modal/style/index.js.map +1 -1
  49. package/lib/import-modal/style/index.less +14 -15
  50. package/lib/index.js +1 -14
  51. package/lib/index.js.map +1 -1
  52. package/lib/interface/index.js.map +1 -1
  53. package/lib/mapv-Layer/Function.js +0 -2
  54. package/lib/mapv-Layer/Function.js.map +1 -1
  55. package/lib/mapv-Layer/index.js +2 -6
  56. package/lib/mapv-Layer/index.js.map +1 -1
  57. package/lib/mapv-Layer/mapv-Layer.js +19 -40
  58. package/lib/mapv-Layer/mapv-Layer.js.map +1 -1
  59. package/lib/mapv-Layer/style/css.js.map +1 -1
  60. package/lib/mapv-Layer/style/index.js.map +1 -1
  61. package/lib/percent/index.d.ts +1 -1
  62. package/lib/percent/index.js +2 -7
  63. package/lib/percent/index.js.map +1 -1
  64. package/lib/percent/interface.js.map +1 -1
  65. package/lib/percent/line-percent.js +20 -37
  66. package/lib/percent/line-percent.js.map +1 -1
  67. package/lib/percent/percent.js +20 -43
  68. package/lib/percent/percent.js.map +1 -1
  69. package/lib/percent/style/css.js.map +1 -1
  70. package/lib/percent/style/index.js.map +1 -1
  71. package/lib/percent/style/index.less +41 -41
  72. package/lib/scroll/index.js +2 -6
  73. package/lib/scroll/index.js.map +1 -1
  74. package/lib/scroll/scroll.d.ts +1 -1
  75. package/lib/scroll/scroll.js +19 -47
  76. package/lib/scroll/scroll.js.map +1 -1
  77. package/lib/scroll/style/css.js.map +1 -1
  78. package/lib/scroll/style/index.js.map +1 -1
  79. package/lib/scroll/style/index.less +3 -3
  80. package/lib/scroll-select/index.js +2 -6
  81. package/lib/scroll-select/index.js.map +1 -1
  82. package/lib/scroll-select/scrollSelect.d.ts +2 -1
  83. package/lib/scroll-select/scrollSelect.js +144 -218
  84. package/lib/scroll-select/scrollSelect.js.map +1 -1
  85. package/lib/scroll-select/style/css.js +0 -2
  86. package/lib/scroll-select/style/css.js.map +1 -1
  87. package/lib/scroll-select/style/index.d.ts +0 -1
  88. package/lib/scroll-select/style/index.js +0 -2
  89. package/lib/scroll-select/style/index.js.map +1 -1
  90. package/lib/scroll-select/style/index.less +7 -7
  91. package/lib/style/color.less +1 -1
  92. package/lib/table/index.js +2 -6
  93. package/lib/table/index.js.map +1 -1
  94. package/lib/table/style/css.js +0 -2
  95. package/lib/table/style/css.js.map +1 -1
  96. package/lib/table/style/index.d.ts +0 -1
  97. package/lib/table/style/index.js +0 -2
  98. package/lib/table/style/index.js.map +1 -1
  99. package/lib/table/table.d.ts +1 -1
  100. package/lib/table/table.js +24 -56
  101. package/lib/table/table.js.map +1 -1
  102. package/lib/template/action.d.ts +3 -1
  103. package/lib/template/action.js +93 -132
  104. package/lib/template/action.js.map +1 -1
  105. package/lib/template/card-table.d.ts +7 -6
  106. package/lib/template/card-table.js +40 -82
  107. package/lib/template/card-table.js.map +1 -1
  108. package/lib/template/card.d.ts +1 -1
  109. package/lib/template/card.js +20 -38
  110. package/lib/template/card.js.map +1 -1
  111. package/lib/template/check-row.d.ts +2 -1
  112. package/lib/template/check-row.js +7 -12
  113. package/lib/template/check-row.js.map +1 -1
  114. package/lib/template/field.js +8 -24
  115. package/lib/template/field.js.map +1 -1
  116. package/lib/template/filter.d.ts +1 -2
  117. package/lib/template/filter.js +25 -63
  118. package/lib/template/filter.js.map +1 -1
  119. package/lib/template/icon.js +4 -15
  120. package/lib/template/icon.js.map +1 -1
  121. package/lib/template/index.d.ts +2 -3
  122. package/lib/template/index.js +4 -12
  123. package/lib/template/index.js.map +1 -1
  124. package/lib/template/interface.js.map +1 -1
  125. package/lib/template/renderColumnButtons.js +80 -104
  126. package/lib/template/renderColumnButtons.js.map +1 -1
  127. package/lib/template/style/action.css +3 -2
  128. package/lib/template/style/action.less +74 -71
  129. package/lib/template/style/card.css +2 -2
  130. package/lib/template/style/card.less +87 -88
  131. package/lib/template/style/check-row.less +27 -27
  132. package/lib/template/style/css.js +0 -36
  133. package/lib/template/style/css.js.map +1 -1
  134. package/lib/template/style/field.less +11 -11
  135. package/lib/template/style/filter.css +0 -29
  136. package/lib/template/style/filter.less +46 -72
  137. package/lib/template/style/icon.less +7 -7
  138. package/lib/template/style/index.css +8 -42
  139. package/lib/template/style/index.d.ts +0 -18
  140. package/lib/template/style/index.js +0 -36
  141. package/lib/template/style/index.js.map +1 -1
  142. package/lib/template/style/index.less +48 -49
  143. package/lib/template/style/table.css +0 -6
  144. package/lib/template/style/table.less +79 -91
  145. package/lib/template/table.d.ts +7 -5
  146. package/lib/template/table.js +23 -45
  147. package/lib/template/table.js.map +1 -1
  148. package/lib/template/template.d.ts +4 -4
  149. package/lib/template/template.js +134 -258
  150. package/lib/template/template.js.map +1 -1
  151. package/lib/template/toolbar.d.ts +1 -1
  152. package/lib/template/toolbar.js +57 -63
  153. package/lib/template/toolbar.js.map +1 -1
  154. package/lib/to-map/container.js +58 -112
  155. package/lib/to-map/container.js.map +1 -1
  156. package/lib/to-map/draw-area.js +14 -34
  157. package/lib/to-map/draw-area.js.map +1 -1
  158. package/lib/to-map/index.d.ts +1 -1
  159. package/lib/to-map/index.js +2 -7
  160. package/lib/to-map/index.js.map +1 -1
  161. package/lib/to-map/style/css.js +0 -2
  162. package/lib/to-map/style/css.js.map +1 -1
  163. package/lib/to-map/style/index.d.ts +0 -1
  164. package/lib/to-map/style/index.js +0 -2
  165. package/lib/to-map/style/index.js.map +1 -1
  166. package/lib/to-map/style/index.less +86 -86
  167. package/lib/to-map/to-map.js +22 -49
  168. package/lib/to-map/to-map.js.map +1 -1
  169. package/lib/upload/index.js +2 -6
  170. package/lib/upload/index.js.map +1 -1
  171. package/lib/upload/style/css.js +0 -5
  172. package/lib/upload/style/css.js.map +1 -1
  173. package/lib/upload/style/index.d.ts +0 -2
  174. package/lib/upload/style/index.js +0 -5
  175. package/lib/upload/style/index.js.map +1 -1
  176. package/lib/upload/upload.d.ts +4 -1
  177. package/lib/upload/upload.js +164 -245
  178. package/lib/upload/upload.js.map +1 -1
  179. package/lib/use-simple-res/demos/index.d.ts +2 -1
  180. package/lib/use-simple-res/demos/index.js +31 -59
  181. package/lib/use-simple-res/demos/index.js.map +1 -1
  182. package/lib/use-simple-res/index.d.ts +0 -1
  183. package/lib/use-simple-res/index.js +61 -75
  184. package/lib/use-simple-res/index.js.map +1 -1
  185. package/lib/use-simple-res/style/css.js.map +1 -1
  186. package/lib/use-simple-res/style/index.js.map +1 -1
  187. package/lib/utils/dom-util.js +8 -27
  188. package/lib/utils/dom-util.js.map +1 -1
  189. package/lib/utils/request-util.d.ts +10 -1
  190. package/lib/utils/request-util.js +170 -45
  191. package/lib/utils/request-util.js.map +1 -1
  192. package/lib/utils/string-util.d.ts +2 -0
  193. package/lib/utils/string-util.js +34 -16
  194. package/lib/utils/string-util.js.map +1 -1
  195. package/lib/view-modal/index.d.ts +0 -1
  196. package/lib/view-modal/index.js +2 -8
  197. package/lib/view-modal/index.js.map +1 -1
  198. package/lib/view-modal/style/css.js +0 -12
  199. package/lib/view-modal/style/css.js.map +1 -1
  200. package/lib/view-modal/style/index.css +3 -41
  201. package/lib/view-modal/style/index.d.ts +0 -7
  202. package/lib/view-modal/style/index.js +0 -12
  203. package/lib/view-modal/style/index.js.map +1 -1
  204. package/lib/view-modal/style/index.less +42 -57
  205. package/lib/view-modal/view-modal.d.ts +1 -1
  206. package/lib/view-modal/view-modal.js +36 -86
  207. package/lib/view-modal/view-modal.js.map +1 -1
  208. package/package.json +157 -143
  209. package/lib/style/css.js +0 -13
  210. package/lib/style/css.js.map +0 -1
  211. package/lib/style/darkGreen.css +0 -719
  212. package/lib/style/darkGreen.less +0 -482
  213. package/lib/style/index.d.ts +0 -2
  214. package/lib/style/index.js +0 -13
  215. package/lib/style/index.js.map +0 -1
  216. package/lib/template/vtx-search/index.d.ts +0 -2
  217. package/lib/template/vtx-search/index.js +0 -126
  218. package/lib/template/vtx-search/index.js.map +0 -1
  219. package/lib/template/vtx-search/style/index.css +0 -92
  220. package/lib/template/vtx-search/style/index.less +0 -92
@@ -1 +1 @@
1
- {"version":3,"file":"scroll.js","names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","Scroll","props","timer","clearTimer","clearInterval","children","className","rest","wrapperRef","React","useRef","contentRef","useState","hasCopy","setHasCopy","useEffect","wrapper","current","content","clientHeight","scrollTop","setInterval","scrollHeight","createElement","assign","classnames","ref"],"sources":["scroll/scroll.js"],"sourcesContent":["var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classnames from 'classnames';\nconst Scroll = (props) => {\n let timer = null;\n const clearTimer = () => {\n if (timer) {\n clearInterval(timer);\n timer = null;\n }\n };\n const { children, className } = props, rest = __rest(props, [\"children\", \"className\"]);\n const wrapperRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [hasCopy, setHasCopy] = React.useState(true);\n React.useEffect(() => {\n clearTimer();\n const { current: wrapper } = wrapperRef;\n const { current: content } = contentRef;\n // 当内容不足的时候, 不需要拷贝的元素\n if (wrapper.clientHeight > content.clientHeight) {\n setHasCopy(false);\n return;\n }\n // 重置滚动高度并拷贝元素\n setHasCopy(true);\n wrapper.scrollTop = 0;\n timer = setInterval(() => {\n if (!wrapper || !content) {\n return;\n }\n if (wrapper.scrollTop >= content.scrollHeight) {\n wrapper.scrollTop = 0;\n }\n else {\n wrapper.scrollTop++;\n }\n }, 20);\n return () => {\n clearTimer();\n };\n }, [children]);\n return (React.createElement(\"div\", Object.assign({ className: classnames('env-scroll', className), ref: wrapperRef }, rest),\n React.createElement(\"div\", { ref: contentRef }, children),\n hasCopy && React.createElement(\"div\", null, children)));\n};\nexport default Scroll;\n"],"mappings":";;;;;;;;;AAWA;;AACA;;;;;;;;;;;;;;;;;;;;AAZA,IAAIA,MAAM,GAAI,UAAQ,SAAKA,MAAd,IAAyB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;EAClD,IAAIC,CAAC,GAAG,EAAR;;EACA,KAAK,IAAIC,CAAT,IAAcH,CAAd;IAAiB,IAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAAjE,EACbD,CAAC,CAACC,CAAD,CAAD,GAAOH,CAAC,CAACG,CAAD,CAAR;EADJ;;EAEA,IAAIH,CAAC,IAAI,IAAL,IAAa,OAAOI,MAAM,CAACK,qBAAd,KAAwC,UAAzD,EACI,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWP,CAAC,GAAGC,MAAM,CAACK,qBAAP,CAA6BT,CAA7B,CAApB,EAAqDU,CAAC,GAAGP,CAAC,CAACQ,MAA3D,EAAmED,CAAC,EAApE,EAAwE;IACpE,IAAIT,CAAC,CAACO,OAAF,CAAUL,CAAC,CAACO,CAAD,CAAX,IAAkB,CAAlB,IAAuBN,MAAM,CAACC,SAAP,CAAiBO,oBAAjB,CAAsCL,IAAtC,CAA2CP,CAA3C,EAA8CG,CAAC,CAACO,CAAD,CAA/C,CAA3B,EACIR,CAAC,CAACC,CAAC,CAACO,CAAD,CAAF,CAAD,GAAUV,CAAC,CAACG,CAAC,CA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3CN,OAAO,CAACI,SAAR,GAAoB,CAApB;MACH,CAFD,MAGK;QACDJ,OAAO,CAACI,SAAR;MACH;IACJ,CAVkB,EAUhB,EAVgB,CAAnB;IAWA,OAAO,YAAM;MACTjB,UAAU;IACb,CAFD;EAGH,CA1BD,EA0BG,CAACE,QAAD,CA1BH;EA2BA,oBAAQI,KAAK,CAACc,aAAN,CAAoB,KAApB,EAA2BhC,MAAM,CAACiC,MAAP,CAAc;IAAElB,SAAS,EAAE,IAAAmB,sBAAA,EAAW,YAAX,EAAyBnB,SAAzB,CAAb;IAAkDoB,GAAG,EAAElB;EAAvD,CAAd,EAAmFD,IAAnF,CAA3B,eACJE,KAAK,CAACc,aAAN,CAAoB,KAApB,EAA2B;IAAEG,GAAG,EAAEf;EAAP,CAA3B,EAAgDN,QAAhD,CADI,EAEJQ,OAAO,iBAAIJ,KAAK,CAACc,aAAN,CAAoB,KAApB,EAA2B,IAA3B,EAAiClB,QAAjC,CAFP,CAAR;AAGH,CA1CD;;eA2CeL,M"}
1
+ {"version":3,"file":"scroll.js","names":["React","_interopRequireWildcard","require","_classnames","_interopRequireDefault","e","__esModule","t","WeakMap","r","n","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","isArray","__rest","s","p","prototype","indexOf","getOwnPropertySymbols","propertyIsEnumerable","Scroll","props","timer","clearTimer","clearInterval","children","className","rest","wrapperRef","useRef","contentRef","_React$useState","useState","_React$useState2","hasCopy","setHasCopy","useEffect","wrapper","current","content","clientHeight","scrollTop","setInterval","scrollHeight","createElement","assign","classnames","ref","_default","exports"],"sources":["scroll/scroll.js"],"sourcesContent":["var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classnames from 'classnames';\nconst Scroll = (props) => {\n let timer = null;\n const clearTimer = () => {\n if (timer) {\n clearInterval(timer);\n timer = null;\n }\n };\n const { children, className } = props, rest = __rest(props, [\"children\", \"className\"]);\n const wrapperRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [hasCopy, setHasCopy] = React.useState(true);\n React.useEffect(() => {\n clearTimer();\n const { current: wrapper } = wrapperRef;\n const { current: content } = contentRef;\n // 当内容不足的时候, 不需要拷贝的元素\n if (wrapper.clientHeight > content.clientHeight) {\n setHasCopy(false);\n return;\n }\n // 重置滚动高度并拷贝元素\n setHasCopy(true);\n wrapper.scrollTop = 0;\n timer = setInterval(() => {\n if (!wrapper || !content) {\n return;\n }\n if (wrapper.scrollTop >= content.scrollHeight) {\n wrapper.scrollTop = 0;\n }\n else {\n wrapper.scrollTop++;\n }\n }, 20);\n return () => {\n clearTimer();\n };\n }, [children]);\n return (React.createElement(\"div\", Object.assign({ className: classnames('env-scroll', className), ref: wrapperRef }, rest),\n React.createElement(\"div\", { ref: contentRef }, children),\n hasCopy && React.createElement(\"div\", null, children)));\n};\nexport default Scroll;\n"],"mappings":";;;;;;;AAWA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAoC,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAA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AAC,MACI;QACDJ,OAAO,CAACI,SAAS,EAAE;MACvB;IACJ,CAAC,EAAE,EAAE,CAAC;IACN,OAAO,YAAM;MACTlB,UAAU,CAAC,CAAC;IAChB,CAAC;EACL,CAAC,EAAE,CAACE,QAAQ,CAAC,CAAC;EACd,oBAAQ9D,KAAK,CAACiF,aAAa,CAAC,KAAK,EAAE3D,MAAM,CAAC4D,MAAM,CAAC;IAAEnB,SAAS,EAAE,IAAAoB,sBAAU,EAAC,YAAY,EAAEpB,SAAS,CAAC;IAAEqB,GAAG,EAAEnB;EAAW,CAAC,EAAED,IAAI,CAAC,eACvHhE,KAAK,CAACiF,aAAa,CAAC,KAAK,EAAE;IAAEG,GAAG,EAAEjB;EAAW,CAAC,EAAEL,QAAQ,CAAC,EACzDS,OAAO,iBAAIvE,KAAK,CAACiF,aAAa,CAAC,KAAK,EAAE,IAAI,EAAEnB,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAAC,IAAAuB,QAAA,GAAAC,OAAA,cACa7B,MAAM","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"css.js","names":[],"sources":["scroll/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAA"}
1
+ {"version":3,"file":"css.js","names":["require"],"sources":["scroll/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["scroll/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAA"}
1
+ {"version":3,"file":"index.js","names":["require"],"sources":["scroll/style/index.js"],"sourcesContent":["import './index.less';\n"],"mappings":";;AAAAA,OAAA","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- .env-scroll {
2
- overflow: hidden;
3
- }
1
+ .env-scroll {
2
+ overflow: hidden;
3
+ }
@@ -4,11 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _scrollSelect = _interopRequireDefault(require("./scrollSelect"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- var _default = _scrollSelect["default"];
13
- exports["default"] = _default;
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ var _default = exports["default"] = _scrollSelect["default"];
14
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ScrollSelect"],"sources":["scroll-select/index.js"],"sourcesContent":["import ScrollSelect from './scrollSelect';\nexport default ScrollSelect;\n"],"mappings":";;;;;;;AAAA;;;;eACeA,wB"}
1
+ {"version":3,"file":"index.js","names":["_scrollSelect","_interopRequireDefault","require","e","__esModule","_default","exports","ScrollSelect"],"sources":["scroll-select/index.js"],"sourcesContent":["import ScrollSelect from './scrollSelect';\nexport default ScrollSelect;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,IAAAE,QAAA,GAAAC,OAAA,cAC3BC,wBAAY","ignoreList":[]}
@@ -1,2 +1,3 @@
1
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
2
3
  export default _default;
@@ -1,59 +1,38 @@
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); }
4
-
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); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _select = _interopRequireDefault(require("antd/lib/select"));
13
-
9
+ var _antd = require("antd");
14
10
  var _useSimpleRes2 = _interopRequireDefault(require("../use-simple-res"));
15
-
16
- var _lodash = _interopRequireDefault(require("lodash"));
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- 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); }
21
-
22
- 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; }
23
-
24
- 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, $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 generator._invoke = function (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); } }; }(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; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return 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, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), 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 (object) { var 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; }
25
-
26
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
27
-
28
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
29
-
11
+ var _debounce = _interopRequireDefault(require("lodash-es/debounce"));
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
15
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
16
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
17
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
30
18
  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."); }
31
-
32
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
-
34
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
35
-
36
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
-
38
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
-
19
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
20
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
21
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
+ 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); }
24
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
40
25
  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."); }
41
-
42
- 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); }
43
-
44
- 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; }
45
-
46
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
47
-
48
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49
-
26
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
27
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28
+ 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; } }
29
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
50
30
  var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P, generator) {
51
31
  function adopt(value) {
52
32
  return value instanceof P ? value : new P(function (resolve) {
53
33
  resolve(value);
54
34
  });
55
35
  }
56
-
57
36
  return new (P || (P = Promise))(function (resolve, reject) {
58
37
  function fulfilled(value) {
59
38
  try {
@@ -62,7 +41,6 @@ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P
62
41
  reject(e);
63
42
  }
64
43
  }
65
-
66
44
  function rejected(value) {
67
45
  try {
68
46
  step(generator["throw"](value));
@@ -70,159 +48,126 @@ var __awaiter = void 0 && (void 0).__awaiter || function (thisArg, _arguments, P
70
48
  reject(e);
71
49
  }
72
50
  }
73
-
74
51
  function step(result) {
75
52
  result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
76
53
  }
77
-
78
54
  step((generator = generator.apply(thisArg, _arguments || [])).next());
79
55
  });
80
56
  };
81
-
82
57
  var __rest = void 0 && (void 0).__rest || function (s, e) {
83
58
  var t = {};
84
-
85
- for (var p in s) {
86
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
87
- }
88
-
59
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
89
60
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
90
61
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
91
62
  }
92
63
  return t;
93
64
  };
94
-
95
- var Option = _select["default"].Option;
96
-
97
- var _default = function _default(props) {
65
+ var Option = _antd.Select.Option;
66
+ var _default = exports["default"] = function _default(props) {
98
67
  var _useState = (0, _react.useState)([]),
99
- _useState2 = _slicedToArray(_useState, 2),
100
- dataList = _useState2[0],
101
- setDataList = _useState2[1]; // 存储下拉数值
102
-
103
-
68
+ _useState2 = _slicedToArray(_useState, 2),
69
+ dataList = _useState2[0],
70
+ setDataList = _useState2[1]; // 存储下拉数值
104
71
  var _useState3 = (0, _react.useState)(1),
105
- _useState4 = _slicedToArray(_useState3, 2),
106
- page = _useState4[0],
107
- setPage = _useState4[1]; // 记录滚动时需要查询的页数
108
-
109
-
72
+ _useState4 = _slicedToArray(_useState3, 2),
73
+ page = _useState4[0],
74
+ setPage = _useState4[1]; // 记录滚动时需要查询的页数
110
75
  var _useState5 = (0, _react.useState)(0),
111
- _useState6 = _slicedToArray(_useState5, 2),
112
- total = _useState6[0],
113
- setTotal = _useState6[1]; // 返回接口返回的total值
114
-
115
-
76
+ _useState6 = _slicedToArray(_useState5, 2),
77
+ total = _useState6[0],
78
+ setTotal = _useState6[1]; // 返回接口返回的total值
116
79
  var _useState7 = (0, _react.useState)(false),
117
- _useState8 = _slicedToArray(_useState7, 2),
118
- isLoadData = _useState8[0],
119
- setIsLoadData = _useState8[1];
120
-
80
+ _useState8 = _slicedToArray(_useState7, 2),
81
+ isLoadData = _useState8[0],
82
+ setIsLoadData = _useState8[1];
121
83
  var requestOption = props.requestOption,
122
- _props$requestParams = props.requestParams,
123
- requestParams = _props$requestParams === void 0 ? {} : _props$requestParams,
124
- _onChange = props.onChange,
125
- searchField = props.searchField,
126
- _props$setValueLabel = props.setValueLabel,
127
- setValueLabel = _props$setValueLabel === void 0 ? {
128
- label: 'name',
129
- value: 'id'
130
- } : _props$setValueLabel,
131
- rest = __rest(props, ["requestOption", "requestParams", "onChange", "searchField", "setValueLabel"]);
132
-
84
+ _props$requestParams = props.requestParams,
85
+ requestParams = _props$requestParams === void 0 ? {} : _props$requestParams,
86
+ _onChange = props.onChange,
87
+ searchField = props.searchField,
88
+ _props$setValueLabel = props.setValueLabel,
89
+ setValueLabel = _props$setValueLabel === void 0 ? {
90
+ label: 'name',
91
+ value: 'id'
92
+ } : _props$setValueLabel,
93
+ rest = __rest(props, ["requestOption", "requestParams", "onChange", "searchField", "setValueLabel"]);
133
94
  var _useSimpleRes = (0, _useSimpleRes2["default"])(requestOption),
134
- run = _useSimpleRes.run,
135
- loading = _useSimpleRes.loading;
95
+ run = _useSimpleRes.run,
96
+ loading = _useSimpleRes.loading;
136
97
  /**
137
98
  * @param {boolean} isClear 是否清空之前的值
138
99
  * @param {number} page 分页
139
100
  * @param {string} searchString 搜索的值
140
101
  */
141
-
142
-
143
102
  var loadData = function loadData() {
144
103
  var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
145
104
  var page = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
146
105
  var searchString = arguments.length > 2 ? arguments[2] : undefined;
147
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
106
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
148
107
  var _a, _b, _c, _d, _e, _f, _g, _h, res, newData, label, value, oldDataList, newArray, _iterator, _step, item;
149
-
150
- return _regeneratorRuntime().wrap(function _callee$(_context) {
151
- while (1) {
152
- switch (_context.prev = _context.next) {
153
- case 0:
154
- _context.next = 2;
155
- return run(Object.assign(Object.assign({
156
- rows: 10
157
- }, requestParams), _defineProperty({
158
- page: page
159
- }, searchField, searchString ? searchString : undefined)));
160
-
161
- case 2:
162
- res = _context.sent;
163
- newData = [];
164
-
165
- if (Array.isArray((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.rows)) {
166
- newData = (_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.rows;
167
- } else if (Array.isArray((_e = res === null || res === void 0 ? void 0 : res.data) === null || _e === void 0 ? void 0 : _e.rows)) {
168
- newData = (_f = res === null || res === void 0 ? void 0 : res.data) === null || _f === void 0 ? void 0 : _f.rows;
169
- } else if (Array.isArray((_g = res === null || res === void 0 ? void 0 : res.data) === null || _g === void 0 ? void 0 : _g.data)) {
170
- newData = (_h = res === null || res === void 0 ? void 0 : res.data) === null || _h === void 0 ? void 0 : _h.data;
171
- } else if (Array.isArray(res === null || res === void 0 ? void 0 : res.data)) {
172
- newData = res === null || res === void 0 ? void 0 : res.data;
173
- }
174
-
175
- _context.next = 7;
176
- return setTotal(newData.length);
177
-
178
- case 7:
179
- label = setValueLabel.label;
180
- value = setValueLabel.value;
181
- oldDataList = _toConsumableArray(dataList);
182
- newArray = [];
183
-
184
- if (Array.isArray(newData) && newData.length) {
185
- _iterator = _createForOfIteratorHelper(newData);
186
-
187
- try {
188
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
189
- item = _step.value;
190
- newArray.push(Object.assign(Object.assign({}, item), {
191
- selectName: item[label],
192
- selectId: item[value]
193
- }));
194
- }
195
- } catch (err) {
196
- _iterator.e(err);
197
- } finally {
198
- _iterator.f();
108
+ return _regenerator().w(function (_context) {
109
+ while (1) switch (_context.n) {
110
+ case 0:
111
+ _context.n = 1;
112
+ return run(Object.assign(Object.assign({
113
+ rows: 10
114
+ }, requestParams), _defineProperty({
115
+ page: page
116
+ }, searchField, searchString ? searchString : undefined)));
117
+ case 1:
118
+ res = _context.v;
119
+ newData = [];
120
+ if (Array.isArray((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.rows)) {
121
+ newData = (_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.rows;
122
+ } else if (Array.isArray((_e = res === null || res === void 0 ? void 0 : res.data) === null || _e === void 0 ? void 0 : _e.rows)) {
123
+ newData = (_f = res === null || res === void 0 ? void 0 : res.data) === null || _f === void 0 ? void 0 : _f.rows;
124
+ } else if (Array.isArray((_g = res === null || res === void 0 ? void 0 : res.data) === null || _g === void 0 ? void 0 : _g.data)) {
125
+ newData = (_h = res === null || res === void 0 ? void 0 : res.data) === null || _h === void 0 ? void 0 : _h.data;
126
+ } else if (Array.isArray(res === null || res === void 0 ? void 0 : res.data)) {
127
+ newData = res === null || res === void 0 ? void 0 : res.data;
128
+ }
129
+ _context.n = 2;
130
+ return setTotal(newData.length);
131
+ case 2:
132
+ label = setValueLabel.label;
133
+ value = setValueLabel.value;
134
+ oldDataList = _toConsumableArray(dataList);
135
+ newArray = [];
136
+ if (Array.isArray(newData) && newData.length) {
137
+ _iterator = _createForOfIteratorHelper(newData);
138
+ try {
139
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
140
+ item = _step.value;
141
+ newArray.push(Object.assign(Object.assign({}, item), {
142
+ selectName: item[label],
143
+ selectId: item[value]
144
+ }));
199
145
  }
146
+ } catch (err) {
147
+ _iterator.e(err);
148
+ } finally {
149
+ _iterator.f();
200
150
  }
201
-
202
- if (isClear) {
203
- setDataList([].concat(newArray));
204
- } else {
205
- setDataList([].concat(_toConsumableArray(oldDataList), newArray));
206
- }
207
-
208
- setIsLoadData(true);
209
-
210
- case 14:
211
- case "end":
212
- return _context.stop();
213
- }
151
+ }
152
+ if (isClear) {
153
+ setDataList([].concat(newArray));
154
+ } else {
155
+ setDataList([].concat(_toConsumableArray(oldDataList), newArray));
156
+ }
157
+ setIsLoadData(true);
158
+ case 3:
159
+ return _context.a(2);
214
160
  }
215
161
  }, _callee);
216
162
  }));
217
- }; // 参数改变的时候 组件 恢复未加载数据状态
218
-
219
-
163
+ };
164
+ // 参数改变的时候 组件 恢复未加载数据状态
220
165
  (0, _react.useEffect)(function () {
221
166
  setIsLoadData(false);
222
167
  }, [props]);
223
168
  return /*#__PURE__*/_react["default"].createElement("div", {
224
169
  className: 'env-scroll-select'
225
- }, /*#__PURE__*/_react["default"].createElement(_select["default"], Object.assign({
170
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Select, Object.assign({
226
171
  onChange: function onChange(value, option) {
227
172
  _onChange && _onChange(value, option);
228
173
  },
@@ -235,77 +180,60 @@ var _default = function _default(props) {
235
180
  loading: loading,
236
181
  optionFilterProp: "children",
237
182
  onDropdownVisibleChange: function onDropdownVisibleChange(open) {
238
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
239
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
240
- while (1) {
241
- switch (_context2.prev = _context2.next) {
242
- case 0:
243
- if (!(open && !isLoadData)) {
244
- _context2.next = 4;
245
- break;
246
- }
247
-
248
- _context2.next = 3;
249
- return setPage(1);
250
-
251
- case 3:
252
- loadData(true, 1);
253
-
254
- case 4:
255
- case "end":
256
- return _context2.stop();
257
- }
183
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
184
+ return _regenerator().w(function (_context2) {
185
+ while (1) switch (_context2.n) {
186
+ case 0:
187
+ if (!(open && !isLoadData)) {
188
+ _context2.n = 2;
189
+ break;
190
+ }
191
+ _context2.n = 1;
192
+ return setPage(1);
193
+ case 1:
194
+ loadData(true, 1);
195
+ case 2:
196
+ return _context2.a(2);
258
197
  }
259
198
  }, _callee2);
260
199
  }));
261
200
  },
262
- onSearch: _lodash["default"].debounce(function (name) {
263
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
264
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
265
- while (1) {
266
- switch (_context3.prev = _context3.next) {
267
- case 0:
268
- _context3.next = 2;
269
- return setPage(1);
270
-
271
- case 2:
272
- loadData(true, 1, name);
273
-
274
- case 3:
275
- case "end":
276
- return _context3.stop();
277
- }
201
+ onSearch: (0, _debounce["default"])(function (name) {
202
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee3() {
203
+ return _regenerator().w(function (_context3) {
204
+ while (1) switch (_context3.n) {
205
+ case 0:
206
+ _context3.n = 1;
207
+ return setPage(1);
208
+ case 1:
209
+ loadData(true, 1, name);
210
+ case 2:
211
+ return _context3.a(2);
278
212
  }
279
213
  }, _callee3);
280
214
  }));
281
215
  }, 500),
282
216
  onPopupScroll: function onPopupScroll(e) {
283
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
217
+ return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee4() {
284
218
  var target, nextScrollPage;
285
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
286
- while (1) {
287
- switch (_context4.prev = _context4.next) {
288
- case 0:
289
- e.persist();
290
- target = e.target;
291
-
292
- if (!( // target.scrollTop + target.offsetHeight >= target.scrollHeight-6 &&
293
- target.scrollTop + target.offsetHeight === target.scrollHeight && total > 0)) {
294
- _context4.next = 7;
295
- break;
296
- }
297
-
298
- nextScrollPage = page + 1;
299
- _context4.next = 6;
300
- return setPage(nextScrollPage);
301
-
302
- case 6:
303
- loadData(false, nextScrollPage);
304
-
305
- case 7:
306
- case "end":
307
- return _context4.stop();
308
- }
219
+ return _regenerator().w(function (_context4) {
220
+ while (1) switch (_context4.n) {
221
+ case 0:
222
+ e.persist();
223
+ target = e.target;
224
+ if (!(
225
+ // target.scrollTop + target.offsetHeight >= target.scrollHeight-6 &&
226
+ target.scrollTop + target.offsetHeight === target.scrollHeight && total > 0)) {
227
+ _context4.n = 2;
228
+ break;
229
+ }
230
+ nextScrollPage = page + 1;
231
+ _context4.n = 1;
232
+ return setPage(nextScrollPage);
233
+ case 1:
234
+ loadData(false, nextScrollPage);
235
+ case 2:
236
+ return _context4.a(2);
309
237
  }
310
238
  }, _callee4);
311
239
  }));
@@ -318,6 +246,4 @@ var _default = function _default(props) {
318
246
  }, item.selectName);
319
247
  })));
320
248
  };
321
-
322
- exports["default"] = _default;
323
249
  //# sourceMappingURL=scrollSelect.js.map