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,28 +0,0 @@
|
|
|
1
|
-
.ellipsis {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
white-space: normal;
|
|
6
|
-
word-break: break-all;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.lines {
|
|
10
|
-
position: relative;
|
|
11
|
-
|
|
12
|
-
.shadow {
|
|
13
|
-
position: absolute;
|
|
14
|
-
z-index: -999;
|
|
15
|
-
display: block;
|
|
16
|
-
color: transparent;
|
|
17
|
-
opacity: 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.lineClamp {
|
|
22
|
-
position: relative;
|
|
23
|
-
display: -moz-box;
|
|
24
|
-
display: -webkit-box;
|
|
25
|
-
display: box;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
text-overflow: ellipsis;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export function getStrFullLength(str?: string): number;
|
|
2
|
-
export function cutStrByFullLength(str: string | undefined, maxLength: any): string;
|
|
3
|
-
export default class EllipsisCustom extends Component<any, any, any> {
|
|
4
|
-
constructor(props: any);
|
|
5
|
-
constructor(props: any, context: any);
|
|
6
|
-
state: {
|
|
7
|
-
text: string;
|
|
8
|
-
targetCount: number;
|
|
9
|
-
};
|
|
10
|
-
componentDidMount(): void;
|
|
11
|
-
componentDidUpdate(perProps: any): void;
|
|
12
|
-
computeLine: () => void;
|
|
13
|
-
bisection: (th: any, m: any, b: any, e: any, text: any, shadowNode: any) => any;
|
|
14
|
-
handleRoot: (n: any) => void;
|
|
15
|
-
root: any;
|
|
16
|
-
handleContent: (n: any) => void;
|
|
17
|
-
content: any;
|
|
18
|
-
handleNode: (n: any) => void;
|
|
19
|
-
node: any;
|
|
20
|
-
handleShadow: (n: any) => void;
|
|
21
|
-
shadow: any;
|
|
22
|
-
handleShadowChildren: (n: any) => void;
|
|
23
|
-
shadowChildren: any;
|
|
24
|
-
render(): JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
import { Component } from "react";
|
|
@@ -1,355 +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.getStrFullLength = exports.default = exports.cutStrByFullLength = void 0;
|
|
9
|
-
|
|
10
|
-
require("antd/es/tooltip/style");
|
|
11
|
-
|
|
12
|
-
var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
-
|
|
18
|
-
var _index = _interopRequireDefault(require("./index.less"));
|
|
19
|
-
|
|
20
|
-
var _excluded = ["text", "length", "tooltip", "fullWidthRecognition"],
|
|
21
|
-
_excluded2 = ["children", "lines", "length", "className", "tooltip", "fullWidthRecognition", "removeChildren", "extraContent"];
|
|
22
|
-
|
|
23
|
-
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); }
|
|
24
|
-
|
|
25
|
-
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; }
|
|
26
|
-
|
|
27
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
-
|
|
29
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
30
|
-
|
|
31
|
-
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; }
|
|
32
|
-
|
|
33
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34
|
-
|
|
35
|
-
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); } }
|
|
36
|
-
|
|
37
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38
|
-
|
|
39
|
-
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); }
|
|
40
|
-
|
|
41
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
42
|
-
|
|
43
|
-
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); }; }
|
|
44
|
-
|
|
45
|
-
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); }
|
|
46
|
-
|
|
47
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
48
|
-
|
|
49
|
-
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; } }
|
|
50
|
-
|
|
51
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
52
|
-
|
|
53
|
-
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; }
|
|
54
|
-
|
|
55
|
-
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; }
|
|
56
|
-
|
|
57
|
-
/* eslint react/no-did-mount-set-state: 0 */
|
|
58
|
-
|
|
59
|
-
/* eslint no-param-reassign: 0 */
|
|
60
|
-
var isSupportLineClamp = document.body.style.webkitLineClamp !== undefined;
|
|
61
|
-
var TooltipOverlayStyle = {
|
|
62
|
-
overflowWrap: 'break-word',
|
|
63
|
-
wordWrap: 'break-word'
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
var getStrFullLength = function getStrFullLength() {
|
|
67
|
-
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
68
|
-
return str.split('').reduce(function (pre, cur) {
|
|
69
|
-
var charCode = cur.charCodeAt(0);
|
|
70
|
-
|
|
71
|
-
if (charCode >= 0 && charCode <= 128) {
|
|
72
|
-
return pre + 1;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return pre + 2;
|
|
76
|
-
}, 0);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
exports.getStrFullLength = getStrFullLength;
|
|
80
|
-
|
|
81
|
-
var cutStrByFullLength = function cutStrByFullLength() {
|
|
82
|
-
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
83
|
-
var maxLength = arguments.length > 1 ? arguments[1] : undefined;
|
|
84
|
-
var showLength = 0;
|
|
85
|
-
return str.split('').reduce(function (pre, cur) {
|
|
86
|
-
var charCode = cur.charCodeAt(0);
|
|
87
|
-
|
|
88
|
-
if (charCode >= 0 && charCode <= 128) {
|
|
89
|
-
showLength += 1;
|
|
90
|
-
} else {
|
|
91
|
-
showLength += 2;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (showLength <= maxLength) {
|
|
95
|
-
return pre + cur;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return pre;
|
|
99
|
-
}, '');
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
exports.cutStrByFullLength = cutStrByFullLength;
|
|
103
|
-
|
|
104
|
-
var EllipsisText = function EllipsisText(_ref) {
|
|
105
|
-
var text = _ref.text,
|
|
106
|
-
length = _ref.length,
|
|
107
|
-
tooltip = _ref.tooltip,
|
|
108
|
-
fullWidthRecognition = _ref.fullWidthRecognition,
|
|
109
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
110
|
-
|
|
111
|
-
if (typeof text !== 'string') {
|
|
112
|
-
throw new Error('Ellipsis children must be string.');
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
var textLength = fullWidthRecognition ? getStrFullLength(text) : text.length;
|
|
116
|
-
|
|
117
|
-
if (textLength <= length || length < 0) {
|
|
118
|
-
return /*#__PURE__*/_react.default.createElement("span", other, text);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
var tail = '...';
|
|
122
|
-
var displayText;
|
|
123
|
-
|
|
124
|
-
if (length - tail.length <= 0) {
|
|
125
|
-
displayText = '';
|
|
126
|
-
} else {
|
|
127
|
-
displayText = fullWidthRecognition ? cutStrByFullLength(text, length) : text.slice(0, length);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (tooltip) {
|
|
131
|
-
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
132
|
-
overlayStyle: TooltipOverlayStyle,
|
|
133
|
-
title: text
|
|
134
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, displayText, tail));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
return /*#__PURE__*/_react.default.createElement("span", other, displayText, tail);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
var EllipsisCustom = /*#__PURE__*/function (_Component) {
|
|
141
|
-
_inherits(EllipsisCustom, _Component);
|
|
142
|
-
|
|
143
|
-
var _super = _createSuper(EllipsisCustom);
|
|
144
|
-
|
|
145
|
-
function EllipsisCustom() {
|
|
146
|
-
var _this;
|
|
147
|
-
|
|
148
|
-
_classCallCheck(this, EllipsisCustom);
|
|
149
|
-
|
|
150
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
151
|
-
args[_key] = arguments[_key];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
155
|
-
_this.state = {
|
|
156
|
-
text: '',
|
|
157
|
-
targetCount: 0
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
_this.computeLine = function () {
|
|
161
|
-
var lines = _this.props.lines;
|
|
162
|
-
|
|
163
|
-
if (lines && !isSupportLineClamp) {
|
|
164
|
-
var text = _this.shadowChildren.innerText || _this.shadowChildren.textContent;
|
|
165
|
-
var lineHeight = parseInt(getComputedStyle(_this.root).lineHeight, 10);
|
|
166
|
-
var targetHeight = lines * lineHeight;
|
|
167
|
-
_this.content.style.height = "".concat(targetHeight, "px");
|
|
168
|
-
var totalHeight = _this.shadowChildren.offsetHeight;
|
|
169
|
-
var shadowNode = _this.shadow.firstChild;
|
|
170
|
-
|
|
171
|
-
if (totalHeight <= targetHeight) {
|
|
172
|
-
_this.setState({
|
|
173
|
-
text: text,
|
|
174
|
-
targetCount: text.length
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
return;
|
|
178
|
-
} // bisection
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var len = text.length;
|
|
182
|
-
var mid = Math.ceil(len / 2);
|
|
183
|
-
|
|
184
|
-
var count = _this.bisection(targetHeight, mid, 0, len, text, shadowNode);
|
|
185
|
-
|
|
186
|
-
_this.setState({
|
|
187
|
-
text: text,
|
|
188
|
-
targetCount: count
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
_this.bisection = function (th, m, b, e, text, shadowNode) {
|
|
194
|
-
var suffix = '...';
|
|
195
|
-
var mid = m;
|
|
196
|
-
var end = e;
|
|
197
|
-
var begin = b;
|
|
198
|
-
shadowNode.innerHTML = text.substring(0, mid) + suffix;
|
|
199
|
-
var sh = shadowNode.offsetHeight;
|
|
200
|
-
|
|
201
|
-
if (sh <= th) {
|
|
202
|
-
shadowNode.innerHTML = text.substring(0, mid + 1) + suffix;
|
|
203
|
-
sh = shadowNode.offsetHeight;
|
|
204
|
-
|
|
205
|
-
if (sh > th || mid === begin) {
|
|
206
|
-
return mid;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
begin = mid;
|
|
210
|
-
|
|
211
|
-
if (end - begin === 1) {
|
|
212
|
-
mid = 1 + begin;
|
|
213
|
-
} else {
|
|
214
|
-
mid = Math.floor((end - begin) / 2) + begin;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
return _this.bisection(th, mid, begin, end, text, shadowNode);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (mid - 1 < 0) {
|
|
221
|
-
return mid;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
shadowNode.innerHTML = text.substring(0, mid - 1) + suffix;
|
|
225
|
-
sh = shadowNode.offsetHeight;
|
|
226
|
-
|
|
227
|
-
if (sh <= th) {
|
|
228
|
-
return mid - 1;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
end = mid;
|
|
232
|
-
mid = Math.floor((end - begin) / 2) + begin;
|
|
233
|
-
return _this.bisection(th, mid, begin, end, text, shadowNode);
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
_this.handleRoot = function (n) {
|
|
237
|
-
_this.root = n;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
_this.handleContent = function (n) {
|
|
241
|
-
_this.content = n;
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
_this.handleNode = function (n) {
|
|
245
|
-
_this.node = n;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
_this.handleShadow = function (n) {
|
|
249
|
-
_this.shadow = n;
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
_this.handleShadowChildren = function (n) {
|
|
253
|
-
_this.shadowChildren = n;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
return _this;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
_createClass(EllipsisCustom, [{
|
|
260
|
-
key: "componentDidMount",
|
|
261
|
-
value: function componentDidMount() {
|
|
262
|
-
if (this.node) {
|
|
263
|
-
this.computeLine();
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}, {
|
|
267
|
-
key: "componentDidUpdate",
|
|
268
|
-
value: function componentDidUpdate(perProps) {
|
|
269
|
-
var lines = this.props.lines;
|
|
270
|
-
|
|
271
|
-
if (lines !== perProps.lines) {
|
|
272
|
-
this.computeLine();
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}, {
|
|
276
|
-
key: "render",
|
|
277
|
-
value: function render() {
|
|
278
|
-
var _classNames;
|
|
279
|
-
|
|
280
|
-
var _this$state = this.state,
|
|
281
|
-
text = _this$state.text,
|
|
282
|
-
targetCount = _this$state.targetCount;
|
|
283
|
-
|
|
284
|
-
var _this$props = this.props,
|
|
285
|
-
children = _this$props.children,
|
|
286
|
-
lines = _this$props.lines,
|
|
287
|
-
length = _this$props.length,
|
|
288
|
-
className = _this$props.className,
|
|
289
|
-
tooltip = _this$props.tooltip,
|
|
290
|
-
fullWidthRecognition = _this$props.fullWidthRecognition,
|
|
291
|
-
removeChildren = _this$props.removeChildren,
|
|
292
|
-
extraContent = _this$props.extraContent,
|
|
293
|
-
restProps = _objectWithoutProperties(_this$props, _excluded2);
|
|
294
|
-
|
|
295
|
-
var cls = (0, _classnames.default)(_index.default.ellipsis, className, (_classNames = {}, _defineProperty(_classNames, _index.default.lines, lines && !isSupportLineClamp), _defineProperty(_classNames, _index.default.lineClamp, lines && isSupportLineClamp), _classNames));
|
|
296
|
-
|
|
297
|
-
if (!lines && !length) {
|
|
298
|
-
return /*#__PURE__*/_react.default.createElement("span", _extends({
|
|
299
|
-
className: cls
|
|
300
|
-
}, restProps), children);
|
|
301
|
-
} // length
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
if (!lines) {
|
|
305
|
-
return /*#__PURE__*/_react.default.createElement(EllipsisText, _extends({
|
|
306
|
-
className: cls,
|
|
307
|
-
length: length,
|
|
308
|
-
text: children || '',
|
|
309
|
-
tooltip: tooltip,
|
|
310
|
-
fullWidthRecognition: fullWidthRecognition
|
|
311
|
-
}, restProps));
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
var id = "antd-pro-ellipsis-".concat("".concat(new Date().getTime()).concat(Math.floor(Math.random() * 100))); // support document.body.style.webkitLineClamp
|
|
315
|
-
|
|
316
|
-
if (isSupportLineClamp) {
|
|
317
|
-
var style = "#".concat(id, "{-webkit-line-clamp:").concat(lines, ";-webkit-box-orient: vertical;}");
|
|
318
|
-
|
|
319
|
-
var node = /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
320
|
-
id: id,
|
|
321
|
-
className: cls
|
|
322
|
-
}, restProps), /*#__PURE__*/_react.default.createElement("style", null, style), removeChildren ? null : children, extraContent);
|
|
323
|
-
|
|
324
|
-
return tooltip ? /*#__PURE__*/_react.default.createElement(_tooltip.default, _extends({}, tooltip, {
|
|
325
|
-
overlayStyle: TooltipOverlayStyle,
|
|
326
|
-
title: children
|
|
327
|
-
}), node) : node;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
var childNode = /*#__PURE__*/_react.default.createElement("span", {
|
|
331
|
-
ref: this.handleNode
|
|
332
|
-
}, targetCount > 0 && text.substring(0, targetCount), targetCount > 0 && targetCount < text.length && '...');
|
|
333
|
-
|
|
334
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, restProps, {
|
|
335
|
-
ref: this.handleRoot,
|
|
336
|
-
className: cls
|
|
337
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
338
|
-
ref: this.handleContent
|
|
339
|
-
}, tooltip ? /*#__PURE__*/_react.default.createElement(_tooltip.default, _extends({}, tooltip, {
|
|
340
|
-
overlayStyle: TooltipOverlayStyle,
|
|
341
|
-
title: text
|
|
342
|
-
}), childNode) : /*#__PURE__*/_react.default.createElement("div", null, childNode), /*#__PURE__*/_react.default.createElement("div", {
|
|
343
|
-
className: _index.default.shadow,
|
|
344
|
-
ref: this.handleShadowChildren
|
|
345
|
-
}, children), /*#__PURE__*/_react.default.createElement("div", {
|
|
346
|
-
className: _index.default.shadow,
|
|
347
|
-
ref: this.handleShadow
|
|
348
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, text))));
|
|
349
|
-
}
|
|
350
|
-
}]);
|
|
351
|
-
|
|
352
|
-
return EllipsisCustom;
|
|
353
|
-
}(_react.Component);
|
|
354
|
-
|
|
355
|
-
exports.default = EllipsisCustom;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.ellipsis {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
width: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
word-break: break-all;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.lines {
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
.shadow {
|
|
12
|
-
position: absolute;
|
|
13
|
-
z-index: -999;
|
|
14
|
-
display: block;
|
|
15
|
-
color: transparent;
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.lineClamp {
|
|
21
|
-
position: relative;
|
|
22
|
-
display: -moz-box;
|
|
23
|
-
display: -webkit-box;
|
|
24
|
-
display: box;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default EverySpace;
|
|
2
|
-
declare class EverySpace extends PureComponent<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
render(): JSX.Element | null;
|
|
6
|
-
}
|
|
7
|
-
declare namespace EverySpace {
|
|
8
|
-
namespace defaultProps {
|
|
9
|
-
const size: number;
|
|
10
|
-
const direction: string;
|
|
11
|
-
const backgroundColor: string;
|
|
12
|
-
const margin: string;
|
|
13
|
-
const borderRadius: string;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
import { PureComponent } from "react";
|
|
@@ -1,105 +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 _tools = require("../../utils/tools");
|
|
13
|
-
|
|
14
|
-
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); }
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
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); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
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); }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
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; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var EverySpace = /*#__PURE__*/function (_PureComponent) {
|
|
45
|
-
_inherits(EverySpace, _PureComponent);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(EverySpace);
|
|
48
|
-
|
|
49
|
-
function EverySpace() {
|
|
50
|
-
_classCallCheck(this, EverySpace);
|
|
51
|
-
|
|
52
|
-
return _super.apply(this, arguments);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
_createClass(EverySpace, [{
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
size = _this$props.size,
|
|
60
|
-
direction = _this$props.direction,
|
|
61
|
-
backgroundColor = _this$props.backgroundColor,
|
|
62
|
-
margin = _this$props.margin,
|
|
63
|
-
borderRadius = _this$props.borderRadius;
|
|
64
|
-
|
|
65
|
-
if (size <= 0) {
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (direction !== 'vertical' && direction !== 'horizontal') {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var customStyle = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {}), (0, _tools.stringIsNullOrWhiteSpace)(backgroundColor || '') ? {} : {
|
|
74
|
-
backgroundColor: backgroundColor
|
|
75
|
-
}), (0, _tools.stringIsNullOrWhiteSpace)(margin || '') ? {} : {
|
|
76
|
-
margin: margin
|
|
77
|
-
}), (0, _tools.stringIsNullOrWhiteSpace)(borderRadius || '') ? {} : {
|
|
78
|
-
borderRadius: borderRadius
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, direction === 'horizontal' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
-
style: _objectSpread(_objectSpread({}, {
|
|
83
|
-
height: "".concat(size, "px")
|
|
84
|
-
}), customStyle)
|
|
85
|
-
}) : null, direction === 'vertical' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
-
style: _objectSpread(_objectSpread({}, {
|
|
87
|
-
height: "100%",
|
|
88
|
-
width: "".concat(size, "px")
|
|
89
|
-
}), customStyle)
|
|
90
|
-
}) : null);
|
|
91
|
-
}
|
|
92
|
-
}]);
|
|
93
|
-
|
|
94
|
-
return EverySpace;
|
|
95
|
-
}(_react.PureComponent);
|
|
96
|
-
|
|
97
|
-
EverySpace.defaultProps = {
|
|
98
|
-
size: 10,
|
|
99
|
-
direction: 'vertical',
|
|
100
|
-
backgroundColor: '',
|
|
101
|
-
margin: '',
|
|
102
|
-
borderRadius: ''
|
|
103
|
-
};
|
|
104
|
-
var _default = EverySpace;
|
|
105
|
-
exports.default = _default;
|