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
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
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
|
+
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, useMemo, useRef, useState } from 'react';
|
|
30
|
+
import { TreeSelect as AntdTreeSelect } from 'antd';
|
|
31
|
+
/**
|
|
32
|
+
* 下拉树
|
|
33
|
+
*/
|
|
34
|
+
function TreeSelect(props) {
|
|
35
|
+
var showAll = props.showAll, treeData = props.treeData, onChange = props.onChange, fieldNames = props.fieldNames, restProps = __rest(props, ["showAll", "treeData", "onChange", "fieldNames"]);
|
|
36
|
+
// 多选模式下,showAll 未显式传值时默认为 true
|
|
37
|
+
var isShowAll = showAll !== undefined ? showAll : !!props.treeCheckable;
|
|
38
|
+
// 根据 fieldNames 配置确定「全部」节点的字段名
|
|
39
|
+
var labelKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'title';
|
|
40
|
+
var valueKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value) || 'value';
|
|
41
|
+
// 搜索逻辑优化,搜索选中后不清空搜索条件
|
|
42
|
+
var _a = useState(''), searchValue = _a[0], setSearchValue = _a[1];
|
|
43
|
+
var onSearch = function (value) {
|
|
44
|
+
setSearchValue(value);
|
|
45
|
+
};
|
|
46
|
+
var finalTreeData = useMemo(function () {
|
|
47
|
+
var _a;
|
|
48
|
+
if (!isShowAll)
|
|
49
|
+
return treeData;
|
|
50
|
+
var allNode = (_a = {},
|
|
51
|
+
_a[labelKey] = i18next.t('全部'),
|
|
52
|
+
_a[valueKey] = '',
|
|
53
|
+
_a.key = '__all__',
|
|
54
|
+
_a);
|
|
55
|
+
return __spreadArray([allNode], (treeData || []));
|
|
56
|
+
}, [isShowAll, treeData, labelKey, valueKey]);
|
|
57
|
+
// 多选模式下,「全部」与其他选项互斥(用 ref 追踪前值,antd 4.x 的 extra 中无 preValue)
|
|
58
|
+
var prevValueRef = useRef(props.value);
|
|
59
|
+
useEffect(function () {
|
|
60
|
+
prevValueRef.current = props.value;
|
|
61
|
+
}, [props.value]);
|
|
62
|
+
var handleChange = function (value, labelList, extra) {
|
|
63
|
+
if (isShowAll && props.treeCheckable && Array.isArray(value)) {
|
|
64
|
+
var prev = Array.isArray(prevValueRef.current)
|
|
65
|
+
? prevValueRef.current
|
|
66
|
+
: [];
|
|
67
|
+
var prevHasAll = prev.includes('');
|
|
68
|
+
var nowHasAll = value.includes('');
|
|
69
|
+
var nowHasOther = value.some(function (v) { return v !== ''; });
|
|
70
|
+
if (nowHasAll && !prevHasAll) {
|
|
71
|
+
// 刚选中了「全部」→ 只保留「全部」
|
|
72
|
+
value = [''];
|
|
73
|
+
}
|
|
74
|
+
else if (prevHasAll && nowHasOther) {
|
|
75
|
+
// 「全部」已选中,又选了其他项 → 移除「全部」
|
|
76
|
+
value = value.filter(function (v) { return v !== ''; });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
prevValueRef.current = value;
|
|
80
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value, labelList, extra);
|
|
81
|
+
};
|
|
82
|
+
return (React.createElement(AntdTreeSelect, __assign({ searchValue: searchValue, onSearch: onSearch, treeData: finalTreeData, onChange: handleChange, fieldNames: fieldNames, treeNodeFilterProp: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'title' }, restProps)));
|
|
83
|
+
}
|
|
84
|
+
TreeSelect.SHOW_PARENT = AntdTreeSelect.SHOW_PARENT;
|
|
85
|
+
TreeSelect.SHOW_CHILD = AntdTreeSelect.SHOW_CHILD;
|
|
86
|
+
TreeSelect.SHOW_ALL = AntdTreeSelect.SHOW_ALL;
|
|
87
|
+
TreeSelect.TreeNode = AntdTreeSelect.TreeNode;
|
|
88
|
+
export default TreeSelect;
|
|
@@ -61,6 +61,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
61
61
|
to[j] = from[i];
|
|
62
62
|
return to;
|
|
63
63
|
};
|
|
64
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
64
65
|
import React, { useState, useEffect, memo, useMemo, useImperativeHandle, useRef, } from 'react';
|
|
65
66
|
import { Button, Progress, message, Popconfirm } from '../../index';
|
|
66
67
|
import Table from '../Table';
|
|
@@ -113,7 +114,7 @@ var UploadTable = function (_a) {
|
|
|
113
114
|
return;
|
|
114
115
|
}
|
|
115
116
|
if ((record === null || record === void 0 ? void 0 : record.fileSize) >= MAX_PREVIEW_FILE_SIZE) {
|
|
116
|
-
message.warning('文件大于20MB,暂不支持在线预览,请先下载后查看!');
|
|
117
|
+
message.warning(i18next.t('文件大于20MB,暂不支持在线预览,请先下载后查看!'));
|
|
117
118
|
}
|
|
118
119
|
else {
|
|
119
120
|
previewFile(fileBaseUrl, record === null || record === void 0 ? void 0 : record.fileId, {
|
|
@@ -127,7 +128,7 @@ var UploadTable = function (_a) {
|
|
|
127
128
|
var columns = showUploadBtn
|
|
128
129
|
? __spreadArray(__spreadArray(__spreadArray(__spreadArray([], startColumns), [
|
|
129
130
|
{
|
|
130
|
-
title: '文件名称',
|
|
131
|
+
title: i18next.t('文件名称'),
|
|
131
132
|
width: 160,
|
|
132
133
|
// fixed: 'left',
|
|
133
134
|
dataIndex: 'fileName',
|
|
@@ -149,7 +150,7 @@ var UploadTable = function (_a) {
|
|
|
149
150
|
},
|
|
150
151
|
},
|
|
151
152
|
{
|
|
152
|
-
title: '文件大小',
|
|
153
|
+
title: i18next.t('文件大小'),
|
|
153
154
|
width: 60,
|
|
154
155
|
dataIndex: 'fileSize',
|
|
155
156
|
key: 'fileSize',
|
|
@@ -158,32 +159,32 @@ var UploadTable = function (_a) {
|
|
|
158
159
|
},
|
|
159
160
|
},
|
|
160
161
|
{
|
|
161
|
-
title: '上传时间',
|
|
162
|
+
title: i18next.t('上传时间'),
|
|
162
163
|
width: 100,
|
|
163
164
|
dataIndex: 'uploadTime',
|
|
164
165
|
key: 'uploadTime',
|
|
165
166
|
},
|
|
166
167
|
{
|
|
167
|
-
title: '上传人',
|
|
168
|
+
title: i18next.t('上传人'),
|
|
168
169
|
width: 80,
|
|
169
170
|
dataIndex: 'uploadUser',
|
|
170
171
|
key: 'uploadUser',
|
|
171
172
|
}
|
|
172
173
|
]), otherColumns), [
|
|
173
174
|
{
|
|
174
|
-
title: '上传进度',
|
|
175
|
+
title: i18next.t('上传进度'),
|
|
175
176
|
width: 140,
|
|
176
177
|
render: function (text, record, index) {
|
|
177
178
|
// uploading done error removed
|
|
178
179
|
var status = record.status === 'error' ? 'exception' : undefined;
|
|
179
180
|
if (record.status === 'error') {
|
|
180
|
-
return (React.createElement(Button, { type: "link", style: { color: '#ff4d4f' }, onClick: function () { return onSubmitFile(record.originFileObj, index); } },
|
|
181
|
+
return (React.createElement(Button, { type: "link", style: { color: '#ff4d4f' }, onClick: function () { return onSubmitFile(record.originFileObj, index); } }, i18next.t('文件上传失败,重新上传')));
|
|
181
182
|
}
|
|
182
183
|
return React.createElement(Progress, { percent: record === null || record === void 0 ? void 0 : record.percent, status: status });
|
|
183
184
|
},
|
|
184
185
|
},
|
|
185
186
|
{
|
|
186
|
-
title: '操作',
|
|
187
|
+
title: i18next.t('操作'),
|
|
187
188
|
width: 120,
|
|
188
189
|
ellipsis: false,
|
|
189
190
|
fixed: 'right',
|
|
@@ -193,7 +194,7 @@ var UploadTable = function (_a) {
|
|
|
193
194
|
},
|
|
194
195
|
]) : __spreadArray(__spreadArray(__spreadArray(__spreadArray([], startColumns), [
|
|
195
196
|
{
|
|
196
|
-
title: '文件名称',
|
|
197
|
+
title: i18next.t('文件名称'),
|
|
197
198
|
width: 200,
|
|
198
199
|
// fixed: 'left',
|
|
199
200
|
dataIndex: 'fileName',
|
|
@@ -215,7 +216,7 @@ var UploadTable = function (_a) {
|
|
|
215
216
|
},
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
|
-
title: '文件大小',
|
|
219
|
+
title: i18next.t('文件大小'),
|
|
219
220
|
width: 60,
|
|
220
221
|
dataIndex: 'fileSize',
|
|
221
222
|
key: 'fileSize',
|
|
@@ -224,20 +225,20 @@ var UploadTable = function (_a) {
|
|
|
224
225
|
},
|
|
225
226
|
},
|
|
226
227
|
{
|
|
227
|
-
title: '上传时间',
|
|
228
|
+
title: i18next.t('上传时间'),
|
|
228
229
|
width: 100,
|
|
229
230
|
dataIndex: 'uploadTime',
|
|
230
231
|
key: 'uploadTime',
|
|
231
232
|
},
|
|
232
233
|
{
|
|
233
|
-
title: '上传人',
|
|
234
|
+
title: i18next.t('上传人'),
|
|
234
235
|
width: 80,
|
|
235
236
|
dataIndex: 'uploadUser',
|
|
236
237
|
key: 'uploadUser',
|
|
237
238
|
}
|
|
238
239
|
]), otherColumns), [
|
|
239
240
|
{
|
|
240
|
-
title: '操作',
|
|
241
|
+
title: i18next.t('操作'),
|
|
241
242
|
width: 90,
|
|
242
243
|
ellipsis: false,
|
|
243
244
|
fixed: 'right',
|
|
@@ -286,7 +287,9 @@ var UploadTable = function (_a) {
|
|
|
286
287
|
var newDataSource = ((_b = (_a = (dataSourceRef.current || [])) === null || _a === void 0 ? void 0 : _a.slice) === null || _b === void 0 ? void 0 : _b.call(_a)) || [];
|
|
287
288
|
if ((_c = newDataSource[index]) === null || _c === void 0 ? void 0 : _c.loading) {
|
|
288
289
|
newDataSource.splice(index, 1, __assign(__assign({}, record), { loading: false }));
|
|
289
|
-
message.warning((
|
|
290
|
+
message.warning(i18next.t('{{slot0}} 文件下载失败!', {
|
|
291
|
+
slot0: record === null || record === void 0 ? void 0 : record.fileName,
|
|
292
|
+
}));
|
|
290
293
|
setDataSource(newDataSource);
|
|
291
294
|
}
|
|
292
295
|
},
|
|
@@ -316,26 +319,28 @@ var UploadTable = function (_a) {
|
|
|
316
319
|
var newDataSource = ((_b = (_a = (dataSourceRef.current || [])) === null || _a === void 0 ? void 0 : _a.slice) === null || _b === void 0 ? void 0 : _b.call(_a)) || [];
|
|
317
320
|
if ((_c = newDataSource[index]) === null || _c === void 0 ? void 0 : _c.loading) {
|
|
318
321
|
newDataSource.splice(index, 1, __assign(__assign({}, record), { loading: false }));
|
|
319
|
-
message.warning((
|
|
322
|
+
message.warning(i18next.t('{{slot0}} 文件下载失败!', {
|
|
323
|
+
slot0: record === null || record === void 0 ? void 0 : record.fileName,
|
|
324
|
+
}));
|
|
320
325
|
setDataSource(newDataSource);
|
|
321
326
|
}
|
|
322
327
|
},
|
|
323
328
|
});
|
|
324
329
|
}
|
|
325
|
-
} },
|
|
330
|
+
} }, i18next.t('下载'))),
|
|
326
331
|
(typeof operationAuth === 'string'
|
|
327
332
|
? authPreviewBtn
|
|
328
333
|
: showPreviewBtn) &&
|
|
329
|
-
previewBtn('预览', {
|
|
334
|
+
previewBtn(i18next.t('预览'), {
|
|
330
335
|
record: record,
|
|
331
336
|
dataSource: dataSource,
|
|
332
337
|
}),
|
|
333
338
|
(typeof operationAuth === 'string'
|
|
334
339
|
? authDeleteBtn
|
|
335
|
-
: showDeleteBtn) && (React.createElement(Popconfirm, { title:
|
|
340
|
+
: showDeleteBtn) && (React.createElement(Popconfirm, { title: i18next.t('是否删除该条数据?'), cancelText: i18next.t('否'), okText: i18next.t('是'), onConfirm: function () { return onDeleteFile(record, index); } },
|
|
336
341
|
React.createElement(Button, { style: {
|
|
337
342
|
height: 28,
|
|
338
|
-
}, type: "link" },
|
|
343
|
+
}, type: "link" }, i18next.t('删除'))))));
|
|
339
344
|
}
|
|
340
345
|
/**重新上传 */
|
|
341
346
|
function onSubmitFile(file, index) {
|
|
@@ -371,7 +376,7 @@ var UploadTable = function (_a) {
|
|
|
371
376
|
setLoading(false);
|
|
372
377
|
var response = JSON.parse(xhr.responseText);
|
|
373
378
|
if (!response) {
|
|
374
|
-
message.warning('文件上传失败!');
|
|
379
|
+
message.warning(i18next.t('文件上传失败!'));
|
|
375
380
|
}
|
|
376
381
|
var code = response.code, data_1 = response.data, msg = response.msg;
|
|
377
382
|
if (code === 200) {
|
|
@@ -380,7 +385,7 @@ var UploadTable = function (_a) {
|
|
|
380
385
|
onUpload(index, __assign(__assign({}, fileItem), { status: 'done', percent: '100%', fileUrl: data_1.originalName, response: response }));
|
|
381
386
|
}
|
|
382
387
|
else {
|
|
383
|
-
message.warning(msg || '文件上传失败!');
|
|
388
|
+
message.warning(msg || i18next.t('文件上传失败!'));
|
|
384
389
|
}
|
|
385
390
|
}
|
|
386
391
|
else {
|
|
@@ -388,7 +393,7 @@ var UploadTable = function (_a) {
|
|
|
388
393
|
var fileItem = (fileList === null || fileList === void 0 ? void 0 : fileList[index]) || {};
|
|
389
394
|
onUpload &&
|
|
390
395
|
onUpload(index, __assign(__assign({}, fileItem), { percent: '0', status: 'error' }));
|
|
391
|
-
message.warning('文件上传失败!');
|
|
396
|
+
message.warning(i18next.t('文件上传失败!'));
|
|
392
397
|
}
|
|
393
398
|
}
|
|
394
399
|
});
|
|
@@ -416,11 +421,11 @@ var UploadTable = function (_a) {
|
|
|
416
421
|
// const { serverFileName: fileName } = file;
|
|
417
422
|
var fileName = (file === null || file === void 0 ? void 0 : file.serverFileName) || (file === null || file === void 0 ? void 0 : file.fileName);
|
|
418
423
|
if (!fileName) {
|
|
419
|
-
console.error('没有找到需要删除的文件名!',
|
|
424
|
+
console.error(i18next.t('没有找到需要删除的文件名!'), i18next.t('serverFileName 为 {{fileName}}', { fileName: fileName }));
|
|
420
425
|
return;
|
|
421
426
|
}
|
|
422
427
|
if (!apiBaseUrl) {
|
|
423
|
-
console.error(
|
|
428
|
+
console.error(i18next.t('Upload组件未传入 apiBaseUrl 属性!', {}));
|
|
424
429
|
return;
|
|
425
430
|
}
|
|
426
431
|
onDelete && onDelete(index, file);
|
|
@@ -438,7 +443,7 @@ var UploadTable = function (_a) {
|
|
|
438
443
|
newDataSource.splice(index, 1);
|
|
439
444
|
setDataSource(newDataSource);
|
|
440
445
|
onDelete && onDelete(index, file);
|
|
441
|
-
message.success('文件删除成功!');
|
|
446
|
+
message.success(i18next.t('文件删除成功!'));
|
|
442
447
|
}
|
|
443
448
|
else {
|
|
444
449
|
setLoading(false);
|
|
@@ -502,7 +507,7 @@ var UploadTable = function (_a) {
|
|
|
502
507
|
else {
|
|
503
508
|
setLoading({
|
|
504
509
|
spinning: true,
|
|
505
|
-
tip: '附件上传中,请稍后操作!',
|
|
510
|
+
tip: i18next.t('附件上传中,请稍后操作!'),
|
|
506
511
|
});
|
|
507
512
|
}
|
|
508
513
|
// 过滤掉不需要展示的附件
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { UploadProps } from 'antd/lib/upload';
|
|
3
3
|
import { UploadFile } from './';
|
|
4
4
|
import { TableRowSelection } from '../Table';
|
|
5
|
+
import { ImgCropProps } from 'antd-img-crop';
|
|
5
6
|
export interface IUploadRef {
|
|
6
7
|
validate?: (info?: any) => any;
|
|
7
8
|
}
|
|
@@ -37,10 +38,14 @@ export interface IProps extends UploadProps {
|
|
|
37
38
|
ztShowTipText?: string;
|
|
38
39
|
/**允许上传的最大文件大小 */
|
|
39
40
|
maxSize?: number;
|
|
41
|
+
/**允许上传的最小文件大小 */
|
|
42
|
+
minSize?: number;
|
|
40
43
|
/**允许上传的最大数量 */
|
|
41
44
|
maxCount?: number;
|
|
42
45
|
/**最大文件大小提示 */
|
|
43
46
|
maxSizeStr?: string;
|
|
47
|
+
/**最小文件大小提示 */
|
|
48
|
+
minSizeStr?: string;
|
|
44
49
|
/**上传文件人 */
|
|
45
50
|
uploadUser?: string;
|
|
46
51
|
/**默认文件列表 */
|
|
@@ -49,7 +54,7 @@ export interface IProps extends UploadProps {
|
|
|
49
54
|
* 文件设置回调
|
|
50
55
|
* 当fileList 中的所有文件的status属性为done时,才可以确认文件上传完毕
|
|
51
56
|
**/
|
|
52
|
-
callback?: (fileList: any) => void;
|
|
57
|
+
callback?: (fileList: any, options?: any) => void;
|
|
53
58
|
/**
|
|
54
59
|
* 文件删除
|
|
55
60
|
*/
|
|
@@ -79,6 +84,20 @@ export interface IProps extends UploadProps {
|
|
|
79
84
|
uploadTableRef?: any;
|
|
80
85
|
/**表格方法 */
|
|
81
86
|
tableRestProps?: any;
|
|
87
|
+
/** 最大分辨率 */
|
|
88
|
+
maxResolution?: {
|
|
89
|
+
width: number;
|
|
90
|
+
height: number;
|
|
91
|
+
};
|
|
92
|
+
/** 最小分辨率 */
|
|
93
|
+
minResolution?: {
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
};
|
|
97
|
+
/** 是否需要裁剪 */
|
|
98
|
+
isCrop?: boolean;
|
|
99
|
+
/** 裁剪的属性 */
|
|
100
|
+
cropProps?: Partial<ImgCropProps>;
|
|
82
101
|
}
|
|
83
102
|
export declare function getFileId(item: any): any;
|
|
84
103
|
export declare function getFileSize(item: any): any;
|