ztxkui 4.2.18-21 → 4.2.18-220

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 (416) hide show
  1. package/dist/App.js +315 -291
  2. package/dist/Demo.js +64 -43
  3. package/dist/DemoCom/BasicDemo.js +57 -56
  4. package/dist/DemoCom/CodeQueryDemo.js +3 -2
  5. package/dist/DemoCom/CollapseDemo.js +28 -27
  6. package/dist/DemoCom/DragSort.js +11 -10
  7. package/dist/DemoCom/FormDemo.js +36 -30
  8. package/dist/DemoCom/PrintContainerDemo.js +151 -150
  9. package/dist/DemoCom/PrintDemo.js +15 -14
  10. package/dist/DemoCom/SinaturesDemo.js +9 -8
  11. package/dist/DemoCom/SyhDemo.js +21 -20
  12. package/dist/DemoCom/TableAnalyse.js +34 -33
  13. package/dist/DemoCom/TableDemo.js +73 -69
  14. package/dist/DemoCom/TableDemo1.js +84 -34
  15. package/dist/DemoCom/TableDetail.d.ts +9 -0
  16. package/dist/DemoCom/TableDetail.js +259 -0
  17. package/dist/DemoCom/TestCom.js +22 -19
  18. package/dist/DemoCom/data.d.ts +110 -0
  19. package/dist/DemoCom/data.js +2308 -0
  20. package/dist/TableDemo/BasicTable.js +225 -25
  21. package/dist/TableDemo/EditableTable.js +146 -72
  22. package/dist/TableDemo/ModalTable.js +25 -24
  23. package/dist/TableDemo/ProEditableTable.js +30 -29
  24. package/dist/TableDemo/data.d.ts +34 -0
  25. package/dist/TableDemo/data.js +387 -10
  26. package/dist/TableDemo/index.js +3 -3
  27. package/dist/TreeDemo.js +8 -7
  28. package/dist/TreeSelectDemo.js +12 -8
  29. package/dist/UI/Form/index.d.ts +3 -0
  30. package/dist/UI/Form/index.js +347 -0
  31. package/dist/UI/Input/index.d.ts +17 -0
  32. package/dist/UI/Input/index.js +74 -0
  33. package/dist/UI/InputNumber/index.d.ts +3 -0
  34. package/dist/UI/InputNumber/index.js +45 -0
  35. package/dist/UI/OldForm/index.d.ts +9 -0
  36. package/dist/UI/OldForm/index.js +302 -0
  37. package/dist/UI/Select/EmpForQuitDemo.d.ts +15 -0
  38. package/dist/UI/Select/EmpForQuitDemo.js +120 -0
  39. package/dist/UI/Select/index.d.ts +10 -0
  40. package/dist/UI/Select/index.js +207 -0
  41. package/dist/UI/Table/BusinessListDemo.d.ts +15 -0
  42. package/dist/UI/Table/BusinessListDemo.js +227 -0
  43. package/dist/UI/Table/BusinessMemberDemo.d.ts +18 -0
  44. package/dist/UI/Table/BusinessMemberDemo.js +181 -0
  45. package/dist/UI/Table/index.d.ts +10 -0
  46. package/dist/UI/Table/index.js +850 -0
  47. package/dist/UI/TreeSelect/index.d.ts +3 -0
  48. package/dist/UI/TreeSelect/index.js +120 -0
  49. package/dist/UI/index.d.ts +2 -0
  50. package/dist/UI/index.js +34 -0
  51. package/dist/UploadDemo.js +27 -23
  52. package/dist/components/Button/button.d.ts +6 -0
  53. package/dist/components/Button/button.js +11 -4
  54. package/dist/components/Collapse/collapse.js +2 -1
  55. package/dist/components/DatePicker/data-picker.d.ts +3 -1
  56. package/dist/components/EnhanceSelect/index.d.ts +11 -1
  57. package/dist/components/EnhanceSelect/index.js +231 -49
  58. package/dist/components/EnhanceTree/index.js +4 -3
  59. package/dist/components/EnhanceTreeSelect/index.d.ts +5 -1
  60. package/dist/components/EnhanceTreeSelect/index.js +57 -7
  61. package/dist/components/Export/export.js +5 -4
  62. package/dist/components/Form/form.d.ts +11 -1
  63. package/dist/components/Form/form.js +5 -3
  64. package/dist/components/Input/input.d.ts +5 -3
  65. package/dist/components/Input/input.js +72 -3
  66. package/dist/components/InputNumber/input-number.js +3 -2
  67. package/dist/components/Layout/layout.d.ts +4 -4
  68. package/dist/components/Menu/menu.d.ts +1 -1
  69. package/dist/components/NumberCase/index.js +9 -7
  70. package/dist/components/Print/print.js +4 -3
  71. package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
  72. package/dist/components/PrintContainer/PrintModal.js +4 -3
  73. package/dist/components/PrintContainer/handle.d.ts +2 -4
  74. package/dist/components/PrintContainer/handle.js +3 -2
  75. package/dist/components/PrintContainer/lodop.js +2 -1
  76. package/dist/components/PrintContainer/print-container.js +74 -73
  77. package/dist/components/PrintContainer/service.js +5 -4
  78. package/dist/components/ProForm/hooks.d.ts +23 -0
  79. package/dist/components/ProForm/hooks.js +209 -0
  80. package/dist/components/ProForm/index.d.ts +9 -0
  81. package/dist/components/ProForm/index.js +168 -0
  82. package/dist/components/ProForm/interface.d.ts +200 -0
  83. package/dist/components/ProForm/interface.js +1 -0
  84. package/dist/components/ProForm/item.d.ts +13 -0
  85. package/dist/components/ProForm/item.js +222 -0
  86. package/dist/components/ProForm/items.d.ts +5 -0
  87. package/dist/components/ProForm/items.js +36 -0
  88. package/dist/components/ProForm/record-common-list.d.ts +18 -0
  89. package/dist/components/ProForm/record-common-list.js +83 -0
  90. package/dist/components/ProForm/search-drawer.d.ts +14 -0
  91. package/dist/components/ProForm/search-drawer.js +237 -0
  92. package/dist/components/ProForm/setting.d.ts +5 -0
  93. package/dist/components/ProForm/setting.js +12 -0
  94. package/dist/components/ProForm/useCommonSearch.d.ts +35 -0
  95. package/dist/components/ProForm/useCommonSearch.js +352 -0
  96. package/dist/components/ProFormList/index.d.ts +12 -0
  97. package/dist/components/ProFormList/index.js +34 -0
  98. package/dist/components/RangePicker/range-picker.js +5 -2
  99. package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
  100. package/dist/components/SortableCancel/sortable-cancel.js +2 -2
  101. package/dist/components/Table/components/FillDown.js +2 -1
  102. package/dist/components/Table/components/FilterDropdown.d.ts +1 -0
  103. package/dist/components/Table/components/FilterDropdown.js +36 -12
  104. package/dist/components/Table/hooks/useColumns.d.ts +5 -0
  105. package/dist/components/Table/hooks/useColumns.js +396 -22
  106. package/dist/components/Table/hooks/useDropRef.js +2 -1
  107. package/dist/components/Table/hooks/useScuRfresh.d.ts +3 -0
  108. package/dist/components/Table/hooks/useScuRfresh.js +22 -0
  109. package/dist/components/Table/hooks/useSelectSubtotal.js +5 -1
  110. package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
  111. package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
  112. package/dist/components/Table/index.d.ts +4 -0
  113. package/dist/components/Table/table-adddel-column.js +4 -3
  114. package/dist/components/Table/table-dynamic.d.ts +1 -0
  115. package/dist/components/Table/table-dynamic.js +447 -60
  116. package/dist/components/Table/table-enhance-cell.d.ts +3 -0
  117. package/dist/components/Table/table-enhance-cell.js +28 -8
  118. package/dist/components/Table/table-menu.d.ts +7 -0
  119. package/dist/components/Table/table-menu.js +359 -0
  120. package/dist/components/Table/table-resizable-title.js +1 -0
  121. package/dist/components/Table/table-sort.js +4 -3
  122. package/dist/components/Table/table.d.ts +16 -0
  123. package/dist/components/Table/table.js +241 -65
  124. package/dist/components/Table/utils/dom.js +2 -1
  125. package/dist/components/Table/utils/filterHandle.d.ts +1 -1
  126. package/dist/components/Table/utils/filterHandle.js +27 -12
  127. package/dist/components/Table/utils/getSummaryData.d.ts +1 -1
  128. package/dist/components/Table/utils/getSummaryData.js +279 -24
  129. package/dist/components/Table/utils/shallowEqual.js +2 -1
  130. package/dist/components/Table/utils/validate.js +25 -6
  131. package/dist/components/Tabs/tabs.d.ts +2 -0
  132. package/dist/components/Tabs/tabs.js +3 -1
  133. package/dist/components/TranslationButton/DownFile.d.ts +7 -0
  134. package/dist/components/TranslationButton/DownFile.js +95 -0
  135. package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
  136. package/dist/components/TranslationButton/PreviewFile.js +73 -0
  137. package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
  138. package/dist/components/TranslationButton/TranslationButton.js +245 -0
  139. package/dist/components/TranslationButton/hooks.d.ts +8 -0
  140. package/dist/components/TranslationButton/hooks.js +139 -0
  141. package/dist/components/TranslationButton/index.d.ts +4 -0
  142. package/dist/components/TranslationButton/index.js +4 -0
  143. package/dist/components/TreeSelect/index.d.ts +19 -0
  144. package/dist/components/TreeSelect/index.js +88 -0
  145. package/dist/components/Upload/upload-table.js +31 -26
  146. package/dist/components/Upload/upload.d.ts +20 -1
  147. package/dist/components/Upload/upload.js +172 -27
  148. package/dist/components/Upload/utils.d.ts +9 -2
  149. package/dist/components/Upload/utils.js +153 -38
  150. package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
  151. package/dist/components/UploadCustom/hooks/useDg.js +55 -0
  152. package/dist/components/UploadSingle/upload-single.js +5 -4
  153. package/dist/components/Watermark/index.d.ts +2 -0
  154. package/dist/components/Watermark/index.js +2 -0
  155. package/dist/components/Watermark/interface.d.ts +20 -0
  156. package/dist/components/Watermark/interface.js +1 -0
  157. package/dist/components/Watermark/utils.d.ts +1 -0
  158. package/dist/components/Watermark/utils.js +70 -0
  159. package/dist/components/Watermark/water.d.ts +50 -0
  160. package/dist/components/Watermark/water.js +66 -0
  161. package/dist/components/Watermark/watermark-div.d.ts +4 -0
  162. package/dist/components/Watermark/watermark-div.js +41 -0
  163. package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
  164. package/dist/components/Watermark/watermark-shadow.js +116 -0
  165. package/dist/components/Watermark/watermark.d.ts +3 -0
  166. package/dist/components/Watermark/watermark.js +102 -0
  167. package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
  168. package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
  169. package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
  170. package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
  171. package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
  172. package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
  173. package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
  174. package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
  175. package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
  176. package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
  177. package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
  178. package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
  179. package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
  180. package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
  181. package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
  182. package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
  183. package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
  184. package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
  185. package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
  186. package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
  187. package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
  188. package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
  189. package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
  190. package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
  191. package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
  192. package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
  193. package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
  194. package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
  195. package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
  196. package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
  197. package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
  198. package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
  199. package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
  200. package/dist/components/WorkflowPrintContainer/images.js +2 -0
  201. package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
  202. package/dist/components/WorkflowPrintContainer/index.js +2 -0
  203. package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
  204. package/dist/components/WorkflowPrintContainer/service.js +101 -0
  205. package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
  206. package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
  207. package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
  208. package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
  209. package/dist/components/ZtIcon/index.js +2 -0
  210. package/dist/components/business/Analyse/index.js +12 -11
  211. package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
  212. package/dist/components/business/CodeQuery/component/TableList.js +5 -4
  213. package/dist/components/business/CodeQuery/hooks.js +2 -1
  214. package/dist/components/business/CodeQuery/index.js +2 -1
  215. package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
  216. package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
  217. package/dist/components/business/Common/UserInfo/index.js +5 -4
  218. package/dist/components/business/Common/UserPassword/index.js +14 -11
  219. package/dist/components/business/Common/validatePassword.d.ts +1 -1
  220. package/dist/components/business/Common/validatePassword.js +17 -7
  221. package/dist/components/business/DetailCard/index.js +7 -6
  222. package/dist/components/business/DetailHeader/index.js +7 -6
  223. package/dist/components/business/DetailList/index.js +5 -4
  224. package/dist/components/business/DgColumns/index.js +12 -11
  225. package/dist/components/business/ExportButton/index.js +6 -5
  226. package/dist/components/business/Footer/index.js +4 -1
  227. package/dist/components/business/GridList/item.d.ts +1 -1
  228. package/dist/components/business/List/item.d.ts +1 -1
  229. package/dist/components/business/NewList/item.d.ts +1 -1
  230. package/dist/components/business/NewList/item.js +1 -1
  231. package/dist/components/business/OperationBtnGroup/index.js +17 -16
  232. package/dist/components/business/SearchContainer/hooks/useDynamic.d.ts +2 -1
  233. package/dist/components/business/SearchContainer/hooks/useDynamic.js +6 -3
  234. package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
  235. package/dist/components/business/SearchContainer/hooks/useToggle.js +31 -12
  236. package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
  237. package/dist/components/business/SearchContainer/record-common-item.js +83 -0
  238. package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
  239. package/dist/components/business/SearchContainer/record-common-list.js +95 -0
  240. package/dist/components/business/SearchContainer/search-container.d.ts +22 -0
  241. package/dist/components/business/SearchContainer/search-container.js +66 -3
  242. package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
  243. package/dist/components/business/SearchContainer/search-drawer.js +167 -13
  244. package/dist/components/business/SearchContainer/search-item.js +48 -5
  245. package/dist/components/business/SearchContainer/search-left.d.ts +8 -0
  246. package/dist/components/business/SearchContainer/search-left.js +105 -68
  247. package/dist/components/business/SearchContainer/search-right.d.ts +4 -0
  248. package/dist/components/business/SearchContainer/search-right.js +62 -5
  249. package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +18 -0
  250. package/dist/components/business/SearchContainer/useRecordCommonInit.js +258 -0
  251. package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +8 -0
  252. package/dist/components/business/SearchContainer/useRecordCommonSearch.js +145 -0
  253. package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +37 -0
  254. package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
  255. package/dist/components/business/SearchContainer/useTemplate.d.ts +20 -0
  256. package/dist/components/business/SearchContainer/useTemplate.js +347 -0
  257. package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
  258. package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
  259. package/dist/components/business/Signatures/components/CodeModal.js +157 -0
  260. package/dist/components/business/Signatures/components/CompareResult.js +7 -6
  261. package/dist/components/business/Signatures/components/DetailTable.js +37 -34
  262. package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
  263. package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
  264. package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
  265. package/dist/components/business/Signatures/index.js +64 -53
  266. package/dist/components/business/SortList/sort-drawer.js +5 -4
  267. package/dist/components/business/Template/index.js +11 -10
  268. package/dist/components/electron-signatures/content.d.ts +9 -0
  269. package/dist/components/electron-signatures/content.js +1146 -0
  270. package/dist/components/electron-signatures/demoComponents/coUseDetail.d.ts +8 -0
  271. package/dist/components/electron-signatures/demoComponents/coUseDetail.js +255 -0
  272. package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
  273. package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
  274. package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
  275. package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
  276. package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
  277. package/dist/components/electron-signatures/demoComponents/index.js +30 -0
  278. package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
  279. package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
  280. package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
  281. package/dist/components/electron-signatures/demoComponents/making.js +211 -0
  282. package/dist/components/electron-signatures/demoComponents/makingData.d.ts +675 -0
  283. package/dist/components/electron-signatures/demoComponents/makingData.js +1178 -0
  284. package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
  285. package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
  286. package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
  287. package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
  288. package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
  289. package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
  290. package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
  291. package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
  292. package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
  293. package/dist/components/electron-signatures/demoComponents/test.js +119 -0
  294. package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
  295. package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
  296. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
  297. package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
  298. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
  299. package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
  300. package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
  301. package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
  302. package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
  303. package/dist/components/electron-signatures/electron-signatures-fragment.js +392 -0
  304. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
  305. package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +509 -0
  306. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
  307. package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
  308. package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
  309. package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +85 -0
  310. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
  311. package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
  312. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
  313. package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
  314. package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
  315. package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
  316. package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
  317. package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
  318. package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.d.ts +35 -0
  319. package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.js +39 -0
  320. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
  321. package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
  322. package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
  323. package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
  324. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
  325. package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +43 -0
  326. package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
  327. package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +398 -0
  328. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +24 -0
  329. package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +254 -0
  330. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
  331. package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +35 -0
  332. package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
  333. package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
  334. package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
  335. package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
  336. package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
  337. package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
  338. package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
  339. package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
  340. package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
  341. package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
  342. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
  343. package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +43 -0
  344. package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
  345. package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
  346. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
  347. package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
  348. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
  349. package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +132 -0
  350. package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
  351. package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
  352. package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
  353. package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
  354. package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +111 -0
  355. package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +436 -0
  356. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
  357. package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
  358. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
  359. package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
  360. package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
  361. package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
  362. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
  363. package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
  364. package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
  365. package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
  366. package/dist/components/electron-signatures/index.d.ts +15 -0
  367. package/dist/components/electron-signatures/index.js +63 -0
  368. package/dist/components/electron-signatures/interface.d.ts +865 -0
  369. package/dist/components/electron-signatures/interface.js +57 -0
  370. package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
  371. package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
  372. package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
  373. package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
  374. package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
  375. package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
  376. package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
  377. package/dist/components/electron-signatures/qunjComponents/qunj-list.js +355 -0
  378. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
  379. package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +66 -0
  380. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
  381. package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
  382. package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
  383. package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
  384. package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
  385. package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
  386. package/dist/components/electron-signatures/utils.d.ts +26 -0
  387. package/dist/components/electron-signatures/utils.js +67 -0
  388. package/dist/components/utils/MyStorage.d.ts +36 -0
  389. package/dist/components/utils/MyStorage.js +120 -0
  390. package/dist/components/utils/ZtxkContext.d.ts +67 -0
  391. package/dist/components/utils/ZtxkContext.js +20 -0
  392. package/dist/components/utils/checkSealCoUse.d.ts +16 -0
  393. package/dist/components/utils/checkSealCoUse.js +83 -0
  394. package/dist/components/utils/fetch.d.ts +10 -0
  395. package/dist/components/utils/fetch.js +119 -0
  396. package/dist/components/utils/index.d.ts +9 -0
  397. package/dist/components/utils/index.js +11 -0
  398. package/dist/components/utils/processNumber.d.ts +12 -0
  399. package/dist/components/utils/processNumber.js +106 -0
  400. package/dist/components/utils/upload.js +6 -3
  401. package/dist/components/utils/useBaseContext.d.ts +23 -0
  402. package/dist/components/utils/useBaseContext.js +31 -0
  403. package/dist/components/utils/useMemoizedFn.d.ts +4 -0
  404. package/dist/components/utils/useMemoizedFn.js +19 -0
  405. package/dist/components/utils/usePrevious.d.ts +3 -0
  406. package/dist/components/utils/usePrevious.js +13 -0
  407. package/dist/constants.d.ts +1 -1
  408. package/dist/constants.js +1 -1
  409. package/dist/index.css +2205 -58
  410. package/dist/index.css.map +1 -1
  411. package/dist/index.d.ts +12 -1
  412. package/dist/index.js +255 -86
  413. package/dist/locales/en-US.json +828 -0
  414. package/dist/locales/zh-CN.json +828 -0
  415. package/dist/request.js +7 -6
  416. package/package.json +13 -4
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TreeSelectDemo: React.FC;
3
+ export default TreeSelectDemo;
@@ -0,0 +1,120 @@
1
+ import React, { useState } from 'react';
2
+ import { TreeSelect, Button } from '../../index';
3
+ var treeData = [
4
+ {
5
+ title: '总公司',
6
+ value: '0-0',
7
+ key: '0-0',
8
+ children: [
9
+ {
10
+ title: '研发部',
11
+ value: '0-0-1',
12
+ key: '0-0-1',
13
+ children: [
14
+ { title: '前端组', value: '0-0-1-1', key: '0-0-1-1' },
15
+ { title: '后端组', value: '0-0-1-2', key: '0-0-1-2' },
16
+ ],
17
+ },
18
+ {
19
+ title: '产品部',
20
+ value: '0-0-2',
21
+ key: '0-0-2',
22
+ children: [
23
+ { title: '产品设计', value: '0-0-2-1', key: '0-0-2-1' },
24
+ { title: 'UI设计', value: '0-0-2-2', key: '0-0-2-2' },
25
+ ],
26
+ },
27
+ {
28
+ title: '运营部',
29
+ value: '0-0-3',
30
+ key: '0-0-3',
31
+ },
32
+ ],
33
+ },
34
+ {
35
+ title: '分公司',
36
+ value: '0-1',
37
+ key: '0-1',
38
+ children: [
39
+ { title: '北京分公司', value: '0-1-1', key: '0-1-1' },
40
+ { title: '上海分公司', value: '0-1-2', key: '0-1-2' },
41
+ ],
42
+ },
43
+ ];
44
+ // 自定义字段名的数据(label / id 而非 title / value)
45
+ var customFieldData = [
46
+ {
47
+ label: '类别A',
48
+ id: 'a',
49
+ key: 'a',
50
+ children: [
51
+ { label: '选项A1', id: 'a1', key: 'a1' },
52
+ { label: '选项A2', id: 'a2', key: 'a2' },
53
+ ],
54
+ },
55
+ {
56
+ label: '类别B',
57
+ id: 'b',
58
+ key: 'b',
59
+ children: [{ label: '选项B1', id: 'b1', key: 'b1' }],
60
+ },
61
+ ];
62
+ var sectionStyle = {
63
+ marginBottom: 24,
64
+ };
65
+ var labelStyle = {
66
+ display: 'block',
67
+ marginBottom: 8,
68
+ fontSize: 14,
69
+ fontWeight: 600,
70
+ color: '#333',
71
+ };
72
+ var formatValue = function (val) {
73
+ if (val === undefined || val === null)
74
+ return '无';
75
+ if (Array.isArray(val))
76
+ return val.filter(function (v) { return v !== ''; }).join(', ') || '无';
77
+ return String(val);
78
+ };
79
+ var TreeSelectDemo = function () {
80
+ var _a = useState(), singleValue = _a[0], setSingleValue = _a[1];
81
+ var _b = useState(), multiValue = _b[0], setMultiValue = _b[1];
82
+ var _c = useState(), showAllValue = _c[0], setShowAllValue = _c[1];
83
+ var _d = useState(), customValue = _d[0], setCustomValue = _d[1];
84
+ return (React.createElement("div", { style: { padding: '20px', maxWidth: 500 } },
85
+ React.createElement("h2", null, "\u6811\u4E0B\u62C9\u6846\u9009\u62E9"),
86
+ React.createElement("div", { style: sectionStyle },
87
+ React.createElement("label", { style: labelStyle }, "1. \u57FA\u7840\u5355\u9009"),
88
+ React.createElement(TreeSelect, { style: { width: '100%' }, placeholder: "\u8BF7\u9009\u62E9", treeData: treeData, value: singleValue, onChange: setSingleValue, treeDefaultExpandAll: true, allowClear: true }),
89
+ React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
90
+ "\u9009\u4E2D\u503C\uFF1A",
91
+ formatValue(singleValue))),
92
+ React.createElement("div", { style: sectionStyle },
93
+ React.createElement("label", { style: labelStyle }, "2. \u591A\u9009\uFF08showAll \u9ED8\u8BA4\u5F00\u542F\uFF0C\u5168\u90E8\u4E0E\u5176\u4ED6\u4E92\u65A5\uFF09"),
94
+ React.createElement(TreeSelect, { style: { width: '100%' }, placeholder: "\u8BF7\u9009\u62E9", treeData: treeData, value: multiValue, onChange: setMultiValue, treeCheckable: true, showCheckedStrategy: TreeSelect.SHOW_CHILD, treeDefaultExpandAll: true, allowClear: true }),
95
+ React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
96
+ "\u9009\u4E2D\u503C\uFF1A",
97
+ formatValue(multiValue)),
98
+ React.createElement(Button, { type: "default", size: "small", style: { marginTop: 8 }, onClick: function () { return setMultiValue(['']); } }, "\u8BBE\u7F6E\u4E3A\u300C\u5168\u90E8\u300D")),
99
+ React.createElement("div", { style: sectionStyle },
100
+ React.createElement("label", { style: labelStyle }, "3. \u591A\u9009\uFF08showAll=false\uFF0C\u4E0D\u663E\u793A\u5168\u90E8\uFF09"),
101
+ React.createElement(TreeSelect, { style: { width: '100%' }, placeholder: "\u8BF7\u9009\u62E9", treeData: treeData, value: showAllValue, onChange: setShowAllValue, treeCheckable: true, showCheckedStrategy: TreeSelect.SHOW_CHILD, treeDefaultExpandAll: true, allowClear: true, showAll: false }),
102
+ React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
103
+ "\u9009\u4E2D\u503C\uFF1A",
104
+ formatValue(showAllValue))),
105
+ React.createElement("div", { style: sectionStyle },
106
+ React.createElement("label", { style: labelStyle }, "4. \u591A\u9009 + \u81EA\u5B9A\u4E49\u5B57\u6BB5\u540D\uFF08label/id\uFF09+ showAll \u5168\u90E8\u4E92\u65A5"),
107
+ React.createElement(TreeSelect, { style: { width: '100%' }, placeholder: "\u8BF7\u9009\u62E9", treeData: customFieldData, fieldNames: { label: 'label', value: 'id', children: 'children' }, value: customValue, onChange: setCustomValue, treeCheckable: true, showCheckedStrategy: TreeSelect.SHOW_CHILD, treeDefaultExpandAll: true, allowClear: true }),
108
+ React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
109
+ "\u9009\u4E2D\u503C\uFF1A",
110
+ formatValue(customValue)),
111
+ React.createElement("div", { style: { marginTop: 2, fontSize: 12, color: '#999' } }, "\u6570\u636E\u4F7F\u7528 label/id \u5B57\u6BB5\uFF0C\u901A\u8FC7 fieldNames \u6620\u5C04")),
112
+ React.createElement("div", { style: sectionStyle },
113
+ React.createElement("label", { style: labelStyle }, "5. \u652F\u6301\u641C\u7D22\uFF08\u5355\u9009\uFF09"),
114
+ React.createElement(TreeSelect, { style: { width: '100%' }, placeholder: "\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22", treeData: treeData, showSearch: true, treeDefaultExpandAll: true, allowClear: true })),
115
+ React.createElement("div", { style: sectionStyle },
116
+ React.createElement("label", { style: labelStyle }, "6. \u5355\u9009 + showAll\uFF08\u591A\u9009\u6A21\u5F0F\u4E0B\u9ED8\u8BA4\u5F00\u542F\uFF09"),
117
+ React.createElement(TreeSelect, { style: { width: '100%' }, placeholder: "\u8BF7\u9009\u62E9", treeData: treeData, showAll: true, treeDefaultExpandAll: true, allowClear: true }),
118
+ React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } }, "\u9009\u4E2D\u300C\u5168\u90E8\u300D\u65F6\u503C\u4E3A\u7A7A\u5B57\u7B26\u4E32"))));
119
+ };
120
+ export default TreeSelectDemo;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function UIComponent(): JSX.Element;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { Link, Switch, Route } from 'react-router-dom';
3
+ import Form from './Form';
4
+ import OldFormDemo from './OldForm';
5
+ import TableDemo from './Table';
6
+ import TreeSelectDemo from './TreeSelect';
7
+ import InputNumberDemo from './InputNumber';
8
+ import InputDemo from './Input';
9
+ import SelectDemo from './Select';
10
+ export default function UIComponent() {
11
+ return (React.createElement("div", { style: { padding: '10px' } },
12
+ React.createElement(Link, { to: "/ui/form", style: { marginRight: '10px' } }, "\u8868\u5355"),
13
+ React.createElement(Link, { to: "/ui/oldForm", style: { marginRight: '10px' } }, "\u65E7\u8868\u5355"),
14
+ React.createElement(Link, { to: "/ui/table", style: { marginRight: '10px' } }, "\u8868\u683C"),
15
+ React.createElement(Link, { to: "/ui/tree-select", style: { marginRight: '10px' } }, "\u6811\u4E0B\u62C9\u6846"),
16
+ React.createElement(Link, { to: "/ui/input-number", style: { marginRight: '10px' } }, "\u6570\u5B57\u8F93\u5165\u6846"),
17
+ React.createElement(Link, { to: "/ui/input", style: { marginRight: '10px' } }, "\u8F93\u5165\u6846"),
18
+ React.createElement(Link, { to: "/ui/select", style: { marginRight: '10px' } }, "\u4E0B\u62C9\u6846"),
19
+ React.createElement(Switch, null,
20
+ React.createElement(Route, { path: "/ui/form" },
21
+ React.createElement(Form, null)),
22
+ React.createElement(Route, { path: "/ui/oldForm" },
23
+ React.createElement(OldFormDemo, null)),
24
+ React.createElement(Route, { path: "/ui/table" },
25
+ React.createElement(TableDemo, null)),
26
+ React.createElement(Route, { path: "/ui/tree-select" },
27
+ React.createElement(TreeSelectDemo, null)),
28
+ React.createElement(Route, { path: "/ui/input-number" },
29
+ React.createElement(InputNumberDemo, null)),
30
+ React.createElement(Route, { path: "/ui/input" },
31
+ React.createElement(InputDemo, null)),
32
+ React.createElement(Route, { path: "/ui/select" },
33
+ React.createElement(SelectDemo, null)))));
34
+ }
@@ -45,6 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
45
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
46
  }
