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
|
@@ -50,8 +50,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
50
50
|
to[j] = from[i];
|
|
51
51
|
return to;
|
|
52
52
|
};
|
|
53
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
53
54
|
import React, { useEffect, useState, useCallback, useRef } from 'react';
|
|
54
55
|
import Table from 'components/Table';
|
|
56
|
+
import { Table as AntTable } from 'antd';
|
|
55
57
|
import EnhanceSelect from 'components/EnhanceSelect';
|
|
56
58
|
import { OperationBtnGroup, Empty, Button, message, Container } from '../index';
|
|
57
59
|
import MaterialComp, {
|
|
@@ -89,14 +91,14 @@ function useGetTableRecords() {
|
|
|
89
91
|
prefixTextureId: 1,
|
|
90
92
|
prefixSpecification: 'Φ24mm*9m',
|
|
91
93
|
prefixSpecificationId: 1,
|
|
92
|
-
prefixPlacesteel: '萍钢',
|
|
94
|
+
prefixPlacesteel: i18next.t('萍钢'),
|
|
93
95
|
prefixPlacesteelId: 1,
|
|
94
96
|
};
|
|
95
97
|
return newItem;
|
|
96
98
|
// return transformDataFn(newItem, { prefix: 'prefix' });
|
|
97
99
|
})), records = _a[0], setRecords = _a[1];
|
|
98
100
|
useEffect(function () {
|
|
99
|
-
console.log('开始远程获取表格数据!');
|
|
101
|
+
console.log(i18next.t('开始远程获取表格数据!'));
|
|
100
102
|
setTimeout(function () {
|
|
101
103
|
// setRecords([
|
|
102
104
|
// { id: '1', test1: '1-test1', test2: '1-test2', studentId: '2' },
|
|
@@ -115,33 +117,29 @@ function useGetTableRecords() {
|
|
|
115
117
|
// );
|
|
116
118
|
}, 2000);
|
|
117
119
|
}, []);
|
|
118
|
-
return {
|
|
119
|
-
|
|
120
|
-
setRecords: setRecords,
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
// 获取列表数据
|
|
120
|
+
return { records: records, setRecords: setRecords };
|
|
121
|
+
} // 获取列表数据
|
|
124
122
|
function useGetSelectList() {
|
|
125
123
|
var _a = useState([]), list = _a[0], setList = _a[1];
|
|
126
124
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
|
127
125
|
useEffect(function () {
|
|
128
|
-
console.log('开始远程拉取下拉框数据!');
|
|
126
|
+
console.log(i18next.t('开始远程拉取下拉框数据!'));
|
|
129
127
|
setTimeout(function () {
|
|
130
128
|
setLoading(true);
|
|
131
129
|
setList([
|
|
132
130
|
{
|
|
133
131
|
id: '1',
|
|
134
|
-
name: '张三',
|
|
132
|
+
name: i18next.t('张三'),
|
|
135
133
|
jobNumber: '001',
|
|
136
134
|
},
|
|
137
135
|
{
|
|
138
136
|
id: '2',
|
|
139
|
-
name: '张三',
|
|
137
|
+
name: i18next.t('张三'),
|
|
140
138
|
jobNumber: '002',
|
|
141
139
|
},
|
|
142
140
|
{
|
|
143
141
|
id: '3',
|
|
144
|
-
name: '李四',
|
|
142
|
+
name: i18next.t('李四'),
|
|
145
143
|
jobNumber: '003',
|
|
146
144
|
},
|
|
147
145
|
]);
|
|
@@ -351,12 +349,12 @@ var list1 = [
|
|
|
351
349
|
isDeleted: 0,
|
|
352
350
|
xid: null,
|
|
353
351
|
materialCode: '010301060000000001',
|
|
354
|
-
materialDesc: '螺纹钢 HRB400E',
|
|
352
|
+
materialDesc: i18next.t('螺纹钢 HRB400E'),
|
|
355
353
|
productLevelId: 4,
|
|
356
354
|
productLevelCode: '010207',
|
|
357
|
-
productLevelName: '带肋钢筋',
|
|
355
|
+
productLevelName: i18next.t('带肋钢筋'),
|
|
358
356
|
brandId: 1,
|
|
359
|
-
brandName: '螺纹钢',
|
|
357
|
+
brandName: i18next.t('螺纹钢'),
|
|
360
358
|
textureId: 1,
|
|
361
359
|
textureName: 'HRB400E',
|
|
362
360
|
specificationId: null,
|
|
@@ -370,7 +368,7 @@ var list1 = [
|
|
|
370
368
|
packingMethodName: null,
|
|
371
369
|
variety: null,
|
|
372
370
|
unitCode: 'T',
|
|
373
|
-
unitName: '吨',
|
|
371
|
+
unitName: i18next.t('吨'),
|
|
374
372
|
trademarkId: null,
|
|
375
373
|
trademarkName: null,
|
|
376
374
|
strengthGrade: null,
|
|
@@ -378,7 +376,7 @@ var list1 = [
|
|
|
378
376
|
materialType: '1',
|
|
379
377
|
foreignTradeFlag: '1',
|
|
380
378
|
poUnitCode: 'T',
|
|
381
|
-
poUnitName: '吨',
|
|
379
|
+
poUnitName: i18next.t('吨'),
|
|
382
380
|
},
|
|
383
381
|
{
|
|
384
382
|
id: 2,
|
|
@@ -391,12 +389,12 @@ var list1 = [
|
|
|
391
389
|
isDeleted: 0,
|
|
392
390
|
xid: null,
|
|
393
391
|
materialCode: '010301060000000002',
|
|
394
|
-
materialDesc: '螺纹钢 HRB300E',
|
|
392
|
+
materialDesc: i18next.t('螺纹钢 HRB300E'),
|
|
395
393
|
productLevelId: 4,
|
|
396
394
|
productLevelCode: '010207',
|
|
397
|
-
productLevelName: '带肋钢筋',
|
|
395
|
+
productLevelName: i18next.t('带肋钢筋'),
|
|
398
396
|
brandId: 1,
|
|
399
|
-
brandName: '螺纹钢',
|
|
397
|
+
brandName: i18next.t('螺纹钢'),
|
|
400
398
|
textureId: 2,
|
|
401
399
|
textureName: 'HRB300E',
|
|
402
400
|
specificationId: null,
|
|
@@ -410,7 +408,7 @@ var list1 = [
|
|
|
410
408
|
packingMethodName: '',
|
|
411
409
|
variety: '',
|
|
412
410
|
unitCode: 'T',
|
|
413
|
-
unitName: '吨',
|
|
411
|
+
unitName: i18next.t('吨'),
|
|
414
412
|
trademarkId: null,
|
|
415
413
|
trademarkName: '',
|
|
416
414
|
strengthGrade: '',
|
|
@@ -418,7 +416,7 @@ var list1 = [
|
|
|
418
416
|
materialType: '1',
|
|
419
417
|
foreignTradeFlag: '1',
|
|
420
418
|
poUnitCode: 'T',
|
|
421
|
-
poUnitName: '吨',
|
|
419
|
+
poUnitName: i18next.t('吨'),
|
|
422
420
|
},
|
|
423
421
|
{
|
|
424
422
|
id: 3,
|
|
@@ -431,12 +429,12 @@ var list1 = [
|
|
|
431
429
|
isDeleted: 0,
|
|
432
430
|
xid: null,
|
|
433
431
|
materialCode: '010301060000000003',
|
|
434
|
-
materialDesc: '方钢品名1 HRB300E',
|
|
432
|
+
materialDesc: i18next.t('方钢品名1 HRB300E'),
|
|
435
433
|
productLevelId: 5,
|
|
436
434
|
productLevelCode: '010208',
|
|
437
|
-
productLevelName: '方钢',
|
|
435
|
+
productLevelName: i18next.t('方钢'),
|
|
438
436
|
brandId: 3,
|
|
439
|
-
brandName: '方钢品名1',
|
|
437
|
+
brandName: i18next.t('方钢品名1'),
|
|
440
438
|
textureId: 4,
|
|
441
439
|
textureName: 'HRB300E',
|
|
442
440
|
specificationId: null,
|
|
@@ -450,7 +448,7 @@ var list1 = [
|
|
|
450
448
|
packingMethodName: '',
|
|
451
449
|
variety: '',
|
|
452
450
|
unitCode: 'T',
|
|
453
|
-
unitName: '吨',
|
|
451
|
+
unitName: i18next.t('吨'),
|
|
454
452
|
trademarkId: null,
|
|
455
453
|
trademarkName: '',
|
|
456
454
|
strengthGrade: '',
|
|
@@ -458,7 +456,7 @@ var list1 = [
|
|
|
458
456
|
materialType: '1',
|
|
459
457
|
foreignTradeFlag: '1',
|
|
460
458
|
poUnitCode: 'T',
|
|
461
|
-
poUnitName: '吨',
|
|
459
|
+
poUnitName: i18next.t('吨'),
|
|
462
460
|
},
|
|
463
461
|
];
|
|
464
462
|
/**
|
|
@@ -510,7 +508,7 @@ var TableDemo = function () {
|
|
|
510
508
|
// 表格列配置
|
|
511
509
|
var columns = [
|
|
512
510
|
{
|
|
513
|
-
title: '序号',
|
|
511
|
+
title: i18next.t('序号'),
|
|
514
512
|
width: 62,
|
|
515
513
|
fixed: 'left',
|
|
516
514
|
align: 'center',
|
|
@@ -518,10 +516,11 @@ var TableDemo = function () {
|
|
|
518
516
|
render: function (_text, _record, index) { return "" + (index + 1); },
|
|
519
517
|
},
|
|
520
518
|
{
|
|
521
|
-
title: '物料信息列表',
|
|
519
|
+
title: i18next.t('物料信息列表'),
|
|
522
520
|
width: 100,
|
|
523
521
|
dataIndex: 'materialId',
|
|
524
522
|
key: 'materialId',
|
|
523
|
+
fixed: 'left',
|
|
525
524
|
validate: {},
|
|
526
525
|
shouldCellUpdate: function (record, preRecord) {
|
|
527
526
|
if (lengthChange) {
|
|
@@ -532,6 +531,7 @@ var TableDemo = function () {
|
|
|
532
531
|
setMoveChange(false);
|
|
533
532
|
return true;
|
|
534
533
|
}
|
|
534
|
+
// return true;
|
|
535
535
|
return record.materialId !== preRecord.materialId;
|
|
536
536
|
},
|
|
537
537
|
render: function (text, record, index) {
|
|
@@ -543,7 +543,7 @@ var TableDemo = function () {
|
|
|
543
543
|
},
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
title: '物料选择相关',
|
|
546
|
+
title: i18next.t('物料选择相关'),
|
|
547
547
|
width: 400,
|
|
548
548
|
dataIndex: 'key1',
|
|
549
549
|
key: 'key1',
|
|
@@ -573,18 +573,18 @@ var TableDemo = function () {
|
|
|
573
573
|
},
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
|
-
title: '测试字段1',
|
|
576
|
+
title: i18next.t('测试字段1'),
|
|
577
577
|
width: 100,
|
|
578
578
|
dataIndex: 'test1',
|
|
579
579
|
key: 'test1',
|
|
580
580
|
render: function () {
|
|
581
581
|
return (React.createElement(Button, { type: "link", onClick: function () {
|
|
582
|
-
console.log('点击跳转');
|
|
583
|
-
}, showCopy: true },
|
|
582
|
+
console.log(i18next.t('点击跳转'));
|
|
583
|
+
}, showCopy: true }, i18next.t('我是一个链接')));
|
|
584
584
|
},
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
|
-
title: '测试字段2',
|
|
587
|
+
title: i18next.t('测试字段2'),
|
|
588
588
|
width: 120,
|
|
589
589
|
dataIndex: 'test2',
|
|
590
590
|
key: 'test2',
|
|
@@ -596,7 +596,7 @@ var TableDemo = function () {
|
|
|
596
596
|
},
|
|
597
597
|
},
|
|
598
598
|
{
|
|
599
|
-
title: '编辑字段11',
|
|
599
|
+
title: i18next.t('编辑字段11'),
|
|
600
600
|
width: 220,
|
|
601
601
|
dataIndex: 'test3',
|
|
602
602
|
key: 'test3',
|
|
@@ -610,7 +610,7 @@ var TableDemo = function () {
|
|
|
610
610
|
return Promise.reject({
|
|
611
611
|
errorFields: [
|
|
612
612
|
{
|
|
613
|
-
errors:
|
|
613
|
+
errors: i18next.t('采购基本数据-明细表 第{{index}}行 采购付款条件2 必填!', { index: index }),
|
|
614
614
|
},
|
|
615
615
|
],
|
|
616
616
|
});
|
|
@@ -635,7 +635,7 @@ var TableDemo = function () {
|
|
|
635
635
|
},
|
|
636
636
|
},
|
|
637
637
|
{
|
|
638
|
-
title: '编辑字段2',
|
|
638
|
+
title: i18next.t('编辑字段2'),
|
|
639
639
|
width: 220,
|
|
640
640
|
dataIndex: 'test4',
|
|
641
641
|
key: 'test4',
|
|
@@ -664,28 +664,32 @@ var TableDemo = function () {
|
|
|
664
664
|
return 0;
|
|
665
665
|
},
|
|
666
666
|
overMaxTip: function (record, index) {
|
|
667
|
-
return
|
|
667
|
+
return i18next.t('第{{slot0}}行,超出最大值,已修改成最大值', {
|
|
668
|
+
slot0: index + 1,
|
|
669
|
+
});
|
|
668
670
|
},
|
|
669
671
|
maxHandle: function (record) {
|
|
670
672
|
return 10000;
|
|
671
673
|
},
|
|
672
674
|
lowMinTip: function (record, index) {
|
|
673
|
-
return
|
|
675
|
+
return i18next.t('第{{slot0}}行,低于最小值,已修改成最小值', {
|
|
676
|
+
slot0: index + 1,
|
|
677
|
+
});
|
|
674
678
|
},
|
|
675
679
|
precision: 0,
|
|
676
680
|
formatterType: 'currency',
|
|
677
681
|
onBlur: function () {
|
|
678
682
|
setBtnLoading(false);
|
|
679
|
-
console.log('失去焦点了');
|
|
683
|
+
console.log(i18next.t('失去焦点了'));
|
|
680
684
|
},
|
|
681
685
|
onFocus: function () {
|
|
682
686
|
setBtnLoading(true);
|
|
683
|
-
console.log('获得焦点了');
|
|
687
|
+
console.log(i18next.t('获得焦点了'));
|
|
684
688
|
},
|
|
685
689
|
},
|
|
686
690
|
},
|
|
687
691
|
{
|
|
688
|
-
title: '编辑字段2+1',
|
|
692
|
+
title: i18next.t('编辑字段2+1'),
|
|
689
693
|
width: 220,
|
|
690
694
|
dataIndex: 'time',
|
|
691
695
|
key: 'time',
|
|
@@ -718,7 +722,7 @@ var TableDemo = function () {
|
|
|
718
722
|
},
|
|
719
723
|
},
|
|
720
724
|
{
|
|
721
|
-
title: '编辑字段3',
|
|
725
|
+
title: i18next.t('编辑字段3'),
|
|
722
726
|
width: 220,
|
|
723
727
|
dataIndex: 'studentId',
|
|
724
728
|
key: 'studentId',
|
|
@@ -751,7 +755,7 @@ var TableDemo = function () {
|
|
|
751
755
|
},
|
|
752
756
|
},
|
|
753
757
|
{
|
|
754
|
-
title: '编辑字段4',
|
|
758
|
+
title: i18next.t('编辑字段4'),
|
|
755
759
|
width: 220,
|
|
756
760
|
dataIndex: 'depId',
|
|
757
761
|
key: 'depId',
|
|
@@ -779,20 +783,20 @@ var TableDemo = function () {
|
|
|
779
783
|
},
|
|
780
784
|
},
|
|
781
785
|
{
|
|
782
|
-
title: '编辑字段5',
|
|
786
|
+
title: i18next.t('编辑字段5'),
|
|
783
787
|
width: 220,
|
|
784
788
|
dataIndex: 'test5',
|
|
785
789
|
key: 'test5',
|
|
786
790
|
},
|
|
787
791
|
{
|
|
788
|
-
title: '编辑字段6',
|
|
792
|
+
title: i18next.t('编辑字段6'),
|
|
789
793
|
width: 220,
|
|
790
794
|
dataIndex: 'test6',
|
|
791
795
|
key: 'test6',
|
|
792
796
|
fixed: 'right',
|
|
793
797
|
},
|
|
794
798
|
{
|
|
795
|
-
title: '操作',
|
|
799
|
+
title: i18next.t('操作'),
|
|
796
800
|
width: 300,
|
|
797
801
|
fixed: 'right',
|
|
798
802
|
key: 'operation',
|
|
@@ -800,22 +804,22 @@ var TableDemo = function () {
|
|
|
800
804
|
return (React.createElement(OperationBtnGroup, { status: "10", id: "11", statusBtnConfig: {
|
|
801
805
|
'10': [
|
|
802
806
|
{
|
|
803
|
-
name: '财务审核',
|
|
807
|
+
name: i18next.t('财务审核'),
|
|
804
808
|
type: 'submitApprove1',
|
|
805
809
|
authority: true,
|
|
806
|
-
confirmMsg: '是否确定作废?作废后单据不能再操作。',
|
|
810
|
+
confirmMsg: i18next.t('是否确定作废?作废后单据不能再操作。'),
|
|
807
811
|
},
|
|
808
812
|
{
|
|
809
|
-
name: '超长文本',
|
|
813
|
+
name: i18next.t('超长文本'),
|
|
810
814
|
type: 'submitApprove2',
|
|
811
815
|
authority: true,
|
|
812
|
-
confirmMsg: '横穿阿斯利康大家按时了看到阿斯利康大家按时了看到阿拉山口巨大数量的阿斯利康大家按时的ask来得及',
|
|
816
|
+
confirmMsg: i18next.t('横穿阿斯利康大家按时了看到阿斯利康大家按时了看到阿拉山口巨大数量的阿斯利康大家按时的ask来得及'),
|
|
813
817
|
},
|
|
814
818
|
{
|
|
815
|
-
name: '撤回',
|
|
819
|
+
name: i18next.t('撤回'),
|
|
816
820
|
type: 'submitApprove3',
|
|
817
821
|
authority: true,
|
|
818
|
-
confirmMsg: '是否确定撤回?',
|
|
822
|
+
confirmMsg: i18next.t('是否确定撤回?'),
|
|
819
823
|
},
|
|
820
824
|
],
|
|
821
825
|
} }));
|
|
@@ -915,12 +919,13 @@ var TableDemo = function () {
|
|
|
915
919
|
});
|
|
916
920
|
});
|
|
917
921
|
})();
|
|
918
|
-
} },
|
|
922
|
+
} }, i18next.t('点击')),
|
|
919
923
|
React.createElement(Button, { onClick: function () {
|
|
920
924
|
clearAllCatchData();
|
|
921
925
|
setRefreshSel(true);
|
|
922
926
|
refreshId.current = refreshId.current + 1;
|
|
923
|
-
} },
|
|
927
|
+
} }, i18next.t('渲染'))),
|
|
928
|
+
React.createElement(AntTable, { columns: columns, dataSource: records, scroll: { x: 1000, y: 200 }, rowKey: "id" }),
|
|
924
929
|
React.createElement(Table
|
|
925
930
|
// 如果需要保留本地偏好,那么这里需要预处理一下columns数据
|
|
926
931
|
// columns={getTableLayoutFullData(columns, tableLayout)}
|
|
@@ -933,8 +938,7 @@ var TableDemo = function () {
|
|
|
933
938
|
// 配置表格列
|
|
934
939
|
// configInfo={tableConfig}
|
|
935
940
|
// 添加动态列配置
|
|
936
|
-
|
|
937
|
-
// showColumnDynamicKey="testkey"
|
|
941
|
+
showColumnDynamic: true, showColumnDynamicKey: "testkey",
|
|
938
942
|
// onDynamicChange={onDynamicChange}
|
|
939
943
|
// 表格项可输入
|
|
940
944
|
onEditableSave: onEditableSaveHandle,
|
|
@@ -1009,11 +1013,11 @@ function myRequest(options) {
|
|
|
1009
1013
|
data: [
|
|
1010
1014
|
{
|
|
1011
1015
|
id: '1',
|
|
1012
|
-
name: '数据项1',
|
|
1016
|
+
name: i18next.t('数据项1'),
|
|
1013
1017
|
},
|
|
1014
1018
|
{
|
|
1015
1019
|
id: '2',
|
|
1016
|
-
name: '数据项2',
|
|
1020
|
+
name: i18next.t('数据项2'),
|
|
1017
1021
|
},
|
|
1018
1022
|
],
|
|
1019
1023
|
});
|
|
@@ -1024,11 +1028,11 @@ function myRequest(options) {
|
|
|
1024
1028
|
data: [
|
|
1025
1029
|
{
|
|
1026
1030
|
id: '3',
|
|
1027
|
-
name: '数据项3',
|
|
1031
|
+
name: i18next.t('数据项3'),
|
|
1028
1032
|
},
|
|
1029
1033
|
{
|
|
1030
1034
|
id: '4',
|
|
1031
|
-
name: '数据项4',
|
|
1035
|
+
name: i18next.t('数据项4'),
|
|
1032
1036
|
},
|
|
1033
1037
|
],
|
|
1034
1038
|
});
|
|
@@ -1039,11 +1043,11 @@ function myRequest(options) {
|
|
|
1039
1043
|
data: [
|
|
1040
1044
|
{
|
|
1041
1045
|
id: '5',
|
|
1042
|
-
name: '数据项5',
|
|
1046
|
+
name: i18next.t('数据项5'),
|
|
1043
1047
|
},
|
|
1044
1048
|
{
|
|
1045
1049
|
id: '6',
|
|
1046
|
-
name: '数据项6',
|
|
1050
|
+
name: i18next.t('数据项6'),
|
|
1047
1051
|
},
|
|
1048
1052
|
],
|
|
1049
1053
|
});
|
|
@@ -1053,27 +1057,27 @@ function myRequest(options) {
|
|
|
1053
1057
|
data: [
|
|
1054
1058
|
{
|
|
1055
1059
|
id: '1',
|
|
1056
|
-
name: '数据项1',
|
|
1060
|
+
name: i18next.t('数据项1'),
|
|
1057
1061
|
},
|
|
1058
1062
|
{
|
|
1059
1063
|
id: '2',
|
|
1060
|
-
name: '数据项2',
|
|
1064
|
+
name: i18next.t('数据项2'),
|
|
1061
1065
|
},
|
|
1062
1066
|
{
|
|
1063
1067
|
id: '3',
|
|
1064
|
-
name: '数据项3',
|
|
1068
|
+
name: i18next.t('数据项3'),
|
|
1065
1069
|
},
|
|
1066
1070
|
{
|
|
1067
1071
|
id: '4',
|
|
1068
|
-
name: '数据项4',
|
|
1072
|
+
name: i18next.t('数据项4'),
|
|
1069
1073
|
},
|
|
1070
1074
|
{
|
|
1071
1075
|
id: '5',
|
|
1072
|
-
name: '数据项5',
|
|
1076
|
+
name: i18next.t('数据项5'),
|
|
1073
1077
|
},
|
|
1074
1078
|
{
|
|
1075
1079
|
id: '6',
|
|
1076
|
-
name: '数据项6',
|
|
1080
|
+
name: i18next.t('数据项6'),
|
|
1077
1081
|
},
|
|
1078
1082
|
],
|
|
1079
1083
|
});
|