@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,189 +2,167 @@
|
|
|
2
2
|
|
|
3
3
|
/* 兼容IE11 默认会生成2个值,默认值,var值。IE11下读取默认值 */
|
|
4
4
|
:root {
|
|
5
|
-
--zaui-global-bg: #ffffff;
|
|
6
|
-
--zaui-base-bg: #ffffff;
|
|
7
|
-
--zaui-brand: #006aff;
|
|
8
|
-
--zaui-brand-hover: #3387ff;
|
|
9
|
-
--zaui-brand-active: #005ad9;
|
|
10
|
-
--zaui-brand-disabled: #99c3ff;
|
|
11
|
-
--zaui-text: #343434;
|
|
12
|
-
--zaui-text-weak: #
|
|
13
|
-
--zaui-aide-text: #909090;
|
|
14
|
-
--zaui-placeholder: #a0a0a0;
|
|
15
|
-
--zaui-link: var(--zaui-brand);
|
|
16
|
-
--zaui-link-light-active: var(--zaui-brand-active);
|
|
17
|
-
--zaui-line: #
|
|
18
|
-
--zaui-
|
|
19
|
-
--zaui-
|
|
20
|
-
--zaui-
|
|
21
|
-
--zaui-form-control-line
|
|
22
|
-
--zaui-
|
|
23
|
-
--zaui-
|
|
24
|
-
--zaui-list-item-
|
|
5
|
+
--zaui-global-bg : #ffffff;
|
|
6
|
+
--zaui-base-bg : #ffffff;
|
|
7
|
+
--zaui-brand : #006aff;
|
|
8
|
+
--zaui-brand-hover : #3387ff;
|
|
9
|
+
--zaui-brand-active : #005ad9;
|
|
10
|
+
--zaui-brand-disabled : #99c3ff;
|
|
11
|
+
--zaui-text : #343434;
|
|
12
|
+
--zaui-text-weak : #616161;
|
|
13
|
+
--zaui-aide-text : #909090;
|
|
14
|
+
--zaui-placeholder : #a0a0a0;
|
|
15
|
+
--zaui-link : var(--zaui-brand);
|
|
16
|
+
--zaui-link-light-active : var(--zaui-brand-active);
|
|
17
|
+
--zaui-line : #DCDCDC;
|
|
18
|
+
--zaui-dividing-line : #DCDCDC;
|
|
19
|
+
--zaui-area : #fafafa;
|
|
20
|
+
--zaui-shadow : rgba(56, 56, 56, 0.15);
|
|
21
|
+
--zaui-form-control-line : var(--zaui-line);
|
|
22
|
+
--zaui-form-control-line-hover : var(--zaui-brand-hover);
|
|
23
|
+
--zaui-form-control-line-active : var(--zaui-brand-active);
|
|
24
|
+
--zaui-list-item-active-bg : var(--zaui-brand);
|
|
25
|
+
--zaui-list-item-active-hover-bg : var(--zaui-brand);
|
|
26
|
+
--zaui-list-item-selected-bg : var(--zaui-brand);
|
|
25
27
|
--zaui-list-item-selected-hover-bg: var(--zaui-brand);
|
|
26
|
-
--zaui-disabled-bg: #f2f2f2;
|
|
27
|
-
--zaui-disabled-text: #333333;
|
|
28
|
-
--zaui-feedback-overlay-bg: rgba(0, 0, 0, 0.7);
|
|
29
|
-
--zaui-feedback-overlay-text: #343434;
|
|
30
|
-
--zaui-primary: var(--zaui-brand);
|
|
31
|
-
--zaui-primary-hover: var(--zaui-brand-hover);
|
|
32
|
-
--zaui-primary-active: var(--zaui-brand-active);
|
|
33
|
-
--zaui-danger-line: var(--zaui-line);
|
|
34
|
-
--zaui-danger-bg: #fff2f0;
|
|
35
|
-
--zaui-warning-line: var(--zaui-line);
|
|
36
|
-
--zaui-warning-bg: #fffbe6;
|
|
37
|
-
--zaui-info-line: var(--zaui-line);
|
|
38
|
-
--zaui-info-bg: #e6f7ff;
|
|
39
|
-
--zaui-success-line: var(--zaui-line);
|
|
40
|
-
--zaui-success-bg: #f6ffed;
|
|
41
|
-
--zaui-danger: #ff5050;
|
|
42
|
-
--zaui-warning: #ec9131;
|
|
43
|
-
--zaui-success: #00ae4d;
|
|
44
|
-
--zaui-menu-top-bg: #ffffff;
|
|
45
|
-
--zaui-menu-left-bg: #1a202d;
|
|
46
|
-
--zaui-menu-second-bg: #ffffff;
|
|
47
|
-
--zaui-form-align: left;
|
|
48
|
-
--zaui-
|
|
49
|
-
--zaui-
|
|
50
|
-
--zaui-
|
|
51
|
-
--zaui-
|
|
52
|
-
--zaui-
|
|
53
|
-
|
|
54
|
-
--zaui-
|
|
55
|
-
--zaui-
|
|
56
|
-
--zaui-
|
|
57
|
-
--zaui-font-size-
|
|
58
|
-
--zaui-font-size-
|
|
59
|
-
--zaui-font-size
|
|
60
|
-
--zaui-
|
|
61
|
-
--zaui-
|
|
62
|
-
--zaui-
|
|
63
|
-
--zaui-
|
|
64
|
-
--zaui-
|
|
65
|
-
--zaui-
|
|
66
|
-
--zaui-height-size-
|
|
67
|
-
--zaui-
|
|
68
|
-
--zaui-
|
|
69
|
-
--zaui-
|
|
70
|
-
--zaui-
|
|
71
|
-
--zaui-
|
|
72
|
-
--zaui-
|
|
73
|
-
--zaui-space-size-
|
|
28
|
+
--zaui-disabled-bg : #f2f2f2;
|
|
29
|
+
--zaui-disabled-text : #333333;
|
|
30
|
+
--zaui-feedback-overlay-bg : rgba(0, 0, 0, 0.7);
|
|
31
|
+
--zaui-feedback-overlay-text : #343434;
|
|
32
|
+
--zaui-primary : var(--zaui-brand);
|
|
33
|
+
--zaui-primary-hover : var(--zaui-brand-hover);
|
|
34
|
+
--zaui-primary-active : var(--zaui-brand-active);
|
|
35
|
+
--zaui-danger-line : var(--zaui-line);
|
|
36
|
+
--zaui-danger-bg : #fff2f0;
|
|
37
|
+
--zaui-warning-line : var(--zaui-line);
|
|
38
|
+
--zaui-warning-bg : #fffbe6;
|
|
39
|
+
--zaui-info-line : var(--zaui-line);
|
|
40
|
+
--zaui-info-bg : #e6f7ff;
|
|
41
|
+
--zaui-success-line : var(--zaui-line);
|
|
42
|
+
--zaui-success-bg : #f6ffed;
|
|
43
|
+
--zaui-danger : #ff5050;
|
|
44
|
+
--zaui-warning : #ec9131;
|
|
45
|
+
--zaui-success : #00ae4d;
|
|
46
|
+
--zaui-menu-top-bg : #ffffff;
|
|
47
|
+
--zaui-menu-left-bg : #1a202d;
|
|
48
|
+
--zaui-menu-second-bg : #ffffff;
|
|
49
|
+
--zaui-form-align : left;
|
|
50
|
+
--zaui-table-header-bg : #f2f3f5;
|
|
51
|
+
--zaui-table-strip-bg : #fafafa;
|
|
52
|
+
--zaui-table-hover-bg : #fafafa;
|
|
53
|
+
--zaui-table-selected-bg : var(--zaui-table-hover-bg); // 默认同悬停
|
|
54
|
+
--zaui-table-selected-hover-bg : var(--zaui-table-hover-bg); // 默认同悬停
|
|
55
|
+
@zaui-table—nested-bg : #FAFCFE;
|
|
56
|
+
--zaui-form-label-width : 130px; // 8个全角字符宽度
|
|
57
|
+
--zaui-border-radius : 4px;
|
|
58
|
+
--zaui-border-radius-card : 2px;
|
|
59
|
+
--zaui-font-size-title : 16px;
|
|
60
|
+
--zaui-font-size-card-title : var(--zaui-font-size-title);
|
|
61
|
+
--zaui-font-size : 14px;
|
|
62
|
+
--zaui-font-size-sm : 12px;
|
|
63
|
+
--zaui-font-size-md : var(--zaui-font-size);
|
|
64
|
+
--zaui-font-size-lg : 16px;
|
|
65
|
+
--zaui-font-size-xl : 18px;
|
|
66
|
+
--zaui-font-size-xxl : 20px;
|
|
67
|
+
--zaui-font-size-lg-title : 24px;
|
|
68
|
+
--zaui-height-border : var(--zaui-height-size-md);
|
|
69
|
+
--zaui-height-card : var(--zaui-height-size-lg);
|
|
70
|
+
--zaui-height-size-xs : 4px;
|
|
71
|
+
--zaui-height-size-sm : 8px;
|
|
72
|
+
--zaui-height-size-md : 16px;
|
|
73
|
+
--zaui-height-size-lg : 32px;
|
|
74
|
+
--zaui-height-size-xl : 64px;
|
|
75
|
+
--zaui-space-border : var(--zaui-space-size-md); // 兼容1.1.35一下版本 变量
|
|
76
|
+
--zaui-space-card : var(--zaui-space-size-lg);
|
|
77
|
+
--zaui-space-size-xs : 4px;
|
|
78
|
+
--zaui-space-size-sm : 8px;
|
|
79
|
+
--zaui-space-size-md : 16px;
|
|
80
|
+
--zaui-space-size-lg : 32px;
|
|
81
|
+
--zaui-space-size-xl : 64px;
|
|
74
82
|
|
|
75
83
|
--zaui-line-height-base: 1.5;
|
|
76
|
-
--zaui-size: 1;
|
|
77
|
-
--zaui-base-font-size: 0px;
|
|
84
|
+
--zaui-size : 1;
|
|
85
|
+
--zaui-base-font-size : 0px;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
@zaui-global-bg: var(--zaui-global-bg, #ffffff);
|
|
81
|
-
@zaui-base-bg: var(--zaui-base-bg, #ffffff);
|
|
82
|
-
@zaui-brand: var(--zaui-brand, #006aff);
|
|
83
|
-
@zaui-brand-hover: var(--zaui-brand-hover, #3387ff);
|
|
84
|
-
@zaui-brand-active: var(--zaui-brand-active, #005ad9);
|
|
85
|
-
@zaui-brand-disabled: var(--zaui-brand-disabled, #99c3ff);
|
|
86
|
-
@zaui-text: var(--zaui-text, #343434);
|
|
87
|
-
@zaui-text-weak: var(--zaui-text-weak, #
|
|
88
|
-
@zaui-aide-text: var(--zaui-aide-text, #909090);
|
|
89
|
-
@zaui-placeholder: var(--zaui-placeholder, #a0a0a0);
|
|
90
|
-
@zaui-link: var(--zaui-link, #006aff);
|
|
91
|
-
@zaui-link-light-active: var(--zaui-link-light-active, #005ad9);
|
|
92
|
-
@zaui-line: var(--zaui-line, #
|
|
93
|
-
@zaui-
|
|
94
|
-
@zaui-
|
|
95
|
-
@zaui-
|
|
96
|
-
@zaui-form-control-line
|
|
97
|
-
@zaui-
|
|
88
|
+
@zaui-global-bg : var(--zaui-global-bg, #ffffff);
|
|
89
|
+
@zaui-base-bg : var(--zaui-base-bg, #ffffff);
|
|
90
|
+
@zaui-brand : var(--zaui-brand, #006aff);
|
|
91
|
+
@zaui-brand-hover : var(--zaui-brand-hover, #3387ff);
|
|
92
|
+
@zaui-brand-active : var(--zaui-brand-active, #005ad9);
|
|
93
|
+
@zaui-brand-disabled : var(--zaui-brand-disabled, #99c3ff);
|
|
94
|
+
@zaui-text : var(--zaui-text, #343434);
|
|
95
|
+
@zaui-text-weak : var(--zaui-text-weak, #616161);
|
|
96
|
+
@zaui-aide-text : var(--zaui-aide-text, #909090);
|
|
97
|
+
@zaui-placeholder : var(--zaui-placeholder, #a0a0a0);
|
|
98
|
+
@zaui-link : var(--zaui-link, #006aff);
|
|
99
|
+
@zaui-link-light-active : var(--zaui-link-light-active, #005ad9);
|
|
100
|
+
@zaui-line : var(--zaui-line, #DCDCDC);
|
|
101
|
+
@zaui-dividing-line : var(--zaui-dividing-line, #DCDCDC);
|
|
102
|
+
@zaui-area : var(--zaui-area, #fafafa);
|
|
103
|
+
@zaui-shadow : var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
104
|
+
@zaui-form-control-line : var(--zaui-form-control-line, #DCDCDC);
|
|
105
|
+
@zaui-form-control-line-hover : var(--zaui-form-control-line-hover, #3387ff);
|
|
106
|
+
@zaui-form-control-line-active : var(--zaui-form-control-line-active, #005ad9);
|
|
107
|
+
@zaui-list-item-active-bg : var(--zaui-list-item-active-bg, #006aff);
|
|
98
108
|
@zaui-list-item-active-hover-bg: var(--zaui-list-item-active-hover-bg, #006aff);
|
|
99
|
-
@zaui-list-item-selected-bg: var(--zaui-list-item-selected-bg, #006aff);
|
|
100
|
-
@zaui-list-item-selected-hover-bg: var(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
);
|
|
104
|
-
@zaui-
|
|
105
|
-
@zaui-
|
|
106
|
-
@zaui-
|
|
107
|
-
@zaui-
|
|
108
|
-
@zaui-primary: var(--zaui-primary, #
|
|
109
|
-
@zaui-
|
|
110
|
-
@zaui-
|
|
111
|
-
@zaui-
|
|
112
|
-
@zaui-
|
|
113
|
-
@zaui-
|
|
114
|
-
@zaui-
|
|
115
|
-
@zaui-
|
|
116
|
-
@zaui-
|
|
117
|
-
@zaui-
|
|
118
|
-
@zaui-
|
|
119
|
-
@zaui-
|
|
120
|
-
@zaui-
|
|
121
|
-
@zaui-
|
|
122
|
-
@zaui-menu-
|
|
123
|
-
@zaui-
|
|
124
|
-
@zaui-
|
|
125
|
-
@zaui-
|
|
126
|
-
@zaui-
|
|
127
|
-
@zaui-
|
|
128
|
-
@zaui-
|
|
129
|
-
@zaui-
|
|
130
|
-
|
|
131
|
-
);
|
|
132
|
-
@zaui-
|
|
133
|
-
|
|
134
|
-
);
|
|
135
|
-
@zaui-font-size: calc(
|
|
136
|
-
|
|
137
|
-
);
|
|
138
|
-
@zaui-font-size-
|
|
139
|
-
|
|
140
|
-
);
|
|
141
|
-
@zaui-font-size-
|
|
142
|
-
|
|
143
|
-
);
|
|
144
|
-
@zaui-
|
|
145
|
-
|
|
146
|
-
);
|
|
147
|
-
@zaui-
|
|
148
|
-
|
|
149
|
-
);
|
|
150
|
-
@zaui-font-size-xxl: calc(
|
|
151
|
-
var(--zaui-font-size-xxl, 20px) + var(--zaui-base-font-size, 0px)
|
|
152
|
-
);
|
|
153
|
-
@zaui-font-size-lg-title: calc(
|
|
154
|
-
var(--zaui-font-size-lg-title, 24px) + var(--zaui-base-font-size, 0px)
|
|
155
|
-
);
|
|
156
|
-
@zaui-height-border: calc(
|
|
157
|
-
var(--zaui-height-border, 16px) * var(--zaui-size, 1)
|
|
158
|
-
);
|
|
159
|
-
@zaui-height-card: calc(var(--zaui-height-card, 32px) * var(--zaui-size, 1));
|
|
160
|
-
@zaui-height-size-xs: calc(
|
|
161
|
-
var(--zaui-height-size-xs, 4px) * var(--zaui-size, 1)
|
|
162
|
-
);
|
|
163
|
-
@zaui-height-size-sm: calc(
|
|
164
|
-
var(--zaui-height-size-sm, 8px) * var(--zaui-size, 1)
|
|
165
|
-
);
|
|
166
|
-
@zaui-height-size-md: calc(
|
|
167
|
-
var(--zaui-height-size-md, 16px) * var(--zaui-size, 1)
|
|
168
|
-
);
|
|
169
|
-
@zaui-height-size-lg: calc(
|
|
170
|
-
var(--zaui-height-size-lg, 32px) * var(--zaui-size, 1)
|
|
171
|
-
);
|
|
172
|
-
@zaui-height-size-xl: calc(
|
|
173
|
-
var(--zaui-height-size-xl, 64px) * var(--zaui-size, 1)
|
|
174
|
-
);
|
|
109
|
+
@zaui-list-item-selected-bg : var(--zaui-list-item-selected-bg, #006aff);
|
|
110
|
+
@zaui-list-item-selected-hover-bg: var(--zaui-list-item-selected-hover-bg,
|
|
111
|
+
#006aff);
|
|
112
|
+
@zaui-disabled-bg : var(--zaui-disabled-bg, #f2f2f2);
|
|
113
|
+
@zaui-disabled-text : var(--zaui-disabled-text, #333333);
|
|
114
|
+
@zaui-feedback-overlay-bg : var(--zaui-feedback-overlay-bg, rgba(0, 0, 0, 0.7));
|
|
115
|
+
@zaui-feedback-overlay-text : var(--zaui-feedback-overlay-text, #343434);
|
|
116
|
+
@zaui-primary : var(--zaui-primary, #006aff);
|
|
117
|
+
@zaui-primary-hover : var(--zaui-primary-hover, #3387ff);
|
|
118
|
+
@zaui-primary-active : var(--zaui-primary-active, #005ad9);
|
|
119
|
+
@zaui-danger-line : var(--zaui-danger-line, #ddd);
|
|
120
|
+
@zaui-danger-bg : var(--zaui-danger-bg, #fff2f0);
|
|
121
|
+
@zaui-warning-line : var(--zaui-warning-line, #ddd);
|
|
122
|
+
@zaui-warning-bg : var(--zaui-warning-bg, #fffbe6);
|
|
123
|
+
@zaui-info-line : var(--zaui-info-line, #ddd);
|
|
124
|
+
@zaui-info-bg : var(--zaui-info-bg, #e6f7ff);
|
|
125
|
+
@zaui-success-line : var(--zaui-success-line, #ddd);
|
|
126
|
+
@zaui-success-bg : var(--zaui-success-bg, #f6ffed);
|
|
127
|
+
@zaui-danger : var(--zaui-danger, #ff5050);
|
|
128
|
+
@zaui-warning : var(--zaui-warning, #ec9131);
|
|
129
|
+
@zaui-success : var(--zaui-success, #00ae4d);
|
|
130
|
+
@zaui-menu-top-bg : var(--zaui-menu-top-bg, #ffffff);
|
|
131
|
+
@zaui-menu-left-bg : var(--zaui-menu-left-bg, #1a202d);
|
|
132
|
+
@zaui-menu-second-bg : var(--zaui-menu-second-bg, #ffffff);
|
|
133
|
+
@zaui-form-align : var(--zaui-form-align, left);
|
|
134
|
+
@zaui-table-header-bg : var(--zaui-table-header-bg, #f2f3f5);
|
|
135
|
+
@zaui-table-strip-bg : var(--zaui-table-strip-bg, #fafafa);
|
|
136
|
+
@zaui-table-hover-bg : var(--zaui-table-hover-bg, #fafafa);
|
|
137
|
+
@zaui-table-selected-bg : var(--zaui-table-hover-bg, #fafafa); // 默认同悬停
|
|
138
|
+
@zaui-table-selected-hover-bg: var(--zaui-table-hover-bg, #fafafa); // 默认同悬停
|
|
139
|
+
@zaui-table—nested-bg : var(--zaui-table—nested-bg, #FAFCFE);
|
|
140
|
+
@zaui-form-label-width : var(--zaui-form-label-width, 130px);
|
|
141
|
+
@zaui-border-radius : var(--zaui-border-radius, 4px);
|
|
142
|
+
@zaui-border-radius-card : var(--zaui-border-radius-card, 2px);
|
|
143
|
+
@zaui-font-size-title : calc(var(--zaui-font-size-title, 16px) + var(--zaui-base-font-size, 0px));
|
|
144
|
+
@zaui-font-size-card-title : calc(var(--zaui-font-size-card-title, 16px) + var(--zaui-base-font-size, 0px));
|
|
145
|
+
@zaui-font-size : calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px));
|
|
146
|
+
@zaui-font-size-sm : calc(var(--zaui-font-size-sm, 12px) + var(--zaui-base-font-size, 0px));
|
|
147
|
+
@zaui-font-size-md : calc(var(--zaui-font-size-md, 14px) + var(--zaui-base-font-size, 0px));
|
|
148
|
+
@zaui-font-size-lg : calc(var(--zaui-font-size-lg, 16px) + var(--zaui-base-font-size, 0px));
|
|
149
|
+
@zaui-font-size-xl : calc(var(--zaui-font-size-xl, 18px) + var(--zaui-base-font-size, 0px));
|
|
150
|
+
@zaui-font-size-xxl : calc(var(--zaui-font-size-xxl, 20px) + var(--zaui-base-font-size, 0px));
|
|
151
|
+
@zaui-font-size-lg-title : calc(var(--zaui-font-size-lg-title, 24px) + var(--zaui-base-font-size, 0px));
|
|
152
|
+
@zaui-height-border : calc(var(--zaui-height-border, 16px) * var(--zaui-size, 1));
|
|
153
|
+
@zaui-height-card : calc(var(--zaui-height-card, 32px) * var(--zaui-size, 1));
|
|
154
|
+
@zaui-height-size-xs : calc(var(--zaui-height-size-xs, 4px) * var(--zaui-size, 1));
|
|
155
|
+
@zaui-height-size-sm : calc(var(--zaui-height-size-sm, 8px) * var(--zaui-size, 1));
|
|
156
|
+
@zaui-height-size-md : calc(var(--zaui-height-size-md, 16px) * var(--zaui-size, 1));
|
|
157
|
+
@zaui-height-size-lg : calc(var(--zaui-height-size-lg, 32px) * var(--zaui-size, 1));
|
|
158
|
+
@zaui-height-size-xl : calc(var(--zaui-height-size-xl, 64px) * var(--zaui-size, 1));
|
|
175
159
|
|
|
176
|
-
@zaui-space-border: calc(var(--zaui-space-border, 16px) * var(--zaui-size, 1));
|
|
177
|
-
@zaui-space-card: calc(var(--zaui-space-card, 32px) * var(--zaui-size, 1));
|
|
160
|
+
@zaui-space-border : calc(var(--zaui-space-border, 16px) * var(--zaui-size, 1));
|
|
161
|
+
@zaui-space-card : calc(var(--zaui-space-card, 32px) * var(--zaui-size, 1));
|
|
178
162
|
@zaui-space-size-xs: calc(var(--zaui-space-size-xs, 4px) * var(--zaui-size, 1));
|
|
179
163
|
@zaui-space-size-sm: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1));
|
|
180
|
-
@zaui-space-size-md: calc(
|
|
181
|
-
|
|
182
|
-
);
|
|
183
|
-
@zaui-space-size-lg: calc(
|
|
184
|
-
var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1)
|
|
185
|
-
);
|
|
186
|
-
@zaui-space-size-xl: calc(
|
|
187
|
-
var(--zaui-space-size-xl, 64px) * var(--zaui-size, 1)
|
|
188
|
-
);
|
|
164
|
+
@zaui-space-size-md: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1));
|
|
165
|
+
@zaui-space-size-lg: calc(var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1));
|
|
166
|
+
@zaui-space-size-xl: calc(var(--zaui-space-size-xl, 64px) * var(--zaui-size, 1));
|
|
189
167
|
|
|
190
|
-
@zaui-line-height-base: var(--zaui-line-height-base, 1.5);
|
|
168
|
+
@zaui-line-height-base: var(--zaui-line-height-base, 1.5);
|
package/es/tokens.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var tokens = {
|
|
2
|
+
'@zaui-global-bg': 'var(--zaui-global-bg, #ffffff)',
|
|
3
|
+
'@zaui-base-bg': 'var(--zaui-base-bg, #ffffff)',
|
|
4
|
+
'@zaui-brand': 'var(--zaui-brand, #006aff)',
|
|
5
|
+
'@zaui-brand-hover': 'var(--zaui-brand-hover, #3387ff)',
|
|
6
|
+
'@zaui-brand-active': 'var(--zaui-brand-active, #005ad9)',
|
|
7
|
+
'@zaui-brand-disabled': 'var(--zaui-brand-disabled, #99c3ff)',
|
|
8
|
+
'@zaui-text': 'var(--zaui-text, #464646)',
|
|
9
|
+
'@zaui-text-weak': 'var(--zaui-text-weak, #616161)',
|
|
10
|
+
'@zaui-aide-text': 'var(--zaui-aide-text, #909090)',
|
|
11
|
+
'@zaui-placeholder': 'var(--zaui-placeholder, #a0a0a0)',
|
|
12
|
+
'@zaui-link': 'var(--zaui-link, #006aff)',
|
|
13
|
+
'@zaui-link-light-active': 'var(--zaui-link-light-active, #005ad9)',
|
|
14
|
+
'@zaui-line': 'var(--zaui-line, #DCDCDC)',
|
|
15
|
+
'@zaui-dividing-line': 'var(--zaui-dividing-line, #DCDCDC)',
|
|
16
|
+
'@zaui-area': 'var(--zaui-area, #FAFAFA)',
|
|
17
|
+
'@zaui-shadow': 'var(--zaui-shadow, rgba(56, 56, 56, 0.15))',
|
|
18
|
+
'@zaui-form-control-line': 'var(--zaui-form-control-line, #DCDCDC)',
|
|
19
|
+
'@zaui-form-control-line-hover': 'var(--zaui-form-control-line-hover, #3387ff)',
|
|
20
|
+
'@zaui-form-control-line-active': 'var(--zaui-form-control-line-active, #005ad9)',
|
|
21
|
+
'@zaui-list-item-active-bg': 'var(--zaui-list-item-active-bg, #006aff)',
|
|
22
|
+
'@zaui-list-item-active-hover-bg': 'var(--zaui-list-item-active-hover-bg, #006aff)',
|
|
23
|
+
'@zaui-list-item-selected-bg': 'var(--zaui-list-item-selected-bg, #006aff)',
|
|
24
|
+
'@zaui-list-item-selected-hover-bg': 'var(--zaui-list-item-selected-hover-bg, #006aff)',
|
|
25
|
+
'@zaui-disabled-bg': 'var(--zaui-disabled-bg, #f2f2f2)',
|
|
26
|
+
'@zaui-disabled-text': 'var(--zaui-disabled-text, #333333)',
|
|
27
|
+
'@zaui-feedback-overlay-bg': 'var(--zaui-feedback-overlay-bg, rgba(0, 0, 0, 0.7))',
|
|
28
|
+
'@zaui-feedback-overlay-text': 'var(--zaui-feedback-overlay-text, #343434)',
|
|
29
|
+
'@zaui-primary': 'var(--zaui-primary, #006aff)',
|
|
30
|
+
'@zaui-primary-hover': 'var(--zaui-primary-hover, #3387ff)',
|
|
31
|
+
'@zaui-primary-active': 'var(--zaui-primary-active, #005ad9)',
|
|
32
|
+
'@zaui-danger-line': 'var(--zaui-danger-line, #ddd)',
|
|
33
|
+
'@zaui-danger-bg': 'var(--zaui-danger-bg, #fff2f0)',
|
|
34
|
+
'@zaui-warning-line': 'var(--zaui-warning-line, #ddd)',
|
|
35
|
+
'@zaui-warning-bg': 'var(--zaui-warning-bg, #fffbe6)',
|
|
36
|
+
'@zaui-info-line': 'var(--zaui-info-line, #ddd)',
|
|
37
|
+
'@zaui-info-bg': 'var(--zaui-info-bg, #e6f7ff)',
|
|
38
|
+
'@zaui-success-line': 'var(--zaui-success-line, #ddd)',
|
|
39
|
+
'@zaui-success-bg': 'var(--zaui-success-bg, #f6ffed)',
|
|
40
|
+
'@zaui-danger': 'var(--zaui-danger, #ff5050)',
|
|
41
|
+
'@zaui-warning': 'var(--zaui-warning, #ec9131)',
|
|
42
|
+
'@zaui-success': 'var(--zaui-success, #00ae4d)',
|
|
43
|
+
'@zaui-menu-top-bg': 'var(--zaui-menu-top-bg, #ffffff)',
|
|
44
|
+
'@zaui-menu-left-bg': 'var(--zaui-menu-left-bg, #1a202d)',
|
|
45
|
+
'@zaui-menu-second-bg': 'var(--zaui-menu-second-bg, #ffffff)',
|
|
46
|
+
'@zaui-form-align': 'var(--zaui-form-align, left)',
|
|
47
|
+
'@zaui-table-header-bg': 'var(--zaui-table-header-bg, #f2f3f5)',
|
|
48
|
+
'@zaui-table-strip-bg': 'var(--zaui-table-strip-bg, #fafafa)',
|
|
49
|
+
'@zaui-table-hover-bg': 'var(--zaui-table-hover-bg, #fafafa)',
|
|
50
|
+
'@zaui-table-selected-bg': 'var(--zaui-table-hover-bg #fafafa)',
|
|
51
|
+
'@zaui-table-selected-hover-bg': 'var(--zaui-table-hover-bg #fafafa)',
|
|
52
|
+
'@zaui-table—nested-bg': 'var(--zaui-table—nested-bg #FAFCFE)',
|
|
53
|
+
'@zaui-form-required-after': 'var(--zaui-form-required-after, inline)',
|
|
54
|
+
'@zaui-form-required-before': 'var(--zaui-form-required-before, none)',
|
|
55
|
+
'@zaui-form-label-width': 'var(--zaui-form-label-width, 130px)',
|
|
56
|
+
'@zaui-border-radius': 'var(--zaui-border-radius, 4px)',
|
|
57
|
+
'@zaui-border-radius-card': 'var(--zaui-border-radius-card, 2px)',
|
|
58
|
+
'@zaui-font-size-title': 'calc(var(--zaui-font-size-title, 16px) + var(--zaui-base-font-size, 0px))',
|
|
59
|
+
'@zaui-font-size-card-title': 'calc(var(--zaui-font-size-card-title, 16px) + var(--zaui-base-font-size, 0px))',
|
|
60
|
+
'@zaui-font-size': 'calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px))',
|
|
61
|
+
'@zaui-font-size-sm': 'calc(var(--zaui-font-size-sm, 12px) + var(--zaui-base-font-size, 0px))',
|
|
62
|
+
'@zaui-font-size-md': 'calc(var(--zaui-font-size-md, 14px) + var(--zaui-base-font-size, 0px))',
|
|
63
|
+
'@zaui-font-size-lg': 'calc(var(--zaui-font-size-lg, 16px) + var(--zaui-base-font-size, 0px))',
|
|
64
|
+
'@zaui-font-size-xl': 'calc(var(--zaui-font-size-xl, 18px) + var(--zaui-base-font-size, 0px))',
|
|
65
|
+
'@zaui-font-size-xxl': 'calc(var(--zaui-font-size-xxl, 20px) + var(--zaui-base-font-size, 0px))',
|
|
66
|
+
'@zaui-font-size-lg-title': 'calc(var(--zaui-font-size-lg-title, 24px) + var(--zaui-base-font-size, 0px))',
|
|
67
|
+
'@zaui-height-border': 'calc(var(--zaui-height-border, 16px) * var(--zaui-size, 1))',
|
|
68
|
+
'@zaui-height-card': 'calc(var(--zaui-height-card, 32px) * var(--zaui-size, 1))',
|
|
69
|
+
'@zaui-height-size-xs': 'calc(var(--zaui-height-size-xs, 4px) * var(--zaui-size, 1))',
|
|
70
|
+
'@zaui-height-size-sm': 'calc(var(--zaui-height-size-sm, 8px) * var(--zaui-size, 1))',
|
|
71
|
+
'@zaui-height-size-md': 'calc(var(--zaui-height-size-md, 16px) * var(--zaui-size, 1))',
|
|
72
|
+
'@zaui-height-size-lg': 'calc(var(--zaui-height-size-lg, 32px) * var(--zaui-size, 1))',
|
|
73
|
+
'@zaui-height-size-xl': 'calc(var(--zaui-height-size-xl, 64px) * var(--zaui-size, 1))',
|
|
74
|
+
'@zaui-space-border': 'calc(var(--zaui-space-border, 16px) * var(--zaui-size, 1))',
|
|
75
|
+
'@zaui-space-card': 'calc(var(--zaui-space-card, 32px) * var(--zaui-size, 1))',
|
|
76
|
+
'@zaui-space-size-xs': 'calc(var(--zaui-space-size-xs, 4px) * var(--zaui-size, 1))',
|
|
77
|
+
'@zaui-space-size-sm': 'calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1))',
|
|
78
|
+
'@zaui-space-size-md': 'calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1))',
|
|
79
|
+
'@zaui-space-size-lg': 'calc(var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1))',
|
|
80
|
+
'@zaui-space-size-xl': 'calc(var(--zaui-space-size-xl, 64px) * var(--zaui-size, 1))',
|
|
81
|
+
'@zaui-line-height-base': 'var(--zaui-line-height-base, 1.5)'
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// 适配node环境引入,umi配置theme引入使用
|
|
85
|
+
module.exports = tokens;
|
|
@@ -11,10 +11,11 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
11
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _antd = require("antd");
|
|
14
|
-
var _icons = require("@ant-design/icons");
|
|
15
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
15
|
var _ahooks = require("ahooks");
|
|
17
16
|
var _lodash = require("lodash");
|
|
17
|
+
var _reactSvg = require("react-svg");
|
|
18
|
+
var _close = _interopRequireDefault(require("../../../assets/close.svg"));
|
|
18
19
|
/**
|
|
19
20
|
* 抽屉组件
|
|
20
21
|
*/
|
|
@@ -190,8 +191,9 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
190
191
|
}, drawerProps), /*#__PURE__*/_react.default.createElement("div", {
|
|
191
192
|
className: "pro-drawer-close",
|
|
192
193
|
onClick: onConfirm
|
|
193
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
194
|
-
className: "close-icon"
|
|
194
|
+
}, /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
195
|
+
className: "close-icon",
|
|
196
|
+
src: _close.default
|
|
195
197
|
})), title ? /*#__PURE__*/_react.default.createElement("div", {
|
|
196
198
|
className: "pro-drawer-title ".concat(top > 0 ? 'pro-drawer-scrolling' : '')
|
|
197
199
|
}, title) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -14,6 +14,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _antd = require("antd");
|
|
15
15
|
var _ahooks = require("ahooks");
|
|
16
16
|
var _lodash = require("lodash");
|
|
17
|
+
var _reactSvg = require("react-svg");
|
|
18
|
+
var _close = _interopRequireDefault(require("../../../assets/close.svg"));
|
|
17
19
|
/**
|
|
18
20
|
* 弹窗组件
|
|
19
21
|
*/
|
|
@@ -34,7 +36,8 @@ var ProModal = function ProModal(_ref) {
|
|
|
34
36
|
onCancel = _ref.onCancel,
|
|
35
37
|
children = _ref.children,
|
|
36
38
|
className = _ref.className,
|
|
37
|
-
modalProps = _ref.modalProps
|
|
39
|
+
modalProps = _ref.modalProps,
|
|
40
|
+
extraLeft = _ref.extraLeft;
|
|
38
41
|
var ref = (0, _react.useRef)(null);
|
|
39
42
|
var _ref2 = (0, _ahooks.useScroll)((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.parentNode) || {},
|
|
40
43
|
top = _ref2.top;
|
|
@@ -119,15 +122,15 @@ var ProModal = function ProModal(_ref) {
|
|
|
119
122
|
*
|
|
120
123
|
*/
|
|
121
124
|
var defaultFooter = /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
-
className:
|
|
123
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
125
|
+
className: extraLeft ? 'pro-modal-footer' : undefined
|
|
126
|
+
}, extraLeft, /*#__PURE__*/_react.default.createElement(_antd.Space, null, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
124
127
|
onClick: onCancel
|
|
125
128
|
}, cancelText), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
126
129
|
type: "primary",
|
|
127
130
|
onClick: handleFinish,
|
|
128
131
|
loading: okLoading !== null && okLoading !== void 0 ? okLoading : loading,
|
|
129
132
|
disabled: okDisabled !== null && okDisabled !== void 0 ? okDisabled : loading
|
|
130
|
-
}, okText));
|
|
133
|
+
}, okText)));
|
|
131
134
|
var renderFooter = function renderFooter() {
|
|
132
135
|
if (noRenderFooter) {
|
|
133
136
|
return null;
|
|
@@ -158,7 +161,12 @@ var ProModal = function ProModal(_ref) {
|
|
|
158
161
|
onCancel: onCancel,
|
|
159
162
|
footer: renderFooter(),
|
|
160
163
|
okText: okText,
|
|
161
|
-
cancelText: cancelText
|
|
164
|
+
cancelText: cancelText,
|
|
165
|
+
centered: true,
|
|
166
|
+
closeIcon: /*#__PURE__*/_react.default.createElement(_reactSvg.ReactSVG, {
|
|
167
|
+
className: "close-icon",
|
|
168
|
+
src: _close.default
|
|
169
|
+
})
|
|
162
170
|
}, modalProps), /*#__PURE__*/_react.default.createElement("div", {
|
|
163
171
|
ref: ref
|
|
164
172
|
}, children));
|