@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
|
@@ -3,22 +3,67 @@
|
|
|
3
3
|
@ald-prefix: ant;
|
|
4
4
|
@ald-iconfont-css-prefix: anticon;
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.ald-empty {
|
|
7
7
|
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
8
9
|
align-items: center;
|
|
9
10
|
justify-content: center;
|
|
10
|
-
height: 100%;
|
|
11
|
-
padding: 46px 0;
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
&.ald-empty-large {
|
|
13
|
+
.ald-empty-image {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
|
|
18
|
+
.ald-empty-img {
|
|
19
|
+
display: block;
|
|
20
|
+
width: 264px;
|
|
21
|
+
max-width: fit-content;
|
|
22
|
+
height: auto;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ald-empty-title {
|
|
27
|
+
margin-top: 12px;
|
|
28
|
+
color: @NL0;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
line-height: 24px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ald-empty-description {
|
|
34
|
+
margin-top: 16px;
|
|
35
|
+
color: @NL30;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
line-height: 20px;
|
|
38
|
+
}
|
|
15
39
|
}
|
|
16
40
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
41
|
+
&.ald-empty-small {
|
|
42
|
+
.ald-empty-image {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
|
|
47
|
+
.ald-empty-img {
|
|
48
|
+
display: block;
|
|
49
|
+
width: 48px;
|
|
50
|
+
max-width: fit-content;
|
|
51
|
+
height: auto;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ald-empty-title {
|
|
56
|
+
margin-top: 12px;
|
|
57
|
+
color: @NL50;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
line-height: 20px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ald-empty-description {
|
|
63
|
+
margin-top: 16px;
|
|
64
|
+
color: @NL50;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
line-height: 20px;
|
|
67
|
+
}
|
|
23
68
|
}
|
|
24
69
|
}
|
package/lib/Icon/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ declare const Icon: (props: IIconProps) => JSX.Element;
|
|
|
5
5
|
export default Icon;
|
|
6
6
|
export type { IconFontProps };
|
|
7
7
|
export { createFromIconfontCN };
|
|
8
|
-
export interface IIconProps extends IconFontProps {
|
|
8
|
+
export interface IIconProps extends Omit<IconFontProps, 'size'> {
|
|
9
9
|
className?: string;
|
|
10
|
-
size?: number;
|
|
10
|
+
size?: number | string;
|
|
11
11
|
style?: React.CSSProperties;
|
|
12
12
|
color?: string;
|
|
13
13
|
type: string;
|
package/lib/Icon/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _icons = require("@ant-design/icons");
|
|
17
17
|
|
|
18
|
+
var _excluded = ["className", "size", "style", "color"];
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -23,6 +25,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
23
25
|
|
|
24
26
|
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; }
|
|
25
27
|
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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
|
+
|
|
26
32
|
// @ts-ignore iconfont.js 没有ts类型定义
|
|
27
33
|
// import iconfontJs from './iconfont/iconfont';
|
|
28
34
|
var iconfontJs = require('./iconfont/iconfont');
|
|
@@ -38,7 +44,9 @@ var Icon = function Icon(props) {
|
|
|
38
44
|
size = _props$size === void 0 ? DEFAULT_SIZE : _props$size,
|
|
39
45
|
_props$style = props.style,
|
|
40
46
|
style = _props$style === void 0 ? {} : _props$style,
|
|
41
|
-
color = props.color
|
|
47
|
+
color = props.color,
|
|
48
|
+
restProps = _objectWithoutProperties(props, _excluded); // 添加一个前缀
|
|
49
|
+
|
|
42
50
|
|
|
43
51
|
var prefix = '';
|
|
44
52
|
var type = "".concat(prefix).concat(props.type);
|
|
@@ -51,7 +59,7 @@ var Icon = function Icon(props) {
|
|
|
51
59
|
width: size
|
|
52
60
|
}, style);
|
|
53
61
|
|
|
54
|
-
return /*#__PURE__*/_react.default.createElement(IconFont, Object.assign({},
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(IconFont, Object.assign({}, restProps, {
|
|
55
63
|
style: finalStyle,
|
|
56
64
|
type: type,
|
|
57
65
|
className: className
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GroupProps } from 'antd/lib/input';
|
|
3
|
-
|
|
3
|
+
import { TSize } from '../Input';
|
|
4
|
+
export interface IGroupProps extends Omit<GroupProps, 'size'> {
|
|
4
5
|
/**
|
|
5
6
|
* @description 是否用紧凑模式
|
|
6
7
|
* @default false
|
|
@@ -8,8 +9,9 @@ export interface IGroupProps extends GroupProps {
|
|
|
8
9
|
compact?: boolean;
|
|
9
10
|
/**
|
|
10
11
|
* @description Input.Group 中所有的 Input 的大小,可选 large default small
|
|
12
|
+
* @type 'mini'|'small' | 'default' | 'large';
|
|
11
13
|
* @default default
|
|
12
14
|
*/
|
|
13
|
-
size?:
|
|
15
|
+
size?: TSize;
|
|
14
16
|
}
|
|
15
17
|
export default function Group(props: IGroupProps): JSX.Element;
|
|
@@ -9,10 +9,33 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _input = _interopRequireDefault(require("antd/lib/input"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _excluded = ["size"];
|
|
15
|
+
|
|
12
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
17
|
|
|
18
|
+
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; }
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
14
22
|
var AntdGroup = _input.default.Group;
|
|
15
23
|
|
|
16
24
|
function Group(props) {
|
|
17
|
-
|
|
25
|
+
var _props$size = props.size,
|
|
26
|
+
size = _props$size === void 0 ? 'default' : _props$size,
|
|
27
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
28
|
+
|
|
29
|
+
var getClassName = function getClassName(groupSize) {
|
|
30
|
+
return (0, _classnames.default)('ald-input-group', {
|
|
31
|
+
'ald-input-group-large': groupSize === 'large',
|
|
32
|
+
'ald-input-group-small': groupSize === 'small',
|
|
33
|
+
'ald-input-group-mini': groupSize === 'mini',
|
|
34
|
+
'ald-input-group-middle': !['mini', 'small', 'large'].includes(groupSize)
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(AntdGroup, Object.assign({
|
|
39
|
+
className: getClassName(size)
|
|
40
|
+
}, rest));
|
|
18
41
|
}
|
|
@@ -7,7 +7,7 @@ interface IShowCountProps {
|
|
|
7
7
|
maxLength?: number;
|
|
8
8
|
}) => string;
|
|
9
9
|
}
|
|
10
|
-
export declare type TSize = 'small' | 'default' | 'large';
|
|
10
|
+
export declare type TSize = 'mini' | 'small' | 'default' | 'large';
|
|
11
11
|
export type { InputRef };
|
|
12
12
|
declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
13
|
export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange'> {
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _Input = _interopRequireDefault(require("antd/lib/input/Input"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _excluded = ["size"];
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -30,11 +32,22 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
30
32
|
return 'middle';
|
|
31
33
|
};
|
|
32
34
|
|
|
35
|
+
var getClassName = function getClassName(inputSize) {
|
|
36
|
+
return (0, _classnames.default)('ald-input', {
|
|
37
|
+
'ald-input-small': inputSize === 'small',
|
|
38
|
+
'ald-input-large': inputSize === 'large',
|
|
39
|
+
'ald-input-mini': inputSize === 'mini',
|
|
40
|
+
'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize),
|
|
41
|
+
'ald-input-showCount': props.showCount
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
33
45
|
return /*#__PURE__*/_react.default.createElement(_Input.default, Object.assign({}, rest, {
|
|
34
46
|
// @ts-ignore
|
|
35
47
|
ref: ref,
|
|
36
48
|
size: getInputSize(size),
|
|
37
49
|
bordered: true,
|
|
50
|
+
className: getClassName(size),
|
|
38
51
|
addonAfter: null,
|
|
39
52
|
addonBefore: null,
|
|
40
53
|
suffix: null
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PasswordProps } from 'antd/lib/input/Password';
|
|
3
|
-
|
|
3
|
+
import { TSize } from '../Input';
|
|
4
|
+
export interface IPasswordProps extends Omit<PasswordProps, 'size'> {
|
|
4
5
|
/**
|
|
5
6
|
* @description 是否显示切换按钮
|
|
6
7
|
* @default true
|
|
7
8
|
*/
|
|
8
9
|
visibilityToggle?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @description 尺寸大学
|
|
12
|
+
* @default default
|
|
13
|
+
*/
|
|
14
|
+
size?: TSize;
|
|
9
15
|
}
|
|
10
16
|
declare const _default: React.ForwardRefExoticComponent<IPasswordProps & React.RefAttributes<any>>;
|
|
11
17
|
export default _default;
|
|
@@ -11,16 +11,39 @@ var _Icon = _interopRequireDefault(require("../../../Icon"));
|
|
|
11
11
|
|
|
12
12
|
var _Password = _interopRequireDefault(require("antd/lib/input/Password"));
|
|
13
13
|
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["size"];
|
|
17
|
+
|
|
14
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
19
|
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
16
24
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
25
|
var _default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
18
|
-
|
|
26
|
+
var _props$size = props.size,
|
|
27
|
+
size = _props$size === void 0 ? 'default' : _props$size,
|
|
28
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
29
|
+
|
|
30
|
+
var getClassName = function getClassName(inputSize) {
|
|
31
|
+
return (0, _classnames.default)('ald-input', {
|
|
32
|
+
'ald-input-small': inputSize === 'small',
|
|
33
|
+
'ald-input-large': inputSize === 'large',
|
|
34
|
+
'ald-input-mini': inputSize === 'mini',
|
|
35
|
+
'ald-input-middle': !['small', 'mini', 'large'].includes(inputSize)
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_Password.default, Object.assign({}, restProps, {
|
|
19
40
|
ref: ref,
|
|
41
|
+
className: getClassName(size),
|
|
20
42
|
iconRender: function iconRender(visible) {
|
|
21
43
|
var type = visible ? 'eye' : 'eye_off';
|
|
22
44
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
23
|
-
type: type
|
|
45
|
+
type: type,
|
|
46
|
+
size: "1em"
|
|
24
47
|
});
|
|
25
48
|
}
|
|
26
49
|
}));
|
|
@@ -1,25 +1,63 @@
|
|
|
1
|
+
/* stylelint-disable no-descending-specificity */
|
|
1
2
|
@import '../../style/index.less';
|
|
2
3
|
@import '../../Icon/index.less';
|
|
3
4
|
|
|
4
5
|
@ald-prefix: ant;
|
|
5
6
|
|
|
6
7
|
@ald-iconfont-css-prefix: anticon;
|
|
8
|
+
// size===large
|
|
9
|
+
@Input-height-large: 36px;
|
|
10
|
+
@Input-padding-large: 5px 11px;
|
|
11
|
+
@Input-fontSize-large: 16px;
|
|
12
|
+
@Input-borderRadius-large: 8px;
|
|
13
|
+
@input-prefix-marginRight-large: 8px;
|
|
14
|
+
// size===middle
|
|
15
|
+
@Input-height-middle: 32px;
|
|
16
|
+
@Input-padding-middle: 5px 11px;
|
|
17
|
+
@Input-fontSize-middle: 14px;
|
|
18
|
+
@Input-borderRadius-middle: 6px;
|
|
19
|
+
@input-prefix-marginRight-middle: 8px;
|
|
20
|
+
// size===small
|
|
21
|
+
@Input-height-small: 28px;
|
|
22
|
+
@Input-padding-small: 5px 7px;
|
|
23
|
+
@Input-fontSize-small: 12px;
|
|
24
|
+
@Input-borderRadius-small: 4px;
|
|
25
|
+
@input-prefix-marginRight-small: 4px;
|
|
26
|
+
// size===mini
|
|
27
|
+
@Input-height-mini: 24px;
|
|
28
|
+
@Input-padding-mini: 3px 7px;
|
|
29
|
+
@Input-fontSize-mini: 12px;
|
|
30
|
+
@Input-borderRadius-mini: 4px;
|
|
31
|
+
@input-prefix-marginRight-mini: 4px;
|
|
32
|
+
//custom status
|
|
33
|
+
@Input-borderColor: @NL90;
|
|
34
|
+
@Input-fontColor: @NL0;
|
|
35
|
+
@Input-placeholderColor: @NL80;
|
|
36
|
+
@Input-prefix-color: @NL50;
|
|
37
|
+
@Input-bgColor: @BG97;
|
|
38
|
+
// active status
|
|
39
|
+
@Input-active-borderColor: @B60;
|
|
40
|
+
@Input-boxShadow-active: 0 0 0 0.5px @B60;
|
|
41
|
+
// disabled status
|
|
42
|
+
@Input-disabled-borderColor: @NL90;
|
|
43
|
+
@Input-disabled-bgColor: @BG95;
|
|
44
|
+
@Input-disabled-fontColor: @NL50;
|
|
7
45
|
|
|
8
|
-
.ant-input {
|
|
9
|
-
height: 28px;
|
|
46
|
+
.ant-input.ald-input {
|
|
10
47
|
color: @NL0;
|
|
11
|
-
font-
|
|
12
|
-
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
background-color: @Input-bgColor;
|
|
50
|
+
border-color: @Input-borderColor;
|
|
51
|
+
border-radius: @Input-borderRadius-middle;
|
|
52
|
+
caret-color: @B60;
|
|
13
53
|
|
|
14
54
|
&::placeholder {
|
|
15
|
-
color: @
|
|
55
|
+
color: @Input-placeholderColor;
|
|
16
56
|
}
|
|
17
57
|
|
|
18
58
|
&-prefix {
|
|
19
|
-
color: @
|
|
20
|
-
font-
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
line-height: 16px;
|
|
59
|
+
color: @Input-prefix-color;
|
|
60
|
+
font-size: inherit;
|
|
23
61
|
}
|
|
24
62
|
|
|
25
63
|
&-suffix {
|
|
@@ -27,36 +65,28 @@
|
|
|
27
65
|
}
|
|
28
66
|
|
|
29
67
|
&:focus,
|
|
68
|
+
&:hover,
|
|
30
69
|
&-focused {
|
|
31
|
-
border-color: @
|
|
32
|
-
box-shadow:
|
|
70
|
+
border-color: @Input-active-borderColor;
|
|
71
|
+
box-shadow: @Input-boxShadow-active;
|
|
33
72
|
}
|
|
34
73
|
|
|
35
|
-
&[disabled] {
|
|
36
|
-
color: @
|
|
37
|
-
background-color: @
|
|
38
|
-
border-color: @
|
|
74
|
+
&[disabled].ald-input {
|
|
75
|
+
color: @Input-disabled-fontColor;
|
|
76
|
+
background-color: @Input-disabled-bgColor;
|
|
77
|
+
border-color: @Input-disabled-borderColor;
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
cursor: default;
|
|
39
80
|
|
|
40
81
|
&::placeholder {
|
|
41
|
-
color: @
|
|
82
|
+
color: @Input-placeholderColor;
|
|
42
83
|
}
|
|
43
84
|
}
|
|
44
85
|
|
|
45
|
-
&-sm {
|
|
46
|
-
height: 24px;
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
border-radius: @ald-border-radius-sm;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-lg {
|
|
52
|
-
height: 32px;
|
|
53
|
-
font-size: 14px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
86
|
&-affix-wrapper {
|
|
57
|
-
height: 28px;
|
|
58
|
-
padding: 0 12px;
|
|
59
|
-
border-radius: @
|
|
87
|
+
// height: 28px;
|
|
88
|
+
// padding: 0 12px;
|
|
89
|
+
// border-radius: @border-radius-base;
|
|
60
90
|
|
|
61
91
|
&-hover,
|
|
62
92
|
&-focused,
|
|
@@ -67,31 +97,236 @@
|
|
|
67
97
|
.ant-input {
|
|
68
98
|
height: 100%;
|
|
69
99
|
border-radius: 0;
|
|
70
|
-
caret-color: @B40;
|
|
71
100
|
}
|
|
72
101
|
}
|
|
102
|
+
|
|
103
|
+
.ant-input {
|
|
104
|
+
font-size: inherit;
|
|
105
|
+
}
|
|
73
106
|
}
|
|
74
107
|
|
|
75
108
|
.ant-input-affix-wrapper.ant-input-affix-wrapper {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
109
|
+
background-color: @Input-bgColor;
|
|
110
|
+
border-color: @Input-borderColor;
|
|
111
|
+
|
|
112
|
+
&:hover,
|
|
113
|
+
&:focus,
|
|
114
|
+
&-focused {
|
|
115
|
+
border-color: @Input-active-borderColor;
|
|
116
|
+
box-shadow: @Input-boxShadow-active;
|
|
80
117
|
}
|
|
81
118
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
border-radius:
|
|
119
|
+
.ant-input {
|
|
120
|
+
color: @NL0;
|
|
121
|
+
background-color: @Input-bgColor;
|
|
122
|
+
border-radius: 0;
|
|
123
|
+
caret-color: @B60;
|
|
86
124
|
|
|
87
|
-
|
|
88
|
-
|
|
125
|
+
&::placeholder {
|
|
126
|
+
color: @Input-placeholderColor;
|
|
89
127
|
}
|
|
90
128
|
}
|
|
91
129
|
|
|
130
|
+
.ald-input {
|
|
131
|
+
height: 1.5715em; //和行高一致
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ald-input-showCount {
|
|
135
|
+
border: none;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ant-input-prefix {
|
|
140
|
+
color: @NL50;
|
|
141
|
+
}
|
|
142
|
+
|
|
92
143
|
.ant-input-suffix {
|
|
93
|
-
.
|
|
94
|
-
|
|
144
|
+
.ant-input-clear-icon {
|
|
145
|
+
color: @NL50;
|
|
146
|
+
font-size: inherit;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ant-input-password-icon {
|
|
150
|
+
color: @NL50;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ant-input-affix-wrapper-focused {
|
|
156
|
+
&.ant-input-password {
|
|
157
|
+
border-color: @Input-active-borderColor;
|
|
158
|
+
box-shadow: @Input-boxShadow-active;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:hover {
|
|
162
|
+
border-color: @Input-active-borderColor;
|
|
163
|
+
box-shadow: @Input-boxShadow-active;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ald-input {
|
|
168
|
+
&.ald-input-mini {
|
|
169
|
+
height: @Input-height-mini;
|
|
170
|
+
padding: @Input-padding-mini;
|
|
171
|
+
font-size: @Input-fontSize-mini;
|
|
172
|
+
border-radius: @Input-borderRadius-mini;
|
|
173
|
+
|
|
174
|
+
.ant-input-prefix {
|
|
175
|
+
margin-right: @input-prefix-marginRight-mini;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.ald-input-small {
|
|
180
|
+
height: @Input-height-small;
|
|
181
|
+
padding: @Input-padding-small;
|
|
182
|
+
font-size: @Input-fontSize-small;
|
|
183
|
+
border-radius: @Input-borderRadius-small;
|
|
184
|
+
|
|
185
|
+
.ant-input-prefix {
|
|
186
|
+
margin-right: @input-prefix-marginRight-small;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.ald-input-middle {
|
|
191
|
+
height: @Input-height-middle;
|
|
192
|
+
padding: @Input-padding-middle;
|
|
193
|
+
font-size: @Input-fontSize-middle;
|
|
194
|
+
border-radius: @Input-borderRadius-middle;
|
|
195
|
+
|
|
196
|
+
.ant-input-prefix {
|
|
197
|
+
margin-right: @input-prefix-marginRight-middle;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&.ald-input-large {
|
|
202
|
+
height: @Input-height-large;
|
|
203
|
+
padding: @Input-padding-large;
|
|
204
|
+
font-size: @Input-fontSize-large;
|
|
205
|
+
border-radius: @Input-borderRadius-large;
|
|
206
|
+
|
|
207
|
+
.ant-input-prefix {
|
|
208
|
+
margin-right: @input-prefix-marginRight-large;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ald-input-group {
|
|
214
|
+
.ald-input {
|
|
215
|
+
margin: 0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ald-input-group-large {
|
|
220
|
+
.ald-input {
|
|
221
|
+
height: @Input-height-large;
|
|
222
|
+
padding: @Input-padding-large;
|
|
223
|
+
font-size: @Input-fontSize-large;
|
|
224
|
+
|
|
225
|
+
&.ant-input {
|
|
226
|
+
border-radius: @Input-borderRadius-large;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ant-input-prefix {
|
|
230
|
+
margin-right: @input-prefix-marginRight-large;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.ant-input-group-compact {
|
|
235
|
+
.ald-input {
|
|
236
|
+
&:first-of-type {
|
|
237
|
+
border-radius: @Input-borderRadius-large 0 0 @Input-borderRadius-large;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&:last-of-type {
|
|
241
|
+
border-radius: 0 @Input-borderRadius-large @Input-borderRadius-large 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.ald-input-group-middle {
|
|
248
|
+
.ald-input {
|
|
249
|
+
height: @Input-height-middle;
|
|
250
|
+
padding: @Input-padding-middle;
|
|
251
|
+
font-size: @Input-fontSize-middle;
|
|
252
|
+
border-radius: @Input-borderRadius-middle;
|
|
253
|
+
|
|
254
|
+
&.ant-input {
|
|
255
|
+
border-radius: @Input-borderRadius-middle;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.ant-input-prefix {
|
|
259
|
+
margin-right: @input-prefix-marginRight-middle;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&.ant-input-group-compact {
|
|
264
|
+
.ald-input {
|
|
265
|
+
&:first-of-type {
|
|
266
|
+
border-radius: @Input-borderRadius-middle 0 0 @Input-borderRadius-middle;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&:last-of-type {
|
|
270
|
+
border-radius: 0 @Input-borderRadius-middle @Input-borderRadius-middle 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.ald-input-group-small {
|
|
277
|
+
.ald-input {
|
|
278
|
+
height: @Input-height-small;
|
|
279
|
+
padding: @Input-padding-small;
|
|
280
|
+
font-size: @Input-fontSize-small;
|
|
281
|
+
border-radius: @Input-borderRadius-small;
|
|
282
|
+
|
|
283
|
+
&.ant-input {
|
|
284
|
+
border-radius: @Input-borderRadius-small;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.ant-input-prefix {
|
|
288
|
+
margin-right: @input-prefix-marginRight-small;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&.ant-input-group-compact {
|
|
293
|
+
.ald-input {
|
|
294
|
+
&:first-of-type {
|
|
295
|
+
border-radius: @Input-borderRadius-small 0 0 @Input-borderRadius-small;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&:last-of-type {
|
|
299
|
+
border-radius: 0 @Input-borderRadius-small @Input-borderRadius-small 0;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.ald-input-group-mini {
|
|
306
|
+
.ald-input {
|
|
307
|
+
height: @Input-height-mini;
|
|
308
|
+
padding: @Input-padding-mini;
|
|
309
|
+
font-size: @Input-fontSize-mini;
|
|
310
|
+
border-radius: @Input-borderRadius-mini;
|
|
311
|
+
|
|
312
|
+
&.ant-input {
|
|
313
|
+
border-radius: @Input-borderRadius-mini;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ant-input-prefix {
|
|
317
|
+
margin-right: @input-prefix-marginRight-mini;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.ant-input-group-compact {
|
|
322
|
+
.ald-input {
|
|
323
|
+
&:first-of-type {
|
|
324
|
+
border-radius: @Input-borderRadius-mini 0 0 @Input-borderRadius-mini;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&:last-of-type {
|
|
328
|
+
border-radius: 0 @Input-borderRadius-mini @Input-borderRadius-mini 0;
|
|
329
|
+
}
|
|
95
330
|
}
|
|
96
331
|
}
|
|
97
332
|
}
|