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
package/dist/TreeDemo.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
import { Link } from 'react-router-dom';
|
|
2
3
|
import { useCallback, useEffect, useState } from 'react';
|
|
3
4
|
import EnhanceTree from 'components/EnhanceTree';
|
|
@@ -26,14 +27,14 @@ function TreeDemo() {
|
|
|
26
27
|
id: '1399639936446418946',
|
|
27
28
|
parentId: '1295909488001540097',
|
|
28
29
|
hasChildren: false,
|
|
29
|
-
title: '工程三部办公室',
|
|
30
|
+
title: i18next.t('工程三部办公室'),
|
|
30
31
|
key: '1399639936446418946',
|
|
31
32
|
value: '1399639936446418946',
|
|
32
33
|
extra: null,
|
|
33
34
|
},
|
|
34
35
|
],
|
|
35
36
|
hasChildren: true,
|
|
36
|
-
title: '测试部门22121212',
|
|
37
|
+
title: i18next.t('测试部门22121212'),
|
|
37
38
|
key: '1295909488001540097',
|
|
38
39
|
value: '1295909488001540097',
|
|
39
40
|
extra: null,
|
|
@@ -60,21 +61,21 @@ function TreeDemo() {
|
|
|
60
61
|
}, []);
|
|
61
62
|
return (React.createElement("div", null,
|
|
62
63
|
React.createElement(Link, { to: "/test" }, "test"),
|
|
63
|
-
React.createElement("h1", null,
|
|
64
|
-
React.createElement("h2", null,
|
|
64
|
+
React.createElement("h1", null, i18next.t('作为演示使用')),
|
|
65
|
+
React.createElement("h2", null, i18next.t('如果数据是通过外部获取的,可以通过传递list属性')),
|
|
65
66
|
React.createElement(EnhanceTree, { style: selectStyle, treeData: treeData }),
|
|
66
|
-
React.createElement("h2", null,
|
|
67
|
+
React.createElement("h2", null, i18next.t('异步获取数据,一次性获取数据')),
|
|
67
68
|
React.createElement(EnhanceTree, { style: selectStyle, url: "http://192.168.0.83:8000/api/zmdms-system/dept/lazy-tree", params: JSON.stringify({
|
|
68
69
|
status: 50,
|
|
69
70
|
companyId: '1295908627984670722',
|
|
70
71
|
}), request: request }),
|
|
71
|
-
React.createElement("h2", null,
|
|
72
|
+
React.createElement("h2", null, i18next.t('异步获取数据,异步加载子节点')),
|
|
72
73
|
React.createElement(EnhanceTree, { style: selectStyle, url: "http://192.168.0.83:8000/api/zmdms-system/menu/lazy-list", params: JSON.stringify({
|
|
73
74
|
status: 50,
|
|
74
75
|
companyId: '1295908627984670722',
|
|
75
76
|
system: '3',
|
|
76
77
|
}), request: request, transformData: transformDataHandle, asyncLoadChildren: true }),
|
|
77
|
-
React.createElement("h2", null,
|
|
78
|
+
React.createElement("h2", null, i18next.t('配合表单使用')),
|
|
78
79
|
React.createElement(EnhanceTree, { style: selectStyle, treeData: treeData })));
|
|
79
80
|
}
|
|
80
81
|
export default TreeDemo;
|
package/dist/TreeSelectDemo.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
import { Link } from 'react-router-dom';
|
|
2
3
|
import EnhanceTreeSelect from 'components/EnhanceTreeSelect';
|
|
4
|
+
import TreeSelect from 'components/TreeSelect';
|
|
3
5
|
import { useCallback, useEffect, useState } from 'react';
|
|
4
6
|
import { stringify } from 'qs';
|
|
5
7
|
var selectStyle = { width: '200px' };
|
|
@@ -21,19 +23,20 @@ function TreeSelectDemo() {
|
|
|
21
23
|
{
|
|
22
24
|
id: '1295909488001540097',
|
|
23
25
|
parentId: '0',
|
|
26
|
+
selectable: false,
|
|
24
27
|
children: [
|
|
25
28
|
{
|
|
26
29
|
id: '1399639936446418946',
|
|
27
30
|
parentId: '1295909488001540097',
|
|
28
31
|
hasChildren: false,
|
|
29
|
-
title: '工程三部办公室',
|
|
32
|
+
title: i18next.t('工程三部办公室'),
|
|
30
33
|
key: '1399639936446418946',
|
|
31
34
|
value: '1399639936446418946',
|
|
32
35
|
extra: null,
|
|
33
36
|
},
|
|
34
37
|
],
|
|
35
38
|
hasChildren: true,
|
|
36
|
-
title: '测试部门22121212',
|
|
39
|
+
title: i18next.t('测试部门22121212'),
|
|
37
40
|
key: '1295909488001540097',
|
|
38
41
|
value: '1295909488001540097',
|
|
39
42
|
extra: null,
|
|
@@ -61,19 +64,20 @@ function TreeSelectDemo() {
|
|
|
61
64
|
}, []);
|
|
62
65
|
return (React.createElement("div", null,
|
|
63
66
|
React.createElement(Link, { to: "/test" }, "test"),
|
|
64
|
-
React.createElement("h1", null,
|
|
65
|
-
React.createElement("h2", null,
|
|
66
|
-
React.createElement(EnhanceTreeSelect, { style: selectStyle, treeData: treeData, treeNodeLabelProp: "key" }),
|
|
67
|
-
React.createElement("h2", null,
|
|
67
|
+
React.createElement("h1", null, i18next.t('作为演示使用')),
|
|
68
|
+
React.createElement("h2", null, i18next.t('如果数据是通过外部获取的,可以通过传递list属性')),
|
|
69
|
+
React.createElement(EnhanceTreeSelect, { style: selectStyle, treeData: treeData, treeNodeLabelProp: "key", onSelect: function (value) { return console.log(value); }, treeExpandAction: "click" }),
|
|
70
|
+
React.createElement("h2", null, i18next.t('异步获取数据,一次性获取数据')),
|
|
68
71
|
React.createElement(EnhanceTreeSelect, { style: selectStyle, url: "http://192.168.0.83:8000/api/zmdms-system/dept/lazy-tree", params: JSON.stringify({
|
|
69
72
|
status: 50,
|
|
70
73
|
companyId: '1295908627984670722',
|
|
71
74
|
}), request: request }),
|
|
72
|
-
React.createElement("h2", null,
|
|
75
|
+
React.createElement("h2", null, i18next.t('异步获取数据,异步加载子节点')),
|
|
73
76
|
React.createElement(EnhanceTreeSelect, { style: selectStyle, url: "http://192.168.0.83:8000/api/zmdms-system/menu/lazy-list", params: JSON.stringify({
|
|
74
77
|
status: 50,
|
|
75
78
|
companyId: '1295908627984670722',
|
|
76
79
|
system: '3',
|
|
77
|
-
}), request: request, transformData: transformDataHandle, asyncLoadChildren: true })
|
|
80
|
+
}), request: request, transformData: transformDataHandle, asyncLoadChildren: true }),
|
|
81
|
+
React.createElement(TreeSelect, null)));
|
|
78
82
|
}
|
|
79
83
|
export default TreeSelectDemo;
|
|
@@ -0,0 +1,347 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (_) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
49
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
50
|
+
to[j] = from[i];
|
|
51
|
+
return to;
|
|
52
|
+
};
|
|
53
|
+
import React, { useState, useMemo, useEffect } from 'react';
|
|
54
|
+
import ProForm, { useForm } from 'components/ProForm';
|
|
55
|
+
import { Input, Button, Radio, EnhanceSelect, Select, Checkbox, TreeSelect, } from '../../index';
|
|
56
|
+
import { stringify } from 'qs';
|
|
57
|
+
import { token } from '../../constants';
|
|
58
|
+
var initialValues = {
|
|
59
|
+
test1: 111,
|
|
60
|
+
test11: 222,
|
|
61
|
+
test22: 4444,
|
|
62
|
+
test5: '1',
|
|
63
|
+
};
|
|
64
|
+
var configInfo = {
|
|
65
|
+
test1: {
|
|
66
|
+
isRequired: 1,
|
|
67
|
+
isChangeable: 1,
|
|
68
|
+
isDisplay: 1,
|
|
69
|
+
},
|
|
70
|
+
test11: {
|
|
71
|
+
isRequired: 1,
|
|
72
|
+
isChangeable: 1,
|
|
73
|
+
isDisplay: 1,
|
|
74
|
+
},
|
|
75
|
+
test2: {
|
|
76
|
+
isRequired: 1,
|
|
77
|
+
isChangeable: 1,
|
|
78
|
+
isDisplay: 1,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function request(options) {
|
|
82
|
+
return fetch(options.url + "?" + stringify(options.params), {
|
|
83
|
+
headers: {
|
|
84
|
+
'Zmdms-Auth': "bearer " + token,
|
|
85
|
+
},
|
|
86
|
+
method: options.method,
|
|
87
|
+
}).then(function (response) { return response.json(); });
|
|
88
|
+
}
|
|
89
|
+
function Home() {
|
|
90
|
+
var _this = this;
|
|
91
|
+
var form = useForm()[0];
|
|
92
|
+
var _a = useState(1), state = _a[0], setState = _a[1];
|
|
93
|
+
var _b = useState({}), formData = _b[0], setFormData = _b[1];
|
|
94
|
+
var _c = useState('1'), status = _c[0], setStatus = _c[1];
|
|
95
|
+
var configInfoMemo = useMemo(function () {
|
|
96
|
+
return __assign(__assign({}, configInfo), { test1: __assign(__assign({}, configInfo.test1), { isChangeable: status === '1' ? true : false }), test2: __assign(__assign({}, configInfo.test2), { isChangeable: status === '1' ? true : false }) });
|
|
97
|
+
}, [status]);
|
|
98
|
+
useEffect(function () {
|
|
99
|
+
form.setFieldsValue(formData);
|
|
100
|
+
}, [form, formData]);
|
|
101
|
+
var items = __spreadArray([
|
|
102
|
+
{
|
|
103
|
+
name: 'test1',
|
|
104
|
+
label: '测试1',
|
|
105
|
+
isRequired: true,
|
|
106
|
+
render: function (itemProps) {
|
|
107
|
+
// console.log('测试1', state);
|
|
108
|
+
return (React.createElement(Input, __assign({}, itemProps, { allowClear: true })));
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'test112',
|
|
113
|
+
label: '测试112',
|
|
114
|
+
rules: [
|
|
115
|
+
{
|
|
116
|
+
required: true,
|
|
117
|
+
message: '测试112必填',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
render: function (itemProps) { return (React.createElement(Input, __assign({}, itemProps, { allowClear: true, onChange: function (e) {
|
|
121
|
+
setFormData(function (preData) {
|
|
122
|
+
return __assign(__assign({}, preData), { test11: e.target.value });
|
|
123
|
+
});
|
|
124
|
+
}, isAsrInput: true }))); },
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'test2',
|
|
128
|
+
label: '测试2',
|
|
129
|
+
dependencies: ['test1'],
|
|
130
|
+
isRequired: true,
|
|
131
|
+
render: function (itemProps, formInstance) {
|
|
132
|
+
// console.log('测试2 渲染');
|
|
133
|
+
return React.createElement(Input.TextArea, __assign({}, itemProps, { isAsrInput: true }));
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'test22',
|
|
138
|
+
label: '测试22',
|
|
139
|
+
dependencies: ['test1'],
|
|
140
|
+
isChangeable: false,
|
|
141
|
+
render: function (itemProps, formInstance) {
|
|
142
|
+
// console.log(formInstance?.getFieldsValue());
|
|
143
|
+
return React.createElement(Input, __assign({}, itemProps, { allowClear: true }));
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'test23',
|
|
148
|
+
label: '测试23',
|
|
149
|
+
noLabel: true,
|
|
150
|
+
render: function (itemProps, formInstance) {
|
|
151
|
+
return (React.createElement(Radio.Group
|
|
152
|
+
// onChange={(e) => {
|
|
153
|
+
// setStatus(e.target.value);
|
|
154
|
+
// }}
|
|
155
|
+
, null,
|
|
156
|
+
React.createElement(Radio, { value: "1" }, "\u4F60\u597D"),
|
|
157
|
+
React.createElement(Radio, { value: "2" }, "\u518D\u89C1")));
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'test3',
|
|
162
|
+
label: '测试3',
|
|
163
|
+
shouldUpdateNames: ['test23'],
|
|
164
|
+
isDisplay: function (form) {
|
|
165
|
+
console.log(form, form.getFieldValue('test23'));
|
|
166
|
+
return form.getFieldValue('test23') === '1';
|
|
167
|
+
},
|
|
168
|
+
render: function (itemProps, formInstance) {
|
|
169
|
+
return React.createElement(Input, __assign({}, itemProps));
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'test4',
|
|
174
|
+
label: '测试4',
|
|
175
|
+
isRequired: true,
|
|
176
|
+
render: function (itemProps, formInstance) {
|
|
177
|
+
return (React.createElement(EnhanceSelect, __assign({}, itemProps, { list: [
|
|
178
|
+
{ id: '1', name: '小明' },
|
|
179
|
+
{ id: '2', name: '小虎' },
|
|
180
|
+
{ id: '3', name: '小明' },
|
|
181
|
+
{ id: '4', name: '小虎' },
|
|
182
|
+
{ id: '5', name: '小明' },
|
|
183
|
+
{ id: '6', name: '小虎' },
|
|
184
|
+
{ id: '7', name: '小明' },
|
|
185
|
+
{ id: '8', name: '小虎' },
|
|
186
|
+
{ id: '9', name: '小明' },
|
|
187
|
+
{ id: '10', name: '小虎' },
|
|
188
|
+
{ id: '11', name: '小明' },
|
|
189
|
+
{ id: '21', name: '小虎' },
|
|
190
|
+
{ id: '31', name: '小明' },
|
|
191
|
+
{ id: '41', name: '小虎' },
|
|
192
|
+
{ id: '51', name: '小明' },
|
|
193
|
+
{ id: '61', name: '小虎' },
|
|
194
|
+
{ id: '71', name: '小明' },
|
|
195
|
+
{ id: '81', name: '小虎' },
|
|
196
|
+
{ id: '91', name: '小明' },
|
|
197
|
+
{ id: '101', name: '小虎' },
|
|
198
|
+
], mode: "multiple", allowClear: true })));
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'test444',
|
|
203
|
+
label: '测试444',
|
|
204
|
+
isRequired: true,
|
|
205
|
+
render: function (itemProps, formInstance) {
|
|
206
|
+
return (React.createElement(TreeSelect, __assign({}, itemProps, { treeData: [
|
|
207
|
+
{ key: '1', title: '小明' },
|
|
208
|
+
{ key: '2', title: '小虎' },
|
|
209
|
+
{ key: '3', title: '小明' },
|
|
210
|
+
{ key: '4', title: '小虎' },
|
|
211
|
+
{ key: '5', title: '小明' },
|
|
212
|
+
{ key: '6', title: '小虎' },
|
|
213
|
+
{ key: '7', title: '小明' },
|
|
214
|
+
{ key: '8', title: '小虎' },
|
|
215
|
+
{ key: '9', title: '小明' },
|
|
216
|
+
{ key: '10', title: '小虎' },
|
|
217
|
+
{ key: '11', title: '小明' },
|
|
218
|
+
{ key: '21', title: '小虎' },
|
|
219
|
+
{ key: '31', title: '小明' },
|
|
220
|
+
{ key: '41', title: '小虎' },
|
|
221
|
+
{ key: '51', title: '小明' },
|
|
222
|
+
{ key: '61', title: '小虎' },
|
|
223
|
+
{ key: '71', title: '小明' },
|
|
224
|
+
{ key: '81', title: '小虎' },
|
|
225
|
+
{ key: '91', title: '小明' },
|
|
226
|
+
{ key: '101', title: '小虎' },
|
|
227
|
+
], treeCheckable: true, allowClear: true })));
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: 'test5',
|
|
232
|
+
label: '测试5',
|
|
233
|
+
isRequired: true,
|
|
234
|
+
render: function (itemProps, formInstance) {
|
|
235
|
+
return (React.createElement(EnhanceSelect, { placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E", request: request, isCatch: true, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET" }));
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'test6',
|
|
240
|
+
label: '测试6',
|
|
241
|
+
isRequired: true,
|
|
242
|
+
render: function (itemProps, formInstance) {
|
|
243
|
+
// console.log('测试6', state);
|
|
244
|
+
return (React.createElement(Select, __assign({}, itemProps, { allowClear: true }),
|
|
245
|
+
React.createElement(Select.Option, { value: "1" }, "\u4F60\u597D")));
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'test7',
|
|
250
|
+
label: '测试7',
|
|
251
|
+
isRequired: true,
|
|
252
|
+
noLabel: true,
|
|
253
|
+
render: function (itemProps, formInstance) {
|
|
254
|
+
return React.createElement(Input, __assign({}, itemProps));
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'test8',
|
|
259
|
+
label: '测试8',
|
|
260
|
+
isRequired: true,
|
|
261
|
+
noLabel: true,
|
|
262
|
+
render: function (itemProps, formInstance) {
|
|
263
|
+
return (React.createElement(Checkbox.Group, __assign({}, itemProps),
|
|
264
|
+
React.createElement(Checkbox, { value: "1" }, "\u662F"),
|
|
265
|
+
React.createElement(Checkbox, { value: "2" }, "\u5426")));
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: 'test9',
|
|
270
|
+
label: '测试9',
|
|
271
|
+
isRequired: true,
|
|
272
|
+
valuePropName: 'checked',
|
|
273
|
+
noLabel: true,
|
|
274
|
+
showBoxBorder: true,
|
|
275
|
+
render: function (itemProps, formInstance) {
|
|
276
|
+
return React.createElement(Checkbox, null, "\u662F");
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'test11',
|
|
281
|
+
label: '测试11',
|
|
282
|
+
render: function (itemProps, formInstance) {
|
|
283
|
+
return React.createElement(Input.TextArea, __assign({}, itemProps));
|
|
284
|
+
},
|
|
285
|
+
}
|
|
286
|
+
], new Array(10).fill(1).map(function (item, index) {
|
|
287
|
+
return {
|
|
288
|
+
name: 'test6' + index,
|
|
289
|
+
label: '测试6' + index,
|
|
290
|
+
isRequired: true,
|
|
291
|
+
preText: React.createElement("span", null, "\u4F60\u597D\u00A0\u00A0\u00A0"),
|
|
292
|
+
render: function (itemProps, formInstance) {
|
|
293
|
+
// console.log('测试6' + index, state);
|
|
294
|
+
return (React.createElement(Select, __assign({}, itemProps, { allowClear: true }),
|
|
295
|
+
React.createElement(Select.Option, { value: "1" }, "\u4F60\u597D")));
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
}));
|
|
299
|
+
// }, [state]);
|
|
300
|
+
// const outsideState = useMemo(() => {
|
|
301
|
+
// return {
|
|
302
|
+
// state,
|
|
303
|
+
// };
|
|
304
|
+
// }, [state]);
|
|
305
|
+
var searchHandle = function () {
|
|
306
|
+
console.log('searchHandle', form.getFieldsValue());
|
|
307
|
+
};
|
|
308
|
+
var resetHandle = function () {
|
|
309
|
+
form.resetFields();
|
|
310
|
+
};
|
|
311
|
+
console.log('rerender');
|
|
312
|
+
return (React.createElement("div", null,
|
|
313
|
+
React.createElement(ProForm, { form: form, items: items, initialValues: initialValues, showDynamic: true, showDynamicKey: "my-coco", configInfo: configInfoMemo,
|
|
314
|
+
// outsideState={outsideState}
|
|
315
|
+
rightWrapVisible: true, onSearchHandle: searchHandle, onResetHandle: resetHandle }),
|
|
316
|
+
React.createElement(ProForm, { form: form, items: items }),
|
|
317
|
+
React.createElement(Button, { onClick: function () {
|
|
318
|
+
setState(state + 1);
|
|
319
|
+
console.log(form.getFieldsValue());
|
|
320
|
+
} },
|
|
321
|
+
"\u83B7\u53D6",
|
|
322
|
+
state),
|
|
323
|
+
React.createElement(Button, { onClick: function () {
|
|
324
|
+
console.log(formData);
|
|
325
|
+
console.log(form.getFieldsValue());
|
|
326
|
+
} }, "\u83B7\u53D6\u8868\u5355\u6570\u636E"),
|
|
327
|
+
React.createElement(Button, { onClick: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
+
var err_1;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
switch (_a.label) {
|
|
331
|
+
case 0:
|
|
332
|
+
_a.trys.push([0, 2, , 3]);
|
|
333
|
+
return [4 /*yield*/, form.validateFields()];
|
|
334
|
+
case 1:
|
|
335
|
+
_a.sent();
|
|
336
|
+
console.log(form.getFieldsValue());
|
|
337
|
+
return [3 /*break*/, 3];
|
|
338
|
+
case 2:
|
|
339
|
+
err_1 = _a.sent();
|
|
340
|
+
console.log(err_1);
|
|
341
|
+
return [3 /*break*/, 3];
|
|
342
|
+
case 3: return [2 /*return*/];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
}); } }, "\u9A8C\u8BC1")));
|
|
346
|
+
}
|
|
347
|
+
export default Home;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Input 与 Input.TextArea 的 showCount / maxLength / autoSize 对比
|
|
4
|
+
*
|
|
5
|
+
* showCount 的区别:
|
|
6
|
+
* - Input:计数显示在输入框【内部右侧】(类似 suffix),如 "5 / 20"
|
|
7
|
+
* - TextArea:计数显示在输入框【外部右下角】,如 "5 / 20"
|
|
8
|
+
* - 两者在不传 maxLength 时,只显示当前字数,没有分母
|
|
9
|
+
*
|
|
10
|
+
* maxLength:最大可输入字符数(中英文都算 1 个),超长后无法继续输入
|
|
11
|
+
*
|
|
12
|
+
* autoSize:仅 TextArea 支持,Input 是单行框没有该属性
|
|
13
|
+
* - autoSize={true}:高度随内容自适应,最小 1 行
|
|
14
|
+
* - autoSize={{ minRows, maxRows }}:限定最小/最大行数,超过 maxRows 出滚动条
|
|
15
|
+
*/
|
|
16
|
+
declare const InputDemo: React.FC;
|
|
17
|
+
export default InputDemo;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Input } from '../../index';
|
|
3
|
+
var sectionStyle = {
|
|
4
|
+
marginBottom: 24,
|
|
5
|
+
};
|
|
6
|
+
var labelStyle = {
|
|
7
|
+
display: 'block',
|
|
8
|
+
marginBottom: 8,
|
|
9
|
+
fontSize: 14,
|
|
10
|
+
fontWeight: 600,
|
|
11
|
+
color: '#333',
|
|
12
|
+
};
|
|
13
|
+
var descStyle = {
|
|
14
|
+
marginTop: 4,
|
|
15
|
+
fontSize: 12,
|
|
16
|
+
color: '#999',
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Input 与 Input.TextArea 的 showCount / maxLength / autoSize 对比
|
|
20
|
+
*
|
|
21
|
+
* showCount 的区别:
|
|
22
|
+
* - Input:计数显示在输入框【内部右侧】(类似 suffix),如 "5 / 20"
|
|
23
|
+
* - TextArea:计数显示在输入框【外部右下角】,如 "5 / 20"
|
|
24
|
+
* - 两者在不传 maxLength 时,只显示当前字数,没有分母
|
|
25
|
+
*
|
|
26
|
+
* maxLength:最大可输入字符数(中英文都算 1 个),超长后无法继续输入
|
|
27
|
+
*
|
|
28
|
+
* autoSize:仅 TextArea 支持,Input 是单行框没有该属性
|
|
29
|
+
* - autoSize={true}:高度随内容自适应,最小 1 行
|
|
30
|
+
* - autoSize={{ minRows, maxRows }}:限定最小/最大行数,超过 maxRows 出滚动条
|
|
31
|
+
*/
|
|
32
|
+
var InputDemo = function () {
|
|
33
|
+
var _a = useState('你好世界'), inputValue = _a[0], setInputValue = _a[1];
|
|
34
|
+
var _b = useState(''), textareaValue = _b[0], setTextareaValue = _b[1];
|
|
35
|
+
var _c = useState('点击输入框弹出弹窗编辑,点确定后回写数据。'), modalValue = _c[0], setModalValue = _c[1];
|
|
36
|
+
return (React.createElement("div", { style: { padding: '20px', maxWidth: 600 } },
|
|
37
|
+
React.createElement("h2", null, "\u8F93\u5165\u6846"),
|
|
38
|
+
React.createElement("div", { style: sectionStyle },
|
|
39
|
+
React.createElement("label", { style: labelStyle }, "Input + showCount + maxLength\uFF08\u8BA1\u6570\u5728\u6846\u5185\u53F3\u4FA7\uFF09"),
|
|
40
|
+
React.createElement(Input, { showCount: true, maxLength: 200, value: inputValue, onChange: function (e) { return setInputValue(e.target.value); } }),
|
|
41
|
+
React.createElement("div", { style: descStyle },
|
|
42
|
+
"\u8F93\u5165\u5230 20 \u4E2A\u5B57\u7B26\u540E\u88AB\u622A\u65AD\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u8F93\u5165\uFF1B\u5F53\u524D\u957F\u5EA6\uFF1A",
|
|
43
|
+
inputValue.length)),
|
|
44
|
+
React.createElement("div", { style: sectionStyle },
|
|
45
|
+
React.createElement("label", { style: labelStyle }, "Input + showCount\uFF08\u4E0D\u4F20 maxLength\uFF0C\u53EA\u663E\u793A\u5F53\u524D\u5B57\u6570\uFF09"),
|
|
46
|
+
React.createElement(Input, { showCount: true, placeholder: "\u6CA1\u6709\u5206\u6BCD\uFF0C\u4E0D\u9650\u957F\u5EA6" })),
|
|
47
|
+
React.createElement("div", { style: sectionStyle },
|
|
48
|
+
React.createElement("label", { style: labelStyle }, "TextArea + showCount + maxLength\uFF08\u8BA1\u6570\u5728\u6846\u5916\u53F3\u4E0B\u89D2\uFF09"),
|
|
49
|
+
React.createElement(Input.TextArea, { showCount: true, maxLength: 2000, value: textareaValue, onChange: function (e) { return setTextareaValue(e.target.value); } }),
|
|
50
|
+
React.createElement("div", { style: descStyle },
|
|
51
|
+
"\u9ED8\u8BA4 4 \u884C\uFF08rows=4\uFF09\uFF1B\u5F53\u524D\u957F\u5EA6\uFF1A",
|
|
52
|
+
textareaValue.length)),
|
|
53
|
+
React.createElement("div", { style: sectionStyle },
|
|
54
|
+
React.createElement("label", { style: labelStyle }, "TextArea + autoSize\uFF08\u9AD8\u5EA6\u968F\u5185\u5BB9\u81EA\u9002\u5E94\uFF0C\u6700\u5C0F 1 \u884C\uFF09"),
|
|
55
|
+
React.createElement(Input.TextArea, { autoSize: true, showCount: true, maxLength: 2000, placeholder: "\u8F93\u5165\u591A\u884C\u5185\u5BB9\uFF0C\u6846\u4F1A\u81EA\u52A8\u957F\u9AD8" })),
|
|
56
|
+
React.createElement("div", { style: sectionStyle },
|
|
57
|
+
React.createElement("label", { style: labelStyle },
|
|
58
|
+
"1", "TextArea + autoSize={{ minRows: 3, maxRows: 6 }}\uFF08\u9650 3~6 \u884C\uFF0C\u8D85\u8FC7\u540E\u51FA\u6EDA\u52A8\u6761\uFF09"),
|
|
59
|
+
React.createElement(Input.TextArea, { autoSize: { minRows: 3, maxRows: 6 }, showCount: true, isModalInput: true, maxLength: 2000, value: modalValue, onChange: function (e) { return setModalValue(e.target.value); }, placeholder: "\u521D\u59CB 3 \u884C\uFF0C\u6700\u591A\u6491\u5230 6 \u884C" }),
|
|
60
|
+
React.createElement("div", { style: descStyle },
|
|
61
|
+
"\u70B9\u51FB\u8F93\u5165\u6846\u5F39\u51FA\u5F39\u7A97\u7F16\u8F91\uFF1B\u70B9\u300C\u786E\u5B9A\u300D\u540E\u56DE\u5199\u3002\u5F53\u524D\u957F\u5EA6\uFF1A",
|
|
62
|
+
modalValue.length)),
|
|
63
|
+
React.createElement("div", { style: sectionStyle },
|
|
64
|
+
React.createElement("label", { style: labelStyle }, "TextArea \u56FA\u5B9A\u884C\u6570\uFF08rows=6\uFF0C\u4E0D\u7528 autoSize\uFF0C\u4E0D\u968F\u5185\u5BB9\u53D8\u5316\uFF09"),
|
|
65
|
+
React.createElement(Input.TextArea, { rows: 6, showCount: true, maxLength: 2000 })),
|
|
66
|
+
React.createElement("div", { style: sectionStyle },
|
|
67
|
+
React.createElement("label", { style: labelStyle }, "\u5BF9\u6BD4\u5C0F\u7ED3"),
|
|
68
|
+
React.createElement("ul", { style: { fontSize: 13, color: '#555', lineHeight: '22px' } },
|
|
69
|
+
React.createElement("li", null, "showCount \u4F4D\u7F6E\uFF1AInput \u5728\u6846\u5185\u53F3\u4FA7\uFF1BTextArea \u5728\u6846\u5916\u53F3\u4E0B\u89D2"),
|
|
70
|
+
React.createElement("li", null, "\u4E0D\u4F20 maxLength \u65F6\uFF0CshowCount \u53EA\u663E\u793A\u5F53\u524D\u5B57\u6570\uFF08\u6CA1\u6709\u5206\u6BCD\uFF09"),
|
|
71
|
+
React.createElement("li", null, "maxLength \u8FBE\u5230\u4E0A\u9650\u540E\u76F4\u63A5\u7981\u6B62\u7EE7\u7EED\u8F93\u5165"),
|
|
72
|
+
React.createElement("li", null, "autoSize \u662F TextArea \u4E13\u5C5E\uFF1Brows \u53EA\u5728\u975E autoSize \u65F6\u751F\u6548")))));
|
|
73
|
+
};
|
|
74
|
+
export default InputDemo;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { InputNumber } from '../../index';
|
|
3
|
+
var sectionStyle = {
|
|
4
|
+
marginBottom: 24,
|
|
5
|
+
};
|
|
6
|
+
var labelStyle = {
|
|
7
|
+
display: 'block',
|
|
8
|
+
marginBottom: 8,
|
|
9
|
+
fontSize: 14,
|
|
10
|
+
fontWeight: 600,
|
|
11
|
+
color: '#333',
|
|
12
|
+
};
|
|
13
|
+
var InputNumberDemo = function () {
|
|
14
|
+
var _a = useState(10), basicValue = _a[0], setBasicValue = _a[1];
|
|
15
|
+
var _b = useState(3.14), precisionValue = _b[0], setPrecisionValue = _b[1];
|
|
16
|
+
var _c = useState(), rangeValue = _c[0], setRangeValue = _c[1];
|
|
17
|
+
return (React.createElement("div", { style: { padding: '20px', maxWidth: 500 } },
|
|
18
|
+
React.createElement("h2", null, "\u6570\u5B57\u8F93\u5165\u6846"),
|
|
19
|
+
React.createElement("div", { style: sectionStyle },
|
|
20
|
+
React.createElement("label", { style: labelStyle }, "\u57FA\u7840\u7528\u6CD5"),
|
|
21
|
+
React.createElement(InputNumber, { formatterType: "currency", value: basicValue, onChange: function (v) { return setBasicValue(v); } }),
|
|
22
|
+
React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
|
|
23
|
+
"\u5F53\u524D\u503C\uFF1A",
|
|
24
|
+
basicValue)),
|
|
25
|
+
React.createElement("div", { style: sectionStyle },
|
|
26
|
+
React.createElement("label", { style: labelStyle }, "\u7CBE\u5EA6\uFF082\u4F4D\u5C0F\u6570\uFF09"),
|
|
27
|
+
React.createElement(InputNumber, { value: precisionValue, onChange: function (v) { return setPrecisionValue(v); }, precision: 2, step: 0.1 }),
|
|
28
|
+
React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
|
|
29
|
+
"\u5F53\u524D\u503C\uFF1A",
|
|
30
|
+
precisionValue)),
|
|
31
|
+
React.createElement("div", { style: sectionStyle },
|
|
32
|
+
React.createElement("label", { style: labelStyle }, "\u8303\u56F4\u9650\u5236\uFF081~100\uFF09"),
|
|
33
|
+
React.createElement(InputNumber, { value: rangeValue, onChange: function (v) { return setRangeValue(v); }, min: 1, max: 100, placeholder: "\u8BF7\u8F93\u5165 1-100 \u7684\u6570\u5B57" }),
|
|
34
|
+
React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
|
|
35
|
+
"\u5F53\u524D\u503C\uFF1A", rangeValue !== null && rangeValue !== void 0 ? rangeValue : '空')),
|
|
36
|
+
React.createElement("div", { style: sectionStyle },
|
|
37
|
+
React.createElement("label", { style: labelStyle }, "\u7981\u7528\u72B6\u6001"),
|
|
38
|
+
React.createElement(InputNumber, { value: 50, disabled: true })),
|
|
39
|
+
React.createElement("div", { style: sectionStyle },
|
|
40
|
+
React.createElement("label", { style: labelStyle }, "\u5E26\u524D\u540E\u7F00"),
|
|
41
|
+
React.createElement(InputNumber, { defaultValue: 100, formatter: function (value) {
|
|
42
|
+
return ("\u00A5 " + value).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
43
|
+
}, parser: function (value) { return value.replace(/¥\s?|(,*)/g, ''); } }))));
|
|
44
|
+
};
|
|
45
|
+
export default InputNumberDemo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 旧表单组件(SearchContainer 体系)模板
|
|
4
|
+
* 与 /ui/form(ProForm 新表单)对应,覆盖两类场景:
|
|
5
|
+
* 1. 列表页查询区(SearchLeft + SearchRight);
|
|
6
|
+
* 2. 制单/编辑页(Container + SearchLeft + Footer)。
|
|
7
|
+
*/
|
|
8
|
+
declare const OldFormDemo: React.FC;
|
|
9
|
+
export default OldFormDemo;
|