@aloudata/aloudata-design 0.2.7 → 0.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Avatar/index.d.ts +15 -0
- package/es/Avatar/index.js +33 -0
- package/es/Avatar/style/index.d.ts +2 -0
- package/es/Avatar/style/index.js +2 -0
- package/es/Avatar/style/index.less +34 -0
- package/es/Breadcrumb/index.d.ts +8 -0
- package/es/Breadcrumb/index.js +36 -0
- package/es/Breadcrumb/style/index.d.ts +2 -0
- package/es/Breadcrumb/style/index.js +2 -0
- package/es/Breadcrumb/style/index.less +28 -0
- package/es/Button/index.d.ts +4 -4
- package/es/Button/index.js +28 -23
- package/es/Button/style/index.less +163 -130
- package/es/Button/style/variables.less +60 -0
- package/es/Checkbox/style/index.less +16 -1
- package/es/ConfigProvider/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +1 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Dropdown/style/index.less +41 -8
- package/es/Empty/image/Authority.d.ts +3 -0
- package/es/Empty/image/Authority.js +360 -0
- package/es/Empty/image/Dataspace.d.ts +3 -0
- package/es/Empty/image/Dataspace.js +271 -0
- package/es/Empty/image/Search.d.ts +3 -0
- package/es/Empty/image/Search.js +156 -0
- package/es/Empty/image/Simple.d.ts +3 -0
- package/es/Empty/image/Simple.js +20 -0
- package/es/Empty/image/Worksheet.d.ts +3 -0
- package/es/Empty/image/Worksheet.js +270 -0
- package/es/Empty/image/empty.d.ts +3 -0
- package/es/Empty/image/empty.js +139 -0
- package/es/Empty/index.d.ts +21 -5
- package/es/Empty/index.js +84 -54
- package/es/Empty/style/index.less +56 -11
- package/es/Icon/index.d.ts +2 -2
- package/es/Icon/index.js +10 -2
- package/es/Input/components/Group/index.d.ts +4 -2
- package/es/Input/components/Group/index.js +23 -1
- package/es/Input/components/Input/index.d.ts +1 -1
- package/es/Input/components/Input/index.js +12 -0
- package/es/Input/components/Password/index.d.ts +7 -1
- package/es/Input/components/Password/index.js +25 -3
- package/es/Input/style/index.less +278 -43
- package/es/InputNumber/index.d.ts +4 -0
- package/es/InputNumber/index.js +32 -0
- package/es/InputNumber/style/index.d.ts +2 -0
- package/es/InputNumber/style/index.js +2 -0
- package/es/InputNumber/style/index.less +152 -0
- package/es/Menu/Divider.d.ts +2 -1
- package/es/Menu/MenuItem.d.ts +2 -1
- package/es/Menu/SubMenu.d.ts +2 -1
- package/es/Menu/SubMenu.js +1 -1
- package/es/Menu/index.d.ts +2 -1
- package/es/Menu/style/index.less +1 -2
- package/es/Modal/index.d.ts +21 -0
- package/es/Modal/index.js +93 -0
- package/es/Modal/style/index.d.ts +2 -0
- package/es/Modal/style/index.js +2 -0
- package/es/Modal/style/index.less +206 -0
- package/es/Navigator/components/Header/index.d.ts +9 -0
- package/es/Navigator/components/Header/index.js +18 -0
- package/es/Navigator/components/Menu/index.d.ts +7 -13
- package/es/Navigator/components/Menu/index.js +26 -119
- package/es/Navigator/components/MenuItem/index.d.ts +21 -0
- package/es/Navigator/components/MenuItem/index.js +39 -0
- package/es/Navigator/index.d.ts +19 -8
- package/es/Navigator/index.js +6 -15
- package/es/Navigator/style/bg.png +0 -0
- package/es/Navigator/style/index.less +58 -166
- package/es/Popover/index.d.ts +5 -0
- package/es/Popover/index.js +22 -0
- package/es/Popover/style/index.d.ts +2 -0
- package/es/Popover/style/index.js +2 -0
- package/es/Popover/style/index.less +37 -0
- package/es/Radio/index.d.ts +2 -3
- package/es/Select/index.d.ts +36 -9
- package/es/Select/index.js +154 -7
- package/es/Select/rc-select/BaseSelect.d.ts +116 -0
- package/es/Select/rc-select/BaseSelect.js +641 -0
- package/es/Select/rc-select/OptGroup.d.ts +12 -0
- package/es/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
- package/es/Select/rc-select/Option.d.ts +14 -0
- package/es/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
- package/es/Select/rc-select/OptionList.d.ts +10 -0
- package/es/Select/rc-select/OptionList.js +401 -0
- package/es/Select/rc-select/Select.d.ts +109 -0
- package/es/Select/rc-select/Select.js +547 -0
- package/es/Select/rc-select/SelectContext.d.ts +20 -0
- package/es/Select/rc-select/SelectContext.js +4 -0
- package/es/Select/rc-select/SelectTrigger.d.ts +30 -0
- package/es/Select/rc-select/SelectTrigger.js +136 -0
- package/es/Select/rc-select/Selector/Input.d.ts +26 -0
- package/es/Select/rc-select/Selector/Input.js +114 -0
- package/es/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
- package/es/Select/rc-select/Selector/MultipleSelector.js +236 -0
- package/es/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
- package/es/Select/rc-select/Selector/SingleSelector.js +112 -0
- package/es/Select/rc-select/Selector/index.d.ts +80 -0
- package/es/Select/rc-select/Selector/index.js +194 -0
- package/es/Select/rc-select/TransBtn.d.ts +12 -0
- package/es/Select/rc-select/TransBtn.js +42 -0
- package/es/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
- package/es/Select/rc-select/hooks/useBaseProps.js +11 -0
- package/es/Select/rc-select/hooks/useCache.d.ts +7 -0
- package/es/Select/rc-select/hooks/useCache.js +49 -0
- package/es/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
- package/es/Select/rc-select/hooks/useDelayReset.js +50 -0
- package/es/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
- package/es/Select/rc-select/hooks/useFilterOptions.js +75 -0
- package/es/Select/rc-select/hooks/useId.d.ts +5 -0
- package/es/Select/rc-select/hooks/useId.js +47 -0
- package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
- package/es/Select/rc-select/hooks/useLayoutEffect.js +17 -0
- package/es/Select/rc-select/hooks/useLock.d.ts +7 -0
- package/es/Select/rc-select/hooks/useLock.js +35 -0
- package/es/Select/rc-select/hooks/useOptions.d.ts +11 -0
- package/es/Select/rc-select/hooks/useOptions.js +53 -0
- package/es/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
- package/es/Select/rc-select/hooks/useRefFunc.js +15 -0
- package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
- package/es/Select/rc-select/hooks/useSelectTriggerControl.js +40 -0
- package/es/Select/rc-select/index.d.ts +10 -0
- package/es/Select/rc-select/index.js +7 -0
- package/es/Select/rc-select/interface.d.ts +10 -0
- package/es/Select/{interface.js → rc-select/interface.js} +0 -0
- package/es/Select/rc-select/utils/commonUtil.d.ts +4 -0
- package/es/Select/rc-select/utils/commonUtil.js +12 -0
- package/es/Select/rc-select/utils/keyUtil.d.ts +2 -0
- package/es/Select/rc-select/utils/keyUtil.js +8 -0
- package/es/Select/rc-select/utils/legacyUtil.d.ts +3 -0
- package/es/Select/rc-select/utils/legacyUtil.js +58 -0
- package/es/Select/rc-select/utils/platformUtil.d.ts +1 -0
- package/es/Select/rc-select/utils/platformUtil.js +4 -0
- package/es/Select/rc-select/utils/valueUtil.d.ts +22 -0
- package/es/Select/rc-select/utils/valueUtil.js +157 -0
- package/es/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
- package/es/Select/rc-select/utils/warningPropsUtil.js +114 -0
- package/es/Select/style/index.d.ts +2 -0
- package/es/Select/style/index.js +4 -1
- package/es/Select/style/index.less +173 -494
- package/es/Select/style/multiple.less +222 -0
- package/es/Select/style/rtl.less +168 -0
- package/es/Select/style/select.less +337 -0
- package/es/Select/style/single.less +179 -0
- package/es/Select/style/status.less +48 -0
- package/es/Select/style/variables.less +56 -0
- package/es/Select/style/variables.less.d.ts +97 -0
- package/es/Select/utils/iconUtil.d.ts +24 -0
- package/es/Select/utils/iconUtil.js +87 -0
- package/es/Space/index.d.ts +1 -1
- package/es/Space/index.js +0 -1
- package/es/Table/Table.d.ts +6 -0
- package/es/Table/Table.js +464 -0
- package/es/Table/components/Empty/empty-img.png +0 -0
- package/es/Table/components/Empty/index.d.ts +4 -0
- package/es/Table/components/Empty/index.js +16 -0
- package/es/Table/components/Empty/index.less +24 -0
- package/es/Table/index.d.ts +2 -4
- package/es/Table/index.js +2 -463
- package/es/Table/interface.d.ts +11 -15
- package/es/Table/style/index.less +44 -21
- package/es/Tabs/style/index.less +39 -7
- package/es/Tooltip/style/index.less +2 -1
- package/es/index.d.ts +14 -2
- package/es/index.js +7 -1
- package/es/style/index.less +2 -1
- package/es/style/mixins/index.less +8 -0
- package/es/style/themes/default/index.less +10 -10
- package/es/style/themes/default/themeColor.module.less +58 -94
- package/es/style/themes/default/themeColor.module.less.d.ts +1 -17
- package/lib/Avatar/index.d.ts +15 -0
- package/lib/Avatar/index.js +57 -0
- package/lib/Avatar/style/index.d.ts +2 -0
- package/lib/Avatar/style/index.js +5 -0
- package/lib/Avatar/style/index.less +34 -0
- package/lib/Breadcrumb/index.d.ts +8 -0
- package/lib/Breadcrumb/index.js +50 -0
- package/lib/Breadcrumb/style/index.d.ts +2 -0
- package/lib/Breadcrumb/style/index.js +5 -0
- package/lib/Breadcrumb/style/index.less +28 -0
- package/lib/Button/index.d.ts +4 -4
- package/lib/Button/index.js +28 -24
- package/lib/Button/style/index.less +163 -130
- package/lib/Button/style/variables.less +60 -0
- package/lib/Checkbox/style/index.less +16 -1
- package/lib/ConfigProvider/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +26 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Dropdown/style/index.less +41 -8
- package/lib/Empty/image/Authority.d.ts +3 -0
- package/lib/Empty/image/Authority.js +374 -0
- package/lib/Empty/image/Dataspace.d.ts +3 -0
- package/lib/Empty/image/Dataspace.js +285 -0
- package/lib/Empty/image/Search.d.ts +3 -0
- package/lib/Empty/image/Search.js +170 -0
- package/lib/Empty/image/Simple.d.ts +3 -0
- package/lib/Empty/image/Simple.js +34 -0
- package/lib/Empty/image/Worksheet.d.ts +3 -0
- package/lib/Empty/image/Worksheet.js +284 -0
- package/lib/Empty/image/empty.d.ts +3 -0
- package/lib/Empty/image/empty.js +153 -0
- package/lib/Empty/index.d.ts +21 -5
- package/lib/Empty/index.js +94 -53
- package/lib/Empty/style/index.less +56 -11
- package/lib/Icon/index.d.ts +2 -2
- package/lib/Icon/index.js +10 -2
- package/lib/Input/components/Group/index.d.ts +4 -2
- package/lib/Input/components/Group/index.js +24 -1
- package/lib/Input/components/Input/index.d.ts +1 -1
- package/lib/Input/components/Input/index.js +13 -0
- package/lib/Input/components/Password/index.d.ts +7 -1
- package/lib/Input/components/Password/index.js +25 -2
- package/lib/Input/style/index.less +278 -43
- package/lib/InputNumber/index.d.ts +4 -0
- package/lib/InputNumber/index.js +45 -0
- package/lib/InputNumber/style/index.d.ts +2 -0
- package/lib/InputNumber/style/index.js +5 -0
- package/lib/InputNumber/style/index.less +152 -0
- package/lib/Menu/Divider.d.ts +2 -1
- package/lib/Menu/MenuItem.d.ts +2 -1
- package/lib/Menu/SubMenu.d.ts +2 -1
- package/lib/Menu/SubMenu.js +1 -1
- package/lib/Menu/index.d.ts +2 -1
- package/lib/Menu/style/index.less +1 -2
- package/lib/Modal/index.d.ts +21 -0
- package/lib/Modal/index.js +119 -0
- package/lib/Modal/style/index.d.ts +2 -0
- package/lib/Modal/style/index.js +5 -0
- package/lib/Modal/style/index.less +206 -0
- package/lib/Navigator/components/Header/index.d.ts +9 -0
- package/lib/Navigator/components/Header/index.js +28 -0
- package/lib/Navigator/components/Menu/index.d.ts +7 -13
- package/lib/Navigator/components/Menu/index.js +25 -118
- package/lib/Navigator/components/MenuItem/index.d.ts +21 -0
- package/lib/Navigator/components/MenuItem/index.js +56 -0
- package/lib/Navigator/index.d.ts +19 -8
- package/lib/Navigator/index.js +7 -15
- package/lib/Navigator/style/bg.png +0 -0
- package/lib/Navigator/style/index.less +58 -166
- package/lib/Popover/index.d.ts +5 -0
- package/lib/Popover/index.js +35 -0
- package/lib/Popover/style/index.d.ts +2 -0
- package/lib/Popover/style/index.js +5 -0
- package/lib/Popover/style/index.less +37 -0
- package/lib/Radio/index.d.ts +2 -3
- package/lib/Select/index.d.ts +36 -9
- package/lib/Select/index.js +166 -18
- package/lib/Select/rc-select/BaseSelect.d.ts +116 -0
- package/lib/Select/rc-select/BaseSelect.js +672 -0
- package/lib/Select/rc-select/OptGroup.d.ts +12 -0
- package/lib/Select/{OptionsList → rc-select}/OptGroup.js +1 -0
- package/lib/Select/rc-select/Option.d.ts +14 -0
- package/lib/Select/{OptionsList/Options.js → rc-select/Option.js} +1 -0
- package/lib/Select/rc-select/OptionList.d.ts +10 -0
- package/lib/Select/rc-select/OptionList.js +427 -0
- package/lib/Select/rc-select/Select.d.ts +109 -0
- package/lib/Select/rc-select/Select.js +545 -0
- package/lib/Select/rc-select/SelectContext.d.ts +20 -0
- package/lib/Select/rc-select/SelectContext.js +19 -0
- package/lib/Select/rc-select/SelectTrigger.d.ts +30 -0
- package/lib/Select/rc-select/SelectTrigger.js +153 -0
- package/lib/Select/rc-select/Selector/Input.d.ts +26 -0
- package/lib/Select/rc-select/Selector/Input.js +132 -0
- package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +16 -0
- package/lib/Select/rc-select/Selector/MultipleSelector.js +257 -0
- package/lib/Select/rc-select/Selector/SingleSelector.d.ts +8 -0
- package/lib/Select/rc-select/Selector/SingleSelector.js +129 -0
- package/lib/Select/rc-select/Selector/index.d.ts +80 -0
- package/lib/Select/rc-select/Selector/index.js +203 -0
- package/lib/Select/rc-select/TransBtn.d.ts +12 -0
- package/lib/Select/rc-select/TransBtn.js +59 -0
- package/lib/Select/rc-select/hooks/useBaseProps.d.ts +13 -0
- package/lib/Select/rc-select/hooks/useBaseProps.js +28 -0
- package/lib/Select/rc-select/hooks/useCache.d.ts +7 -0
- package/lib/Select/rc-select/hooks/useCache.js +63 -0
- package/lib/Select/rc-select/hooks/useDelayReset.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useDelayReset.js +62 -0
- package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +3 -0
- package/lib/Select/rc-select/hooks/useFilterOptions.js +91 -0
- package/lib/Select/rc-select/hooks/useId.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useId.js +68 -0
- package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useLayoutEffect.js +32 -0
- package/lib/Select/rc-select/hooks/useLock.d.ts +7 -0
- package/lib/Select/rc-select/hooks/useLock.js +49 -0
- package/lib/Select/rc-select/hooks/useOptions.d.ts +11 -0
- package/lib/Select/rc-select/hooks/useOptions.js +68 -0
- package/lib/Select/rc-select/hooks/useRefFunc.d.ts +5 -0
- package/lib/Select/rc-select/hooks/useRefFunc.js +29 -0
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +1 -0
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +54 -0
- package/lib/Select/rc-select/index.d.ts +10 -0
- package/lib/Select/rc-select/index.js +45 -0
- package/lib/Select/rc-select/interface.d.ts +10 -0
- package/lib/Select/{interface.js → rc-select/interface.js} +0 -0
- package/lib/Select/rc-select/utils/commonUtil.d.ts +4 -0
- package/lib/Select/rc-select/utils/commonUtil.js +23 -0
- package/lib/Select/rc-select/utils/keyUtil.d.ts +2 -0
- package/lib/Select/rc-select/utils/keyUtil.js +17 -0
- package/lib/Select/rc-select/utils/legacyUtil.d.ts +3 -0
- package/lib/Select/rc-select/utils/legacyUtil.js +73 -0
- package/lib/Select/rc-select/utils/platformUtil.d.ts +1 -0
- package/lib/Select/rc-select/utils/platformUtil.js +11 -0
- package/lib/Select/rc-select/utils/valueUtil.d.ts +22 -0
- package/lib/Select/rc-select/utils/valueUtil.js +172 -0
- package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +3 -0
- package/lib/Select/rc-select/utils/warningPropsUtil.js +132 -0
- package/lib/Select/style/index.d.ts +2 -0
- package/lib/Select/style/index.js +4 -0
- package/lib/Select/style/index.less +173 -494
- package/lib/Select/style/multiple.less +222 -0
- package/lib/Select/style/rtl.less +168 -0
- package/lib/Select/style/select.less +337 -0
- package/lib/Select/style/single.less +179 -0
- package/lib/Select/style/status.less +48 -0
- package/lib/Select/style/variables.less +56 -0
- package/lib/Select/style/variables.less.d.ts +97 -0
- package/lib/Select/utils/iconUtil.d.ts +24 -0
- package/lib/Select/utils/iconUtil.js +109 -0
- package/lib/Space/index.d.ts +1 -1
- package/lib/Space/index.js +0 -6
- package/lib/Table/Table.d.ts +6 -0
- package/lib/Table/Table.js +491 -0
- package/lib/Table/components/Empty/empty-img.png +0 -0
- package/lib/Table/components/Empty/index.d.ts +4 -0
- package/lib/Table/components/Empty/index.js +30 -0
- package/lib/Table/components/Empty/index.less +24 -0
- package/lib/Table/index.d.ts +2 -4
- package/lib/Table/index.js +2 -478
- package/lib/Table/interface.d.ts +11 -15
- package/lib/Table/style/index.less +44 -21
- package/lib/Tabs/style/index.less +39 -7
- package/lib/Tooltip/style/index.less +2 -1
- package/lib/index.d.ts +14 -2
- package/lib/index.js +48 -0
- package/lib/style/index.less +2 -1
- package/lib/style/mixins/index.less +8 -0
- package/lib/style/themes/default/index.less +10 -10
- package/lib/style/themes/default/themeColor.module.less +58 -94
- package/lib/style/themes/default/themeColor.module.less.d.ts +1 -17
- package/package.json +3 -2
- package/es/Select/BaseSelect.d.ts +0 -5
- package/es/Select/BaseSelect.js +0 -413
- package/es/Select/OptionsList/OptGroup.d.ts +0 -7
- package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
- package/es/Select/OptionsList/OptionItem/RenderGroup.js +0 -16
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -45
- package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
- package/es/Select/OptionsList/OptionItem/RenderOption.js +0 -79
- package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
- package/es/Select/OptionsList/OptionItem/RenderTooltip.js +0 -25
- package/es/Select/OptionsList/OptionItem.d.ts +0 -4
- package/es/Select/OptionsList/OptionItem.js +0 -4
- package/es/Select/OptionsList/Options.d.ts +0 -7
- package/es/Select/OptionsList/index.d.ts +0 -4
- package/es/Select/OptionsList/index.js +0 -176
- package/es/Select/Selector/index.d.ts +0 -4
- package/es/Select/Selector/index.js +0 -252
- package/es/Select/VirtualList.d.ts +0 -5
- package/es/Select/VirtualList.js +0 -29
- package/es/Select/hooks/useCacheOption.d.ts +0 -9
- package/es/Select/hooks/useCacheOption.js +0 -107
- package/es/Select/interface.d.ts +0 -235
- package/es/Select/utils.d.ts +0 -21
- package/es/Select/utils.js +0 -193
- package/lib/Select/BaseSelect.d.ts +0 -5
- package/lib/Select/BaseSelect.js +0 -446
- package/lib/Select/OptionsList/OptGroup.d.ts +0 -7
- package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +0 -9
- package/lib/Select/OptionsList/OptionItem/RenderGroup.js +0 -27
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +0 -10
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +0 -60
- package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +0 -16
- package/lib/Select/OptionsList/OptionItem/RenderOption.js +0 -94
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +0 -8
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +0 -37
- package/lib/Select/OptionsList/OptionItem.d.ts +0 -4
- package/lib/Select/OptionsList/OptionItem.js +0 -39
- package/lib/Select/OptionsList/Options.d.ts +0 -7
- package/lib/Select/OptionsList/index.d.ts +0 -4
- package/lib/Select/OptionsList/index.js +0 -195
- package/lib/Select/Selector/index.d.ts +0 -4
- package/lib/Select/Selector/index.js +0 -276
- package/lib/Select/VirtualList.d.ts +0 -5
- package/lib/Select/VirtualList.js +0 -42
- package/lib/Select/hooks/useCacheOption.d.ts +0 -9
- package/lib/Select/hooks/useCacheOption.js +0 -113
- package/lib/Select/interface.d.ts +0 -235
- package/lib/Select/utils.d.ts +0 -21
- package/lib/Select/utils.js +0 -233
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = InputNumber;
|
|
7
|
+
|
|
8
|
+
require("antd/es/input-number/style");
|
|
9
|
+
|
|
10
|
+
var _inputNumber = _interopRequireDefault(require("antd/es/input-number"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["className", "disabled", "size"];
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
|
+
|
|
24
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
|
+
|
|
26
|
+
function InputNumber(props) {
|
|
27
|
+
var className = props.className,
|
|
28
|
+
disabled = props.disabled,
|
|
29
|
+
size = props.size,
|
|
30
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
31
|
+
|
|
32
|
+
var getClassName = function getClassName() {
|
|
33
|
+
var _classnames;
|
|
34
|
+
|
|
35
|
+
return (0, _classnames2.default)(className, 'ald-inputNumber', (_classnames = {
|
|
36
|
+
'ald-inputNumber-disabled': disabled
|
|
37
|
+
}, _defineProperty(_classnames, "ald-inputNumber-large", size === 'large'), _defineProperty(_classnames, "ald-inputNumber-small", size === 'small'), _defineProperty(_classnames, "ald-inputNumber-middle", size !== 'large' && size !== 'small'), _classnames));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_inputNumber.default, Object.assign({}, rest, {
|
|
41
|
+
disabled: disabled,
|
|
42
|
+
size: size,
|
|
43
|
+
className: getClassName()
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
|
|
3
|
+
@InputNumber-height-large: 36px;
|
|
4
|
+
@InputNumber-fontSize-large: 16px;
|
|
5
|
+
|
|
6
|
+
@InputNumber-height-middle: 32px;
|
|
7
|
+
@InputNumber-fontSize-middle: 14px;
|
|
8
|
+
|
|
9
|
+
@InputNumber-height-small: 28px;
|
|
10
|
+
@InputNumber-fontSize-small: 12px;
|
|
11
|
+
|
|
12
|
+
@InputNumber-borderRadius: 8px;
|
|
13
|
+
//默认
|
|
14
|
+
@InputNumber-bgColor: @BG97;
|
|
15
|
+
@InputNumber-borderColor: @NL90;
|
|
16
|
+
@InputNumber-color: @NL0;
|
|
17
|
+
@InputNumber-wrapper-bgColor: @BG95;
|
|
18
|
+
//激活
|
|
19
|
+
@InputNumber-active-bgColor: @BG97;
|
|
20
|
+
@InputNumber-active-borderColor: @B60;
|
|
21
|
+
|
|
22
|
+
//disable
|
|
23
|
+
@InputNumber-disabled-bgColor: @BG95;
|
|
24
|
+
@InputNumber-disabled-borderColor: @NL90;
|
|
25
|
+
@InputNumber-disabled-color: @NL80;
|
|
26
|
+
//光标颜色
|
|
27
|
+
@InputNumber-cursor-color: @B60;
|
|
28
|
+
|
|
29
|
+
//前后填充
|
|
30
|
+
@InputNumber-addon-bgColor: @BG95;
|
|
31
|
+
@InputNumber-addon-color: @NL50;
|
|
32
|
+
@InputNumber-addon-disable-color: @NL80;
|
|
33
|
+
|
|
34
|
+
.ald-inputNumber {
|
|
35
|
+
&.ant-input-number {
|
|
36
|
+
height: @InputNumber-height-middle;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
color: @InputNumber-color;
|
|
39
|
+
font-size: @InputNumber-fontSize-middle;
|
|
40
|
+
background-color: @InputNumber-bgColor;
|
|
41
|
+
border-color: @InputNumber-borderColor;
|
|
42
|
+
border-radius: @InputNumber-borderRadius;
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
|
|
45
|
+
.ant-input-number-input-wrap {
|
|
46
|
+
height: 100%;
|
|
47
|
+
|
|
48
|
+
.ant-input-number-input {
|
|
49
|
+
height: 100%;
|
|
50
|
+
caret-color: @InputNumber-cursor-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ant-input-number-handler-wrap {
|
|
55
|
+
.ant-input-number-handler {
|
|
56
|
+
background-color: @BG95;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ant-input-number-handler:active {
|
|
60
|
+
background-color: @NL95;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.ald-inputNumber-large {
|
|
65
|
+
height: @InputNumber-height-large;
|
|
66
|
+
font-size: @InputNumber-fontSize-large;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.ald-inputNumber-middle {
|
|
70
|
+
height: @InputNumber-height-middle;
|
|
71
|
+
font-size: @InputNumber-fontSize-middle;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.ald-inputNumber-small {
|
|
75
|
+
height: @InputNumber-height-small;
|
|
76
|
+
font-size: @InputNumber-fontSize-small;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-disabled {
|
|
80
|
+
color: @InputNumber-disabled-color;
|
|
81
|
+
background-color: @InputNumber-disabled-bgColor;
|
|
82
|
+
border-color: @InputNumber-disabled-borderColor;
|
|
83
|
+
cursor: initial;
|
|
84
|
+
|
|
85
|
+
.ant-input-number-input-wrap .ant-input-number-input {
|
|
86
|
+
cursor: initial;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-focused {
|
|
91
|
+
background-color: @InputNumber-active-bgColor;
|
|
92
|
+
border-color: @InputNumber-active-borderColor;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.ant-input-number-group-wrapper {
|
|
97
|
+
// height: @InputNumber-height-middle;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
color: @InputNumber-color;
|
|
100
|
+
background-color: @InputNumber-wrapper-bgColor;
|
|
101
|
+
border-color: @InputNumber-borderColor;
|
|
102
|
+
border-radius: @InputNumber-borderRadius;
|
|
103
|
+
box-shadow: none;
|
|
104
|
+
|
|
105
|
+
&.ald-inputNumber-large {
|
|
106
|
+
font-size: @InputNumber-fontSize-large;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.ald-inputNumber-middle {
|
|
110
|
+
font-size: @InputNumber-fontSize-middle;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.ald-inputNumber-small {
|
|
114
|
+
font-size: @InputNumber-fontSize-small;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ant-input-number-wrapper {
|
|
118
|
+
height: 100%;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
font-size: inherit;
|
|
121
|
+
|
|
122
|
+
.ant-input-number-group-addon {
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
color: @InputNumber-addon-color;
|
|
125
|
+
font-size: inherit;
|
|
126
|
+
background-color: @InputNumber-addon-bgColor;
|
|
127
|
+
border-radius: @InputNumber-borderRadius;
|
|
128
|
+
|
|
129
|
+
&:first-child {
|
|
130
|
+
border-top-right-radius: 0;
|
|
131
|
+
border-bottom-right-radius: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&:last-child {
|
|
135
|
+
border-top-left-radius: 0;
|
|
136
|
+
border-bottom-left-radius: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ald-inputNumber {
|
|
141
|
+
margin: 0;
|
|
142
|
+
padding: 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.ald-inputNumber-disabled {
|
|
147
|
+
.ant-input-number-wrapper .ant-input-number-group-addon {
|
|
148
|
+
color: @InputNumber-addon-disable-color;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
package/lib/Menu/Divider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { MenuDividerProps } from 'antd/lib/menu/MenuDivider';
|
|
3
|
+
export interface IMenuDividerProps extends MenuDividerProps {
|
|
3
4
|
}
|
|
4
5
|
export default function Menu(props: IMenuDividerProps): JSX.Element;
|
package/lib/Menu/MenuItem.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { MenuItemProps } from 'antd/lib/menu/MenuItem';
|
|
2
3
|
import { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
3
|
-
export interface IMenuItemProps {
|
|
4
|
+
export interface IMenuItemProps extends MenuItemProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 唯一标志
|
|
6
7
|
* @type string | number
|
package/lib/Menu/SubMenu.d.ts
CHANGED
package/lib/Menu/SubMenu.js
CHANGED
|
@@ -27,7 +27,7 @@ function SubMenu(props) {
|
|
|
27
27
|
var popupClassName = props.popupClassName,
|
|
28
28
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
29
29
|
|
|
30
|
-
var OFFSET_WIDTH =
|
|
30
|
+
var OFFSET_WIDTH = 8;
|
|
31
31
|
var OFFSET_HEIGHT = 0;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(AntdSubMenu, Object.assign({
|
|
33
33
|
popupClassName: (0, _classnames.default)(popupClassName, 'ald-submenu'),
|
package/lib/Menu/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { MenuProps } from 'antd';
|
|
2
3
|
import MenuItem from './MenuItem';
|
|
3
4
|
import type { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
4
|
-
export interface IMenuProps {
|
|
5
|
+
export interface IMenuProps extends MenuProps {
|
|
5
6
|
/**
|
|
6
7
|
* @description 点击 MenuItem 调用此函数
|
|
7
8
|
* @type Function
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalProps } from 'antd';
|
|
3
|
+
import useModal from 'antd/lib/modal/useModal/index';
|
|
4
|
+
import { ModalStaticFunctions, modalGlobalConfig } from 'antd/lib/modal/confirm';
|
|
5
|
+
import { ModalFuncProps } from 'antd/lib/modal/Modal';
|
|
6
|
+
export type { ModalProps, ModalFuncProps };
|
|
7
|
+
export declare const destroyFns: Array<() => void>;
|
|
8
|
+
interface IModalInterface extends React.FC<IOriginModalProps> {
|
|
9
|
+
useModal: typeof useModal;
|
|
10
|
+
}
|
|
11
|
+
interface IOriginModalProps extends ModalProps {
|
|
12
|
+
forbidBodyScroll?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const OriginModal: IModalInterface;
|
|
16
|
+
declare type TOriginModal = typeof OriginModal & ModalStaticFunctions & {
|
|
17
|
+
destroyAll: () => void;
|
|
18
|
+
config: typeof modalGlobalConfig;
|
|
19
|
+
};
|
|
20
|
+
declare const Modal: TOriginModal;
|
|
21
|
+
export default Modal;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.destroyFns = exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/modal/style");
|
|
11
|
+
|
|
12
|
+
var _modal = _interopRequireDefault(require("antd/es/modal"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _index = _interopRequireDefault(require("antd/lib/modal/useModal/index"));
|
|
17
|
+
|
|
18
|
+
var _confirm = _interopRequireWildcard(require("antd/lib/modal/confirm"));
|
|
19
|
+
|
|
20
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
+
|
|
22
|
+
var _Button = _interopRequireDefault(require("../Button"));
|
|
23
|
+
|
|
24
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
25
|
+
|
|
26
|
+
var _excluded = ["className", "children", "forbidBodyScroll", "footer", "okText", "cancelText", "onOk", "onCancel", "width", "closeIcon"];
|
|
27
|
+
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
|
+
|
|
34
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
35
|
+
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
37
|
+
|
|
38
|
+
var destroyFns = [];
|
|
39
|
+
exports.destroyFns = destroyFns;
|
|
40
|
+
|
|
41
|
+
function modalWarn(props) {
|
|
42
|
+
return (0, _confirm.default)((0, _confirm.withWarn)(props));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var DEFAULT_WIDTH = 552;
|
|
46
|
+
|
|
47
|
+
var OriginModal = function OriginModal(props) {
|
|
48
|
+
var className = props.className,
|
|
49
|
+
children = props.children,
|
|
50
|
+
forbidBodyScroll = props.forbidBodyScroll,
|
|
51
|
+
footer = props.footer,
|
|
52
|
+
okText = props.okText,
|
|
53
|
+
cancelText = props.cancelText,
|
|
54
|
+
onOk = props.onOk,
|
|
55
|
+
onCancel = props.onCancel,
|
|
56
|
+
width = props.width,
|
|
57
|
+
closeIcon = props.closeIcon,
|
|
58
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
59
|
+
|
|
60
|
+
var Footer = /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
61
|
+
size: "large",
|
|
62
|
+
onClick: onCancel
|
|
63
|
+
}, cancelText || '取消'), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
64
|
+
type: "primary",
|
|
65
|
+
size: "large",
|
|
66
|
+
onClick: onOk
|
|
67
|
+
}, okText || '确定'));
|
|
68
|
+
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_modal.default, Object.assign({}, restProps, {
|
|
70
|
+
onCancel: onCancel,
|
|
71
|
+
footer: footer !== undefined ? footer : Footer,
|
|
72
|
+
className: (0, _classnames.default)('ald-modal', className),
|
|
73
|
+
width: width || DEFAULT_WIDTH,
|
|
74
|
+
closeIcon: closeIcon || /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
75
|
+
size: "small",
|
|
76
|
+
icon: /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
77
|
+
type: "close",
|
|
78
|
+
size: 12
|
|
79
|
+
}),
|
|
80
|
+
className: "ald-modal-close"
|
|
81
|
+
})
|
|
82
|
+
}), children);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
OriginModal.useModal = _index.default;
|
|
86
|
+
var Modal = OriginModal;
|
|
87
|
+
|
|
88
|
+
Modal.info = function infoFn(props) {
|
|
89
|
+
return (0, _confirm.default)((0, _confirm.withInfo)(props));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
Modal.success = function successFn(props) {
|
|
93
|
+
return (0, _confirm.default)((0, _confirm.withSuccess)(props));
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
Modal.error = function errorFn(props) {
|
|
97
|
+
return (0, _confirm.default)((0, _confirm.withError)(props));
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
Modal.warning = modalWarn;
|
|
101
|
+
Modal.warn = modalWarn;
|
|
102
|
+
|
|
103
|
+
Modal.confirm = function confirmFn(props) {
|
|
104
|
+
return (0, _confirm.default)((0, _confirm.withConfirm)(props));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
Modal.destroyAll = function destroyAllFn() {
|
|
108
|
+
while (destroyFns.length) {
|
|
109
|
+
var close = destroyFns.pop();
|
|
110
|
+
|
|
111
|
+
if (close) {
|
|
112
|
+
close();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
Modal.config = _confirm.modalGlobalConfig;
|
|
118
|
+
var _default = Modal;
|
|
119
|
+
exports.default = _default;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
@import '../../style/index.less';
|
|
2
|
+
@import '../../Button/style/variables.less';
|
|
3
|
+
|
|
4
|
+
.ald-modal {
|
|
5
|
+
.ant-modal-content {
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ald-modal-close {
|
|
10
|
+
position: relative;
|
|
11
|
+
top: -4px;
|
|
12
|
+
left: -10px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ant-modal-header {
|
|
16
|
+
padding: 24px 36px;
|
|
17
|
+
border-bottom-width: 0;
|
|
18
|
+
border-radius: 12px 12px 0 0;
|
|
19
|
+
|
|
20
|
+
.ant-modal-title {
|
|
21
|
+
width: 95%;
|
|
22
|
+
color: @NL0;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
font-family: 'PingFang SC', sans-serif;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
line-height: 28px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ant-modal-body {
|
|
32
|
+
padding: 16px 36px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ant-modal-footer {
|
|
36
|
+
padding: 16px 24px;
|
|
37
|
+
background-color: @BG95;
|
|
38
|
+
border-top-width: 0;
|
|
39
|
+
border-radius: 0 0 12px 12px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ant-modal-confirm {
|
|
44
|
+
.ant-modal-content {
|
|
45
|
+
border-radius: 12px;
|
|
46
|
+
|
|
47
|
+
.ant-modal-body {
|
|
48
|
+
padding: 24px 24px 16px 36px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ant-modal-confirm-body {
|
|
53
|
+
& > .anticon {
|
|
54
|
+
width: 24px;
|
|
55
|
+
height: 24px;
|
|
56
|
+
margin-right: 12px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ant-modal-confirm-title {
|
|
60
|
+
color: @NL0;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
font-family: 'PingFang SC', sans-serif;
|
|
64
|
+
font-style: normal;
|
|
65
|
+
line-height: 24px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ant-modal-confirm-content {
|
|
69
|
+
margin-top: 12px;
|
|
70
|
+
color: @NL0;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
font-family: 'PingFang SC', sans-serif;
|
|
74
|
+
font-style: normal;
|
|
75
|
+
line-height: 20px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.anticon-info-circle {
|
|
79
|
+
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMiAwQzUuMzcyNTggMCAwIDUuMzcyNTggMCAxMkMwIDE4LjYyNzQgNS4zNzI1OCAyNCAxMiAyNEMxOC42Mjc0IDI0IDI0IDE4LjYyNzQgMjQgMTJDMjQgNS4zNzI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NS4zNzI1OCAxOC42Mjc0IDAgMTIgMFpNMTIgNC45OTk5N0MxMi41NTIzIDQuOTk5OTcgMTMgNS40NDc2OSAxMyA1Ljk5OTk3VjEzLjVDMTMgMTQuMDUyMyAxMi41NTIzIDE0LjUgMTIgMTQuNUMxMS40NDc4IDE0LjUgMTEgMTQuMDUyMyAxMSAxMy41VjUuOTk5OTdDMTEgNS40NDc2OSAxMS40NDc4IDQuOTk5OTcgMTIgNC45OTk5N1pNMTEgMTcuNUMxMSAxNy4yMjM4IDExLjIyMzkgMTcgMTEuNSAxN0gxMi41QzEyLjc3NjIgMTcgMTMgMTcuMjIzOCAxMyAxNy41VjE4LjVDMTMgMTguNzc2MSAxMi43NzYyIDE5IDEyLjUgMTlIMTEuNUMxMS4yMjM5IDE5IDExIDE4Ljc3NjEgMTEgMTguNVYxNy41WiIgZmlsbD0iI0ZGQzIyOSIvPgo8L3N2Zz4K');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
svg {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// 简装组件的场景下,以下样式先直接替换,后续精装在讨论方案
|
|
101
|
+
:is(.ant-modal-confirm-info, .ant-modal-confirm-success, .ant-modal-confirm-error, .ant-modal-confirm-warning, .ant-modal-confirm-confirm) {
|
|
102
|
+
.ant-modal-confirm-btns {
|
|
103
|
+
.ant-btn {
|
|
104
|
+
padding: @Button-padding;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ant-btn-default {
|
|
108
|
+
padding: @Button-border-padding;
|
|
109
|
+
color: @Button-secondary-color;
|
|
110
|
+
background-color: @Button-secondary-bgColor;
|
|
111
|
+
border: 1px solid;
|
|
112
|
+
border-color: @Button-secondary-borderColor;
|
|
113
|
+
box-shadow: none;
|
|
114
|
+
|
|
115
|
+
&:focus {
|
|
116
|
+
color: @Button-secondary-color;
|
|
117
|
+
background-color: @Button-secondary-bgColor;
|
|
118
|
+
border-color: @Button-secondary-borderColor-active;
|
|
119
|
+
box-shadow: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover,
|
|
123
|
+
&:active {
|
|
124
|
+
color: @Button-secondary-color-active;
|
|
125
|
+
background-color: @Button-secondary-bgColor-active;
|
|
126
|
+
border-color: @Button-secondary-borderColor-active;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&[disabled],
|
|
130
|
+
&.ant-btn-loading {
|
|
131
|
+
color: @Button-secondary-color-disable;
|
|
132
|
+
background-color: @Button-secondary-bgColor-disable;
|
|
133
|
+
border-color: @Button-secondary-borderColor;
|
|
134
|
+
cursor: default;
|
|
135
|
+
|
|
136
|
+
&:hover,
|
|
137
|
+
&:focus,
|
|
138
|
+
&:active {
|
|
139
|
+
color: @Button-secondary-color-disable;
|
|
140
|
+
background-color: @Button-secondary-bgColor-disable;
|
|
141
|
+
border-color: @Button-secondary-borderColor;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ant-btn-primary {
|
|
147
|
+
min-width: auto;
|
|
148
|
+
height: @Button-height-middle;
|
|
149
|
+
color: @Button-primary-color;
|
|
150
|
+
font-size: @Button-text-size-middle;
|
|
151
|
+
line-height: @Button-text-size-middle;
|
|
152
|
+
background-color: @Button-primary-bgColor;
|
|
153
|
+
border-color: @Button-primary-bgColor;
|
|
154
|
+
border-radius: @Button-borderRadius-middle;
|
|
155
|
+
box-shadow: none;
|
|
156
|
+
|
|
157
|
+
&:focus {
|
|
158
|
+
//text-shadow: @text-shadow;
|
|
159
|
+
color: @Button-primary-color;
|
|
160
|
+
background-color: @Button-primary-bgColor;
|
|
161
|
+
border-color: @Button-primary-bgColor;
|
|
162
|
+
box-shadow: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:hover,
|
|
166
|
+
&:active {
|
|
167
|
+
color: @Button-primary-color-active;
|
|
168
|
+
background-color: @Button-primary-bgColor-active;
|
|
169
|
+
border-color: @Button-primary-bgColor-active;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.ant-btn-loading,
|
|
173
|
+
&[disabled] {
|
|
174
|
+
color: @Button-primary-color-disable;
|
|
175
|
+
background-color: @Button-primary-bgColor-disable;
|
|
176
|
+
border-color: @Button-primary-bgColor-disable;
|
|
177
|
+
cursor: default;
|
|
178
|
+
|
|
179
|
+
&:hover,
|
|
180
|
+
&:focus,
|
|
181
|
+
&:active {
|
|
182
|
+
color: @Button-primary-color-disable;
|
|
183
|
+
background-color: @Button-primary-bgColor-disable;
|
|
184
|
+
border-color: @Button-primary-bgColor-disable;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ant-btn-lg {
|
|
190
|
+
min-width: auto;
|
|
191
|
+
height: @Button-height-large;
|
|
192
|
+
font-size: @Button-text-size-large;
|
|
193
|
+
line-height: @Button-text-size-large;
|
|
194
|
+
border-radius: @Button-borderRadius-large;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ant-btn-sm {
|
|
198
|
+
height: @Button-height-small;
|
|
199
|
+
font-size: @Button-text-size-small;
|
|
200
|
+
line-height: 22px;
|
|
201
|
+
border-radius: @Button-borderRadius-small;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// 简装组件的场景下,以上样式先直接替换,后续精装在讨论方案
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function Header(props) {
|
|
13
|
+
var logoSrc = props.logoSrc;
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
15
|
+
className: "ald-nav-header"
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
17
|
+
className: "ald-nav-header-content"
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
19
|
+
src: logoSrc,
|
|
20
|
+
alt: "",
|
|
21
|
+
className: "ald-nav-logo-img"
|
|
22
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
className: "ald-nav-header-select"
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var _default = Header;
|
|
28
|
+
exports.default = _default;
|