@cfmm/umi-plugins-ui-v2 0.0.1
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/README.md +29 -0
- package/dist/cjs/components/ActionLogDrawer.tpl +148 -0
- package/dist/cjs/components/AddDrawerForm.tpl +38 -0
- package/dist/cjs/components/AuthorizeRender.tpl +11 -0
- package/dist/cjs/components/Authorized.tpl +39 -0
- package/dist/cjs/components/AuthorizedRoute.tpl +33 -0
- package/dist/cjs/components/AvatarDropdown.tpl +101 -0
- package/dist/cjs/components/CheckPermissions.tpl +100 -0
- package/dist/cjs/components/CopyButton.tpl +49 -0
- package/dist/cjs/components/CrudTable.tpl +650 -0
- package/dist/cjs/components/DicDropDownList.tpl +60 -0
- package/dist/cjs/components/DndTabs.tpl +159 -0
- package/dist/cjs/components/DndTag.tpl +89 -0
- package/dist/cjs/components/DropdownButton.tpl +123 -0
- package/dist/cjs/components/DynamicIcon.tpl +73 -0
- package/dist/cjs/components/DynamicIconModal.tpl +196 -0
- package/dist/cjs/components/EditMultiLangForm.tpl +366 -0
- package/dist/cjs/components/ExportPageWrapper.tpl +224 -0
- package/dist/cjs/components/FlieListModal.tpl +79 -0
- package/dist/cjs/components/FormUpload.tpl +561 -0
- package/dist/cjs/components/GlobalFooter.tpl +21 -0
- package/dist/cjs/components/GlobalHeader.less +51 -0
- package/dist/cjs/components/GlobalHeader.tpl +313 -0
- package/dist/cjs/components/HeaderSearch.less +32 -0
- package/dist/cjs/components/HeaderSearch.tpl +92 -0
- package/dist/cjs/components/HighlightStr.tpl +41 -0
- package/dist/cjs/components/ImportDataUpload.tpl +94 -0
- package/dist/cjs/components/ImportExecl.less +10 -0
- package/dist/cjs/components/ImportExecl.tpl +108 -0
- package/dist/cjs/components/KeepAliveDndTabs.tpl +151 -0
- package/dist/cjs/components/KeepAliveTabs.less +23 -0
- package/dist/cjs/components/KeepAliveTabs.tpl +136 -0
- package/dist/cjs/components/Loading.css +19 -0
- package/dist/cjs/components/LoadingSvg.tpl +14 -0
- package/dist/cjs/components/MenuFooter.css +13 -0
- package/dist/cjs/components/MenuFooter.tpl +24 -0
- package/dist/cjs/components/MyColorPicker.tpl +19 -0
- package/dist/cjs/components/MyFooterToolbar.css +6 -0
- package/dist/cjs/components/MyFooterToolbar.tpl +56 -0
- package/dist/cjs/components/MyPageContainer.tpl +43 -0
- package/dist/cjs/components/MyReactEcharts.tpl +11 -0
- package/dist/cjs/components/MySelect.tpl +267 -0
- package/dist/cjs/components/MySelectLang.tpl +22 -0
- package/dist/cjs/components/MySetps.tpl +85 -0
- package/dist/cjs/components/MyTagList.tpl +57 -0
- package/dist/cjs/components/MyUpload.less +39 -0
- package/dist/cjs/components/MyUpload.tpl +609 -0
- package/dist/cjs/components/NoFoundPage.tpl +46 -0
- package/dist/cjs/components/PDFWrapper.tpl +96 -0
- package/dist/cjs/components/PageLoading.tpl +16 -0
- package/dist/cjs/components/PermissionSelect.tpl +230 -0
- package/dist/cjs/components/ProFormUTCDatePicker.tpl +20 -0
- package/dist/cjs/components/ProFormUTCRangePicker.tpl +20 -0
- package/dist/cjs/components/PromiseRender.tpl +93 -0
- package/dist/cjs/components/QrCodeModal.tpl +19 -0
- package/dist/cjs/components/RandomAvatar.tpl +34 -0
- package/dist/cjs/components/RefDrawerForm.tpl +75 -0
- package/dist/cjs/components/ReportTable.tpl +336 -0
- package/dist/cjs/components/Secured.tpl +66 -0
- package/dist/cjs/components/ThemeSwitch.tpl +74 -0
- package/dist/cjs/components/TimeTypeSelect.tpl +35 -0
- package/dist/cjs/components/TipsTableTitle.tpl +37 -0
- package/dist/cjs/components/UTCDatePicker.tpl +107 -0
- package/dist/cjs/components/UTCRangePicker.tpl +142 -0
- package/dist/cjs/components/UpdateForm.tpl +32 -0
- package/dist/cjs/components/UserDisable.tpl +58 -0
- package/dist/cjs/components/UserNoPagePermission.tpl +58 -0
- package/dist/cjs/components/UserNoPermission.tpl +58 -0
- package/dist/cjs/components/ViewTableItemDrawer.tpl +29 -0
- package/dist/cjs/components/VolumeFormItem.tpl +59 -0
- package/dist/cjs/components/WangEditor.css +53 -0
- package/dist/cjs/components/WangEditor.tpl +174 -0
- package/dist/cjs/components/WangEditorView.tpl +24 -0
- package/dist/cjs/components/fileTypeMap.tpl +96 -0
- package/dist/cjs/components/renderAuthorize.tpl +44 -0
- package/dist/cjs/context/KeepAliveTabs.tpl +13 -0
- package/dist/cjs/context/index.tpl +1 -0
- package/dist/cjs/hooks/useAction.tpl +126 -0
- package/dist/cjs/hooks/useActionLocales.tpl +108 -0
- package/dist/cjs/hooks/useAuthority.tpl +27 -0
- package/dist/cjs/hooks/useColumnTitle.tpl +47 -0
- package/dist/cjs/hooks/useFormatLocale.tpl +82 -0
- package/dist/cjs/hooks/useKeepAliveTabs.tpl +255 -0
- package/dist/cjs/hooks/useMatchRoute.tpl +76 -0
- package/dist/cjs/hooks/useMemoizedFn.tpl +32 -0
- package/dist/cjs/hooks/useOutlet.tpl +20 -0
- package/dist/cjs/hooks/usePageExport.tpl +155 -0
- package/dist/cjs/hooks/useQueryTableList.tpl +91 -0
- package/dist/cjs/hooks/useRouteAuth.tpl +122 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +122 -0
- package/dist/cjs/locales/en-US.d.ts +163 -0
- package/dist/cjs/locales/en-US.js +16 -0
- package/dist/cjs/locales/enUS/ActionLogDrawer.d.ts +6 -0
- package/dist/cjs/locales/enUS/ActionLogDrawer.js +11 -0
- package/dist/cjs/locales/enUS/DynamicIconModal.d.ts +4 -0
- package/dist/cjs/locales/enUS/DynamicIconModal.js +9 -0
- package/dist/cjs/locales/enUS/EditMultiLangForm.d.ts +16 -0
- package/dist/cjs/locales/enUS/EditMultiLangForm.js +21 -0
- package/dist/cjs/locales/enUS/File.d.ts +54 -0
- package/dist/cjs/locales/enUS/File.js +60 -0
- package/dist/cjs/locales/enUS/GlobalFooter.d.ts +4 -0
- package/dist/cjs/locales/enUS/GlobalFooter.js +9 -0
- package/dist/cjs/locales/enUS/GlobalHeader.d.ts +10 -0
- package/dist/cjs/locales/enUS/GlobalHeader.js +15 -0
- package/dist/cjs/locales/enUS/MyFooterToolbar.d.ts +5 -0
- package/dist/cjs/locales/enUS/MyFooterToolbar.js +10 -0
- package/dist/cjs/locales/enUS/PermissionSelect.d.ts +4 -0
- package/dist/cjs/locales/enUS/PermissionSelect.js +9 -0
- package/dist/cjs/locales/enUS/TimeTypeSelect.d.ts +6 -0
- package/dist/cjs/locales/enUS/TimeTypeSelect.js +11 -0
- package/dist/cjs/locales/enUS/common.d.ts +74 -0
- package/dist/cjs/locales/enUS/common.js +82 -0
- package/dist/cjs/locales/enUS/index.d.ts +163 -0
- package/dist/cjs/locales/enUS/index.js +25 -0
- package/dist/cjs/locales/enUS/pages.d.ts +10 -0
- package/dist/cjs/locales/enUS/pages.js +15 -0
- package/dist/cjs/locales/th-TH.d.ts +163 -0
- package/dist/cjs/locales/th-TH.js +16 -0
- package/dist/cjs/locales/zh-CN.d.ts +163 -0
- package/dist/cjs/locales/zh-CN.js +16 -0
- package/dist/cjs/locales/zh-TW.d.ts +162 -0
- package/dist/cjs/locales/zh-TW.js +16 -0
- package/dist/cjs/locales/zhCN/ActionLogDrawer.d.ts +6 -0
- package/dist/cjs/locales/zhCN/ActionLogDrawer.js +11 -0
- package/dist/cjs/locales/zhCN/DynamicIconModal.d.ts +4 -0
- package/dist/cjs/locales/zhCN/DynamicIconModal.js +9 -0
- package/dist/cjs/locales/zhCN/EditMultiLangForm.d.ts +16 -0
- package/dist/cjs/locales/zhCN/EditMultiLangForm.js +21 -0
- package/dist/cjs/locales/zhCN/File.d.ts +54 -0
- package/dist/cjs/locales/zhCN/File.js +60 -0
- package/dist/cjs/locales/zhCN/GlobalFooter.d.ts +4 -0
- package/dist/cjs/locales/zhCN/GlobalFooter.js +9 -0
- package/dist/cjs/locales/zhCN/GlobalHeader.d.ts +10 -0
- package/dist/cjs/locales/zhCN/GlobalHeader.js +15 -0
- package/dist/cjs/locales/zhCN/MyFooterToolbar.d.ts +5 -0
- package/dist/cjs/locales/zhCN/MyFooterToolbar.js +10 -0
- package/dist/cjs/locales/zhCN/PermissionSelect.d.ts +4 -0
- package/dist/cjs/locales/zhCN/PermissionSelect.js +9 -0
- package/dist/cjs/locales/zhCN/TimeTypeSelect.d.ts +6 -0
- package/dist/cjs/locales/zhCN/TimeTypeSelect.js +11 -0
- package/dist/cjs/locales/zhCN/common.d.ts +74 -0
- package/dist/cjs/locales/zhCN/common.js +82 -0
- package/dist/cjs/locales/zhCN/index.d.ts +163 -0
- package/dist/cjs/locales/zhCN/index.js +25 -0
- package/dist/cjs/locales/zhCN/pages.d.ts +10 -0
- package/dist/cjs/locales/zhCN/pages.js +15 -0
- package/dist/cjs/locales/zhTW/ActionLogDrawer.d.ts +6 -0
- package/dist/cjs/locales/zhTW/ActionLogDrawer.js +11 -0
- package/dist/cjs/locales/zhTW/DynamicIconModal.d.ts +4 -0
- package/dist/cjs/locales/zhTW/DynamicIconModal.js +9 -0
- package/dist/cjs/locales/zhTW/EditMultiLangForm.d.ts +16 -0
- package/dist/cjs/locales/zhTW/EditMultiLangForm.js +21 -0
- package/dist/cjs/locales/zhTW/File.d.ts +53 -0
- package/dist/cjs/locales/zhTW/File.js +59 -0
- package/dist/cjs/locales/zhTW/GlobalFooter.d.ts +4 -0
- package/dist/cjs/locales/zhTW/GlobalFooter.js +9 -0
- package/dist/cjs/locales/zhTW/GlobalHeader.d.ts +10 -0
- package/dist/cjs/locales/zhTW/GlobalHeader.js +15 -0
- package/dist/cjs/locales/zhTW/MyFooterToolbar.d.ts +5 -0
- package/dist/cjs/locales/zhTW/MyFooterToolbar.js +10 -0
- package/dist/cjs/locales/zhTW/PermissionSelect.d.ts +4 -0
- package/dist/cjs/locales/zhTW/PermissionSelect.js +9 -0
- package/dist/cjs/locales/zhTW/TimeTypeSelect.d.ts +6 -0
- package/dist/cjs/locales/zhTW/TimeTypeSelect.js +11 -0
- package/dist/cjs/locales/zhTW/common.d.ts +74 -0
- package/dist/cjs/locales/zhTW/common.js +82 -0
- package/dist/cjs/locales/zhTW/index.d.ts +162 -0
- package/dist/cjs/locales/zhTW/index.js +25 -0
- package/dist/cjs/locales/zhTW/pages.d.ts +10 -0
- package/dist/cjs/locales/zhTW/pages.js +15 -0
- package/dist/cjs/services/index.tpl +160 -0
- package/dist/cjs/types/ActionLogDrawerTypes.d.ts +1 -0
- package/dist/cjs/types/ActionLogDrawerTypes.js +7 -0
- package/dist/cjs/types/AvatarDropdownTypes.d.ts +1 -0
- package/dist/cjs/types/AvatarDropdownTypes.js +7 -0
- package/dist/cjs/types/CrudTableTypes.d.ts +1 -0
- package/dist/cjs/types/CrudTableTypes.js +7 -0
- package/dist/cjs/types/DatePickerTypes.d.ts +1 -0
- package/dist/cjs/types/DatePickerTypes.js +7 -0
- package/dist/cjs/types/DicDropDownListTypes.d.ts +1 -0
- package/dist/cjs/types/DicDropDownListTypes.js +7 -0
- package/dist/cjs/types/DndTabsTypes.d.ts +1 -0
- package/dist/cjs/types/DndTabsTypes.js +7 -0
- package/dist/cjs/types/DndTagTypes.d.ts +1 -0
- package/dist/cjs/types/DndTagTypes.js +7 -0
- package/dist/cjs/types/DropdownButtonTypes.d.ts +2 -0
- package/dist/cjs/types/DropdownButtonTypes.js +8 -0
- package/dist/cjs/types/DynamicIconTypes.d.ts +1 -0
- package/dist/cjs/types/DynamicIconTypes.js +7 -0
- package/dist/cjs/types/EditMultiLangFormTypes.d.ts +1 -0
- package/dist/cjs/types/EditMultiLangFormTypes.js +7 -0
- package/dist/cjs/types/ExportPageWrapperTypes.d.ts +1 -0
- package/dist/cjs/types/ExportPageWrapperTypes.js +7 -0
- package/dist/cjs/types/GlobalHeaderTypes.d.ts +1 -0
- package/dist/cjs/types/GlobalHeaderTypes.js +7 -0
- package/dist/cjs/types/HeaderSearchTypes.d.ts +1 -0
- package/dist/cjs/types/HeaderSearchTypes.js +7 -0
- package/dist/cjs/types/HighlightStrTypes.d.ts +1 -0
- package/dist/cjs/types/HighlightStrTypes.js +7 -0
- package/dist/cjs/types/ImportDataUploadTypes.d.ts +1 -0
- package/dist/cjs/types/ImportDataUploadTypes.js +7 -0
- package/dist/cjs/types/ImportExeclTypes.d.ts +1 -0
- package/dist/cjs/types/ImportExeclTypes.js +7 -0
- package/dist/cjs/types/KeepAliveTabsTypes.d.ts +1 -0
- package/dist/cjs/types/KeepAliveTabsTypes.js +7 -0
- package/dist/cjs/types/MenuFooterTypes.d.ts +1 -0
- package/dist/cjs/types/MenuFooterTypes.js +7 -0
- package/dist/cjs/types/MyFooterToolbarTypes.d.ts +1 -0
- package/dist/cjs/types/MyFooterToolbarTypes.js +7 -0
- package/dist/cjs/types/MyPageContainerTypes.d.ts +1 -0
- package/dist/cjs/types/MyPageContainerTypes.js +7 -0
- package/dist/cjs/types/MySelectLangTypes.d.ts +1 -0
- package/dist/cjs/types/MySelectLangTypes.js +7 -0
- package/dist/cjs/types/MySelectTypes.d.ts +1 -0
- package/dist/cjs/types/MySelectTypes.js +7 -0
- package/dist/cjs/types/MySetpsTypes.d.ts +1 -0
- package/dist/cjs/types/MySetpsTypes.js +7 -0
- package/dist/cjs/types/MyTagListTypes.d.ts +1 -0
- package/dist/cjs/types/MyTagListTypes.js +7 -0
- package/dist/cjs/types/MyUploadTypes.d.ts +1 -0
- package/dist/cjs/types/MyUploadTypes.js +7 -0
- package/dist/cjs/types/PermissionSelectTypes.d.ts +1 -0
- package/dist/cjs/types/PermissionSelectTypes.js +7 -0
- package/dist/cjs/types/QrCodeModalTypes.d.ts +1 -0
- package/dist/cjs/types/QrCodeModalTypes.js +7 -0
- package/dist/cjs/types/RandomAvatarTypes.d.ts +1 -0
- package/dist/cjs/types/RandomAvatarTypes.js +7 -0
- package/dist/cjs/types/RefDrawerFormTypes.d.ts +1 -0
- package/dist/cjs/types/RefDrawerFormTypes.js +7 -0
- package/dist/cjs/types/ReportTableTypes.d.ts +1 -0
- package/dist/cjs/types/ReportTableTypes.js +7 -0
- package/dist/cjs/types/ThemeSwitchTypes.d.ts +1 -0
- package/dist/cjs/types/ThemeSwitchTypes.js +7 -0
- package/dist/cjs/types/ViewTableItemDrawerTypes.d.ts +1 -0
- package/dist/cjs/types/ViewTableItemDrawerTypes.js +7 -0
- package/dist/cjs/types/VolumeFormItemTypes.d.ts +1 -0
- package/dist/cjs/types/VolumeFormItemTypes.js +7 -0
- package/dist/cjs/types/WangEditorTypes.d.ts +1 -0
- package/dist/cjs/types/WangEditorTypes.js +7 -0
- package/dist/cjs/types/index.d.ts +35 -0
- package/dist/cjs/types/index.js +250 -0
- package/dist/cjs/types/servicesTypes.d.ts +1 -0
- package/dist/cjs/types/servicesTypes.js +7 -0
- package/dist/cjs/utils/Authorized.tpl +17 -0
- package/dist/cjs/utils/authority.tpl +51 -0
- package/dist/cjs/utils/authorityFunction.tpl +17 -0
- package/dist/cjs/utils/excelHelper.tpl +825 -0
- package/dist/cjs/utils/exportPage.tpl +784 -0
- package/dist/cjs/utils/fileHelper.tpl +251 -0
- package/dist/cjs/utils/importHelper.tpl +283 -0
- package/dist/cjs/utils/utils.tpl +26 -0
- package/dist/cjs/utils/xmlRequest.tpl +92 -0
- package/dist/cjs/writeTmpFile/index.d.ts +5 -0
- package/dist/cjs/writeTmpFile/index.js +34 -0
- package/dist/cjs/writeTmpFile/runtime.d.ts +5 -0
- package/dist/cjs/writeTmpFile/runtime.js +15 -0
- package/dist/cjs/writeTmpFile/writeConstants.d.ts +6 -0
- package/dist/cjs/writeTmpFile/writeConstants.js +13 -0
- package/dist/cjs/writeTmpFile/writeIndex.d.ts +5 -0
- package/dist/cjs/writeTmpFile/writeIndex.js +10 -0
- package/dist/cjs/writeTmpFile/writeTypes.d.ts +5 -0
- package/dist/cjs/writeTmpFile/writeTypes.js +12 -0
- package/dist/esm/components/ActionLogDrawer.tpl +148 -0
- package/dist/esm/components/AddDrawerForm.tpl +38 -0
- package/dist/esm/components/AuthorizeRender.tpl +11 -0
- package/dist/esm/components/Authorized.tpl +39 -0
- package/dist/esm/components/AuthorizedRoute.tpl +33 -0
- package/dist/esm/components/AvatarDropdown.tpl +101 -0
- package/dist/esm/components/CheckPermissions.tpl +100 -0
- package/dist/esm/components/CopyButton.tpl +49 -0
- package/dist/esm/components/CrudTable.tpl +650 -0
- package/dist/esm/components/DicDropDownList.tpl +60 -0
- package/dist/esm/components/DndTabs.tpl +159 -0
- package/dist/esm/components/DndTag.tpl +89 -0
- package/dist/esm/components/DropdownButton.tpl +123 -0
- package/dist/esm/components/DynamicIcon.tpl +73 -0
- package/dist/esm/components/DynamicIconModal.tpl +196 -0
- package/dist/esm/components/EditMultiLangForm.tpl +366 -0
- package/dist/esm/components/ExportPageWrapper.tpl +224 -0
- package/dist/esm/components/FlieListModal.tpl +79 -0
- package/dist/esm/components/FormUpload.tpl +561 -0
- package/dist/esm/components/GlobalFooter.tpl +21 -0
- package/dist/esm/components/GlobalHeader.less +51 -0
- package/dist/esm/components/GlobalHeader.tpl +313 -0
- package/dist/esm/components/HeaderSearch.less +32 -0
- package/dist/esm/components/HeaderSearch.tpl +92 -0
- package/dist/esm/components/HighlightStr.tpl +41 -0
- package/dist/esm/components/ImportDataUpload.tpl +94 -0
- package/dist/esm/components/ImportExecl.less +10 -0
- package/dist/esm/components/ImportExecl.tpl +108 -0
- package/dist/esm/components/KeepAliveDndTabs.tpl +151 -0
- package/dist/esm/components/KeepAliveTabs.less +23 -0
- package/dist/esm/components/KeepAliveTabs.tpl +136 -0
- package/dist/esm/components/Loading.css +19 -0
- package/dist/esm/components/LoadingSvg.tpl +14 -0
- package/dist/esm/components/MenuFooter.css +13 -0
- package/dist/esm/components/MenuFooter.tpl +24 -0
- package/dist/esm/components/MyColorPicker.tpl +19 -0
- package/dist/esm/components/MyFooterToolbar.css +6 -0
- package/dist/esm/components/MyFooterToolbar.tpl +56 -0
- package/dist/esm/components/MyPageContainer.tpl +43 -0
- package/dist/esm/components/MyReactEcharts.tpl +11 -0
- package/dist/esm/components/MySelect.tpl +267 -0
- package/dist/esm/components/MySelectLang.tpl +22 -0
- package/dist/esm/components/MySetps.tpl +85 -0
- package/dist/esm/components/MyTagList.tpl +57 -0
- package/dist/esm/components/MyUpload.less +39 -0
- package/dist/esm/components/MyUpload.tpl +609 -0
- package/dist/esm/components/NoFoundPage.tpl +46 -0
- package/dist/esm/components/PDFWrapper.tpl +96 -0
- package/dist/esm/components/PageLoading.tpl +16 -0
- package/dist/esm/components/PermissionSelect.tpl +230 -0
- package/dist/esm/components/ProFormUTCDatePicker.tpl +20 -0
- package/dist/esm/components/ProFormUTCRangePicker.tpl +20 -0
- package/dist/esm/components/PromiseRender.tpl +93 -0
- package/dist/esm/components/QrCodeModal.tpl +19 -0
- package/dist/esm/components/RandomAvatar.tpl +34 -0
- package/dist/esm/components/RefDrawerForm.tpl +75 -0
- package/dist/esm/components/ReportTable.tpl +336 -0
- package/dist/esm/components/Secured.tpl +66 -0
- package/dist/esm/components/ThemeSwitch.tpl +74 -0
- package/dist/esm/components/TimeTypeSelect.tpl +35 -0
- package/dist/esm/components/TipsTableTitle.tpl +37 -0
- package/dist/esm/components/UTCDatePicker.tpl +107 -0
- package/dist/esm/components/UTCRangePicker.tpl +142 -0
- package/dist/esm/components/UpdateForm.tpl +32 -0
- package/dist/esm/components/UserDisable.tpl +58 -0
- package/dist/esm/components/UserNoPagePermission.tpl +58 -0
- package/dist/esm/components/UserNoPermission.tpl +58 -0
- package/dist/esm/components/ViewTableItemDrawer.tpl +29 -0
- package/dist/esm/components/VolumeFormItem.tpl +59 -0
- package/dist/esm/components/WangEditor.css +53 -0
- package/dist/esm/components/WangEditor.tpl +174 -0
- package/dist/esm/components/WangEditorView.tpl +24 -0
- package/dist/esm/components/fileTypeMap.tpl +96 -0
- package/dist/esm/components/renderAuthorize.tpl +44 -0
- package/dist/esm/context/KeepAliveTabs.tpl +13 -0
- package/dist/esm/context/index.tpl +1 -0
- package/dist/esm/hooks/useAction.tpl +126 -0
- package/dist/esm/hooks/useActionLocales.tpl +108 -0
- package/dist/esm/hooks/useAuthority.tpl +27 -0
- package/dist/esm/hooks/useColumnTitle.tpl +47 -0
- package/dist/esm/hooks/useFormatLocale.tpl +82 -0
- package/dist/esm/hooks/useKeepAliveTabs.tpl +255 -0
- package/dist/esm/hooks/useMatchRoute.tpl +76 -0
- package/dist/esm/hooks/useMemoizedFn.tpl +32 -0
- package/dist/esm/hooks/useOutlet.tpl +20 -0
- package/dist/esm/hooks/usePageExport.tpl +155 -0
- package/dist/esm/hooks/useQueryTableList.tpl +91 -0
- package/dist/esm/hooks/useRouteAuth.tpl +122 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +115 -0
- package/dist/esm/locales/en-US.d.ts +163 -0
- package/dist/esm/locales/en-US.js +9 -0
- package/dist/esm/locales/enUS/ActionLogDrawer.d.ts +6 -0
- package/dist/esm/locales/enUS/ActionLogDrawer.js +5 -0
- package/dist/esm/locales/enUS/DynamicIconModal.d.ts +4 -0
- package/dist/esm/locales/enUS/DynamicIconModal.js +3 -0
- package/dist/esm/locales/enUS/EditMultiLangForm.d.ts +16 -0
- package/dist/esm/locales/enUS/EditMultiLangForm.js +15 -0
- package/dist/esm/locales/enUS/File.d.ts +54 -0
- package/dist/esm/locales/enUS/File.js +54 -0
- package/dist/esm/locales/enUS/GlobalFooter.d.ts +4 -0
- package/dist/esm/locales/enUS/GlobalFooter.js +3 -0
- package/dist/esm/locales/enUS/GlobalHeader.d.ts +10 -0
- package/dist/esm/locales/enUS/GlobalHeader.js +9 -0
- package/dist/esm/locales/enUS/MyFooterToolbar.d.ts +5 -0
- package/dist/esm/locales/enUS/MyFooterToolbar.js +4 -0
- package/dist/esm/locales/enUS/PermissionSelect.d.ts +4 -0
- package/dist/esm/locales/enUS/PermissionSelect.js +3 -0
- package/dist/esm/locales/enUS/TimeTypeSelect.d.ts +6 -0
- package/dist/esm/locales/enUS/TimeTypeSelect.js +5 -0
- package/dist/esm/locales/enUS/common.d.ts +74 -0
- package/dist/esm/locales/enUS/common.js +76 -0
- package/dist/esm/locales/enUS/index.d.ts +163 -0
- package/dist/esm/locales/enUS/index.js +18 -0
- package/dist/esm/locales/enUS/pages.d.ts +10 -0
- package/dist/esm/locales/enUS/pages.js +9 -0
- package/dist/esm/locales/th-TH.d.ts +163 -0
- package/dist/esm/locales/th-TH.js +9 -0
- package/dist/esm/locales/zh-CN.d.ts +163 -0
- package/dist/esm/locales/zh-CN.js +9 -0
- package/dist/esm/locales/zh-TW.d.ts +162 -0
- package/dist/esm/locales/zh-TW.js +9 -0
- package/dist/esm/locales/zhCN/ActionLogDrawer.d.ts +6 -0
- package/dist/esm/locales/zhCN/ActionLogDrawer.js +5 -0
- package/dist/esm/locales/zhCN/DynamicIconModal.d.ts +4 -0
- package/dist/esm/locales/zhCN/DynamicIconModal.js +3 -0
- package/dist/esm/locales/zhCN/EditMultiLangForm.d.ts +16 -0
- package/dist/esm/locales/zhCN/EditMultiLangForm.js +15 -0
- package/dist/esm/locales/zhCN/File.d.ts +54 -0
- package/dist/esm/locales/zhCN/File.js +54 -0
- package/dist/esm/locales/zhCN/GlobalFooter.d.ts +4 -0
- package/dist/esm/locales/zhCN/GlobalFooter.js +3 -0
- package/dist/esm/locales/zhCN/GlobalHeader.d.ts +10 -0
- package/dist/esm/locales/zhCN/GlobalHeader.js +9 -0
- package/dist/esm/locales/zhCN/MyFooterToolbar.d.ts +5 -0
- package/dist/esm/locales/zhCN/MyFooterToolbar.js +4 -0
- package/dist/esm/locales/zhCN/PermissionSelect.d.ts +4 -0
- package/dist/esm/locales/zhCN/PermissionSelect.js +3 -0
- package/dist/esm/locales/zhCN/TimeTypeSelect.d.ts +6 -0
- package/dist/esm/locales/zhCN/TimeTypeSelect.js +5 -0
- package/dist/esm/locales/zhCN/common.d.ts +74 -0
- package/dist/esm/locales/zhCN/common.js +76 -0
- package/dist/esm/locales/zhCN/index.d.ts +163 -0
- package/dist/esm/locales/zhCN/index.js +18 -0
- package/dist/esm/locales/zhCN/pages.d.ts +10 -0
- package/dist/esm/locales/zhCN/pages.js +9 -0
- package/dist/esm/locales/zhTW/ActionLogDrawer.d.ts +6 -0
- package/dist/esm/locales/zhTW/ActionLogDrawer.js +5 -0
- package/dist/esm/locales/zhTW/DynamicIconModal.d.ts +4 -0
- package/dist/esm/locales/zhTW/DynamicIconModal.js +3 -0
- package/dist/esm/locales/zhTW/EditMultiLangForm.d.ts +16 -0
- package/dist/esm/locales/zhTW/EditMultiLangForm.js +15 -0
- package/dist/esm/locales/zhTW/File.d.ts +53 -0
- package/dist/esm/locales/zhTW/File.js +53 -0
- package/dist/esm/locales/zhTW/GlobalFooter.d.ts +4 -0
- package/dist/esm/locales/zhTW/GlobalFooter.js +3 -0
- package/dist/esm/locales/zhTW/GlobalHeader.d.ts +10 -0
- package/dist/esm/locales/zhTW/GlobalHeader.js +9 -0
- package/dist/esm/locales/zhTW/MyFooterToolbar.d.ts +5 -0
- package/dist/esm/locales/zhTW/MyFooterToolbar.js +4 -0
- package/dist/esm/locales/zhTW/PermissionSelect.d.ts +4 -0
- package/dist/esm/locales/zhTW/PermissionSelect.js +3 -0
- package/dist/esm/locales/zhTW/TimeTypeSelect.d.ts +6 -0
- package/dist/esm/locales/zhTW/TimeTypeSelect.js +5 -0
- package/dist/esm/locales/zhTW/common.d.ts +74 -0
- package/dist/esm/locales/zhTW/common.js +76 -0
- package/dist/esm/locales/zhTW/index.d.ts +162 -0
- package/dist/esm/locales/zhTW/index.js +18 -0
- package/dist/esm/locales/zhTW/pages.d.ts +10 -0
- package/dist/esm/locales/zhTW/pages.js +9 -0
- package/dist/esm/services/index.tpl +160 -0
- package/dist/esm/types/ActionLogDrawerTypes.d.ts +1 -0
- package/dist/esm/types/ActionLogDrawerTypes.js +1 -0
- package/dist/esm/types/AvatarDropdownTypes.d.ts +1 -0
- package/dist/esm/types/AvatarDropdownTypes.js +1 -0
- package/dist/esm/types/CrudTableTypes.d.ts +1 -0
- package/dist/esm/types/CrudTableTypes.js +1 -0
- package/dist/esm/types/DatePickerTypes.d.ts +1 -0
- package/dist/esm/types/DatePickerTypes.js +1 -0
- package/dist/esm/types/DicDropDownListTypes.d.ts +1 -0
- package/dist/esm/types/DicDropDownListTypes.js +1 -0
- package/dist/esm/types/DndTabsTypes.d.ts +1 -0
- package/dist/esm/types/DndTabsTypes.js +1 -0
- package/dist/esm/types/DndTagTypes.d.ts +1 -0
- package/dist/esm/types/DndTagTypes.js +1 -0
- package/dist/esm/types/DropdownButtonTypes.d.ts +2 -0
- package/dist/esm/types/DropdownButtonTypes.js +2 -0
- package/dist/esm/types/DynamicIconTypes.d.ts +1 -0
- package/dist/esm/types/DynamicIconTypes.js +1 -0
- package/dist/esm/types/EditMultiLangFormTypes.d.ts +1 -0
- package/dist/esm/types/EditMultiLangFormTypes.js +1 -0
- package/dist/esm/types/ExportPageWrapperTypes.d.ts +1 -0
- package/dist/esm/types/ExportPageWrapperTypes.js +1 -0
- package/dist/esm/types/GlobalHeaderTypes.d.ts +1 -0
- package/dist/esm/types/GlobalHeaderTypes.js +1 -0
- package/dist/esm/types/HeaderSearchTypes.d.ts +1 -0
- package/dist/esm/types/HeaderSearchTypes.js +1 -0
- package/dist/esm/types/HighlightStrTypes.d.ts +1 -0
- package/dist/esm/types/HighlightStrTypes.js +1 -0
- package/dist/esm/types/ImportDataUploadTypes.d.ts +1 -0
- package/dist/esm/types/ImportDataUploadTypes.js +1 -0
- package/dist/esm/types/ImportExeclTypes.d.ts +1 -0
- package/dist/esm/types/ImportExeclTypes.js +1 -0
- package/dist/esm/types/KeepAliveTabsTypes.d.ts +1 -0
- package/dist/esm/types/KeepAliveTabsTypes.js +1 -0
- package/dist/esm/types/MenuFooterTypes.d.ts +1 -0
- package/dist/esm/types/MenuFooterTypes.js +1 -0
- package/dist/esm/types/MyFooterToolbarTypes.d.ts +1 -0
- package/dist/esm/types/MyFooterToolbarTypes.js +1 -0
- package/dist/esm/types/MyPageContainerTypes.d.ts +1 -0
- package/dist/esm/types/MyPageContainerTypes.js +1 -0
- package/dist/esm/types/MySelectLangTypes.d.ts +1 -0
- package/dist/esm/types/MySelectLangTypes.js +1 -0
- package/dist/esm/types/MySelectTypes.d.ts +1 -0
- package/dist/esm/types/MySelectTypes.js +1 -0
- package/dist/esm/types/MySetpsTypes.d.ts +1 -0
- package/dist/esm/types/MySetpsTypes.js +1 -0
- package/dist/esm/types/MyTagListTypes.d.ts +1 -0
- package/dist/esm/types/MyTagListTypes.js +1 -0
- package/dist/esm/types/MyUploadTypes.d.ts +1 -0
- package/dist/esm/types/MyUploadTypes.js +1 -0
- package/dist/esm/types/PermissionSelectTypes.d.ts +1 -0
- package/dist/esm/types/PermissionSelectTypes.js +1 -0
- package/dist/esm/types/QrCodeModalTypes.d.ts +1 -0
- package/dist/esm/types/QrCodeModalTypes.js +1 -0
- package/dist/esm/types/RandomAvatarTypes.d.ts +1 -0
- package/dist/esm/types/RandomAvatarTypes.js +1 -0
- package/dist/esm/types/RefDrawerFormTypes.d.ts +1 -0
- package/dist/esm/types/RefDrawerFormTypes.js +1 -0
- package/dist/esm/types/ReportTableTypes.d.ts +1 -0
- package/dist/esm/types/ReportTableTypes.js +1 -0
- package/dist/esm/types/ThemeSwitchTypes.d.ts +1 -0
- package/dist/esm/types/ThemeSwitchTypes.js +1 -0
- package/dist/esm/types/ViewTableItemDrawerTypes.d.ts +1 -0
- package/dist/esm/types/ViewTableItemDrawerTypes.js +1 -0
- package/dist/esm/types/VolumeFormItemTypes.d.ts +1 -0
- package/dist/esm/types/VolumeFormItemTypes.js +1 -0
- package/dist/esm/types/WangEditorTypes.d.ts +1 -0
- package/dist/esm/types/WangEditorTypes.js +1 -0
- package/dist/esm/types/index.d.ts +35 -0
- package/dist/esm/types/index.js +35 -0
- package/dist/esm/types/servicesTypes.d.ts +1 -0
- package/dist/esm/types/servicesTypes.js +1 -0
- package/dist/esm/utils/Authorized.tpl +17 -0
- package/dist/esm/utils/authority.tpl +51 -0
- package/dist/esm/utils/authorityFunction.tpl +17 -0
- package/dist/esm/utils/excelHelper.tpl +825 -0
- package/dist/esm/utils/exportPage.tpl +784 -0
- package/dist/esm/utils/fileHelper.tpl +251 -0
- package/dist/esm/utils/importHelper.tpl +283 -0
- package/dist/esm/utils/utils.tpl +26 -0
- package/dist/esm/utils/xmlRequest.tpl +92 -0
- package/dist/esm/writeTmpFile/index.d.ts +5 -0
- package/dist/esm/writeTmpFile/index.js +5 -0
- package/dist/esm/writeTmpFile/runtime.d.ts +5 -0
- package/dist/esm/writeTmpFile/runtime.js +8 -0
- package/dist/esm/writeTmpFile/writeConstants.d.ts +6 -0
- package/dist/esm/writeTmpFile/writeConstants.js +7 -0
- package/dist/esm/writeTmpFile/writeIndex.d.ts +5 -0
- package/dist/esm/writeTmpFile/writeIndex.js +4 -0
- package/dist/esm/writeTmpFile/writeTypes.d.ts +5 -0
- package/dist/esm/writeTmpFile/writeTypes.js +7 -0
- package/package.json +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DynamicIconTypes = "\n /** \u52A8\u6001\u56FE\u6807\u540D\u79F0\u7C7B\u578B */\n export type DynamicIconNameType = keyof typeof import('@ant-design/icons');\n\n /** \u52A8\u6001\u56FE\u6807\u5217\u8868\u7C7B\u578B */\n export type DynamicIconItemType = {\n label: string | JSX.Element;\n value: DynamicIconNameType;\n icon: JSX.Element;\n };\n\n /** \u52A8\u6001\u56FE\u6807\u7EC4\u4EF6\u7C7B\u578B */\n export interface DynamicIconProps extends IconComponentProps {\n /**\n * \u56FE\u6807\u540D\u79F0\n */\n iconName: DynamicIconNameType;\n }\n\n /** \u52A8\u6001\u56FE\u6807\u5F39\u7A97\u7C7B\u578B */\n export interface DynamicIconModalProps extends Omit<ModalProps, 'onOk'> {\n /** \u5355\u9009/\u591A\u9009 */\n type?: 'multiple' | 'single';\n /** \u521D\u59CB\u503C[\u6570\u7EC4] */\n initValue?: DynamicIconItemType['value'][] | DynamicIconItemType['value'];\n /** \u672C\u5730\u5217\u8868 */\n localIconList?: DynamicIconItemType[];\n /** \u70B9\u51FB\u786E\u8BA4 */\n onOk: (icon: DynamicIconItemType[], iconList: DynamicIconItemType[]) => void;\n /** \u83B7\u53D6\u5217\u8868\u5B8C\u6210 */\n onDataLoad?: (iconList: DynamicIconItemType[]) => void;\n /** \u9AD8\u4EAE\u6837\u5F0F */\n highlightStrProps?: HighlightStrProps;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var DynamicIconTypes = "\n /** \u52A8\u6001\u56FE\u6807\u540D\u79F0\u7C7B\u578B */\n export type DynamicIconNameType = keyof typeof import('@ant-design/icons');\n\n /** \u52A8\u6001\u56FE\u6807\u5217\u8868\u7C7B\u578B */\n export type DynamicIconItemType = {\n label: string | JSX.Element;\n value: DynamicIconNameType;\n icon: JSX.Element;\n };\n\n /** \u52A8\u6001\u56FE\u6807\u7EC4\u4EF6\u7C7B\u578B */\n export interface DynamicIconProps extends IconComponentProps {\n /**\n * \u56FE\u6807\u540D\u79F0\n */\n iconName: DynamicIconNameType;\n }\n\n /** \u52A8\u6001\u56FE\u6807\u5F39\u7A97\u7C7B\u578B */\n export interface DynamicIconModalProps extends Omit<ModalProps, 'onOk'> {\n /** \u5355\u9009/\u591A\u9009 */\n type?: 'multiple' | 'single';\n /** \u521D\u59CB\u503C[\u6570\u7EC4] */\n initValue?: DynamicIconItemType['value'][] | DynamicIconItemType['value'];\n /** \u672C\u5730\u5217\u8868 */\n localIconList?: DynamicIconItemType[];\n /** \u70B9\u51FB\u786E\u8BA4 */\n onOk: (icon: DynamicIconItemType[], iconList: DynamicIconItemType[]) => void;\n /** \u83B7\u53D6\u5217\u8868\u5B8C\u6210 */\n onDataLoad?: (iconList: DynamicIconItemType[]) => void;\n /** \u9AD8\u4EAE\u6837\u5F0F */\n highlightStrProps?: HighlightStrProps;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EditMultiLangFormTypes = "\n /** \u5BFC\u51FA\u591A\u8BED\u8A00\u6570\u636E\u5217\u8868\u9879 */\n export interface ExprotMultiLangListItem {\n /** \u8BB0\u5F55ID */\n recordId: string;\n /** \u539F\u59CB\u503C */\n recordValue: string;\n zh_CN?: string;\n zh_TW?: string;\n en_US?: string;\n th_TH?: string;\n }\n\n /** \u5BFC\u51FA\u591A\u8BED\u8A00\u6570\u636E\u5217\u8868\u9879 */\n export interface ExprotI18nListItem {\n /** \u8BB0\u5F55ID */\n dataId: string;\n /** \u539F\u59CB\u503C */\n columnValue: string;\n zh_CN?: string;\n zh_TW?: string;\n en_US?: string;\n th_TH?: string;\n }\n\n /** \u591A\u8BED\u8A00\u67E5\u8BE2\u53C2\u6570 */\n export interface LangInfoItem {\n /**\n * \u8868\u540D\u79F0\n */\n tableName: string;\n /**\n * \u5217\u540D\u79F0\n */\n columnName: string;\n /**\n * \u8BB0\u5F55ID\n */\n recordId: string;\n /**\n * \u8BED\u8A00\u4FE1\u606FID\n */\n langInfoId?: number;\n /**\n * \u8BED\u8A00\n */\n lang?: string;\n /**\n * \u503C\n */\n value?: string;\n }\n\n /** \u591A\u8BED\u8A00\u4FE1\u606F\u7EC4\u4EF6\u7C7B\u578B */\n export interface EditMultiLangFormProps {\n /**\n * \u7248\u672C\u53F7\uFF0Cv1: \u65E7\u7248\uFF0Cv2: \u65B0\u7248\n */\n version?: string;\n /**\n * \u662F\u5426\u663E\u793A\u5F39\u7A97\n */\n modalFormVisible: boolean;\n /**\n * \u8BBE\u7F6E\u5F39\u7A97\u662F\u5426\u663E\u793A\n */\n setModalFormVisible: (visible: boolean) => void;\n /**\n * \u63D0\u4EA4\u540E\u56DE\u8C03\n */\n onAfterSubmit?: () => void;\n /**\n * \u591A\u8BED\u8A00\u4FE1\u606F\n */\n values?: LangInfoItem;\n /**\n * \u67E5\u8BE2\u5217\u8868\u63A5\u53E3\n */\n queryLangInfoList?: (params?: LangInfoItem) => Promise<any>;\n /**\n * \u4FDD\u5B58\u63A5\u53E3\n */\n batchSave?: (data?: LangInfoItem[]) => Promise<any>;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var EditMultiLangFormTypes = "\n /** \u5BFC\u51FA\u591A\u8BED\u8A00\u6570\u636E\u5217\u8868\u9879 */\n export interface ExprotMultiLangListItem {\n /** \u8BB0\u5F55ID */\n recordId: string;\n /** \u539F\u59CB\u503C */\n recordValue: string;\n zh_CN?: string;\n zh_TW?: string;\n en_US?: string;\n th_TH?: string;\n }\n\n /** \u5BFC\u51FA\u591A\u8BED\u8A00\u6570\u636E\u5217\u8868\u9879 */\n export interface ExprotI18nListItem {\n /** \u8BB0\u5F55ID */\n dataId: string;\n /** \u539F\u59CB\u503C */\n columnValue: string;\n zh_CN?: string;\n zh_TW?: string;\n en_US?: string;\n th_TH?: string;\n }\n\n /** \u591A\u8BED\u8A00\u67E5\u8BE2\u53C2\u6570 */\n export interface LangInfoItem {\n /**\n * \u8868\u540D\u79F0\n */\n tableName: string;\n /**\n * \u5217\u540D\u79F0\n */\n columnName: string;\n /**\n * \u8BB0\u5F55ID\n */\n recordId: string;\n /**\n * \u8BED\u8A00\u4FE1\u606FID\n */\n langInfoId?: number;\n /**\n * \u8BED\u8A00\n */\n lang?: string;\n /**\n * \u503C\n */\n value?: string;\n }\n\n /** \u591A\u8BED\u8A00\u4FE1\u606F\u7EC4\u4EF6\u7C7B\u578B */\n export interface EditMultiLangFormProps {\n /**\n * \u7248\u672C\u53F7\uFF0Cv1: \u65E7\u7248\uFF0Cv2: \u65B0\u7248\n */\n version?: string;\n /**\n * \u662F\u5426\u663E\u793A\u5F39\u7A97\n */\n modalFormVisible: boolean;\n /**\n * \u8BBE\u7F6E\u5F39\u7A97\u662F\u5426\u663E\u793A\n */\n setModalFormVisible: (visible: boolean) => void;\n /**\n * \u63D0\u4EA4\u540E\u56DE\u8C03\n */\n onAfterSubmit?: () => void;\n /**\n * \u591A\u8BED\u8A00\u4FE1\u606F\n */\n values?: LangInfoItem;\n /**\n * \u67E5\u8BE2\u5217\u8868\u63A5\u53E3\n */\n queryLangInfoList?: (params?: LangInfoItem) => Promise<any>;\n /**\n * \u4FDD\u5B58\u63A5\u53E3\n */\n batchSave?: (data?: LangInfoItem[]) => Promise<any>;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExportPageWrapperTypes = "\nexport type ExportPageFormValues = {\n filename: string;\n exportType: 'pdf' | 'image';\n imageType: 'image/png' | 'image/jpeg';\n quality: number;\n actionType: 'export' | 'preview';\n};\n\nexport interface ExportPageOptions {\n /** \u6587\u4EF6\u540D */\n filename?: string;\n /** \u56FE\u7247\u8D28\u91CF (0-1) */\n quality?: number;\n /** \u56FE\u7247\u7C7B\u578B\uFF0C\u5BFC\u51FA\u4E3A\u56FE\u7247\u65F6\u6709\u6548 */\n imageType?: 'image/png' | 'image/jpeg';\n /** \u65B9\u5411 */\n orientation?: 'portrait' | 'landscape';\n /** PDF\u683C\u5F0F */\n format?: 'a4' | 'a3' | 'letter';\n /** \u662F\u5426\u5305\u542B\u9875\u7709\u9875\u811A */\n includeBackground?: boolean;\n /** \u81EA\u5B9A\u4E49\u5C3A\u5BF8 */\n customSize?: { width: number; height: number };\n /** \u8FB9\u8DDD */\n margin?: { top: number; right: number; bottom: number; left: number };\n /** \u907F\u514D\u5206\u5272\u7684\u5757\u9009\u62E9\u5668\uFF0C\u5982\u679C\u67D0\u4E2A\u5757\u65E0\u6CD5\u5B8C\u5168\u663E\u793A\u5728\u5F53\u524D\u9875\uFF0C\u5219\u5C06\u5176\u79FB\u5230\u4E0B\u4E00\u9875 */\n avoidBreakSelector?: string;\n /** \u6700\u5C0F\u5757\u9AD8\u5EA6\uFF0C\u4F4E\u4E8E\u6B64\u9AD8\u5EA6\u7684\u5757\u5141\u8BB8\u5206\u5272 */\n minBlockHeight?: number;\n /** \u662F\u5426\u663E\u793A\u9875\u7801 */\n showPageNumbers?: boolean;\n /** \u9875\u7801\u5B57\u4F53\u5927\u5C0F */\n pageNumberFontSize?: number;\n /** \u9875\u7801\u989C\u8272 */\n pageNumberColor?: string;\n /** \u6C34\u5370\u914D\u7F6E */\n watermark?: {\n /** \u6C34\u5370\u6587\u672C */\n text: string;\n /** \u6C34\u5370\u5B57\u4F53 */\n font?: string;\n /** \u6C34\u5370\u989C\u8272 */\n color?: string;\n /** \u6C34\u5370\u900F\u660E\u5EA6 (0-1) */\n opacity?: number;\n /** \u6C34\u5370\u95F4\u8DDD */\n spacing?: number;\n /** \u6C34\u5370\u65CB\u8F6C\u89D2\u5EA6 */\n rotation?: number;\n };\n}\n\nexport interface ExportPageProps {\n /** \u5BFC\u51FA\u6587\u4EF6\u540D */\n filename?: string;\n /** \u662F\u5426\u663E\u793A\u5BFC\u51FA\u6309\u94AE */\n showExportButton?: boolean;\n /** \n * \u662F\u5426\u663E\u793A\u5BFC\u51FAPDF\u6309\u94AE \n * @deprecated \u8BF7\u4F7F\u7528 showExportButton \u4EE3\u66FF\n * */\n showExportPDF?: boolean;\n /** \u6C34\u5370\u6587\u672C */\n pageWaterMarkText?: string;\n /** \u5B50\u7EC4\u4EF6 */\n children?: React.ReactNode;\n /** \u6D6E\u52A8\u6309\u94AE\u5C5E\u6027 */\n floatButtonProps?: FloatButtonProps;\n /** \u5BFC\u51FA\u914D\u7F6E\u9879 */\n exportPageOptions?: ExportPageOptions;\n}\n\ntype ExportFn = (element: HTMLElement, options?: ExportPageOptions) => Promise<void>;\n\nexport interface UseExportPageReturn {\n /** \u5BFC\u51FAPDF */\n onExportPDF: ExportFn;\n /** \u9884\u89C8PDF */\n onPreviewPDF: ExportFn;\n /** \u5BFC\u51FA\u56FE\u7247 */\n onExportImage: ExportFn;\n /** \u9884\u89C8\u56FE\u7247 */\n onPreviewImage: ExportFn;\n /** \u5BFC\u51FA\u72B6\u6001 */\n loading: boolean;\n /** \u9519\u8BEF\u4FE1\u606F */\n error: string | null;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ExportPageWrapperTypes = "\nexport type ExportPageFormValues = {\n filename: string;\n exportType: 'pdf' | 'image';\n imageType: 'image/png' | 'image/jpeg';\n quality: number;\n actionType: 'export' | 'preview';\n};\n\nexport interface ExportPageOptions {\n /** \u6587\u4EF6\u540D */\n filename?: string;\n /** \u56FE\u7247\u8D28\u91CF (0-1) */\n quality?: number;\n /** \u56FE\u7247\u7C7B\u578B\uFF0C\u5BFC\u51FA\u4E3A\u56FE\u7247\u65F6\u6709\u6548 */\n imageType?: 'image/png' | 'image/jpeg';\n /** \u65B9\u5411 */\n orientation?: 'portrait' | 'landscape';\n /** PDF\u683C\u5F0F */\n format?: 'a4' | 'a3' | 'letter';\n /** \u662F\u5426\u5305\u542B\u9875\u7709\u9875\u811A */\n includeBackground?: boolean;\n /** \u81EA\u5B9A\u4E49\u5C3A\u5BF8 */\n customSize?: { width: number; height: number };\n /** \u8FB9\u8DDD */\n margin?: { top: number; right: number; bottom: number; left: number };\n /** \u907F\u514D\u5206\u5272\u7684\u5757\u9009\u62E9\u5668\uFF0C\u5982\u679C\u67D0\u4E2A\u5757\u65E0\u6CD5\u5B8C\u5168\u663E\u793A\u5728\u5F53\u524D\u9875\uFF0C\u5219\u5C06\u5176\u79FB\u5230\u4E0B\u4E00\u9875 */\n avoidBreakSelector?: string;\n /** \u6700\u5C0F\u5757\u9AD8\u5EA6\uFF0C\u4F4E\u4E8E\u6B64\u9AD8\u5EA6\u7684\u5757\u5141\u8BB8\u5206\u5272 */\n minBlockHeight?: number;\n /** \u662F\u5426\u663E\u793A\u9875\u7801 */\n showPageNumbers?: boolean;\n /** \u9875\u7801\u5B57\u4F53\u5927\u5C0F */\n pageNumberFontSize?: number;\n /** \u9875\u7801\u989C\u8272 */\n pageNumberColor?: string;\n /** \u6C34\u5370\u914D\u7F6E */\n watermark?: {\n /** \u6C34\u5370\u6587\u672C */\n text: string;\n /** \u6C34\u5370\u5B57\u4F53 */\n font?: string;\n /** \u6C34\u5370\u989C\u8272 */\n color?: string;\n /** \u6C34\u5370\u900F\u660E\u5EA6 (0-1) */\n opacity?: number;\n /** \u6C34\u5370\u95F4\u8DDD */\n spacing?: number;\n /** \u6C34\u5370\u65CB\u8F6C\u89D2\u5EA6 */\n rotation?: number;\n };\n}\n\nexport interface ExportPageProps {\n /** \u5BFC\u51FA\u6587\u4EF6\u540D */\n filename?: string;\n /** \u662F\u5426\u663E\u793A\u5BFC\u51FA\u6309\u94AE */\n showExportButton?: boolean;\n /** \n * \u662F\u5426\u663E\u793A\u5BFC\u51FAPDF\u6309\u94AE \n * @deprecated \u8BF7\u4F7F\u7528 showExportButton \u4EE3\u66FF\n * */\n showExportPDF?: boolean;\n /** \u6C34\u5370\u6587\u672C */\n pageWaterMarkText?: string;\n /** \u5B50\u7EC4\u4EF6 */\n children?: React.ReactNode;\n /** \u6D6E\u52A8\u6309\u94AE\u5C5E\u6027 */\n floatButtonProps?: FloatButtonProps;\n /** \u5BFC\u51FA\u914D\u7F6E\u9879 */\n exportPageOptions?: ExportPageOptions;\n}\n\ntype ExportFn = (element: HTMLElement, options?: ExportPageOptions) => Promise<void>;\n\nexport interface UseExportPageReturn {\n /** \u5BFC\u51FAPDF */\n onExportPDF: ExportFn;\n /** \u9884\u89C8PDF */\n onPreviewPDF: ExportFn;\n /** \u5BFC\u51FA\u56FE\u7247 */\n onExportImage: ExportFn;\n /** \u9884\u89C8\u56FE\u7247 */\n onPreviewImage: ExportFn;\n /** \u5BFC\u51FA\u72B6\u6001 */\n loading: boolean;\n /** \u9519\u8BEF\u4FE1\u606F */\n error: string | null;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalHeaderTypes = "\n/**\n * \u73AF\u5883\u6807\u7B7E\u989C\u8272\u7C7B\u578B\n */\ntype EnvTagColorType = Record<string, string>;\n\n/**\n * \u53F3\u4FA7\u9879\u76EE\u7C7B\u578B\n */\nexport type RightItemKey =\n | 'AuthDropdown'\n | 'HeaderSearch'\n | 'Website'\n | 'helpDocs'\n | 'Full'\n | 'more'\n | 'AvatarDropdown'\n | 'REACT_APP_ENV'\n | 'MySelectLang'\n | 'ThemeSwitch';\n\n/**\n * \u53F3\u4FA7\u9879\u76EE\u7C7B\u578B\n */\nexport interface GlobalRightItem {\n key: RightItemKey | string;\n group?: string;\n component: React.ReactNode;\n}\n\n/**\n * \u63D2\u5165\u9879\u76EE\u7C7B\u578B\n */\ninterface InsertItem extends Omit<GlobalRightItem, 'key'> {\n key: string;\n index: number;\n}\n\n/**\n * \u5168\u5C40\u5934\u90E8\u7EC4\u4EF6\u7C7B\u578B\n */\nexport interface GlobalHeaderProps {\n /** \u73AF\u5883\u6807\u7B7E\u989C\u8272 */\n ENVTagColor?: EnvTagColorType;\n /** \u66FF\u6362item */\n replaceItems?: GlobalRightItem[];\n /** \u63D2\u5165item */\n insertItems?: InsertItem[];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var GlobalHeaderTypes = "\n/**\n * \u73AF\u5883\u6807\u7B7E\u989C\u8272\u7C7B\u578B\n */\ntype EnvTagColorType = Record<string, string>;\n\n/**\n * \u53F3\u4FA7\u9879\u76EE\u7C7B\u578B\n */\nexport type RightItemKey =\n | 'AuthDropdown'\n | 'HeaderSearch'\n | 'Website'\n | 'helpDocs'\n | 'Full'\n | 'more'\n | 'AvatarDropdown'\n | 'REACT_APP_ENV'\n | 'MySelectLang'\n | 'ThemeSwitch';\n\n/**\n * \u53F3\u4FA7\u9879\u76EE\u7C7B\u578B\n */\nexport interface GlobalRightItem {\n key: RightItemKey | string;\n group?: string;\n component: React.ReactNode;\n}\n\n/**\n * \u63D2\u5165\u9879\u76EE\u7C7B\u578B\n */\ninterface InsertItem extends Omit<GlobalRightItem, 'key'> {\n key: string;\n index: number;\n}\n\n/**\n * \u5168\u5C40\u5934\u90E8\u7EC4\u4EF6\u7C7B\u578B\n */\nexport interface GlobalHeaderProps {\n /** \u73AF\u5883\u6807\u7B7E\u989C\u8272 */\n ENVTagColor?: EnvTagColorType;\n /** \u66FF\u6362item */\n replaceItems?: GlobalRightItem[];\n /** \u63D2\u5165item */\n insertItems?: InsertItem[];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HeaderSearchTypes = "\nexport interface HeaderSearchProps {\n onSearch?: (value?: string) => void;\n onChange?: (value?: string) => void;\n onVisibleChange?: (b: boolean) => void;\n className?: string;\n placeholder?: string;\n options: AutoCompleteProps['options'];\n defaultOpen?: boolean;\n open?: boolean;\n defaultValue?: string;\n value?: string;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var HeaderSearchTypes = "\nexport interface HeaderSearchProps {\n onSearch?: (value?: string) => void;\n onChange?: (value?: string) => void;\n onVisibleChange?: (b: boolean) => void;\n className?: string;\n placeholder?: string;\n options: AutoCompleteProps['options'];\n defaultOpen?: boolean;\n open?: boolean;\n defaultValue?: string;\n value?: string;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HighlightStrTypes = "\n /** \u5B57\u7B26\u4E32\u9AD8\u4EAE\u51FD\u6570\u7C7B\u578B */\n export type StringToHighlightingFnType = (\n /**\n * \u539F\u59CB\u503C\n */\n value: string,\n /**\n * \u9AD8\u4EAE\u7684\u503C\n */\n highlightValue: string,\n ) => {\n hasHighlight: boolean;\n beforeStr: string;\n highlightStr: string;\n afterStr: string;\n };\n\n /** \u5B57\u7B26\u4E32\u9AD8\u4EAE\u7EC4\u4EF6\u7C7B\u578B */\n export interface HighlightStrProps {\n /**\n * \u539F\u59CB\u503C\n */\n value: string,\n /**\n * \u9AD8\u4EAE\u7684\u503C\n */\n highlightValue: string,\n /**\n * \u9AD8\u4EAE\u6837\u5F0F\n */\n highlightStyle?: React.CSSProperties,\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var HighlightStrTypes = "\n /** \u5B57\u7B26\u4E32\u9AD8\u4EAE\u51FD\u6570\u7C7B\u578B */\n export type StringToHighlightingFnType = (\n /**\n * \u539F\u59CB\u503C\n */\n value: string,\n /**\n * \u9AD8\u4EAE\u7684\u503C\n */\n highlightValue: string,\n ) => {\n hasHighlight: boolean;\n beforeStr: string;\n highlightStr: string;\n afterStr: string;\n };\n\n /** \u5B57\u7B26\u4E32\u9AD8\u4EAE\u7EC4\u4EF6\u7C7B\u578B */\n export interface HighlightStrProps {\n /**\n * \u539F\u59CB\u503C\n */\n value: string,\n /**\n * \u9AD8\u4EAE\u7684\u503C\n */\n highlightValue: string,\n /**\n * \u9AD8\u4EAE\u6837\u5F0F\n */\n highlightStyle?: React.CSSProperties,\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ImportDataUploadTypes = "\n export interface ImportDataUploadProps {\n /** \u4E0A\u4F20\u6307\u5B9A\u683C\u5F0F\u6587\u4EF6 */\n accept?: string;\n /**\n * \u663E\u793A\u9ED8\u8BA4\u7684\u63D0\u793A\n */\n showDefautlMessage?: boolean;\n /**\n * \u6309\u94AE\u6587\u672C\n */\n title?: string;\n /**\n * \u81EA\u5B9A\u4E49\u6309\u94AE\u5185\u5BB9\n */\n children?: React.ReactNode;\n /**\n * Upload\u7EC4\u4EF6\u5C5E\u6027\n */\n uploadProps?: UploadProps;\n /**\n * Button\u7EC4\u4EF6\u5C5E\u6027\n */\n buttonProps?: ButtonProps;\n onImport?: (data: any) => void;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ImportDataUploadTypes = "\n export interface ImportDataUploadProps {\n /** \u4E0A\u4F20\u6307\u5B9A\u683C\u5F0F\u6587\u4EF6 */\n accept?: string;\n /**\n * \u663E\u793A\u9ED8\u8BA4\u7684\u63D0\u793A\n */\n showDefautlMessage?: boolean;\n /**\n * \u6309\u94AE\u6587\u672C\n */\n title?: string;\n /**\n * \u81EA\u5B9A\u4E49\u6309\u94AE\u5185\u5BB9\n */\n children?: React.ReactNode;\n /**\n * Upload\u7EC4\u4EF6\u5C5E\u6027\n */\n uploadProps?: UploadProps;\n /**\n * Button\u7EC4\u4EF6\u5C5E\u6027\n */\n buttonProps?: ButtonProps;\n onImport?: (data: any) => void;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ImportExeclTypes = "\nexport interface ImportExeclProps<T = any[]> {\n accept?: string;\n /**\n * \u4E0A\u4F20\u4E8B\u4EF6\uFF0C\u83B7\u53D6execl\u6570\u636E\u5217\u8868\uFF0C\u51FD\u6570\u8FD4\u56DEpromise\u5E76\u4E14showDefautlMessage\u4E0D\u662Ffalse\u65F6\u6709\u9ED8\u8BA4message\u63D0\u793A\n */\n onChange: (list: T, fileInfo: Pick<UploadFile, 'name' | 'size' | 'type' | 'uid'>) => Promise<{ success: boolean; failMsg?: string; data?: any } | void> | void;\n /**\n * \u663E\u793A\u9ED8\u8BA4\u7684\u63D0\u793A\n */\n showDefautlMessage?: boolean;\n /**\n * \u6309\u94AE\u6587\u672C\n */\n title?: string;\n /**\n * \u8BFB\u53D6\u5DE5\u4F5C\u7C3F\u6570\u91CF\uFF0C\u9ED8\u8BA41\n */\n max?: number;\n /**\n * \u4EE5\u7B2C\u51E0\u884C\u4E3A\u8868\u5934\uFF0C\u9ED8\u8BA4\u7B2C\u4E00\u884C\n */\n header?: number;\n /**\n * \u4EE5\u7B2C\u51E0\u5217\u7B2C\u51E0\u884C\u5F00\u59CB\u8BFB\u53D6\uFF0C\u9ED8\u8BA4\u7B2C\u4E00\u884C\u7B2C\u4E00\u5217\n */\n rangeStart?: { c: number; r: number };\n /**\n * \u4FDD\u7559\u7A7A\u884C\uFF0C\u9ED8\u8BA4false\n */\n blankrows?: boolean;\n /**\n * \u81EA\u5B9A\u4E49\u6309\u94AE\u5185\u5BB9\n */\n children?: React.ReactNode;\n /**\n * Upload\u7EC4\u4EF6\u5C5E\u6027\n */\n uploadProps?: UploadProps;\n /**\n * Button\u7EC4\u4EF6\u5C5E\u6027\n */\n buttonProps?: ButtonProps;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ImportExeclTypes = "\nexport interface ImportExeclProps<T = any[]> {\n accept?: string;\n /**\n * \u4E0A\u4F20\u4E8B\u4EF6\uFF0C\u83B7\u53D6execl\u6570\u636E\u5217\u8868\uFF0C\u51FD\u6570\u8FD4\u56DEpromise\u5E76\u4E14showDefautlMessage\u4E0D\u662Ffalse\u65F6\u6709\u9ED8\u8BA4message\u63D0\u793A\n */\n onChange: (list: T, fileInfo: Pick<UploadFile, 'name' | 'size' | 'type' | 'uid'>) => Promise<{ success: boolean; failMsg?: string; data?: any } | void> | void;\n /**\n * \u663E\u793A\u9ED8\u8BA4\u7684\u63D0\u793A\n */\n showDefautlMessage?: boolean;\n /**\n * \u6309\u94AE\u6587\u672C\n */\n title?: string;\n /**\n * \u8BFB\u53D6\u5DE5\u4F5C\u7C3F\u6570\u91CF\uFF0C\u9ED8\u8BA41\n */\n max?: number;\n /**\n * \u4EE5\u7B2C\u51E0\u884C\u4E3A\u8868\u5934\uFF0C\u9ED8\u8BA4\u7B2C\u4E00\u884C\n */\n header?: number;\n /**\n * \u4EE5\u7B2C\u51E0\u5217\u7B2C\u51E0\u884C\u5F00\u59CB\u8BFB\u53D6\uFF0C\u9ED8\u8BA4\u7B2C\u4E00\u884C\u7B2C\u4E00\u5217\n */\n rangeStart?: { c: number; r: number };\n /**\n * \u4FDD\u7559\u7A7A\u884C\uFF0C\u9ED8\u8BA4false\n */\n blankrows?: boolean;\n /**\n * \u81EA\u5B9A\u4E49\u6309\u94AE\u5185\u5BB9\n */\n children?: React.ReactNode;\n /**\n * Upload\u7EC4\u4EF6\u5C5E\u6027\n */\n uploadProps?: UploadProps;\n /**\n * Button\u7EC4\u4EF6\u5C5E\u6027\n */\n buttonProps?: ButtonProps;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const KeepAliveTabsTypes = "\nexport interface KeepAliveTabsParams {\n /**\n * \u662F\u5426\u663E\u793A\u9ED8\u8BA4\u7684\u6807\u7B7E\uFF0Ctrue\u65F6\u5FC5\u987B\u4F20\u5165homeRoutePath\n */\n showDefaultTab?: boolean;\n /**\n * \u9ED8\u8BA4\u663E\u793A\u7684\u9875\u7B7E\n */\n defaultRoutePath?: string;\n /**\n * qiankun\u7684app\u914D\u7F6E\u9879\n */\n qiankunApps: Record<string, any>[];\n}\n\nexport interface KeepAliveTabContextType {\n refreshTab: (path?: string) => void;\n closeTab: (path?: string) => void;\n closeOtherTab: (path?: string) => void;\n onShow: (cb: () => void) => void;\n onHidden: (cb: () => void) => void;\n}\n\nexport interface KeepAliveTab {\n title: string;\n routePath: string;\n key: string; // \u8FD9\u4E2Akey\uFF0C\u540E\u9762\u5237\u65B0\u6709\u7528\u5230\u5B83\n pathname: string;\n icon?: any;\n children: any;\n search?: string | undefined;\n lastRoute: any;\n}\n\nexport interface KeepAliveTabsParams {\n /**\n * \u662F\u5426\u663E\u793A\u9ED8\u8BA4\u7684\u6807\u7B7E\uFF0Ctrue\u65F6\u5FC5\u987B\u4F20\u5165homeRoutePath\n */\n showDefaultTab?: boolean;\n /**\n * \u9ED8\u8BA4\u663E\u793A\u7684\u9875\u7B7E\n */\n defaultRoutePath?: string;\n /**\n * qiankun\u7684app\u914D\u7F6E\u9879\n */\n qiankunApps: Record<string, any>[];\n}\n\nexport interface KeepAliveDndTabsParams {\n /**\n * \u662F\u5426\u663E\u793A\u9ED8\u8BA4\u7684\u6807\u7B7E\uFF0Ctrue\u65F6\u5FC5\u987B\u4F20\u5165homeRoutePath\n */\n showDefaultTab?: boolean;\n /**\n * \u9ED8\u8BA4\u663E\u793A\u7684\u9875\u7B7E\n */\n defaultRoutePath?: string;\n /**\n * qiankun\u7684app\u914D\u7F6E\u9879\n */\n qiankunApps: Record<string, any>[];\n /**\n * \u7981\u7528\u62D6\u62FD\u7684\u9875\u7B7E\n */\n disabledKeys?: string[];\n}\n\nexport enum KeepAliveTabsOperationType {\n REFRESH = 'refresh',\n CLOSE = 'close',\n CLOSEOTHER = 'close-other',\n}\n\nexport type KeepAliveTabsMenuItemType = (ItemType & { key: KeepAliveTabsOperationType }) | null;\n\nexport interface MatchRouteType {\n title: string;\n pathname: string; // /user/1\n children: any;\n routePath: string; // /user/:id\n lastRoute: any; //\u7528\u4E8E\u5207\u6362\u591A\u8BED\u8A00\u65F6\u91CD\u65B0\u83B7\u53D6title\n icon?: any;\n}\n\nexport interface KeepAliveTabsMenuInfo {\n key: string;\n keyPath: string[];\n item: React.ReactInstance;\n domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var KeepAliveTabsTypes = "\nexport interface KeepAliveTabsParams {\n /**\n * \u662F\u5426\u663E\u793A\u9ED8\u8BA4\u7684\u6807\u7B7E\uFF0Ctrue\u65F6\u5FC5\u987B\u4F20\u5165homeRoutePath\n */\n showDefaultTab?: boolean;\n /**\n * \u9ED8\u8BA4\u663E\u793A\u7684\u9875\u7B7E\n */\n defaultRoutePath?: string;\n /**\n * qiankun\u7684app\u914D\u7F6E\u9879\n */\n qiankunApps: Record<string, any>[];\n}\n\nexport interface KeepAliveTabContextType {\n refreshTab: (path?: string) => void;\n closeTab: (path?: string) => void;\n closeOtherTab: (path?: string) => void;\n onShow: (cb: () => void) => void;\n onHidden: (cb: () => void) => void;\n}\n\nexport interface KeepAliveTab {\n title: string;\n routePath: string;\n key: string; // \u8FD9\u4E2Akey\uFF0C\u540E\u9762\u5237\u65B0\u6709\u7528\u5230\u5B83\n pathname: string;\n icon?: any;\n children: any;\n search?: string | undefined;\n lastRoute: any;\n}\n\nexport interface KeepAliveTabsParams {\n /**\n * \u662F\u5426\u663E\u793A\u9ED8\u8BA4\u7684\u6807\u7B7E\uFF0Ctrue\u65F6\u5FC5\u987B\u4F20\u5165homeRoutePath\n */\n showDefaultTab?: boolean;\n /**\n * \u9ED8\u8BA4\u663E\u793A\u7684\u9875\u7B7E\n */\n defaultRoutePath?: string;\n /**\n * qiankun\u7684app\u914D\u7F6E\u9879\n */\n qiankunApps: Record<string, any>[];\n}\n\nexport interface KeepAliveDndTabsParams {\n /**\n * \u662F\u5426\u663E\u793A\u9ED8\u8BA4\u7684\u6807\u7B7E\uFF0Ctrue\u65F6\u5FC5\u987B\u4F20\u5165homeRoutePath\n */\n showDefaultTab?: boolean;\n /**\n * \u9ED8\u8BA4\u663E\u793A\u7684\u9875\u7B7E\n */\n defaultRoutePath?: string;\n /**\n * qiankun\u7684app\u914D\u7F6E\u9879\n */\n qiankunApps: Record<string, any>[];\n /**\n * \u7981\u7528\u62D6\u62FD\u7684\u9875\u7B7E\n */\n disabledKeys?: string[];\n}\n\nexport enum KeepAliveTabsOperationType {\n REFRESH = 'refresh',\n CLOSE = 'close',\n CLOSEOTHER = 'close-other',\n}\n\nexport type KeepAliveTabsMenuItemType = (ItemType & { key: KeepAliveTabsOperationType }) | null;\n\nexport interface MatchRouteType {\n title: string;\n pathname: string; // /user/1\n children: any;\n routePath: string; // /user/:id\n lastRoute: any; //\u7528\u4E8E\u5207\u6362\u591A\u8BED\u8A00\u65F6\u91CD\u65B0\u83B7\u53D6title\n icon?: any;\n}\n\nexport interface KeepAliveTabsMenuInfo {\n key: string;\n keyPath: string[];\n item: React.ReactInstance;\n domEvent: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MenuFooterTypes = "\n /** \u83DC\u5355\u5E95\u90E8\u7EC4\u4EF6\u7C7B\u578B */\n export interface MenuFooterProps {\n /** \u662F\u5426\u6536\u7F29 */\n isCollapsed: boolean;\n /** \u6536\u7F29\u65B9\u6CD5 */\n handleCollapsed: (isCollapsed?: boolean) => void;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MenuFooterTypes = "\n /** \u83DC\u5355\u5E95\u90E8\u7EC4\u4EF6\u7C7B\u578B */\n export interface MenuFooterProps {\n /** \u662F\u5426\u6536\u7F29 */\n isCollapsed: boolean;\n /** \u6536\u7F29\u65B9\u6CD5 */\n handleCollapsed: (isCollapsed?: boolean) => void;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MyFooterToolbarTypes = "\n /** \u5E95\u90E8\u5DE5\u5177\u680F\u7EC4\u4EF6\u7C7B\u578B */\n export interface MyFooterToolbarProps {\n extra?: React.ReactNode;\n style?: React.CSSProperties;\n className?: string;\n renderContent?: (\n props: MyFooterToolbarProps &\n RouteContextType & {\n leftWidth?: string;\n },\n dom: JSX.Element,\n ) => React.ReactNode;\n prefixCls?: string;\n children?: React.ReactNode;\n portalDom?: boolean;\n /**\n * \u5DF2\u9009\u4E2D\u7684\u6570\u91CF\n */\n count?: number;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MyFooterToolbarTypes = "\n /** \u5E95\u90E8\u5DE5\u5177\u680F\u7EC4\u4EF6\u7C7B\u578B */\n export interface MyFooterToolbarProps {\n extra?: React.ReactNode;\n style?: React.CSSProperties;\n className?: string;\n renderContent?: (\n props: MyFooterToolbarProps &\n RouteContextType & {\n leftWidth?: string;\n },\n dom: JSX.Element,\n ) => React.ReactNode;\n prefixCls?: string;\n children?: React.ReactNode;\n portalDom?: boolean;\n /**\n * \u5DF2\u9009\u4E2D\u7684\u6570\u91CF\n */\n count?: number;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MyPageContainerTypes = "\nexport interface MyPageContainerProps extends PageContainerProps {\n /** \u81EA\u52A8\u6298\u53E0\u83DC\u5355 */\n autoCollapseMenu?: boolean;\n /** \u5BFC\u51FA\u4E3Apdf\u7684\u4E34\u65F6\u6C34\u5370 */\n tempWaterMark?: string;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MyPageContainerTypes = "\nexport interface MyPageContainerProps extends PageContainerProps {\n /** \u81EA\u52A8\u6298\u53E0\u83DC\u5355 */\n autoCollapseMenu?: boolean;\n /** \u5BFC\u51FA\u4E3Apdf\u7684\u4E34\u65F6\u6C34\u5370 */\n tempWaterMark?: string;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MySelectLangTypes = "\n interface LocalData {\n lang: string;\n label?: string;\n icon?: string;\n title?: string;\n }\n\n export interface SelectLangProps {\n globalIconClassName?: string;\n postLocalesData?: (locales: LocalData[]) => LocalData[];\n onItemClick?: (params: any) => void;\n className?: string;\n reload?: boolean;\n icon?: React.ReactNode;\n style?: React.CSSProperties;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MySelectLangTypes = "\n interface LocalData {\n lang: string;\n label?: string;\n icon?: string;\n title?: string;\n }\n\n export interface SelectLangProps {\n globalIconClassName?: string;\n postLocalesData?: (locales: LocalData[]) => LocalData[];\n onItemClick?: (params: any) => void;\n className?: string;\n reload?: boolean;\n icon?: React.ReactNode;\n style?: React.CSSProperties;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MySelectTypes = "\n /** \u7EC4\u4EF6\u6620\u5C04\u5B57\u6BB5 */\n export type KeyNamesType<T> = {\n /** \u4E3B\u952E */\n id: keyof T;\n /** \u7F16\u7801 */\n code?: keyof T;\n /** \u540D\u79F0 */\n name: keyof T;\n };\n\n /** \u7EC4\u4EF6Select\u7684\u53C2\u6570 */\n export interface MySelectProps<T> extends SelectProps {\n /** \u662F\u5426\u53EA\u8BFB */\n readonly?: boolean;\n /** \u5FC5\u987B\u8F93\u5165\u641C\u7D22\u6761\u4EF6 */\n mustSearch?: boolean;\n /** \u662F\u5426\u81EA\u52A8\u9009\u4E2D */\n autoSelect?: boolean;\n /** \u662F\u5426\u663E\u793A\u6240\u6709\u6570\u636E\uFF08\u4E0D\u5206\u9875\uFF09 */\n showAllList?: boolean;\n /** \u83B7\u53D6\u591A\u5C11\u6761\u6570\u636E\uFF0C\u9ED8\u8BA420 */\n pageSize?: number;\n /** \u672C\u5730\u5217\u8868\u6570\u636E */\n localListData?: T[];\n /** \u56DE\u663E\u6570\u636E\u5217\u8868 */\n backShowList?: T[];\n /** \u8BF7\u6C42\u5217\u8868\u6570\u636E */\n request: (searchKey?: { [key: string]: any }) => Promise<API.Result_Base_List<T[]>>;\n /** \u6E32\u67D3\u7684\u503C */\n keyNames: KeyNamesType<T>;\n /** \u641C\u7D22\u7684\u5B57\u6BB5 */\n searchKey?: keyof T;\n /** Select.Option\u7684value\u5B57\u6BB5 */\n selectKey?: keyof T;\n /** \u989D\u5916\u7684\u67E5\u8BE2\u6761\u4EF6 */\n otherSearchValue?: Record<string, any>;\n /** \u53EA\u663E\u793A\u540D\u79F0 */\n onlyShowName?: boolean;\n /** \u81EA\u5B9A\u4E49\u6E32\u67D3 */\n itemRender?: (list: T[]) => React.ReactNode;\n /** \u5185\u5BB9\u7C7B\u578B */\n valueType?: 'key' | 'object';\n /** \u5224\u65AD\u4E0B\u62C9\u6846\u7684\u663E\u793A */\n showDropdown?: boolean;\n /** \u83B7\u53D6\u5DF2\u9009\u62E9\u7684\u6570\u636E\u5217\u8868 */\n getSelectList?: (item: T[]) => void;\n /** \u6570\u636E\u4E0B\u62C9\u5217\u8868\u53D8\u5316\u56DE\u8C03 */\n dropDownListChange?: (list: T[]) => void;\n }\n\n /** \u7EC4\u4EF6Select\u7684\u53C2\u6570 */\n export type MySelectListProps<T> = Partial<MySelectProps<T>>;\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MySelectTypes = "\n /** \u7EC4\u4EF6\u6620\u5C04\u5B57\u6BB5 */\n export type KeyNamesType<T> = {\n /** \u4E3B\u952E */\n id: keyof T;\n /** \u7F16\u7801 */\n code?: keyof T;\n /** \u540D\u79F0 */\n name: keyof T;\n };\n\n /** \u7EC4\u4EF6Select\u7684\u53C2\u6570 */\n export interface MySelectProps<T> extends SelectProps {\n /** \u662F\u5426\u53EA\u8BFB */\n readonly?: boolean;\n /** \u5FC5\u987B\u8F93\u5165\u641C\u7D22\u6761\u4EF6 */\n mustSearch?: boolean;\n /** \u662F\u5426\u81EA\u52A8\u9009\u4E2D */\n autoSelect?: boolean;\n /** \u662F\u5426\u663E\u793A\u6240\u6709\u6570\u636E\uFF08\u4E0D\u5206\u9875\uFF09 */\n showAllList?: boolean;\n /** \u83B7\u53D6\u591A\u5C11\u6761\u6570\u636E\uFF0C\u9ED8\u8BA420 */\n pageSize?: number;\n /** \u672C\u5730\u5217\u8868\u6570\u636E */\n localListData?: T[];\n /** \u56DE\u663E\u6570\u636E\u5217\u8868 */\n backShowList?: T[];\n /** \u8BF7\u6C42\u5217\u8868\u6570\u636E */\n request: (searchKey?: { [key: string]: any }) => Promise<API.Result_Base_List<T[]>>;\n /** \u6E32\u67D3\u7684\u503C */\n keyNames: KeyNamesType<T>;\n /** \u641C\u7D22\u7684\u5B57\u6BB5 */\n searchKey?: keyof T;\n /** Select.Option\u7684value\u5B57\u6BB5 */\n selectKey?: keyof T;\n /** \u989D\u5916\u7684\u67E5\u8BE2\u6761\u4EF6 */\n otherSearchValue?: Record<string, any>;\n /** \u53EA\u663E\u793A\u540D\u79F0 */\n onlyShowName?: boolean;\n /** \u81EA\u5B9A\u4E49\u6E32\u67D3 */\n itemRender?: (list: T[]) => React.ReactNode;\n /** \u5185\u5BB9\u7C7B\u578B */\n valueType?: 'key' | 'object';\n /** \u5224\u65AD\u4E0B\u62C9\u6846\u7684\u663E\u793A */\n showDropdown?: boolean;\n /** \u83B7\u53D6\u5DF2\u9009\u62E9\u7684\u6570\u636E\u5217\u8868 */\n getSelectList?: (item: T[]) => void;\n /** \u6570\u636E\u4E0B\u62C9\u5217\u8868\u53D8\u5316\u56DE\u8C03 */\n dropDownListChange?: (list: T[]) => void;\n }\n\n /** \u7EC4\u4EF6Select\u7684\u53C2\u6570 */\n export type MySelectListProps<T> = Partial<MySelectProps<T>>;\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MySetpsTypes = "\n/**\n * \u6309\u94AE\u6E32\u67D3\u53C2\u6570\n */\nexport type MySetpsButtonRenderParams = {\n current: number;\n setCurrent: (current: number) => void;\n next: () => void;\n prev: () => void;\n submit: () => void;\n loading: boolean;\n};\n\n/**\n * \u6309\u94AE\u6E32\u67D3\u51FD\u6570\n */\nexport type MySetpsButtonRenderFn = (params: MySetpsButtonRenderParams) => React.ReactNode;\n\n/**\n * \u7EC4\u4EF6\u5C5E\u6027\n */\nexport interface MySetpsProps extends Omit<StepsProps, 'items'> {\n /**\n * \u63D0\u4EA4\u6309\u94AE\u7684\u7D22\u5F15\uFF0C\u9ED8\u8BA4\u663E\u793A\u5728\u6700\u540E\u4E00\u6B65\n */\n submitButtonIndex?: number;\n /**\n * \u663E\u793A\u6B65\u9AA4\u6309\u94AE\n */\n showActionButton?: boolean;\n /**\n * \u63D0\u4EA4\u6309\u94AE\u7684\u56DE\u8C03\uFF0C\u8FD4\u56DE{ success: boolean } \u4F1A\u81EA\u52A8\u91CD\u7F6E\u5230\u7B2C\u4E00\u6B65\n */\n onSubmit?: () => Promise<{ success: boolean } | boolean | void | undefined> | boolean | void | undefined;\n /**\n * \u6B65\u9AA4\u9879\n */\n items?: (NonNullable<StepsProps['items']>[number] & {\n buttonRender?: MySetpsButtonRenderFn;\n content?: React.ReactNode | string;\n })[];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MySetpsTypes = "\n/**\n * \u6309\u94AE\u6E32\u67D3\u53C2\u6570\n */\nexport type MySetpsButtonRenderParams = {\n current: number;\n setCurrent: (current: number) => void;\n next: () => void;\n prev: () => void;\n submit: () => void;\n loading: boolean;\n};\n\n/**\n * \u6309\u94AE\u6E32\u67D3\u51FD\u6570\n */\nexport type MySetpsButtonRenderFn = (params: MySetpsButtonRenderParams) => React.ReactNode;\n\n/**\n * \u7EC4\u4EF6\u5C5E\u6027\n */\nexport interface MySetpsProps extends Omit<StepsProps, 'items'> {\n /**\n * \u63D0\u4EA4\u6309\u94AE\u7684\u7D22\u5F15\uFF0C\u9ED8\u8BA4\u663E\u793A\u5728\u6700\u540E\u4E00\u6B65\n */\n submitButtonIndex?: number;\n /**\n * \u663E\u793A\u6B65\u9AA4\u6309\u94AE\n */\n showActionButton?: boolean;\n /**\n * \u63D0\u4EA4\u6309\u94AE\u7684\u56DE\u8C03\uFF0C\u8FD4\u56DE{ success: boolean } \u4F1A\u81EA\u52A8\u91CD\u7F6E\u5230\u7B2C\u4E00\u6B65\n */\n onSubmit?: () => Promise<{ success: boolean } | boolean | void | undefined> | boolean | void | undefined;\n /**\n * \u6B65\u9AA4\u9879\n */\n items?: (NonNullable<StepsProps['items']>[number] & {\n buttonRender?: MySetpsButtonRenderFn;\n content?: React.ReactNode | string;\n })[];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MyTagListTypes = "\nexport interface MyTagListProps {\n /** \u6807\u7B7E\u663E\u793A\u5217\u8868 */\n tagList: string[] | string | undefined;\n /** \u6807\u7B7E\u989C\u8272 */\n tagColor?: LiteralUnion<PresetColorType | PresetStatusColorType>;\n /** tooltipProps */\n tooltipProps?: TooltipProps;\n /** \u6700\u591A\u663E\u793A\u51E0\u4E2A\u8868\u683C */\n max?: number;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MyTagListTypes = "\nexport interface MyTagListProps {\n /** \u6807\u7B7E\u663E\u793A\u5217\u8868 */\n tagList: string[] | string | undefined;\n /** \u6807\u7B7E\u989C\u8272 */\n tagColor?: LiteralUnion<PresetColorType | PresetStatusColorType>;\n /** tooltipProps */\n tooltipProps?: TooltipProps;\n /** \u6700\u591A\u663E\u793A\u51E0\u4E2A\u8868\u683C */\n max?: number;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MyUploadTypes = "\nexport type UploadAcceptType = keyof typeof fileTypeMap;\nexport type FileChangeType = 'ADD' | 'DELETE';\n\nexport interface FileListType {\n /**\n * \u6587\u4EF6id\n */\n fileId: string;\n /**\n * \u6587\u4EF6\u540D\u79F0\n */\n fileName?: string;\n /**\n * \u6587\u4EF6\u5927\u5C0F\n */\n fileSize?: number;\n /**\n * \u6587\u4EF6\u7C7B\u578B\n */\n fileType?: string;\n}\n\n// \u5B9A\u4E49\u57FA\u7840\u63A5\u53E3\nexport type UploadBaseProps = {\n /** \u7EC4\u4EF6name\u5C5E\u6027 */\n cname?: any;\n /** \u6587\u4EF6\u670D\u52A1\u5668url */\n action?: string;\n /** \u4E0A\u4F20\u6307\u5B9A\u683C\u5F0F\u6587\u4EF6 */\n accept?: UploadAcceptType[] | string;\n /** \u6587\u4EF6\u5217\u8868\u9ED8\u8BA4\u503C */\n defautlFileList?: FileListType[];\n /** \u6587\u4EF6\u5217\u8868 */\n fileList?: FileListType[];\n /** \u6700\u5927\u4E0A\u4F20\u6570\u91CF */\n maxCount?: undefined | number;\n /** \u6587\u4EF6change\u4E8B\u4EF6 */\n onChange?: (fileList: FileListType[], isDel: FileChangeType) => void;\n /** \u4E0A\u4F20\u524D\u6821\u9A8C\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u6821\u9A8C\u683C\u5F0F */\n beforeUpload?: UploadProps['beforeUpload'];\n /** \u63A5\u6536form\u8868\u5355\u7684\u503C\uFF0C\u4E0D\u8981\u4E3B\u52A8\u4F20\u9012 */\n value?: FileListType[];\n /** \u66FF\u4EE3\u9ED8\u8BA4\u663E\u793A\u5185\u5BB9 */\n children?: JSX.Element;\n};\n\n// \u5B9A\u4E49\u5206\u8FA8\u7387\u7EA6\u675F\u7C7B\u578B\nexport type ResolutionConstraints =\n | { maxWidth: number; maxHeight: number; minWidth?: never; minHeight?: never }\n | { maxWidth?: never; maxHeight?: never; minWidth: number; minHeight: number }\n | { maxWidth?: never; maxHeight?: never; minWidth?: never; minHeight?: never };\n\nexport interface MyUploadProps extends UploadBaseProps {\n /** \u80FD\u70B9\u51FB\u4E0B\u8F7D\uFF0C\u663E\u793A\u9ED8\u8BA4\u7684\u7F29\u7565\u56FE\uFF0C\u4E0D\u663E\u793A\u771F\u5B9E\u56FE\u7247 \u9ED8\u8BA4ture */\n canDownload?: boolean;\n /** \u670D\u52A1\u5668\u6587\u4EF6\u540D */\n bucketName: string;\n /** \u4E0A\u4F20\u6587\u4EF6\u52A0\u5165fileName\u53C2\u6570 */\n needFileNmae?: boolean;\n /** \u62D6\u62FD\u4E0A\u4F20\u6216\u8005\u70B9\u51FB\u4E0A\u4F20 */\n uploadType?: 'drag' | 'image' | 'file';\n /** \u7EC4\u4EF6\u663E\u793A\u7C7B\u578B */\n listType?: 'text' | 'picture' | 'picture-card';\n disabled?: boolean;\n readonly?: boolean;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u6807\u9898 */\n removeConfirmTitle?: string;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u5185\u5BB9 */\n removeConfirmContent?: string;\n /** \u81EA\u5B9A\u4E49\u5220\u9664\uFF0C\u4E0D\u76F4\u63A5\u5220\u9664\u540E\u53F0\u6587\u4EF6 */\n diyRemove?: (\n file: FileListType,\n fileList: FileListType[],\n ) => Promise<FileListType[]> | FileListType[] | [] | Promise<boolean>;\n /** \u4E0A\u4F20\u652F\u6301\u6700\u5927\u5BB9\u91CF */\n maxSize?: number;\n /** \u4FDD\u6301\u539F\u6709\u7684\u6821\u9A8C\uFF0C\u5728\u589E\u52A0\u4E00\u4E9B\u6821\u9A8C */\n addBeforeUpload?: UploadProps['beforeUpload'];\n /** \u89C6\u9891\u5206\u8FA8\u7387\u6821\u9A8C */\n resolutionConstraints?: ResolutionConstraints;\n}\n\ninterface FlieListModalProps {\n /**\n * \u6253\u5F00\u5F39\u7A97\n */\n open: boolean;\n /**\n * \u5F39\u7A97\u6807\u9898\n */\n title?: string;\n /**\n * minio\u6876\u540D\u79F0\n */\n bucketName: string;\n /**\n * \u4E0A\u4F20\u7C7B\u578B\n */\n uploadType?: 'drag' | 'image';\n /**\n * \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u6807\u9898\n */\n removeConfirmTitle?: string;\n /**\n * \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u5185\u5BB9\n */\n removeConfirmContent?: string;\n /**\n * \u6587\u4EF6\u5217\u8868\n */\n list?: any;\n /**\n * \u5173\u95ED\u5F39\u7A97\u4E8B\u4EF6\u51FD\u6570\n */\n onCancel: () => void;\n /**\n * \u63D0\u4EA4\u4E8B\u4EF6\u51FD\u6570\n */\n onOk: (file: FileListType[], init: () => void) => void;\n}\n\n\nexport interface FormFileListType {\n /**\n * \u6587\u4EF6id\n */\n fileId: string;\n /**\n * \u6587\u4EF6\u540D\u79F0\n */\n fileName?: string;\n /**\n * \u6587\u4EF6\u5927\u5C0F\n */\n fileSize?: number;\n /**\n * \u6587\u4EF6\u7C7B\u578B\n */\n fileType?: string;\n /**\n * \u540E\u7AEF\u5B9A\u4E49\u7684\u6587\u4EF6id\n */\n id?: string;\n}\n\n// \u5B9A\u4E49\u57FA\u7840\u63A5\u53E3\nexport type FormUploadBaseProps = {\n /** \u7EC4\u4EF6name\u5C5E\u6027 */\n cname?: any;\n /** \u6587\u4EF6\u670D\u52A1\u5668url */\n action?: string;\n /** \u4E0A\u4F20\u6307\u5B9A\u683C\u5F0F\u6587\u4EF6 */\n accept?: UploadAcceptType[] | string;\n /** \u6587\u4EF6\u5217\u8868\u9ED8\u8BA4\u503C */\n defautlFileList?: FormFileListType[];\n /** \u6587\u4EF6\u5217\u8868 */\n fileList?: FormFileListType[];\n /** \u6700\u5927\u4E0A\u4F20\u6570\u91CF */\n maxCount?: undefined | number;\n multiple?: boolean;\n /** \u53BB\u9664\u6837\u5F0F */\n noStyle?: boolean;\n layout?: 'horizontal' | 'vertical';\n /** \u662F\u5426\u70B9\u51FB\u663E\u793A\u9884\u89C8 */\n showPreviewImage?: boolean;\n disabled?: boolean;\n /** \u662F\u5426\u53EA\u8BFB\uFF0C\u53EA\u8BFB\u7A7A\u6570\u636E\u5C55\u793A\u7EC4\u4EF6 */\n isReadonly?: boolean;\n /** \u6587\u4EF6change\u4E8B\u4EF6 */\n onChange?: (fileList: FormFileListType[]) => void;\n /** \u4E0A\u4F20\u524D\u6821\u9A8C\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u6821\u9A8C\u683C\u5F0F */\n beforeUpload?: UploadProps['beforeUpload'];\n /** \u63A5\u6536form\u8868\u5355\u7684\u503C\uFF0C\u4E0D\u8981\u4E3B\u52A8\u4F20\u9012 */\n value?: FormFileListType[];\n /** \u66FF\u4EE3\u9ED8\u8BA4\u663E\u793A\u5185\u5BB9 */\n children?: JSX.Element;\n};\n\nexport interface MyFormUploadProps extends FormUploadBaseProps {\n title?: string;\n label?: string;\n width?: number | 'md' | 'sm' | 'xl' | 'xs' | 'lg' | undefined;\n /** \u670D\u52A1\u5668\u6587\u4EF6\u540D */\n bucketName?: string;\n /** \u4E0A\u4F20\u6587\u4EF6\u52A0\u5165fileName\u53C2\u6570 */\n needFileNmae?: boolean;\n /** \u62D6\u62FD\u4E0A\u4F20\u6216\u8005\u70B9\u51FB\u4E0A\u4F20 */\n uploadType?: 'drag' | 'image' | 'file';\n /** \u7EC4\u4EF6\u663E\u793A\u7C7B\u578B */\n listType?: 'text' | 'picture' | 'picture-card' | 'dragger';\n /** \u6700\u5927\u4E0A\u4F20\u6570\u91CF */\n maxCount?: undefined | number;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u6807\u9898 */\n removeConfirmTitle?: string;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u5185\u5BB9 */\n removeConfirmContent?: string;\n /** \u5220\u9664\u6210\u529F\u540E\u4E8B\u4EF6 */\n removeAfter?: (file: FormFileListType) => void;\n /** \u81EA\u5B9A\u4E49\u5220\u9664\uFF0C\u4E0D\u76F4\u63A5\u5220\u9664\u540E\u53F0\u6587\u4EF6 */\n diyRemove?: (\n file: FormFileListType,\n status: UploadFileStatus | undefined,\n ) => Promise<FormFileListType[]> | FormFileListType[] | [];\n /** \u4E0A\u4F20\u652F\u6301\u6700\u5927\u5BB9\u91CF */\n maxSize?: number;\n /** \u89C6\u9891\u5206\u8FA8\u7387\u6821\u9A8C */\n resolutionConstraints?: ResolutionConstraints;\n /** \u4FDD\u6301\u539F\u6709\u7684\u6821\u9A8C\uFF0C\u5728\u589E\u52A0\u4E00\u4E9B\u6821\u9A8C */\n addBeforeUpload?: UploadProps['beforeUpload'];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MyUploadTypes = "\nexport type UploadAcceptType = keyof typeof fileTypeMap;\nexport type FileChangeType = 'ADD' | 'DELETE';\n\nexport interface FileListType {\n /**\n * \u6587\u4EF6id\n */\n fileId: string;\n /**\n * \u6587\u4EF6\u540D\u79F0\n */\n fileName?: string;\n /**\n * \u6587\u4EF6\u5927\u5C0F\n */\n fileSize?: number;\n /**\n * \u6587\u4EF6\u7C7B\u578B\n */\n fileType?: string;\n}\n\n// \u5B9A\u4E49\u57FA\u7840\u63A5\u53E3\nexport type UploadBaseProps = {\n /** \u7EC4\u4EF6name\u5C5E\u6027 */\n cname?: any;\n /** \u6587\u4EF6\u670D\u52A1\u5668url */\n action?: string;\n /** \u4E0A\u4F20\u6307\u5B9A\u683C\u5F0F\u6587\u4EF6 */\n accept?: UploadAcceptType[] | string;\n /** \u6587\u4EF6\u5217\u8868\u9ED8\u8BA4\u503C */\n defautlFileList?: FileListType[];\n /** \u6587\u4EF6\u5217\u8868 */\n fileList?: FileListType[];\n /** \u6700\u5927\u4E0A\u4F20\u6570\u91CF */\n maxCount?: undefined | number;\n /** \u6587\u4EF6change\u4E8B\u4EF6 */\n onChange?: (fileList: FileListType[], isDel: FileChangeType) => void;\n /** \u4E0A\u4F20\u524D\u6821\u9A8C\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u6821\u9A8C\u683C\u5F0F */\n beforeUpload?: UploadProps['beforeUpload'];\n /** \u63A5\u6536form\u8868\u5355\u7684\u503C\uFF0C\u4E0D\u8981\u4E3B\u52A8\u4F20\u9012 */\n value?: FileListType[];\n /** \u66FF\u4EE3\u9ED8\u8BA4\u663E\u793A\u5185\u5BB9 */\n children?: JSX.Element;\n};\n\n// \u5B9A\u4E49\u5206\u8FA8\u7387\u7EA6\u675F\u7C7B\u578B\nexport type ResolutionConstraints =\n | { maxWidth: number; maxHeight: number; minWidth?: never; minHeight?: never }\n | { maxWidth?: never; maxHeight?: never; minWidth: number; minHeight: number }\n | { maxWidth?: never; maxHeight?: never; minWidth?: never; minHeight?: never };\n\nexport interface MyUploadProps extends UploadBaseProps {\n /** \u80FD\u70B9\u51FB\u4E0B\u8F7D\uFF0C\u663E\u793A\u9ED8\u8BA4\u7684\u7F29\u7565\u56FE\uFF0C\u4E0D\u663E\u793A\u771F\u5B9E\u56FE\u7247 \u9ED8\u8BA4ture */\n canDownload?: boolean;\n /** \u670D\u52A1\u5668\u6587\u4EF6\u540D */\n bucketName: string;\n /** \u4E0A\u4F20\u6587\u4EF6\u52A0\u5165fileName\u53C2\u6570 */\n needFileNmae?: boolean;\n /** \u62D6\u62FD\u4E0A\u4F20\u6216\u8005\u70B9\u51FB\u4E0A\u4F20 */\n uploadType?: 'drag' | 'image' | 'file';\n /** \u7EC4\u4EF6\u663E\u793A\u7C7B\u578B */\n listType?: 'text' | 'picture' | 'picture-card';\n disabled?: boolean;\n readonly?: boolean;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u6807\u9898 */\n removeConfirmTitle?: string;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u5185\u5BB9 */\n removeConfirmContent?: string;\n /** \u81EA\u5B9A\u4E49\u5220\u9664\uFF0C\u4E0D\u76F4\u63A5\u5220\u9664\u540E\u53F0\u6587\u4EF6 */\n diyRemove?: (\n file: FileListType,\n fileList: FileListType[],\n ) => Promise<FileListType[]> | FileListType[] | [] | Promise<boolean>;\n /** \u4E0A\u4F20\u652F\u6301\u6700\u5927\u5BB9\u91CF */\n maxSize?: number;\n /** \u4FDD\u6301\u539F\u6709\u7684\u6821\u9A8C\uFF0C\u5728\u589E\u52A0\u4E00\u4E9B\u6821\u9A8C */\n addBeforeUpload?: UploadProps['beforeUpload'];\n /** \u89C6\u9891\u5206\u8FA8\u7387\u6821\u9A8C */\n resolutionConstraints?: ResolutionConstraints;\n}\n\ninterface FlieListModalProps {\n /**\n * \u6253\u5F00\u5F39\u7A97\n */\n open: boolean;\n /**\n * \u5F39\u7A97\u6807\u9898\n */\n title?: string;\n /**\n * minio\u6876\u540D\u79F0\n */\n bucketName: string;\n /**\n * \u4E0A\u4F20\u7C7B\u578B\n */\n uploadType?: 'drag' | 'image';\n /**\n * \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u6807\u9898\n */\n removeConfirmTitle?: string;\n /**\n * \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u5185\u5BB9\n */\n removeConfirmContent?: string;\n /**\n * \u6587\u4EF6\u5217\u8868\n */\n list?: any;\n /**\n * \u5173\u95ED\u5F39\u7A97\u4E8B\u4EF6\u51FD\u6570\n */\n onCancel: () => void;\n /**\n * \u63D0\u4EA4\u4E8B\u4EF6\u51FD\u6570\n */\n onOk: (file: FileListType[], init: () => void) => void;\n}\n\n\nexport interface FormFileListType {\n /**\n * \u6587\u4EF6id\n */\n fileId: string;\n /**\n * \u6587\u4EF6\u540D\u79F0\n */\n fileName?: string;\n /**\n * \u6587\u4EF6\u5927\u5C0F\n */\n fileSize?: number;\n /**\n * \u6587\u4EF6\u7C7B\u578B\n */\n fileType?: string;\n /**\n * \u540E\u7AEF\u5B9A\u4E49\u7684\u6587\u4EF6id\n */\n id?: string;\n}\n\n// \u5B9A\u4E49\u57FA\u7840\u63A5\u53E3\nexport type FormUploadBaseProps = {\n /** \u7EC4\u4EF6name\u5C5E\u6027 */\n cname?: any;\n /** \u6587\u4EF6\u670D\u52A1\u5668url */\n action?: string;\n /** \u4E0A\u4F20\u6307\u5B9A\u683C\u5F0F\u6587\u4EF6 */\n accept?: UploadAcceptType[] | string;\n /** \u6587\u4EF6\u5217\u8868\u9ED8\u8BA4\u503C */\n defautlFileList?: FormFileListType[];\n /** \u6587\u4EF6\u5217\u8868 */\n fileList?: FormFileListType[];\n /** \u6700\u5927\u4E0A\u4F20\u6570\u91CF */\n maxCount?: undefined | number;\n multiple?: boolean;\n /** \u53BB\u9664\u6837\u5F0F */\n noStyle?: boolean;\n layout?: 'horizontal' | 'vertical';\n /** \u662F\u5426\u70B9\u51FB\u663E\u793A\u9884\u89C8 */\n showPreviewImage?: boolean;\n disabled?: boolean;\n /** \u662F\u5426\u53EA\u8BFB\uFF0C\u53EA\u8BFB\u7A7A\u6570\u636E\u5C55\u793A\u7EC4\u4EF6 */\n isReadonly?: boolean;\n /** \u6587\u4EF6change\u4E8B\u4EF6 */\n onChange?: (fileList: FormFileListType[]) => void;\n /** \u4E0A\u4F20\u524D\u6821\u9A8C\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u6821\u9A8C\u683C\u5F0F */\n beforeUpload?: UploadProps['beforeUpload'];\n /** \u63A5\u6536form\u8868\u5355\u7684\u503C\uFF0C\u4E0D\u8981\u4E3B\u52A8\u4F20\u9012 */\n value?: FormFileListType[];\n /** \u66FF\u4EE3\u9ED8\u8BA4\u663E\u793A\u5185\u5BB9 */\n children?: JSX.Element;\n};\n\nexport interface MyFormUploadProps extends FormUploadBaseProps {\n title?: string;\n label?: string;\n width?: number | 'md' | 'sm' | 'xl' | 'xs' | 'lg' | undefined;\n /** \u670D\u52A1\u5668\u6587\u4EF6\u540D */\n bucketName?: string;\n /** \u4E0A\u4F20\u6587\u4EF6\u52A0\u5165fileName\u53C2\u6570 */\n needFileNmae?: boolean;\n /** \u62D6\u62FD\u4E0A\u4F20\u6216\u8005\u70B9\u51FB\u4E0A\u4F20 */\n uploadType?: 'drag' | 'image' | 'file';\n /** \u7EC4\u4EF6\u663E\u793A\u7C7B\u578B */\n listType?: 'text' | 'picture' | 'picture-card' | 'dragger';\n /** \u6700\u5927\u4E0A\u4F20\u6570\u91CF */\n maxCount?: undefined | number;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u6807\u9898 */\n removeConfirmTitle?: string;\n /** \u5220\u9664\u786E\u8BA4\u5F39\u7A97\u5185\u5BB9 */\n removeConfirmContent?: string;\n /** \u5220\u9664\u6210\u529F\u540E\u4E8B\u4EF6 */\n removeAfter?: (file: FormFileListType) => void;\n /** \u81EA\u5B9A\u4E49\u5220\u9664\uFF0C\u4E0D\u76F4\u63A5\u5220\u9664\u540E\u53F0\u6587\u4EF6 */\n diyRemove?: (\n file: FormFileListType,\n status: UploadFileStatus | undefined,\n ) => Promise<FormFileListType[]> | FormFileListType[] | [];\n /** \u4E0A\u4F20\u652F\u6301\u6700\u5927\u5BB9\u91CF */\n maxSize?: number;\n /** \u89C6\u9891\u5206\u8FA8\u7387\u6821\u9A8C */\n resolutionConstraints?: ResolutionConstraints;\n /** \u4FDD\u6301\u539F\u6709\u7684\u6821\u9A8C\uFF0C\u5728\u589E\u52A0\u4E00\u4E9B\u6821\u9A8C */\n addBeforeUpload?: UploadProps['beforeUpload'];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PermissionSelectTypes = "\n export interface UserListItem {\n deptEntity: any;\n userId: string;\n userCode: string;\n userName: string;\n password: string;\n nickName: string;\n userType?: string;\n email?: string;\n phone?: string;\n sex: string;\n status: string;\n avatar?: string;\n remark?: string;\n roles: RoleListItem[];\n permissions: any[];\n }\n\n export interface RoleListItem {\n userIds: any;\n roleId: string;\n roleCode: string;\n roleName: string;\n status: string;\n remark?: string;\n\n users: UserListItem[];\n permissions: any[];\n }\n\n export interface MenuItem {\n menuId: string;\n menuCode: string;\n menuName: string;\n icon: string;\n parentId: string;\n seqNo: number;\n path: string;\n menuType: string;\n status: string;\n remark?: string;\n }\n\n export interface PermissionItem {\n permissionId: string;\n permissionCode: string;\n permissionName: string;\n menuId: string;\n status: string;\n remark?: string;\n }\n\n /**\n * \u9ED8\u8BA4\u4F20\u5165\u7684\u6570\u636E\uFF0C\u9700\u8981\u4F20\u5165\u6743\u9650\u5217\u8868\n * \u4E5F\u53EF\u4EE5\u4F20\u5165\u89D2\u8272ID\u6216\u662F\u7528\u6237ID\n */\n export interface PermissionSelectItem {\n permissionIds: string[];\n }\n\n /**\n * \u9009\u62E9\u6743\u9650\u7EC4\u4EF6\u7684props\n */\n export interface PermissionSelectFormProps {\n rootParentKey?: number | string;\n modalFormVisible: boolean;\n setModalFormVisible: (visible: boolean) => void;\n onSubmit: (values: FormValueType) => Promise<void>;\n values?: PermissionSelectItem | any;\n onCancel: any;\n }\n\n export interface CurrentUser {\n userId: string;\n userCode: string;\n userName?: string;\n avatar?: string;\n status?: string;\n nickName: string;\n\n menus?: MenuItem[];\n permissions?: PermissionItem[];\n\n [prop: string]: any;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var PermissionSelectTypes = "\n export interface UserListItem {\n deptEntity: any;\n userId: string;\n userCode: string;\n userName: string;\n password: string;\n nickName: string;\n userType?: string;\n email?: string;\n phone?: string;\n sex: string;\n status: string;\n avatar?: string;\n remark?: string;\n roles: RoleListItem[];\n permissions: any[];\n }\n\n export interface RoleListItem {\n userIds: any;\n roleId: string;\n roleCode: string;\n roleName: string;\n status: string;\n remark?: string;\n\n users: UserListItem[];\n permissions: any[];\n }\n\n export interface MenuItem {\n menuId: string;\n menuCode: string;\n menuName: string;\n icon: string;\n parentId: string;\n seqNo: number;\n path: string;\n menuType: string;\n status: string;\n remark?: string;\n }\n\n export interface PermissionItem {\n permissionId: string;\n permissionCode: string;\n permissionName: string;\n menuId: string;\n status: string;\n remark?: string;\n }\n\n /**\n * \u9ED8\u8BA4\u4F20\u5165\u7684\u6570\u636E\uFF0C\u9700\u8981\u4F20\u5165\u6743\u9650\u5217\u8868\n * \u4E5F\u53EF\u4EE5\u4F20\u5165\u89D2\u8272ID\u6216\u662F\u7528\u6237ID\n */\n export interface PermissionSelectItem {\n permissionIds: string[];\n }\n\n /**\n * \u9009\u62E9\u6743\u9650\u7EC4\u4EF6\u7684props\n */\n export interface PermissionSelectFormProps {\n rootParentKey?: number | string;\n modalFormVisible: boolean;\n setModalFormVisible: (visible: boolean) => void;\n onSubmit: (values: FormValueType) => Promise<void>;\n values?: PermissionSelectItem | any;\n onCancel: any;\n }\n\n export interface CurrentUser {\n userId: string;\n userCode: string;\n userName?: string;\n avatar?: string;\n status?: string;\n nickName: string;\n\n menus?: MenuItem[];\n permissions?: PermissionItem[];\n\n [prop: string]: any;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QrCodeModalTypes = "\n /** \u4E8C\u7EF4\u7801\u5F39\u7A97\u7EC4\u4EF6\u7C7B\u578B */\n export interface QrCodeModalProps extends ModalProps {\n /**\n * \u4E8C\u7EF4\u7801\u5185\u5BB9\n */\n value?: string | null;\n /**\n * \u4E8C\u7EF4\u7801\u4E0B\u65B9\u8BF4\u660E\n */\n code?: string | null | any;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var QrCodeModalTypes = "\n /** \u4E8C\u7EF4\u7801\u5F39\u7A97\u7EC4\u4EF6\u7C7B\u578B */\n export interface QrCodeModalProps extends ModalProps {\n /**\n * \u4E8C\u7EF4\u7801\u5185\u5BB9\n */\n value?: string | null;\n /**\n * \u4E8C\u7EF4\u7801\u4E0B\u65B9\u8BF4\u660E\n */\n code?: string | null | any;\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RandomAvatarTypes = "\ninterface AvatarVersion {\n part?:\n | '00'\n | '01'\n | '02'\n | '03'\n | '04'\n | '05'\n | '06'\n | '07'\n | '08'\n | '09'\n | '10'\n | '11'\n | '12'\n | '13'\n | '14'\n | '15';\n theme?: 'A' | 'B' | 'C';\n}\n\nexport interface AvatarProps {\n /**\n * \u7EC4\u4EF6\u4F1A\u6839\u636EavatarCode\u751F\u6210\u5BF9\u5E94\u7684\u5934\u50CF\uFF0C\u540C\u6837\u7684code\u4F1A\u751F\u6210\u540C\u6837\u7684\u5934\u50CF\n */\n avatarCode: string;\n /**\n * \u5982\u679C\u4E3Atrue\uFF0C\u5219\u8FD4\u56DE\u5E26\u5706\u5708\u80CC\u666F\uFF08\u73AF\u5883\u90E8\u5206\uFF09\u7684\u6700\u7EC8\u5934\u50CF\uFF0C\u9ED8\u8BA4true\n */\n sansEnv?: boolean;\n /**\n * \u4F20\u9012\u5BF9\u8C61\u4EE5\u5F3A\u5236\u4F7F\u7528\u7279\u5B9A\u7684\u521D\u59CB\u7248\u672C,\u4E0D\u4F1A\u6309\u7167code\u751F\u6210 @param AvatarVersion\n */\n version?: AvatarVersion;\n}\n\ninterface RandomAvatarProps extends AvatarProps, React.HTMLAttributes<HTMLDivElement> {\n /**\n * \u5934\u50CF\u5927\u5C0F\uFF0C\u9ED8\u8BA4\u4E3A50\n */\n width?: number;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var RandomAvatarTypes = "\ninterface AvatarVersion {\n part?:\n | '00'\n | '01'\n | '02'\n | '03'\n | '04'\n | '05'\n | '06'\n | '07'\n | '08'\n | '09'\n | '10'\n | '11'\n | '12'\n | '13'\n | '14'\n | '15';\n theme?: 'A' | 'B' | 'C';\n}\n\nexport interface AvatarProps {\n /**\n * \u7EC4\u4EF6\u4F1A\u6839\u636EavatarCode\u751F\u6210\u5BF9\u5E94\u7684\u5934\u50CF\uFF0C\u540C\u6837\u7684code\u4F1A\u751F\u6210\u540C\u6837\u7684\u5934\u50CF\n */\n avatarCode: string;\n /**\n * \u5982\u679C\u4E3Atrue\uFF0C\u5219\u8FD4\u56DE\u5E26\u5706\u5708\u80CC\u666F\uFF08\u73AF\u5883\u90E8\u5206\uFF09\u7684\u6700\u7EC8\u5934\u50CF\uFF0C\u9ED8\u8BA4true\n */\n sansEnv?: boolean;\n /**\n * \u4F20\u9012\u5BF9\u8C61\u4EE5\u5F3A\u5236\u4F7F\u7528\u7279\u5B9A\u7684\u521D\u59CB\u7248\u672C,\u4E0D\u4F1A\u6309\u7167code\u751F\u6210 @param AvatarVersion\n */\n version?: AvatarVersion;\n}\n\ninterface RandomAvatarProps extends AvatarProps, React.HTMLAttributes<HTMLDivElement> {\n /**\n * \u5934\u50CF\u5927\u5C0F\uFF0C\u9ED8\u8BA4\u4E3A50\n */\n width?: number;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RefDrawerFormTypes = "\nexport interface RefDrawerFormRefType {\n /**\n * \u6253\u5F00\u5F39\u6846\u65B9\u6CD5\n */\n show: () => void;\n /**\n * \u7EC4\u4EF6\u5185\u90E8\u4F1A\u63A7\u5236close\uFF0C\u901A\u8FC7\u5176\u4ED6\u9014\u5F84\u5173\u95ED\u8C03\u7528\u8BE5\u65B9\u6CD5\n */\n close: () => void;\n}\n\nexport interface RefDrawerFormProps<T> extends DrawerFormProps<T> {\n /**\n * \u5173\u95ED\u5F39\u6846\u6216\u7684\u56DE\u8C03\n */\n onCloseAfter?: () => void;\n /**\n * \u5173\u95ED\u91CD\u7F6E\u8868\u5355\uFF0C\u9ED8\u8BA4tree\n */\n needResetForm?: boolean;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var RefDrawerFormTypes = "\nexport interface RefDrawerFormRefType {\n /**\n * \u6253\u5F00\u5F39\u6846\u65B9\u6CD5\n */\n show: () => void;\n /**\n * \u7EC4\u4EF6\u5185\u90E8\u4F1A\u63A7\u5236close\uFF0C\u901A\u8FC7\u5176\u4ED6\u9014\u5F84\u5173\u95ED\u8C03\u7528\u8BE5\u65B9\u6CD5\n */\n close: () => void;\n}\n\nexport interface RefDrawerFormProps<T> extends DrawerFormProps<T> {\n /**\n * \u5173\u95ED\u5F39\u6846\u6216\u7684\u56DE\u8C03\n */\n onCloseAfter?: () => void;\n /**\n * \u5173\u95ED\u91CD\u7F6E\u8868\u5355\uFF0C\u9ED8\u8BA4tree\n */\n needResetForm?: boolean;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ReportTableTypes = "\nexport interface ReportTableRef<T = any, K = any> {\n tableData: T[];\n /**\n * ProTable\u7684columnsStateMap\n */\n columnsStateMap: ProTableProps<T, K>['columnsState'];\n /**\n * ProTable\u7684actionRef.current\n */\n tableAction: ActionType | undefined;\n}\n\nexport interface ReportTableProps<T = any, K = any> extends Omit<ProTableProps<T, K>, 'actionRef'> {\n rowKey?: keyof T | ((record: T, index?: number) => Key);\n columns: ProColumns<T>[];\n /**\n * \u989D\u5916\u7684\u67E5\u8BE2\u6761\u4EF6\n */\n extraSearchParams?: Record<string, any>;\n /**\n * \u591A\u8BED\u8A00code/name\n */\n baseLocalCode: string;\n baseLocalName: string;\n /**\n * \u5BFC\u51FA\u6743\u9650code\n */\n MC_AuthorityCode_EXPORT: string | boolean;\n /**\n * \u67E5\u8BE2\u6570\u636E\n */\n queryTableList: (params: any) => Promise<API.Result_Base_List<T[]>>;\n /**\n * \u767E\u5206\u6BD4\u53D8\u5316\n */\n handlePercentChange?: (params: number) => void;\n /**\n * \u4E0B\u8F7D\u6309\u94AEloading\n */\n downloadButtonLoading?: boolean;\n /**\n * \u8BBE\u7F6E\u4E0B\u8F7D\u6309\u94AEloading\n */\n setDownloadButtonLoading?: (bol: boolean) => void;\n /** API\u62E6\u622A\u5668 */\n interceptors?: {\n /** \u67E5\u8BE2\u62E6\u622A\u5668 */\n query?: {\n /** \u67E5\u8BE2\u8BF7\u6C42\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u53C2\u6570\u8FDB\u884C\u5904\u7406 */\n request?: (params: any) => any;\n /** \u67E5\u8BE2\u54CD\u5E94\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u7ED3\u679C\u8FDB\u884C\u5904\u7406 */\n response?: (result: any) => any;\n };\n /** \u5BFC\u51FA\u5217\u8868\u67E5\u8BE2\u62E6\u622A\u5668 */\n queryAll?: {\n /** \u67E5\u8BE2\u8BF7\u6C42\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u53C2\u6570\u8FDB\u884C\u5904\u7406 */\n request?: (params: any) => any;\n /** \u67E5\u8BE2\u54CD\u5E94\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u7ED3\u679C\u8FDB\u884C\u5904\u7406 */\n response?: (result: any) => any;\n };\n };\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ReportTableTypes = "\nexport interface ReportTableRef<T = any, K = any> {\n tableData: T[];\n /**\n * ProTable\u7684columnsStateMap\n */\n columnsStateMap: ProTableProps<T, K>['columnsState'];\n /**\n * ProTable\u7684actionRef.current\n */\n tableAction: ActionType | undefined;\n}\n\nexport interface ReportTableProps<T = any, K = any> extends Omit<ProTableProps<T, K>, 'actionRef'> {\n rowKey?: keyof T | ((record: T, index?: number) => Key);\n columns: ProColumns<T>[];\n /**\n * \u989D\u5916\u7684\u67E5\u8BE2\u6761\u4EF6\n */\n extraSearchParams?: Record<string, any>;\n /**\n * \u591A\u8BED\u8A00code/name\n */\n baseLocalCode: string;\n baseLocalName: string;\n /**\n * \u5BFC\u51FA\u6743\u9650code\n */\n MC_AuthorityCode_EXPORT: string | boolean;\n /**\n * \u67E5\u8BE2\u6570\u636E\n */\n queryTableList: (params: any) => Promise<API.Result_Base_List<T[]>>;\n /**\n * \u767E\u5206\u6BD4\u53D8\u5316\n */\n handlePercentChange?: (params: number) => void;\n /**\n * \u4E0B\u8F7D\u6309\u94AEloading\n */\n downloadButtonLoading?: boolean;\n /**\n * \u8BBE\u7F6E\u4E0B\u8F7D\u6309\u94AEloading\n */\n setDownloadButtonLoading?: (bol: boolean) => void;\n /** API\u62E6\u622A\u5668 */\n interceptors?: {\n /** \u67E5\u8BE2\u62E6\u622A\u5668 */\n query?: {\n /** \u67E5\u8BE2\u8BF7\u6C42\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u53C2\u6570\u8FDB\u884C\u5904\u7406 */\n request?: (params: any) => any;\n /** \u67E5\u8BE2\u54CD\u5E94\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u7ED3\u679C\u8FDB\u884C\u5904\u7406 */\n response?: (result: any) => any;\n };\n /** \u5BFC\u51FA\u5217\u8868\u67E5\u8BE2\u62E6\u622A\u5668 */\n queryAll?: {\n /** \u67E5\u8BE2\u8BF7\u6C42\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u53C2\u6570\u8FDB\u884C\u5904\u7406 */\n request?: (params: any) => any;\n /** \u67E5\u8BE2\u54CD\u5E94\u62E6\u622A\u5668\uFF0C\u7528\u4E8E\u5BF9\u67E5\u8BE2\u7ED3\u679C\u8FDB\u884C\u5904\u7406 */\n response?: (result: any) => any;\n };\n };\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ThemeSwitchTypes = "\nexport interface ThemeSwitchProps extends SwitchProps {\n /**\n * \u5207\u6362\u4E3B\u9898\u89E6\u53D1\n * @param darkMode \u662F\u5426\u9ED1\u6697\u4E3B\u9898\n * @returns\n */\n onThemeChange?: (darkMode: boolean) => void;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ThemeSwitchTypes = "\nexport interface ThemeSwitchProps extends SwitchProps {\n /**\n * \u5207\u6362\u4E3B\u9898\u89E6\u53D1\n * @param darkMode \u662F\u5426\u9ED1\u6697\u4E3B\u9898\n * @returns\n */\n onThemeChange?: (darkMode: boolean) => void;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ViewTableItemDrawerTypes = "\nexport interface ViewTableItemDrawerProps<T> extends DrawerProps {\n /** \u884C\u6570\u636E */\n row?: T | null;\n /** \u8868\u683Ccolumns */\n columns: ProColumns<T>[];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ViewTableItemDrawerTypes = "\nexport interface ViewTableItemDrawerProps<T> extends DrawerProps {\n /** \u884C\u6570\u636E */\n row?: T | null;\n /** \u8868\u683Ccolumns */\n columns: ProColumns<T>[];\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VolumeFormItemTypes = "\nexport interface VolumeFormItemProps {\n onChange?: (value: string) => void;\n value?: string;\n /** \u5206\u5272\u7B26 */\n split?: string;\n /** \u5206\u5272\u7B26\u6807\u7B7E\u5C5E\u6027 */\n splitProps?: React.AllHTMLAttributes<HTMLDivElement>;\n id?: string;\n /** \u6587\u672C\u6846\u6570\u91CF */\n count?: number;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var VolumeFormItemTypes = "\nexport interface VolumeFormItemProps {\n onChange?: (value: string) => void;\n value?: string;\n /** \u5206\u5272\u7B26 */\n split?: string;\n /** \u5206\u5272\u7B26\u6807\u7B7E\u5C5E\u6027 */\n splitProps?: React.AllHTMLAttributes<HTMLDivElement>;\n id?: string;\n /** \u6587\u672C\u6846\u6570\u91CF */\n count?: number;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WangEditorTypes = "\nexport interface WangEditorProps {\n /** \u5BCC\u6587\u672C\u5185\u5BB9 */\n value?: string;\n /** \u5DE5\u5177\u680F\u914D\u7F6E */\n toolbarConfig?: Partial<IToolbarConfig>;\n /** \u7F16\u8F91\u5668\u914D\u7F6E */\n editorConfig?: Partial<IEditorConfig>;\n /** \u5BCC\u6587\u672C\u5185\u5BB9\u53D8\u5316\u56DE\u8C03 */\n onChange?: (value: string) => void;\n /** \u662F\u5426\u53EA\u8BFB */\n readOnly?: boolean;\n /** \u5DE5\u5177\u680F\u53C2\u6570 */\n toobarProps?: {\n /** \u5DE5\u5177\u680F\u6A21\u5F0F */\n mode?: 'simple' | 'default';\n /** \u5DE5\u5177\u680F\u6837\u5F0F */\n style?: object;\n /** \u5DE5\u5177\u680F\u7C7B\u540D */\n className?: string;\n };\n /** \u7F16\u8F91\u5668\u53C2\u6570 */\n editorProps?: {\n /** \u7F16\u8F91\u5668\u6A21\u5F0F */\n mode?: 'simple' | 'default';\n /** \u7F16\u8F91\u5668\u6837\u5F0F */\n style?: React.CSSProperties;\n /** \u7F16\u8F91\u5668\u7C7B\u540D */\n className?: string;\n };\n /** \u6587\u4EF6id\u8F6C\u6362\u4E3A\u67E5\u770Burl */\n fileIdToViewerUrl?: (fileId?: string) => string;\n}\n \nexport interface WangEditorViewProps extends React.HTMLAttributes<HTMLDivElement> {\n html?: string | TrustedHTML;\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var WangEditorTypes = "\nexport interface WangEditorProps {\n /** \u5BCC\u6587\u672C\u5185\u5BB9 */\n value?: string;\n /** \u5DE5\u5177\u680F\u914D\u7F6E */\n toolbarConfig?: Partial<IToolbarConfig>;\n /** \u7F16\u8F91\u5668\u914D\u7F6E */\n editorConfig?: Partial<IEditorConfig>;\n /** \u5BCC\u6587\u672C\u5185\u5BB9\u53D8\u5316\u56DE\u8C03 */\n onChange?: (value: string) => void;\n /** \u662F\u5426\u53EA\u8BFB */\n readOnly?: boolean;\n /** \u5DE5\u5177\u680F\u53C2\u6570 */\n toobarProps?: {\n /** \u5DE5\u5177\u680F\u6A21\u5F0F */\n mode?: 'simple' | 'default';\n /** \u5DE5\u5177\u680F\u6837\u5F0F */\n style?: object;\n /** \u5DE5\u5177\u680F\u7C7B\u540D */\n className?: string;\n };\n /** \u7F16\u8F91\u5668\u53C2\u6570 */\n editorProps?: {\n /** \u7F16\u8F91\u5668\u6A21\u5F0F */\n mode?: 'simple' | 'default';\n /** \u7F16\u8F91\u5668\u6837\u5F0F */\n style?: React.CSSProperties;\n /** \u7F16\u8F91\u5668\u7C7B\u540D */\n className?: string;\n };\n /** \u6587\u4EF6id\u8F6C\u6362\u4E3A\u67E5\u770Burl */\n fileIdToViewerUrl?: (fileId?: string) => string;\n}\n \nexport interface WangEditorViewProps extends React.HTMLAttributes<HTMLDivElement> {\n html?: string | TrustedHTML;\n}\n";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { DropdownButtonTypes } from "./DropdownButtonTypes";
|
|
2
|
+
export { DynamicIconTypes } from "./DynamicIconTypes";
|
|
3
|
+
export { HighlightStrTypes } from "./HighlightStrTypes";
|
|
4
|
+
export { MyFooterToolbarTypes } from "./MyFooterToolbarTypes";
|
|
5
|
+
export { QrCodeModalTypes } from "./QrCodeModalTypes";
|
|
6
|
+
export { MenuFooterTypes } from "./MenuFooterTypes";
|
|
7
|
+
export { EditMultiLangFormTypes } from "./EditMultiLangFormTypes";
|
|
8
|
+
export { MySelectTypes } from "./MySelectTypes";
|
|
9
|
+
export { MySelectLangTypes } from "./MySelectLangTypes";
|
|
10
|
+
export { PermissionSelectTypes } from "./PermissionSelectTypes";
|
|
11
|
+
export { DatePickerTypes } from "./DatePickerTypes";
|
|
12
|
+
export { RandomAvatarTypes } from "./RandomAvatarTypes";
|
|
13
|
+
export { RefDrawerFormTypes } from "./RefDrawerFormTypes";
|
|
14
|
+
export { ViewTableItemDrawerTypes } from "./ViewTableItemDrawerTypes";
|
|
15
|
+
export { WangEditorTypes } from "./WangEditorTypes";
|
|
16
|
+
export { servicesTypes } from "./servicesTypes";
|
|
17
|
+
export { MyPageContainerTypes } from "./MyPageContainerTypes";
|
|
18
|
+
export { MyTagListTypes } from "./MyTagListTypes";
|
|
19
|
+
export { VolumeFormItemTypes } from "./VolumeFormItemTypes";
|
|
20
|
+
export { ImportExeclTypes } from "./ImportExeclTypes";
|
|
21
|
+
export { MyUploadTypes } from "./MyUploadTypes";
|
|
22
|
+
export { ReportTableTypes } from "./ReportTableTypes";
|
|
23
|
+
export { DicDropDownListTypes } from "./DicDropDownListTypes";
|
|
24
|
+
export { ActionLogDrawerTypes } from "./ActionLogDrawerTypes";
|
|
25
|
+
export { DndTabsTypes } from "./DndTabsTypes";
|
|
26
|
+
export { ImportDataUploadTypes } from "./ImportDataUploadTypes";
|
|
27
|
+
export { AvatarDropdownTypes } from "./AvatarDropdownTypes";
|
|
28
|
+
export { HeaderSearchTypes } from "./HeaderSearchTypes";
|
|
29
|
+
export { ThemeSwitchTypes } from "./ThemeSwitchTypes";
|
|
30
|
+
export { GlobalHeaderTypes } from "./GlobalHeaderTypes";
|
|
31
|
+
export { KeepAliveTabsTypes } from "./KeepAliveTabsTypes";
|
|
32
|
+
export { ExportPageWrapperTypes } from "./ExportPageWrapperTypes";
|
|
33
|
+
export { MySetpsTypes } from "./MySetpsTypes";
|
|
34
|
+
export { CrudTableTypes } from "./CrudTableTypes";
|
|
35
|
+
export { DndTagTypes } from "./DndTagTypes";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { DropdownButtonTypes } from "./DropdownButtonTypes";
|
|
2
|
+
export { DynamicIconTypes } from "./DynamicIconTypes";
|
|
3
|
+
export { HighlightStrTypes } from "./HighlightStrTypes";
|
|
4
|
+
export { MyFooterToolbarTypes } from "./MyFooterToolbarTypes";
|
|
5
|
+
export { QrCodeModalTypes } from "./QrCodeModalTypes";
|
|
6
|
+
export { MenuFooterTypes } from "./MenuFooterTypes";
|
|
7
|
+
export { EditMultiLangFormTypes } from "./EditMultiLangFormTypes";
|
|
8
|
+
export { MySelectTypes } from "./MySelectTypes";
|
|
9
|
+
export { MySelectLangTypes } from "./MySelectLangTypes";
|
|
10
|
+
export { PermissionSelectTypes } from "./PermissionSelectTypes";
|
|
11
|
+
export { DatePickerTypes } from "./DatePickerTypes";
|
|
12
|
+
export { RandomAvatarTypes } from "./RandomAvatarTypes";
|
|
13
|
+
export { RefDrawerFormTypes } from "./RefDrawerFormTypes";
|
|
14
|
+
export { ViewTableItemDrawerTypes } from "./ViewTableItemDrawerTypes";
|
|
15
|
+
export { WangEditorTypes } from "./WangEditorTypes";
|
|
16
|
+
export { servicesTypes } from "./servicesTypes";
|
|
17
|
+
export { MyPageContainerTypes } from "./MyPageContainerTypes";
|
|
18
|
+
export { MyTagListTypes } from "./MyTagListTypes";
|
|
19
|
+
export { VolumeFormItemTypes } from "./VolumeFormItemTypes";
|
|
20
|
+
export { ImportExeclTypes } from "./ImportExeclTypes";
|
|
21
|
+
export { MyUploadTypes } from "./MyUploadTypes";
|
|
22
|
+
export { ReportTableTypes } from "./ReportTableTypes";
|
|
23
|
+
export { DicDropDownListTypes } from "./DicDropDownListTypes";
|
|
24
|
+
export { ActionLogDrawerTypes } from "./ActionLogDrawerTypes";
|
|
25
|
+
export { DndTabsTypes } from "./DndTabsTypes";
|
|
26
|
+
export { ImportDataUploadTypes } from "./ImportDataUploadTypes";
|
|
27
|
+
export { AvatarDropdownTypes } from "./AvatarDropdownTypes";
|
|
28
|
+
export { HeaderSearchTypes } from "./HeaderSearchTypes";
|
|
29
|
+
export { ThemeSwitchTypes } from "./ThemeSwitchTypes";
|
|
30
|
+
export { GlobalHeaderTypes } from "./GlobalHeaderTypes";
|
|
31
|
+
export { KeepAliveTabsTypes } from "./KeepAliveTabsTypes";
|
|
32
|
+
export { ExportPageWrapperTypes } from "./ExportPageWrapperTypes";
|
|
33
|
+
export { MySetpsTypes } from "./MySetpsTypes";
|
|
34
|
+
export { CrudTableTypes } from "./CrudTableTypes";
|
|
35
|
+
export { DndTagTypes } from "./DndTagTypes";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const servicesTypes = "\ndeclare namespace API {\n /** \u8BF7\u6C42\u65B9\u6CD5 */\n type MethodTypes = 'GET' | 'POST' | 'PUT' | 'DELETE';\n /** useActionLocales\u8BF7\u6C42\u65B9\u6CD5\uFF0C\u4F1A\u8F6C\u6362\u4E3Aapi\u7684\u8BF7\u6C42\u65B9\u6CD5\uFF0C\u4F46\u662F\u53EF\u4EE5\u83B7\u53D6\u4E0D\u540C\u7684\u591A\u8BED\u8A00 */\n type AllMethodTypes = MethodTypes | 'SAVE' | 'SUBMIT' | 'GAIN' | 'IMPORT' | 'EXPORT';\n\n /** \u5217\u8868\u63A5\u53E3\u53C2\u6570 */ \n interface TableListParams {\n pageSize?: number;\n pageIndex?: number;\n orderBy?: { [key: string]: any };\n [propName: string]: any;\n }\n\n /** \u5217\u8868hooks\u8FD4\u56DE\u6570\u636E */\n interface Result_TableListType<T = any> {\n data: T[] | [];\n total: number;\n success: boolean;\n error?: AxiosError | null;\n }\n\n /** \u9664\u4E86\u5217\u8868\u63A5\u53E3\uFF0C\u5176\u4ED6\u63A5\u53E3\u8FD4\u56DE\u6570\u636E */\n interface Result_Base<T = any> {\n success: any;\n code: number;\n data: T;\n msg: string;\n }\n\n /** \u5217\u8868\u63A5\u53E3\u8FD4\u56DE\u6570\u636E */\n interface Result_Base_List<T = any> {\n code: number;\n msg: string;\n rows: T;\n data?: T;\n total: number;\n }\n\n /** \u5217\u8868\u64CD\u4F5C\u4EBA\u4FE1\u606F */\n interface User {\n updateBy?: string;\n updateTime?: string;\n createBy?: string;\n createTime?: string;\n }\n}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var servicesTypes = "\ndeclare namespace API {\n /** \u8BF7\u6C42\u65B9\u6CD5 */\n type MethodTypes = 'GET' | 'POST' | 'PUT' | 'DELETE';\n /** useActionLocales\u8BF7\u6C42\u65B9\u6CD5\uFF0C\u4F1A\u8F6C\u6362\u4E3Aapi\u7684\u8BF7\u6C42\u65B9\u6CD5\uFF0C\u4F46\u662F\u53EF\u4EE5\u83B7\u53D6\u4E0D\u540C\u7684\u591A\u8BED\u8A00 */\n type AllMethodTypes = MethodTypes | 'SAVE' | 'SUBMIT' | 'GAIN' | 'IMPORT' | 'EXPORT';\n\n /** \u5217\u8868\u63A5\u53E3\u53C2\u6570 */ \n interface TableListParams {\n pageSize?: number;\n pageIndex?: number;\n orderBy?: { [key: string]: any };\n [propName: string]: any;\n }\n\n /** \u5217\u8868hooks\u8FD4\u56DE\u6570\u636E */\n interface Result_TableListType<T = any> {\n data: T[] | [];\n total: number;\n success: boolean;\n error?: AxiosError | null;\n }\n\n /** \u9664\u4E86\u5217\u8868\u63A5\u53E3\uFF0C\u5176\u4ED6\u63A5\u53E3\u8FD4\u56DE\u6570\u636E */\n interface Result_Base<T = any> {\n success: any;\n code: number;\n data: T;\n msg: string;\n }\n\n /** \u5217\u8868\u63A5\u53E3\u8FD4\u56DE\u6570\u636E */\n interface Result_Base_List<T = any> {\n code: number;\n msg: string;\n rows: T;\n data?: T;\n total: number;\n }\n\n /** \u5217\u8868\u64CD\u4F5C\u4EBA\u4FE1\u606F */\n interface User {\n updateBy?: string;\n updateTime?: string;\n createBy?: string;\n createTime?: string;\n }\n}\n";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import AuthorizeRender from '../index';
|
|
2
|
+
import { getAuthority } from './authority';
|
|
3
|
+
let Authorized = AuthorizeRender(getAuthority());
|
|
4
|
+
|
|
5
|
+
// Reload the rights component
|
|
6
|
+
const reloadAuthorized = (): void => {
|
|
7
|
+
Authorized = AuthorizeRender(getAuthority());
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* hard code
|
|
12
|
+
* block need it。
|
|
13
|
+
*/
|
|
14
|
+
window.reloadAuthorized = reloadAuthorized;
|
|
15
|
+
|
|
16
|
+
export { reloadAuthorized };
|
|
17
|
+
export default Authorized;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { reloadAuthorized } from './Authorized';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 获取授权
|
|
5
|
+
* @param str
|
|
6
|
+
*/
|
|
7
|
+
export function getAuthority(str?: string): string | string[] {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 获取当前用户的授权
|
|
11
|
+
*/
|
|
12
|
+
const authorityString =
|
|
13
|
+
typeof str === 'undefined' && localStorage ? localStorage.getItem('antd-pro-authority') : str;
|
|
14
|
+
|
|
15
|
+
let authority;
|
|
16
|
+
try {
|
|
17
|
+
if (authorityString) {
|
|
18
|
+
authority = JSON.parse(authorityString);
|
|
19
|
+
}
|
|
20
|
+
} catch (e) {
|
|
21
|
+
authority = authorityString;
|
|
22
|
+
}
|
|
23
|
+
if (typeof authority === 'string') {
|
|
24
|
+
return [authority];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return authority;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 设置授权
|
|
32
|
+
* @param authority
|
|
33
|
+
*/
|
|
34
|
+
export function setAuthority(authority: string | string[]): void {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 权限文本处理,如果是文本则转化为数组
|
|
38
|
+
*/
|
|
39
|
+
const proAuthority = typeof authority === 'string' ? [authority] : authority;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 设置当前用户的授权
|
|
43
|
+
*/
|
|
44
|
+
localStorage.setItem('antd-pro-authority', JSON.stringify(proAuthority));
|
|
45
|
+
|
|
46
|
+
// auto reload
|
|
47
|
+
/**
|
|
48
|
+
* 重新加载权限
|
|
49
|
+
*/
|
|
50
|
+
reloadAuthorized();
|
|
51
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CurrentUser } from '../types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 获取权限列表
|
|
5
|
+
* @param functionCode
|
|
6
|
+
* @param currentUser
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export function getAuthorityFunction(functionCode?: string | boolean, currentUser?: CurrentUser): boolean {
|
|
10
|
+
if (!functionCode || !currentUser?.permissions?.length) return false;
|
|
11
|
+
|
|
12
|
+
if(typeof functionCode === 'boolean') return functionCode;
|
|
13
|
+
|
|
14
|
+
return currentUser.permissions.some(
|
|
15
|
+
(permission) => permission.permissionCode.toUpperCase() === functionCode.toUpperCase(),
|
|
16
|
+
);
|
|
17
|
+
}
|