wt-enjoy-link-antd-repack 4.1.17

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 (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,117 @@
1
+ /// <reference types="react" />
2
+ import type { TableProps } from 'antd';
3
+ import type { FormProps, Rule } from 'antd/es/form';
4
+ import type { BiuFieldType, SelectOption } from "..";
5
+ type spanTypes = {
6
+ xs: {
7
+ span: number;
8
+ };
9
+ sm: {
10
+ span: number;
11
+ };
12
+ md: {
13
+ span: number;
14
+ };
15
+ lg: {
16
+ span: number;
17
+ };
18
+ xl: {
19
+ span: number;
20
+ };
21
+ xxl: {
22
+ span: number;
23
+ };
24
+ };
25
+ export type FormItemOptions = {
26
+ formItemType?: BiuFieldType | 'slot';
27
+ generalCustomElement?: (props?: FormItemOptions) => any;
28
+ label?: React.ReactNode;
29
+ id?: string;
30
+ rules?: Rule[];
31
+ required?: boolean;
32
+ options?: any;
33
+ layout?: 'default' | 'large' | 'small';
34
+ requiredmessage?: string;
35
+ visible?: (() => boolean) | boolean;
36
+ cardIdx?: number;
37
+ systype?: 'PUB' | 'VMS' | 'OMS' | 'CRM' | 'WMS' | 'TMS' | 'VMSS';
38
+ selectOptions?: SelectOption[];
39
+ clientType?: 1 | 0;
40
+ labelLetter?: number;
41
+ span?: number | spanTypes;
42
+ width?: number;
43
+ [x: string]: any;
44
+ };
45
+ /**
46
+ * 可编辑表格列配置详细信息
47
+ */
48
+ export type CustomerOperColumnProps<T = any> = {
49
+ width?: number;
50
+ /**
51
+ * 去除默认宽度,此列无宽度
52
+ */
53
+ nowidth?: boolean;
54
+ onChange?: (value: any, operRow: T) => any;
55
+ onChangeData?: (value: any, operRow: T, index: any) => any;
56
+ /**
57
+ * 触发onChange或者onChangeData时,提供获取value值的方法
58
+ * 默认直接获取第一个参数为value值
59
+ */
60
+ getChangeValue?: (e: any, v: any) => any;
61
+ /**
62
+ * 返回参数时,是否过滤此字段
63
+ */
64
+ omit?: boolean;
65
+ /**
66
+ * 初始值
67
+ */
68
+ initialvalue?: any;
69
+ } & FormItemOptions;
70
+ /**
71
+ * 可编辑表格配置
72
+ */
73
+ export type CustomerGoodsTableProps<T = any> = {
74
+ /**
75
+ * 可编辑表格初始列表
76
+ */
77
+ initialList?: T[];
78
+ /**
79
+ * 可编辑表格,表格配置项
80
+ */
81
+ tableProps?: TableProps<T>;
82
+ /**
83
+ * 可编辑表格列配置
84
+ */
85
+ columnsOptions: CustomerOperColumnProps<T>[];
86
+ /**
87
+ * 启用,禁用可编辑表格
88
+ */
89
+ disabled?: boolean;
90
+ /**
91
+ * 获取值之前的验证,返回true表示验证成功,否则,返回错误信息
92
+ */
93
+ verify?: (fieldValue: string, index: number) => string | boolean;
94
+ renderForm?: (record: any) => Record<string, any>;
95
+ goodsEffect?: any;
96
+ /**
97
+ * 子组件更新父组件调用方法(EditTable使用)
98
+ */
99
+ delInitalList?: (record: any) => void;
100
+ iteratee?: string;
101
+ /**
102
+ * 添加按钮隐藏
103
+ */
104
+ hideAdd?: boolean;
105
+ tabH?: number;
106
+ } & FormProps;
107
+ export type OperRowType = {
108
+ weight: number;
109
+ volume: number;
110
+ numberTotal: number;
111
+ goodsWeight: number;
112
+ goodsVolume: number;
113
+ secondCount: number;
114
+ thirdCount: number;
115
+ goodsPrice: number;
116
+ };
117
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,48 @@
1
+ import type { CustomerOperColumnProps, FormItemOptions, OperRowType } from './type';
2
+ import type { BiuColumnType } from "..";
3
+ /**
4
+ * 根据拓展属性生成自定义可编辑表格的配置项
5
+ * @param extendAttribute 拓展属性对象
6
+ * @param requiredKey 当前必填类型
7
+ * @param type 类型:modal框:modal 表格:table
8
+ */
9
+ export declare const extendAttributeToFormItemOptions: (extendAttribute: Record<string, any>, requiredKey: string, prefix?: string, type?: string) => FormItemOptions;
10
+ /**
11
+ * 根据货主生成可编辑列的配置项数组
12
+ * @param clientInfo 货主
13
+ * @param requiredKey 当前调用场景必填字段
14
+ */
15
+ export declare const createOperGoodsTableColumnsOptions: (clientInfo: any, requiredKey: string) => CustomerOperColumnProps[];
16
+ export declare const calcGoodsNumberTotal: (operRow?: any, data?: any) => number;
17
+ /**
18
+ * 货物可编辑表格,数量计算
19
+ * @param operRow 当前操作列
20
+ * @param data 货物信息
21
+ */
22
+ export declare const calcGoodsTotal: (operRow?: any, data?: any) => OperRowType;
23
+ /**
24
+ * 根据货主生成正常表格的配置项集合
25
+ * @param clientInfo 货主
26
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
27
+ * @param requiredKey 必填字段
28
+ */
29
+ export declare const createGoodsTableColumns: (clientInfo: any, prefix?: string, requiredKey?: string) => any;
30
+ /**
31
+ * 根据货主的拓展属性生成通用表格组件的配置项
32
+ * @param clientInfo 货主
33
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
34
+ */
35
+ export declare const extendAttributeToTableColumns: (extendAttribute: any, prefix?: string, goodsStatus?: boolean) => BiuColumnType;
36
+ /**
37
+ * 根据货主生成通用表格组件的配置项集合
38
+ * @param clientInfo 货主
39
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
40
+ * @param goodsStatus 商品扩展性,true:ext false:goods_ext(默认)
41
+ */
42
+ export declare const createTableColumns: (clientInfo: any, prefix?: string, goodsStatus?: boolean) => BiuColumnType[];
43
+ /**
44
+ * 计算表格指定列配置的总宽度
45
+ * @param cols 表格列配置
46
+ * @param suppWidth 补充宽度(一般为复选框的宽度,默认60;但是当表格列配置中存在没有宽度的列时,需要指定一个宽度供未指定宽度列平摊)
47
+ */
48
+ export declare const calcColsTotalWidth: (cols: any[], suppWidth?: number) => number;
@@ -0,0 +1,236 @@
1
+ import { round, toString } from 'lodash';
2
+ import { DATE_FORMAT, EXT_INFO } from "../../constant";
3
+
4
+ // 货物拓展属性
5
+ var GOODS_EXT_INFO = {
6
+ objName: 'goodsInfoExt',
7
+ // 货物属性返回时,拓展属性的包装对象
8
+ prefix: 'good_ext' // 货物拓展属性生成的时候,前缀
9
+ };
10
+ var convertSelectOptions = function convertSelectOptions() {
11
+ var selectContent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
12
+ var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ';';
13
+ return selectContent.split(separator).map(function (str) {
14
+ return {
15
+ value: str,
16
+ label: str
17
+ };
18
+ });
19
+ };
20
+
21
+ /**
22
+ * 根据拓展属性生成自定义可编辑表格的配置项
23
+ * @param extendAttribute 拓展属性对象
24
+ * @param requiredKey 当前必填类型
25
+ * @param type 类型:modal框:modal 表格:table
26
+ */
27
+ export var extendAttributeToFormItemOptions = function extendAttributeToFormItemOptions(extendAttribute, requiredKey, prefix, type) {
28
+ var required = !!requiredKey && +extendAttribute[requiredKey] === 1;
29
+ var obj = {
30
+ label: extendAttribute.attributeName,
31
+ id: "".concat(prefix || EXT_INFO.prefix).concat(extendAttribute.attributeNumber),
32
+ required: required,
33
+ className: "ext-col-thead ".concat(required ? 'thead-item-required' : ''),
34
+ disabled: extendAttribute.isReadonly === 1
35
+ };
36
+ obj.formItemType = function () {
37
+ switch (toString(extendAttribute.controlType)) {
38
+ case '1':
39
+ return 'text';
40
+ case '2':
41
+ obj.selectOptions = convertSelectOptions(extendAttribute.selectContent);
42
+ // obj.getPopupContainer = (triggerNode: any) => {
43
+ // if (triggerNode) return triggerNode.parentElement;
44
+ // return document.body;
45
+ // };
46
+ return 'select';
47
+ case '3':
48
+ if (type === 'modal') {
49
+ obj.getPopupContainer = function (triggerNode) {
50
+ if (triggerNode) return triggerNode.parentElement;
51
+ return document.body;
52
+ };
53
+ }
54
+ obj.format = DATE_FORMAT.month;
55
+ return 'month';
56
+ case '4':
57
+ if (type === 'modal') {
58
+ obj.getPopupContainer = function (triggerNode) {
59
+ if (triggerNode) return triggerNode.parentElement;
60
+ return document.body;
61
+ };
62
+ }
63
+ obj.format = DATE_FORMAT.day;
64
+ return 'date';
65
+ default:
66
+ return 'text';
67
+ }
68
+ }();
69
+ return obj;
70
+ };
71
+
72
+ /**
73
+ * 根据货主生成可编辑列的配置项数组
74
+ * @param clientInfo 货主
75
+ * @param requiredKey 当前调用场景必填字段
76
+ */
77
+ export var createOperGoodsTableColumnsOptions = function createOperGoodsTableColumnsOptions(clientInfo, requiredKey) {
78
+ var colProps = [];
79
+ var _clientInfo$extendAtt = clientInfo.extendAttributeList,
80
+ extendAttributeList = _clientInfo$extendAtt === void 0 ? [] : _clientInfo$extendAtt;
81
+ extendAttributeList.forEach(function (extendAttribute) {
82
+ // 货物属性只做展示,选择SKU商品的时候带出
83
+ if (toString(extendAttribute.attributeType) === '1') {
84
+ colProps.push({
85
+ label: extendAttribute.attributeName,
86
+ id: "".concat(GOODS_EXT_INFO.prefix).concat(extendAttribute.attributeNumber),
87
+ className: 'ext-col-thead'
88
+ });
89
+ } else {
90
+ colProps.push(extendAttributeToFormItemOptions(extendAttribute, requiredKey));
91
+ }
92
+ });
93
+ return colProps;
94
+ };
95
+ export var calcGoodsNumberTotal = function calcGoodsNumberTotal() {
96
+ var operRow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
97
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
98
+ // 总数量 = 数量一级*1 + 数量二级*一二级转换数量 + 数量三级*一三级转换数量
99
+ if (operRow.numberOne === undefined && operRow.numberTwo === undefined && operRow.numberThree === undefined) {
100
+ return parseFloat(operRow.numberTotal || 0);
101
+ }
102
+ var numberTotal = parseFloat(operRow.numberOne || 0) + parseFloat(operRow.numberTwo || 0) * parseFloat(data.secondCount || operRow.secondCount || 0) + parseFloat(operRow.numberThree || 0) * parseFloat(data.thirdCount || operRow.thirdCount || 0);
103
+ return numberTotal;
104
+ };
105
+
106
+ /**
107
+ * 货物可编辑表格,数量计算
108
+ * @param operRow 当前操作列
109
+ * @param data 货物信息
110
+ */
111
+ export var calcGoodsTotal = function calcGoodsTotal() {
112
+ var operRow = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
113
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
114
+ // 总数量 = 数量一级*1 + 数量二级*一二级转换数量 + 数量三级*一三级转换数量
115
+ var numberTotal = calcGoodsNumberTotal(operRow, data);
116
+ return {
117
+ goodsWeight: data.grossWeight || operRow.goodsWeight || 0,
118
+ goodsVolume: data.volume || operRow.goodsVolume || 0,
119
+ secondCount: data.secondCount || operRow.secondCount || 0,
120
+ thirdCount: data.thirdCount || operRow.thirdCount || 0,
121
+ numberTotal: round(numberTotal, 3),
122
+ weight: round(numberTotal * parseFloat(data.grossWeight || operRow.goodsWeight || 0), 3),
123
+ volume: round(numberTotal * parseFloat(data.volume || operRow.goodsVolume || 0), 3),
124
+ goodsPrice: round(numberTotal * parseFloat(data.price || operRow.goodsPrice || 0), 3)
125
+ };
126
+ };
127
+
128
+ /**
129
+ * 根据货主的拓展属性生成正常表格的配置项
130
+ * @param clientInfo 货主
131
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
132
+ */
133
+ var extendAttributeToGoodsTableColumns = function extendAttributeToGoodsTableColumns(extendAttribute, prefix, requiredKey) {
134
+ var required = !!requiredKey && +extendAttribute[requiredKey] === 1;
135
+ var key = "".concat(prefix || EXT_INFO.prefix).concat(extendAttribute.attributeNumber);
136
+ if (extendAttribute.attributeType === 1) {
137
+ key = "".concat(GOODS_EXT_INFO.prefix).concat(extendAttribute.attributeNumber);
138
+ }
139
+ var classDate = {
140
+ '3': 'ext-col-month',
141
+ '4': 'ext-col-date'
142
+ }[toString(extendAttribute.controlType)];
143
+ var obj = {
144
+ width: 100,
145
+ dataIndex: key,
146
+ className: "ext-col-thead ".concat(classDate, " ").concat(required ? 'thead-item-required' : ''),
147
+ title: extendAttribute.attributeName,
148
+ key: key
149
+ };
150
+ return obj;
151
+ };
152
+
153
+ /**
154
+ * 根据货主生成正常表格的配置项集合
155
+ * @param clientInfo 货主
156
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
157
+ * @param requiredKey 必填字段
158
+ */
159
+ export var createGoodsTableColumns = function createGoodsTableColumns(clientInfo, prefix, requiredKey) {
160
+ var _clientInfo$extendAtt2 = clientInfo.extendAttributeList,
161
+ extendAttributeList = _clientInfo$extendAtt2 === void 0 ? [] : _clientInfo$extendAtt2;
162
+ if (!extendAttributeList || !extendAttributeList.length) return [];
163
+ return extendAttributeList.map(function (item) {
164
+ return extendAttributeToGoodsTableColumns(item, prefix, requiredKey);
165
+ });
166
+ };
167
+
168
+ /**
169
+ * 根据货主的拓展属性生成通用表格组件的配置项
170
+ * @param clientInfo 货主
171
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
172
+ */
173
+ export var extendAttributeToTableColumns = function extendAttributeToTableColumns(extendAttribute, prefix, goodsStatus) {
174
+ var dataIndex = "".concat(prefix || EXT_INFO.prefix).concat(extendAttribute.attributeNumber);
175
+ if (extendAttribute.attributeType === 1) {
176
+ dataIndex = goodsStatus ? "".concat(EXT_INFO.prefix).concat(extendAttribute.attributeNumber) : "".concat(GOODS_EXT_INFO.prefix).concat(extendAttribute.attributeNumber);
177
+ }
178
+ var obj = {
179
+ ellipsis: true,
180
+ width: 100,
181
+ dataIndex: dataIndex,
182
+ className: 'ext-col-thead',
183
+ title: extendAttribute.attributeName,
184
+ noSearch: true
185
+ };
186
+ obj.type = function () {
187
+ switch (toString(extendAttribute.controlType)) {
188
+ case '1':
189
+ return 'text';
190
+ case '2':
191
+ obj.restProps = {
192
+ selectOptions: convertSelectOptions(extendAttribute.selectContent)
193
+ };
194
+ return 'select';
195
+ case '3':
196
+ return 'month';
197
+ case '4':
198
+ return 'date';
199
+ default:
200
+ return 'text';
201
+ }
202
+ }();
203
+ return obj;
204
+ };
205
+
206
+ /**
207
+ * 根据货主生成通用表格组件的配置项集合
208
+ * @param clientInfo 货主
209
+ * @param prefix 前缀,默认为const配置中的前缀,可自己根据实际情况覆盖
210
+ * @param goodsStatus 商品扩展性,true:ext false:goods_ext(默认)
211
+ */
212
+ export var createTableColumns = function createTableColumns(clientInfo, prefix) {
213
+ var goodsStatus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
214
+ var _clientInfo$extendAtt3 = clientInfo.extendAttributeList,
215
+ extendAttributeList = _clientInfo$extendAtt3 === void 0 ? [] : _clientInfo$extendAtt3;
216
+ if (!extendAttributeList || !extendAttributeList.length) {
217
+ return new Array();
218
+ }
219
+ return extendAttributeList.map(function (item) {
220
+ return extendAttributeToTableColumns(item, prefix, goodsStatus);
221
+ });
222
+ };
223
+
224
+ /**
225
+ * 计算表格指定列配置的总宽度
226
+ * @param cols 表格列配置
227
+ * @param suppWidth 补充宽度(一般为复选框的宽度,默认60;但是当表格列配置中存在没有宽度的列时,需要指定一个宽度供未指定宽度列平摊)
228
+ */
229
+ export var calcColsTotalWidth = function calcColsTotalWidth(cols) {
230
+ var suppWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
231
+ var resSum = suppWidth;
232
+ cols.forEach(function (d) {
233
+ resSum += +(d.width || 0);
234
+ });
235
+ return resSum;
236
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type BiuDescriptionsPropsType = {
3
+ title?: string;
4
+ dataOptions?: {
5
+ label: string;
6
+ data: string;
7
+ }[];
8
+ };
9
+ export declare const BiuDescriptions: React.MemoExoticComponent<({ dataOptions, title }: BiuDescriptionsPropsType) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,39 @@
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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { Descriptions } from 'antd';
8
+ import React, { useMemo } from 'react';
9
+ import { BiuDivider } from "./..";
10
+ import { FORM_COL_LAYOUT } from "../../constant";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ export var BiuDescriptions = /*#__PURE__*/React.memo(function (_ref) {
15
+ var _ref$dataOptions = _ref.dataOptions,
16
+ dataOptions = _ref$dataOptions === void 0 ? [] : _ref$dataOptions,
17
+ title = _ref.title;
18
+ var column = useMemo(function () {
19
+ var layouts = FORM_COL_LAYOUT.default;
20
+ return Object.keys(layouts).reduce(function (obj, current) {
21
+ return _objectSpread(_objectSpread({}, obj), {}, _defineProperty({}, current, 24 / layouts[current].span));
22
+ }, {});
23
+ }, []);
24
+ return /*#__PURE__*/_jsxs(_Fragment, {
25
+ children: [title ? /*#__PURE__*/_jsx(BiuDivider, {
26
+ children: title
27
+ }) : null, /*#__PURE__*/_jsx(Descriptions, {
28
+ column: column,
29
+ children: dataOptions.map(function (_ref2) {
30
+ var label = _ref2.label,
31
+ data = _ref2.data;
32
+ return /*#__PURE__*/_jsx(Descriptions.Item, {
33
+ label: label,
34
+ children: data
35
+ }, label);
36
+ })
37
+ })]
38
+ });
39
+ });
@@ -0,0 +1,15 @@
1
+ import type { DrawerProps } from 'antd/es/drawer';
2
+ import type { ReactNode } from 'react';
3
+ import React from 'react';
4
+ import type { OperCardProps } from "..";
5
+ type EventType = React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement | HTMLButtonElement | HTMLElement>;
6
+ type footerType = {
7
+ render?: (() => ReactNode) | ReactNode;
8
+ } & OperCardProps;
9
+ export type BiuDetalDrawerPropsType = {
10
+ footer?: boolean | footerType;
11
+ onClose: ((e: EventType) => void) | undefined;
12
+ children?: ReactNode;
13
+ } & Omit<DrawerProps, 'footer' | 'onClose' | 'children'>;
14
+ export declare const BiuDetailDrawer: React.MemoExoticComponent<(props: BiuDetalDrawerPropsType) => import("react/jsx-runtime").JSX.Element>;
15
+ export {};
@@ -0,0 +1,54 @@
1
+ var _excluded = ["footer", "onClose", "closable", "afterOpenChange", "width"];
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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ 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); }
8
+ 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; }
9
+ 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; }
10
+ import { CloseOutlined } from '@ant-design/icons';
11
+ import { Drawer } from 'antd';
12
+ import { isBoolean, isFunction } from 'lodash';
13
+ import React, { useCallback } from 'react';
14
+ import { styled } from 'styled-components';
15
+ import { OperationButton } from "./..";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ var StyledDrawer = styled(Drawer).withConfig({
18
+ displayName: "StyledDrawer",
19
+ componentId: "enjoy-link-antd-repack__sc-17fu2fz-0"
20
+ })([".ant-drawer-header{padding:12px 4px !important;font-size:14px !important;font-weight:bold !important;}.ant-drawer-body{padding:0px 8px !important;}"]);
21
+ export var BiuDetailDrawer = /*#__PURE__*/React.memo(function (props) {
22
+ var footer = props.footer,
23
+ onClose = props.onClose,
24
+ _props$closable = props.closable,
25
+ closable = _props$closable === void 0 ? true : _props$closable,
26
+ _afterOpenChange = props.afterOpenChange,
27
+ _props$width = props.width,
28
+ width = _props$width === void 0 ? '95%' : _props$width,
29
+ restProps = _objectWithoutProperties(props, _excluded);
30
+ var footerNode = useCallback(function () {
31
+ if (footer) {
32
+ if (!isBoolean(footer) && _typeof(footer) === 'object' && footer.render) {
33
+ return isFunction(footer.render) ? footer.render() : footer.render;
34
+ }
35
+ return /*#__PURE__*/_jsx(OperationButton, _objectSpread({
36
+ onCancel: onClose
37
+ }, footer));
38
+ }
39
+ return undefined;
40
+ }, [footer, onClose]);
41
+ return /*#__PURE__*/_jsx(StyledDrawer, _objectSpread({
42
+ destroyOnClose: true,
43
+ maskClosable: false,
44
+ width: width,
45
+ extra: closable ? /*#__PURE__*/_jsx(CloseOutlined, {
46
+ onClick: onClose
47
+ }) : undefined,
48
+ afterOpenChange: function afterOpenChange(value) {
49
+ if (_afterOpenChange) _afterOpenChange(value);
50
+ },
51
+ footer: footerNode(),
52
+ closable: false
53
+ }, restProps));
54
+ });
@@ -0,0 +1,4 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export type BiuDividerPropsType = HTMLAttributes<HTMLDivElement>;
4
+ export declare const BiuDivider: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<BiuDividerPropsType, never>> & Omit<React.MemoExoticComponent<(props: BiuDividerPropsType) => import("react/jsx-runtime").JSX.Element>, keyof React.Component<any, {}, any>>;
@@ -0,0 +1,29 @@
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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React from 'react';
8
+ import { styled } from 'styled-components';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ export var BiuDivider = styled( /*#__PURE__*/React.memo(function (props) {
12
+ return /*#__PURE__*/_jsxs("div", {
13
+ style: {
14
+ display: 'flex',
15
+ alignItems: 'center'
16
+ },
17
+ children: [/*#__PURE__*/_jsx("div", {
18
+ style: {
19
+ width: '3px',
20
+ height: '20px',
21
+ backgroundColor: 'rgb(64, 158, 255)',
22
+ marginRight: '10px'
23
+ }
24
+ }), /*#__PURE__*/_jsx("div", _objectSpread({}, props))]
25
+ });
26
+ })).withConfig({
27
+ displayName: "BiuDivider",
28
+ componentId: "enjoy-link-antd-repack__sc-m2w5dh-0"
29
+ })(["width:100%;padding:2px 2px;font-weight:bold;font-size:14px;line-height:22px;margin:5px 0;box-shadow:0px 1px 2px -2px rgba(0,0,0,0.16);"]);
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
3
+ export default _default;