@aloudata/aloudata-design 0.1.0-beta1 → 0.2.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/README.md +22 -13
- package/es/Button/demo/Icon/index.d.ts +3 -0
- package/es/Button/demo/Icon/index.js +67 -0
- package/{src → es}/Button/demo/Icon/index.less +0 -0
- package/es/Button/demo/basic/index.d.ts +4 -0
- package/es/Button/demo/basic/index.js +57 -0
- package/{src → es}/Button/demo/basic/index.less +0 -1
- package/es/Button/demo/disable/index.d.ts +3 -0
- package/es/Button/demo/disable/index.js +23 -0
- package/{src → es}/Button/demo/disable/index.less +0 -0
- package/es/Button/demo/href/index.d.ts +2 -0
- package/es/Button/demo/href/index.js +17 -0
- package/es/Button/demo/loading/index.d.ts +3 -0
- package/es/Button/demo/loading/index.js +37 -0
- package/{src → es}/Button/demo/loading/index.less +0 -0
- package/es/Button/index.d.ts +50 -0
- package/es/Button/index.js +108 -0
- package/es/Button/style/index.d.ts +2 -0
- package/es/Button/style/index.js +2 -0
- package/{src → es}/Button/style/index.less +5 -5
- package/es/Dropdown/Button.d.ts +69 -0
- package/es/Dropdown/Button.js +39 -0
- package/es/Dropdown/demo/basic/index.d.ts +4 -0
- package/es/Dropdown/demo/basic/index.js +18 -0
- package/es/Dropdown/demo/button/index.d.ts +3 -0
- package/es/Dropdown/demo/button/index.js +159 -0
- package/{src → es}/Dropdown/demo/button/index.less +0 -0
- package/es/Dropdown/demo/placement/index.d.ts +2 -0
- package/es/Dropdown/demo/placement/index.js +40 -0
- package/es/Dropdown/demo/subMenu/index.d.ts +2 -0
- package/es/Dropdown/demo/subMenu/index.js +42 -0
- package/es/Dropdown/demo/trigger/index.d.ts +2 -0
- package/es/Dropdown/demo/trigger/index.js +17 -0
- package/es/Dropdown/index.d.ts +59 -0
- package/es/Dropdown/index.js +33 -0
- package/es/Dropdown/style/index.d.ts +2 -0
- package/es/Dropdown/style/index.js +2 -0
- package/{src → es}/Dropdown/style/index.less +0 -0
- package/es/Empty/index.d.ts +8 -0
- package/es/Empty/index.js +57 -0
- package/es/Empty/style/index.d.ts +1 -0
- package/es/Empty/style/index.js +1 -0
- package/es/Empty/style/index.less +23 -0
- package/{src → es}/Icon/iconfont/demo.css +0 -0
- package/{src → es}/Icon/iconfont/demo_index.html +49 -3
- package/es/Icon/iconfont/iconfont.css +101 -0
- package/es/Icon/iconfont/iconfont.js +46 -0
- package/{src → es}/Icon/iconfont/iconfont.json +14 -0
- package/es/Icon/iconfont/iconfont.ttf +0 -0
- package/es/Icon/iconfont/iconfont.woff +0 -0
- package/es/Icon/iconfont/iconfont.woff2 +0 -0
- package/es/Icon/index.d.ts +11 -0
- package/es/Icon/index.js +42 -0
- package/{src → es}/Icon/index.less +3 -3
- package/es/Input/components/Group/index.d.ts +14 -0
- package/es/Input/components/Group/index.js +12 -0
- package/es/Input/components/Password/index.d.ts +9 -0
- package/es/Input/components/Password/index.js +20 -0
- package/es/Input/components/TextArea/index.d.ts +52 -0
- package/es/Input/components/TextArea/index.js +14 -0
- package/es/Input/demo/allowClear/index.d.ts +3 -0
- package/es/Input/demo/allowClear/index.js +11 -0
- package/{src → es}/Input/demo/allowClear/index.less +0 -0
- package/es/Input/demo/basic/index.d.ts +4 -0
- package/es/Input/demo/basic/index.js +65 -0
- package/{src → es}/Input/demo/basic/index.less +1 -1
- package/es/Input/demo/gourp/index.d.ts +2 -0
- package/es/Input/demo/gourp/index.js +67 -0
- package/es/Input/demo/password/index.d.ts +3 -0
- package/es/Input/demo/password/index.js +21 -0
- package/{src → es}/Input/demo/password/index.less +0 -0
- package/es/Input/demo/prefix/index.d.ts +3 -0
- package/es/Input/demo/prefix/index.js +17 -0
- package/{src → es}/Input/demo/prefix/index.less +0 -0
- package/es/Input/demo/showCount/index.d.ts +3 -0
- package/es/Input/demo/showCount/index.js +17 -0
- package/{src → es}/Input/demo/showCount/index.less +0 -0
- package/es/Input/demo/textArea/autoSize.d.ts +2 -0
- package/es/Input/demo/textArea/autoSize.js +50 -0
- package/es/Input/index.d.ts +65 -0
- package/es/Input/index.js +46 -0
- package/es/Input/style/index.d.ts +2 -0
- package/es/Input/style/index.js +2 -0
- package/{src → es}/Input/style/index.less +4 -1
- package/es/Menu/Divider.d.ts +4 -0
- package/es/Menu/Divider.js +15 -0
- package/es/Menu/MenuItem.d.ts +17 -0
- package/es/Menu/MenuItem.js +15 -0
- package/es/Menu/SubMenu.d.ts +26 -0
- package/es/Menu/SubMenu.js +29 -0
- package/es/Menu/index.d.ts +20 -0
- package/es/Menu/index.js +31 -0
- package/es/Menu/style/index.d.ts +2 -0
- package/es/Menu/style/index.js +2 -0
- package/{src → es}/Menu/style/index.less +4 -0
- package/es/Navigator/components/Menu/index.d.ts +19 -0
- package/es/Navigator/components/Menu/index.js +187 -0
- package/es/Navigator/demo/basic/index.d.ts +4 -0
- package/es/Navigator/demo/basic/index.js +45 -0
- package/es/Navigator/demo/basic/index.less +3 -0
- package/es/Navigator/demo/example/index.d.ts +4 -0
- package/es/Navigator/demo/example/index.js +153 -0
- package/es/Navigator/demo/example/index.less +10 -0
- package/es/Navigator/demo/logo.png +0 -0
- package/es/Navigator/demo/menuWithFooter/index.d.ts +4 -0
- package/es/Navigator/demo/menuWithFooter/index.js +73 -0
- package/es/Navigator/demo/menuWithFooter/index.less +3 -0
- package/es/Navigator/demo/subMenu/index.d.ts +4 -0
- package/es/Navigator/demo/subMenu/index.js +71 -0
- package/es/Navigator/demo/subMenu/index.less +3 -0
- package/es/Navigator/index.d.ts +41 -0
- package/es/Navigator/index.js +45 -0
- package/es/Navigator/style/index.d.ts +2 -0
- package/es/Navigator/style/index.js +2 -0
- package/es/Navigator/style/index.less +224 -0
- package/es/Select/BaseSelect.d.ts +5 -0
- package/es/Select/BaseSelect.js +400 -0
- package/{src/Select/OptionsList/OptGroup.tsx → es/Select/OptionsList/OptGroup.d.ts} +2 -4
- package/es/Select/OptionsList/OptGroup.js +6 -0
- package/es/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
- package/es/Select/OptionsList/OptionItem/RenderGroup.js +16 -0
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +44 -0
- package/es/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
- package/es/Select/OptionsList/OptionItem/RenderOption.js +79 -0
- package/es/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
- package/es/Select/OptionsList/OptionItem/RenderTooltip.js +25 -0
- package/es/Select/OptionsList/OptionItem.d.ts +4 -0
- package/es/Select/OptionsList/OptionItem.js +4 -0
- package/es/Select/OptionsList/Options.d.ts +7 -0
- package/es/Select/OptionsList/Options.js +6 -0
- package/es/Select/OptionsList/index.d.ts +4 -0
- package/es/Select/OptionsList/index.js +187 -0
- package/es/Select/Selector/index.d.ts +4 -0
- package/es/Select/Selector/index.js +252 -0
- package/es/Select/VirtualList.d.ts +5 -0
- package/es/Select/VirtualList.js +29 -0
- package/es/Select/demo/disabled/index.d.ts +2 -0
- package/es/Select/demo/disabled/index.js +50 -0
- package/es/Select/demo/multiple/index.d.ts +2 -0
- package/es/Select/demo/multiple/index.js +140 -0
- package/es/Select/demo/options/index.d.ts +2 -0
- package/es/Select/demo/options/index.js +55 -0
- package/es/Select/demo/single/index.d.ts +3 -0
- package/es/Select/demo/single/index.js +89 -0
- package/es/Select/demo/single/index.less +5 -0
- package/es/Select/hooks/useCacheOption.d.ts +9 -0
- package/es/Select/hooks/useCacheOption.js +107 -0
- package/es/Select/index.d.ts +12 -0
- package/es/Select/index.js +9 -0
- package/es/Select/interface.d.ts +227 -0
- package/es/Select/interface.js +1 -0
- package/es/Select/style/index.d.ts +2 -0
- package/es/Select/style/index.js +2 -0
- package/{src → es}/Select/style/index.less +3 -10
- package/es/Select/utils.d.ts +21 -0
- package/es/Select/utils.js +193 -0
- package/es/Table/demo/basic/createData.d.ts +9 -0
- package/es/Table/demo/basic/createData.js +18 -0
- package/es/Table/demo/basic/index.d.ts +2 -0
- package/es/Table/demo/basic/index.js +64 -0
- package/es/Table/demo/editCell/index.d.ts +2 -0
- package/es/Table/demo/editCell/index.js +39 -0
- package/es/Table/demo/renderHeaderRight/index.d.ts +2 -0
- package/es/Table/demo/renderHeaderRight/index.js +37 -0
- package/es/Table/demo/rowSelect/index.d.ts +2 -0
- package/es/Table/demo/rowSelect/index.js +40 -0
- package/es/Table/demo/virtualList/index.d.ts +2 -0
- package/es/Table/demo/virtualList/index.js +88 -0
- package/es/Table/index.d.ts +5 -0
- package/es/Table/index.js +201 -0
- package/es/Table/interface.d.ts +14 -0
- package/es/Table/interface.js +1 -0
- package/es/Table/style/index.d.ts +2 -0
- package/es/Table/style/index.js +2 -0
- package/es/Table/style/index.less +111 -0
- package/es/Tabs/TabPane.d.ts +21 -0
- package/es/Tabs/TabPane.js +12 -0
- package/es/Tabs/demo/adaptHeight/index.d.ts +3 -0
- package/es/Tabs/demo/adaptHeight/index.js +19 -0
- package/{src → es}/Tabs/demo/adaptHeight/index.less +0 -0
- package/es/Tabs/demo/basic/index.d.ts +4 -0
- package/es/Tabs/demo/basic/index.js +44 -0
- package/{src → es}/Tabs/demo/basic/index.less +0 -0
- package/es/Tabs/demo/horizontalScroll/index.d.ts +3 -0
- package/es/Tabs/demo/horizontalScroll/index.js +30 -0
- package/{src → es}/Tabs/demo/horizontalScroll/index.less +0 -0
- package/es/Tabs/index.d.ts +41 -0
- package/es/Tabs/index.js +42 -0
- package/es/Tabs/style/index.d.ts +2 -0
- package/es/Tabs/style/index.js +2 -0
- package/{src → es}/Tabs/style/index.less +0 -0
- package/es/Tooltip/demo/basic/index.d.ts +2 -0
- package/es/Tooltip/demo/basic/index.js +7 -0
- package/es/Tooltip/demo/overflow/index.d.ts +2 -0
- package/es/Tooltip/demo/overflow/index.js +7 -0
- package/es/Tooltip/demo/placement/index.d.ts +6 -0
- package/es/Tooltip/demo/placement/index.js +70 -0
- package/{src → es}/Tooltip/demo/placement/index.less +0 -0
- package/es/Tooltip/demo/trigger/index.d.ts +3 -0
- package/es/Tooltip/demo/trigger/index.js +20 -0
- package/{src → es}/Tooltip/demo/trigger/index.less +0 -0
- package/es/Tooltip/index.d.ts +64 -0
- package/es/Tooltip/index.js +33 -0
- package/es/Tooltip/style/index.d.ts +2 -0
- package/es/Tooltip/style/index.js +2 -0
- package/{src → es}/Tooltip/style/index.less +0 -0
- package/es/_utils/hooks/useControlledState.d.ts +2 -0
- package/es/_utils/hooks/useControlledState.js +54 -0
- package/es/_utils/hooks/usePrefixCls.d.ts +2 -0
- package/es/_utils/hooks/usePrefixCls.js +14 -0
- package/es/index.d.ts +10 -0
- package/{src/index.ts → es/index.js} +3 -1
- package/es/style/index.d.ts +2 -0
- package/{src/style/index.ts → es/style/index.js} +0 -0
- package/{src → es}/style/index.less +0 -0
- package/{src → es}/style/mixins/index.less +0 -0
- package/{src → es}/style/themes/default/index.less +1 -1
- package/{lib/style/themes/default/themeColor.less → es/style/themes/default/themeColor.module.less} +0 -0
- package/es/style/themes/default/themeColor.module.less.d.ts +108 -0
- package/lib/Button/demo/basic/index.less +0 -1
- package/lib/Button/index.js +2 -2
- package/lib/Button/style/index.less +5 -5
- package/lib/Dropdown/demo/button/index.js +1 -1
- package/lib/Empty/index.d.ts +8 -0
- package/lib/Empty/index.js +71 -0
- package/lib/Empty/style/index.d.ts +1 -0
- package/lib/Empty/style/index.js +3 -0
- package/lib/Empty/style/index.less +23 -0
- package/lib/Icon/iconfont/demo_index.html +49 -3
- package/lib/Icon/iconfont/iconfont.css +11 -3
- package/lib/Icon/iconfont/iconfont.js +1 -1
- package/lib/Icon/iconfont/iconfont.json +14 -0
- package/lib/Icon/iconfont/iconfont.ttf +0 -0
- package/lib/Icon/iconfont/iconfont.woff +0 -0
- package/lib/Icon/iconfont/iconfont.woff2 +0 -0
- package/lib/Icon/index.less +3 -3
- package/lib/Input/components/Group/index.d.ts +0 -1
- package/lib/Input/components/Password/index.d.ts +0 -1
- package/lib/Input/demo/basic/index.less +1 -1
- package/lib/Input/style/index.less +4 -1
- package/lib/Menu/Divider.d.ts +0 -1
- package/lib/Menu/style/index.less +4 -0
- package/lib/Navigator/components/Menu/index.d.ts +19 -0
- package/lib/Navigator/components/Menu/index.js +205 -0
- package/lib/Navigator/demo/basic/index.d.ts +4 -0
- package/lib/Navigator/demo/basic/index.js +62 -0
- package/lib/Navigator/demo/basic/index.less +3 -0
- package/lib/Navigator/demo/example/index.d.ts +4 -0
- package/lib/Navigator/demo/example/index.js +179 -0
- package/lib/Navigator/demo/example/index.less +10 -0
- package/lib/Navigator/demo/logo.png +0 -0
- package/lib/Navigator/demo/menuWithFooter/index.d.ts +4 -0
- package/lib/Navigator/demo/menuWithFooter/index.js +92 -0
- package/lib/Navigator/demo/menuWithFooter/index.less +3 -0
- package/lib/Navigator/demo/subMenu/index.d.ts +4 -0
- package/lib/Navigator/demo/subMenu/index.js +88 -0
- package/lib/Navigator/demo/subMenu/index.less +3 -0
- package/lib/Navigator/index.d.ts +41 -0
- package/lib/Navigator/index.js +64 -0
- package/lib/Navigator/style/index.d.ts +2 -0
- package/lib/Navigator/style/index.js +5 -0
- package/lib/Navigator/style/index.less +224 -0
- package/lib/Select/OptionsList/OptionItem/RenderGroup.d.ts +9 -0
- package/lib/Select/OptionsList/OptionItem/RenderGroup.js +27 -0
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +8 -0
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +58 -0
- package/lib/Select/OptionsList/OptionItem/RenderOption.d.ts +16 -0
- package/lib/Select/OptionsList/OptionItem/RenderOption.js +94 -0
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.d.ts +8 -0
- package/lib/Select/OptionsList/OptionItem/RenderTooltip.js +37 -0
- package/lib/Select/OptionsList/OptionItem.d.ts +4 -35
- package/lib/Select/OptionsList/OptionItem.js +26 -172
- package/lib/Select/OptionsList/Options.d.ts +2 -2
- package/lib/Select/OptionsList/index.js +1 -1
- package/lib/Select/Selector/index.d.ts +2 -2
- package/lib/Select/Selector/index.js +13 -10
- package/lib/Select/demo/single/index.d.ts +1 -0
- package/lib/Select/demo/single/index.js +5 -1
- package/lib/Select/demo/single/index.less +5 -0
- package/lib/Select/interface.d.ts +8 -2
- package/lib/Select/style/index.less +3 -10
- package/lib/Table/demo/basic/createData.d.ts +9 -0
- package/lib/Table/demo/basic/createData.js +23 -0
- package/lib/Table/demo/basic/index.d.ts +2 -0
- package/lib/Table/demo/basic/index.js +80 -0
- package/lib/Table/demo/editCell/index.d.ts +2 -0
- package/lib/Table/demo/editCell/index.js +54 -0
- package/lib/Table/demo/renderHeaderRight/index.d.ts +2 -0
- package/lib/Table/demo/renderHeaderRight/index.js +52 -0
- package/lib/Table/demo/rowSelect/index.d.ts +2 -0
- package/lib/Table/demo/rowSelect/index.js +55 -0
- package/lib/Table/demo/virtualList/index.d.ts +2 -0
- package/lib/Table/demo/virtualList/index.js +103 -0
- package/lib/Table/index.d.ts +5 -0
- package/lib/Table/index.js +225 -0
- package/lib/Table/interface.d.ts +14 -0
- package/lib/Table/interface.js +5 -0
- package/lib/Table/style/index.d.ts +2 -0
- package/lib/Table/style/index.js +5 -0
- package/lib/Table/style/index.less +111 -0
- package/lib/Tooltip/index.d.ts +1 -0
- package/lib/Tooltip/index.js +3 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +16 -0
- package/lib/style/themes/default/index.less +1 -1
- package/{src/style/themes/default/themeColor.less → lib/style/themes/default/themeColor.module.less} +0 -0
- package/lib/style/themes/default/themeColor.module.less.d.ts +108 -0
- package/package.json +24 -8
- package/.editorconfig +0 -16
- package/.eslintrc.js +0 -43
- package/.fatherrc.ts +0 -16
- package/.prettierignore +0 -7
- package/.prettierrc.js +0 -1
- package/.stylelintrc.json +0 -36
- package/.umirc.ts +0 -15
- package/commitlint.config.js +0 -21
- package/docs/index.md +0 -21
- package/jest/setupTests.js +0 -1
- package/public/favicon.ico +0 -0
- package/src/Button/demo/Icon/index.tsx +0 -41
- package/src/Button/demo/basic/index.tsx +0 -26
- package/src/Button/demo/disable/index.tsx +0 -16
- package/src/Button/demo/href/index.tsx +0 -14
- package/src/Button/demo/loading/index.tsx +0 -21
- package/src/Button/index.md +0 -25
- package/src/Button/index.test.tsx +0 -58
- package/src/Button/index.tsx +0 -136
- package/src/Button/style/index.ts +0 -2
- package/src/Dropdown/Button.tsx +0 -93
- package/src/Dropdown/demo/basic/index.tsx +0 -20
- package/src/Dropdown/demo/button/index.tsx +0 -98
- package/src/Dropdown/demo/placement/index.tsx +0 -47
- package/src/Dropdown/demo/subMenu/index.tsx +0 -35
- package/src/Dropdown/demo/trigger/index.tsx +0 -19
- package/src/Dropdown/index.md +0 -35
- package/src/Dropdown/index.test.tsx +0 -185
- package/src/Dropdown/index.tsx +0 -71
- package/src/Dropdown/style/index.ts +0 -2
- package/src/Icon/iconfont/iconfont.css +0 -93
- package/src/Icon/iconfont/iconfont.js +0 -1
- package/src/Icon/iconfont/iconfont.ttf +0 -0
- package/src/Icon/iconfont/iconfont.woff +0 -0
- package/src/Icon/iconfont/iconfont.woff2 +0 -0
- package/src/Icon/index.tsx +0 -38
- package/src/Input/components/Group/index.tsx +0 -21
- package/src/Input/components/Password/index.tsx +0 -23
- package/src/Input/components/TextArea/index.tsx +0 -57
- package/src/Input/demo/allowClear/index.tsx +0 -10
- package/src/Input/demo/basic/index.tsx +0 -25
- package/src/Input/demo/gourp/index.tsx +0 -30
- package/src/Input/demo/password/index.tsx +0 -11
- package/src/Input/demo/prefix/index.tsx +0 -13
- package/src/Input/demo/showCount/index.tsx +0 -16
- package/src/Input/demo/textArea/autoSize.tsx +0 -21
- package/src/Input/index.md +0 -37
- package/src/Input/index.test.tsx +0 -78
- package/src/Input/index.tsx +0 -91
- package/src/Input/style/index.ts +0 -2
- package/src/Menu/Divider.tsx +0 -12
- package/src/Menu/MenuItem.tsx +0 -24
- package/src/Menu/SubMenu.tsx +0 -37
- package/src/Menu/index.md +0 -36
- package/src/Menu/index.test.tsx +0 -144
- package/src/Menu/index.tsx +0 -27
- package/src/Menu/style/index.ts +0 -2
- package/src/Select/BaseSelect.tsx +0 -321
- package/src/Select/OptionsList/OptionItem.tsx +0 -151
- package/src/Select/OptionsList/Options.tsx +0 -11
- package/src/Select/OptionsList/index.tsx +0 -169
- package/src/Select/Selector/index.tsx +0 -211
- package/src/Select/VirtualList.tsx +0 -36
- package/src/Select/demo/disabled/index.tsx +0 -44
- package/src/Select/demo/multiple/index.tsx +0 -77
- package/src/Select/demo/options/index.tsx +0 -63
- package/src/Select/demo/single/index.tsx +0 -50
- package/src/Select/hooks/useCacheOption.ts +0 -67
- package/src/Select/index.md +0 -72
- package/src/Select/index.tsx +0 -23
- package/src/Select/interface.ts +0 -231
- package/src/Select/style/index.ts +0 -2
- package/src/Select/utils.tsx +0 -133
- package/src/Tabs/TabPane.tsx +0 -28
- package/src/Tabs/demo/adaptHeight/index.tsx +0 -33
- package/src/Tabs/demo/basic/index.tsx +0 -30
- package/src/Tabs/demo/horizontalScroll/index.tsx +0 -36
- package/src/Tabs/index.md +0 -30
- package/src/Tabs/index.test.tsx +0 -100
- package/src/Tabs/index.tsx +0 -64
- package/src/Tabs/style/index.ts +0 -2
- package/src/Tooltip/demo/basic/index.tsx +0 -10
- package/src/Tooltip/demo/overflow/index.tsx +0 -10
- package/src/Tooltip/demo/placement/index.tsx +0 -60
- package/src/Tooltip/demo/trigger/index.tsx +0 -22
- package/src/Tooltip/index.md +0 -28
- package/src/Tooltip/index.test.tsx +0 -152
- package/src/Tooltip/index.tsx +0 -113
- package/src/Tooltip/style/index.ts +0 -2
- package/src/_utils/hooks/useControlledState.ts +0 -39
- package/src/_utils/hooks/usePrefixCls.ts +0 -11
- package/tsconfig.json +0 -13
- package/typings.d.ts +0 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
export interface ITabsProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 大小
|
|
6
|
+
* @default default
|
|
7
|
+
*/
|
|
8
|
+
size?: 'large' | 'default';
|
|
9
|
+
/**
|
|
10
|
+
* @description 当前激活 tab 面板的 key
|
|
11
|
+
* @default -
|
|
12
|
+
*/
|
|
13
|
+
activeKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description 初始化选中面板的 key,如果没有设置 activeKey
|
|
16
|
+
* @default 第一个面板的 key
|
|
17
|
+
*/
|
|
18
|
+
defaultActiveKey?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @description 切换面板的回调
|
|
21
|
+
* @default -
|
|
22
|
+
*/
|
|
23
|
+
onChange?: (activeKey: string) => void;
|
|
24
|
+
/**
|
|
25
|
+
* @description 被隐藏时是否销毁 DOM 结构
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
destroyInactiveTabPane?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @description 撑满容器的高度
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
adaptHeight?: boolean;
|
|
34
|
+
className?: string;
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}
|
|
37
|
+
declare function Tabs(props: ITabsProps): JSX.Element;
|
|
38
|
+
declare namespace Tabs {
|
|
39
|
+
var TabPane: typeof import("./TabPane").default;
|
|
40
|
+
}
|
|
41
|
+
export default Tabs;
|
package/es/Tabs/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var _excluded = ["size", "className", "adaptHeight"];
|
|
2
|
+
|
|
3
|
+
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; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import AntdTabs from 'antd/lib/tabs';
|
|
15
|
+
import Icon from '../Icon';
|
|
16
|
+
import TabPane from './TabPane';
|
|
17
|
+
import classNames from 'classnames';
|
|
18
|
+
import './style';
|
|
19
|
+
export default function Tabs(props) {
|
|
20
|
+
var size = props.size,
|
|
21
|
+
className = props.className,
|
|
22
|
+
adaptHeight = props.adaptHeight,
|
|
23
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
24
|
+
|
|
25
|
+
var tabsProps = _objectSpread({}, otherProps);
|
|
26
|
+
|
|
27
|
+
if (size === 'large') {
|
|
28
|
+
tabsProps.size = size;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/React.createElement(AntdTabs, _objectSpread({
|
|
32
|
+
moreIcon: /*#__PURE__*/React.createElement(Icon, {
|
|
33
|
+
type: "more_vert",
|
|
34
|
+
size: 18
|
|
35
|
+
}),
|
|
36
|
+
tabBarGutter: 24,
|
|
37
|
+
className: classNames('ald-tabs', className, {
|
|
38
|
+
'ald-adapt-height': adaptHeight
|
|
39
|
+
})
|
|
40
|
+
}, tabsProps));
|
|
41
|
+
}
|
|
42
|
+
Tabs.TabPane = TabPane;
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tooltip } from '@aloudata/aloudata-design';
|
|
3
|
+
export default (function () {
|
|
4
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
5
|
+
title: "Tooltip"
|
|
6
|
+
}, /*#__PURE__*/React.createElement("span", null, "Tooltip will show on mouse enter")));
|
|
7
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tooltip } from '@aloudata/aloudata-design';
|
|
3
|
+
export default (function () {
|
|
4
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
5
|
+
title: "longMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsglongMsg"
|
|
6
|
+
}, /*#__PURE__*/React.createElement("span", null, "Tooltip will show on mouse enter")));
|
|
7
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* title: 调整位置
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Tooltip, Button } from '@aloudata/aloudata-design';
|
|
6
|
+
import './index.less';
|
|
7
|
+
var text = /*#__PURE__*/React.createElement("span", null, "prompt text");
|
|
8
|
+
var buttonWidth = 70;
|
|
9
|
+
export default (function () {
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "demo-placement"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
style: {
|
|
14
|
+
marginLeft: buttonWidth,
|
|
15
|
+
whiteSpace: 'nowrap'
|
|
16
|
+
}
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
18
|
+
placement: "topLeft",
|
|
19
|
+
title: text
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Button, null, "TL")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
21
|
+
placement: "top",
|
|
22
|
+
title: text
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Button, null, "Top")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
24
|
+
placement: "topRight",
|
|
25
|
+
title: text
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Button, null, "TR"))), /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
style: {
|
|
28
|
+
width: buttonWidth,
|
|
29
|
+
float: 'left'
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
32
|
+
placement: "leftTop",
|
|
33
|
+
title: text
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Button, null, "LT")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
35
|
+
placement: "left",
|
|
36
|
+
title: text
|
|
37
|
+
}, /*#__PURE__*/React.createElement(Button, null, "Left")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
38
|
+
placement: "leftBottom",
|
|
39
|
+
title: text
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Button, null, "LB"))), /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
style: {
|
|
42
|
+
width: buttonWidth,
|
|
43
|
+
marginLeft: buttonWidth * 4 + 24
|
|
44
|
+
}
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
46
|
+
placement: "rightTop",
|
|
47
|
+
title: text
|
|
48
|
+
}, /*#__PURE__*/React.createElement(Button, null, "RT")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
49
|
+
placement: "right",
|
|
50
|
+
title: text
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Button, null, "Right")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
52
|
+
placement: "rightBottom",
|
|
53
|
+
title: text
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Button, null, "RB"))), /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
style: {
|
|
56
|
+
marginLeft: buttonWidth,
|
|
57
|
+
clear: 'both',
|
|
58
|
+
whiteSpace: 'nowrap'
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
61
|
+
placement: "bottomLeft",
|
|
62
|
+
title: text
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Button, null, "BL")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
64
|
+
placement: "bottom",
|
|
65
|
+
title: text
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Button, null, "Bottom")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
67
|
+
placement: "bottomRight",
|
|
68
|
+
title: text
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Button, null, "BR"))));
|
|
70
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tooltip, Button } from '@aloudata/aloudata-design';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export default (function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
6
|
+
className: "demo-trigger"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
8
|
+
title: "Tooltip",
|
|
9
|
+
trigger: "hover"
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Button, null, "hover")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
11
|
+
title: "Tooltip",
|
|
12
|
+
trigger: "click"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Button, null, "click")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
14
|
+
title: "Tooltip",
|
|
15
|
+
trigger: "contextMenu"
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Button, null, "contextMenu")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
17
|
+
title: "Tooltip",
|
|
18
|
+
trigger: "focus"
|
|
19
|
+
}, /*#__PURE__*/React.createElement(Button, null, "focus"))));
|
|
20
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
export declare type ActionType = 'hover' | 'focus' | 'click' | 'contextMenu';
|
|
4
|
+
export interface ITooltipProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description 提示文字
|
|
7
|
+
* @default -
|
|
8
|
+
*/
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* @description 关闭后是否销毁Tooltip
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
destroyTooltipOnHide?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @description 浮层渲染父节点,默认渲染到 body 上
|
|
17
|
+
* @default () => document.body
|
|
18
|
+
*/
|
|
19
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
20
|
+
/**
|
|
21
|
+
* @description 鼠标移入后延时多少才显示 Tooltip
|
|
22
|
+
* @default 0.1
|
|
23
|
+
*/
|
|
24
|
+
mouseEnterDelay?: number;
|
|
25
|
+
/**
|
|
26
|
+
* @description 鼠标移出后延时多少才隐藏 Tooltip
|
|
27
|
+
* @default 0.1
|
|
28
|
+
*/
|
|
29
|
+
mouseLeaveDelay?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @description 气泡框位置
|
|
32
|
+
* @default top
|
|
33
|
+
*/
|
|
34
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
35
|
+
/**
|
|
36
|
+
* @description 触发行为
|
|
37
|
+
* @type ActionType | ActionType[], 其中 ActionType 为 'hover' | 'focus' | 'click' | 'contextMenu';
|
|
38
|
+
* @default hover
|
|
39
|
+
*/
|
|
40
|
+
trigger?: ActionType | ActionType[];
|
|
41
|
+
/**
|
|
42
|
+
* @description 设置 Tooltip 的 z-index
|
|
43
|
+
* @default -
|
|
44
|
+
*/
|
|
45
|
+
zIndex?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @description 用于手动控制浮层显隐
|
|
48
|
+
* @default -
|
|
49
|
+
*/
|
|
50
|
+
visible?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @description 显示隐藏的回调
|
|
53
|
+
* @default -
|
|
54
|
+
*/
|
|
55
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
56
|
+
/**
|
|
57
|
+
* @description 卡片类名
|
|
58
|
+
* @default -
|
|
59
|
+
*/
|
|
60
|
+
overlayClassName?: string;
|
|
61
|
+
getTooltipContainer?: (node: HTMLElement) => HTMLElement;
|
|
62
|
+
children?: React.ReactNode;
|
|
63
|
+
}
|
|
64
|
+
export default function Tooltip(props: ITooltipProps): JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AntdTooltip from 'antd/lib/tooltip';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import './style';
|
|
5
|
+
export default function Tooltip(props) {
|
|
6
|
+
var children = props.children,
|
|
7
|
+
title = props.title,
|
|
8
|
+
visible = props.visible,
|
|
9
|
+
onVisibleChange = props.onVisibleChange,
|
|
10
|
+
trigger = props.trigger,
|
|
11
|
+
zIndex = props.zIndex,
|
|
12
|
+
placement = props.placement,
|
|
13
|
+
mouseEnterDelay = props.mouseEnterDelay,
|
|
14
|
+
mouseLeaveDelay = props.mouseLeaveDelay,
|
|
15
|
+
getPopupContainer = props.getPopupContainer,
|
|
16
|
+
destroyTooltipOnHide = props.destroyTooltipOnHide,
|
|
17
|
+
getTooltipContainer = props.getTooltipContainer,
|
|
18
|
+
overlayClassName = props.overlayClassName;
|
|
19
|
+
return /*#__PURE__*/React.createElement(AntdTooltip, {
|
|
20
|
+
title: title,
|
|
21
|
+
overlayClassName: classNames('ald-tooltip-overlay', overlayClassName),
|
|
22
|
+
visible: visible,
|
|
23
|
+
onVisibleChange: onVisibleChange,
|
|
24
|
+
trigger: trigger,
|
|
25
|
+
zIndex: zIndex,
|
|
26
|
+
placement: placement,
|
|
27
|
+
mouseEnterDelay: mouseEnterDelay,
|
|
28
|
+
mouseLeaveDelay: mouseLeaveDelay,
|
|
29
|
+
getPopupContainer: getPopupContainer,
|
|
30
|
+
destroyTooltipOnHide: destroyTooltipOnHide,
|
|
31
|
+
getTooltipContainer: getTooltipContainer
|
|
32
|
+
}, children);
|
|
33
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import { useState, useEffect, useRef, useDebugValue } from 'react';
|
|
14
|
+
import { isUndefined } from 'lodash';
|
|
15
|
+
|
|
16
|
+
function format(_ref) {
|
|
17
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
18
|
+
innerState = _ref2[0],
|
|
19
|
+
outterState = _ref2[1];
|
|
20
|
+
|
|
21
|
+
var isControlled = isUndefined(outterState) ? 'uncontrolled' : 'controlled';
|
|
22
|
+
var value = isUndefined(outterState) ? innerState : outterState;
|
|
23
|
+
return "State is ".concat(isControlled, " | Value is ").concat(value);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var useControlledState = function useControlledState(outterState, defaultOutterState, callback) {
|
|
27
|
+
// if (outterState === undefined && defaultOutterState === undefined) {
|
|
28
|
+
// throw new TypeError('Either "value" or "defaultValue" variable must be set. Now both are undefined');
|
|
29
|
+
// }
|
|
30
|
+
var _useState = useState(isUndefined(outterState) ? defaultOutterState : outterState),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
innerState = _useState2[0],
|
|
33
|
+
setInnerState = _useState2[1];
|
|
34
|
+
|
|
35
|
+
var setState = useRef(function (state) {
|
|
36
|
+
var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
37
|
+
|
|
38
|
+
if (isUndefined(outterState) || force) {
|
|
39
|
+
setInnerState(state);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
callback === null || callback === void 0 ? void 0 : callback(state);
|
|
43
|
+
}).current; // @ts-ignore
|
|
44
|
+
|
|
45
|
+
useDebugValue([innerState, outterState], format);
|
|
46
|
+
useEffect(function () {
|
|
47
|
+
if (!isUndefined(outterState)) {
|
|
48
|
+
setInnerState(outterState);
|
|
49
|
+
}
|
|
50
|
+
}, [outterState]);
|
|
51
|
+
return [innerState, setState];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default useControlledState;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "antd/es/config-provider/style";
|
|
2
|
+
import _ConfigProvider from "antd/es/config-provider";
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
var ConfigContext = _ConfigProvider.ConfigContext;
|
|
5
|
+
|
|
6
|
+
var usePrefixCls = function usePrefixCls(subPrefixCls, customRootPrefixCls) {
|
|
7
|
+
var _useContext = useContext(ConfigContext),
|
|
8
|
+
rootPrefixCls = _useContext.rootPrefixCls,
|
|
9
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
10
|
+
|
|
11
|
+
return getPrefixCls(subPrefixCls, customRootPrefixCls !== null && customRootPrefixCls !== void 0 ? customRootPrefixCls : rootPrefixCls);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default usePrefixCls;
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference path="../typings.d.ts" />
|
|
2
|
+
export { default as Button } from './Button';
|
|
3
|
+
export { default as Dropdown } from './Dropdown';
|
|
4
|
+
export { default as Menu } from './Menu';
|
|
5
|
+
export { default as Input } from './Input';
|
|
6
|
+
export { default as Tabs } from './Tabs';
|
|
7
|
+
export { default as Tooltip } from './Tooltip';
|
|
8
|
+
export { default as Select } from './Select';
|
|
9
|
+
export { default as Table } from './Table';
|
|
10
|
+
export { default as Navigator } from './Navigator';
|
|
@@ -5,4 +5,6 @@ export { default as Menu } from './Menu';
|
|
|
5
5
|
export { default as Input } from './Input';
|
|
6
6
|
export { default as Tabs } from './Tabs';
|
|
7
7
|
export { default as Tooltip } from './Tooltip';
|
|
8
|
-
export { default as Select } from './Select';
|
|
8
|
+
export { default as Select } from './Select';
|
|
9
|
+
export { default as Table } from './Table';
|
|
10
|
+
export { default as Navigator } from './Navigator';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import './themeColor.less';
|
|
1
|
+
@import './themeColor.module.less';
|
|
2
2
|
@font-family:sans-serif,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol','Noto Color Emoji';
|
|
3
3
|
@ald-prefix: 'ald';
|
|
4
4
|
|
package/{lib/style/themes/default/themeColor.less → es/style/themes/default/themeColor.module.less}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'B10': string;
|
|
5
|
+
'B20': string;
|
|
6
|
+
'B30': string;
|
|
7
|
+
'B40': string;
|
|
8
|
+
'B50': string;
|
|
9
|
+
'B60': string;
|
|
10
|
+
'B70': string;
|
|
11
|
+
'B80': string;
|
|
12
|
+
'B90': string;
|
|
13
|
+
'B95': string;
|
|
14
|
+
'B98': string;
|
|
15
|
+
'BBG10': string;
|
|
16
|
+
'BBG15': string;
|
|
17
|
+
'BBG20': string;
|
|
18
|
+
'BBG30': string;
|
|
19
|
+
'BBG40': string;
|
|
20
|
+
'BBG50': string;
|
|
21
|
+
'BBG60': string;
|
|
22
|
+
'BBG70': string;
|
|
23
|
+
'BBG80': string;
|
|
24
|
+
'BBG90': string;
|
|
25
|
+
'BBG95': string;
|
|
26
|
+
'BBG97': string;
|
|
27
|
+
'BBG98': string;
|
|
28
|
+
'BG0': string;
|
|
29
|
+
'BG10': string;
|
|
30
|
+
'BG100': string;
|
|
31
|
+
'BG20': string;
|
|
32
|
+
'BG30': string;
|
|
33
|
+
'BG40': string;
|
|
34
|
+
'BG50': string;
|
|
35
|
+
'BG60': string;
|
|
36
|
+
'BG70': string;
|
|
37
|
+
'BG80': string;
|
|
38
|
+
'BG90': string;
|
|
39
|
+
'BG95': string;
|
|
40
|
+
'BG97': string;
|
|
41
|
+
'BLACK': string;
|
|
42
|
+
'IMAGE_HOLDER': string;
|
|
43
|
+
'MATE': string;
|
|
44
|
+
'ND0': string;
|
|
45
|
+
'ND10': string;
|
|
46
|
+
'ND20': string;
|
|
47
|
+
'ND30': string;
|
|
48
|
+
'ND40': string;
|
|
49
|
+
'ND50': string;
|
|
50
|
+
'ND60': string;
|
|
51
|
+
'ND70': string;
|
|
52
|
+
'ND80': string;
|
|
53
|
+
'ND90': string;
|
|
54
|
+
'ND95': string;
|
|
55
|
+
'ND97': string;
|
|
56
|
+
'NL0': string;
|
|
57
|
+
'NL10': string;
|
|
58
|
+
'NL20': string;
|
|
59
|
+
'NL30': string;
|
|
60
|
+
'NL40': string;
|
|
61
|
+
'NL50': string;
|
|
62
|
+
'NL60': string;
|
|
63
|
+
'NL70': string;
|
|
64
|
+
'NL80': string;
|
|
65
|
+
'NL90': string;
|
|
66
|
+
'NL95': string;
|
|
67
|
+
'NL97': string;
|
|
68
|
+
'SA10': string;
|
|
69
|
+
'SA20': string;
|
|
70
|
+
'SA30': string;
|
|
71
|
+
'SA40': string;
|
|
72
|
+
'SA50': string;
|
|
73
|
+
'SA60': string;
|
|
74
|
+
'SA70': string;
|
|
75
|
+
'SA80': string;
|
|
76
|
+
'SA90': string;
|
|
77
|
+
'SA95': string;
|
|
78
|
+
'SA98': string;
|
|
79
|
+
'SB10': string;
|
|
80
|
+
'SB20': string;
|
|
81
|
+
'SB30': string;
|
|
82
|
+
'SB40': string;
|
|
83
|
+
'SB50': string;
|
|
84
|
+
'SB60': string;
|
|
85
|
+
'SB70': string;
|
|
86
|
+
'SB80': string;
|
|
87
|
+
'SB90': string;
|
|
88
|
+
'SB95': string;
|
|
89
|
+
'SB98': string;
|
|
90
|
+
'SC10': string;
|
|
91
|
+
'SC20': string;
|
|
92
|
+
'SC30': string;
|
|
93
|
+
'SC40': string;
|
|
94
|
+
'SC50': string;
|
|
95
|
+
'SC60': string;
|
|
96
|
+
'SC70': string;
|
|
97
|
+
'SC80': string;
|
|
98
|
+
'SC90': string;
|
|
99
|
+
'SC95': string;
|
|
100
|
+
'SC98': string;
|
|
101
|
+
'SHADOW_ACTIONSHEET': string;
|
|
102
|
+
'SHADOW_CARD': string;
|
|
103
|
+
'SHADOW_NOTIFICATION': string;
|
|
104
|
+
'SHADOW_OPTION': string;
|
|
105
|
+
'WHITE': string;
|
|
106
|
+
}
|
|
107
|
+
export const cssExports: CssExports;
|
|
108
|
+
export default cssExports;
|
package/lib/Button/index.js
CHANGED
|
@@ -39,7 +39,7 @@ function Button(props) {
|
|
|
39
39
|
var prefix = (0, _usePrefixCls.default)('btn');
|
|
40
40
|
|
|
41
41
|
var _props$type = props.type,
|
|
42
|
-
type = _props$type === void 0 ? '
|
|
42
|
+
type = _props$type === void 0 ? 'secondary' : _props$type,
|
|
43
43
|
_props$size = props.size,
|
|
44
44
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
45
45
|
_props$shape = props.shape,
|
|
@@ -50,7 +50,7 @@ function Button(props) {
|
|
|
50
50
|
|
|
51
51
|
function getButtonType(buttonType) {
|
|
52
52
|
if (!['primary', 'secondary', 'danger', 'text', 'link'].includes(buttonType)) {
|
|
53
|
-
return '
|
|
53
|
+
return 'default';
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
if (buttonType === 'danger') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../style/index.less';
|
|
1
|
+
@import '../../style/index.less';
|
|
2
2
|
|
|
3
3
|
@ald-prefix:ant;
|
|
4
4
|
@ald-iconfont-css-prefix:anticon;
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
&-text,
|
|
16
16
|
&-link {
|
|
17
17
|
font-size: 12px;
|
|
18
|
-
height:
|
|
18
|
+
height: @height-base;
|
|
19
19
|
padding: 0 12px;
|
|
20
20
|
display: inline-flex;
|
|
21
|
-
line-height:
|
|
21
|
+
line-height: @height-base;
|
|
22
22
|
align-items: center;
|
|
23
23
|
font-weight: 500;
|
|
24
|
-
justify-content:
|
|
24
|
+
justify-content: center;
|
|
25
25
|
.@{ald-iconfont-css-prefix} {
|
|
26
26
|
+ span {
|
|
27
27
|
margin-left: 4px;
|
|
@@ -252,4 +252,4 @@
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
}
|
|
255
|
+
}
|
|
@@ -169,7 +169,7 @@ var _default = function _default() {
|
|
|
169
169
|
}, "topRight")))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(DropdownButton, {
|
|
170
170
|
overlay: menu,
|
|
171
171
|
icon: isIcon && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
172
|
-
type: "
|
|
172
|
+
type: "arrow_drop_down"
|
|
173
173
|
}),
|
|
174
174
|
loading: loading,
|
|
175
175
|
disabled: disabled,
|