antd-management-fast-framework 1.12.103 → 2.1.0
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/components/ApplicationWrapper/index.d.ts +9 -0
- package/es/components/Bootstrap/index.d.ts +3 -0
- package/es/components/DataPreviewDrawer/index.d.ts +31 -0
- package/es/{customComponents/Exception → components/LoadingOverlay}/index.d.ts +1 -3
- package/es/components/MobileContainor/MobileHtmlPreviewBox/index.d.ts +10 -0
- package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +75 -0
- package/es/components/MobileContainor/MobilePreviewDrawer/index.d.ts +54 -0
- package/es/components/MobileContainor/index.d.ts +8 -0
- package/es/components/index.d.ts +5 -0
- package/es/configGroup/configGeneral.d.ts +27 -55
- package/es/configGroup/configGeneral.js +31 -138
- package/es/configGroup/index.d.ts +2 -0
- package/es/configGroup/themeCollection.d.ts +3 -25
- package/es/configGroup/themeCollection.js +1 -109
- package/es/configGroup/webpackPlugin.d.ts +0 -7
- package/es/configGroup/webpackPlugin.js +236 -51
- package/es/configs/index.d.ts +2 -0
- package/es/configs/themeCollection.d.ts +7 -0
- package/es/configs/webpackPlugin.d.ts +4 -0
- package/es/customComponents/ApplicationProvider/index.d.ts +12 -0
- package/es/customComponents/ApplicationWrapper/index.d.ts +9 -0
- package/es/customComponents/Bootstrap/index.d.ts +3 -0
- package/es/customComponents/Bootstrap/index.js +67 -0
- package/es/customComponents/DataPreviewDrawer/index.d.ts +5 -6
- package/es/customComponents/DataPreviewDrawer/index.js +78 -87
- package/es/customComponents/LoadingOverlay/index.d.ts +6 -0
- package/es/customComponents/LoadingOverloay/index.d.ts +3 -0
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +4 -6
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +57 -54
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +38 -12
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +84 -111
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +8 -8
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +76 -95
- package/es/customComponents/MobileContainor/index.d.ts +8 -0
- package/es/customComponents/index.d.ts +5 -7
- package/es/framework/AuthorizationWrapper/index.d.ts +8 -5
- package/es/framework/AuthorizationWrapper/index.js +50 -59
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +5 -6
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +52 -70
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +6 -7
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +57 -85
- package/es/framework/ButtonExtension/SelectButton/index.d.ts +6 -0
- package/es/framework/ButtonExtension/index.d.ts +1 -0
- package/es/framework/Common/CardCollectionItemContent/index.d.ts +14 -0
- package/es/framework/Common/CommonInternal/index.d.ts +167 -0
- package/es/framework/Common/InternalBuild/index.d.ts +26 -0
- package/es/framework/Common/InternalFlow/index.d.ts +149 -0
- package/es/framework/Common/InternalLayout/index.d.ts +9 -0
- package/es/framework/Common/InternalMake/index.d.ts +9 -0
- package/es/framework/Common/InternalTabFlow/index.d.ts +12 -0
- package/es/framework/Common/index.d.ts +2 -205
- package/es/framework/Common/index.js +39 -2481
- package/es/framework/Core/index.d.ts +17 -6
- package/es/framework/Core/index.js +15 -56
- package/es/framework/CustomWrapper/Supplement/index.d.ts +2 -3
- package/es/framework/CustomWrapper/Supplement/index.js +43 -40
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +2 -4
- package/es/framework/CustomWrapper/SupplementCore/index.js +47 -66
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +2 -3
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +44 -41
- package/es/framework/CustomWrapper/index.d.ts +3 -0
- package/es/framework/DataDrawer/Base/index.d.ts +16 -18
- package/es/framework/DataDrawer/Base/index.js +126 -238
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +57 -60
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +54 -47
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +57 -63
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +2 -3
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +55 -57
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +2 -3
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +56 -56
- package/es/framework/DataDrawer/index.d.ts +14 -0
- package/es/framework/DataForm/BaseAddForm/index.d.ts +7 -7
- package/es/framework/DataForm/BaseAddForm/index.js +95 -162
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +3 -4
- package/es/framework/DataForm/BaseUpdateForm/index.js +66 -85
- package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +2 -3
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +55 -45
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +3 -3
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +54 -37
- package/es/framework/DataForm/index.d.ts +10 -0
- package/es/framework/DataListView/Base/index.d.ts +38 -82
- package/es/framework/DataListView/Base/index.js +317 -634
- package/es/framework/DataListView/BatchAction/index.d.ts +3 -3
- package/es/framework/DataListView/BatchAction/index.js +38 -68
- package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +1 -2
- package/es/framework/DataListView/ColumnSetting/DndItem.js +87 -110
- package/es/framework/DataListView/ColumnSetting/index.d.ts +1 -2
- package/es/framework/DataListView/ColumnSetting/index.js +111 -160
- package/es/framework/DataListView/DensityAction/index.d.ts +2 -3
- package/es/framework/DataListView/DensityAction/index.js +29 -84
- package/es/framework/DataListView/index.d.ts +10 -0
- package/es/framework/DataMenuContainer/index.d.ts +8 -10
- package/es/framework/DataMenuContainer/index.js +96 -155
- package/es/framework/DataModal/Base/index.d.ts +10 -12
- package/es/framework/DataModal/Base/index.js +74 -128
- package/es/framework/DataModal/BaseAddModal/index.d.ts +2 -3
- package/es/framework/DataModal/BaseAddModal/index.js +52 -50
- package/es/framework/DataModal/BaseLoadModal/index.d.ts +3 -4
- package/es/framework/DataModal/BaseLoadModal/index.js +49 -44
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +6 -6
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +55 -62
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -4
- package/es/framework/DataModal/BaseSelectModal/index.js +52 -51
- package/es/framework/DataModal/BaseUpdateModal/index.d.ts +2 -3
- package/es/framework/DataModal/BaseUpdateModal/index.js +50 -37
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +5 -5
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +63 -85
- package/es/framework/DataModal/index.d.ts +16 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +3 -3
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +66 -46
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +4 -3
- package/es/framework/DataMultiPageView/MultiPage/index.js +109 -143
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +19 -21
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +179 -233
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +4 -5
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +79 -73
- package/es/framework/DataMultiPageView/index.d.ts +10 -0
- package/es/framework/DataOperation/Base/index.d.ts +2 -3
- package/es/framework/DataOperation/Base/index.js +156 -214
- package/es/framework/DataOperation/BaseView/index.d.ts +2 -3
- package/es/framework/DataOperation/BaseView/index.js +56 -51
- package/es/framework/DataOperation/BaseWindow/index.d.ts +13 -14
- package/es/framework/DataOperation/BaseWindow/index.js +115 -163
- package/es/framework/DataOperation/index.d.ts +8 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +3 -3
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +66 -46
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +9 -4
- package/es/framework/DataSinglePageView/SinglePage/index.js +97 -121
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +19 -21
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +173 -224
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +4 -5
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +81 -75
- package/es/framework/DataSinglePageView/index.d.ts +10 -0
- package/es/framework/DataSingleView/DataCore/index.d.ts +13 -40
- package/es/framework/DataSingleView/DataCore/index.js +90 -160
- package/es/framework/DataSingleView/DataLoad/index.d.ts +5 -5
- package/es/framework/DataSingleView/DataLoad/index.js +74 -92
- package/es/framework/DataSingleView/index.d.ts +6 -0
- package/es/framework/DataTabContainer/index.d.ts +6 -29
- package/es/framework/DataTabContainer/index.js +133 -159
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +6 -7
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +69 -96
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +65 -97
- package/es/framework/FieldExtension/SelectFieldDrawer/{SelectFieldDrawerBase → SelectFieldInteractiveBase}/index.d.ts +6 -7
- package/es/framework/FieldExtension/SelectFieldDrawer/index.d.ts +6 -0
- package/es/framework/FieldExtension/index.d.ts +4 -0
- package/es/framework/LayoutWrapper/index.d.ts +2 -0
- package/es/framework/Wrapper/index.d.ts +2 -3
- package/es/framework/Wrapper/index.js +42 -41
- package/es/framework/index.d.ts +17 -7
- package/es/get.js +28 -0
- package/es/getPrototypeOf.js +76 -0
- package/es/index.css +12 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +9769 -6
- package/es/index2.js +2075 -0
- package/es/index3.js +383 -0
- package/es/modelBuilders/index.d.ts +1 -0
- package/es/modelBuilders/schedulingControl.d.ts +68 -0
- package/es/models/index.d.ts +1 -0
- package/es/models/schedulingControl.d.ts +46 -0
- package/es/models/schedulingControl.js +171 -0
- package/es/objectSpread2.js +40 -0
- package/es/services/schedulingControl.d.ts +4 -0
- package/es/services/schedulingControl.js +135 -0
- package/es/slicedToArray.js +43 -0
- package/es/toConsumableArray.js +19 -0
- package/es/toPropertyKey.js +19 -0
- package/es/typeof.js +11 -0
- package/es/unsupportedIterableToArray.js +16 -0
- package/es/utils/appListDataAssist.js +69 -0
- package/es/utils/applicationAssist.js +28 -0
- package/es/utils/applicationListDataAssist.d.ts +4 -0
- package/es/utils/applicationListDataCacheAssist.d.ts +24 -0
- package/es/utils/bootstrap.d.ts +4 -0
- package/es/utils/bootstrap.js +58 -0
- package/es/utils/configAssist.d.ts +1 -0
- package/es/utils/currentOperatorAssist.d.ts +5 -0
- package/es/utils/definition.d.ts +4 -0
- package/es/utils/index.d.ts +8 -0
- package/es/utils/layoutSettingAssist.d.ts +2 -0
- package/es/utils/layoutSettingAssist.js +60 -0
- package/es/utils/metaDataAssist.d.ts +5 -0
- package/es/utils/metaDataAssist.js +69 -0
- package/es/utils/schedulingControlAssist.d.ts +10 -0
- package/es/utils/storageAssist.js +153 -0
- package/package.json +122 -195
- package/License.txt +0 -21
- package/README.md +0 -35
- package/es/customComponents/AMap/UIPoiPicker.d.ts +0 -8
- package/es/customComponents/AMap/UIPoiPicker.js +0 -78
- package/es/customComponents/AMap/UIPositionPicker.d.ts +0 -8
- package/es/customComponents/AMap/UIPositionPicker.js +0 -87
- package/es/customComponents/ActiveChart/index.d.ts +0 -17
- package/es/customComponents/ActiveChart/index.js +0 -168
- package/es/customComponents/ActiveChart/index.less +0 -58
- package/es/customComponents/AnimalBox/FadeBox/index.d.ts +0 -14
- package/es/customComponents/AnimalBox/FadeBox/index.js +0 -82
- package/es/customComponents/AnimalBox/FadeBox/index.less +0 -61
- package/es/customComponents/AnimalBox/QueueBox/index.d.ts +0 -12
- package/es/customComponents/AnimalBox/QueueBox/index.js +0 -76
- package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +0 -15
- package/es/customComponents/AnimalBox/QueueListBox/index.js +0 -117
- package/es/customComponents/AnimalBox/QueueListBox/index.less +0 -16
- package/es/customComponents/AnimalBox/RotateBox/index.d.ts +0 -14
- package/es/customComponents/AnimalBox/RotateBox/index.js +0 -85
- package/es/customComponents/ArticleListContent/index.d.ts +0 -10
- package/es/customComponents/ArticleListContent/index.js +0 -49
- package/es/customComponents/ArticleListContent/index.less +0 -41
- package/es/customComponents/AudioUpload/index.d.ts +0 -39
- package/es/customComponents/AudioUpload/index.js +0 -478
- package/es/customComponents/Authorized/Authorized.d.ts +0 -6
- package/es/customComponents/Authorized/Authorized.js +0 -33
- package/es/customComponents/Authorized/AuthorizedRoute.d.ts +0 -8
- package/es/customComponents/Authorized/AuthorizedRoute.js +0 -50
- package/es/customComponents/Authorized/CheckPermissions.d.ts +0 -11
- package/es/customComponents/Authorized/CheckPermissions.js +0 -106
- package/es/customComponents/Authorized/PromiseRender.d.ts +0 -13
- package/es/customComponents/Authorized/PromiseRender.js +0 -151
- package/es/customComponents/Authorized/Secured.d.ts +0 -18
- package/es/customComponents/Authorized/Secured.js +0 -95
- package/es/customComponents/Authorized/index.d.ts +0 -2
- package/es/customComponents/Authorized/index.js +0 -22
- package/es/customComponents/Authorized/renderAuthorize.d.ts +0 -3
- package/es/customComponents/Authorized/renderAuthorize.js +0 -37
- package/es/customComponents/AvatarList/index.d.ts +0 -17
- package/es/customComponents/AvatarList/index.js +0 -99
- package/es/customComponents/AvatarList/index.less +0 -53
- package/es/customComponents/AvatarList/index.test.d.ts +0 -1
- package/es/customComponents/Canvas/Bubbly/index.d.ts +0 -20
- package/es/customComponents/Canvas/Bubbly/index.js +0 -182
- package/es/customComponents/Canvas/Core/index.d.ts +0 -28
- package/es/customComponents/Canvas/Core/index.js +0 -163
- package/es/customComponents/Canvas/RadarScanning/index.d.ts +0 -20
- package/es/customComponents/Canvas/RadarScanning/index.js +0 -251
- package/es/customComponents/Canvas/Ribbon.7z +0 -0
- package/es/customComponents/Canvas/Spirit/index.d.ts +0 -23
- package/es/customComponents/Canvas/Spirit/index.js +0 -119
- package/es/customComponents/Canvas/index.d.ts +0 -12
- package/es/customComponents/Canvas/index.js +0 -27
- package/es/customComponents/CenterBox/index.d.ts +0 -7
- package/es/customComponents/CenterBox/index.js +0 -70
- package/es/customComponents/Charts/Bar/index.d.ts +0 -10
- package/es/customComponents/Charts/Bar/index.js +0 -129
- package/es/customComponents/Charts/ChartCard/index.d.ts +0 -8
- package/es/customComponents/Charts/ChartCard/index.js +0 -160
- package/es/customComponents/Charts/ChartCard/index.less +0 -90
- package/es/customComponents/Charts/Field/index.d.ts +0 -6
- package/es/customComponents/Charts/Field/index.js +0 -37
- package/es/customComponents/Charts/Field/index.less +0 -19
- package/es/customComponents/Charts/Gauge/index.d.ts +0 -2
- package/es/customComponents/Charts/Gauge/index.js +0 -185
- package/es/customComponents/Charts/MiniArea/index.d.ts +0 -2
- package/es/customComponents/Charts/MiniArea/index.js +0 -107
- package/es/customComponents/Charts/MiniBar/index.d.ts +0 -2
- package/es/customComponents/Charts/MiniBar/index.js +0 -62
- package/es/customComponents/Charts/MiniProgress/index.d.ts +0 -8
- package/es/customComponents/Charts/MiniProgress/index.js +0 -55
- package/es/customComponents/Charts/MiniProgress/index.less +0 -42
- package/es/customComponents/Charts/Pie/index.d.ts +0 -10
- package/es/customComponents/Charts/Pie/index.js +0 -195
- package/es/customComponents/Charts/Pie/index.less +0 -104
- package/es/customComponents/Charts/TagCloud/index.d.ts +0 -23
- package/es/customComponents/Charts/TagCloud/index.js +0 -276
- package/es/customComponents/Charts/TagCloud/index.less +0 -7
- package/es/customComponents/Charts/TimelineChart/index.d.ts +0 -2
- package/es/customComponents/Charts/TimelineChart/index.js +0 -173
- package/es/customComponents/Charts/TimelineChart/index.less +0 -5
- package/es/customComponents/Charts/WaterWave/index.d.ts +0 -18
- package/es/customComponents/Charts/WaterWave/index.js +0 -319
- package/es/customComponents/Charts/WaterWave/index.less +0 -32
- package/es/customComponents/Charts/autoHeight.d.ts +0 -13
- package/es/customComponents/Charts/autoHeight.js +0 -123
- package/es/customComponents/Charts/bizcharts.d.ts +0 -2
- package/es/customComponents/Charts/bizcharts.js +0 -17
- package/es/customComponents/Charts/index.d.ts +0 -27
- package/es/customComponents/Charts/index.js +0 -119
- package/es/customComponents/Charts/index.less +0 -26
- package/es/customComponents/ColorText/index.d.ts +0 -22
- package/es/customComponents/ColorText/index.js +0 -139
- package/es/customComponents/Countdown/index.d.ts +0 -22
- package/es/customComponents/Countdown/index.js +0 -158
- package/es/customComponents/Countdown/index.less +0 -5
- package/es/customComponents/DataPreviewDrawer/index.less +0 -10
- package/es/customComponents/DecorateAvatar/index.d.ts +0 -37
- package/es/customComponents/DecorateAvatar/index.js +0 -199
- package/es/customComponents/DisplayCopyData/index.d.ts +0 -10
- package/es/customComponents/DisplayCopyData/index.js +0 -86
- package/es/customComponents/EditableItem/index.d.ts +0 -12
- package/es/customComponents/EditableItem/index.js +0 -121
- package/es/customComponents/EditableItem/index.less +0 -25
- package/es/customComponents/EditableLinkGroup/index.d.ts +0 -23
- package/es/customComponents/EditableLinkGroup/index.js +0 -99
- package/es/customComponents/EditableLinkGroup/index.less +0 -18
- package/es/customComponents/Editor/TinymceWrapper/index.d.ts +0 -19
- package/es/customComponents/Editor/TinymceWrapper/index.js +0 -254
- package/es/customComponents/Ellipsis/index.d.ts +0 -26
- package/es/customComponents/Ellipsis/index.js +0 -389
- package/es/customComponents/Ellipsis/index.less +0 -28
- package/es/customComponents/Ellipsis/index.test.d.ts +0 -1
- package/es/customComponents/EllipsisCustom/index.d.ts +0 -26
- package/es/customComponents/EllipsisCustom/index.js +0 -355
- package/es/customComponents/EllipsisCustom/index.less +0 -27
- package/es/customComponents/EverySpace/index.d.ts +0 -16
- package/es/customComponents/EverySpace/index.js +0 -105
- package/es/customComponents/Exception/index.js +0 -121
- package/es/customComponents/Exception/index.less +0 -92
- package/es/customComponents/Exception/typeConfig.d.ts +0 -18
- package/es/customComponents/Exception/typeConfig.js +0 -25
- package/es/customComponents/FigureRange/index.d.ts +0 -133
- package/es/customComponents/FigureRange/index.js +0 -335
- package/es/customComponents/FigureRange/index.less +0 -73
- package/es/customComponents/FileBase64Upload/index.d.ts +0 -27
- package/es/customComponents/FileBase64Upload/index.js +0 -205
- package/es/customComponents/FileUpload/index.d.ts +0 -35
- package/es/customComponents/FileUpload/index.js +0 -402
- package/es/customComponents/FlexBox/index.d.ts +0 -24
- package/es/customComponents/FlexBox/index.js +0 -186
- package/es/customComponents/FlexText/index.d.ts +0 -21
- package/es/customComponents/FlexText/index.js +0 -109
- package/es/customComponents/FlexText/index.less +0 -3
- package/es/customComponents/FooterToolbar/index.d.ts +0 -16
- package/es/customComponents/FooterToolbar/index.js +0 -132
- package/es/customComponents/FooterToolbar/index.less +0 -33
- package/es/customComponents/FromDisplayItem/index.d.ts +0 -14
- package/es/customComponents/FromDisplayItem/index.js +0 -73
- package/es/customComponents/FromDisplayItem/index.less +0 -5
- package/es/customComponents/FunctionComponent/index.d.ts +0 -443
- package/es/customComponents/FunctionComponent/index.js +0 -3404
- package/es/customComponents/FunctionComponent/index.less +0 -63
- package/es/customComponents/FunctionSupplement/Whether/index.d.ts +0 -46
- package/es/customComponents/FunctionSupplement/Whether/index.js +0 -181
- package/es/customComponents/GlobalFooter/index.d.ts +0 -6
- package/es/customComponents/GlobalFooter/index.js +0 -39
- package/es/customComponents/GlobalFooter/index.less +0 -29
- package/es/customComponents/HelpBox/index.d.ts +0 -18
- package/es/customComponents/HelpBox/index.js +0 -192
- package/es/customComponents/HelpBox/index.less +0 -16
- package/es/customComponents/HelpCard/index.d.ts +0 -18
- package/es/customComponents/HelpCard/index.js +0 -91
- package/es/customComponents/HtmlBox/index.d.ts +0 -20
- package/es/customComponents/HtmlBox/index.js +0 -118
- package/es/customComponents/HtmlBox/index.less +0 -7
- package/es/customComponents/IconFont/index.d.ts +0 -2
- package/es/customComponents/IconFont/index.js +0 -14
- package/es/customComponents/IconInfo/index.d.ts +0 -32
- package/es/customComponents/IconInfo/index.js +0 -373
- package/es/customComponents/IconInfo/index.less +0 -5
- package/es/customComponents/ImageBox/index.d.ts +0 -60
- package/es/customComponents/ImageBox/index.js +0 -376
- package/es/customComponents/ImageBox/index.less +0 -114
- package/es/customComponents/ImageContentPreview/index.d.ts +0 -21
- package/es/customComponents/ImageContentPreview/index.js +0 -173
- package/es/customComponents/ImageContentPreview/index.less +0 -9
- package/es/customComponents/ImageUpload/index.d.ts +0 -45
- package/es/customComponents/ImageUpload/index.js +0 -413
- package/es/customComponents/ImageUpload/index.less +0 -81
- package/es/customComponents/MobileContainor/ContentView/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/ContentView/index.js +0 -152
- package/es/customComponents/MobileContainor/ContentView/index.less +0 -30
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +0 -19
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +0 -121
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +0 -130
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +0 -19
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.js +0 -97
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.less +0 -34
- package/es/customComponents/MobileContainor/Devices/devices.less +0 -2815
- package/es/customComponents/MobileContainor/MobileSimulation/index.d.ts +0 -23
- package/es/customComponents/MobileContainor/MobileSimulation/index.js +0 -243
- package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +0 -10
- package/es/customComponents/NoticeIconCustom/NoticeList.js +0 -81
- package/es/customComponents/NoticeIconCustom/NoticeList.less +0 -90
- package/es/customComponents/NoticeIconCustom/index.d.ts +0 -25
- package/es/customComponents/NoticeIconCustom/index.js +0 -201
- package/es/customComponents/NoticeIconCustom/index.less +0 -31
- package/es/customComponents/NumberInfo/index.d.ts +0 -12
- package/es/customComponents/NumberInfo/index.js +0 -60
- package/es/customComponents/NumberInfo/index.less +0 -77
- package/es/customComponents/PageLoading/index.d.ts +0 -2
- package/es/customComponents/PageLoading/index.js +0 -13
- package/es/customComponents/PercentageBox/index.d.ts +0 -12
- package/es/customComponents/PercentageBox/index.js +0 -70
- package/es/customComponents/PriceBox/index.d.ts +0 -18
- package/es/customComponents/PriceBox/index.js +0 -115
- package/es/customComponents/Result/index.d.ts +0 -9
- package/es/customComponents/Result/index.js +0 -57
- package/es/customComponents/Result/index.less +0 -58
- package/es/customComponents/StandardFormRow/index.d.ts +0 -9
- package/es/customComponents/StandardFormRow/index.js +0 -47
- package/es/customComponents/StandardFormRow/index.less +0 -81
- package/es/customComponents/StandardTable/index.d.ts +0 -17
- package/es/customComponents/StandardTable/index.js +0 -217
- package/es/customComponents/StandardTable/index.less +0 -7
- package/es/customComponents/StandardTableCustom/index.d.ts +0 -22
- package/es/customComponents/StandardTableCustom/index.js +0 -234
- package/es/customComponents/StandardTableCustom/index.less +0 -21
- package/es/customComponents/StatusBar/index.d.ts +0 -13
- package/es/customComponents/StatusBar/index.js +0 -128
- package/es/customComponents/TagSelect/index.d.ts +0 -34
- package/es/customComponents/TagSelect/index.js +0 -226
- package/es/customComponents/TagSelect/index.less +0 -38
- package/es/customComponents/TimeLineCustom/index.d.ts +0 -37
- package/es/customComponents/TimeLineCustom/index.js +0 -273
- package/es/customComponents/TimeLineCustom/index.less +0 -180
- package/es/customComponents/Trend/index.d.ts +0 -10
- package/es/customComponents/Trend/index.js +0 -49
- package/es/customComponents/Trend/index.less +0 -41
- package/es/customComponents/VerticalBox/index.d.ts +0 -15
- package/es/customComponents/VerticalBox/index.js +0 -138
- package/es/customComponents/VerticalBox/index.less +0 -7
- package/es/customComponents/VideoUpload/index.d.ts +0 -39
- package/es/customComponents/VideoUpload/index.js +0 -472
- package/es/customComponents/_utils/pathTools.d.ts +0 -1
- package/es/customComponents/_utils/pathTools.js +0 -15
- package/es/customComponents/_utils/pathTools.test.d.ts +0 -1
- package/es/customComponents/index.js +0 -16
- package/es/framework/Base/index.d.ts +0 -68
- package/es/framework/Base/index.js +0 -338
- package/es/framework/Common/index.less +0 -13
- package/es/framework/CustomBase/index.d.ts +0 -8
- package/es/framework/CustomBase/index.js +0 -77
- package/es/framework/DataDrawer/Base/index.less +0 -27
- package/es/framework/DataForm/BaseAddForm/index.less +0 -51
- package/es/framework/DataListView/Base/index.less +0 -161
- package/es/framework/DataListView/BatchAction/index.less +0 -5
- package/es/framework/DataListView/ColumnSetting/index.less +0 -60
- package/es/framework/DataMenuContainer/index.less +0 -100
- package/es/framework/DataModal/Base/index.less +0 -6
- package/es/framework/DataMultiPageView/InnerMultiPage/index.less +0 -125
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -65
- package/es/framework/DataSinglePageView/InnerSinglePage/index.less +0 -50
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -33
- package/es/framework/DataSingleView/DataCore/index.less +0 -7
- package/es/framework/DataTabContainer/index.less +0 -51
- package/es/framework/index.js +0 -60
- package/es/utils/Authorized.d.ts +0 -4
- package/es/utils/Authorized.js +0 -52
- package/es/utils/Yuan.d.ts +0 -13
- package/es/utils/Yuan.js +0 -92
- package/es/utils/actionAssist.d.ts +0 -44
- package/es/utils/actionAssist.js +0 -467
- package/es/utils/appConfiguration.d.ts +0 -70
- package/es/utils/appConfiguration.js +0 -403
- package/es/utils/authority.d.ts +0 -7
- package/es/utils/authority.js +0 -259
- package/es/utils/cacheAssist.d.ts +0 -85
- package/es/utils/cacheAssist.js +0 -317
- package/es/utils/constants.d.ts +0 -859
- package/es/utils/constants.js +0 -1540
- package/es/utils/core.d.ts +0 -25
- package/es/utils/core.js +0 -95
- package/es/utils/defaultSettingsSpecial.d.ts +0 -67
- package/es/utils/defaultSettingsSpecial.js +0 -53
- package/es/utils/developAssist.d.ts +0 -41
- package/es/utils/developAssist.js +0 -224
- package/es/utils/dva.d.ts +0 -31
- package/es/utils/dva.js +0 -54
- package/es/utils/globalModel.d.ts +0 -17
- package/es/utils/globalModel.js +0 -40
- package/es/utils/globalStorageAssist.d.ts +0 -78
- package/es/utils/globalStorageAssist.js +0 -239
- package/es/utils/localStorageAssist.d.ts +0 -47
- package/es/utils/localStorageAssist.js +0 -116
- package/es/utils/mediaDefault.d.ts +0 -11
- package/es/utils/mediaDefault.js +0 -24
- package/es/utils/proLayoutCollection.d.ts +0 -12
- package/es/utils/proLayoutCollection.js +0 -76
- package/es/utils/request.d.ts +0 -5
- package/es/utils/request.js +0 -243
- package/es/utils/requestAssistor.d.ts +0 -79
- package/es/utils/requestAssistor.js +0 -596
- package/es/utils/sessionStorageAssist.d.ts +0 -47
- package/es/utils/sessionStorageAssist.js +0 -116
- package/es/utils/tools.d.ts +0 -698
- package/es/utils/tools.js +0 -2205
- package/es/utils/typeCheck.d.ts +0 -21
- package/es/utils/typeCheck.js +0 -58
- package/es/utils/typeConvert.d.ts +0 -7
- package/es/utils/typeConvert.js +0 -16
- package/es/utils/utils.d.ts +0 -5
- package/es/utils/utils.js +0 -70
- package/es/utils/utils.less +0 -63
- package/es/utils/utils.test.d.ts +0 -1
- package/es/utils/virtualRequest.d.ts +0 -51
- package/es/utils/virtualRequest.js +0 -320
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
require("antd/es/row/style");
|
|
11
|
-
|
|
12
|
-
var _row = _interopRequireDefault(require("antd/es/row"));
|
|
13
|
-
|
|
14
|
-
require("antd/es/divider/style");
|
|
15
|
-
|
|
16
|
-
var _divider = _interopRequireDefault(require("antd/es/divider"));
|
|
17
|
-
|
|
18
|
-
require("antd/es/col/style");
|
|
19
|
-
|
|
20
|
-
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
21
|
-
|
|
22
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
23
|
-
|
|
24
|
-
var _bizcharts = require("bizcharts");
|
|
25
|
-
|
|
26
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
|
-
|
|
28
|
-
var _index = _interopRequireDefault(require("./index.less"));
|
|
29
|
-
|
|
30
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
-
|
|
32
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
|
-
|
|
36
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37
|
-
|
|
38
|
-
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); } }
|
|
39
|
-
|
|
40
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41
|
-
|
|
42
|
-
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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
|
-
|
|
44
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
|
-
|
|
46
|
-
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); }; }
|
|
47
|
-
|
|
48
|
-
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); }
|
|
49
|
-
|
|
50
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
51
|
-
|
|
52
|
-
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; } }
|
|
53
|
-
|
|
54
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
55
|
-
|
|
56
|
-
var sliceNumber = 0.01; // 自定义 other 的图形,增加两条线
|
|
57
|
-
|
|
58
|
-
(0, _bizcharts.registerShape)('interval', 'sliceShape', {
|
|
59
|
-
draw: function draw(cfg, container) {
|
|
60
|
-
var points = cfg.points;
|
|
61
|
-
var path = [];
|
|
62
|
-
path.push(['M', points[0].x, points[0].y]);
|
|
63
|
-
path.push(['L', points[1].x, points[1].y - sliceNumber]);
|
|
64
|
-
path.push(['L', points[2].x, points[2].y - sliceNumber]);
|
|
65
|
-
path.push(['L', points[3].x, points[3].y]);
|
|
66
|
-
path.push('Z');
|
|
67
|
-
path = this.parsePath(path);
|
|
68
|
-
return container.addShape('path', {
|
|
69
|
-
attrs: {
|
|
70
|
-
fill: cfg.color,
|
|
71
|
-
path: path
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
var Pie = /*#__PURE__*/function (_Component) {
|
|
78
|
-
_inherits(Pie, _Component);
|
|
79
|
-
|
|
80
|
-
var _super = _createSuper(Pie);
|
|
81
|
-
|
|
82
|
-
function Pie() {
|
|
83
|
-
var _this;
|
|
84
|
-
|
|
85
|
-
_classCallCheck(this, Pie);
|
|
86
|
-
|
|
87
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
88
|
-
args[_key] = arguments[_key];
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
92
|
-
_this.state = {};
|
|
93
|
-
|
|
94
|
-
_this.calculateTotal = function (d) {
|
|
95
|
-
var result = 0;
|
|
96
|
-
(d || []).map(function (o) {
|
|
97
|
-
result += o.y;
|
|
98
|
-
return o;
|
|
99
|
-
});
|
|
100
|
-
return result;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
_this.handleLegendClick = function (item, i) {};
|
|
104
|
-
|
|
105
|
-
return _this;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
_createClass(Pie, [{
|
|
109
|
-
key: "render",
|
|
110
|
-
value: function render() {
|
|
111
|
-
var _this2 = this;
|
|
112
|
-
|
|
113
|
-
var _this$props = this.props,
|
|
114
|
-
valueFormat = _this$props.valueFormat,
|
|
115
|
-
subTitle = _this$props.subTitle,
|
|
116
|
-
total = _this$props.total,
|
|
117
|
-
className = _this$props.className,
|
|
118
|
-
style = _this$props.style;
|
|
119
|
-
var pieClassName = (0, _classnames.default)(_index.default.pie, className, _index.default.legendBlock);
|
|
120
|
-
var propsData = this.props.data;
|
|
121
|
-
var totalValue = this.calculateTotal(propsData);
|
|
122
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
-
className: pieClassName
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement(_row.default, {
|
|
125
|
-
gutter: 24
|
|
126
|
-
}, /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
127
|
-
lg: 12,
|
|
128
|
-
md: 12,
|
|
129
|
-
sm: 24,
|
|
130
|
-
xs: 24
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
-
className: _index.default.chart,
|
|
133
|
-
style: style
|
|
134
|
-
}, /*#__PURE__*/_react.default.createElement(_bizcharts.Chart, {
|
|
135
|
-
data: propsData || [],
|
|
136
|
-
autoFit: true
|
|
137
|
-
}, /*#__PURE__*/_react.default.createElement(_bizcharts.Coordinate, {
|
|
138
|
-
type: "theta",
|
|
139
|
-
radius: 0.8,
|
|
140
|
-
innerRadius: 0.75
|
|
141
|
-
}), /*#__PURE__*/_react.default.createElement(_bizcharts.Axis, {
|
|
142
|
-
visible: false
|
|
143
|
-
}), /*#__PURE__*/_react.default.createElement(_bizcharts.Tooltip, {
|
|
144
|
-
showTitle: false
|
|
145
|
-
}), /*#__PURE__*/_react.default.createElement(_bizcharts.Interval, {
|
|
146
|
-
adjust: "stack",
|
|
147
|
-
position: "y",
|
|
148
|
-
color: "x",
|
|
149
|
-
shape: "sliceShape"
|
|
150
|
-
}), /*#__PURE__*/_react.default.createElement(_bizcharts.Interaction, {
|
|
151
|
-
type: "element-single-selected"
|
|
152
|
-
}))), (subTitle || total) && /*#__PURE__*/_react.default.createElement("div", {
|
|
153
|
-
className: _index.default.total
|
|
154
|
-
}, subTitle && /*#__PURE__*/_react.default.createElement("h4", {
|
|
155
|
-
className: "pie-sub-title"
|
|
156
|
-
}, subTitle), total && /*#__PURE__*/_react.default.createElement("div", {
|
|
157
|
-
className: "pie-stat"
|
|
158
|
-
}, typeof total === 'function' ? total() : total))), /*#__PURE__*/_react.default.createElement(_col.default, {
|
|
159
|
-
lg: 12,
|
|
160
|
-
md: 12,
|
|
161
|
-
sm: 24,
|
|
162
|
-
xs: 24
|
|
163
|
-
}, /*#__PURE__*/_react.default.createElement("ul", {
|
|
164
|
-
className: _index.default.legend,
|
|
165
|
-
style: style
|
|
166
|
-
}, (propsData || []).map(function (item, i) {
|
|
167
|
-
var key = "".concat(item.x, "_").concat(i);
|
|
168
|
-
return /*#__PURE__*/_react.default.createElement("li", {
|
|
169
|
-
key: key,
|
|
170
|
-
onClick: function onClick() {
|
|
171
|
-
return _this2.handleLegendClick(item, i);
|
|
172
|
-
}
|
|
173
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
174
|
-
className: _index.default.dot,
|
|
175
|
-
style: {
|
|
176
|
-
backgroundColor: !item.checked ? '#aaa' : item.color
|
|
177
|
-
}
|
|
178
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
179
|
-
className: _index.default.legendTitle
|
|
180
|
-
}, item.x), /*#__PURE__*/_react.default.createElement(_divider.default, {
|
|
181
|
-
type: "vertical"
|
|
182
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
183
|
-
className: _index.default.percent
|
|
184
|
-
}, "".concat(((totalValue || 0) > 0 ? (Number.isNaN(item.y / totalValue) ? 0 : item.y / totalValue) * 100 : 0).toFixed(2), "%")), /*#__PURE__*/_react.default.createElement("span", {
|
|
185
|
-
className: _index.default.value
|
|
186
|
-
}, valueFormat ? valueFormat(item.y) : item.y));
|
|
187
|
-
})))));
|
|
188
|
-
}
|
|
189
|
-
}]);
|
|
190
|
-
|
|
191
|
-
return Pie;
|
|
192
|
-
}(_react.Component);
|
|
193
|
-
|
|
194
|
-
var _default = Pie;
|
|
195
|
-
exports.default = _default;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
@import '~antd/es/style/themes/default.less';
|
|
2
|
-
|
|
3
|
-
.pie {
|
|
4
|
-
position: relative;
|
|
5
|
-
|
|
6
|
-
.chart {
|
|
7
|
-
position: relative;
|
|
8
|
-
}
|
|
9
|
-
// &.hasLegend .chart {
|
|
10
|
-
// width: ~'calc(100% - 240px)';
|
|
11
|
-
// }
|
|
12
|
-
.legend {
|
|
13
|
-
min-width: 200px;
|
|
14
|
-
margin: 0 20px;
|
|
15
|
-
padding: 0;
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
list-style: none;
|
|
18
|
-
|
|
19
|
-
li {
|
|
20
|
-
height: 22px;
|
|
21
|
-
margin-bottom: 16px;
|
|
22
|
-
line-height: 22px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
|
|
25
|
-
&:last-child {
|
|
26
|
-
margin-bottom: 0;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.dot {
|
|
32
|
-
position: relative;
|
|
33
|
-
top: -1px;
|
|
34
|
-
display: inline-block;
|
|
35
|
-
width: 8px;
|
|
36
|
-
height: 8px;
|
|
37
|
-
margin-right: 8px;
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.line {
|
|
42
|
-
display: inline-block;
|
|
43
|
-
width: 1px;
|
|
44
|
-
height: 16px;
|
|
45
|
-
margin-right: 8px;
|
|
46
|
-
background-color: @border-color-split;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.legendTitle {
|
|
50
|
-
color: @text-color;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.percent {
|
|
54
|
-
color: @text-color-secondary;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.value {
|
|
58
|
-
position: absolute;
|
|
59
|
-
right: 10px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.title {
|
|
63
|
-
margin-bottom: 8px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.total {
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: 50%;
|
|
69
|
-
left: 50%;
|
|
70
|
-
max-height: 62px;
|
|
71
|
-
text-align: center;
|
|
72
|
-
transform: translate(-50%, -50%);
|
|
73
|
-
|
|
74
|
-
& > h4 {
|
|
75
|
-
height: 22px;
|
|
76
|
-
margin-bottom: 8px;
|
|
77
|
-
color: @text-color-secondary;
|
|
78
|
-
font-weight: normal;
|
|
79
|
-
font-size: 14px;
|
|
80
|
-
line-height: 22px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
& > p {
|
|
84
|
-
display: block;
|
|
85
|
-
height: 32px;
|
|
86
|
-
color: @heading-color;
|
|
87
|
-
font-size: 1.2em;
|
|
88
|
-
line-height: 32px;
|
|
89
|
-
white-space: nowrap;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.legendBlock {
|
|
95
|
-
&.hasLegend .chart {
|
|
96
|
-
width: 100%;
|
|
97
|
-
margin: 0 0 32px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.legend {
|
|
101
|
-
position: relative;
|
|
102
|
-
transform: none;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default TagCloud;
|
|
2
|
-
declare class TagCloud extends Component<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
state: {
|
|
6
|
-
dv: null;
|
|
7
|
-
height: number;
|
|
8
|
-
width: number;
|
|
9
|
-
};
|
|
10
|
-
isUnmount: boolean;
|
|
11
|
-
requestRef: number;
|
|
12
|
-
root: undefined;
|
|
13
|
-
imageMask: undefined;
|
|
14
|
-
componentDidMount(): void;
|
|
15
|
-
componentDidUpdate(preProps: any): void;
|
|
16
|
-
componentWillUnmount(): void;
|
|
17
|
-
resize: () => void;
|
|
18
|
-
saveRootRef: (node: any) => void;
|
|
19
|
-
initTagCloud: () => void;
|
|
20
|
-
renderChart: import("lodash").DebouncedFunc<(nextProps: any) => void>;
|
|
21
|
-
render(): JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
import { Component } from "react";
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _bizcharts = require("bizcharts");
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
var _lodash = _interopRequireDefault(require("lodash.debounce"));
|
|
17
|
-
|
|
18
|
-
var _dataSet = _interopRequireDefault(require("@antv/data-set"));
|
|
19
|
-
|
|
20
|
-
var _autoHeight = _interopRequireDefault(require("../autoHeight"));
|
|
21
|
-
|
|
22
|
-
var _index = _interopRequireDefault(require("./index.less"));
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
-
|
|
32
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
33
|
-
|
|
34
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
35
|
-
|
|
36
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
37
|
-
|
|
38
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
39
|
-
|
|
40
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
-
|
|
42
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
43
|
-
|
|
44
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45
|
-
|
|
46
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47
|
-
|
|
48
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
49
|
-
|
|
50
|
-
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); } }
|
|
51
|
-
|
|
52
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
53
|
-
|
|
54
|
-
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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
55
|
-
|
|
56
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
57
|
-
|
|
58
|
-
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); }; }
|
|
59
|
-
|
|
60
|
-
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); }
|
|
61
|
-
|
|
62
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
63
|
-
|
|
64
|
-
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; } }
|
|
65
|
-
|
|
66
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
67
|
-
|
|
68
|
-
var imgUrl = 'https://gw.alipayobjects.com/zos/rmsportal/gWyeGLCdFFRavBGIDzWk.png';
|
|
69
|
-
|
|
70
|
-
var TagCloud = /*#__PURE__*/function (_Component) {
|
|
71
|
-
_inherits(TagCloud, _Component);
|
|
72
|
-
|
|
73
|
-
var _super = _createSuper(TagCloud);
|
|
74
|
-
|
|
75
|
-
function TagCloud() {
|
|
76
|
-
var _this;
|
|
77
|
-
|
|
78
|
-
_classCallCheck(this, TagCloud);
|
|
79
|
-
|
|
80
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
81
|
-
args[_key] = arguments[_key];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
85
|
-
_this.state = {
|
|
86
|
-
dv: null,
|
|
87
|
-
height: 0,
|
|
88
|
-
width: 0
|
|
89
|
-
};
|
|
90
|
-
_this.isUnmount = false;
|
|
91
|
-
_this.requestRef = 0;
|
|
92
|
-
_this.root = undefined;
|
|
93
|
-
_this.imageMask = undefined;
|
|
94
|
-
|
|
95
|
-
_this.resize = function () {
|
|
96
|
-
_this.requestRef = requestAnimationFrame(function () {
|
|
97
|
-
_this.renderChart(_this.props);
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
_this.saveRootRef = function (node) {
|
|
102
|
-
_this.root = node;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
_this.initTagCloud = function () {
|
|
106
|
-
function getTextAttrs(cfg) {
|
|
107
|
-
return _objectSpread(_objectSpread({}, cfg.style), {}, {
|
|
108
|
-
fillOpacity: cfg.opacity,
|
|
109
|
-
fontSize: cfg.origin._origin.size,
|
|
110
|
-
rotate: cfg.origin._origin.rotate,
|
|
111
|
-
text: cfg.origin._origin.text,
|
|
112
|
-
textAlign: 'center',
|
|
113
|
-
fontFamily: cfg.origin._origin.font,
|
|
114
|
-
fill: cfg.color,
|
|
115
|
-
textBaseline: 'Alphabetic'
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
(0, _bizcharts.registerShape)('point', 'cloud', {
|
|
120
|
-
draw: function draw(cfg, container) {
|
|
121
|
-
var attrs = getTextAttrs(cfg);
|
|
122
|
-
return container.addShape('text', {
|
|
123
|
-
attrs: _objectSpread(_objectSpread({}, attrs), {}, {
|
|
124
|
-
x: cfg.x,
|
|
125
|
-
y: cfg.y
|
|
126
|
-
})
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
_this.renderChart = (0, _lodash.default)(function (nextProps) {
|
|
133
|
-
// const colors = ['#1890FF', '#41D9C7', '#2FC25B', '#FACC14', '#9AE65C'];
|
|
134
|
-
var _ref = nextProps || _this.props,
|
|
135
|
-
data = _ref.data,
|
|
136
|
-
height = _ref.height;
|
|
137
|
-
|
|
138
|
-
if (data.length < 1 || !_this.root) {
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
var h = height;
|
|
143
|
-
var w = _this.root.offsetWidth;
|
|
144
|
-
|
|
145
|
-
var onload = function onload() {
|
|
146
|
-
var dv = new _dataSet.default.View().source(data);
|
|
147
|
-
var range = dv.range('value');
|
|
148
|
-
|
|
149
|
-
var _range = _slicedToArray(range, 2),
|
|
150
|
-
min = _range[0],
|
|
151
|
-
max = _range[1];
|
|
152
|
-
|
|
153
|
-
dv.transform({
|
|
154
|
-
type: 'tag-cloud',
|
|
155
|
-
fields: ['name', 'value'],
|
|
156
|
-
imageMask: _this.imageMask,
|
|
157
|
-
font: 'Verdana',
|
|
158
|
-
size: [w, h],
|
|
159
|
-
// 宽高设置最好根据 imageMask 做调整
|
|
160
|
-
padding: 0,
|
|
161
|
-
timeInterval: 5000,
|
|
162
|
-
// max execute time
|
|
163
|
-
rotate: function rotate() {
|
|
164
|
-
return 0;
|
|
165
|
-
},
|
|
166
|
-
fontSize: function fontSize(d) {
|
|
167
|
-
var size = Math.pow((d.value - min) / (max - min), 2);
|
|
168
|
-
return size * (17.5 - 5) + 5;
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
if (_this.isUnmount) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
_this.setState({
|
|
177
|
-
dv: dv,
|
|
178
|
-
width: w,
|
|
179
|
-
height: h
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
if (!_this.imageMask) {
|
|
184
|
-
_this.imageMask = new Image();
|
|
185
|
-
_this.imageMask.crossOrigin = '';
|
|
186
|
-
_this.imageMask.src = imgUrl;
|
|
187
|
-
_this.imageMask.onload = onload;
|
|
188
|
-
} else {
|
|
189
|
-
onload();
|
|
190
|
-
}
|
|
191
|
-
}, 500);
|
|
192
|
-
return _this;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
_createClass(TagCloud, [{
|
|
196
|
-
key: "componentDidMount",
|
|
197
|
-
value: function componentDidMount() {
|
|
198
|
-
var _this2 = this;
|
|
199
|
-
|
|
200
|
-
requestAnimationFrame(function () {
|
|
201
|
-
_this2.initTagCloud();
|
|
202
|
-
|
|
203
|
-
_this2.renderChart(_this2.props);
|
|
204
|
-
});
|
|
205
|
-
window.addEventListener('resize', this.resize, {
|
|
206
|
-
passive: true
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
}, {
|
|
210
|
-
key: "componentDidUpdate",
|
|
211
|
-
value: function componentDidUpdate(preProps) {
|
|
212
|
-
var data = this.props.data;
|
|
213
|
-
|
|
214
|
-
if (preProps && JSON.stringify(preProps.data) !== JSON.stringify(data)) {
|
|
215
|
-
this.renderChart(this.props);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}, {
|
|
219
|
-
key: "componentWillUnmount",
|
|
220
|
-
value: function componentWillUnmount() {
|
|
221
|
-
this.isUnmount = true;
|
|
222
|
-
window.cancelAnimationFrame(this.requestRef);
|
|
223
|
-
window.removeEventListener('resize', this.resize);
|
|
224
|
-
}
|
|
225
|
-
}, {
|
|
226
|
-
key: "render",
|
|
227
|
-
value: function render() {
|
|
228
|
-
var className = this.props.className;
|
|
229
|
-
var _this$state = this.state,
|
|
230
|
-
dv = _this$state.dv,
|
|
231
|
-
width = _this$state.width,
|
|
232
|
-
stateHeight = _this$state.height;
|
|
233
|
-
return /*#__PURE__*/_react.default.createElement(_autoHeight.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
234
|
-
className: (0, _classnames.default)(_index.default.tagCloud, className),
|
|
235
|
-
style: {
|
|
236
|
-
width: '100%',
|
|
237
|
-
height: "100%"
|
|
238
|
-
},
|
|
239
|
-
ref: this.saveRootRef
|
|
240
|
-
}, dv && /*#__PURE__*/_react.default.createElement(_bizcharts.Chart, {
|
|
241
|
-
width: width,
|
|
242
|
-
height: stateHeight,
|
|
243
|
-
data: dv,
|
|
244
|
-
padding: 0,
|
|
245
|
-
scale: {
|
|
246
|
-
x: {
|
|
247
|
-
nice: false
|
|
248
|
-
},
|
|
249
|
-
y: {
|
|
250
|
-
nice: false
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}, /*#__PURE__*/_react.default.createElement(_bizcharts.Tooltip, {
|
|
254
|
-
showTitle: false
|
|
255
|
-
}), /*#__PURE__*/_react.default.createElement(_bizcharts.Coordinate, {
|
|
256
|
-
reflect: "y"
|
|
257
|
-
}), /*#__PURE__*/_react.default.createElement(_bizcharts.Geom, {
|
|
258
|
-
type: "point",
|
|
259
|
-
position: "x*y",
|
|
260
|
-
color: "text",
|
|
261
|
-
shape: "cloud",
|
|
262
|
-
tooltip: ['text*value', function trans(text, value) {
|
|
263
|
-
return {
|
|
264
|
-
name: text,
|
|
265
|
-
value: value
|
|
266
|
-
};
|
|
267
|
-
}]
|
|
268
|
-
}))));
|
|
269
|
-
}
|
|
270
|
-
}]);
|
|
271
|
-
|
|
272
|
-
return TagCloud;
|
|
273
|
-
}(_react.Component);
|
|
274
|
-
|
|
275
|
-
var _default = TagCloud;
|
|
276
|
-
exports.default = _default;
|