47
47
  };
48
+ import i18next from 'ztxkutils/dist/i18next';
48
49
  import { Link } from 'react-router-dom';
49
50
  import Upload from 'components/Upload';
50
51
  import { useState, useEffect, useCallback, useRef } from 'react';
@@ -71,7 +72,7 @@ var test = {
71
72
  fileList: [
72
73
  {
73
74
  attachId: '1590543875399150764',
74
- attachName: '心量于里两111.pdf',
75
+ attachName: i18next.t('心量于里两111.pdf'),
75
76
  attachTypeName: null,
76
77
  isCustomerReference: null,
77
78
  templateAttachId: null,
@@ -107,7 +108,7 @@ var test = {
107
108
  },
108
109
  {
109
110
  attachId: '1590543945628586394',
110
- attachName: '心量于里两222.pdf',
111
+ attachName: i18next.t('心量于里两222.pdf'),
111
112
  attachTypeName: null,
112
113
  isCustomerReference: null,
113
114
  templateAttachId: null,
@@ -213,7 +214,7 @@ function UploadDemo() {
213
214
  // ]);
214
215
  // }, 3000);
215
216
  }, []);
216
- var uploadCallbackFn = useCallback(function (filelist) {
217
+ var uploadCallbackFn = useCallback(function (filelist, option) {
217
218
  if (filelist.every(function (item) { return item.status === 'done' || item.status === 'error'; })) {
218
219
  // 获取上传成功的,图片,进行数据转换,上传服务端
219
220
  var successFileList = filelist
@@ -230,8 +231,8 @@ function UploadDemo() {
230
231
  fileSize: item.fileSize ? item.fileSize : item.size,
231
232
  });
232
233
  });
233
- console.log(successFileList);
234
- setFileList(filelist);
234
+ console.log(successFileList, option.currentResolution);
235
+ // setFileList(filelist);
235
236
  setFileList1(filelist);
236
237
  }
237
238
  }, []);
@@ -242,7 +243,10 @@ function UploadDemo() {
242
243
  switch (_e.label) {
243
244
  case 0:
244
245
  _e.trys.push([0, 3, , 4]);
245
- return [4 /*yield*/, ((_b = (_a = upload.current) === null || _a === void 0 ? void 0 : _a.validate) === null || _b === void 0 ? void 0 : _b.call(_a, { title: '测试下面的', isError: true }))];
246
+ return [4 /*yield*/, ((_b = (_a = upload.current) === null || _a === void 0 ? void 0 : _a.validate) === null || _b === void 0 ? void 0 : _b.call(_a, {
247
+ title: i18next.t('测试下面的'),
248
+ isError: true,
249
+ }))];
246
250
  case 1:
247
251
  _e.sent();
248
252
  return [4 /*yield*/, ((_d = (_c = tableHandleRef.current) === null || _c === void 0 ? void 0 : _c.validate) === null || _d === void 0 ? void 0 : _d.call(_c))];
@@ -266,24 +270,18 @@ function UploadDemo() {
266
270
  console.log(fileList);
267
271
  };
268
272
  var beforeUploadFn = function (file, fileList) {
269
- console.log('请传入特殊值');
273
+ console.log(i18next.t('请传入特殊值'));
270
274
  return UploadSingle.LIST_IGNORE;
271
275
  };
272
276
  var tableHandleRef = useRef();
277
+ console.log(fileList1);
273
278
  return (React.createElement("div", null,
274
- React.createElement(UploadSingle, { action: "http://192.168.0.83:8000/api/zmdms-resource/oss/endpoint/put-file-attach", data: {
275
- system: '2',
276
- }, headers: {
277
- 'Zmdms-Auth': token,
278
- }, method: "post", beforeUpload: beforeUploadFn }),
279
+ React.createElement(UploadSingle, { action: "http://192.168.0.83:8000/api/zmdms-resource/oss/endpoint/put-file-attach", data: { system: '2' }, headers: { 'Zmdms-Auth': token }, method: "post", beforeUpload: beforeUploadFn }),
279
280
  React.createElement("div", null),
280
281
  React.createElement(Link, { to: "/test" }, "test"),
281
- React.createElement(Upload, { method: "post", headers: {
282
- 'Zmdms-Auth': token,
283
- }, showUploadList: {
284
- showDownloadIcon: true,
285
- showRemoveIcon: true,
286
- }, apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", showTable: false, showTip: false, originFileList: fileList, maxCount: 2, callback: uploadCallbackFn, onDeleteCallback: function (index, file) {
282
+ React.createElement(Upload, { method: "post", headers: { 'Zmdms-Auth': token }, showUploadList: { showDownloadIcon: true, showRemoveIcon: true }, apiBaseUrl: "http://base-test.zmdms.com.cn:30079", fileBaseUrl: "http://preview-test.zmdms.com.cn:30079", showTable: false, showTip: false, originFileList: fileList, maxCount: 2,
283
+ // callback={uploadCallbackFn}
284
+ onDeleteCallback: function (index, file) {
287
285
  console.log(index, file);
288
286
  }, authToken: token }),
289
287
  React.createElement(Upload, { method: "post", headers: {
@@ -292,22 +290,28 @@ function UploadDemo() {
292
290
  system: '2',
293
291
  },
294
292
  // ztAccept={['.ttf']}
295
- apiBaseUrl: "http://192.168.0.83:8000", fileBaseUrl: "http://192.168.0.83:88", originFileList: fileList, callback: uploadCallbackFn, onDeleteCallback: function (index, file) {
293
+ apiBaseUrl: "http://base-test.zmdms.com.cn:30079", fileBaseUrl: "http://preview-test.zmdms.com.cn:30079", originFileList: fileList,
294
+ // callback={uploadCallbackFn}
295
+ onDeleteCallback: function (index, file) {
296
296
  console.log(index, file);
297
297
  }, upload: upload, rowSelection: "checkbox", showAllDeleteBtn: true, showAllDownloadBtn: true, uploadTableRef: uploadTableRef, tableRestProps: {
298
298
  tableHandleRef: tableHandleRef,
299
299
  } }),
300
- React.createElement(Upload, { maxSize: 200 * 1024, ztAccept: ['.jpg', '.jpeg', '.png', '.bmp', '.gif'], listType: "picture-card", method: "post", headers: {
300
+ React.createElement(Upload, { isCrop: true, cropProps: {
301
+ rotationSlider: true,
302
+ aspect: 4 / 5,
303
+ quality: 1,
304
+ }, maxSize: 2 * 1024 * 1024, minSize: 20 * 1024, maxResolution: { width: 960, height: 1200 }, minResolution: { width: 480, height: 600 }, ztAccept: ['.jpg', '.jpeg'], listType: "picture-card", method: "post", headers: {
301
305
  'Zmdms-Auth': token,
302
306
  }, showUploadList: {
303
307
  showPreviewIcon: true,
304
308
  showDownloadIcon: true,
305
309
  showRemoveIcon: true,
306
- }, apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", showTable: false, showTip: false, originFileList: fileList1, maxCount: 1, callback: uploadCallbackFn, onDeleteCallback: function (index, file) {
310
+ }, apiBaseUrl: "http://base-test.zmdms.com.cn:30079", fileBaseUrl: "http://preview-test.zmdms.com.cn:30079", showTable: false, showTip: false, originFileList: fileList1, maxCount: 1, callback: uploadCallbackFn, onDeleteCallback: function (index, file) {
307
311
  console.log(index, file);
308
312
  }, authToken: token }),
309
313
  React.createElement(Sinatures, { canEdit: 0, ZT_API_BASEURL: "http://192.168.0.83:8888", ZT_FILE_BASEURL: "http://192.168.0.83:88", needQj: 0, needDg: 0, needQys: 0, flowId: 1, deptId: "1", caseId: "1", contractId: "1", docAttachMap: "1", checkAttachIdList: [], documentIdList: [], flowStatus: 1, fileList: test.fileList, token: token, request: myRequest }),
310
- React.createElement("button", { onClick: checkHandle }, "\u68C0\u67E5"),
311
- React.createElement("button", { onClick: getHandle }, "\u83B7\u53D6\u9009\u4E2D\u9879")));
314
+ React.createElement("button", { onClick: checkHandle }, i18next.t('检查')),
315
+ React.createElement("button", { onClick: getHandle }, i18next.t('获取选中项'))));
312
316
  }
313
317
  export default UploadDemo;
@@ -8,6 +8,12 @@ export interface IProps extends ButtonProps {
8
8
  showCopy?: boolean | string;
9
9
  /** copy容器样式 */
10
10
  copyContainerStyle?: any;
11
+ /** 紧凑布局 */
12
+ compact?: boolean;
13
+ /** 是否按UI周查样式调整,可覆盖全局配置 */
14
+ isUIWeeklyReview?: boolean;
15
+ /** 按钮旁显示Tooltip提示图标 */
16
+ toolTip?: React.ReactNode;
11
17
  }
12
18
  declare const Button: React.FC<IProps>;
13
19
  export default Button;
@@ -20,20 +20,27 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import i18next from 'ztxkutils/dist/i18next';
23
24
  import React, { useRef } from 'react';
24
25
  import { Button as AntButton } from 'antd';
25
26
  import classNames from 'classnames';
27
+ import useBaseContext from '../utils/useBaseContext';
28
+ import { getFinalValue } from '../utils';
26
29
  var maxClickTime = 1000;
27
30
  var Button = function (props) {
28
31
  var _a;
29
- var children = props.children, type = props.type, size = props.size, disabled = props.disabled, danger = props.danger, className = props.className, onClick = props.onClick, _b = props.agentClick, agentClick = _b === void 0 ? true : _b, showCopy = props.showCopy, copyContainerStyle = props.copyContainerStyle, restProps = __rest(props, ["children", "type", "size", "disabled", "danger", "className", "onClick", "agentClick", "showCopy", "copyContainerStyle"]);
32
+ var children = props.children, type = props.type, size = props.size, disabled = props.disabled, danger = props.danger, className = props.className, onClick = props.onClick, _b = props.agentClick, agentClick = _b === void 0 ? true : _b, showCopy = props.showCopy, copyContainerStyle = props.copyContainerStyle, compact = props.compact, componentUIWeeklyReview = props.isUIWeeklyReview, toolTip = props.toolTip, restProps = __rest(props, ["children", "type", "size", "disabled", "danger", "className", "onClick", "agentClick", "showCopy", "copyContainerStyle", "compact", "isUIWeeklyReview", "toolTip"]);
33
+ var contextUIWeeklyReview = useBaseContext().isUIWeeklyReview;
34
+ var isUIWeeklyReviewBool = getFinalValue(contextUIWeeklyReview, componentUIWeeklyReview);
35
+ var finalType = isUIWeeklyReviewBool ? type || 'default' : type;
30
36
  var startTimeRef = useRef(0);
31
37
  var btnRef = useRef();
32
38
  var classes = classNames('zt-btn', className, (_a = {},
33
- _a["zt-btn-" + type] = type,
39
+ _a["zt-btn-" + finalType] = finalType,
34
40
  _a["zt-btn-disabled"] = disabled,
35
41
  _a["zt-btn-" + size] = size,
36
42
  _a["zt-btn-dangerous"] = danger,
43
+ _a["zt-button--compact"] = compact,
37
44
  _a));
38
45
  var myOnClick = function (event) {
39
46
  if (agentClick) {
@@ -45,7 +52,7 @@ var Button = function (props) {
45
52
  }
46
53
  else {
47
54
  startTimeRef.current = nowDateTime;
48
- console.log('点击按钮过于频繁');
55
+ console.log(i18next.t('点击按钮过于频繁'));
49
56
  }
50
57
  }
51
58
  else {
@@ -73,6 +80,6 @@ var Button = function (props) {
73
80
  paddingRight: 0,
74
81
  fontSize: '12px',
75
82
  color: '#4285f4',
76
- } }, "\u590D\u5236")))) : (React.createElement(AntButton, __assign({ className: classes, type: type, disabled: disabled, size: size, danger: danger, onClick: myOnClick, ref: btnRef }, restProps), props.children));
83
+ } }, i18next.t('复制'))))) : (React.createElement(AntButton, __assign({ className: classes, type: type, disabled: disabled, size: size, danger: danger, onClick: myOnClick, ref: btnRef }, restProps), props.children));
77
84
  };
