@aloudata/aloudata-design 0.2.5 → 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 +158 -125
- 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 +0 -1
- 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 -162
- 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 +66 -176
- 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 +1 -0
- 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 +1 -1
- 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 +158 -125
- 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 +0 -1
- 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 -162
- 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 +66 -176
- 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 +1 -0
- 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 +1 -1
- 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
package/lib/Button/index.js
CHANGED
|
@@ -13,8 +13,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
var _usePrefixCls = _interopRequireDefault(require("../_utils/hooks/usePrefixCls"));
|
|
17
|
-
|
|
18
16
|
var _excluded = ["type", "size", "shape", "icon", "className"];
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -29,12 +27,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
27
|
|
|
30
28
|
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; }
|
|
31
29
|
|
|
32
|
-
var iconPrefixCls = '
|
|
33
|
-
var ICON_LARGE =
|
|
34
|
-
var
|
|
30
|
+
var iconPrefixCls = 'aldicon';
|
|
31
|
+
var ICON_LARGE = 16;
|
|
32
|
+
var ICON_MIDDLE = 14;
|
|
33
|
+
var ICON_SMALL = 12;
|
|
34
|
+
var ICON_MINI = 12;
|
|
35
35
|
|
|
36
36
|
function Button(props) {
|
|
37
|
-
var prefix =
|
|
37
|
+
var prefix = 'ald-btn';
|
|
38
38
|
|
|
39
39
|
var _props$type = props.type,
|
|
40
40
|
type = _props$type === void 0 ? 'secondary' : _props$type,
|
|
@@ -47,11 +47,11 @@ function Button(props) {
|
|
|
47
47
|
rest = _objectWithoutProperties(props, _excluded);
|
|
48
48
|
|
|
49
49
|
function getButtonType(buttonType) {
|
|
50
|
-
if (!['primary', 'secondary', '
|
|
50
|
+
if (!['primary', 'secondary', 'dangerous', 'text', 'link'].includes(buttonType)) {
|
|
51
51
|
return 'default';
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (buttonType === '
|
|
54
|
+
if (buttonType === 'dangerous') {
|
|
55
55
|
return 'primary';
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -63,24 +63,31 @@ function Button(props) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function getDangerStatus(buttonType) {
|
|
66
|
-
if (buttonType === '
|
|
66
|
+
if (buttonType === 'dangerous') {
|
|
67
67
|
return true;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
function getButtonSizeClass(ButtonSize) {
|
|
74
|
+
return ButtonSize === 'default' || undefined ? "".concat(prefix, "-middle") : "".concat(prefix, "-").concat(ButtonSize);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function getIconSize(ButtonSize) {
|
|
78
|
+
if (ButtonSize === 'large') {
|
|
79
|
+
return ICON_LARGE;
|
|
80
|
+
}
|
|
77
81
|
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
if (ButtonSize === 'small') {
|
|
83
|
+
return ICON_SMALL;
|
|
84
|
+
}
|
|
80
85
|
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
if (ButtonSize === 'mini') {
|
|
87
|
+
return ICON_MINI;
|
|
83
88
|
}
|
|
89
|
+
|
|
90
|
+
return ICON_MIDDLE;
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
function getShape(ButtonShape) {
|
|
@@ -96,12 +103,10 @@ function Button(props) {
|
|
|
96
103
|
var p = _objectSpread({
|
|
97
104
|
className: '',
|
|
98
105
|
size: ICON_LARGE
|
|
99
|
-
}, iconNode.props);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
p.className = (0, _classnames.default)("".concat(iconPrefixCls, "-icon-left"), p.className); // eslint-disable-next-line
|
|
106
|
+
}, iconNode.props);
|
|
103
107
|
|
|
104
|
-
p.
|
|
108
|
+
p.className = (0, _classnames.default)("".concat(iconPrefixCls, "-icon-left"), p.className, iconPrefixCls);
|
|
109
|
+
p.size = getIconSize(size);
|
|
105
110
|
return /*#__PURE__*/_react.default.cloneElement(iconNode, p);
|
|
106
111
|
}
|
|
107
112
|
|
|
@@ -111,8 +116,7 @@ function Button(props) {
|
|
|
111
116
|
return /*#__PURE__*/_react.default.createElement(_button.default, Object.assign({}, rest, {
|
|
112
117
|
icon: setIcon(icon),
|
|
113
118
|
type: getButtonType(type),
|
|
114
|
-
className: (0, _classnames.default)("".concat(prefix, "-").concat(type), className),
|
|
115
|
-
size: getButtonSize(size),
|
|
119
|
+
className: (0, _classnames.default)(prefix, "".concat(prefix, "-").concat(type), className, getButtonSizeClass(size)),
|
|
116
120
|
danger: getDangerStatus(type),
|
|
117
121
|
shape: getShape(shape)
|
|
118
122
|
}), props.children);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
|
+
@import './variables.less';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.ant-btn {
|
|
7
|
-
&.ant-btn {
|
|
4
|
+
.ant-btn.ald-btn {
|
|
5
|
+
&.ald-btn {
|
|
8
6
|
// &-loading::before{
|
|
9
7
|
// // display: none !important;
|
|
10
8
|
// }
|
|
@@ -18,10 +16,12 @@
|
|
|
18
16
|
align-items: center;
|
|
19
17
|
justify-content: center;
|
|
20
18
|
height: @height-base;
|
|
21
|
-
padding:
|
|
19
|
+
padding: @Button-padding;
|
|
22
20
|
font-weight: 500;
|
|
23
21
|
font-size: 12px;
|
|
24
22
|
line-height: @height-base;
|
|
23
|
+
text-shadow: none;
|
|
24
|
+
// border: none;
|
|
25
25
|
.@{ald-iconfont-css-prefix} {
|
|
26
26
|
+ span {
|
|
27
27
|
margin-left: 4px;
|
|
@@ -37,210 +37,201 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
&.ant-btn-loading::before {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
40
44
|
&-primary {
|
|
41
|
-
|
|
42
|
-
background-color: @
|
|
43
|
-
border-color: @
|
|
44
|
-
border-radius: @border-radius-base;
|
|
45
|
+
color: @Button-primary-color;
|
|
46
|
+
background-color: @Button-primary-bgColor;
|
|
47
|
+
border-color: @Button-primary-bgColor;
|
|
45
48
|
box-shadow: none;
|
|
46
49
|
|
|
47
50
|
&:focus {
|
|
48
|
-
text-shadow: @text-shadow;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
border-
|
|
51
|
+
//text-shadow: @text-shadow;
|
|
52
|
+
color: @Button-primary-color;
|
|
53
|
+
background-color: @Button-primary-bgColor;
|
|
54
|
+
border-color: @Button-primary-bgColor;
|
|
52
55
|
box-shadow: none;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
&:hover,
|
|
56
|
-
&:active
|
|
57
|
-
|
|
58
|
-
color: @
|
|
59
|
-
|
|
60
|
-
border-color: @B20;
|
|
59
|
+
&:active {
|
|
60
|
+
color: @Button-primary-color-active;
|
|
61
|
+
background-color: @Button-primary-bgColor-active;
|
|
62
|
+
border-color: @Button-primary-bgColor-active;
|
|
61
63
|
}
|
|
62
64
|
|
|
65
|
+
&.ant-btn-loading,
|
|
63
66
|
&[disabled] {
|
|
64
|
-
color: @
|
|
65
|
-
background-color: @
|
|
66
|
-
border-color:
|
|
67
|
+
color: @Button-primary-color-disable;
|
|
68
|
+
background-color: @Button-primary-bgColor-disable;
|
|
69
|
+
border-color: @Button-primary-bgColor-disable;
|
|
67
70
|
cursor: default;
|
|
68
71
|
|
|
69
72
|
&:hover,
|
|
70
73
|
&:focus,
|
|
71
74
|
&:active {
|
|
72
|
-
color: @
|
|
73
|
-
background-color: @
|
|
74
|
-
border-color:
|
|
75
|
+
color: @Button-primary-color-disable;
|
|
76
|
+
background-color: @Button-primary-bgColor-disable;
|
|
77
|
+
border-color: @Button-primary-bgColor-disable;
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
&-dangerous
|
|
80
|
-
color: @
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
border-color: @SC40;
|
|
82
|
+
&-dangerous {
|
|
83
|
+
color: @Button-dangerous-color;
|
|
84
|
+
background-color: @Button-dangerous-bgColor;
|
|
85
|
+
border-color: @Button-dangerous-bgColor;
|
|
84
86
|
box-shadow: unset;
|
|
85
87
|
|
|
86
88
|
&:focus {
|
|
87
|
-
color: @
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
border-color: @SC40;
|
|
89
|
+
color: @Button-dangerous-color;
|
|
90
|
+
background-color: @Button-dangerous-bgColor;
|
|
91
|
+
border-color: @Button-dangerous-bgColor;
|
|
91
92
|
box-shadow: unset;
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
&:hover,
|
|
95
|
-
&:active
|
|
96
|
-
|
|
97
|
-
color: @
|
|
98
|
-
|
|
99
|
-
border-color: @SC20;
|
|
96
|
+
&:active {
|
|
97
|
+
color: @Button-dangerous-color-active;
|
|
98
|
+
background-color: @Button-dangerous-bgColor-active;
|
|
99
|
+
border-color: @Button-dangerous-bgColor-active;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
&[disabled]
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
&[disabled],
|
|
103
|
+
&.ant-btn-loading {
|
|
104
|
+
color: @Button-dangerous-color-disable;
|
|
105
|
+
background-color: @Button-dangerous-bgColor-disable;
|
|
106
|
+
border-color: @Button-dangerous-bgColor-disable;
|
|
106
107
|
cursor: default;
|
|
107
108
|
|
|
108
109
|
&:hover,
|
|
109
110
|
&:focus,
|
|
110
111
|
&:active {
|
|
111
|
-
color: @
|
|
112
|
-
background-color: @
|
|
113
|
-
border-color:
|
|
112
|
+
color: @Button-dangerous-color-disable;
|
|
113
|
+
background-color: @Button-dangerous-bgColor-disable;
|
|
114
|
+
border-color: @Button-dangerous-bgColor-disable;
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
&-default,
|
|
118
120
|
&-secondary {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
background-color: @
|
|
122
|
-
border
|
|
123
|
-
border-
|
|
121
|
+
padding: @Button-border-padding;
|
|
122
|
+
color: @Button-secondary-color;
|
|
123
|
+
background-color: @Button-secondary-bgColor;
|
|
124
|
+
border: 1px solid;
|
|
125
|
+
border-color: @Button-secondary-borderColor;
|
|
124
126
|
box-shadow: none;
|
|
125
127
|
|
|
126
128
|
&:focus {
|
|
127
|
-
color: @
|
|
128
|
-
text-shadow: @text-shadow;
|
|
129
|
-
background-color: @
|
|
130
|
-
border-color: @
|
|
131
|
-
border-radius: @border-radius-base;
|
|
129
|
+
color: @Button-secondary-color;
|
|
130
|
+
//text-shadow: @text-shadow;
|
|
131
|
+
background-color: @Button-secondary-bgColor;
|
|
132
|
+
border-color: @Button-secondary-borderColor;
|
|
132
133
|
box-shadow: none;
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
&:hover,
|
|
136
|
-
&:active
|
|
137
|
-
|
|
138
|
-
color: @
|
|
139
|
-
|
|
140
|
-
border-color: @NL90;
|
|
137
|
+
&:active {
|
|
138
|
+
color: @Button-secondary-color-active;
|
|
139
|
+
background-color: @Button-secondary-bgColor-active;
|
|
140
|
+
border-color: @Button-secondary-borderColor-active;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
&[disabled]
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
&[disabled],
|
|
144
|
+
&.ant-btn-loading {
|
|
145
|
+
color: @Button-secondary-color-disable;
|
|
146
|
+
background-color: @Button-secondary-bgColor-disable;
|
|
147
|
+
border-color: @Button-secondary-borderColor;
|
|
147
148
|
cursor: default;
|
|
148
149
|
|
|
149
150
|
&:hover,
|
|
150
151
|
&:focus,
|
|
151
152
|
&:active {
|
|
152
|
-
color: @
|
|
153
|
-
background-color: @
|
|
154
|
-
border-color: @
|
|
153
|
+
color: @Button-secondary-color-disable;
|
|
154
|
+
background-color: @Button-secondary-bgColor-disable;
|
|
155
|
+
border-color: @Button-secondary-borderColor;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
&-text {
|
|
160
|
-
color: @
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
border-color: @BG100;
|
|
164
|
-
border-radius: @border-radius-base;
|
|
161
|
+
color: @Button-text-color;
|
|
162
|
+
background-color: @Button-text-bgColor;
|
|
163
|
+
border: none;
|
|
165
164
|
box-shadow: none;
|
|
166
165
|
|
|
167
166
|
&:focus {
|
|
168
|
-
color: @
|
|
169
|
-
|
|
170
|
-
background-color: @BG100;
|
|
171
|
-
border-color: @BG100;
|
|
172
|
-
border-radius: @border-radius-base;
|
|
167
|
+
color: @Button-text-color;
|
|
168
|
+
background-color: @Button-text-bgColor;
|
|
173
169
|
box-shadow: none;
|
|
174
170
|
}
|
|
175
171
|
|
|
176
172
|
&:hover,
|
|
177
173
|
&:active,
|
|
178
174
|
&.ant-btn-loading {
|
|
179
|
-
|
|
180
|
-
color: @
|
|
181
|
-
background-color: @NL97;
|
|
175
|
+
color: @Button-text-color-active;
|
|
176
|
+
background-color: @Button-text-bgColor-active;
|
|
182
177
|
}
|
|
183
178
|
|
|
184
179
|
&[disabled] {
|
|
185
|
-
color: @
|
|
186
|
-
background-color:
|
|
187
|
-
border-color: transparent;
|
|
180
|
+
color: @Button-text-color-disable;
|
|
181
|
+
background-color: @Button-text-bgColor-disable;
|
|
188
182
|
cursor: default;
|
|
189
183
|
|
|
190
184
|
&:hover,
|
|
191
185
|
&:focus,
|
|
192
186
|
&:active {
|
|
193
|
-
color: @
|
|
194
|
-
background-color:
|
|
195
|
-
border-color: transparent;
|
|
187
|
+
color: @Button-text-color-disable;
|
|
188
|
+
background-color: @Button-text-bgColor-disable;
|
|
196
189
|
}
|
|
197
190
|
}
|
|
198
191
|
}
|
|
199
192
|
|
|
200
193
|
&-link {
|
|
201
|
-
color: @
|
|
194
|
+
color: @Button-link-color;
|
|
202
195
|
font-weight: 400;
|
|
203
|
-
text-shadow: @text-shadow;
|
|
204
|
-
background-color: @
|
|
205
|
-
border-color: @
|
|
206
|
-
border-radius: @border-radius-base;
|
|
196
|
+
//text-shadow: @text-shadow;
|
|
197
|
+
background-color: @Button-link-bgColor;
|
|
198
|
+
border-color: @Button-link-bgColor;
|
|
207
199
|
box-shadow: none;
|
|
208
200
|
|
|
209
201
|
&:focus {
|
|
210
|
-
color: @
|
|
202
|
+
color: @Button-link-color;
|
|
211
203
|
font-weight: 400;
|
|
212
|
-
text-shadow: @text-shadow;
|
|
213
|
-
background-color: @
|
|
214
|
-
border-color: @
|
|
215
|
-
border-radius: @border-radius-base;
|
|
204
|
+
//text-shadow: @text-shadow;
|
|
205
|
+
background-color: @Button-link-bgColor;
|
|
206
|
+
border-color: @Button-link-bgColor;
|
|
216
207
|
box-shadow: none;
|
|
217
208
|
}
|
|
218
209
|
|
|
219
210
|
&:hover,
|
|
220
|
-
&:active
|
|
221
|
-
|
|
222
|
-
color: @
|
|
223
|
-
|
|
224
|
-
border-color: @BG100;
|
|
211
|
+
&:active {
|
|
212
|
+
color: @Button-link-color-active;
|
|
213
|
+
background-color: @Button-link-bgColor-active;
|
|
214
|
+
border-color: @Button-link-bgColor-active;
|
|
225
215
|
}
|
|
226
216
|
|
|
227
|
-
&[disabled]
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
217
|
+
&[disabled],
|
|
218
|
+
&.ant-btn-loading {
|
|
219
|
+
color: @Button-link-color-disable;
|
|
220
|
+
background-color: @Button-link-bgColor-disable;
|
|
221
|
+
border-color: @Button-link-bgColor-disable;
|
|
231
222
|
cursor: default;
|
|
232
223
|
|
|
233
224
|
&:hover,
|
|
234
225
|
&:focus,
|
|
235
226
|
&:active {
|
|
236
|
-
color: @
|
|
237
|
-
background-color:
|
|
238
|
-
border-color:
|
|
227
|
+
color: @Button-link-color-disable;
|
|
228
|
+
background-color: @Button-link-bgColor-disable;
|
|
229
|
+
border-color: @Button-link-bgColor-disable;
|
|
239
230
|
}
|
|
240
231
|
}
|
|
241
232
|
}
|
|
242
233
|
|
|
243
|
-
|
|
234
|
+
&.ant-btn-icon-only {
|
|
244
235
|
justify-content: center;
|
|
245
236
|
width: @height-base;
|
|
246
237
|
height: @height-base;
|
|
@@ -266,38 +257,80 @@
|
|
|
266
257
|
border-radius: 50%;
|
|
267
258
|
}
|
|
268
259
|
|
|
269
|
-
&-
|
|
260
|
+
&-large {
|
|
261
|
+
min-width: auto;
|
|
262
|
+
height: @Button-height-large;
|
|
263
|
+
font-size: @Button-text-size-large;
|
|
264
|
+
border-radius: @Button-borderRadius-large;
|
|
265
|
+
|
|
266
|
+
&.ant-btn-icon-only {
|
|
267
|
+
width: @Button-height-large;
|
|
268
|
+
min-width: auto;
|
|
269
|
+
height: @Button-height-large;
|
|
270
|
+
border-radius: @Button-borderRadius-large;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&.ant-btn-circle {
|
|
274
|
+
width: @Button-height-large;
|
|
275
|
+
height: @Button-height-large;
|
|
276
|
+
border-radius: 50%;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&-middle {
|
|
270
281
|
min-width: auto;
|
|
271
|
-
height:
|
|
272
|
-
font-size:
|
|
282
|
+
height: @Button-height-middle;
|
|
283
|
+
font-size: @Button-text-size-middle;
|
|
284
|
+
border-radius: @Button-borderRadius-middle;
|
|
273
285
|
|
|
274
286
|
&.ant-btn-icon-only {
|
|
275
|
-
width:
|
|
287
|
+
width: @Button-height-middle;
|
|
276
288
|
min-width: auto;
|
|
277
|
-
height:
|
|
289
|
+
height: @Button-height-middle;
|
|
290
|
+
border-radius: @Button-borderRadius-middle;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&.ant-btn-circle {
|
|
294
|
+
width: @Button-height-middle;
|
|
295
|
+
height: @Button-height-middle;
|
|
296
|
+
border-radius: 50%;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
&-small {
|
|
301
|
+
height: @Button-height-small;
|
|
302
|
+
font-size: @Button-text-size-small;
|
|
303
|
+
line-height: 22px;
|
|
304
|
+
border-radius: @Button-borderRadius-small;
|
|
305
|
+
|
|
306
|
+
&.ant-btn-icon-only {
|
|
307
|
+
width: @Button-height-small;
|
|
308
|
+
height: @Button-height-small;
|
|
309
|
+
border-radius: @Button-borderRadius-small;
|
|
278
310
|
}
|
|
279
311
|
|
|
280
312
|
&.ant-btn-circle {
|
|
281
|
-
width:
|
|
282
|
-
height:
|
|
313
|
+
width: @Button-height-small;
|
|
314
|
+
height: @Button-height-small;
|
|
283
315
|
border-radius: 50%;
|
|
284
316
|
}
|
|
285
317
|
}
|
|
286
318
|
|
|
287
|
-
&-
|
|
288
|
-
height:
|
|
319
|
+
&-mini {
|
|
320
|
+
height: @Button-height-mini;
|
|
321
|
+
font-size: @Button-text-size-mini;
|
|
289
322
|
line-height: 22px;
|
|
290
|
-
border-radius: @
|
|
323
|
+
border-radius: @Button-borderRadius-mini;
|
|
291
324
|
|
|
292
325
|
&.ant-btn-icon-only {
|
|
293
|
-
width:
|
|
294
|
-
height:
|
|
295
|
-
border-radius: @
|
|
326
|
+
width: @Button-height-mini;
|
|
327
|
+
height: @Button-height-mini;
|
|
328
|
+
border-radius: @Button-borderRadius-mini;
|
|
296
329
|
}
|
|
297
330
|
|
|
298
331
|
&.ant-btn-circle {
|
|
299
|
-
width:
|
|
300
|
-
height:
|
|
332
|
+
width: @Button-height-mini;
|
|
333
|
+
height: @Button-height-mini;
|
|
301
334
|
border-radius: 50%;
|
|
302
335
|
}
|
|
303
336
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@ald-prefix: ald;
|
|
2
|
+
@ald-iconfont-css-prefix: aldicon;
|
|
3
|
+
|
|
4
|
+
@Button-padding: 0 12px;
|
|
5
|
+
@Button-border-padding: 0 11px;
|
|
6
|
+
|
|
7
|
+
/** size控制 **/
|
|
8
|
+
@Button-height-large: 36px;
|
|
9
|
+
@Button-text-size-large: 16px;
|
|
10
|
+
@Button-borderRadius-large: 8px;
|
|
11
|
+
|
|
12
|
+
@Button-height-middle: 32px;
|
|
13
|
+
@Button-text-size-middle: 14px;
|
|
14
|
+
@Button-borderRadius-middle: 6px;
|
|
15
|
+
|
|
16
|
+
@Button-height-small: 28px;
|
|
17
|
+
@Button-text-size-small: 12px;
|
|
18
|
+
@Button-borderRadius-small: 4px;
|
|
19
|
+
|
|
20
|
+
@Button-height-mini: 24px;
|
|
21
|
+
@Button-text-size-mini: 12px;
|
|
22
|
+
@Button-borderRadius-mini: 4px;
|
|
23
|
+
|
|
24
|
+
/**** type控制 ****/
|
|
25
|
+
@Button-primary-bgColor: @B60;
|
|
26
|
+
@Button-primary-bgColor-active: @B50;
|
|
27
|
+
@Button-primary-bgColor-disable: @B90;
|
|
28
|
+
@Button-primary-color: @ND0;
|
|
29
|
+
@Button-primary-color-active: @ND0;
|
|
30
|
+
@Button-primary-color-disable: @ND0;
|
|
31
|
+
|
|
32
|
+
@Button-dangerous-bgColor: @SC60;
|
|
33
|
+
@Button-dangerous-bgColor-active: @SC50;
|
|
34
|
+
@Button-dangerous-bgColor-disable: @SC90;
|
|
35
|
+
@Button-dangerous-color: @ND0;
|
|
36
|
+
@Button-dangerous-color-active: @ND0;
|
|
37
|
+
@Button-dangerous-color-disable: @ND0;
|
|
38
|
+
|
|
39
|
+
@Button-secondary-bgColor: @BG97;
|
|
40
|
+
@Button-secondary-bgColor-active: @BG95;
|
|
41
|
+
@Button-secondary-bgColor-disable: @BG97;
|
|
42
|
+
@Button-secondary-color: @NL30;
|
|
43
|
+
@Button-secondary-color-active: @B60;
|
|
44
|
+
@Button-secondary-color-disable: @NL80;
|
|
45
|
+
@Button-secondary-borderColor: @NL90;
|
|
46
|
+
@Button-secondary-borderColor-active: @B60;
|
|
47
|
+
|
|
48
|
+
@Button-text-bgColor: @BG100;
|
|
49
|
+
@Button-text-bgColor-active: @NL97;
|
|
50
|
+
@Button-text-bgColor-disable: @BG100;
|
|
51
|
+
@Button-text-color: @NL30;
|
|
52
|
+
@Button-text-color-active: @B60;
|
|
53
|
+
@Button-text-color-disable: @NL80;
|
|
54
|
+
|
|
55
|
+
@Button-link-bgColor: @BG100;
|
|
56
|
+
@Button-link-bgColor-active: @BG100;
|
|
57
|
+
@Button-link-bgColor-disable: @BG100;
|
|
58
|
+
@Button-link-color: @B60;
|
|
59
|
+
@Button-link-color-active: @B50;
|
|
60
|
+
@Button-link-color-disable: @B90;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
.ald-checkbox {
|
|
4
4
|
.ant-checkbox-inner {
|
|
5
|
+
width: 16px;
|
|
6
|
+
height: 16px;
|
|
5
7
|
background-color: @BG97;
|
|
6
8
|
border-color: @NL60;
|
|
7
9
|
border-radius: 4px;
|
|
@@ -34,6 +36,12 @@
|
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
.ant-checkbox-disabled {
|
|
39
|
+
cursor: default;
|
|
40
|
+
|
|
41
|
+
& + span {
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
.ant-checkbox-inner {
|
|
38
46
|
background-color: @NL90;
|
|
39
47
|
border-color: @NL90;
|
|
@@ -72,8 +80,15 @@
|
|
|
72
80
|
border-color: @B60;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
|
-
.ant-checkbox:hover .ant-checkbox-inner,
|
|
76
83
|
.ant-checkbox-input:focus + .ant-checkbox-inner {
|
|
84
|
+
border-color: @NL60;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ant-checkbox:hover .ant-checkbox-inner {
|
|
77
88
|
border-color: @B60;
|
|
78
89
|
}
|
|
79
90
|
}
|
|
91
|
+
|
|
92
|
+
.ald-checkbox.ant-checkbox-wrapper-disabled {
|
|
93
|
+
cursor: default;
|
|
94
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ConfigProvider } from 'antd';
|
|
2
|
+
export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps, configConsumerProps, globalConfig, } from 'antd/lib/config-provider/';
|
|
2
3
|
export type { ConfigProviderProps } from 'antd/lib/config-provider';
|
|
3
4
|
export default ConfigProvider;
|
|
@@ -3,12 +3,38 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "ConfigConsumer", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _configProvider2.ConfigConsumer;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ConfigContext", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _configProvider2.ConfigContext;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "configConsumerProps", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _configProvider2.configConsumerProps;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
6
24
|
exports.default = void 0;
|
|
25
|
+
Object.defineProperty(exports, "globalConfig", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _configProvider2.globalConfig;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
7
31
|
|
|
8
32
|
require("antd/es/config-provider/style");
|
|
9
33
|
|
|
10
34
|
var _configProvider = _interopRequireDefault(require("antd/es/config-provider"));
|
|
11
35
|
|
|
36
|
+
var _configProvider2 = require("antd/lib/config-provider/");
|
|
37
|
+
|
|
12
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
39
|
|
|
14
40
|
var _default = _configProvider.default;
|
package/lib/Dropdown/Button.js
CHANGED
|
@@ -41,6 +41,6 @@ function DropdownButton(props) {
|
|
|
41
41
|
disabled: disabled,
|
|
42
42
|
onVisibleChange: onVisibleChange
|
|
43
43
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, Object.assign({}, buttonProps), children, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
44
|
-
type: "
|
|
44
|
+
type: "expand_more1"
|
|
45
45
|
})));
|
|
46
46
|
}
|