@zat-design/sisyphus-react 3.0.13 → 3.0.16-beta.2
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 +2726 -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/index.d.ts +3 -2
- package/es/ProEnum/useEnumRequest.js +6 -11
- package/es/ProForm/components/base/DatePicker/index.js +1 -1
- 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/InputNumber/index.js +24 -0
- package/es/ProForm/components/base/RangePicker/index.js +2 -2
- package/es/ProForm/components/combination/ProAddressBar/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProAddressBar/index.js +2 -1
- 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 +3 -2
- 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 +13 -15
- 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/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 +3 -1
- 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 +1 -1
- 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 +1 -1
- package/es/ProTable/propsType.d.ts +3 -2
- package/es/ProTable/style/index.less +12 -17
- package/es/ProTable/useAntdTable.d.ts +4 -4
- package/es/ProTable/useAntdTable.js +54 -34
- package/es/ProTable/utils.js +24 -5
- 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 +200 -0
- package/es/ProThemeTools/component/PrdTools/style/index.less +164 -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 +179 -0
- package/es/ProThemeTools/propsType.d.ts +30 -0
- package/es/ProThemeTools/propsType.js +1 -0
- package/es/ProThemeTools/style/index.less +55 -0
- package/es/ProThemeTools/utils/index.d.ts +14 -0
- package/es/ProThemeTools/utils/index.js +54 -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 +404 -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/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/index.d.ts +3 -2
- package/lib/ProEnum/useEnumRequest.js +6 -11
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- 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/InputNumber/index.js +24 -0
- package/lib/ProForm/components/base/RangePicker/index.js +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProAddressBar/index.js +2 -1
- 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 +3 -2
- 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 +13 -15
- 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/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 +2 -0
- 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 +1 -1
- 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 +1 -1
- package/lib/ProTable/propsType.d.ts +3 -2
- package/lib/ProTable/style/index.less +12 -17
- package/lib/ProTable/useAntdTable.d.ts +4 -4
- package/lib/ProTable/useAntdTable.js +53 -33
- package/lib/ProTable/utils.js +24 -5
- 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 +202 -0
- package/lib/ProThemeTools/component/PrdTools/style/index.less +164 -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 +185 -0
- package/lib/ProThemeTools/propsType.d.ts +30 -0
- package/lib/ProThemeTools/propsType.js +5 -0
- package/lib/ProThemeTools/style/index.less +55 -0
- package/lib/ProThemeTools/utils/index.d.ts +14 -0
- package/lib/ProThemeTools/utils/index.js +63 -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 +411 -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/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 +4 -0
- 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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
window._iconfont_svg_string_4063056 = '<svg><symbol id="icon-arrow" viewBox="0 0 1024 1024"><path d="M832 0a192 192 0 0 1 192 192v640a192 192 0 0 1-192 192H192A192 192 0 0 1 0 832V192A192 192 0 0 1 192 0z m0 42.667H192A149.333 149.333 0 0 0 42.667 192v640A149.333 149.333 0 0 0 192 981.333h640A149.333 149.333 0 0 0 981.333 832V192A149.333 149.333 0 0 0 832 42.667z m-94.165 329.386l60.33 60.331L512 718.592 225.835 432.384l60.33-60.33L512 597.887l225.835-225.835z" ></path></symbol><symbol id="icon-delete" viewBox="0 0 1024 1024"><path d="M662.08 121.472v64H361.92v-64z m206.4 159.488v64H155.52v-64z" ></path><path d="M280.512 303.232l-0.064 530.816h460.096V303.232h64v594.88H216.512v-594.88z" ></path><path d="M431.424 440.704v337.728h-64V440.704z m225.152 0v337.728h-64V440.704z" ></path></symbol><symbol id="icon-catalog" viewBox="0 0 1075 1024"><path d="M1044.429 758.323v128.973H313.702V758.272h730.727z m-833.127 0v128.973H71.732V758.272h139.57zM1044.43 447.54v128.922H313.702V447.539h730.727z m-833.127 0v128.922H71.732V447.539h139.57z m833.127-310.784v128.922H313.702V136.704h730.727z m-833.127 0v128.922H71.732V136.704h139.57z" ></path></symbol><symbol id="icon-customColumn" viewBox="0 0 1024 1024"><path d="M170.368 128h0.576c28.288 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576C142.144 896 128 881.152 128 851.392V172.608c0-29.76 14.08-44.608 42.368-44.608z m682.752 0h0.576c28.224 0 42.368 14.848 42.368 44.608v678.784c0 29.76-14.08 44.608-42.368 44.608h-0.576c-28.288 0-42.368-14.848-42.368-44.608V172.608c0-29.76 14.08-44.608 42.368-44.608z m-453.632 0h225.024c38.784 0 58.176 20.16 58.176 60.416v647.168c0 40.32-19.392 60.416-58.176 60.416H399.488c-38.784 0-58.176-20.16-58.176-60.416V188.416c0-40.32 19.392-60.416 58.176-60.416z" ></path></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M363.746 0h565.883c52.05 0 94.286 42.236 94.286 94.285V660.17c0 52.049-42.237 94.285-94.286 94.285H363.746c-52.05 0-94.286-42.236-94.286-94.285V94.285C269.46 42.236 311.697 0 363.746 0z m0 80.804a13.482 13.482 0 0 0-13.482 13.481V660.17c0 7.423 6.058 13.482 13.482 13.482h565.883c7.424 0 13.482-6.059 13.482-13.482V94.285a13.482 13.482 0 0 0-13.482-13.481H363.746z m309.905 754.54a40.445 40.445 0 1 1 80.803 0v94.37c0 52.05-42.236 94.286-94.285 94.286H94.285C42.236 1023.915 0 981.678 0 929.63V363.745c0-52.05 42.236-94.286 94.285-94.286h94.371a40.445 40.445 0 0 1 0 80.804h-94.37a13.482 13.482 0 0 0-13.482 13.482v565.883c0 7.424 6.058 13.482 13.481 13.482H660.17c7.423 0 13.482-6.058 13.482-13.482v-94.37z" ></path></symbol><symbol id="icon-drag" viewBox="0 0 1024 1024"><path d="M358.4 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 204.8m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 819.2m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M358.4 409.6m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path><path d="M665.6 614.4m-51.2 0a51.2 51.2 0 1 0 102.4 0 51.2 51.2 0 1 0-102.4 0Z" ></path></symbol><symbol id="icon-disabled" viewBox="0 0 1024 1024"><path d="M752.384 412.1088h-55.6544V300.3904C696.7296 183.6544 608.512 102.4 501.76 102.4 395.0592 102.4 306.8928 183.6544 306.8928 300.3904V407.04H251.1872c-27.8016 0-46.3872 25.344-46.3872 50.7392v385.8432c0 30.464 23.1936 50.7904 46.3872 50.7904h501.248c27.8016 0 46.3872-25.3952 46.3872-50.7904V462.848c0-30.464-18.5856-50.7392-46.4384-50.7392z m-222.72 253.8496v86.272c0 5.12-4.6592 5.12-4.6592 5.12h-41.7792c-4.608 0-4.608-5.12-4.608-5.12v-86.272c-23.2448-10.1888-37.12-30.464-37.12-55.8592 0-35.5328 27.8016-66.048 60.3136-66.048 32.4608 0 60.3136 30.5152 60.3136 66.048 0 25.3952-13.9264 45.6704-32.4608 55.808z m92.7744-253.8496H381.1328V295.3216c0-60.928 55.7056-111.6672 120.6784-111.6672 64.9728 0 120.6272 50.7392 120.6272 111.6672v116.736z" ></path></symbol><symbol id="icon-tip" viewBox="0 0 1024 1024"><path d="M512 19.017a492.983 492.983 0 1 1-0.073 986.039A492.983 492.983 0 0 1 512 19.09z m0 48.786a444.27 444.27 0 1 0 0.073 888.467A444.27 444.27 0 0 0 512 67.803z m22.016 317.367c37.45 3.877 55.15 33.792 48.64 66.707l-78.41 259.072c-1.023 5.924 2.049 11.849 7.315 13.677 5.852 2.048 17.92-5.412 27.648-16.091l47.104-56.613c1.244 9.509-0.878 26.185-0.878 32.549-35.328 53.028-71.314 93.988-131.876 93.988-41.326-6.729-58.222-36.352-49.298-66.56l77.897-257.828c1.901-6.364-1.244-13.02-7.022-15.068-5.778-2.048-17.042 5.413-26.77 16.092l-47.031 56.612c-1.317-9.508-0.146-25.234-0.146-31.597 35.328-53.029 93.403-94.94 132.827-94.94z m40.96-144.823c29.77 0 53.906 21.724 53.906 53.614 0 31.964-24.137 53.614-53.906 53.614a52.297 52.297 0 0 1-53.906-53.614c0-31.89 24.137-53.614 53.906-53.614z" ></path></symbol><symbol id="icon-reset" viewBox="0 0 1024 1024"><path d="M482.464768 117.691733L364.363435 66.696533A49.288533 49.288533 0 0 0 325.314901 157.013333a417.9968 417.9968 0 0 0 53.8624 789.845334 49.288533 49.288533 0 0 0 25.668267-95.163734 319.624533 319.624533 0 0 1-29.559467-608.324266l-7.850666 18.158933a49.152 49.152 0 0 0 26.0096 64.580267 49.288533 49.288533 0 0 0 64.580266-24.9856l50.107734-118.9888a49.425067 49.425067 0 0 0-25.668267-64.512z m429.602133 421.410134A418.884267 418.884267 0 0 0 614.424235 126.839467a49.288533 49.288533 0 1 0-28.398934 94.344533 319.829333 319.829333 0 0 1 56.9344 589.824 49.152 49.152 0 0 0-86.152533-47.240533l-67.106133 109.431466a48.9472 48.9472 0 0 0 16.110933 67.925334l109.294933 67.9936a49.288533 49.288533 0 1 0 50.9952-83.7632l-15.018666-9.352534a418.679467 418.679467 0 0 0 261.051733-376.900266z" ></path></symbol><symbol id="icon-view" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol><symbol id="icon-search" viewBox="0 0 1024 1024"><path d="M801.606 104.727a117.667 117.667 0 0 1 117.434 109.94l0.233 7.727v246.598a34.91 34.91 0 0 1-69.493 4.748l-0.325-4.748V222.394c0-24.669-18.619-44.963-42.636-47.57l-5.213-0.279H222.394c-24.669 0-44.963 18.619-47.57 42.636l-0.279 5.213v579.212c0 24.669 18.619 44.963 42.636 47.57l5.213 0.279h243.247a34.91 34.91 0 0 1 4.747 69.492l-4.747 0.326H222.394a117.667 117.667 0 0 1-117.434-109.94l-0.233-7.727V222.394a117.667 117.667 0 0 1 109.94-117.434l7.727-0.233h579.212zM448.559 585.728a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h116.364z m232.727-232.727a34.91 34.91 0 1 1 0 69.818H332.195a34.91 34.91 0 1 1 0-69.818h349.09z" ></path><path d="M699.764 490.356a186.182 186.182 0 1 1 0 372.364 186.182 186.182 0 0 1 0-372.364z m0 69.819a116.364 116.364 0 1 0 0 232.727 116.364 116.364 0 0 0 0-232.727z" ></path><path d="M798.673 769.35a34.91 34.91 0 0 1 49.339 0l82.292 82.246a34.91 34.91 0 1 1-49.338 49.384l-82.293-82.292a34.91 34.91 0 0 1 0-49.338z" ></path></symbol></svg>', function (e) {
|
|
2
|
+
var t = (t = document.getElementsByTagName("script"))[t.length - 1],
|
|
3
|
+
a = t.getAttribute("data-injectcss"),
|
|
4
|
+
t = t.getAttribute("data-disable-injectsvg");
|
|
5
|
+
if (!t) {
|
|
6
|
+
var o,
|
|
7
|
+
_c,
|
|
8
|
+
h,
|
|
9
|
+
i,
|
|
10
|
+
l,
|
|
11
|
+
n = function n(t, a) {
|
|
12
|
+
a.parentNode.insertBefore(t, a);
|
|
13
|
+
};
|
|
14
|
+
if (a && !e.__iconfont__svg__cssinject__) {
|
|
15
|
+
e.__iconfont__svg__cssinject__ = !0;
|
|
16
|
+
try {
|
|
17
|
+
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
18
|
+
} catch (t) {
|
|
19
|
+
console && console.log(t);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
o = function o() {
|
|
23
|
+
var t,
|
|
24
|
+
a = document.createElement("div");
|
|
25
|
+
a.innerHTML = e._iconfont_svg_string_4063056, (a = a.getElementsByTagName("svg")[0]) && (a.setAttribute("aria-hidden", "true"), a.style.position = "absolute", a.style.width = 0, a.style.height = 0, a.style.overflow = "hidden", a = a, (t = document.body).firstChild ? n(a, t.firstChild) : t.appendChild(a));
|
|
26
|
+
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(o, 0) : (_c = function c() {
|
|
27
|
+
document.removeEventListener("DOMContentLoaded", _c, !1), o();
|
|
28
|
+
}, document.addEventListener("DOMContentLoaded", _c, !1)) : document.attachEvent && (h = o, i = e.document, l = !1, m(), i.onreadystatechange = function () {
|
|
29
|
+
"complete" == i.readyState && (i.onreadystatechange = null, d());
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function d() {
|
|
33
|
+
l || (l = !0, h());
|
|
34
|
+
}
|
|
35
|
+
function m() {
|
|
36
|
+
try {
|
|
37
|
+
i.documentElement.doScroll("left");
|
|
38
|
+
} catch (t) {
|
|
39
|
+
return void setTimeout(m, 50);
|
|
40
|
+
}
|
|
41
|
+
d();
|
|
42
|
+
}
|
|
43
|
+
}(window);
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
padding : 0 32px 0px 0px;
|
|
13
13
|
line-height : 48px;
|
|
14
14
|
background : var(--zaui-base-bg, #ffffff);
|
|
15
|
-
box-shadow : 0px
|
|
16
|
-
0px 2px 4px 0px rgba(0, 55, 93, 0.06);
|
|
15
|
+
box-shadow : 0px 2px 4px 0px rgba(0, 55, 93, 0.15) !important;
|
|
17
16
|
|
|
18
17
|
.pro-layout-header-actions {
|
|
19
18
|
.ant-avatar {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProFooterProps } from './PropTypes';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<(props: ProFooterProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ProHeaderProps } from './PropTypes';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
|
|
3
|
+
declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -9,6 +9,7 @@ import _Divider from "antd/es/divider";
|
|
|
9
9
|
import "antd/es/space/style";
|
|
10
10
|
import _Space from "antd/es/space";
|
|
11
11
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
12
|
+
/* eslint-disable react/no-array-index-key */
|
|
12
13
|
import React, { memo, useEffect, useState } from 'react';
|
|
13
14
|
import { tools } from '@zat-design-pro-component/utils';
|
|
14
15
|
import classnames from 'classnames';
|
|
@@ -331,10 +332,7 @@ var ProHeader = function ProHeader(props) {
|
|
|
331
332
|
}, _title) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
332
333
|
className: "pro-header-top"
|
|
333
334
|
}, /*#__PURE__*/React.createElement("div", {
|
|
334
|
-
className: "pro-header-left"
|
|
335
|
-
style: {
|
|
336
|
-
marginLeft: backState ? 0 : 16
|
|
337
|
-
}
|
|
335
|
+
className: "pro-header-left"
|
|
338
336
|
}, /*#__PURE__*/React.createElement(_Space, {
|
|
339
337
|
size: backState ? 4 : 0
|
|
340
338
|
}, backState ? /*#__PURE__*/React.createElement(ProBackBtn, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pro-header {
|
|
2
2
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
3
|
-
padding :
|
|
3
|
+
padding : 24px 0 0 0;
|
|
4
4
|
box-shadow : 0px 2px 4px 0px rgba(0, 55, 93, 0.06);
|
|
5
5
|
|
|
6
6
|
&.pro-header-no-back {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&.pro-header-no-describe {
|
|
13
|
-
box-shadow: none;
|
|
13
|
+
box-shadow : none;
|
|
14
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
14
15
|
|
|
15
16
|
.pro-header-title,
|
|
16
17
|
.pro-header-top {
|
|
@@ -117,7 +118,6 @@
|
|
|
117
118
|
display : flex;
|
|
118
119
|
align-items : center;
|
|
119
120
|
margin-right: var(--zaui-space-size-md, 16px);
|
|
120
|
-
margin-left : var(--zaui-space-size-md, 16px);
|
|
121
121
|
|
|
122
122
|
ul {
|
|
123
123
|
display : flex;
|
package/es/ProLayout/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ProLayoutProps } from './propTypes';
|
|
3
3
|
export declare const LayoutContext: React.Context<{}>;
|
|
4
4
|
declare const ProLayout: {
|
|
5
|
-
(props: ProLayoutProps): JSX.Element;
|
|
5
|
+
(props: ProLayoutProps): React.JSX.Element;
|
|
6
6
|
defaultProps: {
|
|
7
7
|
menus: any[];
|
|
8
8
|
iconfontUrl: string;
|
|
@@ -13,8 +13,8 @@ declare const ProLayout: {
|
|
|
13
13
|
headerHeight: number;
|
|
14
14
|
contentStyle: {};
|
|
15
15
|
};
|
|
16
|
-
ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
|
|
17
|
-
ProFooter: React.MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
|
|
18
|
-
ProHeader: React.MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
|
|
16
|
+
ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => React.JSX.Element;
|
|
17
|
+
ProFooter: React.MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => React.JSX.Element>;
|
|
18
|
+
ProHeader: React.MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => React.JSX.Element>;
|
|
19
19
|
};
|
|
20
20
|
export default ProLayout;
|
package/es/ProLayout/index.js
CHANGED
|
@@ -66,6 +66,7 @@ var ProLayout = function ProLayout(props) {
|
|
|
66
66
|
'pro-layout-row-top-pure': typeof pure !== 'boolean' && pure.topMenu,
|
|
67
67
|
'pro-layout-row-left-pure': typeof pure !== 'boolean' && pure.leftMenu
|
|
68
68
|
});
|
|
69
|
+
var noticeHeight = notice ? 32 : 0;
|
|
69
70
|
var layoutDom = /*#__PURE__*/React.createElement("div", {
|
|
70
71
|
className: classNames(_defineProperty({
|
|
71
72
|
'pro-layout': true
|
|
@@ -82,12 +83,10 @@ var ProLayout = function ProLayout(props) {
|
|
|
82
83
|
onToggle: toggle
|
|
83
84
|
})), /*#__PURE__*/React.createElement("div", {
|
|
84
85
|
className: "pro-layout-content",
|
|
85
|
-
style: _objectSpread({}, contentStyle)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
}, children))));
|
|
86
|
+
style: _objectSpread(_objectSpread({}, contentStyle), {}, {
|
|
87
|
+
marginTop: headerHeight + noticeHeight
|
|
88
|
+
})
|
|
89
|
+
}, /*#__PURE__*/React.createElement("div", null, children))));
|
|
91
90
|
return /*#__PURE__*/React.createElement(LayoutContext.Provider, {
|
|
92
91
|
value: {}
|
|
93
92
|
}, !waterMarkProps ? layoutDom : /*#__PURE__*/React.createElement(ProWaterMark, _objectSpread({}, waterMarkProps), layoutDom));
|
|
@@ -28,9 +28,6 @@ type pureKey = boolean | {
|
|
|
28
28
|
topMenu?: boolean;
|
|
29
29
|
leftMenu?: boolean;
|
|
30
30
|
};
|
|
31
|
-
interface pureObject {
|
|
32
|
-
[key: string]: pureKey;
|
|
33
|
-
}
|
|
34
31
|
export interface ProLayoutProps {
|
|
35
32
|
logo?: ReactNode | string;
|
|
36
33
|
className?: string;
|
|
@@ -46,8 +43,8 @@ export interface ProLayoutProps {
|
|
|
46
43
|
/**
|
|
47
44
|
* 是否带有菜单界面,true不带,只显示content内容
|
|
48
45
|
*/
|
|
49
|
-
pure
|
|
50
|
-
headerHeight
|
|
46
|
+
pure?: pureKey;
|
|
47
|
+
headerHeight?: number;
|
|
51
48
|
contentStyle?: CSSProperties;
|
|
52
49
|
waterMarkProps?: ProWaterMarkProps;
|
|
53
50
|
[key: string]: any;
|
|
@@ -9,11 +9,17 @@
|
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
background : var(--zaui-base-bg, #ffffff);
|
|
11
11
|
|
|
12
|
+
.pro-layout-row-has-notice {
|
|
13
|
+
.pro-layout-content {
|
|
14
|
+
min-height: calc(100vh - 80px);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
/** 内容区 */
|
|
13
19
|
.pro-layout-content {
|
|
14
20
|
flex : auto;
|
|
15
21
|
margin-left: 48px;
|
|
16
|
-
padding : 0 var(--zaui-space-size-
|
|
22
|
+
padding : 0 var(--zaui-space-size-lg, 32px);
|
|
17
23
|
transition : all 0.3s ease-in-out;
|
|
18
24
|
z-index : 1;
|
|
19
25
|
flex : auto;
|
package/es/ProSelect/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PropSelectProps } from './propsType';
|
|
3
|
-
export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
|
|
3
|
+
export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<unknown> | undefined) => React.JSX.Element;
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<unknown>>;
|
|
5
5
|
export default _default;
|
package/es/ProSelect/index.js
CHANGED
|
@@ -222,7 +222,7 @@ export var ProSelect = function ProSelect(props, ref) {
|
|
|
222
222
|
if (labelInValue && !selectProps.mode) {
|
|
223
223
|
if (!isObject(value)) {
|
|
224
224
|
console.warn('labelInValue 模式下的值必须为对象');
|
|
225
|
-
return
|
|
225
|
+
return undefined;
|
|
226
226
|
}
|
|
227
227
|
return value === null || value === void 0 ? void 0 : value[code];
|
|
228
228
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ProStepPropsType } from '../../propsType';
|
|
2
3
|
export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, }: ProStepPropsType & {
|
|
3
4
|
errorCollection: object;
|
|
4
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
5
6
|
export default Step;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import React, { useMemo } from 'react';
|
|
3
|
+
import React, { useMemo, useState } from 'react';
|
|
4
4
|
import { cloneDeep } from 'lodash';
|
|
5
|
-
import { useToggle } from 'ahooks';
|
|
6
5
|
import { ReactSVG } from 'react-svg';
|
|
7
6
|
import catalogSvg from '../../../assets/catalog.svg';
|
|
8
7
|
import Anchor from '../Anchor';
|
|
@@ -14,10 +13,10 @@ export var Step = function Step(_ref) {
|
|
|
14
13
|
errorCollection = _ref.errorCollection,
|
|
15
14
|
style = _ref.style,
|
|
16
15
|
targetOffset = _ref.targetOffset;
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
onOff =
|
|
20
|
-
|
|
16
|
+
var _useState = useState(false),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
onOff = _useState2[0],
|
|
19
|
+
setOnOff = _useState2[1];
|
|
21
20
|
var options = useMemo(function () {
|
|
22
21
|
var nextDataSource = cloneDeep(dataSource);
|
|
23
22
|
var activeIndex;
|
|
@@ -41,8 +40,11 @@ export var Step = function Step(_ref) {
|
|
|
41
40
|
});
|
|
42
41
|
return nextDataSource;
|
|
43
42
|
}, [dataSource, activeKey, errorCollection]);
|
|
44
|
-
var
|
|
45
|
-
|
|
43
|
+
var handleMouseEnter = function handleMouseEnter() {
|
|
44
|
+
setOnOff(true);
|
|
45
|
+
};
|
|
46
|
+
var handleMouseLeave = function handleMouseLeave() {
|
|
47
|
+
setOnOff(false);
|
|
46
48
|
};
|
|
47
49
|
return /*#__PURE__*/React.createElement("div", {
|
|
48
50
|
className: "pro-step ".concat(onOff ? 'open' : 'closed'),
|
|
@@ -50,8 +52,8 @@ export var Step = function Step(_ref) {
|
|
|
50
52
|
top: fixedTop !== null && fixedTop !== void 0 ? fixedTop : 0,
|
|
51
53
|
maxHeight: "calc(100vh - ".concat(fixedTop, "px)")
|
|
52
54
|
}, style),
|
|
53
|
-
onMouseEnter:
|
|
54
|
-
onMouseLeave:
|
|
55
|
+
onMouseEnter: handleMouseEnter,
|
|
56
|
+
onMouseLeave: handleMouseLeave
|
|
55
57
|
}, /*#__PURE__*/React.createElement("div", {
|
|
56
58
|
className: "step-menu"
|
|
57
59
|
}, /*#__PURE__*/React.createElement(ReactSVG, {
|
package/es/ProStep/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import './style/index.less';
|
|
|
4
4
|
export declare const ProStepContext: React.Context<any>;
|
|
5
5
|
export declare const useStep: () => any;
|
|
6
6
|
declare const ProStep: {
|
|
7
|
-
({ children, ...resetProps }: ProStepPropsType): JSX.Element;
|
|
7
|
+
({ children, ...resetProps }: ProStepPropsType): React.JSX.Element;
|
|
8
8
|
useStep: () => any;
|
|
9
9
|
Item: ({ id, children, ...restProps }: {
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
id: any;
|
|
12
12
|
children: any;
|
|
13
|
-
}) => JSX.Element;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
14
|
Listener: ({ children, }: any) => React.DetailedReactHTMLElement<{
|
|
15
15
|
onClick: import("lodash").DebouncedFunc<() => Promise<void>>;
|
|
16
16
|
}, HTMLElement>;
|
package/es/ProTable/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const defaultPage: {
|
|
|
5
5
|
pageNum: number;
|
|
6
6
|
pageSize: number;
|
|
7
7
|
};
|
|
8
|
-
declare function ProTable(props: ProTableProps): JSX.Element;
|
|
8
|
+
declare function ProTable(props: ProTableProps): React.JSX.Element;
|
|
9
9
|
declare namespace ProTable {
|
|
10
10
|
var defaultProps: {
|
|
11
11
|
quickConfig: boolean;
|
package/es/ProTable/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { ReactSVG } from 'react-svg';
|
|
|
17
17
|
import classnames from 'classnames';
|
|
18
18
|
import { useProConfig, ProTransferModal } from 'zat-design-pro-component';
|
|
19
19
|
import { tools } from '@zat-design-pro-component/utils';
|
|
20
|
-
import { valueTypeRender } from '
|
|
20
|
+
import { valueTypeRender } from '../ProUtils/utils';
|
|
21
21
|
import { TableResizable, ResizableLine } from './components';
|
|
22
22
|
import useAntdTable from './useAntdTable';
|
|
23
23
|
import empty from '../assets/empty.png';
|
|
@@ -11,7 +11,7 @@ interface SummaryColumnProps {
|
|
|
11
11
|
precision?: number;
|
|
12
12
|
prefix?: ReactNode | string;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface ProTableSummaryProps {
|
|
15
15
|
columns: SummaryColumnProps[];
|
|
16
16
|
total?: boolean;
|
|
17
17
|
fixed?: boolean;
|
|
@@ -28,7 +28,7 @@ export type ProTableProps = TableProps<any> & {
|
|
|
28
28
|
sortColumnText?: string;
|
|
29
29
|
storage?: 'localStorage' | 'sessionStorage';
|
|
30
30
|
footerRender?: () => ReactNode;
|
|
31
|
-
summary?:
|
|
31
|
+
summary?: ProTableSummaryProps | TableProps<any>['summary'];
|
|
32
32
|
/**
|
|
33
33
|
* 斑马纹设置
|
|
34
34
|
*/
|
|
@@ -68,6 +68,7 @@ export interface RequestOptions<T, R> {
|
|
|
68
68
|
rowSelections?: boolean;
|
|
69
69
|
extraParams?: Partial<T>;
|
|
70
70
|
page?: PaginationProps;
|
|
71
|
+
crossPageSelect?: boolean;
|
|
71
72
|
onPageChange?: (page: PaginationProps) => void;
|
|
72
73
|
transformParams?: (params: any) => any;
|
|
73
74
|
transformResponse?: (data: any) => R[];
|
|
@@ -129,9 +129,10 @@
|
|
|
129
129
|
height: 80px;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.ant-table-thead>tr>th {
|
|
132
|
+
.ant-table .ant-table-thead>tr>th {
|
|
133
133
|
border-bottom: 0;
|
|
134
134
|
white-space : nowrap;
|
|
135
|
+
background : var(--zaui-table-header-bg, #f2f3f5);
|
|
135
136
|
|
|
136
137
|
.pro-table-th-cell {
|
|
137
138
|
width : 100%;
|
|
@@ -178,22 +179,6 @@
|
|
|
178
179
|
border-bottom: 0;
|
|
179
180
|
}
|
|
180
181
|
|
|
181
|
-
.ant-table-tbody tr:nth-child(n)>td {
|
|
182
|
-
background-color: var(--zaui-base-bg, #ffffff);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.ant-table-tbody tr:nth-child(2n)>td {
|
|
186
|
-
background-color: #F7F9FC;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(n)>td {
|
|
190
|
-
background-color: #F7F9FC;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(2n)>td {
|
|
194
|
-
background-color: var(--zaui-base-bg, #ffffff);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
182
|
.react-resizable {
|
|
198
183
|
position : relative;
|
|
199
184
|
background-clip: padding-box;
|
|
@@ -262,6 +247,16 @@
|
|
|
262
247
|
margin: -50px 0 var(--zaui-space-size-md, 16px) 0;
|
|
263
248
|
}
|
|
264
249
|
}
|
|
250
|
+
|
|
251
|
+
.ant-table-summary {
|
|
252
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
253
|
+
|
|
254
|
+
.ant-table-cell {
|
|
255
|
+
font-weight : 500;
|
|
256
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
257
|
+
border : none;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
265
260
|
}
|
|
266
261
|
|
|
267
262
|
.setting-overlay {
|
|
@@ -7,8 +7,8 @@ declare function useAntdTable<I, R extends Record<string, any>, S extends Servic
|
|
|
7
7
|
rowSelection: {
|
|
8
8
|
type: import("antd/lib/table/interface").RowSelectionType;
|
|
9
9
|
selectedRowKeys: Key[];
|
|
10
|
-
onChange(
|
|
11
|
-
onSelectAll: (selected: boolean
|
|
10
|
+
onChange(rowKeys: Key[], rows: any[]): void;
|
|
11
|
+
onSelectAll: (selected: boolean) => void;
|
|
12
12
|
getCheckboxProps: () => {
|
|
13
13
|
className: string;
|
|
14
14
|
};
|
|
@@ -47,8 +47,8 @@ declare function useAntdTable<I, R extends Record<string, any>, S extends Servic
|
|
|
47
47
|
rowSelection: {
|
|
48
48
|
type: import("antd/lib/table/interface").RowSelectionType;
|
|
49
49
|
selectedRowKeys: Key[];
|
|
50
|
-
onChange(
|
|
51
|
-
onSelectAll: (selected: boolean
|
|
50
|
+
onChange(rowKeys: Key[], rows: any[]): void;
|
|
51
|
+
onSelectAll: (selected: boolean) => void;
|
|
52
52
|
getCheckboxProps: () => {
|
|
53
53
|
className: string;
|
|
54
54
|
};
|