ztxkui 4.3.50 → 6.0.1

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 (338) hide show
  1. package/dist/App.js +4 -10
  2. package/dist/Demo.js +40 -48
  3. package/dist/DemoCom/CollapseDemo.js +1 -1
  4. package/dist/DemoCom/FormDemo.js +188 -45
  5. package/dist/DemoCom/FormDemo1.d.ts +3 -0
  6. package/dist/DemoCom/FormDemo1.js +95 -0
  7. package/dist/DemoCom/PrintContainerDemo.js +44 -121
  8. package/dist/DemoCom/SinaturesDemo.js +88 -99
  9. package/dist/DemoCom/TableDemo1.js +5 -0
  10. package/dist/DemoCom/TableDemo2.d.ts +14 -0
  11. package/dist/DemoCom/TableDemo2.js +550 -0
  12. package/dist/DemoCom/TestDemo.d.ts +3 -0
  13. package/dist/DemoCom/TestDemo.js +17 -0
  14. package/dist/DemoCom/diaobodan.d.ts +3 -0
  15. package/dist/DemoCom/diaobodan.js +310 -0
  16. package/dist/DemoCom/tidan.d.ts +5 -0
  17. package/dist/DemoCom/tidan.js +153 -0
  18. package/dist/TableDemo/BasicTable.js +81 -14
  19. package/dist/TableDemo/EditableTable.d.ts +1 -0
  20. package/dist/TableDemo/EditableTable.js +89 -43
  21. package/dist/TableDemo/ElseTable.d.ts +9 -0
  22. package/dist/TableDemo/ElseTable.js +58 -0
  23. package/dist/TableDemo/ModalTable.js +30 -33
  24. package/dist/TableDemo/VirtualTable.d.ts +9 -0
  25. package/dist/TableDemo/VirtualTable.js +127 -0
  26. package/dist/TableDemo/data.d.ts +29 -13
  27. package/dist/TableDemo/data.js +129 -17
  28. package/dist/TableDemo/index.js +4 -0
  29. package/dist/UI/Asr/index.d.ts +3 -0
  30. package/dist/UI/Asr/index.js +7 -0
  31. package/dist/UI/Basic/index.js +66 -5
  32. package/dist/UI/ChatRoom/data.d.ts +16 -0
  33. package/dist/UI/ChatRoom/data.js +52 -0
  34. package/dist/UI/ChatRoom/index.d.ts +3 -0
  35. package/dist/UI/ChatRoom/index.js +50 -0
  36. package/dist/UI/Form/index.js +190 -40
  37. package/dist/UI/OCR/index.d.ts +2 -0
  38. package/dist/UI/OCR/index.js +34 -0
  39. package/dist/UI/OCRCom/CommonOcr.d.ts +2 -0
  40. package/dist/UI/OCRCom/CommonOcr.js +34 -0
  41. package/dist/UI/OCRCom/ModalOcr.d.ts +2 -0
  42. package/dist/UI/OCRCom/ModalOcr.js +39 -0
  43. package/dist/UI/OCRCom/UserOcr.d.ts +2 -0
  44. package/dist/UI/OCRCom/UserOcr.js +39 -0
  45. package/dist/UI/OCRCom/index.d.ts +2 -0
  46. package/dist/UI/OCRCom/index.js +34 -0
  47. package/dist/UI/Table/CheckModal.d.ts +9 -0
  48. package/dist/UI/Table/CheckModal.js +28 -0
  49. package/dist/UI/Table/DefaultTable.js +174 -9
  50. package/dist/UI/Table/EditTable.js +43 -1
  51. package/dist/UI/Table/data.d.ts +9 -1
  52. package/dist/UI/Table/data.js +11 -2
  53. package/dist/UI/Table/hooks.d.ts +20 -0
  54. package/dist/UI/Table/hooks.js +48 -0
  55. package/dist/UI/index.js +29 -1
  56. package/dist/UploadDemo.js +4 -2
  57. package/dist/components/Asr/index.d.ts +8 -0
  58. package/dist/components/Asr/index.js +24 -0
  59. package/dist/components/Button/button.d.ts +2 -0
  60. package/dist/components/Button/button.js +66 -4
  61. package/dist/components/ChatRoom/components/AntModal.d.ts +8 -0
  62. package/dist/components/ChatRoom/components/AntModal.js +80 -0
  63. package/dist/components/ChatRoom/components/ChatIcon.d.ts +7 -0
  64. package/dist/components/ChatRoom/components/ChatIcon.js +6 -0
  65. package/dist/components/ChatRoom/components/ChatInput.d.ts +7 -0
  66. package/dist/components/ChatRoom/components/ChatInput.js +97 -0
  67. package/dist/components/ChatRoom/components/ChatItem.d.ts +15 -0
  68. package/dist/components/ChatRoom/components/ChatItem.js +13 -0
  69. package/dist/components/ChatRoom/components/ChatItemTime.d.ts +7 -0
  70. package/dist/components/ChatRoom/components/ChatItemTime.js +7 -0
  71. package/dist/components/ChatRoom/components/Room.d.ts +9 -0
  72. package/dist/components/ChatRoom/components/Room.js +17 -0
  73. package/dist/components/ChatRoom/components/RoomItem.d.ts +19 -0
  74. package/dist/components/ChatRoom/components/RoomItem.js +24 -0
  75. package/dist/components/ChatRoom/components/RoomOperation.d.ts +7 -0
  76. package/dist/components/ChatRoom/components/RoomOperation.js +6 -0
  77. package/dist/components/ChatRoom/components/RoomTitle.d.ts +7 -0
  78. package/dist/components/ChatRoom/components/RoomTitle.js +22 -0
  79. package/dist/components/ChatRoom/components/index.d.ts +5 -0
  80. package/dist/components/ChatRoom/components/index.js +5 -0
  81. package/dist/components/ChatRoom/hooks/index.d.ts +2 -0
  82. package/dist/components/ChatRoom/hooks/index.js +2 -0
  83. package/dist/components/ChatRoom/hooks/useRoomList.d.ts +10 -0
  84. package/dist/components/ChatRoom/hooks/useRoomList.js +23 -0
  85. package/dist/components/ChatRoom/hooks/useRoomOperation.d.ts +5 -0
  86. package/dist/components/ChatRoom/hooks/useRoomOperation.js +17 -0
  87. package/dist/components/ChatRoom/index.d.ts +4 -0
  88. package/dist/components/ChatRoom/index.js +42 -0
  89. package/dist/components/ChatRoom/interface.d.ts +46 -0
  90. package/dist/components/ChatRoom/interface.js +1 -0
  91. package/dist/components/ChatRoom/utils.d.ts +4 -0
  92. package/dist/components/ChatRoom/utils.js +7 -0
  93. package/dist/components/Collapse/collapse.d.ts +1 -0
  94. package/dist/components/Collapse/collapse.js +2 -2
  95. package/dist/components/DatePicker/data-picker.d.ts +7 -46
  96. package/dist/components/EnhanceSelect/index.js +6 -26
  97. package/dist/components/Form/form.d.ts +13 -0
  98. package/dist/components/Form/form.js +32 -2
  99. package/dist/components/Input/input.d.ts +19 -2
  100. package/dist/components/Input/input.js +61 -9
  101. package/dist/components/InputNumber/input-number.d.ts +7 -5
  102. package/dist/components/InputNumber/input-number.js +46 -6
  103. package/dist/components/Layout/layout.d.ts +4 -4
  104. package/dist/components/Menu/menu.d.ts +1 -1
  105. package/dist/components/Modal/modal.d.ts +1 -0
  106. package/dist/components/Modal/modal.js +43 -3
  107. package/dist/components/OCR/Camera/Container.d.ts +4 -0
  108. package/dist/components/OCR/Camera/Container.js +40 -0
  109. package/dist/components/OCR/Camera/Item.d.ts +7 -0
  110. package/dist/components/OCR/Camera/Item.js +10 -0
  111. package/dist/components/OCR/Camera/camera.d.ts +61 -0
  112. package/dist/components/OCR/Camera/camera.js +166 -0
  113. package/dist/components/OCR/Camera/cameraUtils.d.ts +10 -0
  114. package/dist/components/OCR/Camera/cameraUtils.js +109 -0
  115. package/dist/components/OCR/Camera/constants.d.ts +3 -0
  116. package/dist/components/OCR/Camera/constants.js +3 -0
  117. package/dist/components/OCR/Camera/hooks.d.ts +20 -0
  118. package/dist/components/OCR/Camera/hooks.js +129 -0
  119. package/dist/components/OCR/Camera/index.d.ts +10 -0
  120. package/dist/components/OCR/Camera/index.js +28 -0
  121. package/dist/components/OCR/Camera/wsCamera.d.ts +22 -0
  122. package/dist/components/OCR/Camera/wsCamera.js +456 -0
  123. package/dist/components/OCR/CanvasCom.d.ts +8 -0
  124. package/dist/components/OCR/CanvasCom.js +28 -0
  125. package/dist/components/OCR/LoadPicture.d.ts +11 -0
  126. package/dist/components/OCR/LoadPicture.js +56 -0
  127. package/dist/components/OCR/SelectTemplate.d.ts +10 -0
  128. package/dist/components/OCR/SelectTemplate.js +14 -0
  129. package/dist/components/OCR/SettingCom.d.ts +14 -0
  130. package/dist/components/OCR/SettingCom.js +363 -0
  131. package/dist/components/OCR/constants.d.ts +1 -0
  132. package/dist/components/OCR/constants.js +2 -0
  133. package/dist/components/OCR/data.d.ts +6 -0
  134. package/dist/components/OCR/data.js +596 -0
  135. package/dist/components/OCR/hooks.d.ts +21 -0
  136. package/dist/components/OCR/hooks.js +270 -0
  137. package/dist/components/OCR/index.d.ts +11 -0
  138. package/dist/components/OCR/index.js +52 -0
  139. package/dist/components/OCR/selectTemplateHooks.d.ts +9 -0
  140. package/dist/components/OCR/selectTemplateHooks.js +74 -0
  141. package/dist/components/OCR/settingHooks.d.ts +5 -0
  142. package/dist/components/OCR/settingHooks.js +45 -0
  143. package/dist/components/OCR/utils.d.ts +6 -0
  144. package/dist/components/OCR/utils.js +153 -0
  145. package/dist/components/OCR_COM/Camera/Container.d.ts +3 -0
  146. package/dist/components/OCR_COM/Camera/Container.js +53 -0
  147. package/dist/components/OCR_COM/Camera/Item.d.ts +7 -0
  148. package/dist/components/OCR_COM/Camera/Item.js +10 -0
  149. package/dist/components/OCR_COM/Camera/camera.d.ts +61 -0
  150. package/dist/components/OCR_COM/Camera/camera.js +170 -0
  151. package/dist/components/OCR_COM/Camera/cameraUtils.d.ts +10 -0
  152. package/dist/components/OCR_COM/Camera/cameraUtils.js +109 -0
  153. package/dist/components/OCR_COM/Camera/constants.d.ts +3 -0
  154. package/dist/components/OCR_COM/Camera/constants.js +3 -0
  155. package/dist/components/OCR_COM/Camera/hooks.d.ts +20 -0
  156. package/dist/components/OCR_COM/Camera/hooks.js +131 -0
  157. package/dist/components/OCR_COM/Camera/index.d.ts +11 -0
  158. package/dist/components/OCR_COM/Camera/index.js +51 -0
  159. package/dist/components/OCR_COM/Camera/wsCamera.d.ts +22 -0
  160. package/dist/components/OCR_COM/Camera/wsCamera.js +456 -0
  161. package/dist/components/OCR_COM/DrawerOcr.d.ts +8 -0
  162. package/dist/components/OCR_COM/DrawerOcr.js +118 -0
  163. package/dist/components/OCR_COM/canvasUtils.d.ts +12 -0
  164. package/dist/components/OCR_COM/canvasUtils.js +41 -0
  165. package/dist/components/OCR_COM/components/IconButton.d.ts +8 -0
  166. package/dist/components/OCR_COM/components/IconButton.js +8 -0
  167. package/dist/components/OCR_COM/components/IconGpy.d.ts +3 -0
  168. package/dist/components/OCR_COM/components/IconGpy.js +5 -0
  169. package/dist/components/OCR_COM/components/IconTop.d.ts +3 -0
  170. package/dist/components/OCR_COM/components/IconTop.js +5 -0
  171. package/dist/components/OCR_COM/components/IconUpload.d.ts +3 -0
  172. package/dist/components/OCR_COM/components/IconUpload.js +5 -0
  173. package/dist/components/OCR_COM/components/ImgPagination.d.ts +19 -0
  174. package/dist/components/OCR_COM/components/ImgPagination.js +54 -0
  175. package/dist/components/OCR_COM/components/OperationContainer.d.ts +9 -0
  176. package/dist/components/OCR_COM/components/OperationContainer.js +9 -0
  177. package/dist/components/OCR_COM/components/PaginationOcr.d.ts +2 -0
  178. package/dist/components/OCR_COM/components/PaginationOcr.js +20 -0
  179. package/dist/components/OCR_COM/components/Placeholder.d.ts +3 -0
  180. package/dist/components/OCR_COM/components/Placeholder.js +12 -0
  181. package/dist/components/OCR_COM/components/RectifyImg.d.ts +2 -0
  182. package/dist/components/OCR_COM/components/RectifyImg.js +102 -0
  183. package/dist/components/OCR_COM/components/SettingOcr.d.ts +12 -0
  184. package/dist/components/OCR_COM/components/SettingOcr.js +223 -0
  185. package/dist/components/OCR_COM/components/UploadGroup.d.ts +17 -0
  186. package/dist/components/OCR_COM/components/UploadGroup.js +26 -0
  187. package/dist/components/OCR_COM/components/UploadGroupModal.d.ts +2 -0
  188. package/dist/components/OCR_COM/components/UploadGroupModal.js +20 -0
  189. package/dist/components/OCR_COM/components/UploadOcr.d.ts +9 -0
  190. package/dist/components/OCR_COM/components/UploadOcr.js +115 -0
  191. package/dist/components/OCR_COM/components/UserList.d.ts +36 -0
  192. package/dist/components/OCR_COM/components/UserList.js +59 -0
  193. package/dist/components/OCR_COM/components/UserOcr.d.ts +14 -0
  194. package/dist/components/OCR_COM/components/UserOcr.js +85 -0
  195. package/dist/components/OCR_COM/components/UserOcrTable.d.ts +14 -0
  196. package/dist/components/OCR_COM/components/UserOcrTable.js +120 -0
  197. package/dist/components/OCR_COM/components/index.d.ts +15 -0
  198. package/dist/components/OCR_COM/components/index.js +15 -0
  199. package/dist/components/OCR_COM/constants.d.ts +1 -0
  200. package/dist/components/OCR_COM/constants.js +2 -0
  201. package/dist/components/OCR_COM/copyIndex.d.ts +30 -0
  202. package/dist/components/OCR_COM/copyIndex.js +154 -0
  203. package/dist/components/OCR_COM/hooks/index.d.ts +12 -0
  204. package/dist/components/OCR_COM/hooks/index.js +12 -0
  205. package/dist/components/OCR_COM/hooks/useCamera.d.ts +5 -0
  206. package/dist/components/OCR_COM/hooks/useCamera.js +12 -0
  207. package/dist/components/OCR_COM/hooks/useDictionary.d.ts +11 -0
  208. package/dist/components/OCR_COM/hooks/useDictionary.js +56 -0
  209. package/dist/components/OCR_COM/hooks/useDrawImgFile.d.ts +30 -0
  210. package/dist/components/OCR_COM/hooks/useDrawImgFile.js +242 -0
  211. package/dist/components/OCR_COM/hooks/useFiles.d.ts +28 -0
  212. package/dist/components/OCR_COM/hooks/useFiles.js +111 -0
  213. package/dist/components/OCR_COM/hooks/useLoading.d.ts +8 -0
  214. package/dist/components/OCR_COM/hooks/useLoading.js +12 -0
  215. package/dist/components/OCR_COM/hooks/useOcrIdentify.d.ts +8 -0
  216. package/dist/components/OCR_COM/hooks/useOcrIdentify.js +43 -0
  217. package/dist/components/OCR_COM/hooks/usePrevious.d.ts +3 -0
  218. package/dist/components/OCR_COM/hooks/usePrevious.js +12 -0
  219. package/dist/components/OCR_COM/hooks/useRectify.d.ts +13 -0
  220. package/dist/components/OCR_COM/hooks/useRectify.js +173 -0
  221. package/dist/components/OCR_COM/hooks/useRectifyServer.d.ts +6 -0
  222. package/dist/components/OCR_COM/hooks/useRectifyServer.js +79 -0
  223. package/dist/components/OCR_COM/hooks/useSetting.d.ts +27 -0
  224. package/dist/components/OCR_COM/hooks/useSetting.js +288 -0
  225. package/dist/components/OCR_COM/hooks/useUser.d.ts +14 -0
  226. package/dist/components/OCR_COM/hooks/useUser.js +110 -0
  227. package/dist/components/OCR_COM/hooks/useUserClickItem.d.ts +7 -0
  228. package/dist/components/OCR_COM/hooks/useUserClickItem.js +35 -0
  229. package/dist/components/OCR_COM/hooks/useUserClickRow.d.ts +7 -0
  230. package/dist/components/OCR_COM/hooks/useUserClickRow.js +38 -0
  231. package/dist/components/OCR_COM/index.d.ts +32 -0
  232. package/dist/components/OCR_COM/index.js +207 -0
  233. package/dist/components/OCR_COM/utils.d.ts +10 -0
  234. package/dist/components/OCR_COM/utils.js +73 -0
  235. package/dist/components/PrintContainer/handle.js +117 -47
  236. package/dist/components/PrintContainer/kkJSBridge.d.ts +20 -0
  237. package/dist/components/PrintContainer/kkJSBridge.js +97 -0
  238. package/dist/components/PrintContainer/print-container.d.ts +11 -0
  239. package/dist/components/PrintContainer/print-container.js +376 -433
  240. package/dist/components/PrintContainer/sealHooks.d.ts +19 -0
  241. package/dist/components/PrintContainer/sealHooks.js +215 -0
  242. package/dist/components/PrintContainer/service.d.ts +14 -0
  243. package/dist/components/PrintContainer/service.js +238 -2
  244. package/dist/components/PrintContainer/useAboutExport.d.ts +7 -0
  245. package/dist/components/PrintContainer/useAboutExport.js +134 -0
  246. package/dist/components/PrintContainer/useFont.d.ts +5 -0
  247. package/dist/components/PrintContainer/useFont.js +74 -0
  248. package/dist/components/PrintContainer/utils.js +7 -6
  249. package/dist/components/ProForm/hooks.js +0 -13
  250. package/dist/components/ProForm/index.js +21 -24
  251. package/dist/components/ProForm/interface.d.ts +0 -6
  252. package/dist/components/ProForm/setting.js +1 -1
  253. package/dist/components/ProModal/index.js +0 -1
  254. package/dist/components/ProTable/hooks.js +7 -0
  255. package/dist/components/ProTable/index.js +1 -0
  256. package/dist/components/Table/hooks/useColumns.d.ts +4 -6
  257. package/dist/components/Table/hooks/useColumns.js +12 -35
  258. package/dist/components/Table/hooks/useDropRef.js +0 -1
  259. package/dist/components/Table/hooks/useSelectSubtotal.d.ts +4 -0
  260. package/dist/components/Table/hooks/useSelectSubtotal.js +135 -0
  261. package/dist/components/Table/index.d.ts +2 -4
  262. package/dist/components/Table/table-adddel-column.d.ts +4 -6
  263. package/dist/components/Table/table-adddel-column.js +4 -12
  264. package/dist/components/Table/table-dynamic.js +65 -9
  265. package/dist/components/Table/table-enhance-cell.js +38 -4
  266. package/dist/components/Table/table.d.ts +4 -8
  267. package/dist/components/Table/table.js +135 -32
  268. package/dist/components/Table/utils/dom.d.ts +26 -0
  269. package/dist/components/Table/utils/dom.js +122 -0
  270. package/dist/components/Table/utils/validate.d.ts +1 -1
  271. package/dist/components/Table/utils/validate.js +5 -2
  272. package/dist/components/Tabs/tabs.d.ts +2 -2
  273. package/dist/components/TimePicker/time-picker.d.ts +1 -0
  274. package/dist/components/Upload/upload-table.js +28 -11
  275. package/dist/components/Upload/upload.d.ts +1 -0
  276. package/dist/components/Upload/upload.js +15 -3
  277. package/dist/components/Upload/utils.js +17 -1
  278. package/dist/components/ZtIcon/index.js +4 -1
  279. package/dist/components/basic/message.js +7 -6
  280. package/dist/components/business/CodeQuery/component/SearchForm.js +1 -1
  281. package/dist/components/business/CodeQuery/hooks.js +1 -1
  282. package/dist/components/business/Common/UserForgetPassword/index.js +19 -9
  283. package/dist/components/business/Common/UserInfo/index.js +5 -3
  284. package/dist/components/business/Common/UserPassword/index.d.ts +1 -0
  285. package/dist/components/business/Common/UserPassword/index.js +42 -14
  286. package/dist/components/business/Container/container.js +19 -19
  287. package/dist/components/business/Container/operation-middle.js +1 -1
  288. package/dist/components/business/DgColumns/index.js +1 -1
  289. package/dist/components/business/SearchContainer/hooks/useDynamic.js +133 -40
  290. package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
  291. package/dist/components/business/SearchContainer/hooks/useToggle.js +0 -1
  292. package/dist/components/business/SearchContainer/search-container.d.ts +6 -0
  293. package/dist/components/business/SearchContainer/search-container.js +8 -2
  294. package/dist/components/business/SearchContainer/search-drawer.js +1 -1
  295. package/dist/components/business/SearchContainer/search-item.d.ts +2 -3
  296. package/dist/components/business/SearchContainer/search-item.js +21 -7
  297. package/dist/components/business/SearchContainer/search-left.d.ts +1 -0
  298. package/dist/components/business/SearchContainer/search-left.js +21 -51
  299. package/dist/components/business/SearchContainer/search-right.d.ts +2 -0
  300. package/dist/components/business/SearchContainer/search-right.js +56 -5
  301. package/dist/components/business/Signatures/components/AttachOperation.js +16 -1
  302. package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
  303. package/dist/components/business/Signatures/components/CodeModal.js +144 -0
  304. package/dist/components/business/Signatures/components/CompareResult.js +1 -1
  305. package/dist/components/business/Signatures/components/DetailTable.d.ts +3 -0
  306. package/dist/components/business/Signatures/components/DetailTable.js +37 -17
  307. package/dist/components/business/Signatures/components/QunjSeal.js +2 -2
  308. package/dist/components/business/Signatures/components/SealCheckbox.js +1 -0
  309. package/dist/components/business/Signatures/hooks.js +7 -0
  310. package/dist/components/business/Signatures/index.js +131 -94
  311. package/dist/components/business/Signatures/props.d.ts +10 -0
  312. package/dist/components/business/Template/index.js +1 -1
  313. package/dist/components/utils/ZtxkContext.d.ts +7 -0
  314. package/dist/components/utils/ZtxkContext.js +7 -0
  315. package/dist/components/utils/upload.js +1 -0
  316. package/dist/components/utils/useAsr.d.ts +92 -0
  317. package/dist/components/utils/useAsr.js +508 -0
  318. package/dist/components/utils/useBaseContext.d.ts +5 -0
  319. package/dist/components/utils/useBaseContext.js +10 -0
  320. package/dist/constants.d.ts +1 -1
  321. package/dist/constants.js +1 -1
  322. package/dist/hooks/useFormatter.d.ts +4 -0
  323. package/dist/hooks/useFormatter.js +63 -3
  324. package/dist/index.css +935 -51
  325. package/dist/index.css.map +1 -1
  326. package/dist/index.d.ts +5 -2
  327. package/dist/index.js +95 -95
  328. package/package.json +12 -6
  329. package/dist/components/EmptyText/empty-text.d.ts +0 -8
  330. package/dist/components/EmptyText/empty-text.js +0 -13
  331. package/dist/components/EmptyText/index.d.ts +0 -2
  332. package/dist/components/EmptyText/index.js +0 -2
  333. package/dist/components/Table/components/FillDown.d.ts +0 -8
  334. package/dist/components/Table/components/FillDown.js +0 -10
  335. package/dist/components/utils/fetch.d.ts +0 -14
  336. package/dist/components/utils/fetch.js +0 -116
  337. package/dist/speed.d.ts +0 -2
  338. package/dist/speed.js +0 -25
