wt-enjoy-link-antd-repack 4.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. package/README.md +26 -0
  2. package/dist/esm/assets/location.png +0 -0
  3. package/dist/esm/component/BiuAButton/index.d.ts +18 -0
  4. package/dist/esm/component/BiuAButton/index.js +8 -0
  5. package/dist/esm/component/BiuACard/index.d.ts +2 -0
  6. package/dist/esm/component/BiuACard/index.js +9 -0
  7. package/dist/esm/component/BiuACascader/index.d.ts +10 -0
  8. package/dist/esm/component/BiuACascader/index.js +8 -0
  9. package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
  10. package/dist/esm/component/BiuADatePicker/index.js +18 -0
  11. package/dist/esm/component/BiuAForm/index.d.ts +7 -0
  12. package/dist/esm/component/BiuAForm/index.js +10 -0
  13. package/dist/esm/component/BiuAInput/index.d.ts +14 -0
  14. package/dist/esm/component/BiuAInput/index.js +32 -0
  15. package/dist/esm/component/BiuASelect/index.d.ts +6 -0
  16. package/dist/esm/component/BiuASelect/index.js +14 -0
  17. package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
  18. package/dist/esm/component/BiuASwitch/index.js +9 -0
  19. package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
  20. package/dist/esm/component/BiuATimePicker/index.js +8 -0
  21. package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
  22. package/dist/esm/component/BiuATreeSelect/index.js +8 -0
  23. package/dist/esm/component/BiuBar/index.d.ts +13 -0
  24. package/dist/esm/component/BiuBar/index.js +42 -0
  25. package/dist/esm/component/BiuComSelect/index.d.ts +24 -0
  26. package/dist/esm/component/BiuComSelect/index.js +104 -0
  27. package/dist/esm/component/BiuCue/index.d.ts +18 -0
  28. package/dist/esm/component/BiuCue/index.js +44 -0
  29. package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
  30. package/dist/esm/component/BiuCustomSelect/index.js +153 -0
  31. package/dist/esm/component/BiuCustomTable/index.d.ts +14 -0
  32. package/dist/esm/component/BiuCustomTable/index.js +76 -0
  33. package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +8 -0
  34. package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +264 -0
  35. package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
  36. package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
  37. package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
  38. package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
  39. package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
  40. package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
  41. package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
  42. package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
  43. package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
  44. package/dist/esm/component/BiuDescriptions/index.js +39 -0
  45. package/dist/esm/component/BiuDetailDrawer/index.d.ts +15 -0
  46. package/dist/esm/component/BiuDetailDrawer/index.js +54 -0
  47. package/dist/esm/component/BiuDivider/index.d.ts +4 -0
  48. package/dist/esm/component/BiuDivider/index.js +29 -0
  49. package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
  50. package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
  51. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
  52. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
  53. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
  54. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
  55. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
  56. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +98 -0
  57. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
  58. package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
  59. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
  60. package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +393 -0
  61. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
  62. package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
  63. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
  64. package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +59 -0
  65. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
  66. package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +130 -0
  67. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
  68. package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
  69. package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
  70. package/dist/esm/component/BiuField/component/SNInput.js +622 -0
  71. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +23 -0
  72. package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +187 -0
  73. package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
  74. package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +153 -0
  75. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
  76. package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +238 -0
  77. package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
  78. package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +66 -0
  79. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
  80. package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
  81. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +24 -0
  82. package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +164 -0
  83. package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
  84. package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +149 -0
  85. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
  86. package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +145 -0
  87. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
  88. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +113 -0
  89. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
  90. package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +100 -0
  91. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
  92. package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
  93. package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
  94. package/dist/esm/component/BiuField/component/autoComplete.js +82 -0
  95. package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
  96. package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
  97. package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
  98. package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
  99. package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
  100. package/dist/esm/component/BiuField/component/carrierInfoSelect.js +145 -0
  101. package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
  102. package/dist/esm/component/BiuField/component/channelSelect.js +94 -0
  103. package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
  104. package/dist/esm/component/BiuField/component/cityAreaCascader.js +86 -0
  105. package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
  106. package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +175 -0
  107. package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
  108. package/dist/esm/component/BiuField/component/customMenu.js +110 -0
  109. package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
  110. package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
  111. package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
  112. package/dist/esm/component/BiuField/component/departmentTreeSelect.js +107 -0
  113. package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
  114. package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
  115. package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +41 -0
  116. package/dist/esm/component/BiuField/component/dicTypeSelect.js +84 -0
  117. package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
  118. package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
  119. package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +18 -0
  120. package/dist/esm/component/BiuField/component/editLocationSelect.js +119 -0
  121. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
  122. package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
  123. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
  124. package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +97 -0
  125. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
  126. package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +73 -0
  127. package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
  128. package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
  129. package/dist/esm/component/BiuField/component/index.d.ts +37 -0
  130. package/dist/esm/component/BiuField/component/index.js +37 -0
  131. package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
  132. package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
  133. package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
  134. package/dist/esm/component/BiuField/component/lpnSelect.js +88 -0
  135. package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +15 -0
  136. package/dist/esm/component/BiuField/component/orderTypeSelect.js +79 -0
  137. package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
  138. package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
  139. package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
  140. package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
  141. package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
  142. package/dist/esm/component/BiuField/component/personnelinfoselect.js +431 -0
  143. package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
  144. package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
  145. package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
  146. package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
  147. package/dist/esm/component/BiuField/component/userSelect.d.ts +8 -0
  148. package/dist/esm/component/BiuField/component/userSelect.js +163 -0
  149. package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
  150. package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +103 -0
  151. package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +13 -0
  152. package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +92 -0
  153. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
  154. package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +124 -0
  155. package/dist/esm/component/BiuField/index.d.ts +8 -0
  156. package/dist/esm/component/BiuField/index.js +607 -0
  157. package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
  158. package/dist/esm/component/BiuFileInput/index.js +53 -0
  159. package/dist/esm/component/BiuForm/index.d.ts +12 -0
  160. package/dist/esm/component/BiuForm/index.js +241 -0
  161. package/dist/esm/component/BiuForm/type.d.ts +45 -0
  162. package/dist/esm/component/BiuForm/type.js +1 -0
  163. package/dist/esm/component/BiuForm/utils.d.ts +2 -0
  164. package/dist/esm/component/BiuForm/utils.js +46 -0
  165. package/dist/esm/component/BiuIcon/index.d.ts +3 -0
  166. package/dist/esm/component/BiuIcon/index.js +15 -0
  167. package/dist/esm/component/BiuMapSelectSite/index.d.ts +48 -0
  168. package/dist/esm/component/BiuMapSelectSite/index.js +453 -0
  169. package/dist/esm/component/BiuModal/index.d.ts +24 -0
  170. package/dist/esm/component/BiuModal/index.js +239 -0
  171. package/dist/esm/component/BiuOperForm/index.d.ts +15 -0
  172. package/dist/esm/component/BiuOperForm/index.js +375 -0
  173. package/dist/esm/component/BiuOperForm/type.d.ts +23 -0
  174. package/dist/esm/component/BiuOperForm/type.js +1 -0
  175. package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
  176. package/dist/esm/component/BiuOperTable/index.js +349 -0
  177. package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
  178. package/dist/esm/component/BiuOperTable/type.js +1 -0
  179. package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
  180. package/dist/esm/component/BiuOperTable/utils.js +13 -0
  181. package/dist/esm/component/BiuPagination/index.d.ts +14 -0
  182. package/dist/esm/component/BiuPagination/index.js +34 -0
  183. package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
  184. package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +74 -0
  185. package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
  186. package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
  187. package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
  188. package/dist/esm/component/BiuResizeTable/index.js +71 -0
  189. package/dist/esm/component/BiuResizeTable/index.less +19 -0
  190. package/dist/esm/component/BiuSplit/index.d.ts +32 -0
  191. package/dist/esm/component/BiuSplit/index.js +57 -0
  192. package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
  193. package/dist/esm/component/BiuTable/component/index.js +3 -0
  194. package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
  195. package/dist/esm/component/BiuTable/component/tableActionBarRender.js +88 -0
  196. package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
  197. package/dist/esm/component/BiuTable/component/tableCellRender.js +108 -0
  198. package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
  199. package/dist/esm/component/BiuTable/component/tableSettingRender.js +345 -0
  200. package/dist/esm/component/BiuTable/context.d.ts +2 -0
  201. package/dist/esm/component/BiuTable/context.js +2 -0
  202. package/dist/esm/component/BiuTable/hooks/index.d.ts +1 -0
  203. package/dist/esm/component/BiuTable/hooks/index.js +1 -0
  204. package/dist/esm/component/BiuTable/hooks/useFetchData.d.ts +4 -0
  205. package/dist/esm/component/BiuTable/hooks/useFetchData.js +64 -0
  206. package/dist/esm/component/BiuTable/index.d.ts +42 -0
  207. package/dist/esm/component/BiuTable/index.js +484 -0
  208. package/dist/esm/component/BiuTable/type.d.ts +168 -0
  209. package/dist/esm/component/BiuTable/type.js +1 -0
  210. package/dist/esm/component/BiuTable/utils.d.ts +10 -0
  211. package/dist/esm/component/BiuTable/utils.js +117 -0
  212. package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
  213. package/dist/esm/component/BiuTableLink/index.js +54 -0
  214. package/dist/esm/component/BiuTableSelect/index.d.ts +49 -0
  215. package/dist/esm/component/BiuTableSelect/index.js +209 -0
  216. package/dist/esm/component/BiuTabs/index.d.ts +4 -0
  217. package/dist/esm/component/BiuTabs/index.js +18 -0
  218. package/dist/esm/component/BiuVirtualTable/index.d.ts +21 -0
  219. package/dist/esm/component/BiuVirtualTable/index.js +161 -0
  220. package/dist/esm/component/index.d.ts +35 -0
  221. package/dist/esm/component/index.js +35 -0
  222. package/dist/esm/constant/Cache_Key.d.ts +28 -0
  223. package/dist/esm/constant/Cache_Key.js +28 -0
  224. package/dist/esm/constant/DateTime.d.ts +12 -0
  225. package/dist/esm/constant/DateTime.js +15 -0
  226. package/dist/esm/constant/External.d.ts +64 -0
  227. package/dist/esm/constant/External.js +260 -0
  228. package/dist/esm/constant/Gateway_Path.d.ts +5 -0
  229. package/dist/esm/constant/Gateway_Path.js +5 -0
  230. package/dist/esm/constant/Layout.d.ts +210 -0
  231. package/dist/esm/constant/Layout.js +215 -0
  232. package/dist/esm/constant/Regexp.d.ts +109 -0
  233. package/dist/esm/constant/Regexp.js +130 -0
  234. package/dist/esm/constant/index.d.ts +6 -0
  235. package/dist/esm/constant/index.js +6 -0
  236. package/dist/esm/hooks/index.d.ts +6 -0
  237. package/dist/esm/hooks/index.js +6 -0
  238. package/dist/esm/hooks/useAuth.d.ts +4 -0
  239. package/dist/esm/hooks/useAuth.js +22 -0
  240. package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
  241. package/dist/esm/hooks/useCurrentSystem.js +15 -0
  242. package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
  243. package/dist/esm/hooks/useLayoutInfo.js +14 -0
  244. package/dist/esm/hooks/useReducerState.d.ts +16 -0
  245. package/dist/esm/hooks/useReducerState.js +43 -0
  246. package/dist/esm/hooks/useUserInfo.d.ts +4 -0
  247. package/dist/esm/hooks/useUserInfo.js +15 -0
  248. package/dist/esm/hooks/useWareInfo.d.ts +4 -0
  249. package/dist/esm/hooks/useWareInfo.js +15 -0
  250. package/dist/esm/index.d.ts +5 -0
  251. package/dist/esm/index.js +5 -0
  252. package/dist/esm/package/index.d.ts +1 -0
  253. package/dist/esm/package/index.js +1 -0
  254. package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
  255. package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
  256. package/dist/esm/package/requestWrapper/index.d.ts +4 -0
  257. package/dist/esm/package/requestWrapper/index.js +402 -0
  258. package/dist/esm/package/requestWrapper/type.d.ts +36 -0
  259. package/dist/esm/package/requestWrapper/type.js +1 -0
  260. package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
  261. package/dist/esm/package/requestWrapper/utils.js +35 -0
  262. package/dist/esm/utils/authUtils.d.ts +18 -0
  263. package/dist/esm/utils/authUtils.js +36 -0
  264. package/dist/esm/utils/cacheUtils.d.ts +4 -0
  265. package/dist/esm/utils/cacheUtils.js +24 -0
  266. package/dist/esm/utils/chainUtils.d.ts +26 -0
  267. package/dist/esm/utils/chainUtils.js +54 -0
  268. package/dist/esm/utils/dateUtils.d.ts +23 -0
  269. package/dist/esm/utils/dateUtils.js +55 -0
  270. package/dist/esm/utils/decimalUtils.d.ts +5 -0
  271. package/dist/esm/utils/decimalUtils.js +7 -0
  272. package/dist/esm/utils/excelUtils.d.ts +22 -0
  273. package/dist/esm/utils/excelUtils.js +153 -0
  274. package/dist/esm/utils/index.d.ts +11 -0
  275. package/dist/esm/utils/index.js +11 -0
  276. package/dist/esm/utils/layoutUtils.d.ts +1 -0
  277. package/dist/esm/utils/layoutUtils.js +13 -0
  278. package/dist/esm/utils/objectUtils.d.ts +1 -0
  279. package/dist/esm/utils/objectUtils.js +3 -0
  280. package/dist/esm/utils/soundUtils.d.ts +5 -0
  281. package/dist/esm/utils/soundUtils.js +29 -0
  282. package/dist/esm/utils/stringUtils.d.ts +24 -0
  283. package/dist/esm/utils/stringUtils.js +39 -0
  284. package/dist/esm/utils/sysUtils.d.ts +4 -0
  285. package/dist/esm/utils/sysUtils.js +4 -0
  286. package/package.json +59 -0
