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
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author 陈亚雄
|
|
3
4
|
* @description 基础表格,充当列表
|
|
4
5
|
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
+
import React, { useState } from 'react';
|
|
6
7
|
// redux
|
|
7
8
|
// ztxkui公共组件
|
|
8
9
|
import { Table } from '../index';
|
|
@@ -10,88 +11,287 @@ import { Table } from '../index';
|
|
|
10
11
|
// store
|
|
11
12
|
// 自定义组件
|
|
12
13
|
// 其他文件
|
|
13
|
-
import {
|
|
14
|
+
import { hrData } from './data';
|
|
15
|
+
var dataObj = {
|
|
16
|
+
1: [
|
|
17
|
+
{ id: 1, test1: '1', test2: '2', test3: '3', test4: '4' },
|
|
18
|
+
{ id: 2, test1: '11', test2: '22', test3: '33', test4: '44' },
|
|
19
|
+
{ id: 3, test1: '111', test2: '222', test3: '333', test4: '444' },
|
|
20
|
+
],
|
|
21
|
+
2: [
|
|
22
|
+
{ id: 3, test1: '2-1', test2: '2-2', test3: '2-3', test4: '2-4' },
|
|
23
|
+
{ id: 2, test1: '2-11', test2: '2-22', test3: '2-33', test4: '2-44' },
|
|
24
|
+
{ id: 4, test1: '2-111', test2: '2-222', test3: '2-333', test4: '2-444' },
|
|
25
|
+
],
|
|
26
|
+
3: [
|
|
27
|
+
{ id: 3, test1: '3-1', test2: '3-2', test3: '3-3', test4: '3-4' },
|
|
28
|
+
{ id: 2, test1: '3-11', test2: '3-22', test3: '3-33', test4: '3-44' },
|
|
29
|
+
{ id: 4, test1: '3-111', test2: '3-222', test3: '3-333', test4: '3-444' },
|
|
30
|
+
],
|
|
31
|
+
4: [
|
|
32
|
+
{ id: 1, test1: '4-1', test2: '4-2', test3: '4-3', test4: '4-4' },
|
|
33
|
+
{ id: 2, test1: '4-11', test2: '4-22', test3: '4-33', test4: '4-44' },
|
|
34
|
+
{ id: 3, test1: '4-111', test2: '4-222', test3: '4-333', test4: '4-444' },
|
|
35
|
+
],
|
|
36
|
+
5: [
|
|
37
|
+
{ id: 1, test1: '5-1', test2: '5-2', test3: '5-3', test4: '5-4' },
|
|
38
|
+
{ id: 2, test1: '5-11', test2: '5-22', test3: '5-33', test4: '5-44' },
|
|
39
|
+
{ id: '3', test1: '5-111', test2: '5-222', test3: '5-333', test4: '5-444' },
|
|
40
|
+
{
|
|
41
|
+
id: '3',
|
|
42
|
+
test1: '5-1111',
|
|
43
|
+
test2: '5-2222',
|
|
44
|
+
test3: '5-3333',
|
|
45
|
+
test4: '5-4444',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: '3',
|
|
49
|
+
test1: '5-11111',
|
|
50
|
+
test2: '5-22222',
|
|
51
|
+
test3: '5-33333',
|
|
52
|
+
test4: '5-44444',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
6: [
|
|
56
|
+
{ id: 11, test1: '6-1', test2: '6-2', test3: '6-3', test4: '6-4' },
|
|
57
|
+
{ id: 22, test1: '6-11', test2: '6-22', test3: '6-33', test4: '6-44' },
|
|
58
|
+
{
|
|
59
|
+
id: '33',
|
|
60
|
+
test1: '6-111',
|
|
61
|
+
test2: '6-222',
|
|
62
|
+
test3: '6-333',
|
|
63
|
+
test4: '6-444',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: '36',
|
|
67
|
+
test1: '6-1111',
|
|
68
|
+
test2: '6-2222',
|
|
69
|
+
test3: '6-3333',
|
|
70
|
+
test4: '6-4444',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: '34',
|
|
74
|
+
test1: '6-11111',
|
|
75
|
+
test2: '6-22222',
|
|
76
|
+
test3: '6-33333',
|
|
77
|
+
test4: '6-44444',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
7: [],
|
|
81
|
+
8: [],
|
|
82
|
+
9: [],
|
|
83
|
+
};
|
|
84
|
+
var i = 0;
|
|
14
85
|
var BasicTable = function (_a) {
|
|
15
86
|
var dynamicKey = _a.dynamicKey;
|
|
87
|
+
var _b = useState([]), data = _b[0], setData = _b[1];
|
|
16
88
|
var columns = [
|
|
17
89
|
{
|
|
18
|
-
title: '
|
|
19
|
-
width: 62,
|
|
20
|
-
fixed: 'left',
|
|
21
|
-
key: 'index',
|
|
22
|
-
render: function (_text, _record, index) { return "" + (index + 1); },
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: '测试1',
|
|
90
|
+
title: i18next.t('测试1'),
|
|
26
91
|
width: 100,
|
|
27
92
|
dataIndex: 'test1',
|
|
28
93
|
key: 'test1',
|
|
29
94
|
fixed: true,
|
|
30
95
|
},
|
|
31
96
|
{
|
|
32
|
-
title: '测试2',
|
|
97
|
+
title: i18next.t('测试2'),
|
|
33
98
|
width: 100,
|
|
34
99
|
dataIndex: 'test2',
|
|
35
100
|
key: 'test2',
|
|
36
101
|
},
|
|
37
102
|
{
|
|
38
|
-
title: '测试3',
|
|
103
|
+
title: i18next.t('测试3'),
|
|
39
104
|
width: 100,
|
|
40
105
|
dataIndex: 'test3',
|
|
41
106
|
key: 'test3',
|
|
42
107
|
},
|
|
43
108
|
{
|
|
44
|
-
title: '测试4',
|
|
109
|
+
title: i18next.t('测试4'),
|
|
45
110
|
width: 100,
|
|
46
111
|
dataIndex: 'test4',
|
|
47
112
|
key: 'test4',
|
|
48
113
|
},
|
|
49
114
|
{
|
|
50
|
-
title: '测试5',
|
|
115
|
+
title: i18next.t('测试5'),
|
|
51
116
|
width: 100,
|
|
52
117
|
dataIndex: 'test5',
|
|
53
118
|
key: 'test5',
|
|
54
119
|
},
|
|
55
120
|
{
|
|
56
|
-
title: '测试6',
|
|
121
|
+
title: i18next.t('测试6'),
|
|
57
122
|
width: 100,
|
|
58
123
|
dataIndex: 'test6',
|
|
59
124
|
key: 'test6',
|
|
60
125
|
},
|
|
61
126
|
{
|
|
62
|
-
title: '测试7',
|
|
127
|
+
title: i18next.t('测试7'),
|
|
63
128
|
width: 100,
|
|
64
129
|
dataIndex: 'test7',
|
|
65
130
|
key: 'test7',
|
|
66
131
|
},
|
|
67
132
|
{
|
|
68
|
-
title: '测试8',
|
|
133
|
+
title: i18next.t('测试8'),
|
|
69
134
|
width: 100,
|
|
70
135
|
dataIndex: 'test8',
|
|
71
136
|
key: 'test8',
|
|
72
137
|
},
|
|
73
138
|
{
|
|
74
|
-
title: '测试9',
|
|
139
|
+
title: i18next.t('测试9'),
|
|
75
140
|
width: 100,
|
|
76
141
|
dataIndex: 'test9',
|
|
77
142
|
key: 'test9',
|
|
78
143
|
},
|
|
79
144
|
{
|
|
80
|
-
title: '测试10',
|
|
145
|
+
title: i18next.t('测试10'),
|
|
81
146
|
width: 100,
|
|
82
147
|
dataIndex: 'test10',
|
|
83
148
|
key: 'test10',
|
|
84
149
|
},
|
|
85
150
|
];
|
|
151
|
+
var columns1 = [
|
|
152
|
+
{
|
|
153
|
+
title: '序',
|
|
154
|
+
width: 80,
|
|
155
|
+
fixed: 'left',
|
|
156
|
+
align: 'center',
|
|
157
|
+
render: function (text, record, index) { return "" + (index + 1); },
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
title: '一级单位',
|
|
161
|
+
dataIndex: 'firstDepName',
|
|
162
|
+
key: 'firstDepName',
|
|
163
|
+
width: 110,
|
|
164
|
+
fixed: 'left',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: '开票公司',
|
|
168
|
+
dataIndex: 'invoicingCompanyName',
|
|
169
|
+
key: 'invoicingCompanyName',
|
|
170
|
+
width: 200,
|
|
171
|
+
fixed: 'left',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
title: '员工工号',
|
|
175
|
+
dataIndex: 'workCode',
|
|
176
|
+
key: 'workCode',
|
|
177
|
+
width: 100,
|
|
178
|
+
align: 'center',
|
|
179
|
+
fixed: 'left',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
title: '姓名',
|
|
183
|
+
dataIndex: 'empName',
|
|
184
|
+
key: 'empName',
|
|
185
|
+
width: 80,
|
|
186
|
+
fixed: 'left',
|
|
187
|
+
align: 'center',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
title: '身份证号',
|
|
191
|
+
dataIndex: 'idNumber',
|
|
192
|
+
key: 'idNumber',
|
|
193
|
+
width: 150,
|
|
194
|
+
align: 'center',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
title: '性别',
|
|
198
|
+
dataIndex: 'sexName',
|
|
199
|
+
key: 'sexName',
|
|
200
|
+
width: 60,
|
|
201
|
+
align: 'center',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
title: '年度',
|
|
205
|
+
dataIndex: 'year',
|
|
206
|
+
key: 'year',
|
|
207
|
+
width: 80,
|
|
208
|
+
align: 'center',
|
|
209
|
+
render: function (text) { return (text ? text + "\u5E74" : '— —'); },
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
title: '年化人数',
|
|
213
|
+
dataIndex: 'annualCount',
|
|
214
|
+
key: 'annualCount',
|
|
215
|
+
width: 80,
|
|
216
|
+
align: 'center',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
title: '是否新参加',
|
|
220
|
+
dataIndex: 'isNewJoinName',
|
|
221
|
+
key: 'isNewJoinName',
|
|
222
|
+
width: 90,
|
|
223
|
+
align: 'center',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
title: '企业年金缴费基数',
|
|
227
|
+
dataIndex: 'baseAmount',
|
|
228
|
+
key: 'baseAmount',
|
|
229
|
+
width: 130,
|
|
230
|
+
align: 'center',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
title: '公司缴费',
|
|
234
|
+
dataIndex: 'companyPayment',
|
|
235
|
+
key: 'companyPayment',
|
|
236
|
+
width: 120,
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
title: '个人缴费',
|
|
240
|
+
dataIndex: 'personalPayment',
|
|
241
|
+
key: 'personalPayment',
|
|
242
|
+
width: 120,
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
title: '合计',
|
|
246
|
+
dataIndex: 'totalAmount',
|
|
247
|
+
key: 'totalAmount',
|
|
248
|
+
width: 120,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
title: '备注',
|
|
252
|
+
dataIndex: 'remark',
|
|
253
|
+
key: 'remark',
|
|
254
|
+
width: 280,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
title: '更新人',
|
|
258
|
+
dataIndex: 'updateUserName',
|
|
259
|
+
key: 'updateUserName',
|
|
260
|
+
width: 100,
|
|
261
|
+
align: 'center',
|
|
262
|
+
render: function (text) { return text || '— —'; },
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
title: '更新时间',
|
|
266
|
+
dataIndex: 'updateTime',
|
|
267
|
+
key: 'updateTime',
|
|
268
|
+
width: 160,
|
|
269
|
+
align: 'center',
|
|
270
|
+
render: function (text) { return text || '— —'; },
|
|
271
|
+
},
|
|
272
|
+
];
|
|
86
273
|
return (React.createElement("div", null,
|
|
87
274
|
React.createElement("div", null,
|
|
88
|
-
|
|
275
|
+
i18next.t('基础展示表格;'),
|
|
89
276
|
React.createElement("br", null),
|
|
90
|
-
React.createElement("b", null,
|
|
91
|
-
|
|
277
|
+
React.createElement("b", null, i18next.t('动态列配置;')),
|
|
278
|
+
i18next.t('如果需要缓存住动态列配置,需要传入showColumnDynamicKey; 表格内部进行了优化,数据将存储在本地缓存中,可以不用通过外界传入配置'),
|
|
92
279
|
React.createElement("br", null),
|
|
93
|
-
React.createElement("b", null,
|
|
94
|
-
|
|
95
|
-
React.createElement(
|
|
280
|
+
React.createElement("b", null, i18next.t('列伸缩;')),
|
|
281
|
+
i18next.t('isResizableColumn属性默认为true,如果不需要列伸缩可以传入false')),
|
|
282
|
+
React.createElement("button", { onClick: function () {
|
|
283
|
+
i++;
|
|
284
|
+
setData(dataObj[i]);
|
|
285
|
+
console.log(dataObj[i]);
|
|
286
|
+
} },
|
|
287
|
+
i18next.t('切换数据'),
|
|
288
|
+
i),
|
|
289
|
+
React.createElement("button", { onClick: function () {
|
|
290
|
+
i--;
|
|
291
|
+
setData(dataObj[i]);
|
|
292
|
+
} },
|
|
293
|
+
i18next.t('--切换数据'),
|
|
294
|
+
i),
|
|
295
|
+
React.createElement(Table, { dataSource: hrData, columns: columns1, rowKey: "id", scroll: { x: 400, y: 300 }, isOpenVirtualScrollBar: true })));
|
|
96
296
|
};
|
|
97
297
|
export default BasicTable;
|