78
85
  export default Button;
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import i18next from 'ztxkutils/dist/i18next';
23
24
  import React from 'react';
24
25
  import { Collapse as AntCollapse } from 'antd';
25
26
  import { DownOutlined } from '@ant-design/icons';
@@ -35,7 +36,7 @@ function Collapse(props) {
35
36
  var isActive = _a.isActive;
36
37
  return (React.createElement("div", { className: "zt-collapse--icon" },
37
38
  React.createElement(DownOutlined, { rotate: isActive ? -180 : 0 }),
38
- React.createElement("span", { className: "zt-collapse--icon-text" }, isActive ? '收起' : '展开')));
39
+ React.createElement("span", { className: "zt-collapse--icon-text" }, isActive ? i18next.t('收起') : i18next.t('展开'))));
39
40
  };
40
41
  return (React.createElement(AntCollapse, __assign({ expandIconPosition: "right", bordered: false, className: classes, expandIcon: expandIconFn }, restProps), children));
41
42
  }
@@ -1,6 +1,8 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import 'antd/es/date-picker/style/index';
3
- declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, unknown> & {
3
+ declare const DatePicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs> & {
4
+ status?: "" | "error" | "warning";
5
+ }, unknown> & {
4
6
  WeekPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
5
7
  MonthPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
6
8
  YearPicker: import("antd/es/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/es/date-picker/generatePicker").PickerDateProps<Dayjs>, "picker">, unknown>;
@@ -49,6 +49,12 @@ export interface IProps<T> extends Omit<SelectProps<T>, 'onChange'> {
49
49
  * 拼接形式
50
50
  */
51
51
  joinStr?: string;
52
+ /**
53
+ * 选中后回显是否显示拼接后的完整内容(joinKey 拼接串),默认显示;
54
+ * 下拉列表中的选项展示不受该属性影响,始终显示完整拼接内容
55
+ * 不传时取全局配置 isSelectJoinInLabel(默认显示)
56
+ */
57
+ isJoinInLabel?: boolean;
52
58
  /**
53
59
  * 换行展示的数据
54
60
  */
@@ -139,6 +145,10 @@ export interface IProps<T> extends Omit<SelectProps<T>, 'onChange'> {
139
145
  */
140
146
  isPaste?: boolean;
141
147
  pasteRule?: string[];
148
+ /**
149
+ * 是否只要输入即加入列表
150
+ */
151
+ isPasteAddItem?: boolean;
142
152
  }
143
153
  export declare function clearCatchData(url: string): void;
144
154
  /**
@@ -156,6 +166,6 @@ export declare function clearCatchData(url: string): void;
156
166
  * { code: 200, data: { records: [] } } || { status: 200, data: { code: 200, data: { records: [] } } }
157
167
  * 如果数据不能在接口层面满足以上形式,那么组件提供transformData属性,转换接口数据格式
158
168
  */
159
- declare function EnhanceSelect<VT extends SelectValue = SelectValue>({ list, defaultList, params, url, method, timeout, dataKey, componentKey, titleKey, showAll, isCatch, onCompleted, onChange, onSearch, request, remoteSearch, remoteSearchKey, remoteSearchDataKey, isRemoteSearchDataKey, transformData, joinKey, joinStr, lineFeedKey, lineFeedStr, mustHasParams, disabledValues, searchDeleteKeys, isHandAddItem, isPage, currentSize, isCopy, onBlur, onFocus, isClickRequest, handleRef, isPaste, pasteRule, ...restProps }: IProps<VT>): JSX.Element;
169
+ declare function EnhanceSelect<VT extends SelectValue = SelectValue>({ list, defaultList, params, url, method, timeout, dataKey, componentKey, titleKey, showAll, isCatch, onCompleted, onChange, onSearch, request, remoteSearch, remoteSearchKey, remoteSearchDataKey, isRemoteSearchDataKey, transformData, joinKey, joinStr, isJoinInLabel, lineFeedKey, lineFeedStr, mustHasParams, disabledValues, searchDeleteKeys, isHandAddItem, isPage, currentSize, isCopy, onBlur, onFocus, isClickRequest, handleRef, isPaste, pasteRule, isPasteAddItem, ...restProps }: IProps<VT>): JSX.Element;
160
170
  declare const _default: React.MemoExoticComponent<typeof EnhanceSelect>;
161
171
  export default _default;