@@ -0,0 +1,453 @@
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
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+ 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; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ 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); }
17
+ import AMapLoader from '@amap/amap-jsapi-loader';
18
+ import { AutoComplete, Modal } from 'antd';
19
+ import React from 'react';
20
+ import { styled } from 'styled-components';
21
+ import { ChainDebounceOrThrottle } from "../../utils";
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ var AMap;
25
+ var map;
26
+ var geocoder;
27
+ var StyledModal = styled(Modal).withConfig({
28
+ displayName: "StyledModal",
29
+ componentId: "enjoy-link-antd-repack__sc-128g8ut-0"
30
+ })(["display:flex;align-items:center;justify-content:center;.ant-modal{padding-bottom:0;}"]);
31
+ var StyledMapDiv = styled.div.withConfig({
32
+ displayName: "StyledMapDiv",
33
+ componentId: "enjoy-link-antd-repack__sc-128g8ut-1"
34
+ })(["position:relative;flex:1 1 570px;.map-content{height:100%;}img{position:absolute;top:50%;left:50%;}"]);
35
+ var StyledGeoLocationDiv = styled.div.withConfig({
36
+ displayName: "StyledGeoLocationDiv",
37
+ componentId: "enjoy-link-antd-repack__sc-128g8ut-2"
38
+ })(["position:absolute;right:4px;bottom:10px;width:35px;height:35px;background:#fff url('https://webapi.amap.com/theme/v1.3/markers/b/loc_gray.png') 50% 50% no-repeat;border:1px solid #ccc;border-radius:3px;cursor:pointer;"]);
39
+ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
40
+ _inherits(BiuMapSelectSite, _React$PureComponent);
41
+ var _super = _createSuper(BiuMapSelectSite);
42
+ function BiuMapSelectSite() {
43
+ var _this;
44
+ _classCallCheck(this, BiuMapSelectSite);
45
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
46
+ args[_key] = arguments[_key];
47
+ }
48
+ _this = _super.call.apply(_super, [this].concat(args));
49
+ _defineProperty(_assertThisInitialized(_this), "state", {
50
+ province: null,
51
+ // 省
52
+ city: null,
53
+ // 市
54
+ district: null,
55
+ // 区
56
+ lng: null,
57
+ // 经度
58
+ lat: null,
59
+ // 纬度
60
+ address: null,
61
+ // 地址
62
+ searchList: [],
63
+ // 搜索地址
64
+ periphery: [],
65
+ // 周边
66
+ lngSearch: '',
67
+ // 搜索的经度
68
+ latSearch: '',
69
+ // 搜索的纬度
70
+ searchValue: undefined
71
+ });
72
+ _defineProperty(_assertThisInitialized(_this), "mark", null);
73
+ _defineProperty(_assertThisInitialized(_this), "isSuccess", true);
74
+ _defineProperty(_assertThisInitialized(_this), "placeSearch", null);
75
+ _defineProperty(_assertThisInitialized(_this), "init", function () {
76
+ window._AMapSecurityConfig = {
77
+ securityJsCode: 'bb0102e8edb4c2349c484176624eabb1'
78
+ };
79
+ var start = function start() {
80
+ // 初次加载如果已存在则注销
81
+ if (map) {
82
+ map.destroy();
83
+ if (_this.mark) _this.mark = null;
84
+ }
85
+ // 地图实例化
86
+ map = new AMap.Map(_this.props.id, {
87
+ resizeEnable: true,
88
+ // 是否监控地图容器尺寸变化
89
+ zoom: 16
90
+ });
91
+ // 注册插件
92
+ // var PlaceSearch = new AMap.PlaceSearch();
93
+ // map.plugin(PlaceSearch);
94
+ map.on('complete', function () {
95
+ // 搜索插件
96
+ // map.plugin(['AMap.PlaceSearch'], () => {
97
+ // map.addControl(new AMap.PlaceSearch());
98
+ // });
99
+ // 默认位置
100
+ if (_this.props.position && _this.props.position.lng && _this.props.position.lat) {
101
+ _this.mapDrawMarker(_this.props.position.lng, _this.props.position.lat);
102
+ // map.setCenter([this.props.position.lng, this.props.position.lat]); // 设置地图中心点
103
+ _this.getAddress(_this.props.position.lng, _this.props.position.lat);
104
+ } else {
105
+ _this.geolocation();
106
+ }
107
+
108
+ // 影藏自带的文字
109
+ document.getElementsByClassName('amap-copyright')[0].style.visibility = 'hidden';
110
+ });
111
+ geocoder = new AMap.Geocoder();
112
+
113
+ // 绑定地图移动结束事件
114
+ map.on('moveend', function () {
115
+ // 获取地图中心的坐标
116
+ var _map$getCenter = map.getCenter(),
117
+ lng = _map$getCenter.lng,
118
+ lat = _map$getCenter.lat;
119
+
120
+ // 根据坐标获取地理位置
121
+ _this.getAddress(lng, lat);
122
+ });
123
+ map.on('click', function (e) {
124
+ _this.mapDrawMarker(e.lnglat.lng, e.lnglat.lat);
125
+ });
126
+ };
127
+ if (!AMap) {
128
+ AMapLoader.load({
129
+ key: 'f9394d37c130973aa0f3575019804e06',
130
+ // 申请好的Web端开发者Key,首次调用 load 时必填
131
+ version: '2.0',
132
+ plugins: ['AMap.Geocoder', 'AMap.PlaceSearch', 'AMap.LngLat']
133
+ }).then(function (amap) {
134
+ AMap = amap;
135
+ _this.placeSearch = new AMap.PlaceSearch({
136
+ pageSize: 20,
137
+ // 单页显示结果条数
138
+ pageIndex: 1 // 页码
139
+ });
140
+ start();
141
+ }).catch(function (ref) {
142
+ console.log(175, ref);
143
+ });
144
+ } else if (_this.props.open) {
145
+ setTimeout(function () {
146
+ start();
147
+ }, 100);
148
+ }
149
+ });
150
+ _defineProperty(_assertThisInitialized(_this), "mapDrawMarker", function (lng, lat) {
151
+ if (_this.mark) {
152
+ _this.mark.setPosition(new AMap.LngLat(lng, lat));
153
+ } else {
154
+ _this.mark = new AMap.Marker({
155
+ map: map,
156
+ position: new AMap.LngLat(lng, lat) // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
157
+ });
158
+ }
159
+ map.setCenter([lng, lat]); // 设置地图中心点
160
+ });
161
+ // 搜索
162
+ _defineProperty(_assertThisInitialized(_this), "search", function (value) {
163
+ var _this$placeSearch;
164
+ if (!value) {
165
+ _this.setState({
166
+ searchList: [],
167
+ searchValue: value
168
+ });
169
+ return;
170
+ }
171
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
172
+ var that = _assertThisInitialized(_this);
173
+ that.setState({
174
+ searchList: [],
175
+ searchValue: value
176
+ });
177
+ console.log(211, !AMap);
178
+ if (!AMap) return;
179
+ (_this$placeSearch = _this.placeSearch) === null || _this$placeSearch === void 0 || _this$placeSearch.search(value, function (status, result) {
180
+ console.log(227, status, result);
181
+ if (result.info === 'OK') {
182
+ var _result$poiList;
183
+ that.setState({
184
+ searchList: ((_result$poiList = result.poiList) === null || _result$poiList === void 0 ? void 0 : _result$poiList.pois) || []
185
+ });
186
+ } else {
187
+ that.setState({
188
+ searchList: []
189
+ });
190
+ }
191
+ });
192
+
193
+ // AMap.plugin('AMap.Autocomplete', () => {
194
+ // // 实例化Autocomplete
195
+ // const autoOptions = {
196
+ // city: '全国',
197
+ // };
198
+ // const autoComplete = new AMap.Autocomplete(autoOptions);
199
+ // autoComplete.search(value, (status: string, result: any) => {
200
+ // console.log(220,status,result)
201
+ // // 搜索成功时,result即是对应的匹配数据
202
+ // if (status === 'complete') {
203
+ // that.setState({
204
+ // searchList: result.tips,
205
+ // });
206
+ // } else {
207
+ // that.setState({
208
+ // searchList: [],
209
+ // });
210
+ // }
211
+ // });
212
+ // });
213
+ });
214
+ // 搜索确定
215
+ _defineProperty(_assertThisInitialized(_this), "handleSelect", function (_value, opts) {
216
+ console.log(265, _value, opts);
217
+ // 根据地址获取经纬度,改变地图中心位置
218
+ _this.mapDrawMarker(opts.location.lng, opts.location.lat);
219
+ // map.setCenter([opts.location.R, opts.location.Q]); // 设置地图中心点
220
+ map.setZoom(16); // 设置地图层级
221
+ setTimeout(function () {
222
+ // 获取位置
223
+ _this.getAddress(opts.location.lng, opts.location.lat);
224
+ }, 500);
225
+ });
226
+ // 根据坐标获取地理位置
227
+ _defineProperty(_assertThisInitialized(_this), "getAddress", function (lng, lat) {
228
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
229
+ var that = _assertThisInitialized(_this);
230
+ geocoder.getAddress([lng, lat], function (status, result) {
231
+ if (status === 'complete' && result.regeocode) {
232
+ var address = result.regeocode.formattedAddress;
233
+ _this.setState({
234
+ province: result.regeocode.addressComponent.province,
235
+ // 省
236
+ city: result.regeocode.addressComponent.city ? result.regeocode.addressComponent.city : result.regeocode.addressComponent.province,
237
+ // 市
238
+ district: result.regeocode.addressComponent.district,
239
+ // 区
240
+ lng: lng,
241
+ lat: lat,
242
+ address: address
243
+ });
244
+ } else {
245
+ _this.setState({
246
+ province: null,
247
+ city: null,
248
+ district: null,
249
+ lng: lng,
250
+ lat: lat,
251
+ address: '获取地址失败'
252
+ });
253
+ }
254
+ });
255
+ // 周边搜索
256
+ var placeSearch = new AMap.PlaceSearch({
257
+ type: '商务住宅',
258
+ pageSize: 30,
259
+ // 单页显示结果条数
260
+ pageIndex: 1,
261
+ // 页码
262
+ extensions: 'all'
263
+ // map: map, // 展现结果的地图实例
264
+ });
265
+ var cpoint = [lng, lat]; // 中心点坐标
266
+ placeSearch.searchNearBy('', cpoint, 200, function (status, result) {
267
+ if (status === 'complete') {
268
+ that.setState({
269
+ periphery: result.poiList.pois
270
+ });
271
+ }
272
+ });
273
+ });
274
+ // 选择周边
275
+ _defineProperty(_assertThisInitialized(_this), "selectPeriphery", function (opts) {
276
+ // 获取地名
277
+ geocoder.getAddress("".concat(opts.location.R, ",").concat(opts.location.Q), function (status, result) {
278
+ if (status === 'complete' && result.regeocode) {
279
+ var address = result.regeocode.formattedAddress;
280
+ _this.setState({
281
+ province: result.regeocode.addressComponent.province,
282
+ // 省
283
+ city: result.regeocode.addressComponent.city ? result.regeocode.addressComponent.city : result.regeocode.addressComponent.province,
284
+ // 市
285
+ district: result.regeocode.addressComponent.district,
286
+ // 区
287
+ lng: opts.location.R,
288
+ lat: opts.location.Q,
289
+ address: address
290
+ });
291
+ } else {
292
+ _this.setState({
293
+ province: null,
294
+ city: null,
295
+ district: null,
296
+ lng: opts.location.R,
297
+ lat: opts.location.Q,
298
+ address: '获取地址失败'
299
+ });
300
+ }
301
+ });
302
+ });
303
+ // 定位
304
+ _defineProperty(_assertThisInitialized(_this), "geolocation", function () {
305
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
306
+ var that = _assertThisInitialized(_this);
307
+ // 获取当前定位
308
+ AMap.plugin('AMap.Geolocation', function () {
309
+ var geolocation = new AMap.Geolocation({
310
+ enableHighAccuracy: true,
311
+ // 是否使用高经度定位,默认:true
312
+ timeout: 10000,
313
+ // 超过10秒后停止定位,默认:5s
314
+ buttonPosition: 'LB',
315
+ // 定位按钮的停靠位置
316
+ buttonOffset: new AMap.Pixel(15, 10),
317
+ // 定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
318
+ zoomToAccuracy: true // 定位成功后是否自动调整地图视野到定位点
319
+ });
320
+ geolocation.getCurrentPosition(function (status, result) {
321
+ if (status === 'complete') {
322
+ // 定位成功默认设置到自己位置
323
+ map.setCenter([result.position.R, result.position.Q]); // 设置地图中心点
324
+ map.setZoom(16); // 设置地图层级
325
+
326
+ that.setState({
327
+ province: result.addressComponent.province,
328
+ // 省
329
+ city: result.addressComponent.city ? result.addressComponent.city : result.addressComponent.province,
330
+ // 市
331
+ district: result.addressComponent.district,
332
+ // 区
333
+ lng: result.position.R,
334
+ lat: result.position.Q,
335
+ address: result.formattedAddress
336
+ });
337
+ }
338
+ });
339
+ });
340
+ });
341
+ // 选中
342
+ _defineProperty(_assertThisInitialized(_this), "handleOk", function () {
343
+ _this.props.onSelect({
344
+ province: _this.state.province,
345
+ city: _this.state.city,
346
+ district: _this.state.district,
347
+ lng: _this.state.lng,
348
+ lat: _this.state.lat,
349
+ address: _this.state.address //this.props?.textAddress ? this.props?.textAddress : this.state.address,
350
+ });
351
+ _this.setState({
352
+ lngSearch: '',
353
+ // 搜索的经度
354
+ latSearch: '',
355
+ // 搜索的纬度
356
+ searchValue: undefined
357
+ });
358
+ _this.mark = null;
359
+ });
360
+ // 取消
361
+ _defineProperty(_assertThisInitialized(_this), "handleCancel", function () {
362
+ _this.props.onCancel();
363
+ _this.setState(function (state) {
364
+ return _objectSpread(_objectSpread({}, state), {}, {
365
+ address: '',
366
+ searchValue: ''
367
+ });
368
+ });
369
+ });
370
+ return _this;
371
+ }
372
+ _createClass(BiuMapSelectSite, [{
373
+ key: "componentDidUpdate",
374
+ value: function componentDidUpdate() {
375
+ if (this.isSuccess && this.props.open) {
376
+ var _this$state, _this$props2;
377
+ if (!((_this$state = this.state) !== null && _this$state !== void 0 && _this$state.searchValue)) {
378
+ var _this$props;
379
+ this.setState({
380
+ searchValue: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.textAddress
381
+ });
382
+ }
383
+ if ((_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.textAddress && AMap) {
384
+ var _this$props3;
385
+ this.search((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.textAddress);
386
+ this.isSuccess = false;
387
+ }
388
+ }
389
+ }
390
+ }, {
391
+ key: "render",
392
+ value: function render() {
393
+ var _this$props4 = this.props,
394
+ id = _this$props4.id,
395
+ open = _this$props4.open,
396
+ _this$props4$width = _this$props4.width,
397
+ width = _this$props4$width === void 0 ? '990px' : _this$props4$width,
398
+ _this$props4$height = _this$props4.height,
399
+ height = _this$props4$height === void 0 ? '410px' : _this$props4$height;
400
+ var _this$state2 = this.state,
401
+ searchList = _this$state2.searchList,
402
+ searchValue = _this$state2.searchValue;
403
+ return /*#__PURE__*/_jsx(StyledModal, {
404
+ title: "\u9009\u62E9\u4F4D\u7F6E",
405
+ open: open,
406
+ bodyStyle: {
407
+ padding: 0
408
+ },
409
+ cancelText: "\u53D6\u6D88",
410
+ okText: "\u786E\u5B9A",
411
+ onOk: this.handleOk,
412
+ onCancel: this.handleCancel,
413
+ destroyOnClose: true,
414
+ children: /*#__PURE__*/_jsxs("div", {
415
+ style: {
416
+ display: 'flex',
417
+ height: height,
418
+ width: width
419
+ },
420
+ children: [/*#__PURE__*/_jsxs(StyledMapDiv, {
421
+ children: [/*#__PURE__*/_jsx("div", {
422
+ id: id,
423
+ className: "map-content",
424
+ ref: this.init
425
+ }), /*#__PURE__*/_jsx(StyledGeoLocationDiv, {
426
+ onClick: this.geolocation
427
+ })]
428
+ }), /*#__PURE__*/_jsx(AutoComplete, {
429
+ style: {
430
+ width: '300px',
431
+ maxWidth: '300px',
432
+ marginBottom: '4px',
433
+ position: 'absolute',
434
+ top: '65px',
435
+ left: '8px'
436
+ },
437
+ onSelect: this.handleSelect,
438
+ placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",
439
+ onChange: ChainDebounceOrThrottle(this.search, 500),
440
+ value: searchValue,
441
+ children: searchList.map(function (item) {
442
+ return /*#__PURE__*/_jsx(AutoComplete.Option, _objectSpread(_objectSpread({}, item), {}, {
443
+ value: "".concat(item.name, " "),
444
+ children: item.name
445
+ }), "".concat(item.name, "- ").concat(item.id));
446
+ })
447
+ })]
448
+ })
449
+ });
450
+ }
451
+ }]);
452
+ return BiuMapSelectSite;
453
+ }(React.PureComponent);
@@ -0,0 +1,24 @@
1
+ import type { ModalProps } from 'antd';
2
+ import type { CSSProperties, ReactNode } from 'react';
3
+ import React from 'react';
4
+ type BiuModalPropsType = {
5
+ title: string;
6
+ open?: boolean;
7
+ onOk?: () => Promise<any>;
8
+ onCancel: () => void;
9
+ width?: number | string;
10
+ style?: CSSProperties;
11
+ footer?: ReactNode;
12
+ cancelText?: string;
13
+ okText?: string;
14
+ okType?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default';
15
+ hiddenOkButton?: boolean;
16
+ hiddenCancelButton?: boolean;
17
+ /**
18
+ * 是否默认全屏显示
19
+ */
20
+ fullScreen?: boolean;
21
+ onFullScreenChange?: (fullScreen: boolean) => void;
22
+ } & ModalProps;
23
+ export declare const BiuModal: React.MemoExoticComponent<(props: BiuModalPropsType) => import("react/jsx-runtime").JSX.Element>;
24
+ export {};