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,607 @@
1
+ var _excluded = ["value"],
2
+ _excluded2 = ["autoSize"],
3
+ _excluded3 = ["value"],
4
+ _excluded4 = ["value"],
5
+ _excluded5 = ["value", "showTime"],
6
+ _excluded6 = ["value"],
7
+ _excluded7 = ["value"],
8
+ _excluded8 = ["selectOptions"];
9
+ 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); }
10
+ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
11
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12
+ 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."); }
13
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
14
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
15
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
+ 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."); }
17
+ 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); }
18
+ 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; }
19
+ 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; } }
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+ 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; }
24
+ 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; }
25
+ 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; }
26
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27
+ 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); }
28
+ import { Checkbox } from 'antd';
29
+ import { omit, pick } from 'lodash';
30
+ import moment from 'moment';
31
+ import React, { forwardRef, useMemo } from 'react';
32
+ import { AccountSelect, AddressSelect, AddressTableSelect, AppliedgoodsTypeSelect, AutoCompleteSelect, BoxTypeSelect, CarrierInfoSelect, ChannelSelect, CityAreaCascader, CityAreaSelect, ClientInfoTableSelect, CustomMenu, DatabaseSelect, DepartmentTreeSelect, DepartOrgSelect, DicNameSelect, DicTypeSelect, DistributionCentreSelect, DockingPartySelect, EditLocationSelect, GoodsTypeSelect, InterfaceNameSelect, LpnSelect, OmsWarehouseSel, OrderTypeSelect, OrderTypeTableSelect, PersonnelInfoSelect, BusinessDistrictSelect, PlatformSelect, PropertNameSelect, ShipperTableSelect, SNInput, TableSelectLocal, UserSelect, WarehouseAreaSelect, WarehouseLoctionSelect, WarehouseSelect } from "./component";
33
+ import { BiuCustomSelect, BiuAInput, BiuATextArea, BiuAPassword, BiuAInputNumber, BiuADatePicker, BiuAMouthPicker, BiuARangePicker, BiuATimePicker } from "./..";
34
+ import { objToMoment } from "../../utils";
35
+ import { jsx as _jsx } from "react/jsx-runtime";
36
+ import { jsxs as _jsxs } from "react/jsx-runtime";
37
+ import { Fragment as _Fragment } from "react/jsx-runtime";
38
+ var DIFFPATH = ['valueType', 'label', 'ownerId', 'cardIdx', 'companyId', 'onChangeData', 'numberAfter', 'initialvalue', 'initialValue', 'columns', 'dataSource', 'initSelectValue', 'goodsAttribute', 'allowClear'];
39
+ export var BiuField = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
40
+ var valueType = props.valueType;
41
+ /**
42
+ * 样式需要合并同时也需要设置字段默认宽度为 100%,但不可写死
43
+ */
44
+
45
+ var commonProps = useMemo(function () {
46
+ return _objectSpread({
47
+ style: _objectSpread({
48
+ width: '100%'
49
+ }, props.style),
50
+ ref: ref
51
+ }, omit(props, DIFFPATH));
52
+ }, [props, ref]);
53
+ var diffProps = useMemo(function () {
54
+ return _objectSpread({
55
+ allowClear: true
56
+ }, pick(props, DIFFPATH));
57
+ }, [props]);
58
+ switch (valueType) {
59
+ case 'label':
60
+ {
61
+ var labelValues = commonProps.value,
62
+ labelResetProps = _objectWithoutProperties(commonProps, _excluded);
63
+ return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, labelResetProps), {}, {
64
+ children: /*#__PURE__*/_jsx("span", {
65
+ children: labelValues
66
+ })
67
+ }));
68
+ }
69
+ case 'text':
70
+ {
71
+ var _allowClear = diffProps.allowClear;
72
+ return /*#__PURE__*/_jsx(BiuAInput, _objectSpread({
73
+ allowClear: _allowClear,
74
+ placeholder: "\u8BF7\u8F93\u5165",
75
+ autoComplete: "off"
76
+ }, commonProps));
77
+ }
78
+ case 'textarea':
79
+ {
80
+ var _allowClear2 = diffProps.allowClear;
81
+ var _commonProps$autoSize = commonProps.autoSize,
82
+ autoSize = _commonProps$autoSize === void 0 ? {
83
+ minRows: 2,
84
+ maxRows: 6
85
+ } : _commonProps$autoSize,
86
+ RestProps = _objectWithoutProperties(commonProps, _excluded2);
87
+ return /*#__PURE__*/_jsx(BiuATextArea, _objectSpread({
88
+ allowClear: _allowClear2,
89
+ autoSize: autoSize,
90
+ placeholder: "\u8BF7\u8F93\u5165",
91
+ autoComplete: "off"
92
+ }, RestProps));
93
+ }
94
+ case 'number':
95
+ {
96
+ var numberAfter = diffProps.numberAfter;
97
+ var _allowClear3 = diffProps.allowClear,
98
+ initialvalue = diffProps.initialvalue,
99
+ initialValue = diffProps.initialValue;
100
+ if (numberAfter) {
101
+ return /*#__PURE__*/_jsxs("div", {
102
+ style: {
103
+ display: 'flex',
104
+ alignItems: 'center'
105
+ },
106
+ children: [/*#__PURE__*/_jsx(BiuAInputNumber, _objectSpread(_objectSpread({
107
+ allowClear: _allowClear3,
108
+ placeholder: "\u8BF7\u8F93\u5165"
109
+ }, commonProps), {}, {
110
+ value: initialValue || initialvalue || (commonProps === null || commonProps === void 0 ? void 0 : commonProps.value),
111
+ style: _objectSpread(_objectSpread({}, commonProps.style), {}, {
112
+ flex: 1
113
+ })
114
+ })), /*#__PURE__*/_jsx("span", {
115
+ style: {
116
+ marginLeft: 4
117
+ },
118
+ children: numberAfter
119
+ })]
120
+ });
121
+ }
122
+ return /*#__PURE__*/_jsx(BiuAInputNumber, _objectSpread(_objectSpread({
123
+ placeholder: "\u8BF7\u8F93\u5165"
124
+ }, commonProps), {}, {
125
+ value: initialValue || initialvalue || (commonProps === null || commonProps === void 0 ? void 0 : commonProps.value)
126
+ }));
127
+ }
128
+ case 'inputpassword':
129
+ {
130
+ var _allowClear4 = diffProps.allowClear;
131
+ return /*#__PURE__*/_jsx(BiuAPassword, _objectSpread({
132
+ allowClear: _allowClear4,
133
+ placeholder: "\u8BF7\u8F93\u5165",
134
+ autoComplete: "off"
135
+ }, commonProps));
136
+ }
137
+ case 'date':
138
+ {
139
+ var _allowClear5 = diffProps.allowClear;
140
+ var value = commonProps.value,
141
+ dateExtProps = _objectWithoutProperties(commonProps, _excluded3);
142
+ return /*#__PURE__*/_jsx(BiuADatePicker, _objectSpread({
143
+ allowClear: _allowClear5,
144
+ value: objToMoment(value)
145
+ }, dateExtProps));
146
+ }
147
+ case 'time':
148
+ {
149
+ var _value = commonProps.value,
150
+ _dateExtProps = _objectWithoutProperties(commonProps, _excluded4);
151
+ var _allowClear6 = diffProps.allowClear;
152
+ return /*#__PURE__*/_jsx(BiuATimePicker, _objectSpread({
153
+ allowClear: _allowClear6,
154
+ value: objToMoment(_value)
155
+ }, _dateExtProps));
156
+ }
157
+ case 'datetime':
158
+ {
159
+ var _value2 = commonProps.value,
160
+ showTime = commonProps.showTime,
161
+ _dateExtProps2 = _objectWithoutProperties(commonProps, _excluded5);
162
+ var _allowClear7 = diffProps.allowClear;
163
+ return /*#__PURE__*/_jsx(BiuADatePicker, _objectSpread({
164
+ allowClear: _allowClear7,
165
+ showTime: showTime || {
166
+ format: 'HH:mm:ss'
167
+ },
168
+ value: objToMoment(_value2)
169
+ }, _dateExtProps2));
170
+ }
171
+ case 'month':
172
+ {
173
+ var _value3 = commonProps.value,
174
+ _dateExtProps3 = _objectWithoutProperties(commonProps, _excluded6);
175
+ var _allowClear8 = diffProps.allowClear;
176
+ return /*#__PURE__*/_jsx(BiuAMouthPicker, _objectSpread({
177
+ allowClear: _allowClear8,
178
+ value: objToMoment(_value3)
179
+ }, _dateExtProps3));
180
+ }
181
+ case 'daterange':
182
+ {
183
+ var _value4 = commonProps.value,
184
+ _dateExtProps4 = _objectWithoutProperties(commonProps, _excluded7);
185
+ var _allowClear9 = diffProps.allowClear;
186
+ var _ref = _value4 || [undefined, undefined],
187
+ _ref2 = _slicedToArray(_ref, 2),
188
+ value1 = _ref2[0],
189
+ value2 = _ref2[1];
190
+ return /*#__PURE__*/_jsx(BiuARangePicker, _objectSpread({
191
+ allowClear: _allowClear9,
192
+ value: [objToMoment(value1), objToMoment(value2)],
193
+ ranges: {
194
+ 今天: [moment(), moment()],
195
+ 当月: [moment().startOf('months'), moment().endOf('months')],
196
+ 最近三天: [moment().subtract(2, 'days'), moment()],
197
+ 最近一周: [moment().subtract(1, 'weeks').add(1, 'days'), moment()],
198
+ 最近一月: [moment().subtract(1, 'months').add(1, 'days'), moment()],
199
+ 最近三月: [moment().subtract(3, 'months').add(1, 'days'), moment()]
200
+ }
201
+ }, _dateExtProps4));
202
+ }
203
+ case 'dicselect':
204
+ {
205
+ var _allowClear10 = diffProps.allowClear;
206
+ return /*#__PURE__*/_jsx(DicTypeSelect, _objectSpread({
207
+ allowClear: _allowClear10,
208
+ placeholder: "\u8BF7\u9009\u62E9"
209
+ }, commonProps));
210
+ }
211
+ case 'cityareacascader':
212
+ {
213
+ var _allowClear11 = diffProps.allowClear;
214
+ return /*#__PURE__*/_jsx(CityAreaCascader, _objectSpread({
215
+ allowClear: _allowClear11
216
+ }, commonProps));
217
+ }
218
+ case 'cityareaselect':
219
+ {
220
+ var onChangeData = diffProps.onChangeData,
221
+ _allowClear12 = diffProps.allowClear;
222
+ return /*#__PURE__*/_jsx(CityAreaSelect, _objectSpread({
223
+ allowClear: _allowClear12,
224
+ placeholder: "\u8BF7\u9009\u62E9",
225
+ onChangeData: onChangeData
226
+ }, commonProps));
227
+ }
228
+ case 'omswarehousesel':
229
+ {
230
+ var _onChangeData = diffProps.onChangeData,
231
+ _allowClear13 = diffProps.allowClear;
232
+ return /*#__PURE__*/_jsx(OmsWarehouseSel, _objectSpread({
233
+ allowClear: _allowClear13,
234
+ placeholder: "\u8BF7\u9009\u62E9",
235
+ onChangeData: _onChangeData
236
+ }, commonProps));
237
+ }
238
+ case 'departtreeselect':
239
+ {
240
+ var _allowClear14 = diffProps.allowClear;
241
+ return /*#__PURE__*/_jsx(DepartOrgSelect, _objectSpread({
242
+ allowClear: _allowClear14,
243
+ placeholder: "\u8BF7\u9009\u62E9"
244
+ }, commonProps));
245
+ }
246
+ case 'distributioncentreselect':
247
+ {
248
+ var companyId = diffProps.companyId,
249
+ _allowClear15 = diffProps.allowClear;
250
+ return /*#__PURE__*/_jsx(DistributionCentreSelect, _objectSpread({
251
+ allowClear: _allowClear15,
252
+ companyId: companyId,
253
+ placeholder: "\u8BF7\u9009\u62E9"
254
+ }, commonProps));
255
+ }
256
+ case 'warehouseinfoselect':
257
+ {
258
+ var _onChangeData2 = diffProps.onChangeData,
259
+ ownerId = diffProps.ownerId,
260
+ _allowClear16 = diffProps.allowClear;
261
+ return /*#__PURE__*/_jsx(WarehouseSelect, _objectSpread({
262
+ allowClear: _allowClear16,
263
+ onChangeData: _onChangeData2,
264
+ ownerId: ownerId,
265
+ placeholder: "\u8BF7\u9009\u62E9"
266
+ }, commonProps));
267
+ }
268
+ case 'warehouseloctionwelect':
269
+ {
270
+ var _allowClear17 = diffProps.allowClear;
271
+ return /*#__PURE__*/_jsx(WarehouseLoctionSelect, _objectSpread({
272
+ allowClear: _allowClear17,
273
+ placeholder: "\u8BF7\u9009\u62E9"
274
+ }, commonProps));
275
+ }
276
+ case 'editLocationSelect':
277
+ {
278
+ var _onChangeData3 = diffProps.onChangeData,
279
+ _allowClear18 = diffProps.allowClear;
280
+ return /*#__PURE__*/_jsx(EditLocationSelect, _objectSpread({
281
+ allowClear: _allowClear18,
282
+ placeholder: "\u8BF7\u9009\u62E9",
283
+ onChangeData: _onChangeData3
284
+ }, commonProps));
285
+ }
286
+ case 'propertNameSelect':
287
+ {
288
+ var _allowClear19 = diffProps.allowClear;
289
+ return /*#__PURE__*/_jsx(PropertNameSelect, _objectSpread({
290
+ allowClear: _allowClear19,
291
+ placeholder: "\u8BF7\u9009\u62E9"
292
+ }, commonProps));
293
+ }
294
+ case 'ordertypeselect':
295
+ {
296
+ var _ownerId = diffProps.ownerId,
297
+ _allowClear20 = diffProps.allowClear;
298
+ return /*#__PURE__*/_jsx(OrderTypeSelect, _objectSpread({
299
+ ownerId: _ownerId,
300
+ allowClear: _allowClear20,
301
+ placeholder: "\u8BF7\u9009\u62E9"
302
+ }, commonProps));
303
+ }
304
+ case 'dicselectname':
305
+ {
306
+ var _allowClear21 = diffProps.allowClear;
307
+ return /*#__PURE__*/_jsx(DicNameSelect, _objectSpread({
308
+ allowClear: _allowClear21,
309
+ placeholder: "\u8BF7\u9009\u62E9"
310
+ }, commonProps));
311
+ }
312
+ case 'databaseSelect':
313
+ {
314
+ var _allowClear22 = diffProps.allowClear;
315
+ return /*#__PURE__*/_jsx(DatabaseSelect, _objectSpread({
316
+ allowClear: _allowClear22
317
+ }, commonProps));
318
+ }
319
+ case 'select':
320
+ {
321
+ var _commonProps$selectOp = commonProps.selectOptions,
322
+ selectOptions = _commonProps$selectOp === void 0 ? [] : _commonProps$selectOp,
323
+ selectRestProps = _objectWithoutProperties(commonProps, _excluded8);
324
+ var _allowClear23 = diffProps.allowClear;
325
+ return /*#__PURE__*/_jsx(BiuCustomSelect, _objectSpread({
326
+ allowClear: _allowClear23,
327
+ optionList: function optionList() {
328
+ return _toConsumableArray(selectOptions);
329
+ }
330
+ }, selectRestProps));
331
+ }
332
+ case 'personnelinfoselect':
333
+ {
334
+ var _selectRestProps = Object.assign({}, (_objectDestructuringEmpty(commonProps), commonProps));
335
+ var _onChangeData4 = diffProps.onChangeData,
336
+ _allowClear24 = diffProps.allowClear;
337
+ return /*#__PURE__*/_jsx(PersonnelInfoSelect, _objectSpread({
338
+ onChangeData: _onChangeData4,
339
+ allowClear: _allowClear24
340
+ }, _selectRestProps));
341
+ }
342
+ case 'businessdistrictselect':
343
+ {
344
+ var _selectRestProps2 = Object.assign({}, (_objectDestructuringEmpty(commonProps), commonProps));
345
+ var _onChangeData5 = diffProps.onChangeData,
346
+ _allowClear25 = diffProps.allowClear;
347
+ return /*#__PURE__*/_jsx(BusinessDistrictSelect, _objectSpread({
348
+ onChangeData: _onChangeData5,
349
+ allowClear: _allowClear25
350
+ }, _selectRestProps2));
351
+ }
352
+ case 'checkbox':
353
+ {
354
+ var label = diffProps.label;
355
+ return /*#__PURE__*/_jsx(Checkbox, _objectSpread(_objectSpread({}, commonProps), {}, {
356
+ children: label
357
+ }));
358
+ }
359
+ case 'checkboxgroup':
360
+ {
361
+ return /*#__PURE__*/_jsx(Checkbox.Group, _objectSpread({}, commonProps));
362
+ }
363
+ case 'clientselect':
364
+ {
365
+ var _onChangeData6 = diffProps.onChangeData,
366
+ _allowClear26 = diffProps.allowClear;
367
+ return /*#__PURE__*/_jsx(ClientInfoTableSelect, _objectSpread({
368
+ allowClear: _allowClear26,
369
+ onChangeData: _onChangeData6
370
+ }, commonProps));
371
+ }
372
+ case 'shipperselect':
373
+ {
374
+ var _onChangeData7 = diffProps.onChangeData,
375
+ _allowClear27 = diffProps.allowClear;
376
+ return /*#__PURE__*/_jsx(ShipperTableSelect, _objectSpread({
377
+ allowClear: _allowClear27,
378
+ onChangeData: _onChangeData7
379
+ }, commonProps));
380
+ }
381
+ case 'warehouseareaselect':
382
+ {
383
+ var _onChangeData8 = diffProps.onChangeData,
384
+ _allowClear28 = diffProps.allowClear;
385
+ return /*#__PURE__*/_jsx(WarehouseAreaSelect, _objectSpread({
386
+ allowClear: _allowClear28,
387
+ onChangeData: _onChangeData8,
388
+ placeholder: "\u8BF7\u9009\u62E9"
389
+ }, commonProps));
390
+ }
391
+ case 'ordertypetableselect':
392
+ return /*#__PURE__*/_jsx(OrderTypeTableSelect, _objectSpread({}, commonProps));
393
+ case 'departorgselect':
394
+ var filter = diffProps.filter;
395
+ return /*#__PURE__*/_jsx(DepartOrgSelect, _objectSpread({
396
+ filter: filter
397
+ }, commonProps));
398
+ case 'departmentTreeSelect':
399
+ return /*#__PURE__*/_jsx(DepartmentTreeSelect, _objectSpread({}, commonProps));
400
+ case 'goodstypeselect':
401
+ {
402
+ var _ownerId2 = diffProps.ownerId,
403
+ _allowClear29 = diffProps.allowClear;
404
+ return /*#__PURE__*/_jsx(GoodsTypeSelect, _objectSpread({
405
+ allowClear: _allowClear29,
406
+ ownerId: _ownerId2,
407
+ placeholder: "\u8BF7\u9009\u62E9"
408
+ }, commonProps));
409
+ }
410
+ case 'appliedgoodstypeselect':
411
+ {
412
+ var _ownerId3 = diffProps.ownerId,
413
+ _allowClear30 = diffProps.allowClear;
414
+ return /*#__PURE__*/_jsx(AppliedgoodsTypeSelect, _objectSpread({
415
+ allowClear: _allowClear30,
416
+ ownerId: _ownerId3,
417
+ placeholder: "\u8BF7\u9009\u62E9"
418
+ }, commonProps));
419
+ }
420
+ case 'carrierinfoselect':
421
+ {
422
+ var _onChangeData9 = diffProps.onChangeData,
423
+ _allowClear31 = diffProps.allowClear;
424
+ return /*#__PURE__*/_jsx(CarrierInfoSelect, _objectSpread({
425
+ allowClear: _allowClear31,
426
+ placeholder: "\u8BF7\u9009\u62E9",
427
+ onChangeData: _onChangeData9
428
+ }, commonProps));
429
+ }
430
+ case 'customer':
431
+ {
432
+ var generalCustomElement = commonProps.generalCustomElement;
433
+ if (generalCustomElement) {
434
+ return generalCustomElement(props);
435
+ }
436
+ return /*#__PURE__*/_jsx(_Fragment, {});
437
+ }
438
+ case 'goodsselect':
439
+ {
440
+ var columns = diffProps.columns,
441
+ dataSource = diffProps.dataSource,
442
+ _onChangeData10 = diffProps.onChangeData,
443
+ _ownerId4 = diffProps.ownerId,
444
+ initSelectValue = diffProps.initSelectValue,
445
+ _initialvalue = diffProps.initialvalue,
446
+ _initialValue = diffProps.initialValue,
447
+ _allowClear32 = diffProps.allowClear;
448
+ return /*#__PURE__*/_jsx(TableSelectLocal, _objectSpread({
449
+ type: "good",
450
+ allowClear: _allowClear32,
451
+ initialValue: _initialvalue || _initialValue,
452
+ onChangeData: _onChangeData10,
453
+ columns: columns,
454
+ dataSource: dataSource,
455
+ ownerId: _ownerId4,
456
+ initSelectValue: initSelectValue
457
+ }, commonProps));
458
+ }
459
+ case 'tableselectlocal':
460
+ {
461
+ var _allowClear33 = diffProps.allowClear,
462
+ _columns = diffProps.columns,
463
+ _dataSource = diffProps.dataSource,
464
+ _onChangeData11 = diffProps.onChangeData,
465
+ _ownerId5 = diffProps.ownerId,
466
+ _initSelectValue = diffProps.initSelectValue,
467
+ _initialvalue2 = diffProps.initialvalue,
468
+ _initialValue2 = diffProps.initialValue,
469
+ goodsAttribute = diffProps.goodsAttribute;
470
+ return /*#__PURE__*/_jsx(TableSelectLocal, _objectSpread({
471
+ allowClear: _allowClear33,
472
+ initialValue: _initialvalue2 || _initialValue2,
473
+ onChangeData: _onChangeData11,
474
+ columns: _columns,
475
+ dataSource: _dataSource,
476
+ initSelectValue: _initSelectValue,
477
+ ownerId: _ownerId5,
478
+ goodsAttribute: goodsAttribute
479
+ }, commonProps));
480
+ }
481
+ case 'dockingPartySelect':
482
+ {
483
+ var _onChangeData12 = diffProps.onChangeData,
484
+ _allowClear34 = diffProps.allowClear;
485
+ return /*#__PURE__*/_jsx(DockingPartySelect, _objectSpread({
486
+ allowClear: _allowClear34,
487
+ onChangeData: _onChangeData12,
488
+ placeholder: "\u8BF7\u9009\u62E9"
489
+ }, commonProps));
490
+ }
491
+ case 'interfaceNameSelect':
492
+ {
493
+ var _onChangeData13 = diffProps.onChangeData,
494
+ _allowClear35 = diffProps.allowClear;
495
+ return /*#__PURE__*/_jsx(InterfaceNameSelect, _objectSpread({
496
+ allowClear: _allowClear35,
497
+ onChangeData: _onChangeData13,
498
+ placeholder: "\u8BF7\u9009\u62E9"
499
+ }, commonProps));
500
+ }
501
+ case 'boxtypeselect':
502
+ return /*#__PURE__*/_jsx(BoxTypeSelect, _objectSpread({}, commonProps));
503
+ case 'userSelect':
504
+ {
505
+ var _onChangeData14 = diffProps.onChangeData,
506
+ _allowClear36 = diffProps.allowClear;
507
+ return /*#__PURE__*/_jsx(UserSelect, _objectSpread({
508
+ allowClear: _allowClear36,
509
+ onChangeData: _onChangeData14,
510
+ placeholder: "\u8BF7\u9009\u62E9"
511
+ }, commonProps));
512
+ }
513
+ case 'sninput':
514
+ {
515
+ var _onChangeData15 = diffProps.onChangeData,
516
+ serialNumber = diffProps.serialNumber,
517
+ _ownerId6 = diffProps.ownerId,
518
+ _allowClear37 = diffProps.allowClear;
519
+ return /*#__PURE__*/_jsx(SNInput, _objectSpread({
520
+ allowClear: _allowClear37,
521
+ onChangeData: _onChangeData15,
522
+ ownerId: _ownerId6,
523
+ serialNumber: serialNumber
524
+ }, commonProps));
525
+ }
526
+ case 'channelSelect':
527
+ {
528
+ var _onChangeData16 = diffProps.onChangeData,
529
+ _allowClear38 = diffProps.allowClear;
530
+ return /*#__PURE__*/_jsx(ChannelSelect, _objectSpread({
531
+ allowClear: _allowClear38,
532
+ onChangeData: _onChangeData16,
533
+ placeholder: "\u8BF7\u9009\u62E9"
534
+ }, commonProps));
535
+ }
536
+ case 'customMenu':
537
+ {
538
+ var _allowClear39 = diffProps.allowClear;
539
+ return /*#__PURE__*/_jsx(CustomMenu, _objectSpread({
540
+ allowClear: _allowClear39,
541
+ placeholder: "\u8BF7\u9009\u62E9"
542
+ }, commonProps));
543
+ }
544
+ case 'lpnselect':
545
+ {
546
+ var _onChangeData17 = diffProps.onChangeData,
547
+ _allowClear40 = diffProps.allowClear;
548
+ return /*#__PURE__*/_jsx(LpnSelect, _objectSpread({
549
+ allowClear: _allowClear40,
550
+ onChangeData: _onChangeData17,
551
+ placeholder: "\u8BF7\u9009\u62E9"
552
+ }, commonProps));
553
+ }
554
+ case 'autoComplete':
555
+ {
556
+ var _onChangeData18 = diffProps.onChangeData,
557
+ _allowClear41 = diffProps.allowClear;
558
+ return /*#__PURE__*/_jsx(AutoCompleteSelect, _objectSpread({
559
+ allowClear: _allowClear41,
560
+ onChangeData: _onChangeData18
561
+ }, commonProps));
562
+ }
563
+ case 'platformSelect':
564
+ {
565
+ var _onChangeData19 = diffProps.onChangeData,
566
+ _allowClear42 = diffProps.allowClear;
567
+ return /*#__PURE__*/_jsx(PlatformSelect, _objectSpread({
568
+ allowClear: _allowClear42,
569
+ onChangeData: _onChangeData19,
570
+ placeholder: "\u8BF7\u9009\u62E9"
571
+ }, commonProps));
572
+ }
573
+ case 'accountSelect':
574
+ {
575
+ var _onChangeData20 = diffProps.onChangeData,
576
+ _allowClear43 = diffProps.allowClear;
577
+ return /*#__PURE__*/_jsx(AccountSelect, _objectSpread({
578
+ allowClear: _allowClear43,
579
+ onChangeData: _onChangeData20
580
+ }, commonProps));
581
+ }
582
+ case 'addressSelect':
583
+ {
584
+ var _onChangeData21 = diffProps.onChangeData,
585
+ _allowClear44 = diffProps.allowClear;
586
+ return /*#__PURE__*/_jsx(AddressSelect, _objectSpread({
587
+ allowClear: _allowClear44,
588
+ onChangeData: _onChangeData21
589
+ }, commonProps));
590
+ }
591
+ case 'addressTableSelect':
592
+ {
593
+ var _onChangeData22 = diffProps.onChangeData,
594
+ _allowClear45 = diffProps.allowClear;
595
+ return /*#__PURE__*/_jsx(AddressTableSelect, _objectSpread({
596
+ allowClear: _allowClear45,
597
+ onChangeData: _onChangeData22
598
+ }, commonProps));
599
+ }
600
+ default:
601
+ var allowClear = diffProps.allowClear;
602
+ return /*#__PURE__*/_jsx(BiuAInput, _objectSpread({
603
+ allowClear: allowClear,
604
+ placeholder: "\u8BF7\u8F93\u5165"
605
+ }, commonProps));
606
+ }
607
+ }));
@@ -0,0 +1,11 @@
1
+ import type { ChangeEventHandler } from 'react';
2
+ import React from 'react';
3
+ export type FileInputPropsType = {
4
+ text?: string;
5
+ loading?: boolean;
6
+ disabled?: boolean;
7
+ accept?: string;
8
+ onChange?: ChangeEventHandler<any>;
9
+ onImportFile?: (files: FileList | null) => void;
10
+ };
11
+ export declare const BiuFileInput: React.MemoExoticComponent<React.ForwardRefExoticComponent<FileInputPropsType & React.RefAttributes<unknown>>>;
@@ -0,0 +1,53 @@
1
+ import { UploadOutlined } from '@ant-design/icons';
2
+ import { Button } from 'antd';
3
+ import React, { forwardRef } from 'react';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ export var BiuFileInput = /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props, ref) {
7
+ var _props$text = props.text,
8
+ text = _props$text === void 0 ? '选择文件' : _props$text,
9
+ _props$loading = props.loading,
10
+ loading = _props$loading === void 0 ? false : _props$loading,
11
+ accept = props.accept,
12
+ _props$disabled = props.disabled,
13
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
14
+ _onChange = props.onChange,
15
+ onImportFile = props.onImportFile;
16
+ return /*#__PURE__*/_jsxs("div", {
17
+ style: {
18
+ position: 'relative'
19
+ },
20
+ children: [/*#__PURE__*/_jsxs(Button, {
21
+ loading: loading,
22
+ disabled: disabled,
23
+ children: [loading ? null : /*#__PURE__*/_jsx(UploadOutlined, {}), text]
24
+ }), /*#__PURE__*/_jsx("input", {
25
+ ref: ref,
26
+ type: "file",
27
+ accept: accept,
28
+ disabled: disabled || loading,
29
+ style: {
30
+ position: 'absolute',
31
+ top: 0,
32
+ width: '100%',
33
+ height: '100%',
34
+ opacity: 0,
35
+ cursor: 'pointer',
36
+ fontSize: 0
37
+ },
38
+ onClick: function onClick(event) {
39
+ var _event$target;
40
+ // eslint-disable-next-line no-param-reassign
41
+ if (event !== null && event !== void 0 && (_event$target = event.target) !== null && _event$target !== void 0 && _event$target.value) event.target.value = null;
42
+ },
43
+ onChange: function onChange(e) {
44
+ if (_onChange) {
45
+ _onChange(e);
46
+ }
47
+ if (onImportFile) {
48
+ onImportFile(e.target.files);
49
+ }
50
+ }
51
+ })]
52
+ });
53
+ }));
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { BiuFormRefProps } from './type';
3
+ export declare const BiuForm: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
4
+ columns: import("..").BiuColumnType[];
5
+ headLine?: number | undefined;
6
+ labelWidth?: string | number | undefined;
7
+ onSubmit?: ((params: Record<string, unknown>) => any) | undefined;
8
+ onReset?: (() => void) | undefined;
9
+ type?: import("..").BiuFormType | undefined;
10
+ operationConfig?: import("..").opeationConfig | undefined;
11
+ } & import("antd/es/form").FormProps<any> & React.RefAttributes<BiuFormRefProps>>>;
12
+ export * from './type';