@zat-design/sisyphus-react 3.0.13 → 3.0.16-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.css +2729 -1876
- package/es/ProDownload/DownloadHelper.js +2 -0
- package/es/ProDrawerForm/components/ProDrawer/index.js +5 -3
- package/es/ProDrawerForm/components/ProModal/index.js +15 -5
- package/es/ProDrawerForm/index.js +1 -1
- package/es/ProDrawerForm/propsType.d.ts +4 -0
- package/es/ProDrawerForm/style/index.less +88 -55
- package/es/ProEditLabel/components/RenderProForm.d.ts +4 -0
- package/es/ProEditLabel/components/RenderProForm.js +70 -0
- package/es/ProEditLabel/index.js +104 -141
- package/es/ProEditLabel/propsType.d.ts +7 -4
- package/es/ProEditLabel/style/index.less +33 -2
- package/es/ProEditLabel/utils/index.d.ts +5 -7
- package/es/ProEditLabel/utils/index.js +11 -27
- package/es/ProEditTable/components/ActionButton/index.d.ts +2 -1
- package/es/ProEditTable/components/ActionButton/index.js +20 -4
- package/es/ProEditTable/components/RenderField/index.d.ts +2 -1
- package/es/ProEditTable/components/RenderField/index.js +1 -2
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +2 -1
- package/es/ProEditTable/components/Summary/index.d.ts +2 -1
- package/es/ProEditTable/propsType.d.ts +5 -0
- package/es/ProEditTable/style/index.less +16 -13
- package/es/ProEditTable/utils/config.d.ts +2 -1
- package/es/ProEditTable/utils/config.js +25 -14
- package/es/ProEditTable/utils/index.js +5 -3
- package/es/ProEnum/getEnumLabel.d.ts +2 -1
- package/es/ProEnum/getEnumLabel.js +1 -1
- package/es/ProEnum/index.d.ts +3 -2
- package/es/ProEnum/index.js +1 -1
- package/es/ProEnum/useEnum.js +1 -1
- package/es/ProEnum/useEnumRequest.js +6 -11
- package/es/ProForm/components/FormFooter/index.js +1 -1
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/base/FormList/components/ActionButton.js +4 -5
- package/es/ProForm/components/base/FormList/index.d.ts +1 -0
- package/es/ProForm/components/base/FormList/index.js +10 -5
- package/es/ProForm/components/base/FormList/style/index.less +3 -0
- package/es/ProForm/components/base/Input/index.d.ts +2 -1
- package/es/ProForm/components/base/Input/index.js +1 -1
- package/es/ProForm/components/base/InputNumber/index.js +25 -1
- package/es/ProForm/components/base/RangePicker/index.js +2 -2
- package/es/ProForm/components/base/Select/index.js +1 -1
- package/es/ProForm/components/base/Switch/index.js +1 -1
- package/es/ProForm/components/base/TextArea/index.js +1 -1
- package/es/ProForm/components/combination/ProAddressBar/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProAddressBar/index.js +3 -2
- package/es/ProForm/components/combination/ProCombination/index.js +3 -3
- package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +4 -3
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +7 -6
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +45 -36
- package/es/ProForm/components/combination/ProRangeLimit/index.js +14 -16
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -1
- package/es/ProForm/components/index.d.ts +2 -0
- package/es/ProForm/components/index.js +2 -0
- package/es/ProForm/components/old/CertNo/index.d.ts +2 -1
- package/es/ProForm/components/old/EnumSelect/index.js +1 -1
- package/es/ProForm/components/old/InputRange/index.d.ts +2 -1
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +2 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +2 -1
- package/es/ProForm/components/old/ProCertValidity/index.js +1 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
- package/es/ProForm/components/render/Render.js +6 -22
- package/es/ProForm/components/render/propsType.d.ts +4 -0
- package/es/ProForm/index.js +4 -2
- package/es/ProForm/style/index.less +12 -5
- package/es/ProForm/utils/index.d.ts +5 -2
- package/es/ProForm/utils/index.js +7 -12
- package/es/ProForm/utils/transformValue.js +4 -2
- package/es/ProForm/utils/useShouldUpdate.js +1 -0
- package/es/ProForm/utils/valueType.d.ts +4 -4
- package/es/ProIcon/index.d.ts +1 -0
- package/es/ProIcon/index.js +35 -5
- package/es/ProIcon/propsTypes.d.ts +9 -9
- package/es/ProIcon/symbolIcon.js +43 -0
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -2
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +2 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +3 -0
- package/es/ProLayout/components/ProCollapse/index.d.ts +2 -1
- package/es/ProLayout/components/ProCollapse/style/index.less +1 -0
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +2 -1
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.js +2 -4
- package/es/ProLayout/components/ProHeader/style/index.less +3 -3
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProLayout/index.js +5 -6
- package/es/ProLayout/propTypes.d.ts +2 -5
- package/es/ProLayout/style/index.less +7 -1
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProSelect/index.js +2 -2
- package/es/ProSelect/propsType.d.ts +7 -0
- package/es/ProStep/components/Anchor/index.d.ts +2 -1
- package/es/ProStep/components/Item/index.d.ts +2 -1
- package/es/ProStep/components/Step/index.d.ts +2 -1
- package/es/ProStep/components/Step/index.js +12 -10
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProStep/style/index.less +1 -1
- package/es/ProTable/components/ResizableLine/index.d.ts +2 -1
- package/es/ProTable/components/TableResizable/index.d.ts +2 -1
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTable/index.js +2 -2
- package/es/ProTable/propsType.d.ts +4 -3
- package/es/ProTable/style/index.less +12 -17
- package/es/ProTable/useAntdTable.d.ts +4 -4
- package/es/ProTable/useAntdTable.js +64 -37
- package/es/ProTable/utils.js +25 -6
- package/es/ProTabs/components/Card/index.d.ts +4 -0
- package/es/ProTabs/components/Card/index.js +24 -0
- package/es/ProTabs/components/index.d.ts +1 -0
- package/es/ProTabs/components/index.js +1 -0
- package/es/ProTabs/index.d.ts +4 -0
- package/es/ProTabs/index.js +98 -0
- package/es/ProTabs/propType.d.ts +31 -0
- package/es/ProTabs/propType.js +1 -0
- package/es/ProTabs/style/index.less +68 -0
- package/es/ProThemeTools/component/PrdTools/index.d.ts +4 -0
- package/es/ProThemeTools/component/PrdTools/index.js +219 -0
- package/es/ProThemeTools/component/PrdTools/style/index.less +168 -0
- package/es/ProThemeTools/component/index.d.ts +2 -0
- package/es/ProThemeTools/component/index.js +2 -0
- package/es/ProThemeTools/index.d.ts +14 -0
- package/es/ProThemeTools/index.js +196 -0
- package/es/ProThemeTools/propsType.d.ts +35 -0
- package/es/ProThemeTools/propsType.js +1 -0
- package/es/ProThemeTools/style/index.less +55 -0
- package/es/ProThemeTools/utils/index.d.ts +19 -0
- package/es/ProThemeTools/utils/index.js +72 -0
- package/es/ProTooltip/index.d.ts +2 -1
- package/es/ProTransferModal/components/SortableItem/index.js +2 -2
- package/es/ProTransferModal/style/index.less +9 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +3 -0
- package/es/ProTreeModal/components/CloseIcon.js +25 -0
- package/es/ProTreeModal/components/List.d.ts +13 -0
- package/es/ProTreeModal/components/List.js +52 -0
- package/es/ProTreeModal/components/SearchTitle.d.ts +7 -0
- package/es/ProTreeModal/components/SearchTitle.js +14 -0
- package/es/ProTreeModal/components/Tree.d.ts +15 -0
- package/es/ProTreeModal/components/Tree.js +149 -0
- package/es/ProTreeModal/components/Trigger.d.ts +10 -0
- package/es/ProTreeModal/components/Trigger.js +32 -0
- package/es/ProTreeModal/components/index.d.ts +5 -0
- package/es/ProTreeModal/components/index.js +5 -0
- package/es/ProTreeModal/data/datasource.d.ts +5 -0
- package/es/ProTreeModal/data/datasource.js +17 -0
- package/es/ProTreeModal/data/mock.d.ts +9 -0
- package/es/ProTreeModal/data/mock.js +39 -0
- package/es/ProTreeModal/index.d.ts +5 -0
- package/es/ProTreeModal/index.js +333 -0
- package/es/ProTreeModal/propsType.d.ts +26 -0
- package/es/ProTreeModal/propsType.js +1 -0
- package/es/ProTreeModal/style/index.less +105 -0
- package/es/ProTreeModal/utils.d.ts +26 -0
- package/es/ProTreeModal/utils.js +136 -0
- package/es/ProTreeSelect/index.d.ts +5 -0
- package/es/ProTreeSelect/index.js +426 -0
- package/es/ProTreeSelect/propsType.d.ts +95 -0
- package/es/ProTreeSelect/propsType.js +1 -0
- package/es/ProTreeSelect/style/index.less +109 -0
- package/es/ProUpload/Example.js +1 -1
- package/es/ProUpload/index.d.ts +0 -1
- package/es/ProUpload/index.js +8 -2
- package/es/ProUpload/style/fileItem.less +3 -1
- package/es/ProUpload/style/index.less +8 -1
- package/es/ProWaterMark/index.js +1 -1
- package/es/assets/close.svg +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -8
- package/es/old/ProCertValidity/index.js +1 -1
- package/es/style/components.less +25 -9
- package/es/style/theme/antd.less +60 -29
- package/es/style/theme/index.less +154 -176
- package/es/tokens.js +85 -0
- package/lib/ProDrawerForm/components/ProDrawer/index.js +5 -3
- package/lib/ProDrawerForm/components/ProModal/index.js +13 -5
- package/lib/ProDrawerForm/index.js +1 -1
- package/lib/ProDrawerForm/propsType.d.ts +4 -0
- package/lib/ProDrawerForm/style/index.less +88 -55
- package/lib/ProEditLabel/components/RenderProForm.d.ts +4 -0
- package/lib/ProEditLabel/components/RenderProForm.js +78 -0
- package/lib/ProEditLabel/index.js +102 -137
- package/lib/ProEditLabel/propsType.d.ts +7 -4
- package/lib/ProEditLabel/style/index.less +33 -2
- package/lib/ProEditLabel/utils/index.d.ts +5 -7
- package/lib/ProEditLabel/utils/index.js +14 -31
- package/lib/ProEditTable/components/ActionButton/index.d.ts +2 -1
- package/lib/ProEditTable/components/ActionButton/index.js +20 -4
- package/lib/ProEditTable/components/RenderField/index.d.ts +2 -1
- package/lib/ProEditTable/components/RenderField/index.js +3 -2
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +2 -1
- package/lib/ProEditTable/components/Summary/index.d.ts +2 -1
- package/lib/ProEditTable/propsType.d.ts +5 -0
- package/lib/ProEditTable/style/index.less +16 -13
- package/lib/ProEditTable/utils/config.d.ts +2 -1
- package/lib/ProEditTable/utils/config.js +24 -13
- package/lib/ProEditTable/utils/index.js +5 -3
- package/lib/ProEnum/getEnumLabel.d.ts +2 -1
- package/lib/ProEnum/getEnumLabel.js +3 -3
- package/lib/ProEnum/index.d.ts +3 -2
- package/lib/ProEnum/index.js +4 -4
- package/lib/ProEnum/useEnum.js +3 -3
- package/lib/ProEnum/useEnumRequest.js +6 -11
- package/lib/ProForm/components/FormFooter/index.js +2 -2
- package/lib/ProForm/components/base/DatePicker/index.js +3 -3
- package/lib/ProForm/components/base/FormList/components/ActionButton.js +4 -5
- package/lib/ProForm/components/base/FormList/index.d.ts +1 -0
- package/lib/ProForm/components/base/FormList/index.js +10 -5
- package/lib/ProForm/components/base/FormList/style/index.less +3 -0
- package/lib/ProForm/components/base/Input/index.d.ts +2 -1
- package/lib/ProForm/components/base/Input/index.js +2 -2
- package/lib/ProForm/components/base/InputNumber/index.js +26 -2
- package/lib/ProForm/components/base/RangePicker/index.js +2 -2
- package/lib/ProForm/components/base/Select/index.js +2 -2
- package/lib/ProForm/components/base/Switch/index.js +2 -2
- package/lib/ProForm/components/base/TextArea/index.js +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProAddressBar/index.js +4 -3
- package/lib/ProForm/components/combination/ProCombination/index.js +3 -3
- package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +8 -7
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +7 -6
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +45 -36
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +15 -17
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -1
- package/lib/ProForm/components/index.d.ts +2 -0
- package/lib/ProForm/components/index.js +14 -0
- package/lib/ProForm/components/old/CertNo/index.d.ts +2 -1
- package/lib/ProForm/components/old/EnumSelect/index.js +2 -2
- package/lib/ProForm/components/old/InputRange/index.d.ts +2 -1
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +2 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +2 -1
- package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
- package/lib/ProForm/components/render/Render.js +4 -20
- package/lib/ProForm/components/render/propsType.d.ts +4 -0
- package/lib/ProForm/index.js +4 -2
- package/lib/ProForm/style/index.less +12 -5
- package/lib/ProForm/utils/index.d.ts +5 -2
- package/lib/ProForm/utils/index.js +10 -14
- package/lib/ProForm/utils/transformValue.js +4 -2
- package/lib/ProForm/utils/useShouldUpdate.js +1 -0
- package/lib/ProForm/utils/valueType.d.ts +4 -4
- package/lib/ProIcon/index.d.ts +1 -0
- package/lib/ProIcon/index.js +36 -5
- package/lib/ProIcon/propsTypes.d.ts +9 -9
- package/lib/ProIcon/symbolIcon.js +45 -0
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -2
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +2 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +3 -0
- package/lib/ProLayout/components/ProCollapse/index.d.ts +2 -1
- package/lib/ProLayout/components/ProCollapse/style/index.less +1 -0
- package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +2 -1
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.js +1 -4
- package/lib/ProLayout/components/ProHeader/style/index.less +3 -3
- package/lib/ProLayout/index.d.ts +4 -4
- package/lib/ProLayout/index.js +5 -6
- package/lib/ProLayout/propTypes.d.ts +2 -5
- package/lib/ProLayout/style/index.less +7 -1
- package/lib/ProSelect/index.d.ts +1 -1
- package/lib/ProSelect/index.js +3 -3
- package/lib/ProSelect/propsType.d.ts +7 -0
- package/lib/ProStep/components/Anchor/index.d.ts +2 -1
- package/lib/ProStep/components/Item/index.d.ts +2 -1
- package/lib/ProStep/components/Step/index.d.ts +2 -1
- package/lib/ProStep/components/Step/index.js +11 -9
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProStep/style/index.less +1 -1
- package/lib/ProTable/components/ResizableLine/index.d.ts +2 -1
- package/lib/ProTable/components/TableResizable/index.d.ts +2 -1
- package/lib/ProTable/components/TableResizable/index.js +8 -0
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTable/index.js +5 -5
- package/lib/ProTable/propsType.d.ts +4 -3
- package/lib/ProTable/style/index.less +12 -17
- package/lib/ProTable/useAntdTable.d.ts +4 -4
- package/lib/ProTable/useAntdTable.js +63 -36
- package/lib/ProTable/utils.js +26 -7
- package/lib/ProTabs/components/Card/index.d.ts +4 -0
- package/lib/ProTabs/components/Card/index.js +31 -0
- package/lib/ProTabs/components/index.d.ts +1 -0
- package/lib/ProTabs/components/index.js +13 -0
- package/lib/ProTabs/index.d.ts +4 -0
- package/lib/ProTabs/index.js +106 -0
- package/lib/ProTabs/propType.d.ts +31 -0
- package/lib/ProTabs/propType.js +5 -0
- package/lib/ProTabs/style/index.less +68 -0
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +4 -0
- package/lib/ProThemeTools/component/PrdTools/index.js +221 -0
- package/lib/ProThemeTools/component/PrdTools/style/index.less +168 -0
- package/lib/ProThemeTools/component/index.d.ts +2 -0
- package/lib/ProThemeTools/component/index.js +13 -0
- package/lib/ProThemeTools/index.d.ts +14 -0
- package/lib/ProThemeTools/index.js +202 -0
- package/lib/ProThemeTools/propsType.d.ts +35 -0
- package/lib/ProThemeTools/propsType.js +5 -0
- package/lib/ProThemeTools/style/index.less +55 -0
- package/lib/ProThemeTools/utils/index.d.ts +19 -0
- package/lib/ProThemeTools/utils/index.js +82 -0
- package/lib/ProTooltip/index.d.ts +2 -1
- package/lib/ProTransferModal/components/SortableItem/index.js +2 -2
- package/lib/ProTransferModal/style/index.less +9 -1
- package/lib/ProTreeModal/components/CloseIcon.d.ts +3 -0
- package/lib/ProTreeModal/components/CloseIcon.js +33 -0
- package/lib/ProTreeModal/components/List.d.ts +13 -0
- package/lib/ProTreeModal/components/List.js +59 -0
- package/lib/ProTreeModal/components/SearchTitle.d.ts +7 -0
- package/lib/ProTreeModal/components/SearchTitle.js +22 -0
- package/lib/ProTreeModal/components/Tree.d.ts +15 -0
- package/lib/ProTreeModal/components/Tree.js +157 -0
- package/lib/ProTreeModal/components/Trigger.d.ts +10 -0
- package/lib/ProTreeModal/components/Trigger.js +39 -0
- package/lib/ProTreeModal/components/index.d.ts +5 -0
- package/lib/ProTreeModal/components/index.js +41 -0
- package/lib/ProTreeModal/data/datasource.d.ts +5 -0
- package/lib/ProTreeModal/data/datasource.js +24 -0
- package/lib/ProTreeModal/data/mock.d.ts +9 -0
- package/lib/ProTreeModal/data/mock.js +47 -0
- package/lib/ProTreeModal/index.d.ts +5 -0
- package/lib/ProTreeModal/index.js +340 -0
- package/lib/ProTreeModal/propsType.d.ts +26 -0
- package/lib/ProTreeModal/propsType.js +5 -0
- package/lib/ProTreeModal/style/index.less +105 -0
- package/lib/ProTreeModal/utils.d.ts +26 -0
- package/lib/ProTreeModal/utils.js +148 -0
- package/lib/ProTreeSelect/index.d.ts +5 -0
- package/lib/ProTreeSelect/index.js +433 -0
- package/lib/ProTreeSelect/propsType.d.ts +95 -0
- package/lib/ProTreeSelect/propsType.js +5 -0
- package/lib/ProTreeSelect/style/index.less +109 -0
- package/lib/ProUpload/Example.js +2 -2
- package/lib/ProUpload/index.d.ts +0 -1
- package/lib/ProUpload/index.js +8 -2
- package/lib/ProUpload/style/fileItem.less +3 -1
- package/lib/ProUpload/style/index.less +8 -1
- package/lib/ProWaterMark/index.js +1 -1
- package/lib/assets/close.svg +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +28 -0
- package/lib/old/ProCertValidity/index.js +1 -1
- package/lib/style/components.less +25 -9
- package/lib/style/theme/antd.less +60 -29
- package/lib/style/theme/index.less +154 -176
- package/lib/tokens.js +87 -0
- package/package.json +7 -8
- package/typings.d.ts +6 -2
- package/es/ProEditLabel/components/RenderForm.d.ts +0 -3
- package/es/ProEditLabel/components/RenderForm.js +0 -65
- package/lib/ProEditLabel/components/RenderForm.d.ts +0 -3
- package/lib/ProEditLabel/components/RenderForm.js +0 -75
- package/source-code/package.json +0 -16
|
@@ -2,13 +2,20 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
var _excluded = ["page", "filters", "sorter"];
|
|
8
8
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
|
-
import {
|
|
10
|
-
import { isEqual } from 'lodash';
|
|
9
|
+
import { useRequest, useSetState, useDeepCompareEffect } from 'ahooks';
|
|
11
10
|
import { defaultPage } from './index';
|
|
11
|
+
var defaultResponse = {
|
|
12
|
+
data: _objectSpread(_objectSpread({}, defaultPage), {}, {
|
|
13
|
+
total: 0,
|
|
14
|
+
list: []
|
|
15
|
+
}),
|
|
16
|
+
status: '',
|
|
17
|
+
message: ''
|
|
18
|
+
};
|
|
12
19
|
var useDefaultOptions = function useDefaultOptions(options) {
|
|
13
20
|
var _useState = useState((options === null || options === void 0 ? void 0 : options.page) || defaultPage),
|
|
14
21
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47,6 +54,8 @@ function useAntdTable(service, options, useRequestOptions) {
|
|
|
47
54
|
rowSelections = _useDefaultOptions.rowSelections,
|
|
48
55
|
_useDefaultOptions$is = _useDefaultOptions.isResetQuery,
|
|
49
56
|
isResetQuery = _useDefaultOptions$is === void 0 ? false : _useDefaultOptions$is,
|
|
57
|
+
_useDefaultOptions$cr = _useDefaultOptions.crossPageSelect,
|
|
58
|
+
crossPageSelect = _useDefaultOptions$cr === void 0 ? false : _useDefaultOptions$cr,
|
|
50
59
|
onPageChange = _useDefaultOptions.onPageChange,
|
|
51
60
|
transformParams = _useDefaultOptions.transformParams,
|
|
52
61
|
transformResponse = _useDefaultOptions.transformResponse;
|
|
@@ -85,25 +94,21 @@ function useAntdTable(service, options, useRequestOptions) {
|
|
|
85
94
|
defaultParams: [getTransformParams()]
|
|
86
95
|
}));
|
|
87
96
|
var _result$data = result.data,
|
|
88
|
-
data = _result$data === void 0 ?
|
|
97
|
+
data = _result$data === void 0 ? defaultResponse : _result$data,
|
|
89
98
|
run = result.run,
|
|
90
99
|
refresh = result.refresh;
|
|
91
|
-
var _ref2 = data || {},
|
|
100
|
+
var _ref2 = transformResponse ? transformResponse(data) : data || {},
|
|
92
101
|
_ref2$data = _ref2.data,
|
|
93
102
|
dataSource = _ref2$data === void 0 ? {} : _ref2$data;
|
|
94
103
|
var _ref3 = dataSource || {},
|
|
95
104
|
_ref3$list = _ref3.list,
|
|
96
|
-
|
|
105
|
+
newList = _ref3$list === void 0 ? [] : _ref3$list,
|
|
97
106
|
_ref3$total = _ref3.total,
|
|
98
107
|
total = _ref3$total === void 0 ? 0 : _ref3$total;
|
|
99
|
-
var newList = transformResponse ? transformResponse(dataSource) : list;
|
|
100
108
|
var curService = useMemo(function () {
|
|
101
109
|
return service.toString();
|
|
102
110
|
}, [service]);
|
|
103
111
|
// service变化时触发 (禁止掉防止service变更时导致的死循环)
|
|
104
|
-
// const prevService = usePrevious(curService);
|
|
105
|
-
// extraParams变化时触发
|
|
106
|
-
var prevExtraParams = usePrevious(extraParams);
|
|
107
112
|
var clearSelected = useCallback(function () {
|
|
108
113
|
setState({
|
|
109
114
|
allSelected: false,
|
|
@@ -111,13 +116,7 @@ function useAntdTable(service, options, useRequestOptions) {
|
|
|
111
116
|
selectedRowKeys: []
|
|
112
117
|
});
|
|
113
118
|
}, []);
|
|
114
|
-
|
|
115
|
-
var handlePageChange = useCallback(function (current, pageSize) {
|
|
116
|
-
var page = {
|
|
117
|
-
pageNum: current,
|
|
118
|
-
pageSize: pageSize
|
|
119
|
-
};
|
|
120
|
-
onPageChange(page);
|
|
119
|
+
useEffect(function () {
|
|
121
120
|
if (allSelected) {
|
|
122
121
|
var filterList = newList.filter(function (item) {
|
|
123
122
|
return !selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[rowKey]);
|
|
@@ -128,7 +127,16 @@ function useAntdTable(service, options, useRequestOptions) {
|
|
|
128
127
|
return item === null || item === void 0 ? void 0 : item[rowKey];
|
|
129
128
|
})))
|
|
130
129
|
});
|
|
131
|
-
}
|
|
130
|
+
}
|
|
131
|
+
}, [allSelected, newList]);
|
|
132
|
+
// 分页变更
|
|
133
|
+
var handlePageChange = useCallback(function (current, pageSize) {
|
|
134
|
+
var page = {
|
|
135
|
+
pageNum: current,
|
|
136
|
+
pageSize: pageSize
|
|
137
|
+
};
|
|
138
|
+
onPageChange(page);
|
|
139
|
+
if (!rowSelections && !crossPageSelect) {
|
|
132
140
|
setState({
|
|
133
141
|
selectedRecords: [],
|
|
134
142
|
selectedRowKeys: []
|
|
@@ -200,9 +208,12 @@ function useAntdTable(service, options, useRequestOptions) {
|
|
|
200
208
|
pageSize: page.pageSize
|
|
201
209
|
};
|
|
202
210
|
resetParams(newPage);
|
|
203
|
-
isResetQuery
|
|
204
|
-
|
|
205
|
-
|
|
211
|
+
if (isResetQuery) {
|
|
212
|
+
onPageChange(newPage);
|
|
213
|
+
run(getTransformParams({
|
|
214
|
+
page: newPage
|
|
215
|
+
}));
|
|
216
|
+
}
|
|
206
217
|
}, [page.pageSize, run, resetParams, getTransformParams]);
|
|
207
218
|
var handleRefresh = function handleRefresh() {
|
|
208
219
|
setState({
|
|
@@ -216,40 +227,56 @@ function useAntdTable(service, options, useRequestOptions) {
|
|
|
216
227
|
if (!manual && curService) {
|
|
217
228
|
// service改变时重新请求
|
|
218
229
|
resetParams();
|
|
230
|
+
onPageChange(initPage);
|
|
219
231
|
run(getTransformParams());
|
|
220
232
|
}
|
|
221
233
|
}, [curService]);
|
|
222
|
-
|
|
223
|
-
if (!manual &&
|
|
234
|
+
useDeepCompareEffect(function () {
|
|
235
|
+
if (!manual && extraParams) {
|
|
224
236
|
var newPage = {
|
|
225
237
|
pageNum: 1,
|
|
226
238
|
pageSize: page.pageSize
|
|
227
239
|
};
|
|
240
|
+
onPageChange(newPage);
|
|
228
241
|
resetParams(newPage);
|
|
229
242
|
run(getTransformParams({
|
|
230
243
|
page: newPage
|
|
231
244
|
}));
|
|
232
245
|
}
|
|
233
|
-
}, [
|
|
246
|
+
}, [extraParams]);
|
|
234
247
|
var rowSelection = {
|
|
235
248
|
type: rowSelectType,
|
|
236
249
|
selectedRowKeys: selectedRowKeys,
|
|
237
|
-
onChange: function onChange(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
250
|
+
onChange: function onChange(rowKeys, rows) {
|
|
251
|
+
if (crossPageSelect) {
|
|
252
|
+
var _newList$map, _Array$from, _ref4;
|
|
253
|
+
var removeKeys = newList === null || newList === void 0 ? void 0 : (_newList$map = newList.map(function (item) {
|
|
254
|
+
return item === null || item === void 0 ? void 0 : item[rowKey];
|
|
255
|
+
})) === null || _newList$map === void 0 ? void 0 : _newList$map.filter(function (key) {
|
|
256
|
+
return !rowKeys.includes(key);
|
|
257
|
+
});
|
|
258
|
+
var newSelectedKeys = (_Array$from = Array.from(new Set([].concat(_toConsumableArray(selectedRowKeys), _toConsumableArray(rowKeys))))) === null || _Array$from === void 0 ? void 0 : _Array$from.filter(function (item) {
|
|
259
|
+
return !removeKeys.includes(item);
|
|
260
|
+
});
|
|
261
|
+
var selectedRecordObj = (_ref4 = [].concat(_toConsumableArray(selectedRecords), _toConsumableArray(rows))) === null || _ref4 === void 0 ? void 0 : _ref4.reduce(function (acc, cur) {
|
|
262
|
+
acc[cur === null || cur === void 0 ? void 0 : cur[rowKey]] = cur;
|
|
263
|
+
return acc;
|
|
264
|
+
}, {});
|
|
245
265
|
setState({
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
})
|
|
266
|
+
selectedRecords: newSelectedKeys === null || newSelectedKeys === void 0 ? void 0 : newSelectedKeys.map(function (item) {
|
|
267
|
+
return selectedRecordObj === null || selectedRecordObj === void 0 ? void 0 : selectedRecordObj[item];
|
|
268
|
+
}),
|
|
269
|
+
selectedRowKeys: newSelectedKeys
|
|
251
270
|
});
|
|
252
271
|
} else {
|
|
272
|
+
setState({
|
|
273
|
+
selectedRecords: rows,
|
|
274
|
+
selectedRowKeys: rowKeys
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
onSelectAll: function onSelectAll(selected) {
|
|
279
|
+
if (rowSelections && allSelected && !selected) {
|
|
253
280
|
setState({
|
|
254
281
|
allSelected: false,
|
|
255
282
|
selectedRecords: [],
|
package/es/ProTable/utils.js
CHANGED
|
@@ -6,7 +6,7 @@ import _Typography from "antd/es/typography";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import moment from 'moment';
|
|
8
8
|
import { multiply } from 'lodash';
|
|
9
|
-
import { ProForm } from 'zat-design-
|
|
9
|
+
import { ProForm } from '@zat-design/sisyphus-react';
|
|
10
10
|
import { ReactSVG } from 'react-svg';
|
|
11
11
|
import { CheckOutlined } from '@ant-design/icons';
|
|
12
12
|
import copySvg from '../assets/copy.svg';
|
|
@@ -14,13 +14,22 @@ import getEnumLabel from '../ProEnum/getEnumLabel';
|
|
|
14
14
|
import tipSvg from '../assets/tip.svg';
|
|
15
15
|
var Paragraph = _Typography.Paragraph,
|
|
16
16
|
Text = _Typography.Text;
|
|
17
|
+
/**
|
|
18
|
+
* 获取小数点后的位数
|
|
19
|
+
* @param num 数字
|
|
20
|
+
* @returns 位数
|
|
21
|
+
*/
|
|
22
|
+
var getDecimalDigits = function getDecimalDigits(num) {
|
|
23
|
+
var match = num.toString().match(/\.(\d+)/);
|
|
24
|
+
return match ? match[1].length : 0;
|
|
25
|
+
};
|
|
17
26
|
export var formatColumn = function formatColumn(column) {
|
|
18
27
|
var title = column.title,
|
|
19
28
|
valueType = column.valueType,
|
|
20
29
|
_column$format = column.format,
|
|
21
30
|
format = _column$format === void 0 ? 'YYYY-MM-DD HH:mm:ss' : _column$format,
|
|
22
31
|
_column$precision = column.precision,
|
|
23
|
-
precision = _column$precision === void 0 ?
|
|
32
|
+
precision = _column$precision === void 0 ? 2 : _column$precision,
|
|
24
33
|
ellipsis = column.ellipsis,
|
|
25
34
|
code = column.code,
|
|
26
35
|
copyable = column.copyable,
|
|
@@ -50,7 +59,12 @@ export var formatColumn = function formatColumn(column) {
|
|
|
50
59
|
if (!value && value !== 0) {
|
|
51
60
|
return '-';
|
|
52
61
|
}
|
|
53
|
-
var renderValue = multiply(value, 100);
|
|
62
|
+
var renderValue = multiply(Number(value), 100);
|
|
63
|
+
// 获取真实数据的小数位数
|
|
64
|
+
var decimalDigits = getDecimalDigits(value);
|
|
65
|
+
if (decimalDigits > precision) {
|
|
66
|
+
return renderValue;
|
|
67
|
+
}
|
|
54
68
|
return renderValue.toFixed(precision);
|
|
55
69
|
};
|
|
56
70
|
break;
|
|
@@ -60,7 +74,12 @@ export var formatColumn = function formatColumn(column) {
|
|
|
60
74
|
if (!value && value !== 0) {
|
|
61
75
|
return '-';
|
|
62
76
|
}
|
|
63
|
-
var renderValue = multiply(value, 1000);
|
|
77
|
+
var renderValue = multiply(Number(value), 1000);
|
|
78
|
+
// 获取真实数据的小数位数
|
|
79
|
+
var decimalDigits = getDecimalDigits(value);
|
|
80
|
+
if (decimalDigits > precision) {
|
|
81
|
+
return renderValue;
|
|
82
|
+
}
|
|
64
83
|
return renderValue.toFixed(precision);
|
|
65
84
|
};
|
|
66
85
|
break;
|
|
@@ -71,7 +90,7 @@ export var formatColumn = function formatColumn(column) {
|
|
|
71
90
|
return '-';
|
|
72
91
|
}
|
|
73
92
|
if (precision) {
|
|
74
|
-
return "".concat(value.toFixed(precision)).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
93
|
+
return "".concat(Number(value).toFixed(precision)).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
75
94
|
}
|
|
76
95
|
return "".concat(value).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
77
96
|
};
|
|
@@ -83,7 +102,7 @@ export var formatColumn = function formatColumn(column) {
|
|
|
83
102
|
return '-';
|
|
84
103
|
}
|
|
85
104
|
if (precision) {
|
|
86
|
-
return "CNY ".concat(value.toFixed(precision)).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
105
|
+
return "CNY ".concat(Number(value).toFixed(precision)).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
87
106
|
}
|
|
88
107
|
return "CNY ".concat(value).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
89
108
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "antd/es/space/style";
|
|
2
|
+
import _Space from "antd/es/space";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { tools } from '@zat-design-pro-component/utils';
|
|
5
|
+
var Card = function Card(props) {
|
|
6
|
+
var total = props.total,
|
|
7
|
+
label = props.label,
|
|
8
|
+
icon = props.icon;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "pro-tabs-card"
|
|
11
|
+
}, /*#__PURE__*/React.createElement(_Space, {
|
|
12
|
+
size: 8,
|
|
13
|
+
align: "center"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "pro-tabs-card-left"
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "pro-tabs-card-left-total"
|
|
18
|
+
}, tools.formatAmount(total, 0) || 0), /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: "pro-tabs-card-left-label"
|
|
20
|
+
}, label)), /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: "pro-tabs-card-right"
|
|
22
|
+
}, icon || '-')));
|
|
23
|
+
};
|
|
24
|
+
export default Card;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './Card';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Card } from './Card';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import "antd/es/tabs/style";
|
|
2
|
+
import _Tabs from "antd/es/tabs";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
+
var _excluded = ["style", "className", "dataSource", "onChange", "transformResponse", "useRequest", "tabSearch"];
|
|
8
|
+
/* eslint-disable @typescript-eslint/consistent-type-assertions */
|
|
9
|
+
import React, { useMemo, useState, forwardRef, useImperativeHandle } from 'react';
|
|
10
|
+
import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
|
|
11
|
+
import classNames from 'classnames';
|
|
12
|
+
import { omit } from 'lodash';
|
|
13
|
+
import { Card } from './components';
|
|
14
|
+
var ProTabs = function ProTabs(props, ref) {
|
|
15
|
+
var style = props.style,
|
|
16
|
+
className = props.className,
|
|
17
|
+
_props$dataSource = props.dataSource,
|
|
18
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
|
|
19
|
+
onChange = props.onChange,
|
|
20
|
+
transformResponse = props.transformResponse,
|
|
21
|
+
useRequest = props.useRequest,
|
|
22
|
+
_props$tabSearch = props.tabSearch,
|
|
23
|
+
tabSearch = _props$tabSearch === void 0 ? false : _props$tabSearch,
|
|
24
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
var _useState = useState(dataSource || []),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
selectList = _useState2[0],
|
|
28
|
+
setSelectList = _useState2[1];
|
|
29
|
+
var fetchFunction = useRequestFunc(useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, _objectSpread({
|
|
30
|
+
manual: true,
|
|
31
|
+
onSuccess: function onSuccess(data) {
|
|
32
|
+
if (transformResponse && typeof transformResponse === 'function') {
|
|
33
|
+
// 转换数据
|
|
34
|
+
var responseData = transformResponse(data);
|
|
35
|
+
if (!Array.isArray(responseData) || !responseData.every(function (item) {
|
|
36
|
+
return typeof item === 'number';
|
|
37
|
+
})) {
|
|
38
|
+
return console.error('transformResponse must return a number array, like [1, 2, 3]');
|
|
39
|
+
}
|
|
40
|
+
var result = selectList.map(function (item, index) {
|
|
41
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
42
|
+
total: responseData[index]
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
setSelectList(result);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
debounceWait: 300
|
|
49
|
+
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options));
|
|
50
|
+
var _items = useMemo(function () {
|
|
51
|
+
return selectList.map(function (itemProps) {
|
|
52
|
+
var cardItemProps = {
|
|
53
|
+
total: itemProps.total,
|
|
54
|
+
label: itemProps.label,
|
|
55
|
+
icon: itemProps.icon
|
|
56
|
+
};
|
|
57
|
+
return _objectSpread(_objectSpread({}, omit(itemProps, ['total', 'label', 'icon'])), {}, {
|
|
58
|
+
label: /*#__PURE__*/React.createElement(Card, _objectSpread({}, cardItemProps))
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}, [selectList]);
|
|
62
|
+
var cls = classNames(_defineProperty({
|
|
63
|
+
'pro-tabs': true
|
|
64
|
+
}, className, className));
|
|
65
|
+
var handleChange = function handleChange(key) {
|
|
66
|
+
var onChange = props.onChange;
|
|
67
|
+
// 开启tab切换查询
|
|
68
|
+
if (tabSearch) {
|
|
69
|
+
fetchFunction.refresh();
|
|
70
|
+
}
|
|
71
|
+
onChange && onChange(key, fetchFunction);
|
|
72
|
+
};
|
|
73
|
+
// manual为false时,自动执行
|
|
74
|
+
useDeepCompareEffect(function () {
|
|
75
|
+
var _ref = (useRequest === null || useRequest === void 0 ? void 0 : useRequest.options) || {},
|
|
76
|
+
defaultParams = _ref.defaultParams,
|
|
77
|
+
manual = _ref.manual;
|
|
78
|
+
if (manual || !useRequest) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
fetchFunction.run(defaultParams);
|
|
82
|
+
}, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options]);
|
|
83
|
+
useImperativeHandle(ref, function () {
|
|
84
|
+
return {
|
|
85
|
+
useRequestRef: fetchFunction
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
style: style,
|
|
90
|
+
className: cls
|
|
91
|
+
}, /*#__PURE__*/React.createElement(_Tabs, _objectSpread(_objectSpread({
|
|
92
|
+
animated: false
|
|
93
|
+
}, rest), {}, {
|
|
94
|
+
items: _items,
|
|
95
|
+
onChange: handleChange
|
|
96
|
+
})));
|
|
97
|
+
};
|
|
98
|
+
export default /*#__PURE__*/forwardRef(ProTabs);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TabsProps } from 'antd';
|
|
3
|
+
import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
|
|
4
|
+
export interface CardProps {
|
|
5
|
+
total: number;
|
|
6
|
+
label: string | React.ReactNode;
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export interface ProTabsItemsProps extends CardProps {
|
|
11
|
+
key: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export interface ProTabsAction {
|
|
17
|
+
/** 获取发生请求的 useRequest 的 ref */
|
|
18
|
+
useRequestRef: Result<any, any>;
|
|
19
|
+
}
|
|
20
|
+
export interface ProTabsProps extends Omit<TabsProps, 'items' | 'onChange'> {
|
|
21
|
+
dataSource: ProTabsItemsProps[];
|
|
22
|
+
/** 是否开启tab切换查询 */
|
|
23
|
+
tabSearch?: boolean;
|
|
24
|
+
onChange?: (activeKey: string, useRequest: Result<any, any>) => void;
|
|
25
|
+
/** 远程请求接口 */
|
|
26
|
+
useRequest?: {
|
|
27
|
+
service: Service<any, any>;
|
|
28
|
+
options?: Options<any, any>;
|
|
29
|
+
};
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.pro-tabs {
|
|
2
|
+
.ant-tabs .ant-tabs-nav-list .ant-tabs-tab {
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ant-tabs-top>.ant-tabs-nav::before,
|
|
7
|
+
.ant-tabs-bottom>.ant-tabs-nav::before,
|
|
8
|
+
.ant-tabs-top>div>.ant-tabs-nav::before,
|
|
9
|
+
.ant-tabs-bottom>div>.ant-tabs-nav::before {
|
|
10
|
+
border: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.ant-tabs-nav-list {
|
|
15
|
+
.ant-tabs-tab {
|
|
16
|
+
&:first-child {
|
|
17
|
+
.pro-tabs-card {
|
|
18
|
+
border-left: 1px solid var(--zaui-line, #dddddd);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ant-tabs-tab-active {
|
|
25
|
+
.pro-tabs-card {
|
|
26
|
+
background: var(--ant-primary-color-active-deprecated-f-30, rgba(230, 247, 255, 0.3));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ant-tabs-ink-bar {
|
|
31
|
+
top : 0;
|
|
32
|
+
height: 3px !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pro-tabs-card {
|
|
36
|
+
width : 200px;
|
|
37
|
+
padding : 14px 16px 14px 24px;
|
|
38
|
+
border : 1px solid var(--zaui-line, #dddddd);
|
|
39
|
+
border-left: none;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
.pro-tabs-card-left {
|
|
44
|
+
width : 104px;
|
|
45
|
+
text-shadow: none;
|
|
46
|
+
|
|
47
|
+
.pro-tabs-card-left-total {
|
|
48
|
+
font-size : 26px;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
color : var(--zaui-text, #343434);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pro-tabs-card-left-label {
|
|
54
|
+
font-size : var(--zaui-font-size, 14px);
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
color : var(--aui-text, #343434);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.pro-tabs-card-right {
|
|
61
|
+
display: flex;
|
|
62
|
+
|
|
63
|
+
img {
|
|
64
|
+
width: 48px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|