antd-management-fast-framework 1.1.63 → 1.1.67
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/es/customComponents/AMap/UIPoiPicker.d.ts +7 -0
- package/es/customComponents/AMap/UIPoiPicker.js +78 -0
- package/es/customComponents/AMap/UIPositionPicker.d.ts +7 -0
- package/es/customComponents/AMap/UIPositionPicker.js +87 -0
- package/es/customComponents/ActiveChart/index.d.ts +8 -0
- package/es/customComponents/ActiveChart/index.js +168 -0
- package/{src → es}/customComponents/ActiveChart/index.less +0 -0
- package/es/customComponents/AnimalBox/FadeBox/index.d.ts +13 -0
- package/es/customComponents/AnimalBox/FadeBox/index.js +82 -0
- package/{src → es}/customComponents/AnimalBox/FadeBox/index.less +0 -0
- package/es/customComponents/AnimalBox/QueueBox/index.d.ts +14 -0
- package/es/customComponents/AnimalBox/QueueBox/index.js +117 -0
- package/{src → es}/customComponents/AnimalBox/QueueBox/index.less +0 -0
- package/es/customComponents/ArticleListContent/index.d.ts +10 -0
- package/es/customComponents/ArticleListContent/index.js +46 -0
- package/{src → es}/customComponents/ArticleListContent/index.less +0 -0
- package/es/customComponents/Authorized/Authorized.d.ts +6 -0
- package/es/customComponents/Authorized/Authorized.js +33 -0
- package/es/customComponents/Authorized/AuthorizedRoute.d.ts +8 -0
- package/es/customComponents/Authorized/AuthorizedRoute.js +50 -0
- package/es/customComponents/Authorized/CheckPermissions.d.ts +11 -0
- package/es/customComponents/Authorized/CheckPermissions.js +106 -0
- package/es/customComponents/Authorized/PromiseRender.d.ts +7 -0
- package/es/customComponents/Authorized/PromiseRender.js +159 -0
- package/es/customComponents/Authorized/Secured.d.ts +18 -0
- package/{src/customComponents/Authorized/Secured.jsx → es/customComponents/Authorized/Secured.js} +41 -22
- package/es/customComponents/Authorized/index.d.ts +2 -0
- package/es/customComponents/Authorized/index.js +22 -0
- package/es/customComponents/Authorized/renderAuthorize.d.ts +3 -0
- package/es/customComponents/Authorized/renderAuthorize.js +37 -0
- package/es/customComponents/AvatarList/index.d.ts +17 -0
- package/es/customComponents/AvatarList/index.js +99 -0
- package/{src → es}/customComponents/AvatarList/index.less +0 -0
- package/es/customComponents/AvatarList/index.test.d.ts +1 -0
- package/es/customComponents/Canvas/Bubbly/index.d.ts +20 -0
- package/es/customComponents/Canvas/Bubbly/index.js +178 -0
- package/es/customComponents/Canvas/Core/index.d.ts +24 -0
- package/es/customComponents/Canvas/Core/index.js +163 -0
- package/es/customComponents/Canvas/RadarScanning/index.d.ts +20 -0
- package/es/customComponents/Canvas/RadarScanning/index.js +247 -0
- package/{src → es}/customComponents/Canvas/Ribbon.7z +0 -0
- package/es/customComponents/Canvas/Spirit/index.d.ts +19 -0
- package/es/customComponents/Canvas/Spirit/index.js +115 -0
- package/es/customComponents/Canvas/index.d.ts +12 -0
- package/es/customComponents/Canvas/index.js +27 -0
- package/es/customComponents/CenterBox/index.d.ts +6 -0
- package/es/customComponents/CenterBox/index.js +70 -0
- package/es/customComponents/Charts/Bar/index.d.ts +6 -0
- package/es/customComponents/Charts/Bar/index.js +129 -0
- package/es/customComponents/Charts/ChartCard/index.d.ts +7 -0
- package/es/customComponents/Charts/ChartCard/index.js +167 -0
- package/{src → es}/customComponents/Charts/ChartCard/index.less +0 -0
- package/es/customComponents/Charts/Field/index.d.ts +6 -0
- package/es/customComponents/Charts/Field/index.js +37 -0
- package/{src → es}/customComponents/Charts/Field/index.less +0 -0
- package/es/customComponents/Charts/Gauge/index.d.ts +2 -0
- package/es/customComponents/Charts/Gauge/index.js +185 -0
- package/es/customComponents/Charts/MiniArea/index.d.ts +2 -0
- package/es/customComponents/Charts/MiniArea/index.js +107 -0
- package/es/customComponents/Charts/MiniBar/index.d.ts +2 -0
- package/es/customComponents/Charts/MiniBar/index.js +62 -0
- package/es/customComponents/Charts/MiniProgress/index.d.ts +8 -0
- package/es/customComponents/Charts/MiniProgress/index.js +55 -0
- package/{src → es}/customComponents/Charts/MiniProgress/index.less +0 -0
- package/es/customComponents/Charts/Pie/index.d.ts +8 -0
- package/es/customComponents/Charts/Pie/index.js +195 -0
- package/{src → es}/customComponents/Charts/Pie/index.less +0 -0
- package/es/customComponents/Charts/TagCloud/index.d.ts +14 -0
- package/es/customComponents/Charts/TagCloud/index.js +279 -0
- package/{src → es}/customComponents/Charts/TagCloud/index.less +0 -0
- package/es/customComponents/Charts/TimelineChart/index.d.ts +2 -0
- package/es/customComponents/Charts/TimelineChart/index.js +173 -0
- package/{src → es}/customComponents/Charts/TimelineChart/index.less +0 -0
- package/es/customComponents/Charts/WaterWave/index.d.ts +11 -0
- package/es/customComponents/Charts/WaterWave/index.js +319 -0
- package/{src → es}/customComponents/Charts/WaterWave/index.less +0 -0
- package/es/customComponents/Charts/autoHeight.d.ts +8 -0
- package/es/customComponents/Charts/autoHeight.js +123 -0
- package/es/customComponents/Charts/bizcharts.d.ts +2 -0
- package/es/customComponents/Charts/bizcharts.js +17 -0
- package/es/customComponents/Charts/index.d.ts +27 -0
- package/es/customComponents/Charts/index.js +119 -0
- package/{src → es}/customComponents/Charts/index.less +0 -0
- package/es/customComponents/ColorText/index.d.ts +18 -0
- package/es/customComponents/ColorText/index.js +127 -0
- package/es/customComponents/Countdown/index.d.ts +12 -0
- package/es/customComponents/Countdown/index.js +158 -0
- package/{src → es}/customComponents/Countdown/index.less +0 -0
- package/es/customComponents/DataPreviewDrawer/index.d.ts +13 -0
- package/es/customComponents/DataPreviewDrawer/index.js +176 -0
- package/{src → es}/customComponents/DataPreviewDrawer/index.less +0 -0
- package/es/customComponents/DecorateAvatar/index.d.ts +33 -0
- package/es/customComponents/DecorateAvatar/index.js +198 -0
- package/es/customComponents/DisplayCopyData/index.d.ts +9 -0
- package/es/customComponents/DisplayCopyData/index.js +88 -0
- package/es/customComponents/EditableItem/index.d.ts +7 -0
- package/es/customComponents/EditableItem/index.js +121 -0
- package/{src → es}/customComponents/EditableItem/index.less +0 -0
- package/es/customComponents/EditableLinkGroup/index.d.ts +22 -0
- package/es/customComponents/EditableLinkGroup/index.js +99 -0
- package/{src → es}/customComponents/EditableLinkGroup/index.less +0 -0
- package/es/customComponents/Ellipsis/index.d.ts +19 -0
- package/es/customComponents/Ellipsis/index.js +380 -0
- package/{src → es}/customComponents/Ellipsis/index.less +0 -0
- package/es/customComponents/Ellipsis/index.test.d.ts +1 -0
- package/es/customComponents/EllipsisCustom/index.d.ts +19 -0
- package/es/customComponents/EllipsisCustom/index.js +355 -0
- package/{src → es}/customComponents/EllipsisCustom/index.less +0 -0
- package/es/customComponents/EverySpace/index.d.ts +15 -0
- package/es/customComponents/EverySpace/index.js +105 -0
- package/es/customComponents/Exception/index.d.ts +6 -0
- package/es/customComponents/Exception/index.js +121 -0
- package/{src → es}/customComponents/Exception/index.less +0 -0
- package/es/customComponents/Exception/typeConfig.d.ts +18 -0
- package/{src → es}/customComponents/Exception/typeConfig.js +13 -7
- package/es/customComponents/FigureRange/index.d.ts +126 -0
- package/es/customComponents/FigureRange/index.js +335 -0
- package/{src → es}/customComponents/FigureRange/index.less +0 -0
- package/es/customComponents/FileBase64Upload/index.d.ts +22 -0
- package/es/customComponents/FileBase64Upload/index.js +205 -0
- package/es/customComponents/FlexBox/index.d.ts +22 -0
- package/es/customComponents/FlexBox/index.js +152 -0
- package/es/customComponents/FlexText/index.d.ts +17 -0
- package/es/customComponents/FlexText/index.js +96 -0
- package/{src → es}/customComponents/FlexText/index.less +0 -0
- package/es/customComponents/FooterToolbar/index.d.ts +10 -0
- package/es/customComponents/FooterToolbar/index.js +132 -0
- package/{src → es}/customComponents/FooterToolbar/index.less +0 -0
- package/es/customComponents/FromDisplayItem/index.d.ts +13 -0
- package/es/customComponents/FromDisplayItem/index.js +73 -0
- package/{src → es}/customComponents/FromDisplayItem/index.less +0 -0
- package/es/customComponents/FunctionComponent/index.d.ts +353 -0
- package/es/customComponents/FunctionComponent/index.js +2443 -0
- package/{src → es}/customComponents/FunctionComponent/index.less +0 -0
- package/es/customComponents/FunctionSupplement/Whether/index.d.ts +46 -0
- package/es/customComponents/FunctionSupplement/Whether/index.js +181 -0
- package/es/customComponents/GlobalFooter/index.d.ts +6 -0
- package/es/customComponents/GlobalFooter/index.js +39 -0
- package/{src → es}/customComponents/GlobalFooter/index.less +0 -0
- package/es/customComponents/HelpBox/index.d.ts +16 -0
- package/es/customComponents/HelpBox/index.js +166 -0
- package/{src → es}/customComponents/HelpBox/index.less +0 -0
- package/es/customComponents/HelpCard/index.d.ts +17 -0
- package/es/customComponents/HelpCard/index.js +91 -0
- package/es/customComponents/HtmlBox/index.d.ts +11 -0
- package/es/customComponents/HtmlBox/index.js +98 -0
- package/{src → es}/customComponents/HtmlBox/index.less +0 -0
- package/es/customComponents/IconInfo/index.d.ts +27 -0
- package/es/customComponents/IconInfo/index.js +281 -0
- package/{src → es}/customComponents/IconInfo/index.less +0 -0
- package/es/customComponents/ImageBox/index.d.ts +39 -0
- package/es/customComponents/ImageBox/index.js +376 -0
- package/{src → es}/customComponents/ImageBox/index.less +0 -0
- package/es/customComponents/ImageContentPreview/index.d.ts +13 -0
- package/es/customComponents/ImageContentPreview/index.js +173 -0
- package/{src → es}/customComponents/ImageContentPreview/index.less +0 -0
- package/es/customComponents/ImageUpload/index.d.ts +33 -0
- package/es/customComponents/ImageUpload/index.js +367 -0
- package/{src → es}/customComponents/ImageUpload/index.less +0 -0
- package/es/customComponents/Login/LoginItem.d.ts +2 -0
- package/es/customComponents/Login/LoginItem.js +237 -0
- package/es/customComponents/Login/LoginSubmit.d.ts +5 -0
- package/es/customComponents/Login/LoginSubmit.js +48 -0
- package/es/customComponents/Login/LoginTab.d.ts +5 -0
- package/es/customComponents/Login/LoginTab.js +100 -0
- package/es/customComponents/Login/index.d.ts +38 -0
- package/es/customComponents/Login/index.js +222 -0
- package/{src → es}/customComponents/Login/index.less +0 -0
- package/es/customComponents/Login/loginContext.d.ts +2 -0
- package/es/customComponents/Login/loginContext.js +12 -0
- package/es/customComponents/Login/map.d.ts +71 -0
- package/es/customComponents/Login/map.js +76 -0
- package/es/customComponents/MobileContainor/index.d.ts +6 -0
- package/es/customComponents/MobileContainor/index.js +77 -0
- package/{src → es}/customComponents/MobileContainor/index.less +0 -0
- package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +10 -0
- package/es/customComponents/NoticeIconCustom/NoticeList.js +83 -0
- package/{src → es}/customComponents/NoticeIconCustom/NoticeList.less +0 -0
- package/es/customComponents/NoticeIconCustom/index.d.ts +24 -0
- package/es/customComponents/NoticeIconCustom/index.js +201 -0
- package/{src → es}/customComponents/NoticeIconCustom/index.less +0 -0
- package/es/customComponents/NumberInfo/index.d.ts +12 -0
- package/es/customComponents/NumberInfo/index.js +60 -0
- package/{src → es}/customComponents/NumberInfo/index.less +0 -0
- package/es/customComponents/PercentageBox/index.d.ts +11 -0
- package/es/customComponents/PercentageBox/index.js +70 -0
- package/es/customComponents/PriceBox/index.d.ts +17 -0
- package/es/customComponents/PriceBox/index.js +115 -0
- package/es/customComponents/Result/index.d.ts +9 -0
- package/es/customComponents/Result/index.js +57 -0
- package/{src → es}/customComponents/Result/index.less +0 -0
- package/es/customComponents/StandardFormRow/index.d.ts +9 -0
- package/es/customComponents/StandardFormRow/index.js +47 -0
- package/{src → es}/customComponents/StandardFormRow/index.less +0 -0
- package/es/customComponents/StandardTable/index.d.ts +12 -0
- package/es/customComponents/StandardTable/index.js +217 -0
- package/{src → es}/customComponents/StandardTable/index.less +0 -0
- package/es/customComponents/StandardTableCustom/index.d.ts +17 -0
- package/es/customComponents/StandardTableCustom/index.js +236 -0
- package/{src → es}/customComponents/StandardTableCustom/index.less +0 -0
- package/es/customComponents/StatusBar/index.d.ts +12 -0
- package/es/customComponents/StatusBar/index.js +128 -0
- package/es/customComponents/TagSelect/index.d.ts +29 -0
- package/es/customComponents/TagSelect/index.js +226 -0
- package/{src → es}/customComponents/TagSelect/index.less +0 -0
- package/es/customComponents/TimeLineCustom/index.d.ts +32 -0
- package/es/customComponents/TimeLineCustom/index.js +263 -0
- package/{src → es}/customComponents/TimeLineCustom/index.less +0 -0
- package/es/customComponents/Trend/index.d.ts +10 -0
- package/es/customComponents/Trend/index.js +49 -0
- package/{src → es}/customComponents/Trend/index.less +0 -0
- package/es/customComponents/VerticalBox/index.d.ts +14 -0
- package/es/customComponents/VerticalBox/index.js +138 -0
- package/{src → es}/customComponents/VerticalBox/index.less +0 -0
- package/es/customComponents/VideoUpload/index.d.ts +30 -0
- package/es/customComponents/VideoUpload/index.js +472 -0
- package/es/customComponents/_utils/pathTools.d.ts +1 -0
- package/es/customComponents/_utils/pathTools.js +15 -0
- package/es/customComponents/_utils/pathTools.test.d.ts +1 -0
- package/es/customComponents/index.d.ts +7 -0
- package/{src → es}/customComponents/index.js +9 -2
- package/es/framework/AuthorizationWrapper/index.d.ts +9 -0
- package/es/framework/AuthorizationWrapper/index.js +120 -0
- package/es/framework/Base/index.d.ts +17 -0
- package/es/framework/Base/index.js +141 -0
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +15 -0
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +116 -0
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +19 -0
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +177 -0
- package/es/framework/Common/index.d.ts +151 -0
- package/es/framework/Common/index.js +1867 -0
- package/{src → es}/framework/Common/index.less +0 -0
- package/es/framework/Core/index.d.ts +9 -0
- package/es/framework/Core/index.js +79 -0
- package/es/framework/CustomBase/index.d.ts +6 -0
- package/es/framework/CustomBase/index.js +77 -0
- package/es/framework/CustomWrapper/Supplement/index.d.ts +10 -0
- package/es/framework/CustomWrapper/Supplement/index.js +64 -0
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +4 -0
- package/es/framework/CustomWrapper/SupplementCore/index.js +112 -0
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +4 -0
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +58 -0
- package/es/framework/DataDrawer/Base/index.d.ts +54 -0
- package/es/framework/DataDrawer/Base/index.js +385 -0
- package/{src → es}/framework/DataDrawer/Base/index.less +0 -0
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +5 -0
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +102 -0
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +4 -0
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +81 -0
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +5 -0
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +86 -0
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +5 -0
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +85 -0
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +4 -0
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +83 -0
- package/es/framework/DataForm/BaseAddForm/index.d.ts +34 -0
- package/es/framework/DataForm/BaseAddForm/index.js +274 -0
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +10 -0
- package/es/framework/DataForm/BaseUpdateForm/index.js +189 -0
- package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +4 -0
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +62 -0
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +4 -0
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +45 -0
- package/es/framework/DataListView/Base/index.d.ts +141 -0
- package/es/framework/DataListView/Base/index.js +1391 -0
- package/{src → es}/framework/DataListView/Base/index.less +0 -0
- package/es/framework/DataListView/BatchAction/index.d.ts +21 -0
- package/es/framework/DataListView/BatchAction/index.js +97 -0
- package/{src → es}/framework/DataListView/BatchAction/index.less +0 -0
- package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +8 -0
- package/es/framework/DataListView/ColumnSetting/DndItem.js +155 -0
- package/es/framework/DataListView/ColumnSetting/index.d.ts +3 -0
- package/es/framework/DataListView/ColumnSetting/index.js +366 -0
- package/{src → es}/framework/DataListView/ColumnSetting/index.less +0 -0
- package/es/framework/DataListView/DensityAction/index.d.ts +6 -0
- package/es/framework/DataListView/DensityAction/index.js +112 -0
- package/es/framework/DataMenuContainer/index.d.ts +30 -0
- package/es/framework/DataMenuContainer/index.js +341 -0
- package/es/framework/DataMenuContainer/index.less +107 -0
- package/es/framework/DataModal/Base/index.d.ts +67 -0
- package/es/framework/DataModal/Base/index.js +292 -0
- package/{src → es}/framework/DataModal/Base/index.less +0 -0
- package/es/framework/DataModal/BaseAddModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseAddModal/index.js +70 -0
- package/es/framework/DataModal/BaseLoadModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseLoadModal/index.js +81 -0
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +10 -0
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +135 -0
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseSelectModal/index.js +69 -0
- package/es/framework/DataModal/BaseUpdateModal/index.d.ts +4 -0
- package/es/framework/DataModal/BaseUpdateModal/index.js +45 -0
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +10 -0
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +164 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +4 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +58 -0
- package/{src → es}/framework/DataMultiPageView/InnerMultiPage/index.less +0 -0
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +24 -0
- package/es/framework/DataMultiPageView/MultiPage/index.js +480 -0
- package/{src → es}/framework/DataMultiPageView/MultiPage/index.less +0 -0
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +32 -0
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +535 -0
- package/{src → es}/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -0
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +11 -0
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +121 -0
- package/es/framework/DataOperation/Base/index.d.ts +76 -0
- package/es/framework/DataOperation/Base/index.js +369 -0
- package/es/framework/DataOperation/BaseView/index.d.ts +11 -0
- package/es/framework/DataOperation/BaseView/index.js +74 -0
- package/es/framework/DataOperation/BaseWindow/index.d.ts +53 -0
- package/es/framework/DataOperation/BaseWindow/index.js +342 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +5 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +58 -0
- package/{src → es}/framework/DataSinglePageView/InnerSinglePage/index.less +0 -0
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +13 -0
- package/es/framework/DataSinglePageView/SinglePage/index.js +282 -0
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +25 -0
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +454 -0
- package/{src → es}/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -0
- package/es/framework/DataSingleView/DataCore/index.d.ts +29 -0
- package/es/framework/DataSingleView/DataCore/index.js +269 -0
- package/{src → es}/framework/DataSingleView/DataCore/index.less +0 -0
- package/es/framework/DataSingleView/DataLoad/index.d.ts +52 -0
- package/es/framework/DataSingleView/DataLoad/index.js +169 -0
- package/es/framework/DataTabContainer/index.d.ts +46 -0
- package/es/framework/DataTabContainer/index.js +315 -0
- package/{src → es}/framework/DataTabContainer/index.less +0 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +24 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +184 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.d.ts +20 -0
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +191 -0
- package/es/framework/Wrapper/index.d.ts +4 -0
- package/es/framework/Wrapper/index.js +58 -0
- package/es/framework/index.d.ts +7 -0
- package/{src → es}/framework/index.js +9 -2
- package/es/index.d.ts +1 -0
- package/es/index.js +8 -0
- package/es/utils/Authorized.d.ts +4 -0
- package/es/utils/Authorized.js +49 -0
- package/es/utils/Yuan.d.ts +10 -0
- package/es/utils/Yuan.js +92 -0
- package/es/utils/actionAssist.d.ts +39 -0
- package/es/utils/actionAssist.js +286 -0
- package/es/utils/authority.d.ts +4 -0
- package/es/utils/authority.js +89 -0
- package/es/utils/constants.d.ts +329 -0
- package/{src → es}/utils/constants.js +140 -115
- package/es/utils/defaultSettingsSpecial.d.ts +33 -0
- package/es/utils/defaultSettingsSpecial.js +276 -0
- package/es/utils/globalModel.d.ts +17 -0
- package/es/utils/globalModel.js +40 -0
- package/es/utils/globalStorageAssist.d.ts +74 -0
- package/es/utils/globalStorageAssist.js +210 -0
- package/es/utils/proLayoutCollection.d.ts +11 -0
- package/es/utils/proLayoutCollection.js +37 -0
- package/es/utils/request.d.ts +5 -0
- package/es/utils/request.js +202 -0
- package/es/utils/requestAssistor.d.ts +63 -0
- package/es/utils/requestAssistor.js +538 -0
- package/es/utils/tools.d.ts +736 -0
- package/es/utils/tools.js +2176 -0
- package/es/utils/utils.d.ts +5 -0
- package/es/utils/utils.js +70 -0
- package/{src → es}/utils/utils.less +0 -0
- package/es/utils/utils.test.d.ts +1 -0
- package/es/utils/virtualRequest.d.ts +50 -0
- package/es/utils/virtualRequest.js +325 -0
- package/lib/customComponents/FileBase64Upload/index.js +3 -1
- package/lib/customComponents/FunctionComponent/index.d.ts +8 -0
- package/lib/customComponents/FunctionComponent/index.js +106 -77
- package/lib/customComponents/ImageUpload/index.js +3 -1
- package/lib/customComponents/VideoUpload/index.js +3 -1
- package/lib/framework/Base/index.d.ts +2 -0
- package/lib/framework/Base/index.js +6 -0
- package/lib/framework/Common/index.d.ts +14 -1
- package/lib/framework/Common/index.js +143 -85
- package/lib/framework/DataForm/BaseUpdateFormContent/index.d.ts +4 -0
- package/lib/framework/DataForm/BaseUpdateFormContent/index.js +62 -0
- package/lib/framework/DataForm/BaseUpdateFormTab/index.d.ts +2 -2
- package/lib/framework/DataForm/BaseUpdateFormTab/index.js +4 -21
- package/lib/framework/DataMenuContainer/index.d.ts +30 -0
- package/lib/framework/DataMenuContainer/index.js +341 -0
- package/lib/framework/DataMenuContainer/index.less +107 -0
- package/lib/utils/constants.d.ts +8 -0
- package/lib/utils/constants.js +7 -1
- package/lib/utils/defaultSettingsSpecial.d.ts +3 -0
- package/lib/utils/defaultSettingsSpecial.js +30 -0
- package/lib/utils/tools.d.ts +15 -0
- package/lib/utils/tools.js +72 -2
- package/package.json +15 -11
- package/LICENSE.md +0 -21
- package/lib/framework/DataForm/BaseUpdateForm/index.less +0 -3
- package/lib/framework/DataForm/BaseUpdateFormTab/index.less +0 -3
- package/src/customComponents/AMap/UIPoiPicker.js +0 -32
- package/src/customComponents/AMap/UIPositionPicker.js +0 -42
- package/src/customComponents/ActiveChart/index.jsx +0 -106
- package/src/customComponents/AnimalBox/FadeBox/index.jsx +0 -26
- package/src/customComponents/AnimalBox/QueueBox/index.jsx +0 -72
- package/src/customComponents/ArticleListContent/index.jsx +0 -22
- package/src/customComponents/Authorized/Authorized.jsx +0 -22
- package/src/customComponents/Authorized/AuthorizedRoute.jsx +0 -35
- package/src/customComponents/Authorized/CheckPermissions.jsx +0 -80
- package/src/customComponents/Authorized/PromiseRender.jsx +0 -79
- package/src/customComponents/Authorized/index.jsx +0 -9
- package/src/customComponents/Authorized/renderAuthorize.js +0 -27
- package/src/customComponents/AvatarList/demo/maxLength.md +0 -46
- package/src/customComponents/AvatarList/demo/simple.md +0 -30
- package/src/customComponents/AvatarList/index.en-US.md +0 -24
- package/src/customComponents/AvatarList/index.jsx +0 -69
- package/src/customComponents/AvatarList/index.test.js +0 -31
- package/src/customComponents/AvatarList/index.zh-CN.md +0 -25
- package/src/customComponents/Canvas/Bubbly/index.jsx +0 -117
- package/src/customComponents/Canvas/Core/index.jsx +0 -120
- package/src/customComponents/Canvas/RadarScanning/index.jsx +0 -188
- package/src/customComponents/Canvas/Spirit/index.jsx +0 -75
- package/src/customComponents/Canvas/index.jsx +0 -13
- package/src/customComponents/CenterBox/index.jsx +0 -24
- package/src/customComponents/Charts/Bar/index.jsx +0 -67
- package/src/customComponents/Charts/ChartCard/index.jsx +0 -112
- package/src/customComponents/Charts/Field/index.jsx +0 -11
- package/src/customComponents/Charts/Gauge/index.jsx +0 -184
- package/src/customComponents/Charts/MiniArea/index.jsx +0 -99
- package/src/customComponents/Charts/MiniBar/index.jsx +0 -49
- package/src/customComponents/Charts/MiniProgress/index.jsx +0 -45
- package/src/customComponents/Charts/Pie/index.jsx +0 -129
- package/src/customComponents/Charts/TagCloud/index.jsx +0 -200
- package/src/customComponents/Charts/TimelineChart/index.jsx +0 -151
- package/src/customComponents/Charts/WaterWave/index.jsx +0 -258
- package/src/customComponents/Charts/autoHeight.jsx +0 -71
- package/src/customComponents/Charts/bizcharts.jsx +0 -3
- package/src/customComponents/Charts/index.jsx +0 -44
- package/src/customComponents/ColorText/index.jsx +0 -73
- package/src/customComponents/Countdown/demo/simple.md +0 -25
- package/src/customComponents/Countdown/index.en-US.md +0 -15
- package/src/customComponents/Countdown/index.jsx +0 -122
- package/src/customComponents/Countdown/index.zh-CN.md +0 -16
- package/src/customComponents/DataPreviewDrawer/index.jsx +0 -139
- package/src/customComponents/DecorateAvatar/index.jsx +0 -149
- package/src/customComponents/DisplayCopyData/index.js +0 -50
- package/src/customComponents/EditableItem/index.jsx +0 -56
- package/src/customComponents/EditableLinkGroup/index.jsx +0 -52
- package/src/customComponents/Ellipsis/demo/line.md +0 -40
- package/src/customComponents/Ellipsis/demo/number.md +0 -32
- package/src/customComponents/Ellipsis/index.en-US.md +0 -16
- package/src/customComponents/Ellipsis/index.jsx +0 -286
- package/src/customComponents/Ellipsis/index.test.js +0 -13
- package/src/customComponents/Ellipsis/index.zh-CN.md +0 -17
- package/src/customComponents/EllipsisCustom/index.jsx +0 -293
- package/src/customComponents/EverySpace/index.jsx +0 -64
- package/src/customComponents/Exception/demo/403.md +0 -27
- package/src/customComponents/Exception/demo/404.md +0 -20
- package/src/customComponents/Exception/demo/500.md +0 -20
- package/src/customComponents/Exception/index.en-US.md +0 -20
- package/src/customComponents/Exception/index.jsx +0 -53
- package/src/customComponents/Exception/index.zh-CN.md +0 -21
- package/src/customComponents/FigureRange/index.jsx +0 -290
- package/src/customComponents/FileBase64Upload/index.jsx +0 -139
- package/src/customComponents/FlexBox/index.jsx +0 -104
- package/src/customComponents/FlexText/index.jsx +0 -59
- package/src/customComponents/FooterToolbar/demo/basic.md +0 -45
- package/src/customComponents/FooterToolbar/index.en-US.md +0 -18
- package/src/customComponents/FooterToolbar/index.jsx +0 -51
- package/src/customComponents/FooterToolbar/index.zh-CN.md +0 -19
- package/src/customComponents/FromDisplayItem/index.jsx +0 -23
- package/src/customComponents/FunctionComponent/index.jsx +0 -2613
- package/src/customComponents/FunctionSupplement/Whether/index.jsx +0 -139
- package/src/customComponents/GlobalFooter/index.jsx +0 -29
- package/src/customComponents/GlobalFooter/index.md +0 -17
- package/src/customComponents/HelpBox/index.jsx +0 -146
- package/src/customComponents/HelpCard/index.jsx +0 -48
- package/src/customComponents/HtmlBox/index.jsx +0 -36
- package/src/customComponents/IconInfo/index.jsx +0 -302
- package/src/customComponents/ImageBox/index.jsx +0 -402
- package/src/customComponents/ImageContentPreview/index.jsx +0 -146
- package/src/customComponents/ImageUpload/index.jsx +0 -340
- package/src/customComponents/Login/LoginItem.js +0 -144
- package/src/customComponents/Login/LoginSubmit.js +0 -23
- package/src/customComponents/Login/LoginTab.js +0 -41
- package/src/customComponents/Login/demo/basic.md +0 -142
- package/src/customComponents/Login/index.en-US.md +0 -49
- package/src/customComponents/Login/index.jsx +0 -138
- package/src/customComponents/Login/index.zh-CN.md +0 -50
- package/src/customComponents/Login/loginContext.js +0 -4
- package/src/customComponents/Login/map.js +0 -71
- package/src/customComponents/MobileContainor/index.jsx +0 -29
- package/src/customComponents/NoticeIconCustom/NoticeList.js +0 -78
- package/src/customComponents/NoticeIconCustom/demo/basic.md +0 -12
- package/src/customComponents/NoticeIconCustom/demo/popover.md +0 -202
- package/src/customComponents/NoticeIconCustom/index.jsx +0 -117
- package/src/customComponents/NumberInfo/demo/basic.md +0 -31
- package/src/customComponents/NumberInfo/index.en-US.md +0 -19
- package/src/customComponents/NumberInfo/index.jsx +0 -59
- package/src/customComponents/NumberInfo/index.zh-CN.md +0 -20
- package/src/customComponents/PercentageBox/index.jsx +0 -23
- package/src/customComponents/PriceBox/index.jsx +0 -73
- package/src/customComponents/Result/index.jsx +0 -30
- package/src/customComponents/Result/index.md +0 -20
- package/src/customComponents/StandardFormRow/index.jsx +0 -24
- package/src/customComponents/StandardTable/index.jsx +0 -126
- package/src/customComponents/StandardTableCustom/index.jsx +0 -156
- package/src/customComponents/StatusBar/index.jsx +0 -74
- package/src/customComponents/TagSelect/demo/controlled.md +0 -54
- package/src/customComponents/TagSelect/demo/expandable.md +0 -32
- package/src/customComponents/TagSelect/demo/simple.md +0 -26
- package/src/customComponents/TagSelect/index.jsx +0 -141
- package/src/customComponents/TagSelect/index.md +0 -29
- package/src/customComponents/TimeLineCustom/index.jsx +0 -225
- package/src/customComponents/Trend/demo/basic.md +0 -20
- package/src/customComponents/Trend/demo/reverse.md +0 -22
- package/src/customComponents/Trend/index.jsx +0 -35
- package/src/customComponents/Trend/index.md +0 -22
- package/src/customComponents/VerticalBox/index.jsx +0 -81
- package/src/customComponents/VideoUpload/index.jsx +0 -422
- package/src/customComponents/_utils/pathTools.js +0 -7
- package/src/customComponents/_utils/pathTools.test.js +0 -20
- package/src/framework/AuthorizationWrapper/index.jsx +0 -68
- package/src/framework/Base/index.jsx +0 -93
- package/src/framework/ButtonExtension/SelectButton/Base/index.jsx +0 -67
- package/src/framework/ButtonExtension/SelectButton/InteractiveBase/index.jsx +0 -130
- package/src/framework/Common/index.jsx +0 -2235
- package/src/framework/Core/index.jsx +0 -34
- package/src/framework/CustomBase/index.jsx +0 -33
- package/src/framework/CustomWrapper/Supplement/index.jsx +0 -17
- package/src/framework/CustomWrapper/SupplementCore/index.jsx +0 -65
- package/src/framework/CustomWrapper/SupplementWrapper/index.jsx +0 -11
- package/src/framework/DataDrawer/Base/index.jsx +0 -314
- package/src/framework/DataDrawer/BaseAddDrawer/index.jsx +0 -50
- package/src/framework/DataDrawer/BaseLoadDrawer/index.jsx +0 -20
- package/src/framework/DataDrawer/BaseNeedlessLoadDrawer/index.jsx +0 -37
- package/src/framework/DataDrawer/BaseSaveDrawer/index.jsx +0 -35
- package/src/framework/DataDrawer/BaseUpdateDrawer/index.jsx +0 -33
- package/src/framework/DataForm/BaseAddForm/index.jsx +0 -231
- package/src/framework/DataForm/BaseUpdateForm/index.jsx +0 -145
- package/src/framework/DataForm/BaseUpdateForm/index.less +0 -3
- package/src/framework/DataForm/BaseUpdateFormTab/index.jsx +0 -18
- package/src/framework/DataForm/BaseUpdateFormTab/index.less +0 -3
- package/src/framework/DataListView/Base/index.jsx +0 -1583
- package/src/framework/DataListView/BatchAction/index.jsx +0 -78
- package/src/framework/DataListView/ColumnSetting/DndItem.jsx +0 -105
- package/src/framework/DataListView/ColumnSetting/index.jsx +0 -346
- package/src/framework/DataListView/DensityAction/index.jsx +0 -46
- package/src/framework/DataModal/Base/index.jsx +0 -238
- package/src/framework/DataModal/BaseAddModal/index.jsx +0 -17
- package/src/framework/DataModal/BaseLoadModal/index.jsx +0 -30
- package/src/framework/DataModal/BaseNeedlessLoadModal/index.jsx +0 -83
- package/src/framework/DataModal/BaseSelectModal/index.jsx +0 -28
- package/src/framework/DataModal/BaseUpdateModal/index.jsx +0 -5
- package/src/framework/DataModal/BaseUpdateTransferModal/index.jsx +0 -103
- package/src/framework/DataMultiPageView/InnerMultiPage/index.jsx +0 -18
- package/src/framework/DataMultiPageView/MultiPage/index.jsx +0 -461
- package/src/framework/DataMultiPageView/MultiPageDrawer/index.jsx +0 -549
- package/src/framework/DataMultiPageView/MultiPageSelectDrawer/index.jsx +0 -50
- package/src/framework/DataOperation/Base/index.jsx +0 -323
- package/src/framework/DataOperation/BaseView/index.jsx +0 -26
- package/src/framework/DataOperation/BaseWindow/index.jsx +0 -291
- package/src/framework/DataSinglePageView/InnerSinglePage/index.jsx +0 -18
- package/src/framework/DataSinglePageView/SinglePage/index.jsx +0 -245
- package/src/framework/DataSinglePageView/SinglePageDrawer/index.jsx +0 -474
- package/src/framework/DataSingleView/DataCore/index.jsx +0 -216
- package/src/framework/DataSingleView/DataLoad/index.jsx +0 -127
- package/src/framework/DataTabContainer/index.jsx +0 -304
- package/src/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.jsx +0 -149
- package/src/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.jsx +0 -140
- package/src/framework/Wrapper/index.jsx +0 -10
- package/src/utils/Authorized.js +0 -42
- package/src/utils/Yuan.js +0 -31
- package/src/utils/actionAssist.js +0 -231
- package/src/utils/authority.js +0 -85
- package/src/utils/defaultSettingsSpecial.js +0 -235
- package/src/utils/globalModel.js +0 -33
- package/src/utils/globalStorageAssist.js +0 -193
- package/src/utils/proLayoutCollection.js +0 -25
- package/src/utils/request.js +0 -160
- package/src/utils/requestAssistor.js +0 -485
- package/src/utils/tools.js +0 -1947
- package/src/utils/utils.js +0 -45
- package/src/utils/utils.test.js +0 -35
- package/src/utils/virtualRequest.js +0 -216
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/avatar/style");
|
|
9
|
+
|
|
10
|
+
var _avatar = _interopRequireDefault(require("antd/es/avatar"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
15
|
+
|
|
16
|
+
var _constants = require("../../utils/constants");
|
|
17
|
+
|
|
18
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var ArticleListContent = function ArticleListContent(_ref) {
|
|
23
|
+
var _ref$data = _ref.data,
|
|
24
|
+
content = _ref$data.content,
|
|
25
|
+
updatedAt = _ref$data.updatedAt,
|
|
26
|
+
avatar = _ref$data.avatar,
|
|
27
|
+
owner = _ref$data.owner,
|
|
28
|
+
href = _ref$data.href;
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
|
+
className: _index["default"].listContent
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
|
+
className: _index["default"].description
|
|
33
|
+
}, content), /*#__PURE__*/_react["default"].createElement("div", {
|
|
34
|
+
className: _index["default"].extra
|
|
35
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
36
|
+
src: avatar,
|
|
37
|
+
size: "small"
|
|
38
|
+
}), /*#__PURE__*/_react["default"].createElement("a", {
|
|
39
|
+
href: href
|
|
40
|
+
}, owner), " \u53D1\u5E03\u5728 ", /*#__PURE__*/_react["default"].createElement("a", {
|
|
41
|
+
href: href
|
|
42
|
+
}, href), /*#__PURE__*/_react["default"].createElement("em", null, (0, _moment["default"])(updatedAt).format(_constants.datetimeFormat.yearMonthDayHourMinute))));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var _default = ArticleListContent;
|
|
46
|
+
exports["default"] = _default;
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
require("antd/es/result/style");
|
|
9
|
+
|
|
10
|
+
var _result = _interopRequireDefault(require("antd/es/result"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _CheckPermissions = _interopRequireDefault(require("./CheckPermissions"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var Authorized = function Authorized(_ref) {
|
|
19
|
+
var children = _ref.children,
|
|
20
|
+
authority = _ref.authority,
|
|
21
|
+
_ref$noMatch = _ref.noMatch,
|
|
22
|
+
noMatch = _ref$noMatch === void 0 ? /*#__PURE__*/_react["default"].createElement(_result["default"], {
|
|
23
|
+
status: "403",
|
|
24
|
+
title: "403",
|
|
25
|
+
subTitle: "Sorry, you are not authorized to access this page."
|
|
26
|
+
}) : _ref$noMatch;
|
|
27
|
+
var childrenRender = typeof children === 'undefined' ? null : children;
|
|
28
|
+
var dom = (0, _CheckPermissions["default"])(authority, childrenRender, noMatch);
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, dom);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var _default = Authorized;
|
|
33
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _umi = require("umi");
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Authorized = _interopRequireDefault(require("./Authorized"));
|
|
13
|
+
|
|
14
|
+
var _excluded = ["component", "render", "authority", "redirectPath"];
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
+
|
|
20
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
+
|
|
22
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
|
+
|
|
24
|
+
var AuthorizedRoute = function AuthorizedRoute(_ref) {
|
|
25
|
+
var Component = _ref.component,
|
|
26
|
+
_render = _ref.render,
|
|
27
|
+
authority = _ref.authority,
|
|
28
|
+
redirectPath = _ref.redirectPath,
|
|
29
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_Authorized["default"], {
|
|
32
|
+
authority: authority,
|
|
33
|
+
noMatch: /*#__PURE__*/_react["default"].createElement(_umi.Route, _extends({}, rest, {
|
|
34
|
+
render: function render() {
|
|
35
|
+
return /*#__PURE__*/_react["default"].createElement(_umi.Redirect, {
|
|
36
|
+
to: {
|
|
37
|
+
pathname: redirectPath
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}))
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement(_umi.Route, _extends({}, rest, {
|
|
43
|
+
render: function render(props) {
|
|
44
|
+
return Component ? /*#__PURE__*/_react["default"].createElement(Component, props) : _render(props);
|
|
45
|
+
}
|
|
46
|
+
})));
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var _default = AuthorizedRoute;
|
|
50
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default check;
|
|
2
|
+
/**
|
|
3
|
+
* 通用权限检查方法
|
|
4
|
+
* Common check permissions method
|
|
5
|
+
* @param { 权限判定 | Permission judgment } authority
|
|
6
|
+
* @param { 你的权限 | Your permission description } currentAuthority
|
|
7
|
+
* @param { 通过的组件 | Passing components } target
|
|
8
|
+
* @param { 未通过的组件 | no pass components } Exception
|
|
9
|
+
*/
|
|
10
|
+
export function checkPermissions(authority: any, currentAuthority: any, target: any, Exception: any): any;
|
|
11
|
+
declare function check(authority: any, target: any, Exception: any): any;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.checkPermissions = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _tools = require("../../utils/tools");
|
|
11
|
+
|
|
12
|
+
var _renderAuthorize = require("./renderAuthorize");
|
|
13
|
+
|
|
14
|
+
var _PromiseRender = _interopRequireDefault(require("./PromiseRender"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 通用权限检查方法
|
|
20
|
+
* Common check permissions method
|
|
21
|
+
* @param { 权限判定 | Permission judgment } authority
|
|
22
|
+
* @param { 你的权限 | Your permission description } currentAuthority
|
|
23
|
+
* @param { 通过的组件 | Passing components } target
|
|
24
|
+
* @param { 未通过的组件 | no pass components } Exception
|
|
25
|
+
*/
|
|
26
|
+
var checkPermissions = function checkPermissions(authority, currentAuthority, target, Exception) {
|
|
27
|
+
// 没有判定权限.默认查看所有
|
|
28
|
+
// Retirement authority, return target;
|
|
29
|
+
if (!authority) {
|
|
30
|
+
return target;
|
|
31
|
+
} // 数组处理
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
if (Array.isArray(authority)) {
|
|
35
|
+
if (Array.isArray(currentAuthority)) {
|
|
36
|
+
if (currentAuthority.some(function (item) {
|
|
37
|
+
return authority.includes(item);
|
|
38
|
+
})) {
|
|
39
|
+
return target;
|
|
40
|
+
}
|
|
41
|
+
} else if (authority.includes(currentAuthority)) {
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return Exception;
|
|
46
|
+
} // string 处理
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if (typeof authority === 'string') {
|
|
50
|
+
if (Array.isArray(currentAuthority)) {
|
|
51
|
+
if (currentAuthority.some(function (item) {
|
|
52
|
+
return authority === item;
|
|
53
|
+
})) {
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
} else if (authority === currentAuthority) {
|
|
57
|
+
return target;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return Exception;
|
|
61
|
+
} // Promise 处理
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
if (authority instanceof Promise) {
|
|
65
|
+
return /*#__PURE__*/_react["default"].createElement(_PromiseRender["default"], {
|
|
66
|
+
ok: target,
|
|
67
|
+
error: Exception,
|
|
68
|
+
promise: authority
|
|
69
|
+
});
|
|
70
|
+
} // Function 处理
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
if (typeof authority === 'function') {
|
|
74
|
+
try {
|
|
75
|
+
var bool = authority(currentAuthority); // 函数执行后返回值是 Promise
|
|
76
|
+
|
|
77
|
+
if (bool instanceof Promise) {
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_PromiseRender["default"], {
|
|
79
|
+
ok: target,
|
|
80
|
+
error: Exception,
|
|
81
|
+
promise: bool
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (bool) {
|
|
86
|
+
return target;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return Exception;
|
|
90
|
+
} catch (error) {
|
|
91
|
+
(0, _tools.recordObject)(error);
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
throw new Error('unsupported parameters');
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.checkPermissions = checkPermissions;
|
|
100
|
+
|
|
101
|
+
function check(authority, target, Exception) {
|
|
102
|
+
return checkPermissions(authority, _renderAuthorize.CURRENT, target, Exception);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var _default = check;
|
|
106
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default class PromiseRender extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
constructor(props: any, context: any);
|
|
4
|
+
setRenderComponent(props: any): void;
|
|
5
|
+
checkIsInstantiation: (target: any) => ((props: any) => JSX.Element) | (() => any);
|
|
6
|
+
}
|
|
7
|
+
import React from "react";
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/spin/style");
|
|
11
|
+
|
|
12
|
+
var _spin = _interopRequireDefault(require("antd/es/spin"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
17
|
+
|
|
18
|
+
var _Secured = require("./Secured");
|
|
19
|
+
|
|
20
|
+
var _excluded = ["ok", "error", "promise"];
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
|
|
30
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
+
|
|
32
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
33
|
+
|
|
34
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
+
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
+
|
|
38
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
|
+
|
|
40
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
41
|
+
|
|
42
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
+
|
|
44
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
|
+
|
|
46
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
+
|
|
48
|
+
var PromiseRender = /*#__PURE__*/function (_React$Component) {
|
|
49
|
+
_inherits(PromiseRender, _React$Component);
|
|
50
|
+
|
|
51
|
+
var _super = _createSuper(PromiseRender);
|
|
52
|
+
|
|
53
|
+
function PromiseRender() {
|
|
54
|
+
var _this;
|
|
55
|
+
|
|
56
|
+
_classCallCheck(this, PromiseRender);
|
|
57
|
+
|
|
58
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59
|
+
args[_key] = arguments[_key];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
63
|
+
_this.state = {
|
|
64
|
+
component: function component() {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
_this.shouldComponentUpdate = function (nextProps, nextState) {
|
|
70
|
+
var component = _this.state.component;
|
|
71
|
+
|
|
72
|
+
if (!(0, _isEqual["default"])(nextProps, _this.props)) {
|
|
73
|
+
_this.setRenderComponent(nextProps);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (nextState.component !== component) return true;
|
|
77
|
+
return false;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
_this.checkIsInstantiation = function (target) {
|
|
81
|
+
if ((0, _Secured.isComponentClass)(target)) {
|
|
82
|
+
var Target = target;
|
|
83
|
+
return function (props) {
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement(Target, props);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if ( /*#__PURE__*/_react["default"].isValidElement(target)) {
|
|
89
|
+
return function (props) {
|
|
90
|
+
return /*#__PURE__*/_react["default"].cloneElement(target, props);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return function () {
|
|
95
|
+
return target;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
_createClass(PromiseRender, [{
|
|
103
|
+
key: "componentDidMount",
|
|
104
|
+
value: function componentDidMount() {
|
|
105
|
+
this.setRenderComponent(this.props);
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "setRenderComponent",
|
|
109
|
+
value: // set render Component : ok or error
|
|
110
|
+
function setRenderComponent(props) {
|
|
111
|
+
var _this2 = this;
|
|
112
|
+
|
|
113
|
+
var ok = this.checkIsInstantiation(props.ok);
|
|
114
|
+
var error = this.checkIsInstantiation(props.error);
|
|
115
|
+
props.promise.then(function () {
|
|
116
|
+
_this2.setState({
|
|
117
|
+
component: ok
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
return true;
|
|
121
|
+
})["catch"](function () {
|
|
122
|
+
_this2.setState({
|
|
123
|
+
component: error
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
} // Determine whether the incoming component has been instantiated
|
|
127
|
+
// AuthorizedRoute is already instantiated
|
|
128
|
+
// Authorized render is already instantiated, children is no instantiated
|
|
129
|
+
// Secured is not instantiated
|
|
130
|
+
|
|
131
|
+
}, {
|
|
132
|
+
key: "render",
|
|
133
|
+
value: function render() {
|
|
134
|
+
var Component = this.state.component;
|
|
135
|
+
|
|
136
|
+
var _this$props = this.props,
|
|
137
|
+
ok = _this$props.ok,
|
|
138
|
+
error = _this$props.error,
|
|
139
|
+
promise = _this$props.promise,
|
|
140
|
+
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
141
|
+
|
|
142
|
+
return Component ? /*#__PURE__*/_react["default"].createElement(Component, rest) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
style: {
|
|
144
|
+
width: '100%',
|
|
145
|
+
height: '100%',
|
|
146
|
+
margin: 'auto',
|
|
147
|
+
paddingTop: 50,
|
|
148
|
+
textAlign: 'center'
|
|
149
|
+
}
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement(_spin["default"], {
|
|
151
|
+
size: "large"
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
154
|
+
}]);
|
|
155
|
+
|
|
156
|
+
return PromiseRender;
|
|
157
|
+
}(_react["default"].Component);
|
|
158
|
+
|
|
159
|
+
exports["default"] = PromiseRender;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function isComponentClass(component: any): any;
|
|
2
|
+
export default authorize;
|
|
3
|
+
/**
|
|
4
|
+
* 用于判断是否拥有权限访问此 view 权限
|
|
5
|
+
* authority 支持传入 string, () => boolean | Promise
|
|
6
|
+
* e.g. 'user' 只有 user 用户能访问
|
|
7
|
+
* e.g. 'user,admin' user 和 admin 都能访问
|
|
8
|
+
* e.g. ()=>boolean 返回true能访问,返回false不能访问
|
|
9
|
+
* e.g. Promise then 能访问 catch不能访问
|
|
10
|
+
* e.g. authority support incoming string, () => boolean | Promise
|
|
11
|
+
* e.g. 'user' only user user can access
|
|
12
|
+
* e.g. 'user, admin' user and admin can access
|
|
13
|
+
* e.g. () => boolean true to be able to visit, return false can not be accessed
|
|
14
|
+
* e.g. Promise then can not access the visit to catch
|
|
15
|
+
* @param {string | function | Promise} authority
|
|
16
|
+
* @param {ReactNode} error 非必需参数
|
|
17
|
+
*/
|
|
18
|
+
declare function authorize(authority: string | Function | Promise<any>, error: any): (target: any) => ((props: any) => JSX.Element) | (() => any);
|
package/{src/customComponents/Authorized/Secured.jsx → es/customComponents/Authorized/Secured.js}
RENAMED
|
@@ -1,35 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.isComponentClass = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _CheckPermissions = _interopRequireDefault(require("./CheckPermissions"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
4
13
|
|
|
5
14
|
/**
|
|
6
15
|
* 默认不能访问任何页面
|
|
7
16
|
* default is "NULL"
|
|
8
17
|
*/
|
|
18
|
+
var Exception403 = function Exception403() {
|
|
19
|
+
return 403;
|
|
20
|
+
};
|
|
9
21
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export const isComponentClass = (component) => {
|
|
22
|
+
var isComponentClass = function isComponentClass(component) {
|
|
13
23
|
if (!component) return false;
|
|
14
|
-
|
|
15
|
-
if (proto ===
|
|
24
|
+
var proto = Object.getPrototypeOf(component);
|
|
25
|
+
if (proto === _react["default"].Component || proto === Function.prototype) return true;
|
|
16
26
|
return isComponentClass(proto);
|
|
17
27
|
}; // Determine whether the incoming component has been instantiated
|
|
18
28
|
// AuthorizedRoute is already instantiated
|
|
19
29
|
// Authorized render is already instantiated, children is no instantiated
|
|
20
30
|
// Secured is not instantiated
|
|
21
31
|
|
|
22
|
-
|
|
32
|
+
|
|
33
|
+
exports.isComponentClass = isComponentClass;
|
|
34
|
+
|
|
35
|
+
var checkIsInstantiation = function checkIsInstantiation(target) {
|
|
23
36
|
if (isComponentClass(target)) {
|
|
24
|
-
|
|
25
|
-
return (props)
|
|
37
|
+
var Target = target;
|
|
38
|
+
return function (props) {
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement(Target, props);
|
|
40
|
+
};
|
|
26
41
|
}
|
|
27
42
|
|
|
28
|
-
if (
|
|
29
|
-
return (props)
|
|
43
|
+
if ( /*#__PURE__*/_react["default"].isValidElement(target)) {
|
|
44
|
+
return function (props) {
|
|
45
|
+
return /*#__PURE__*/_react["default"].cloneElement(target, props);
|
|
46
|
+
};
|
|
30
47
|
}
|
|
31
48
|
|
|
32
|
-
return ()
|
|
49
|
+
return function () {
|
|
50
|
+
return target;
|
|
51
|
+
};
|
|
33
52
|
};
|
|
34
53
|
/**
|
|
35
54
|
* 用于判断是否拥有权限访问此 view 权限
|
|
@@ -47,16 +66,19 @@ const checkIsInstantiation = (target) => {
|
|
|
47
66
|
* @param {ReactNode} error 非必需参数
|
|
48
67
|
*/
|
|
49
68
|
|
|
50
|
-
|
|
69
|
+
|
|
70
|
+
var authorize = function authorize(authority, error) {
|
|
51
71
|
/**
|
|
52
72
|
* conversion into a class
|
|
53
73
|
* 防止传入字符串时找不到staticContext造成报错
|
|
54
74
|
* String parameters can cause staticContext not found error
|
|
55
75
|
*/
|
|
56
|
-
|
|
76
|
+
var classError = false;
|
|
57
77
|
|
|
58
78
|
if (error) {
|
|
59
|
-
classError = ()
|
|
79
|
+
classError = function classError() {
|
|
80
|
+
return error;
|
|
81
|
+
};
|
|
60
82
|
}
|
|
61
83
|
|
|
62
84
|
if (!authority) {
|
|
@@ -64,13 +86,10 @@ const authorize = (authority, error) => {
|
|
|
64
86
|
}
|
|
65
87
|
|
|
66
88
|
return function decideAuthority(target) {
|
|
67
|
-
|
|
68
|
-
authority,
|
|
69
|
-
target,
|
|
70
|
-
classError || Exception403,
|
|
71
|
-
);
|
|
89
|
+
var component = (0, _CheckPermissions["default"])(authority, target, classError || Exception403);
|
|
72
90
|
return checkIsInstantiation(component);
|
|
73
91
|
};
|
|
74
92
|
};
|
|
75
93
|
|
|
76
|
-
|
|
94
|
+
var _default = authorize;
|
|
95
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _Authorized = _interopRequireDefault(require("./Authorized"));
|
|
9
|
+
|
|
10
|
+
var _Secured = _interopRequireDefault(require("./Secured"));
|
|
11
|
+
|
|
12
|
+
var _CheckPermissions = _interopRequireDefault(require("./CheckPermissions"));
|
|
13
|
+
|
|
14
|
+
var _renderAuthorize = _interopRequireDefault(require("./renderAuthorize"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
_Authorized["default"].Secured = _Secured["default"];
|
|
19
|
+
_Authorized["default"].check = _CheckPermissions["default"];
|
|
20
|
+
var RenderAuthorize = (0, _renderAuthorize["default"])(_Authorized["default"]);
|
|
21
|
+
var _default = RenderAuthorize;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.CURRENT = void 0;
|
|
7
|
+
var CURRENT = 'NULL';
|
|
8
|
+
/**
|
|
9
|
+
* use authority or getAuthority
|
|
10
|
+
* @param {string|()=>String} currentAuthority
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
exports.CURRENT = CURRENT;
|
|
14
|
+
|
|
15
|
+
var renderAuthorize = function renderAuthorize(Authorized) {
|
|
16
|
+
return function (currentAuthority) {
|
|
17
|
+
if (currentAuthority) {
|
|
18
|
+
if (typeof currentAuthority === 'function') {
|
|
19
|
+
exports.CURRENT = CURRENT = currentAuthority();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (Object.prototype.toString.call(currentAuthority) === '[object String]' || Array.isArray(currentAuthority)) {
|
|
23
|
+
exports.CURRENT = CURRENT = currentAuthority;
|
|
24
|
+
}
|
|
25
|
+
} else {
|
|
26
|
+
exports.CURRENT = CURRENT = 'NULL';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return Authorized;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var _default = function _default(Authorized) {
|
|
34
|
+
return renderAuthorize(Authorized);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default AvatarList;
|
|
2
|
+
declare function AvatarList({ children, size, maxLength, excessItemsStyle, ...other }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
children: any;
|
|
5
|
+
size: any;
|
|
6
|
+
maxLength: any;
|
|
7
|
+
excessItemsStyle: any;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
declare namespace AvatarList {
|
|
10
|
+
export { Item };
|
|
11
|
+
}
|
|
12
|
+
declare function Item({ src, size, tips, onClick }: {
|
|
13
|
+
src: any;
|
|
14
|
+
size: any;
|
|
15
|
+
tips: any;
|
|
16
|
+
onClick?: (() => void) | undefined;
|
|
17
|
+
}): JSX.Element;
|