package/dist/App.js CHANGED
@@ -1209,7 +1209,7 @@ function App() {
1209
1209
  React.createElement(DetailList, { records: inspectionDetail, labelWidth: 10, labelAlign: "center", apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", previewBtnDisable: true, hasManOrDate: true, hasSignArea: true }),
1210
1210
  React.createElement(DetailList, { records: inspectionDetail, labelWidth: 10, labelAlign: "right", apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", previewBtnDisable: true, hasManOrDate: true, hasSignArea: true }),
1211
1211
  React.createElement(DetailList, { apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", hasSignArea: true, isDark: true, labelWidth: 10 }),
1212
- inspectionData.map(function (item, index) {
1212
+ inspectionData.map(function (item) {
1213
1213
  var inspectionDesc = [
1214
1214
  { title: '巡检人', content: item.inspectionMan },
1215
1215
  { title: '上传时间', content: item.inspectionTime },
@@ -1228,7 +1228,7 @@ function App() {
1228
1228
  return itemObj;
1229
1229
  });
1230
1230
  }
1231
- return (React.createElement(DetailCard, { title: item.inspectionName, desc: inspectionDesc, records: records, key: index }));
1231
+ return (React.createElement(DetailCard, { title: item.inspectionName, desc: inspectionDesc, records: records }));
1232
1232
  }),
1233
1233
  React.createElement(Upload, { method: "post", headers: {
1234
1234
  'Zmdms-Auth': 'bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJtZW1iZXJfdHlwZSI6MSwiaGFuZGxlX2hyX3Bob25lIjpudWxsLCJpbmR1Y3Rpb25fc291cmNlX3R5cGUiOm51bGwsInJlc3VtZV9kYXRlIjpudWxsLCJ1c2VyX25hbWUiOiJZRzIxMDE0IiwiaW10X2lkIjpudWxsLCJyZWFsX25hbWUiOiLpmYjkuprpm4QiLCJjbGllbnRfdHlwZSI6IndlYiIsImRhdGFfcm9sZV9pZCI6IjEzNDM0OTA2ODYyNjAyMjgwOTcsMTM0NTk3ODUwNTMwMjA1Njk2MiIsImNsaWVudF9pZCI6InN3b3JkIiwiZW1wbG95bWVudF9mb3JtX3R5cGUiOm51bGwsInVzZXJfdHlwZSI6IndlYiIsInJvbGVfaWQiOiIxMTIzNTk4ODE2NzM4Njc1MjAxLDEzNDM0OTA0MjUwMDEyMjYyNDIiLCJwb3N0X25hbWUiOm51bGwsInNjb3BlIjpbImFsbCJdLCJpbnRlcnZpZXdfaWQiOm51bGwsImV4cCI6MTYzMjQ2NzEyNSwianRpIjoiZmNiZTYwYWEtOTJjOC00ODhjLTgxYTUtOTQ2ZDJiYzJiNDM4IiwibWVtYmVyX2lkIjoxMzQ1OTkyODc4MTYyNjQ5MDkwLCJjb21wYW55X2lkIjoxMjk1OTA4NjI3OTg0NjcwNzIyLCJzeXN0ZW1faWQiOiIyIiwiZGVwdF9uYW1lIjoi5rWL6K-V6YOo6ZeoMjIxMjEyMTIiLCJhdmF0YXIiOiIiLCJkYXRhX3JvbGVfbmFtZSI6Im51bGwsbnVsbCIsImF1dGhvcml0aWVzIjpbIuWGheWLpCIsImFkbWluaXN0cmF0b3IiXSwicm9sZV9uYW1lIjoiYWRtaW5pc3RyYXRvcizlhoXli6QiLCJsaWNlbnNlIjoicG93ZXJlZCBieSB6bWRtcyIsInBvc3RfaWQiOiIiLCJ1c2VyX2lkIjoiMTM0NTk5OTc3MDM4NTU4MDAzNCIsIm5pY2tfbmFtZSI6IumZiOS6mumbhCIsImNvbXBhbnlfbmFtZSI6Iua1meWVhuS4reaLk-mbhuWbou-8iOmHjeW6hu-8ieaciemZkOWFrOWPuGxjeSIsImRlcHRfaWQiOiIxMjk1OTA5NDg4MDAxNTQwMDk3IiwiaGFuZGxlX2hyX25hbWUiOm51bGwsImFjY291bnQiOiJZRzIxMDE0IiwicmVzdW1lX2lkIjpudWxsfQ.uWW6lWQyAPWeQmTNw9w4PMYPNWHPGvhCxquaA958J5o',
@@ -1298,17 +1298,11 @@ function App() {
1298
1298
  React.createElement(Checkbox, { value: "2" }, "\u5426"))),
1299
1299
  React.createElement(SearchItem, { name: "sss", label: "", noLabelShowBg: true },
1300
1300
  React.createElement(Checkbox, { value: "1" }, "\u662F")),
1301
- React.createElement(SearchItem, { name: "sss2d1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6Esssd1sss2d1", noLabelShowBg: true, dynamicdisabled: "1" },
1302
- React.createElement(Checkbox, { value: "1" }, "\u662Fsa")),
1303
- React.createElement(SearchItem, { name: "sssd1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6Esssd1", noLabelShowBg: true, dynamicdisabled: "1" },
1304
- React.createElement(Checkbox, { value: "1" }, "\u662Fa")),
1305
- React.createElement(SearchItem, { name: "sss1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true, dynamicdisabled: "1" },
1306
- React.createElement(Checkbox, { value: "1" }, "\u662F")),
1307
- React.createElement(SearchItem, { name: "ssss1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6Es1", noLabelShowBg: true, dynamicdisabled: "1" },
1301
+ React.createElement(SearchItem, { name: "sss1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
1308
1302
  React.createElement(Checkbox, { value: "1" }, "\u662F")),
1309
1303
  React.createElement(SearchItem, { name: "sss2", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
1310
1304
  React.createElement(Checkbox, { value: "1" }, "\u662F")),
1311
- React.createElement(SearchItem, { name: "sss3", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
1305
+ React.createElement(SearchItem, { name: "sss2", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
1312
1306
  React.createElement(Radio, { value: "1" }, "\u662F")),
1313
1307
  React.createElement(SearchItem, { name: "test2", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择仓库名称' }] },
1314
1308
  React.createElement(Radio.Group, null,
package/dist/Demo.js CHANGED
@@ -1,16 +1,6 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import EnhanceSelect from 'components/EnhanceSelect';
13
- import { useEffect, useState, useMemo, useRef } from 'react';
2
+ import { Button } from './';
3
+ import { useEffect, useState } from 'react';
14
4
  import { stringify } from 'qs';
15
5
  import { Link } from 'react-router-dom';
16
6
  import { token } from './constants';
@@ -32,15 +22,13 @@ function Demo() {
32
22
  var _e = useState(), value2 = _e[0], setValue2 = _e[1];
33
23
  var _f = useState(), value3 = _f[0], setValue3 = _f[1];
34
24
  var _g = useState('0'), selectVal = _g[0], setSelectVal = _g[1];
35
- var _h = useState(''), value4 = _h[0], setValue4 = _h[1];
36
- var _j = useState(''), value5 = _j[0], setValue5 = _j[1];
37
25
  var params = useState({
38
26
  tenantId: '000000',
39
27
  isCreateUser: 0,
40
28
  })[0];
41
- var _k = useState(JSON.stringify({
29
+ var _h = useState(JSON.stringify({
42
30
  status: 50,
43
- })), params1 = _k[0], setParams1 = _k[1];
31
+ })), params1 = _h[0], setParams1 = _h[1];
44
32
  // 模拟接口请求
45
33
  useEffect(function () {
46
34
  var timeoutId = setTimeout(function () {
@@ -76,26 +64,14 @@ function Demo() {
76
64
  }
77
65
  };
78
66
  }, []);
79
- var byChangeRef = useRef(false);
80
- var preValue = useRef('');
81
- var onChangeHandle = function (value, option, fullData) {
82
- byChangeRef.current = true;
83
- };
84
- var newParams = useMemo(function () {
85
- var byChange = byChangeRef.current;
86
- byChangeRef.current = false;
87
- try {
88
- if (!byChange) {
89
- preValue.current = value4 ? value4 + '' : '';
90
- }
91
- return JSON.stringify(__assign(__assign({}, params), { id: preValue.current }));
92
- }
93
- catch (err) {
94
- return JSON.stringify(params);
95
- }
96
- }, [params, value4]);
67
+ var _j = useState(1), num = _j[0], setNum = _j[1];
97
68
  return (React.createElement("div", { style: { height: 2000 } },
98
69
  React.createElement(Link, { to: "/test" }, "test"),
70
+ React.createElement("div", { onClick: function () {
71
+ setNum(num + 1);
72
+ } },
73
+ "\u8BBE\u7F6E",
74
+ num),
99
75
  React.createElement("div", null,
100
76
  React.createElement(EnhanceSelect, { style: selectStyle, list: list, isHandAddItem: true, value: value1, showAll: true, onChange: function (value) {
101
77
  console.log(value, typeof value);
@@ -139,28 +115,44 @@ function Demo() {
139
115
  console.log(value, value3);
140
116
  } }, "\u83B7\u53D6\u6570\u636E"),
141
117
  React.createElement("p", null, "\u8FDC\u7A0B\u641C\u7D22"),
142
- React.createElement("input", { value: value5, onChange: function (e) { return setValue5(e.target.value); } }),
143
- React.createElement("button", { onClick: function () {
144
- setValue4(value5);
145
- } }, "\u8BBE\u7F6E\u6570\u636E"),
146
- React.createElement(EnhanceSelect, { value: value4, style: selectStyle,
118
+ React.createElement(EnhanceSelect, { style: selectStyle,
147
119
  // defaultList={list}
148
- placeholder: "\u53EF\u8FDC\u7A0B\u6A21\u7CCA\u641C\u7D22", url: "http://192.168.0.83:8000/api/zmdms-system/employee/page", request: request, remoteSearch: true,
149
- // isHandAddItem
150
- isRemoteSearchDataKey: false, dataKey: "id", titleKey: "empName",
151
- // showAll
120
+ placeholder: "\u53EF\u8FDC\u7A0B\u6A21\u7CCA\u641C\u7D22", url: "http://192.168.0.83:8000/api/zmdms-system/employee/page", request: request, remoteSearch: true, isHandAddItem: true, isRemoteSearchDataKey: false, dataKey: "id", titleKey: "empName", value: value, showAll: true,
152
121
  // isPaste
153
122
  onChange: function (value, option, fullData) {
154
123
  console.log(value);
155
124
  setValue(value);
156
- }, params: newParams,
125
+ }, params: JSON.stringify(params),
157
126
  // value={value}
158
- // mode="multiple"
159
- isPage: true }),
127
+ mode: "multiple", isPage: true,
128
+ // defaultList={defaultList}
129
+ isClickRequest: true }),
160
130
  React.createElement("p", null, "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E"),
161
- React.createElement(EnhanceSelect, { style: selectStyle, placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E", url: "http://192.168.0.83:8000/api/zmdms-system/company/list", request: request, dataKey: "id", titleKey: "name", isClickRequest: true, isPaste: true, mode: "multiple", isHandAddItem: true, value: value3, onChange: function (value, option, fullData) {
162
- console.log(value, fullData);
131
+ React.createElement(EnhanceSelect, { style: selectStyle, placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E",
132
+ // url="http://192.168.0.83:8000/api/zmdms-system/company/list"
133
+ request: request,
134
+ // dataKey="id"
135
+ // titleKey="name"
136
+ // isPaste
137
+ // mode="multiple"
138
+ value: value3, isCatch: true, onChange: function (value, option, fullData) {
139
+ console.log(value);
163
140
  setValue3(value);
141
+ }, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET",
142
+ // isCatch
143
+ // request={request}
144
+ transformData: function (res) {
145
+ var dataList = [];
146
+ for (var item in res.data.data) {
147
+ dataList.push({ key: item, name: res.data.data[item] });
148
+ }
149
+ res.data.data = dataList;
150
+ return res;
151
+ }, dropdownRenderBtns: function () {
152
+ return (React.createElement(Button, { onClick: function (e) {
153
+ e.preventDefault();
154
+ console.log(111);
155
+ } }, "\u6D4B\u8BD5"));
164
156
  } }),
165
157
  React.createElement("p", null, "\u5F02\u6B65\u83B7\u53D6\u6570\u636E"),
166
158
  React.createElement("button", { onClick: function () {
@@ -2,7 +2,7 @@ import Collapse from 'components/Collapse';
2
2
  import GridList from 'components/business/NewList';
3
3
  function CollapseDemo() {
4
4
  return (React.createElement("div", { style: { padding: 20 } },
5
- React.createElement(Collapse, { showBackground: true },
5
+ React.createElement(Collapse, { showBackground: true, collapsible: "icon" },
6
6
  React.createElement(Collapse.Panel, { key: "1", header: "\u4E2A\u4EBA\u4FE1\u606F" },
7
7
  React.createElement(GridList, null,
8
8
  React.createElement(GridList.FormItem, { span: 8, title: "\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5", showDiff: true, isBlod: true }, "\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1"),
@@ -9,18 +9,36 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import React, { useState, useMemo, useRef } from 'react';
12
+ import React, { useState, useMemo, useRef, useEffect } from 'react';
13
13
  import SearchContainer from '../components/business/SearchContainer';
14
14
  import Form from '../components/Form';
15
15
  import Input from '../components/Input';
16
16
  import Select from '../components/Select';
17
- import EnhanceSelect from '../components/EnhanceSelect';
18
17
  import DatePicker from '../components/DatePicker';
19
18
  import Checkbox from '../components/Checkbox';
20
19
  import Radio from '../components/Radio';
21
20
  import InputNumber from '../components/InputNumber';
21
+ import EnhanceSelect from '../components/EnhanceSelect';
22
+ import { TreeSelect } from '../index';
23
+ import { stringify } from 'qs';
24
+ import { token } from '../constants';
25
+ import Button from 'components/Button';
26
+ import { Tooltip } from 'antd';
27
+ import { SwapOutlined } from '@ant-design/icons';
22
28
  var SearchItem = SearchContainer.SearchItem, SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight;
23
29
  var RangePicker = DatePicker.RangePicker;
30
+ function request(options) {
31
+ return fetch(options.url + "?" + stringify(options.params), {
32
+ headers: {
33
+ 'Zmdms-Auth': "bearer " + token,
34
+ },
35
+ method: options.method,
36
+ })
37
+ .then(function (response) { return response.json(); })
38
+ .then(function (res) {
39
+ return { status: 200, data: res };
40
+ });
41
+ }
24
42
  var configInfo = {
25
43
  pwNoCopy: {
26
44
  isRequired: 1,
@@ -47,11 +65,6 @@ var configInfo = {
47
65
  isChangeable: 1,
48
66
  isDisplay: 1,
49
67
  },
50
- type77: {
51
- isRequired: 1,
52
- isChangeable: 1,
53
- isDisplay: 1,
54
- },
55
68
  };
56
69
  var getCustomDom = function () {
57
70
  return (React.createElement(React.Fragment, { key: "search-form-fragment-id" },
@@ -60,38 +73,157 @@ var getCustomDom = function () {
60
73
  React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
61
74
  React.createElement(Select, null)),
62
75
  React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
63
- React.createElement(Input.TextArea, { autoSize: true, allowClear: true }))));
76
+ React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true })),
77
+ React.createElement(SearchItem, { name: "type6", width: "all", label: "\u4F60\u597D" },
78
+ React.createElement(Input.TextArea, { showCount: {
79
+ formatter: function () { return '111'; },
80
+ }, maxLength: 10 })),
81
+ React.createElement(SearchItem, { name: "type611", label: "\u4F60\u597D111" },
82
+ React.createElement(TreeSelect, { treeData: [
83
+ { key: '1', title: '小明' },
84
+ { key: '2', title: '小虎' },
85
+ { key: '3', title: '小明' },
86
+ { key: '4', title: '小虎' },
87
+ { key: '5', title: '小明' },
88
+ { key: '6', title: '小虎' },
89
+ { key: '7', title: '小明' },
90
+ { key: '8', title: '小虎' },
91
+ { key: '9', title: '小明' },
92
+ { key: '10', title: '小虎' },
93
+ { key: '11', title: '小明' },
94
+ { key: '21', title: '小虎' },
95
+ { key: '31', title: '小明' },
96
+ { key: '41', title: '小虎' },
97
+ { key: '51', title: '小明' },
98
+ { key: '61', title: '小虎' },
99
+ { key: '71', title: '小明' },
100
+ { key: '81', title: '小虎' },
101
+ { key: '91', title: '小明' },
102
+ { key: '101', title: '小虎' },
103
+ ], treeCheckable: true, allowClear: true })),
104
+ React.createElement(SearchItem, { name: "type6112", label: "\u4F60\u597D111" },
105
+ React.createElement(EnhanceSelect, { dataKey: "key", titleKey: "title", mode: "multiple", list: [
106
+ { key: '1', title: '小明' },
107
+ { key: '2', title: '小虎' },
108
+ { key: '3', title: '小明' },
109
+ { key: '4', title: '小虎' },
110
+ { key: '5', title: '小明' },
111
+ { key: '6', title: '小虎' },
112
+ { key: '7', title: '小明' },
113
+ { key: '8', title: '小虎' },
114
+ { key: '9', title: '小明' },
115
+ { key: '10', title: '小虎' },
116
+ { key: '11', title: '小明' },
117
+ { key: '21', title: '小虎' },
118
+ { key: '31', title: '小明' },
119
+ { key: '41', title: '小虎' },
120
+ { key: '51', title: '小明' },
121
+ { key: '61', title: '小虎' },
122
+ { key: '71', title: '小明' },
123
+ { key: '81', title: '小虎' },
124
+ { key: '91', title: '小明' },
125
+ { key: '101', title: '小虎' },
126
+ ] })),
127
+ React.createElement(SearchItem, { name: "type61123", label: "\u4F60\u597D111" },
128
+ React.createElement(EnhanceSelect, { dataKey: "key", titleKey: "title", mode: "multiple", list: [
129
+ { key: '1', title: '小明' },
130
+ { key: '2', title: '小虎' },
131
+ { key: '3', title: '小明' },
132
+ { key: '4', title: '小虎' },
133
+ { key: '5', title: '小明' },
134
+ { key: '6', title: '小虎' },
135
+ { key: '7', title: '小明' },
136
+ { key: '8', title: '小虎' },
137
+ { key: '9', title: '小明' },
138
+ { key: '10', title: '小虎' },
139
+ { key: '11', title: '小明' },
140
+ { key: '21', title: '小虎' },
141
+ { key: '31', title: '小明' },
142
+ { key: '41', title: '小虎' },
143
+ { key: '51', title: '小明' },
144
+ { key: '61', title: '小虎' },
145
+ { key: '71', title: '小明' },
146
+ { key: '81', title: '小虎' },
147
+ { key: '91', title: '小明' },
148
+ { key: '101', title: '小虎' },
149
+ ] }))));
64
150
  };
65
151
  var FormDemo = function () {
66
152
  var form = Form.useForm()[0];
67
- var _a = useState('2'), status = _a[0], setStatus = _a[1];
68
- console.log(1111);
69
- form.setFieldsValue({
70
- pwNo: '123123',
71
- });
153
+ var _a = useState('1'), status = _a[0], setStatus = _a[1];
154
+ var _b = useState({}), formData = _b[0], setFormData = _b[1];
155
+ var _c = useState(1), num = _c[0], setNum = _c[1];
156
+ var _d = useState(0), drafterMode = _d[0], setDrafterMode = _d[1]; // 0 模糊匹配,普通搜索栏 1 多选匹配,用户为下拉框格式
157
+ useEffect(function () {
158
+ form.setFieldsValue(formData);
159
+ }, [formData, form]);
72
160
  var configInfoMemo = useMemo(function () {
73
161
  return __assign(__assign({}, configInfo), { startTime: __assign(__assign({}, configInfo === null || configInfo === void 0 ? void 0 : configInfo.startTime), { isDisplay: status === '1' ? true : false }) });
74
162
  }, [status]);
75
163
  var handleRef = useRef(null);
76
164
  return (React.createElement(React.Fragment, null,
77
- React.createElement(Form, { name: "test-list", form: form },
165
+ React.createElement(Form, { name: "test-list", form: form, onKeyDown: function (event) {
166
+ if (event.key === 'Enter') {
167
+ event.preventDefault();
168
+ event.stopPropagation();
169
+ console.log('提交');
170
+ }
171
+ } },
78
172
  React.createElement(SearchContainer, { dark: true },
79
- React.createElement(SearchLeft, { configInfo: configInfoMemo,
80
- // isDynamic
81
- // dynamicStorageKey="symbol-key-00001"
82
- isToggle: true, handleRef: handleRef },
173
+ React.createElement(SearchLeft
174
+ // configInfo={configInfoMemo}
175
+ , {
176
+ // configInfo={configInfoMemo}
177
+ isDynamic: true, dynamicStorageKey: "symbol-key-00001", isToggle: true, toggleNum: 16, handleRef: handleRef },
178
+ React.createElement(SearchItem, { name: "applyPersonName1", label: "\u8D77\u8349\u4EBA" },
179
+ React.createElement(Input, { allowClear: true })),
180
+ React.createElement(SearchItem, { name: "applyPersonName2", label: "\u8D77\u8349\u4EBA", suffix: React.createElement(React.Fragment, null) },
181
+ React.createElement(Input, { allowClear: true })),
182
+ React.createElement(SearchItem, { name: "applyPersonName3", label: "\u8D77\u8349\u4EBA", suffix: React.createElement(React.Fragment, null, drafterMode === 0 ? (React.createElement(Tooltip, { title: "\u5207\u6362\u6210\u9009\u62E9\u6846" },
183
+ React.createElement(Button, { style: {
184
+ paddingTop: 0,
185
+ paddingBottom: 0,
186
+ }, agentClick: false, type: "text", icon: React.createElement(SwapOutlined, null), onClick: function () {
187
+ setDrafterMode(1);
188
+ } }))) : (React.createElement(Tooltip, { title: "\u5207\u6362\u6210\u641C\u7D22\u6846" },
189
+ React.createElement(Button, { style: {
190
+ paddingTop: 0,
191
+ paddingBottom: 0,
192
+ }, agentClick: false, type: "text", icon: React.createElement(SwapOutlined, null), onClick: function () {
193
+ setDrafterMode(0);
194
+ } })))) }, drafterMode === 0 ? (React.createElement(Input, { allowClear: true })) : (React.createElement(Select, { mode: "multiple", allowClear: true },
195
+ React.createElement(Select.Option, { value: "1" }, "\u662F"),
196
+ React.createElement(Select.Option, { value: "0" }, "\u5426"),
197
+ React.createElement(Select.Option, { value: "2" }, "\u542622133123"),
198
+ React.createElement(Select.Option, { value: "3" }, "\u5426312312"),
199
+ React.createElement(Select.Option, { value: "4" }, "\u5426"),
200
+ React.createElement(Select.Option, { value: "5" }, "\u5426"),
201
+ React.createElement(Select.Option, { value: "6" }, "\u662F22133123")))),
83
202
  React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", disabled: true, rules: [
84
203
  {
85
204
  required: true,
86
205
  message: '采购基本数据-请选择入库单号',
87
206
  },
88
207
  ] },
89
- React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onChange: function (e) {
90
- console.log(e.target.value);
208
+ React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onBlur: function (e) {
209
+ setFormData(function (preState) {
210
+ return __assign(__assign({}, preState), { pwNo: e.target.value });
211
+ });
212
+ } })),
213
+ React.createElement(SearchItem, { width: "half", name: "pwNo2", configname: "pwNoCopy1", label: "\u5165\u5E93\u5355\u53F71", disabled: true, rules: [
214
+ {
215
+ required: true,
216
+ message: '采购基本数据-请选择入库单号',
217
+ },
218
+ ] },
219
+ React.createElement(Input, { allowClear: true, disabled: true, onBlur: function (e) {
220
+ setFormData(function (preState) {
221
+ return __assign(__assign({}, preState), { pwNo: e.target.value });
222
+ });
91
223
  } })),
92
- React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", dynamicdisabled: "1", rules: [
224
+ React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", rules: [
93
225
  {
94
- required: false,
226
+ required: true,
95
227
  message: '采购基本数据-请选择入库单号1',
96
228
  },
97
229
  ] },
@@ -99,20 +231,40 @@ var FormDemo = function () {
99
231
  React.createElement(SearchItem, { width: "half", name: "status", label: "\u5355\u636E\u72B6\u6001" },
100
232
  React.createElement(Select, { onChange: function (value) {
101
233
  setStatus(value);
234
+ setFormData(function (preState) {
235
+ return __assign(__assign({}, preState), { status: value });
236
+ });
102
237
  } },
103
238
  React.createElement(Select.Option, { value: "1" }, "\u662F"),
104
239
  React.createElement(Select.Option, { value: "0" }, "\u5426"))),
105
- React.createElement(SearchItem, { name: "intime", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
240
+ React.createElement(SearchItem, { name: "intime", rules: [
241
+ {
242
+ required: true,
243
+ message: '采购基本数据-请选择入库单号1',
244
+ },
245
+ ], configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
106
246
  React.createElement(RangePicker, null)),
107
- React.createElement(SearchItem, { name: "intime1", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
247
+ React.createElement(SearchItem, { name: "intime1", rules: [
248
+ {
249
+ required: true,
250
+ message: '采购基本数据-请选择入库单号1',
251
+ },
252
+ ], configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
108
253
  React.createElement(DatePicker, null)),
109
254
  React.createElement(SearchItem, { name: "warehouseId", label: "\u4ED3\u5E93\u540D\u79F0" },
110
255
  React.createElement(Select, null)),
111
256
  React.createElement(SearchItem, { name: "companyId", label: "\u516C\u53F8\u540D\u79F0" },
112
257
  React.createElement(Select, null)),
113
258
  React.createElement(SearchItem, { name: "companyId1", label: "\u516C\u53F8\u540D\u79F01" },
114
- React.createElement(Input.TextArea, { autoSize: true })),
115
- React.createElement(SearchItem, { name: "depId", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择部门名称' }] },
259
+ React.createElement(EnhanceSelect, { placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E", request: request, isCatch: true, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET", transformData: function (res) {
260
+ var dataList = [];
261
+ for (var item in res.data.data) {
262
+ dataList.push({ key: item, name: res.data.data[item] });
263
+ }
264
+ res.data.data = dataList;
265
+ return res;
266
+ } })),
267
+ React.createElement(SearchItem, { name: "depId1", label: "\u90E8\u95E8\u540D\u79F0", width: "all", rules: [{ required: true, message: '请选择部门名称' }] },
116
268
  React.createElement(Select, { allowClear: true },
117
269
  React.createElement(Select.Option, { value: "1" }, "\u662F"),
118
270
  React.createElement(Select.Option, { value: "0" }, "\u5426"))),
@@ -139,27 +291,18 @@ var FormDemo = function () {
139
291
  React.createElement(SearchItem, { name: "type44", width: "half", label: "\u4F60\u597D" },
140
292
  React.createElement(Select, null)),
141
293
  React.createElement(SearchItem, { name: "type6", width: "half", label: "\u4F60\u597D6" },
142
- React.createElement(EnhanceSelect, { list: [
143
- { id: '1', name: '小明' },
144
- { id: '2', name: '小红' },
145
- ] })),
146
- React.createElement(SearchItem, { dependencies: ['type6'], noStyle: true, baseconfig: JSON.stringify({
147
- name: 'type77',
148
- label: '你好77',
149
- }) }, function (_a) {
150
- var getFieldValue = _a.getFieldValue;
151
- console.log(getFieldValue('type6'));
152
- return (React.createElement(SearchItem, { name: "type77", width: "all", label: "\u4F60\u597D77" },
153
- React.createElement(EnhanceSelect, { list: [
154
- { id: '1', name: '小明' },
155
- { id: '2', name: '小红' },
156
- ] })));
157
- }),
294
+ React.createElement(Select, null)),
158
295
  getCustomDom()),
159
296
  React.createElement(SearchRight, { onSearchHandle: function () {
160
- var _a;
161
- (_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
162
297
  console.log(form.getFieldsValue());
163
- }, onResetHandle: function () { } })))));
298
+ // handleRef.current?.setToggleHandle(false);
299
+ // console.log(form.getFieldsValue(), formData);
300
+ }, onResetHandle: function () { } }))),
301
+ React.createElement("button", { onClick: function () {
302
+ // setNum(num + 1);
303
+ form.validateFields();
304
+ } },
305
+ "\u8BBE\u7F6E",
306
+ num)));
164
307
  };
165
308
  export default FormDemo;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,95 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (_) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import React, { memo, useEffect } from 'react';
38
+ import SearchContainer from '../components/business/SearchContainer';
39
+ import Form from '../components/Form';
40
+ import Input from '../components/Input';
41
+ import EnhanceSelect from 'components/EnhanceSelect';
42
+ var SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight, Item = SearchContainer.SearchItem;
43
+ var options = [
44
+ {
45
+ label: '小金鱼',
46
+ value: '213',
47
+ },
48
+ {
49
+ label: '周还会',
50
+ value: '333',
51
+ },
52
+ ];
53
+ for (var i = 10; i < 1000; i++) {
54
+ options.push({
55
+ label: i.toString(36) + i,
56
+ value: i.toString(36) + i,
57
+ });
58
+ }
59
+ var SearchForm = function () {
60
+ var form = Form.useForm()[0];
61
+ /**
62
+ * 搜索数据
63
+ */
64
+ function onSearchHandle() {
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ return __generator(this, function (_a) {
67
+ console.log(form.getFieldsValue());
68
+ return [2 /*return*/];
69
+ });
70
+ });
71
+ }
72
+ /**
73
+ * 重置表单数据
74
+ */
75
+ function onResetHandle() {
76
+ form.resetFields();
77
+ }
78
+ useEffect(function () {
79
+ form &&
80
+ form.setFieldsValue({
81
+ type123: 12323,
82
+ });
83
+ }, [form]);
84
+ return (React.createElement(Form, { name: "codeQuery-making", form: form },
85
+ React.createElement(SearchContainer, null,
86
+ React.createElement(SearchLeft, null,
87
+ React.createElement(Item, { name: "type123", label: "\u7F16\u7801\u7C7B\u578B", width: "double", disabled: true, rules: [{ required: true, message: '请填写编码类型' }] },
88
+ React.createElement(Input, null)),
89
+ React.createElement(Item, { name: "name", label: "\u63CF\u8FF0" },
90
+ React.createElement(Input, { allowClear: true })),
91
+ React.createElement(Item, { name: "selcet", label: "\u591A\u9009\u6846" },
92
+ React.createElement(EnhanceSelect, { mode: "multiple", list: options, dataKey: 'value', titleKey: 'label' }))),
93
+ React.createElement(SearchRight, { onSearchHandle: onSearchHandle, onResetHandle: onResetHandle }))));
94
+ };
95
+ export default memo(SearchForm);