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.
- package/dist/App.js +315 -291
- package/dist/Demo.js +64 -43
- package/dist/DemoCom/BasicDemo.js +57 -56
- package/dist/DemoCom/CodeQueryDemo.js +3 -2
- package/dist/DemoCom/CollapseDemo.js +28 -27
- package/dist/DemoCom/DragSort.js +11 -10
- package/dist/DemoCom/FormDemo.js +36 -30
- package/dist/DemoCom/PrintContainerDemo.js +151 -150
- package/dist/DemoCom/PrintDemo.js +15 -14
- package/dist/DemoCom/SinaturesDemo.js +9 -8
- package/dist/DemoCom/SyhDemo.js +21 -20
- package/dist/DemoCom/TableAnalyse.js +34 -33
- package/dist/DemoCom/TableDemo.js +73 -69
- package/dist/DemoCom/TableDemo1.js +84 -34
- package/dist/DemoCom/TableDetail.d.ts +9 -0
- package/dist/DemoCom/TableDetail.js +259 -0
- package/dist/DemoCom/TestCom.js +22 -19
- package/dist/DemoCom/data.d.ts +110 -0
- package/dist/DemoCom/data.js +2308 -0
- package/dist/TableDemo/BasicTable.js +225 -25
- package/dist/TableDemo/EditableTable.js +146 -72
- package/dist/TableDemo/ModalTable.js +25 -24
- package/dist/TableDemo/ProEditableTable.js +30 -29
- package/dist/TableDemo/data.d.ts +34 -0
- package/dist/TableDemo/data.js +387 -10
- package/dist/TableDemo/index.js +3 -3
- package/dist/TreeDemo.js +8 -7
- package/dist/TreeSelectDemo.js +12 -8
- package/dist/UI/Form/index.d.ts +3 -0
- package/dist/UI/Form/index.js +347 -0
- package/dist/UI/Input/index.d.ts +17 -0
- package/dist/UI/Input/index.js +74 -0
- package/dist/UI/InputNumber/index.d.ts +3 -0
- package/dist/UI/InputNumber/index.js +45 -0
- package/dist/UI/OldForm/index.d.ts +9 -0
- package/dist/UI/OldForm/index.js +302 -0
- package/dist/UI/Select/EmpForQuitDemo.d.ts +15 -0
- package/dist/UI/Select/EmpForQuitDemo.js +120 -0
- package/dist/UI/Select/index.d.ts +10 -0
- package/dist/UI/Select/index.js +207 -0
- package/dist/UI/Table/BusinessListDemo.d.ts +15 -0
- package/dist/UI/Table/BusinessListDemo.js +227 -0
- package/dist/UI/Table/BusinessMemberDemo.d.ts +18 -0
- package/dist/UI/Table/BusinessMemberDemo.js +181 -0
- package/dist/UI/Table/index.d.ts +10 -0
- package/dist/UI/Table/index.js +850 -0
- package/dist/UI/TreeSelect/index.d.ts +3 -0
- package/dist/UI/TreeSelect/index.js +120 -0
- package/dist/UI/index.d.ts +2 -0
- package/dist/UI/index.js +34 -0
- package/dist/UploadDemo.js +27 -23
- package/dist/components/Button/button.d.ts +6 -0
- package/dist/components/Button/button.js +11 -4
- package/dist/components/Collapse/collapse.js +2 -1
- package/dist/components/DatePicker/data-picker.d.ts +3 -1
- package/dist/components/EnhanceSelect/index.d.ts +11 -1
- package/dist/components/EnhanceSelect/index.js +231 -49
- package/dist/components/EnhanceTree/index.js +4 -3
- package/dist/components/EnhanceTreeSelect/index.d.ts +5 -1
- package/dist/components/EnhanceTreeSelect/index.js +57 -7
- package/dist/components/Export/export.js +5 -4
- package/dist/components/Form/form.d.ts +11 -1
- package/dist/components/Form/form.js +5 -3
- package/dist/components/Input/input.d.ts +5 -3
- package/dist/components/Input/input.js +72 -3
- package/dist/components/InputNumber/input-number.js +3 -2
- package/dist/components/Layout/layout.d.ts +4 -4
- package/dist/components/Menu/menu.d.ts +1 -1
- package/dist/components/NumberCase/index.js +9 -7
- package/dist/components/Print/print.js +4 -3
- package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
- package/dist/components/PrintContainer/PrintModal.js +4 -3
- package/dist/components/PrintContainer/handle.d.ts +2 -4
- package/dist/components/PrintContainer/handle.js +3 -2
- package/dist/components/PrintContainer/lodop.js +2 -1
- package/dist/components/PrintContainer/print-container.js +74 -73
- package/dist/components/PrintContainer/service.js +5 -4
- package/dist/components/ProForm/hooks.d.ts +23 -0
- package/dist/components/ProForm/hooks.js +209 -0
- package/dist/components/ProForm/index.d.ts +9 -0
- package/dist/components/ProForm/index.js +168 -0
- package/dist/components/ProForm/interface.d.ts +200 -0
- package/dist/components/ProForm/interface.js +1 -0
- package/dist/components/ProForm/item.d.ts +13 -0
- package/dist/components/ProForm/item.js +222 -0
- package/dist/components/ProForm/items.d.ts +5 -0
- package/dist/components/ProForm/items.js +36 -0
- package/dist/components/ProForm/record-common-list.d.ts +18 -0
- package/dist/components/ProForm/record-common-list.js +83 -0
- package/dist/components/ProForm/search-drawer.d.ts +14 -0
- package/dist/components/ProForm/search-drawer.js +237 -0
- package/dist/components/ProForm/setting.d.ts +5 -0
- package/dist/components/ProForm/setting.js +12 -0
- package/dist/components/ProForm/useCommonSearch.d.ts +35 -0
- package/dist/components/ProForm/useCommonSearch.js +352 -0
- package/dist/components/ProFormList/index.d.ts +12 -0
- package/dist/components/ProFormList/index.js +34 -0
- package/dist/components/RangePicker/range-picker.js +5 -2
- package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
- package/dist/components/SortableCancel/sortable-cancel.js +2 -2
- package/dist/components/Table/components/FillDown.js +2 -1
- package/dist/components/Table/components/FilterDropdown.d.ts +1 -0
- package/dist/components/Table/components/FilterDropdown.js +36 -12
- package/dist/components/Table/hooks/useColumns.d.ts +5 -0
- package/dist/components/Table/hooks/useColumns.js +396 -22
- package/dist/components/Table/hooks/useDropRef.js +2 -1
- package/dist/components/Table/hooks/useScuRfresh.d.ts +3 -0
- package/dist/components/Table/hooks/useScuRfresh.js +22 -0
- package/dist/components/Table/hooks/useSelectSubtotal.js +5 -1
- package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
- package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
- package/dist/components/Table/index.d.ts +4 -0
- package/dist/components/Table/table-adddel-column.js +4 -3
- package/dist/components/Table/table-dynamic.d.ts +1 -0
- package/dist/components/Table/table-dynamic.js +447 -60
- package/dist/components/Table/table-enhance-cell.d.ts +3 -0
- package/dist/components/Table/table-enhance-cell.js +28 -8
- package/dist/components/Table/table-menu.d.ts +7 -0
- package/dist/components/Table/table-menu.js +359 -0
- package/dist/components/Table/table-resizable-title.js +1 -0
- package/dist/components/Table/table-sort.js +4 -3
- package/dist/components/Table/table.d.ts +16 -0
- package/dist/components/Table/table.js +241 -65
- package/dist/components/Table/utils/dom.js +2 -1
- package/dist/components/Table/utils/filterHandle.d.ts +1 -1
- package/dist/components/Table/utils/filterHandle.js +27 -12
- package/dist/components/Table/utils/getSummaryData.d.ts +1 -1
- package/dist/components/Table/utils/getSummaryData.js +279 -24
- package/dist/components/Table/utils/shallowEqual.js +2 -1
- package/dist/components/Table/utils/validate.js +25 -6
- package/dist/components/Tabs/tabs.d.ts +2 -0
- package/dist/components/Tabs/tabs.js +3 -1
- package/dist/components/TranslationButton/DownFile.d.ts +7 -0
- package/dist/components/TranslationButton/DownFile.js +95 -0
- package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
- package/dist/components/TranslationButton/PreviewFile.js +73 -0
- package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
- package/dist/components/TranslationButton/TranslationButton.js +245 -0
- package/dist/components/TranslationButton/hooks.d.ts +8 -0
- package/dist/components/TranslationButton/hooks.js +139 -0
- package/dist/components/TranslationButton/index.d.ts +4 -0
- package/dist/components/TranslationButton/index.js +4 -0
- package/dist/components/TreeSelect/index.d.ts +19 -0
- package/dist/components/TreeSelect/index.js +88 -0
- package/dist/components/Upload/upload-table.js +31 -26
- package/dist/components/Upload/upload.d.ts +20 -1
- package/dist/components/Upload/upload.js +172 -27
- package/dist/components/Upload/utils.d.ts +9 -2
- package/dist/components/Upload/utils.js +153 -38
- package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
- package/dist/components/UploadCustom/hooks/useDg.js +55 -0
- package/dist/components/UploadSingle/upload-single.js +5 -4
- package/dist/components/Watermark/index.d.ts +2 -0
- package/dist/components/Watermark/index.js +2 -0
- package/dist/components/Watermark/interface.d.ts +20 -0
- package/dist/components/Watermark/interface.js +1 -0
- package/dist/components/Watermark/utils.d.ts +1 -0
- package/dist/components/Watermark/utils.js +70 -0
- package/dist/components/Watermark/water.d.ts +50 -0
- package/dist/components/Watermark/water.js +66 -0
- package/dist/components/Watermark/watermark-div.d.ts +4 -0
- package/dist/components/Watermark/watermark-div.js +41 -0
- package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
- package/dist/components/Watermark/watermark-shadow.js +116 -0
- package/dist/components/Watermark/watermark.d.ts +3 -0
- package/dist/components/Watermark/watermark.js +102 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
- package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
- package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/images.js +2 -0
- package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/index.js +2 -0
- package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/service.js +101 -0
- package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
- package/dist/components/ZtIcon/index.js +2 -0
- package/dist/components/business/Analyse/index.js +12 -11
- package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
- package/dist/components/business/CodeQuery/component/TableList.js +5 -4
- package/dist/components/business/CodeQuery/hooks.js +2 -1
- package/dist/components/business/CodeQuery/index.js +2 -1
- package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
- package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
- package/dist/components/business/Common/UserInfo/index.js +5 -4
- package/dist/components/business/Common/UserPassword/index.js +14 -11
- package/dist/components/business/Common/validatePassword.d.ts +1 -1
- package/dist/components/business/Common/validatePassword.js +17 -7
- package/dist/components/business/DetailCard/index.js +7 -6
- package/dist/components/business/DetailHeader/index.js +7 -6
- package/dist/components/business/DetailList/index.js +5 -4
- package/dist/components/business/DgColumns/index.js +12 -11
- package/dist/components/business/ExportButton/index.js +6 -5
- package/dist/components/business/Footer/index.js +4 -1
- package/dist/components/business/GridList/item.d.ts +1 -1
- package/dist/components/business/List/item.d.ts +1 -1
- package/dist/components/business/NewList/item.d.ts +1 -1
- package/dist/components/business/NewList/item.js +1 -1
- package/dist/components/business/OperationBtnGroup/index.js +17 -16
- package/dist/components/business/SearchContainer/hooks/useDynamic.d.ts +2 -1
- package/dist/components/business/SearchContainer/hooks/useDynamic.js +6 -3
- package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
- package/dist/components/business/SearchContainer/hooks/useToggle.js +31 -12
- package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
- package/dist/components/business/SearchContainer/record-common-item.js +83 -0
- package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
- package/dist/components/business/SearchContainer/record-common-list.js +95 -0
- package/dist/components/business/SearchContainer/search-container.d.ts +22 -0
- package/dist/components/business/SearchContainer/search-container.js +66 -3
- package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-drawer.js +167 -13
- package/dist/components/business/SearchContainer/search-item.js +48 -5
- package/dist/components/business/SearchContainer/search-left.d.ts +8 -0
- package/dist/components/business/SearchContainer/search-left.js +105 -68
- package/dist/components/business/SearchContainer/search-right.d.ts +4 -0
- package/dist/components/business/SearchContainer/search-right.js +62 -5
- package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +18 -0
- package/dist/components/business/SearchContainer/useRecordCommonInit.js +258 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +8 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.js +145 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +37 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
- package/dist/components/business/SearchContainer/useTemplate.d.ts +20 -0
- package/dist/components/business/SearchContainer/useTemplate.js +347 -0
- package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
- package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
- package/dist/components/business/Signatures/components/CodeModal.js +157 -0
- package/dist/components/business/Signatures/components/CompareResult.js +7 -6
- package/dist/components/business/Signatures/components/DetailTable.js +37 -34
- package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
- package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
- package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
- package/dist/components/business/Signatures/index.js +64 -53
- package/dist/components/business/SortList/sort-drawer.js +5 -4
- package/dist/components/business/Template/index.js +11 -10
- package/dist/components/electron-signatures/content.d.ts +9 -0
- package/dist/components/electron-signatures/content.js +1146 -0
- package/dist/components/electron-signatures/demoComponents/coUseDetail.d.ts +8 -0
- package/dist/components/electron-signatures/demoComponents/coUseDetail.js +255 -0
- package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
- package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
- package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
- package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
- package/dist/components/electron-signatures/demoComponents/index.js +30 -0
- package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
- package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/making.js +211 -0
- package/dist/components/electron-signatures/demoComponents/makingData.d.ts +675 -0
- package/dist/components/electron-signatures/demoComponents/makingData.js +1178 -0
- package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
- package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
- package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
- package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
- package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
- package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/test.js +119 -0
- package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
- package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
- package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
- package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
- package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
- package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
- package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
- package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
- package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
- package/dist/components/electron-signatures/electron-signatures-fragment.js +392 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +509 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +85 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.d.ts +35 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.js +39 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
- package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
- package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
- package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
- package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +43 -0
- package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
- package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +398 -0
- package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +24 -0
- package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +254 -0
- package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
- package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +35 -0
- package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
- package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
- package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
- package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
- package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
- package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
- package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
- package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
- package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
- package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
- package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
- package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +43 -0
- package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
- package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
- package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
- package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
- package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
- package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +132 -0
- package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
- package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
- package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
- package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
- package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +111 -0
- package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +436 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
- package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
- package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
- package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
- package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
- package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
- package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
- package/dist/components/electron-signatures/index.d.ts +15 -0
- package/dist/components/electron-signatures/index.js +63 -0
- package/dist/components/electron-signatures/interface.d.ts +865 -0
- package/dist/components/electron-signatures/interface.js +57 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-list.js +355 -0
- package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
- package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +66 -0
- package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
- package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
- package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
- package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
- package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
- package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
- package/dist/components/electron-signatures/utils.d.ts +26 -0
- package/dist/components/electron-signatures/utils.js +67 -0
- package/dist/components/utils/MyStorage.d.ts +36 -0
- package/dist/components/utils/MyStorage.js +120 -0
- package/dist/components/utils/ZtxkContext.d.ts +67 -0
- package/dist/components/utils/ZtxkContext.js +20 -0
- package/dist/components/utils/checkSealCoUse.d.ts +16 -0
- package/dist/components/utils/checkSealCoUse.js +83 -0
- package/dist/components/utils/fetch.d.ts +10 -0
- package/dist/components/utils/fetch.js +119 -0
- package/dist/components/utils/index.d.ts +9 -0
- package/dist/components/utils/index.js +11 -0
- package/dist/components/utils/processNumber.d.ts +12 -0
- package/dist/components/utils/processNumber.js +106 -0
- package/dist/components/utils/upload.js +6 -3
- package/dist/components/utils/useBaseContext.d.ts +23 -0
- package/dist/components/utils/useBaseContext.js +31 -0
- package/dist/components/utils/useMemoizedFn.d.ts +4 -0
- package/dist/components/utils/useMemoizedFn.js +19 -0
- package/dist/components/utils/usePrevious.d.ts +3 -0
- package/dist/components/utils/usePrevious.js +13 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.css +2205 -58
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +255 -86
- package/dist/locales/en-US.json +828 -0
- package/dist/locales/zh-CN.json +828 -0
- package/dist/request.js +7 -6
- package/package.json +13 -4
|
@@ -20,7 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
24
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
25
|
+
to[j] = from[i];
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
29
|
+
import React, { useEffect, useCallback, useRef, useState } from 'react';
|
|
24
30
|
import { TreeSelect } from 'antd';
|
|
25
31
|
import { useFetchState } from 'ztxkutils/dist/hooks';
|
|
26
32
|
// 获取接口数据
|
|
@@ -46,7 +52,7 @@ function getData(request, options) {
|
|
|
46
52
|
* 添加远程搜索
|
|
47
53
|
*/
|
|
48
54
|
function EnhanceTreeSelect(_a) {
|
|
49
|
-
var outTreeData = _a.treeData, defaultTreeData = _a.defaultTreeData, params = _a.params, url = _a.url, _b = _a.method, method = _b === void 0 ? 'GET' : _b, request = _a.request, asyncLoadChildren = _a.asyncLoadChildren, _c = _a.asyncLoadChildrenKey, asyncLoadChildrenKey = _c === void 0 ? 'parentId' : _c, transformData = _a.transformData, treeDataSimpleMode = _a.treeDataSimpleMode, onCompleted = _a.onCompleted, restProps = __rest(_a, ["treeData", "defaultTreeData", "params", "url", "method", "request", "asyncLoadChildren", "asyncLoadChildrenKey", "transformData", "treeDataSimpleMode", "onCompleted"]);
|
|
55
|
+
var outTreeData = _a.treeData, defaultTreeData = _a.defaultTreeData, params = _a.params, url = _a.url, _b = _a.method, method = _b === void 0 ? 'GET' : _b, request = _a.request, asyncLoadChildren = _a.asyncLoadChildren, _c = _a.asyncLoadChildrenKey, asyncLoadChildrenKey = _c === void 0 ? 'parentId' : _c, transformData = _a.transformData, treeDataSimpleMode = _a.treeDataSimpleMode, onCompleted = _a.onCompleted, showAll = _a.showAll, onChange = _a.onChange, fieldNames = _a.fieldNames, restProps = __rest(_a, ["treeData", "defaultTreeData", "params", "url", "method", "request", "asyncLoadChildren", "asyncLoadChildrenKey", "transformData", "treeDataSimpleMode", "onCompleted", "showAll", "onChange", "fieldNames"]);
|
|
50
56
|
/**
|
|
51
57
|
* treeData 为当前组件使用的数据源
|
|
52
58
|
* 这样做的目的,是因为如果做远程搜索和搜索方法组件内部处理时
|
|
@@ -93,7 +99,7 @@ function EnhanceTreeSelect(_a) {
|
|
|
93
99
|
// 1、如果传入了treeData,那么直接使用传入的treeData
|
|
94
100
|
useEffect(function () {
|
|
95
101
|
if (Array.isArray(outTreeData)) {
|
|
96
|
-
console.log('TEST: 直接使用外部数据');
|
|
102
|
+
console.log(i18next.t('TEST: 直接使用外部数据'));
|
|
97
103
|
setTreeData(outTreeData);
|
|
98
104
|
}
|
|
99
105
|
}, [outTreeData, setTreeData]);
|
|
@@ -102,7 +108,7 @@ function EnhanceTreeSelect(_a) {
|
|
|
102
108
|
if (!url || asyncLoadChildren) {
|
|
103
109
|
return;
|
|
104
110
|
}
|
|
105
|
-
console.log('TEST: 异步获取全部数据');
|
|
111
|
+
console.log(i18next.t('TEST: 异步获取全部数据'));
|
|
106
112
|
// 直接发送接口请求
|
|
107
113
|
getDataHandle(request, { url: url, params: params, method: method });
|
|
108
114
|
}, [url, request, params, method, getDataHandle, asyncLoadChildren]);
|
|
@@ -111,7 +117,7 @@ function EnhanceTreeSelect(_a) {
|
|
|
111
117
|
if (!url || !asyncLoadChildren) {
|
|
112
118
|
return;
|
|
113
119
|
}
|
|
114
|
-
console.log('TEST: 异步加载子节点');
|
|
120
|
+
console.log(i18next.t('TEST: 异步加载子节点'));
|
|
115
121
|
// 直接发送接口请求
|
|
116
122
|
getDataHandle(request, { url: url, params: params, method: method });
|
|
117
123
|
}, [url, request, params, method, getDataHandle, asyncLoadChildren]);
|
|
@@ -128,9 +134,53 @@ function EnhanceTreeSelect(_a) {
|
|
|
128
134
|
}
|
|
129
135
|
return getDataHandle(request, { url: url, params: newParams, method: method }, true);
|
|
130
136
|
};
|
|
131
|
-
|
|
137
|
+
// 搜索逻辑优化,搜索选中后不清空搜索条件
|
|
138
|
+
var _e = useState(''), searchValue = _e[0], setSearchValue = _e[1];
|
|
139
|
+
var onSearch = function (value) {
|
|
140
|
+
setSearchValue(value);
|
|
141
|
+
};
|
|
142
|
+
// 多选模式下,showAll 未显式传值时默认为 true
|
|
143
|
+
var isShowAll = showAll !== undefined ? showAll : !!restProps.treeCheckable;
|
|
144
|
+
// 根据 fieldNames 配置确定「全部」节点的字段名
|
|
145
|
+
var labelKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'title';
|
|
146
|
+
var valueKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value) || 'value';
|
|
147
|
+
// 多选模式下,「全部」与其他选项互斥(用 ref 追踪前值)
|
|
148
|
+
var prevValueRef = useRef(restProps.value);
|
|
149
|
+
useEffect(function () {
|
|
150
|
+
prevValueRef.current = restProps.value;
|
|
151
|
+
}, [restProps.value]);
|
|
152
|
+
var handleChange = function (value, labelList, extra) {
|
|
153
|
+
if (isShowAll && restProps.treeCheckable && Array.isArray(value)) {
|
|
154
|
+
var prev = Array.isArray(prevValueRef.current)
|
|
155
|
+
? prevValueRef.current
|
|
156
|
+
: [];
|
|
157
|
+
var prevHasAll = prev.includes('');
|
|
158
|
+
var nowHasAll = value.includes('');
|
|
159
|
+
var nowHasOther = value.some(function (v) { return v !== ''; });
|
|
160
|
+
if (nowHasAll && !prevHasAll) {
|
|
161
|
+
value = [''];
|
|
162
|
+
}
|
|
163
|
+
else if (prevHasAll && nowHasOther) {
|
|
164
|
+
value = value.filter(function (v) { return v !== ''; });
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
prevValueRef.current = value;
|
|
168
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value, labelList, extra);
|
|
169
|
+
};
|
|
170
|
+
// 合并最终树数据,isShowAll 时在顶部插入「全部」节点
|
|
171
|
+
var finalTreeData = (function () {
|
|
172
|
+
var _a;
|
|
173
|
+
var data = Array.isArray(defaultTreeData)
|
|
132
174
|
? defaultTreeData.concat(treeData)
|
|
133
|
-
: treeData
|
|
175
|
+
: treeData;
|
|
176
|
+
if (isShowAll) {
|
|
177
|
+
data = __spreadArray([
|
|
178
|
+
(_a = {}, _a[labelKey] = i18next.t('全部'), _a[valueKey] = '', _a.key = '__all__', _a)
|
|
179
|
+
], data);
|
|
180
|
+
}
|
|
181
|
+
return data;
|
|
182
|
+
})();
|
|
183
|
+
return (React.createElement(TreeSelect, __assign({ allowClear: true, showSearch: true, filterTreeNode: true, treeNodeFilterProp: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'title', treeData: finalTreeData, searchValue: searchValue, onSearch: onSearch, treeDataSimpleMode: asyncLoadChildren, loadData: asyncLoadChildren ? onLoadDataHandle : undefined, onChange: handleChange, fieldNames: fieldNames }, restProps)));
|
|
134
184
|
}
|
|
135
185
|
EnhanceTreeSelect.SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
136
186
|
export default EnhanceTreeSelect;
|
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
12
13
|
/**
|
|
13
14
|
* @author 陈亚雄
|
|
14
15
|
* @description
|
|
@@ -26,7 +27,7 @@ var Export = function (_a) {
|
|
|
26
27
|
var params = _a.params, url = _a.url, request = _a.request, _b = _a.method, method = _b === void 0 ? 'POST' : _b;
|
|
27
28
|
var onClickExport = function () {
|
|
28
29
|
if (!url) {
|
|
29
|
-
message.warning('该功能正在开发中');
|
|
30
|
+
message.warning(i18next.t('该功能正在开发中'));
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
33
|
var _params = __assign({}, params);
|
|
@@ -40,7 +41,7 @@ var Export = function (_a) {
|
|
|
40
41
|
data: qs.stringify(_params),
|
|
41
42
|
}).then(function (res) {
|
|
42
43
|
if (!res.headers['content-disposition']) {
|
|
43
|
-
message.warning('没有可导出的内容');
|
|
44
|
+
message.warning(i18next.t('没有可导出的内容'));
|
|
44
45
|
return;
|
|
45
46
|
}
|
|
46
47
|
var fileName = res.headers['content-disposition'].split(';');
|
|
@@ -50,7 +51,7 @@ var Export = function (_a) {
|
|
|
50
51
|
type: 'application/vnd.ms-excel',
|
|
51
52
|
});
|
|
52
53
|
if (blob.size < 1) {
|
|
53
|
-
alert('导出失败,导出的内容为空!');
|
|
54
|
+
alert(i18next.t('导出失败,导出的内容为空!'));
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
57
|
var aLink = document.createElement('a');
|
|
@@ -62,6 +63,6 @@ var Export = function (_a) {
|
|
|
62
63
|
document.body.removeChild(aLink);
|
|
63
64
|
});
|
|
64
65
|
};
|
|
65
|
-
return React.createElement(Button, { onClick: onClickExport },
|
|
66
|
+
return React.createElement(Button, { onClick: onClickExport }, i18next.t('导出'));
|
|
66
67
|
};
|
|
67
68
|
export default Export;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormProps } from 'antd/lib/form';
|
|
2
|
+
import { FormProps, FormInstance as AntFormInstance } from 'antd/lib/form';
|
|
3
3
|
export interface IProps extends FormProps {
|
|
4
4
|
}
|
|
5
|
+
interface FormInstance extends AntFormInstance {
|
|
6
|
+
setDynamicList?: (list: any[]) => void;
|
|
7
|
+
/** 这里存储一些自定义校验 规则的数据 */
|
|
8
|
+
myMatchRule?: any;
|
|
9
|
+
/** 是否开启校验下拉框选项值不存在的情况 */
|
|
10
|
+
enableDropdownValueValidation?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const FormContext: React.Context<{
|
|
13
|
+
form?: FormInstance;
|
|
14
|
+
}>;
|
|
5
15
|
declare function Form(props: IProps): JSX.Element;
|
|
6
16
|
declare namespace Form {
|
|
7
17
|
var Item: typeof import("antd/lib/form/FormItem").default;
|
|
@@ -20,12 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import React from 'react';
|
|
23
|
+
import React, { createContext } from 'react';
|
|
24
24
|
import { Form as AntForm } from 'antd';
|
|
25
25
|
import { FormProvider } from 'antd/lib/form/context';
|
|
26
|
+
export var FormContext = createContext({});
|
|
26
27
|
function Form(props) {
|
|
27
|
-
var children = props.children, resetProps = __rest(props, ["children"]);
|
|
28
|
-
return React.createElement(
|
|
28
|
+
var children = props.children, form = props.form, resetProps = __rest(props, ["children", "form"]);
|
|
29
|
+
return (React.createElement(FormContext.Provider, { value: { form: form } },
|
|
30
|
+
React.createElement(AntForm, __assign({ form: form }, resetProps), children)));
|
|
29
31
|
}
|
|
30
32
|
Form.Item = AntForm.Item;
|
|
31
33
|
Form.List = AntForm.List;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Input as AntInput } from 'antd';
|
|
3
2
|
import { InputProps, TextAreaProps } from 'antd/lib/input';
|
|
4
3
|
export interface IProps extends InputProps {
|
|
5
4
|
}
|
|
6
5
|
export interface ITextAreaProps extends TextAreaProps {
|
|
7
6
|
handleSize?: boolean;
|
|
7
|
+
/** 是否弹出框输入 */
|
|
8
|
+
isModalInput?: boolean;
|
|
9
|
+
modalInputProps?: ITextAreaProps;
|
|
8
10
|
}
|
|
9
11
|
declare function Input(props: IProps): JSX.Element;
|
|
10
12
|
declare namespace Input {
|
|
11
13
|
var Group: React.FC<import("antd/lib/input").GroupProps>;
|
|
12
|
-
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<
|
|
14
|
+
var Search: React.ForwardRefExoticComponent<import("antd/lib/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
13
15
|
var TextArea: React.ForwardRefExoticComponent<ITextAreaProps & React.RefAttributes<unknown>>;
|
|
14
|
-
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<
|
|
16
|
+
var Password: React.ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
15
17
|
}
|
|
16
18
|
export default Input;
|
|
@@ -9,7 +9,19 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
24
|
+
import React, { useRef } from 'react';
|
|
13
25
|
import Modal from '../Modal';
|
|
14
26
|
import { Input as AntInput } from 'antd';
|
|
15
27
|
import classNames from 'classnames';
|
|
@@ -17,8 +29,16 @@ function Input(props) {
|
|
|
17
29
|
return React.createElement(AntInput, __assign({}, props));
|
|
18
30
|
}
|
|
19
31
|
var TextArea = React.forwardRef(function (props, ref) {
|
|
20
|
-
var handleSize = props.handleSize, className = props.className;
|
|
32
|
+
var handleSize = props.handleSize, isModalInput = props.isModalInput, onClick = props.onClick, className = props.className, modalInputProps = props.modalInputProps, resetProps = __rest(props, ["handleSize", "isModalInput", "onClick", "className", "modalInputProps"]);
|
|
33
|
+
// const [modalValue, setModalValue] = useState<any>();
|
|
34
|
+
var modalValueRef = useRef();
|
|
35
|
+
var optRef = useRef();
|
|
36
|
+
// 编辑弹窗是否已打开,防止连点/双击重复弹出
|
|
37
|
+
var modalOpenRef = useRef(false);
|
|
21
38
|
var onDoubleClickHandle = function (i) {
|
|
39
|
+
// 编辑弹窗模式下双击不弹详情,避免与编辑弹窗冲突
|
|
40
|
+
if (isModalInput)
|
|
41
|
+
return;
|
|
22
42
|
if (i.target.value) {
|
|
23
43
|
Modal.info({
|
|
24
44
|
title: '',
|
|
@@ -28,10 +48,59 @@ var TextArea = React.forwardRef(function (props, ref) {
|
|
|
28
48
|
});
|
|
29
49
|
}
|
|
30
50
|
};
|
|
51
|
+
var onClickHandle = function (arg) {
|
|
52
|
+
onClick && onClick(arg);
|
|
53
|
+
if (isModalInput) {
|
|
54
|
+
// 弹窗已打开时忽略再次点击/双击
|
|
55
|
+
if (modalOpenRef.current)
|
|
56
|
+
return;
|
|
57
|
+
modalOpenRef.current = true;
|
|
58
|
+
// 初始化为当前值:未输入直接点确定时保持原值,不清空
|
|
59
|
+
modalValueRef.current = props.value;
|
|
60
|
+
var closeModal_1 = function () {
|
|
61
|
+
modalOpenRef.current = false;
|
|
62
|
+
};
|
|
63
|
+
setTimeout(function () {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
(_b = (_a = optRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
66
|
+
cursor: 'end',
|
|
67
|
+
});
|
|
68
|
+
}, 300);
|
|
69
|
+
Modal.confirm({
|
|
70
|
+
title: '',
|
|
71
|
+
width: '80%',
|
|
72
|
+
maskClosable: true,
|
|
73
|
+
content: (React.createElement(TextArea, __assign({ handleSize: true, autoSize: { maxRows: 10 },
|
|
74
|
+
// 覆盖内部的双击弹详情逻辑,避免编辑弹窗内双击又叠出详情弹窗
|
|
75
|
+
onDoubleClick: function () { }, defaultValue: props.value,
|
|
76
|
+
// value={modalValue}
|
|
77
|
+
onChange: function (e) {
|
|
78
|
+
// setModalValue(e.target.value);
|
|
79
|
+
modalValueRef.current = e.target.value;
|
|
80
|
+
// props.onChange && props.onChange(e);
|
|
81
|
+
},
|
|
82
|
+
// onPressEnter={resetProps.onPressEnter}
|
|
83
|
+
// onBlur={resetProps.onBlur}
|
|
84
|
+
ref: optRef, maxLength: resetProps.maxLength, showCount: resetProps.showCount }, modalInputProps))),
|
|
85
|
+
onOk: function () {
|
|
86
|
+
var _a;
|
|
87
|
+
closeModal_1();
|
|
88
|
+
props.onChange &&
|
|
89
|
+
props.onChange({
|
|
90
|
+
target: { value: (_a = modalValueRef.current) !== null && _a !== void 0 ? _a : '' },
|
|
91
|
+
});
|
|
92
|
+
resetProps.onBlur && resetProps.onBlur({});
|
|
93
|
+
},
|
|
94
|
+
onCancel: closeModal_1,
|
|
95
|
+
okText: i18next.t('确定'),
|
|
96
|
+
icon: null,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
};
|
|
31
100
|
var classes = classNames(className, {
|
|
32
101
|
'textArea-handleSize-true': handleSize,
|
|
33
102
|
});
|
|
34
|
-
return (React.createElement(AntInput.TextArea, __assign({ onDoubleClick: onDoubleClickHandle, className: classes },
|
|
103
|
+
return (React.createElement(AntInput.TextArea, __assign({ onDoubleClick: onDoubleClickHandle, className: classes, onClick: onClickHandle }, resetProps, { ref: ref })));
|
|
35
104
|
});
|
|
36
105
|
Input.Group = AntInput.Group;
|
|
37
106
|
Input.Search = AntInput.Search;
|
|
@@ -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, { useRef } from 'react';
|
|
24
25
|
import { InputNumber as AntInputNumber } from 'antd';
|
|
25
26
|
import { message } from '../../index';
|
|
@@ -43,13 +44,13 @@ function InputNumber(props) {
|
|
|
43
44
|
selfValue.current = min;
|
|
44
45
|
onChange && onChange(min);
|
|
45
46
|
onOverRange && onOverRange('minType');
|
|
46
|
-
message.info(lowMinTip || '低于最小值,已修改成最小值!');
|
|
47
|
+
message.info(lowMinTip || i18next.t('低于最小值,已修改成最小值!'));
|
|
47
48
|
}
|
|
48
49
|
if (typeof max === 'number' && selfValue.current > max) {
|
|
49
50
|
selfValue.current = max;
|
|
50
51
|
onChange && onChange(max);
|
|
51
52
|
onOverRange && onOverRange('maxType');
|
|
52
|
-
message.info(overMaxTip || '高于最大值,已修改成最大值!');
|
|
53
|
+
message.info(overMaxTip || i18next.t('高于最大值,已修改成最大值!'));
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
var onBlurHandle = function (e) {
|
|
@@ -4,9 +4,9 @@ interface IProps extends LayoutProps {
|
|
|
4
4
|
}
|
|
5
5
|
declare function Layout(props: IProps): JSX.Element;
|
|
6
6
|
declare namespace Layout {
|
|
7
|
-
var Header: React.
|
|
8
|
-
var Footer: React.
|
|
9
|
-
var Content: React.
|
|
10
|
-
var Sider: React.ForwardRefExoticComponent<import("antd
|
|
7
|
+
var Header: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
var Footer: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
var Content: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
var Sider: React.ForwardRefExoticComponent<import("antd").SiderProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
}
|
|
12
12
|
export default Layout;
|
|
@@ -6,7 +6,7 @@ declare function Menu(props: IProps): JSX.Element;
|
|
|
6
6
|
declare namespace Menu {
|
|
7
7
|
var Item: typeof import("antd/lib/menu/MenuItem").default;
|
|
8
8
|
var SubMenu: typeof import("antd/lib/menu/SubMenu").default;
|
|
9
|
-
var ItemGroup;
|
|
9
|
+
var ItemGroup: typeof import("rc-menu").MenuItemGroup;
|
|
10
10
|
var Divider: React.FC<import("antd/lib/menu").MenuDividerProps>;
|
|
11
11
|
}
|
|
12
12
|
export default Menu;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author 陈亚雄
|
|
3
4
|
* @description 数字转大写
|
|
@@ -12,9 +13,9 @@ import { Tooltip } from '../../index';
|
|
|
12
13
|
// 其他文件
|
|
13
14
|
function numberToCase(n) {
|
|
14
15
|
if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)) {
|
|
15
|
-
return '数据非法'; //判断数据是否大于0
|
|
16
|
+
return i18next.t('数据非法'); //判断数据是否大于0
|
|
16
17
|
}
|
|
17
|
-
var unit = '千百拾亿千百拾万千百拾元角分', str = '';
|
|
18
|
+
var unit = i18next.t('千百拾亿千百拾万千百拾元角分'), str = '';
|
|
18
19
|
n += '00';
|
|
19
20
|
var indexpoint = n.indexOf('.'); // 如果是小数,截取小数点前面的位数
|
|
20
21
|
if (indexpoint >= 0) {
|
|
@@ -22,18 +23,19 @@ function numberToCase(n) {
|
|
|
22
23
|
}
|
|
23
24
|
unit = unit.substr(unit.length - n.length); // 若为整数,截取需要使用的unit单位
|
|
24
25
|
for (var i = 0; i < n.length; i++) {
|
|
25
|
-
str +=
|
|
26
|
+
str +=
|
|
27
|
+
i18next.t('零壹贰叁肆伍陆柒捌玖').charAt(n.charAt(i)) + unit.charAt(i); //遍历转化为大写的数字
|
|
26
28
|
}
|
|
27
29
|
return str
|
|
28
|
-
.replace(/零(千|百|拾|角)/g, '零')
|
|
29
|
-
.replace(/(零)+/g, '零')
|
|
30
|
+
.replace(/零(千|百|拾|角)/g, i18next.t('零'))
|
|
31
|
+
.replace(/(零)+/g, i18next.t('零'))
|
|
30
32
|
.replace(/零(万|亿|元)/g, '$1')
|
|
31
33
|
.replace(/(亿)万|壹(拾)/g, '$1$2')
|
|
32
34
|
.replace(/^元零?|零分/g, '')
|
|
33
|
-
.replace(/元$/g, '元整'); // 替换掉数字里面的零字符,得到结果
|
|
35
|
+
.replace(/元$/g, i18next.t('元整')); // 替换掉数字里面的零字符,得到结果
|
|
34
36
|
}
|
|
35
37
|
var NumberCase = function (_a) {
|
|
36
38
|
var num = _a.num, children = _a.children;
|
|
37
|
-
return React.createElement(Tooltip, { title: numberToCase(num) }, children);
|
|
39
|
+
return (React.createElement(Tooltip, { className: "number-case--tooltip", title: numberToCase(num) }, children));
|
|
38
40
|
};
|
|
39
41
|
export default NumberCase;
|
|
@@ -3,6 +3,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
3
3
|
to[j] = from[i];
|
|
4
4
|
return to;
|
|
5
5
|
};
|
|
6
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
6
7
|
/**
|
|
7
8
|
* @author 陈亚雄
|
|
8
9
|
* @description 打印组件
|
|
@@ -24,11 +25,11 @@ function addWaterHandle(waterText, waterClassName) {
|
|
|
24
25
|
var ctx = canvas.getContext('2d');
|
|
25
26
|
if (ctx) {
|
|
26
27
|
ctx.rotate((-15 * Math.PI) / 180); // 水印旋转角度
|
|
27
|
-
ctx.font = '15px 微软雅黑';
|
|
28
|
+
ctx.font = i18next.t('15px 微软雅黑');
|
|
28
29
|
ctx.fillStyle = 'rgba(0,0,0,0.5)';
|
|
29
30
|
ctx.textAlign = 'center';
|
|
30
31
|
ctx.textBaseline = 'middle';
|
|
31
|
-
ctx.fillText(waterText || '内部资料,严禁外泄!', canvas.width / 2, canvas.height); // 水印在画布的位置x,y轴
|
|
32
|
+
ctx.fillText(waterText || i18next.t('内部资料,严禁外泄!'), canvas.width / 2, canvas.height); // 水印在画布的位置x,y轴
|
|
32
33
|
}
|
|
33
34
|
var styleDom = document.createElement('style');
|
|
34
35
|
styleDom.setAttribute('type', 'text/css');
|
|
@@ -42,7 +43,7 @@ function addWaterHandle(waterText, waterClassName) {
|
|
|
42
43
|
document.head.appendChild(styleDom);
|
|
43
44
|
}
|
|
44
45
|
var Print = function (_a) {
|
|
45
|
-
var _b = _a.btnText, btnText = _b === void 0 ? '打印' : _b, _c = _a.showIcon, showIcon = _c === void 0 ? true : _c, showWater = _a.showWater, _d = _a.waterText, waterText = _d === void 0 ? '内部资料,严禁外泄!' : _d, _e = _a.waterClassName, waterClassName = _e === void 0 ? 'printArea' : _e, _f = _a.hiddenClassNames, hiddenClassNames = _f === void 0 ? [] : _f;
|
|
46
|
+
var _b = _a.btnText, btnText = _b === void 0 ? i18next.t('打印') : _b, _c = _a.showIcon, showIcon = _c === void 0 ? true : _c, showWater = _a.showWater, _d = _a.waterText, waterText = _d === void 0 ? i18next.t('内部资料,严禁外泄!') : _d, _e = _a.waterClassName, waterClassName = _e === void 0 ? 'printArea' : _e, _f = _a.hiddenClassNames, hiddenClassNames = _f === void 0 ? [] : _f;
|
|
46
47
|
/**
|
|
47
48
|
* 打印方法
|
|
48
49
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author 陈亚雄
|
|
3
4
|
* @description 附件预览模态框
|
|
@@ -8,7 +9,7 @@ import React from 'react';
|
|
|
8
9
|
import { Modal, Button } from '../../index';
|
|
9
10
|
import { previewFile, downloadFileCallBack, } from 'ztxkutils/dist/fileOperation';
|
|
10
11
|
var AttachPreviewModal = function (_a) {
|
|
11
|
-
var fileBaseUrl = _a.fileBaseUrl, visible = _a.visible, onClose = _a.onClose, attachIds = _a.attachIds, apiBaseUrl = _a.apiBaseUrl, _b = _a.title, title = _b === void 0 ? '盖章文件' : _b;
|
|
12
|
+
var fileBaseUrl = _a.fileBaseUrl, visible = _a.visible, onClose = _a.onClose, attachIds = _a.attachIds, apiBaseUrl = _a.apiBaseUrl, _b = _a.title, title = _b === void 0 ? i18next.t('盖章文件') : _b;
|
|
12
13
|
return (React.createElement(Modal, { visible: visible, onCancel: onClose, loading: false, keyboard: false, maskClosable: false, footer: null, title: title }, attachIds === null || attachIds === void 0 ? void 0 : attachIds.map(function (attachId) {
|
|
13
14
|
return (React.createElement("div", { key: attachId === null || attachId === void 0 ? void 0 : attachId.attachId, style: {
|
|
14
15
|
height: 40,
|
|
@@ -27,7 +28,7 @@ var AttachPreviewModal = function (_a) {
|
|
|
27
28
|
height: 28,
|
|
28
29
|
}, onClick: function () {
|
|
29
30
|
downloadFileCallBack(apiBaseUrl || '', attachId === null || attachId === void 0 ? void 0 : attachId.attachId, attachId === null || attachId === void 0 ? void 0 : attachId.originalName);
|
|
30
|
-
} },
|
|
31
|
+
} }, i18next.t('下载'))));
|
|
31
32
|
})));
|
|
32
33
|
};
|
|
33
34
|
export default AttachPreviewModal;
|
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
12
13
|
/**
|
|
13
14
|
* @author 陈亚雄
|
|
14
15
|
* @description 内容边距调整
|
|
@@ -43,9 +44,9 @@ var PrintModal = function (_a) {
|
|
|
43
44
|
var onSure = function () {
|
|
44
45
|
onChange && onChange(value);
|
|
45
46
|
};
|
|
46
|
-
return (React.createElement(Modal, { title:
|
|
47
|
+
return (React.createElement(Modal, { title: i18next.t('边距调整'), visible: visible, loading: false, width: "90%", onCancel: onCancel, onOk: onSure },
|
|
47
48
|
React.createElement("div", { style: { position: 'relative', zIndex: 1000 } },
|
|
48
|
-
|
|
49
|
+
i18next.t('上边距:'),
|
|
49
50
|
React.createElement(Slider, { min: -180, max: 200, step: 0.01, value: (value === null || value === void 0 ? void 0 : value.top) || 0, onChange: function (value) {
|
|
50
51
|
if (value < 0) {
|
|
51
52
|
setMinusPosition(divDomRef.current, {
|
|
@@ -58,7 +59,7 @@ var PrintModal = function (_a) {
|
|
|
58
59
|
setValue(function (preValue) { return (__assign(__assign({}, (preValue || {})), { top: value })); });
|
|
59
60
|
} })),
|
|
60
61
|
React.createElement("div", { style: { position: 'relative', zIndex: 1000 } },
|
|
61
|
-
|
|
62
|
+
i18next.t('左边距:'),
|
|
62
63
|
React.createElement(Slider, { min: -180, max: 200, step: 0.01, value: (value === null || value === void 0 ? void 0 : value.left) || 0, onChange: function (value) {
|
|
63
64
|
if (value < 0) {
|
|
64
65
|
setMinusPosition(divDomRef.current, {
|
|
@@ -26,10 +26,8 @@ export declare function htmlToPdfNoCanvas({ pageClassName, dom, isShowPage, file
|
|
|
26
26
|
pdfName?: string;
|
|
27
27
|
isDownload?: boolean;
|
|
28
28
|
pdfOption?: IPdfOption;
|
|
29
|
-
/** 是否添加水印 */
|
|
30
|
-
|
|
31
|
-
/** 水印base 64字符串 */
|
|
32
|
-
waterBase64?: string;
|
|
29
|
+
/** 是否添加水印 */ isAddWater?: boolean;
|
|
30
|
+
/** 水印base 64字符串 */ waterBase64?: string;
|
|
33
31
|
imgWidth?: number;
|
|
34
32
|
imgHeight?: number;
|
|
35
33
|
isCompress?: boolean;
|
|
@@ -34,6 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
37
38
|
/**
|
|
38
39
|
* @author 陈亚雄
|
|
39
40
|
* @description 一些工具方法
|
|
@@ -266,7 +267,7 @@ export function setPositionLocal(value, localKey) {
|
|
|
266
267
|
localStorage.setItem(localKey || 'SEAL_POSITION_LOCAL_SCM', v);
|
|
267
268
|
}
|
|
268
269
|
catch (er) {
|
|
269
|
-
console.log('设置local失败', er);
|
|
270
|
+
console.log(i18next.t('设置local失败'), er);
|
|
270
271
|
}
|
|
271
272
|
}
|
|
272
273
|
export function getPositionLocal(localKey) {
|
|
@@ -275,7 +276,7 @@ export function getPositionLocal(localKey) {
|
|
|
275
276
|
v = JSON.parse(localStorage.getItem(localKey || 'SEAL_POSITION_LOCAL_SCM') || '{}');
|
|
276
277
|
}
|
|
277
278
|
catch (er) {
|
|
278
|
-
console.log('获取local失败', er);
|
|
279
|
+
console.log(i18next.t('获取local失败'), er);
|
|
279
280
|
}
|
|
280
281
|
return v;
|
|
281
282
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
import { getLodop } from './utils';
|
|
2
3
|
/**
|
|
3
4
|
* 创建打印任务
|
|
@@ -39,7 +40,7 @@ var CheckIsInstall = function (LODOP) {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
catch (err) {
|
|
42
|
-
console.log('安装lodop');
|
|
43
|
+
console.log(i18next.t('安装lodop'));
|
|
43
44
|
// window.open('http://www.lodop.net/download.html');
|
|
44
45
|
}
|
|
45
46
|
};
|