@aloudata/aloudata-design 0.2.7 → 0.3.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/{Message → Avatar}/style/index.d.ts +0 -0
- package/es/{Message → Avatar}/style/index.js +0 -0
- package/es/Avatar/style/index.less +34 -0
- package/es/Breadcrumb/index.d.ts +7 -0
- package/es/Breadcrumb/index.js +36 -0
- package/es/{Notification → Breadcrumb}/style/index.d.ts +0 -0
- package/es/{Notification → Breadcrumb}/style/index.js +0 -0
- package/es/Breadcrumb/style/index.less +36 -0
- package/es/Button/index.d.ts +4 -4
- package/es/Button/index.js +45 -25
- package/es/Button/style/index.less +185 -150
- package/es/Button/style/variables.less +67 -0
- package/es/Checkbox/index.d.ts +0 -1
- package/es/Checkbox/style/index.less +35 -1
- package/es/ConfigProvider/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +1 -0
- package/es/Drawer/index.d.ts +4 -0
- package/es/Drawer/index.js +3 -0
- package/{lib/Message → es/Drawer}/style/index.d.ts +0 -0
- package/es/Drawer/style/index.js +2 -0
- package/es/{Message → Drawer}/style/index.less +0 -0
- package/es/Dropdown/Button.js +1 -1
- package/es/Dropdown/style/index.less +41 -8
- package/es/Empty/image/Authority.d.ts +2 -0
- package/es/Empty/image/Authority.js +360 -0
- package/es/Empty/image/Dataspace.d.ts +2 -0
- package/es/Empty/image/Dataspace.js +271 -0
- package/es/Empty/image/Search.d.ts +2 -0
- package/es/Empty/image/Search.js +156 -0
- package/es/Empty/image/Simple.d.ts +2 -0
- package/es/Empty/image/Simple.js +20 -0
- package/es/Empty/image/Worksheet.d.ts +2 -0
- package/es/Empty/image/Worksheet.js +270 -0
- package/es/Empty/image/empty.d.ts +2 -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/Form/style/index.less +8 -0
- package/es/Icon/antdIconfont.d.ts +4 -0
- package/es/Icon/antdIconfont.js +2 -0
- package/es/Icon/components/Icon.d.ts +32 -0
- package/es/Icon/components/Icon.js +27 -0
- package/es/Icon/components/createFromScripts.d.ts +1 -0
- package/es/Icon/components/createFromScripts.js +35 -0
- package/es/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/es/Icon/icons/AddLine.d.ts +13 -0
- package/es/Icon/icons/AddLine.js +66 -0
- package/es/Icon/icons/AlertFill.d.ts +13 -0
- package/es/Icon/icons/AlertFill.js +73 -0
- package/es/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/es/Icon/icons/ArrowsDownLine.js +66 -0
- package/es/Icon/icons/CancelFill.d.ts +13 -0
- package/es/Icon/icons/CancelFill.js +73 -0
- package/es/Icon/icons/CheckFill.d.ts +13 -0
- package/es/Icon/icons/CheckFill.js +73 -0
- package/es/Icon/icons/CloseLine.d.ts +13 -0
- package/es/Icon/icons/CloseLine.js +66 -0
- package/es/Icon/icons/DatabaseLine.d.ts +13 -0
- package/es/Icon/icons/DatabaseLine.js +66 -0
- package/es/Icon/icons/Deleteline.d.ts +13 -0
- package/es/Icon/icons/Deleteline.js +66 -0
- package/es/Icon/icons/DownloadLine.d.ts +13 -0
- package/es/Icon/icons/DownloadLine.js +73 -0
- package/es/Icon/icons/ErrorFill.d.ts +13 -0
- package/es/Icon/icons/ErrorFill.js +73 -0
- package/es/Icon/icons/EyeOffLine.d.ts +13 -0
- package/es/Icon/icons/EyeOffLine.js +73 -0
- package/es/Icon/icons/EyeOnLine.d.ts +13 -0
- package/es/Icon/icons/EyeOnLine.js +66 -0
- package/es/Icon/icons/FileLine.d.ts +13 -0
- package/es/Icon/icons/FileLine.js +73 -0
- package/es/Icon/icons/HomeFill.d.ts +13 -0
- package/es/Icon/icons/HomeFill.js +73 -0
- package/es/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/es/Icon/icons/LightningLine.d.ts +13 -0
- package/es/Icon/icons/LightningLine.js +66 -0
- package/es/Icon/icons/Loading.d.ts +13 -0
- package/es/Icon/icons/Loading.js +66 -0
- package/es/Icon/icons/More.d.ts +13 -0
- package/es/Icon/icons/More.js +66 -0
- package/es/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/es/Icon/icons/NewWindowsLine.js +74 -0
- package/es/Icon/icons/SearchLine.d.ts +13 -0
- package/es/Icon/icons/SearchLine.js +73 -0
- package/es/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/es/Icon/icons/SortAscendingLine.js +66 -0
- package/es/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/es/Icon/icons/SortDescendingLine.js +66 -0
- package/es/Icon/icons/TextLine.d.ts +13 -0
- package/es/Icon/icons/TextLine.js +73 -0
- package/es/Icon/icons/UserLine.d.ts +13 -0
- package/es/Icon/icons/UserLine.js +73 -0
- package/es/Icon/icons/style.css +9 -0
- package/es/Icon/icons/style.css.d.ts +10 -0
- package/es/Icon/index.d.ts +2 -13
- package/es/Icon/index.js +2 -45
- package/es/Icon/index.less +9 -17
- package/es/Icon/style/index.d.ts +1 -0
- package/es/Icon/style/index.js +1 -0
- package/es/Icon/style/index.less +0 -0
- package/es/Input/components/Group/index.d.ts +4 -3
- 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 +29 -6
- package/es/Input/style/index.less +278 -43
- package/es/InputNumber/index.d.ts +3 -0
- package/es/InputNumber/index.js +32 -0
- package/{lib/Notification → es/InputNumber}/style/index.d.ts +0 -0
- package/es/InputNumber/style/index.js +2 -0
- package/es/InputNumber/style/index.less +224 -0
- package/es/Menu/Divider.d.ts +2 -2
- 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 +5 -5
- package/es/Modal/index.d.ts +21 -0
- package/es/Modal/index.js +95 -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 +8 -0
- package/es/Navigator/components/Header/index.js +18 -0
- package/es/Navigator/components/Menu/index.d.ts +6 -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 +97 -164
- package/es/Popover/index.d.ts +4 -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 +37 -9
- package/es/Select/index.js +155 -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 +1 -0
- package/es/Select/style/index.js +3 -1
- package/es/Select/style/index.less +230 -480
- 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 +67 -0
- package/es/Select/style/variables.less.d.ts +100 -0
- package/es/Select/utils/iconUtil.d.ts +24 -0
- package/es/Select/utils/iconUtil.js +82 -0
- package/es/Space/index.d.ts +1 -1
- package/es/Space/index.js +0 -1
- package/es/Table/Table.d.ts +5 -0
- package/es/Table/Table.js +473 -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 +51 -21
- package/es/Tabs/index.d.ts +2 -1
- package/es/Tabs/index.js +10 -4
- package/es/Tabs/style/index.less +73 -7
- package/es/Tooltip/style/index.less +2 -1
- package/es/index.d.ts +20 -5
- package/es/index.js +11 -3
- package/es/{Message → message}/index.d.ts +0 -0
- package/es/{Message → message}/index.js +0 -0
- package/es/message/style/index.d.ts +2 -0
- package/es/message/style/index.js +2 -0
- package/es/{Notification → message}/style/index.less +0 -0
- package/es/{Notification → notification}/index.d.ts +0 -0
- package/es/{Notification → notification}/index.js +0 -0
- package/es/notification/style/index.d.ts +2 -0
- package/es/notification/style/index.js +2 -0
- package/{lib/Message → es/notification}/style/index.less +0 -0
- package/es/style/index.less +3 -1
- package/es/style/mixins/index.less +8 -0
- package/es/style/themes/default/index.less +10 -10
- package/es/style/themes/default/scrollBar.less +13 -0
- 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/{Message → Avatar}/style/index.js +0 -0
- package/lib/Avatar/style/index.less +34 -0
- package/lib/Breadcrumb/index.d.ts +7 -0
- package/lib/Breadcrumb/index.js +50 -0
- package/lib/Breadcrumb/style/index.d.ts +2 -0
- package/lib/{Notification → Breadcrumb}/style/index.js +0 -0
- package/lib/Breadcrumb/style/index.less +36 -0
- package/lib/Button/index.d.ts +4 -4
- package/lib/Button/index.js +45 -25
- package/lib/Button/style/index.less +185 -150
- package/lib/Button/style/variables.less +67 -0
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Checkbox/style/index.less +35 -1
- package/lib/ConfigProvider/index.d.ts +1 -0
- package/lib/ConfigProvider/index.js +26 -0
- package/lib/Drawer/index.d.ts +4 -0
- package/lib/Drawer/index.js +15 -0
- package/lib/Drawer/style/index.d.ts +2 -0
- package/lib/Drawer/style/index.js +5 -0
- package/lib/{Notification → Drawer}/style/index.less +0 -0
- package/lib/Dropdown/Button.js +1 -1
- package/lib/Dropdown/style/index.less +41 -8
- package/lib/Empty/image/Authority.d.ts +2 -0
- package/lib/Empty/image/Authority.js +374 -0
- package/lib/Empty/image/Dataspace.d.ts +2 -0
- package/lib/Empty/image/Dataspace.js +285 -0
- package/lib/Empty/image/Search.d.ts +2 -0
- package/lib/Empty/image/Search.js +170 -0
- package/lib/Empty/image/Simple.d.ts +2 -0
- package/lib/Empty/image/Simple.js +34 -0
- package/lib/Empty/image/Worksheet.d.ts +2 -0
- package/lib/Empty/image/Worksheet.js +284 -0
- package/lib/Empty/image/empty.d.ts +2 -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/Form/style/index.less +8 -0
- package/lib/Icon/antdIconfont.d.ts +4 -0
- package/lib/Icon/antdIconfont.js +13 -0
- package/lib/Icon/components/Icon.d.ts +32 -0
- package/lib/Icon/components/Icon.js +38 -0
- package/lib/Icon/components/createFromScripts.d.ts +1 -0
- package/lib/Icon/components/createFromScripts.js +41 -0
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +3 -0
- package/lib/Icon/icons/AddLine.d.ts +13 -0
- package/lib/Icon/icons/AddLine.js +83 -0
- package/lib/Icon/icons/AlertFill.d.ts +13 -0
- package/lib/Icon/icons/AlertFill.js +90 -0
- package/lib/Icon/icons/ArrowsDownLine.d.ts +13 -0
- package/lib/Icon/icons/ArrowsDownLine.js +83 -0
- package/lib/Icon/icons/CancelFill.d.ts +13 -0
- package/lib/Icon/icons/CancelFill.js +90 -0
- package/lib/Icon/icons/CheckFill.d.ts +13 -0
- package/lib/Icon/icons/CheckFill.js +90 -0
- package/lib/Icon/icons/CloseLine.d.ts +13 -0
- package/lib/Icon/icons/CloseLine.js +83 -0
- package/lib/Icon/icons/DatabaseLine.d.ts +13 -0
- package/lib/Icon/icons/DatabaseLine.js +83 -0
- package/lib/Icon/icons/Deleteline.d.ts +13 -0
- package/lib/Icon/icons/Deleteline.js +83 -0
- package/lib/Icon/icons/DownloadLine.d.ts +13 -0
- package/lib/Icon/icons/DownloadLine.js +90 -0
- package/lib/Icon/icons/ErrorFill.d.ts +13 -0
- package/lib/Icon/icons/ErrorFill.js +90 -0
- package/lib/Icon/icons/EyeOffLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOffLine.js +90 -0
- package/lib/Icon/icons/EyeOnLine.d.ts +13 -0
- package/lib/Icon/icons/EyeOnLine.js +83 -0
- package/lib/Icon/icons/FileLine.d.ts +13 -0
- package/lib/Icon/icons/FileLine.js +90 -0
- package/lib/Icon/icons/HomeFill.d.ts +13 -0
- package/lib/Icon/icons/HomeFill.js +90 -0
- package/lib/Icon/icons/IconBase.withSpan.tpl +58 -0
- package/lib/Icon/icons/LightningLine.d.ts +13 -0
- package/lib/Icon/icons/LightningLine.js +83 -0
- package/lib/Icon/icons/Loading.d.ts +13 -0
- package/lib/Icon/icons/Loading.js +83 -0
- package/lib/Icon/icons/More.d.ts +13 -0
- package/lib/Icon/icons/More.js +83 -0
- package/lib/Icon/icons/NewWindowsLine.d.ts +13 -0
- package/lib/Icon/icons/NewWindowsLine.js +91 -0
- package/lib/Icon/icons/SearchLine.d.ts +13 -0
- package/lib/Icon/icons/SearchLine.js +90 -0
- package/lib/Icon/icons/SortAscendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortAscendingLine.js +83 -0
- package/lib/Icon/icons/SortDescendingLine.d.ts +13 -0
- package/lib/Icon/icons/SortDescendingLine.js +83 -0
- package/lib/Icon/icons/TextLine.d.ts +13 -0
- package/lib/Icon/icons/TextLine.js +90 -0
- package/lib/Icon/icons/UserLine.d.ts +13 -0
- package/lib/Icon/icons/UserLine.js +90 -0
- package/lib/Icon/icons/style.css +9 -0
- package/lib/Icon/icons/style.css.d.ts +10 -0
- package/lib/Icon/index.d.ts +2 -13
- package/lib/Icon/index.js +2 -51
- package/lib/Icon/index.less +9 -17
- package/lib/Icon/style/index.d.ts +1 -0
- package/lib/Icon/style/index.js +1 -0
- package/lib/Icon/style/index.less +0 -0
- package/lib/Input/components/Group/index.d.ts +4 -3
- 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 +30 -5
- package/lib/Input/style/index.less +278 -43
- package/lib/InputNumber/index.d.ts +3 -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 +224 -0
- package/lib/Menu/Divider.d.ts +2 -2
- 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 +5 -5
- package/lib/Modal/index.d.ts +21 -0
- package/lib/Modal/index.js +121 -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 +8 -0
- package/lib/Navigator/components/Header/index.js +28 -0
- package/lib/Navigator/components/Menu/index.d.ts +6 -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 +97 -164
- package/lib/Popover/index.d.ts +4 -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 +37 -9
- package/lib/Select/index.js +167 -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 +1 -0
- package/lib/Select/style/index.js +2 -0
- package/lib/Select/style/index.less +230 -480
- 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 +67 -0
- package/lib/Select/style/variables.less.d.ts +100 -0
- package/lib/Select/utils/iconUtil.d.ts +24 -0
- package/lib/Select/utils/iconUtil.js +102 -0
- package/lib/Space/index.d.ts +1 -1
- package/lib/Space/index.js +0 -6
- package/lib/Table/Table.d.ts +5 -0
- package/lib/Table/Table.js +501 -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 +51 -21
- package/lib/Tabs/index.d.ts +2 -1
- package/lib/Tabs/index.js +11 -4
- package/lib/Tabs/style/index.less +73 -7
- package/lib/Tooltip/style/index.less +2 -1
- package/lib/index.d.ts +20 -5
- package/lib/index.js +70 -6
- package/lib/{Message → message}/index.d.ts +0 -0
- package/lib/{Message → message}/index.js +0 -0
- package/lib/message/style/index.d.ts +2 -0
- package/lib/message/style/index.js +5 -0
- package/lib/message/style/index.less +1 -0
- package/lib/{Notification → notification}/index.d.ts +0 -0
- package/lib/{Notification → notification}/index.js +0 -0
- package/lib/notification/style/index.d.ts +2 -0
- package/lib/notification/style/index.js +5 -0
- package/lib/notification/style/index.less +1 -0
- package/lib/style/index.less +3 -1
- package/lib/style/mixins/index.less +8 -0
- package/lib/style/themes/default/index.less +10 -10
- package/lib/style/themes/default/scrollBar.less +13 -0
- 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 +7 -6
- package/es/Icon/iconfont/demo.css +0 -539
- package/es/Icon/iconfont/demo_index.html +0 -720
- package/es/Icon/iconfont/iconfont.css +0 -109
- package/es/Icon/iconfont/iconfont.js +0 -46
- package/es/Icon/iconfont/iconfont.json +0 -170
- 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/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/Icon/iconfont/demo.css +0 -539
- package/lib/Icon/iconfont/demo_index.html +0 -720
- package/lib/Icon/iconfont/iconfont.css +0 -109
- package/lib/Icon/iconfont/iconfont.js +0 -48
- package/lib/Icon/iconfont/iconfont.json +0 -170
- 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/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/es/Table/index.js
CHANGED
|
@@ -1,463 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
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; }
|
|
5
|
-
|
|
6
|
-
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; }
|
|
7
|
-
|
|
8
|
-
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; }
|
|
9
|
-
|
|
10
|
-
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; }
|
|
11
|
-
|
|
12
|
-
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; }
|
|
13
|
-
|
|
14
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
-
|
|
16
|
-
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."); }
|
|
17
|
-
|
|
18
|
-
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); }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
|
-
|
|
26
|
-
/* eslint-disable no-unneeded-ternary */
|
|
27
|
-
/// <reference types ='./react-table-config' />
|
|
28
|
-
import _ from 'lodash';
|
|
29
|
-
import classnames from 'classnames';
|
|
30
|
-
import Icon from '../Icon';
|
|
31
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
32
|
-
import usePrefixCls from '../_utils/hooks/usePrefixCls';
|
|
33
|
-
import InfiniteScroll from 'react-infinite-scroll-component';
|
|
34
|
-
import Empty from '../Empty';
|
|
35
|
-
import ResizeObserver from 'rc-resize-observer';
|
|
36
|
-
import { useTable, useBlockLayout, useRowSelect, useSortBy, useResizeColumns } from 'react-table';
|
|
37
|
-
var ARRAY_FIRST_INDEX = 0;
|
|
38
|
-
var DEFAULT_ROW_WIDTH = 0;
|
|
39
|
-
var DEFAULT_BODY_HEIGHT = 0;
|
|
40
|
-
|
|
41
|
-
function Table(_ref, ref) {
|
|
42
|
-
var columns = _ref.columns,
|
|
43
|
-
data = _ref.data,
|
|
44
|
-
total = _ref.total,
|
|
45
|
-
renderHeaderLeft = _ref.renderHeaderLeft,
|
|
46
|
-
renderHeaderRight = _ref.renderHeaderRight,
|
|
47
|
-
onRowSelected = _ref.onRowSelected,
|
|
48
|
-
loadMore = _ref.loadMore,
|
|
49
|
-
loading = _ref.loading,
|
|
50
|
-
hasNextPage = _ref.hasNextPage,
|
|
51
|
-
_ref$sortable = _ref.sortable,
|
|
52
|
-
sortable = _ref$sortable === void 0 ? false : _ref$sortable,
|
|
53
|
-
defaultSort = _ref.defaultSort,
|
|
54
|
-
_ref$resizeColumn = _ref.resizeColumn,
|
|
55
|
-
resizeColumn = _ref$resizeColumn === void 0 ? false : _ref$resizeColumn,
|
|
56
|
-
allSortDirections = _ref.sortDirections,
|
|
57
|
-
_ref$showHeader = _ref.showHeader,
|
|
58
|
-
showHeader = _ref$showHeader === void 0 ? true : _ref$showHeader,
|
|
59
|
-
_ref$onChange = _ref.onChange,
|
|
60
|
-
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
61
|
-
_ref$innerScroll = _ref.innerScroll,
|
|
62
|
-
innerScroll = _ref$innerScroll === void 0 ? false : _ref$innerScroll,
|
|
63
|
-
_ref$scrollThreshold = _ref.scrollThreshold,
|
|
64
|
-
scrollThreshold = _ref$scrollThreshold === void 0 ? '150px' : _ref$scrollThreshold,
|
|
65
|
-
_ref$rowClassName = _ref.rowClassName,
|
|
66
|
-
rowClassName = _ref$rowClassName === void 0 ? '' : _ref$rowClassName,
|
|
67
|
-
_ref$ellipsis = _ref.ellipsis,
|
|
68
|
-
ellipsis = _ref$ellipsis === void 0 ? true : _ref$ellipsis,
|
|
69
|
-
renderEmpty = _ref.renderEmpty,
|
|
70
|
-
rowKey = _ref.rowKey;
|
|
71
|
-
|
|
72
|
-
var _React$useState = React.useState(null),
|
|
73
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
74
|
-
selectedRowId = _React$useState2[0],
|
|
75
|
-
setSelectedRowId = _React$useState2[1];
|
|
76
|
-
|
|
77
|
-
var tableBodyListRef = useRef(null);
|
|
78
|
-
var tableRef = useRef(null);
|
|
79
|
-
|
|
80
|
-
var _useState = useState(DEFAULT_BODY_HEIGHT),
|
|
81
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
82
|
-
tableClientWidth = _useState2[0],
|
|
83
|
-
setTableClientWidth = _useState2[1];
|
|
84
|
-
|
|
85
|
-
var RANDOM_ID = "INNER_SCROLL_ID_".concat(Math.random());
|
|
86
|
-
|
|
87
|
-
var _useState3 = useState(DEFAULT_ROW_WIDTH),
|
|
88
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
89
|
-
width = _useState4[0],
|
|
90
|
-
setWidth = _useState4[1]; // 如果页面整体宽度变化则重新计算
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
useEffect(function () {
|
|
94
|
-
if (tableRef.current) {
|
|
95
|
-
setTableClientWidth(tableRef.current.clientWidth);
|
|
96
|
-
}
|
|
97
|
-
}, [width]);
|
|
98
|
-
var initialColumnsWidthMap = useMemo(function () {
|
|
99
|
-
var map = new Map();
|
|
100
|
-
|
|
101
|
-
if (tableClientWidth !== DEFAULT_BODY_HEIGHT) {
|
|
102
|
-
var noGivenColumns = 0;
|
|
103
|
-
var givenColumnsTotalWidth = 0;
|
|
104
|
-
columns.forEach(function (column) {
|
|
105
|
-
if (column.width) {
|
|
106
|
-
map.set(column.dataIndex, column.width);
|
|
107
|
-
givenColumnsTotalWidth += column.width;
|
|
108
|
-
} else {
|
|
109
|
-
noGivenColumns += 1;
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
var averageWidth = (tableClientWidth - givenColumnsTotalWidth) / noGivenColumns;
|
|
113
|
-
return {
|
|
114
|
-
columnMap: map,
|
|
115
|
-
averageWidth: averageWidth
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
columns.forEach(function (column) {
|
|
120
|
-
if (column.width) {
|
|
121
|
-
map.set(column.dataIndex, column.width);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
return {
|
|
125
|
-
columnMap: map,
|
|
126
|
-
averageWidth: DEFAULT_ROW_WIDTH
|
|
127
|
-
};
|
|
128
|
-
}, [columns, tableClientWidth]);
|
|
129
|
-
var newColumns = useMemo(function () {
|
|
130
|
-
return columns.map(function (column) {
|
|
131
|
-
return _objectSpread(_objectSpread({}, column), {}, {
|
|
132
|
-
width: initialColumnsWidthMap.columnMap.get(column.dataIndex) || initialColumnsWidthMap.averageWidth,
|
|
133
|
-
Header: column.title ? column.title : function () {
|
|
134
|
-
return null;
|
|
135
|
-
},
|
|
136
|
-
disableSortBy: !sortable || typeof column.sorter === 'boolean',
|
|
137
|
-
accessor: column.dataIndex,
|
|
138
|
-
Cell: function Cell(_ref2) {
|
|
139
|
-
var row = _ref2.row,
|
|
140
|
-
value = _ref2.value;
|
|
141
|
-
return typeof column.render === 'function' ? column.render(value, row.original, row.index) : value;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}, [columns, sortable, initialColumnsWidthMap]); // 默认排序的对象
|
|
146
|
-
|
|
147
|
-
var defaultSortObject = {
|
|
148
|
-
id: newColumns[ARRAY_FIRST_INDEX].accessor,
|
|
149
|
-
desc: newColumns[ARRAY_FIRST_INDEX].sortOrder && newColumns[ARRAY_FIRST_INDEX].sortOrder === 'descend' ? true : false
|
|
150
|
-
}; // 如果支持排序 但是没有默认排序 则默认按第一列倒叙排序
|
|
151
|
-
|
|
152
|
-
var getInitialSortDirection = function getInitialSortDirection() {
|
|
153
|
-
if (defaultSort && defaultSort.id) {
|
|
154
|
-
return defaultSort;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (sortable) {
|
|
158
|
-
return defaultSortObject;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return {
|
|
162
|
-
id: '',
|
|
163
|
-
desc: false
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
var _React$useState3 = React.useState(getInitialSortDirection()),
|
|
168
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
169
|
-
sortDirection = _React$useState4[0],
|
|
170
|
-
setSortDirection = _React$useState4[1];
|
|
171
|
-
|
|
172
|
-
var getInitSortBy = function getInitSortBy() {
|
|
173
|
-
if (!(sortDirection === null || sortDirection === void 0 ? void 0 : sortDirection.id)) {
|
|
174
|
-
return [];
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
var sortColumn = newColumns.find(function (column) {
|
|
178
|
-
return column.accessor === sortDirection.id;
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
if (sortColumn === null || sortColumn === void 0 ? void 0 : sortColumn.sorter) {
|
|
182
|
-
return [];
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return [sortDirection];
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
var _useTable = useTable({
|
|
189
|
-
columns: newColumns,
|
|
190
|
-
data: data,
|
|
191
|
-
disableMultiSort: true,
|
|
192
|
-
disableSortBy: !sortable,
|
|
193
|
-
getRowId: rowKey,
|
|
194
|
-
initialState: {
|
|
195
|
-
sortBy: getInitSortBy()
|
|
196
|
-
}
|
|
197
|
-
}, useBlockLayout, useSortBy, useRowSelect, useResizeColumns),
|
|
198
|
-
getTableProps = _useTable.getTableProps,
|
|
199
|
-
getTableBodyProps = _useTable.getTableBodyProps,
|
|
200
|
-
headerGroups = _useTable.headerGroups,
|
|
201
|
-
rows = _useTable.rows,
|
|
202
|
-
prepareRow = _useTable.prepareRow,
|
|
203
|
-
setSortBy = _useTable.setSortBy,
|
|
204
|
-
totalColumnsWidth = _useTable.totalColumnsWidth;
|
|
205
|
-
|
|
206
|
-
var theadRowWidthRef = React.useRef(DEFAULT_ROW_WIDTH);
|
|
207
|
-
var prefixCls = usePrefixCls('block-table');
|
|
208
|
-
var onRowClick = useCallback(function (row) {
|
|
209
|
-
if (!onRowSelected) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
setSelectedRowId(row.id);
|
|
214
|
-
onRowSelected(row.original);
|
|
215
|
-
}, [onRowSelected]);
|
|
216
|
-
|
|
217
|
-
var renderHeader = function renderHeader(len) {
|
|
218
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
219
|
-
className: classnames("".concat(prefixCls, "-header"))
|
|
220
|
-
}, renderHeaderLeft ? renderHeaderLeft() : /*#__PURE__*/React.createElement("span", {
|
|
221
|
-
className: classnames("".concat(prefixCls, "-header-left"))
|
|
222
|
-
}, "\u5171\u8BA1", total || len, "\u6761"), /*#__PURE__*/React.createElement("div", {
|
|
223
|
-
className: classnames("".concat(prefixCls, "-header-right"))
|
|
224
|
-
}, renderHeaderRight ? renderHeaderRight() : null));
|
|
225
|
-
}; // 排序的方向 倒叙{ id: 'xx', desc: true }、正序{ id: 'xx', desc: false }、无序 { id: '', desc: undefined }
|
|
226
|
-
// 获取排序方向以及排序的id
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
var getSortBy = function getSortBy(id) {
|
|
230
|
-
var sortDirections = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['ascend', 'descend'];
|
|
231
|
-
var // 如果传了sortDirections,则使用传入的,否则使用默认的
|
|
232
|
-
sortOrder = arguments.length > 2 ? arguments[2] : undefined;
|
|
233
|
-
var res = {
|
|
234
|
-
id: id,
|
|
235
|
-
desc: undefined
|
|
236
|
-
};
|
|
237
|
-
var isSameCol = sortDirection.id === id;
|
|
238
|
-
var descMap = new Map([['ascend', false], ['descend', true]]);
|
|
239
|
-
var directions = allSortDirections || sortDirections; // 如果不是同一列 则返回默认排序 或者排序顺序的第一个
|
|
240
|
-
|
|
241
|
-
if (!isSameCol) {
|
|
242
|
-
if (sortOrder === 'ascend' || sortOrder === 'descend') {
|
|
243
|
-
res.desc = descMap.get(sortOrder);
|
|
244
|
-
} else {
|
|
245
|
-
res.desc = sortOrder ? sortOrder : descMap.get(directions[ARRAY_FIRST_INDEX]);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
return res;
|
|
249
|
-
} // 如果是同一列
|
|
250
|
-
// 如果列给了默认的sortOrder则不在变化
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
if (sortOrder === 'ascend' || sortOrder === 'descend') {
|
|
254
|
-
res.desc = descMap.get(sortOrder);
|
|
255
|
-
return res;
|
|
256
|
-
} // 在所有方向上 往后取一个
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
var lastSortDirection = sortDirection.desc ? 'descend' : 'ascend';
|
|
260
|
-
|
|
261
|
-
var index = _.findIndex(directions, function (item) {
|
|
262
|
-
return item === lastSortDirection;
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
var nextIndex = index + 1;
|
|
266
|
-
res.desc = descMap.get(directions[nextIndex]); // 如果没有排序方向,则返回默认排序对象
|
|
267
|
-
|
|
268
|
-
if (res.desc === undefined) {
|
|
269
|
-
res.id = '';
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
return res;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
var getHeaderProps = function getHeaderProps(column) {
|
|
276
|
-
// @ts-ignore
|
|
277
|
-
var id = column.id,
|
|
278
|
-
canSort = column.canSort,
|
|
279
|
-
sorter = column.sorter,
|
|
280
|
-
sortOrder = column.sortOrder,
|
|
281
|
-
sortDirections = column.sortDirections;
|
|
282
|
-
var toggleProps = column.getSortByToggleProps(); // 仅在Table设置sortable时,所有列的canSort为true,此时为前端排序
|
|
283
|
-
|
|
284
|
-
if (canSort) {
|
|
285
|
-
// client sort
|
|
286
|
-
return _objectSpread(_objectSpread({}, column.getHeaderProps(_objectSpread({}, toggleProps))), {}, {
|
|
287
|
-
onClick: function onClick(e) {
|
|
288
|
-
e.stopPropagation();
|
|
289
|
-
|
|
290
|
-
if (typeof toggleProps.onClick === 'function') {
|
|
291
|
-
var sortBy = getSortBy(id, sortDirections, sortOrder);
|
|
292
|
-
setSortBy(sortBy.desc === undefined ? [defaultSortObject] : [sortBy]); // 客户端排序时 需要重新设置排序
|
|
293
|
-
|
|
294
|
-
setSortDirection(sortBy);
|
|
295
|
-
onChange(sortBy);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
} // 当列设置sorter属性时,则为服务端排序
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
if (sorter) {
|
|
303
|
-
// server sort
|
|
304
|
-
return _objectSpread(_objectSpread({}, column.getHeaderProps({
|
|
305
|
-
style: {
|
|
306
|
-
cursor: 'pointer'
|
|
307
|
-
}
|
|
308
|
-
})), {}, {
|
|
309
|
-
onClick: function onClick(e) {
|
|
310
|
-
e.stopPropagation();
|
|
311
|
-
var sortBy = getSortBy(id, sortDirections, sortOrder);
|
|
312
|
-
setSortDirection(sortBy);
|
|
313
|
-
onChange(sortBy);
|
|
314
|
-
}
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
return column.getHeaderProps();
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
var SortIcons = function SortIcons(_ref3) {
|
|
322
|
-
var id = _ref3.id;
|
|
323
|
-
var currentSortId = sortDirection.id,
|
|
324
|
-
desc = sortDirection.desc;
|
|
325
|
-
|
|
326
|
-
if (id !== currentSortId || !sortable) {
|
|
327
|
-
return null;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
return desc ? /*#__PURE__*/React.createElement(Icon, {
|
|
331
|
-
className: "".concat(prefixCls, "-sortIcon"),
|
|
332
|
-
type: "sort_descending",
|
|
333
|
-
size: 12
|
|
334
|
-
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
335
|
-
className: "".concat(prefixCls, "-sortIcon"),
|
|
336
|
-
type: "sort_ascending",
|
|
337
|
-
size: 12
|
|
338
|
-
});
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
var scrollToTop = function scrollToTop() {
|
|
342
|
-
var INITIAL_OFFSET_TOP = 0;
|
|
343
|
-
|
|
344
|
-
if (tableBodyListRef && tableBodyListRef.current) {
|
|
345
|
-
tableBodyListRef.current.scrollTop = INITIAL_OFFSET_TOP;
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
React.useImperativeHandle(ref, function () {
|
|
350
|
-
return {
|
|
351
|
-
backToTop: function backToTop() {
|
|
352
|
-
scrollToTop();
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
});
|
|
356
|
-
var LoadingNode = /*#__PURE__*/React.createElement("div", {
|
|
357
|
-
className: classnames("".concat(prefixCls, "-loading"))
|
|
358
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
359
|
-
type: "waiting",
|
|
360
|
-
size: 16
|
|
361
|
-
}), "Loading");
|
|
362
|
-
|
|
363
|
-
var renderTableBody = function renderTableBody() {
|
|
364
|
-
if (loading && !rows.length) {
|
|
365
|
-
return LoadingNode;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
if (!loading && !rows.length) {
|
|
369
|
-
return renderEmpty ? renderEmpty() : /*#__PURE__*/React.createElement(Empty, {
|
|
370
|
-
description: "\u5F53\u524D\u65E0\u6570\u636E"
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
var renderRowList = function renderRowList() {
|
|
375
|
-
return data.map(function (item, index) {
|
|
376
|
-
var _classnames;
|
|
377
|
-
|
|
378
|
-
var row = rows[index];
|
|
379
|
-
prepareRow(row);
|
|
380
|
-
|
|
381
|
-
var _row$getRowProps = row.getRowProps(),
|
|
382
|
-
rowStyle = _row$getRowProps.style,
|
|
383
|
-
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
|
384
|
-
|
|
385
|
-
return /*#__PURE__*/React.createElement("div", Object.assign({}, rowProps, {
|
|
386
|
-
style: _objectSpread({}, rowStyle),
|
|
387
|
-
className: classnames("".concat(prefixCls, "-row"), (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-row-selected"), row.id === selectedRowId), _defineProperty(_classnames, rowClassName, rowClassName), _defineProperty(_classnames, "".concat(prefixCls, "-row-ellipsis"), ellipsis), _classnames)),
|
|
388
|
-
onClick: function onClick() {
|
|
389
|
-
return onRowClick(row);
|
|
390
|
-
},
|
|
391
|
-
key: row.id
|
|
392
|
-
}), row.cells.map(function (cell) {
|
|
393
|
-
return /*#__PURE__*/React.createElement("div", Object.assign({}, cell.getCellProps(), {
|
|
394
|
-
className: classnames("".concat(prefixCls, "-cell"))
|
|
395
|
-
}), cell.render('Cell'));
|
|
396
|
-
}));
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
401
|
-
className: classnames("".concat(prefixCls, "-list"), _defineProperty({}, "".concat(prefixCls, "-innerScroll"), innerScroll)),
|
|
402
|
-
id: RANDOM_ID,
|
|
403
|
-
ref: tableBodyListRef
|
|
404
|
-
}, innerScroll ? /*#__PURE__*/React.createElement(InfiniteScroll, {
|
|
405
|
-
dataLength: rows.length,
|
|
406
|
-
next: loadMore,
|
|
407
|
-
hasMore: !!hasNextPage,
|
|
408
|
-
loader: LoadingNode,
|
|
409
|
-
scrollableTarget: RANDOM_ID,
|
|
410
|
-
scrollThreshold: scrollThreshold
|
|
411
|
-
}, renderRowList()) : renderRowList());
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
return /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
415
|
-
onResize: function onResize(_ref4) {
|
|
416
|
-
var domWidth = _ref4.width;
|
|
417
|
-
setWidth(domWidth);
|
|
418
|
-
}
|
|
419
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
420
|
-
className: prefixCls,
|
|
421
|
-
ref: tableRef
|
|
422
|
-
}, showHeader && renderHeader(data.length), /*#__PURE__*/React.createElement("div", Object.assign({}, getTableProps(), {
|
|
423
|
-
className: classnames("".concat(prefixCls, "-table-wrap"), _defineProperty({}, "".concat(prefixCls, "-column-resizable"), resizeColumn))
|
|
424
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
425
|
-
className: "".concat(prefixCls, "-thead")
|
|
426
|
-
}, headerGroups.map(function (headerGroup) {
|
|
427
|
-
var _headerGroup$getHeade = headerGroup.getHeaderGroupProps(),
|
|
428
|
-
style = _headerGroup$getHeade.style,
|
|
429
|
-
headerGroupProps = _objectWithoutProperties(_headerGroup$getHeade, _excluded2);
|
|
430
|
-
|
|
431
|
-
theadRowWidthRef.current = (style === null || style === void 0 ? void 0 : style.width) || DEFAULT_ROW_WIDTH;
|
|
432
|
-
return /*#__PURE__*/React.createElement("div", Object.assign({}, headerGroupProps, {
|
|
433
|
-
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
434
|
-
width: resizeColumn ? style === null || style === void 0 ? void 0 : style.width : '100%'
|
|
435
|
-
}),
|
|
436
|
-
className: "".concat(prefixCls, "-row")
|
|
437
|
-
}), headerGroup.headers.map(function (column) {
|
|
438
|
-
var barPorps = resizeColumn ? column.getResizerProps() : {};
|
|
439
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
440
|
-
className: classnames(_defineProperty({}, "".concat(prefixCls, "-cell-sorting"), column.id === sortDirection.id), "".concat(prefixCls, "-cell")),
|
|
441
|
-
style: getHeaderProps(column).style,
|
|
442
|
-
key: column.id
|
|
443
|
-
}, /*#__PURE__*/React.createElement("div", Object.assign({
|
|
444
|
-
className: "".concat(prefixCls, "-cell-content")
|
|
445
|
-
}, getHeaderProps(column), {
|
|
446
|
-
style: {
|
|
447
|
-
width: '100%'
|
|
448
|
-
}
|
|
449
|
-
}), column.render('Header'), /*#__PURE__*/React.createElement(SortIcons, {
|
|
450
|
-
id: column.id
|
|
451
|
-
})), /*#__PURE__*/React.createElement("div", Object.assign({}, barPorps, {
|
|
452
|
-
className: classnames(_defineProperty({}, "".concat(prefixCls, "-dragBar"), resizeColumn), "".concat(prefixCls, "-bar"))
|
|
453
|
-
})));
|
|
454
|
-
}));
|
|
455
|
-
})), /*#__PURE__*/React.createElement("div", Object.assign({}, getTableBodyProps(), {
|
|
456
|
-
className: classnames("".concat(prefixCls, "-tbody"), _defineProperty({}, "".concat(prefixCls, "-innerScroll"), innerScroll)),
|
|
457
|
-
style: {
|
|
458
|
-
width: totalColumnsWidth
|
|
459
|
-
}
|
|
460
|
-
}), renderTableBody()))));
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export default /*#__PURE__*/React.forwardRef(Table);
|
|
1
|
+
import Table from './Table';
|
|
2
|
+
export default Table;
|
package/es/Table/interface.d.ts
CHANGED
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { IdType } from 'react-table';
|
|
3
3
|
export declare type TSortOrder = 'ascend' | 'descend' | false;
|
|
4
4
|
export interface ISort<T> {
|
|
5
5
|
id: IdType<T>;
|
|
6
6
|
desc?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface IColumn<
|
|
8
|
+
export interface IColumn<RecordType> {
|
|
9
9
|
title: string | null;
|
|
10
10
|
dataIndex: string;
|
|
11
|
-
render?: (value: any, row:
|
|
11
|
+
render?: (value: any, row: RecordType, index: number) => React.ReactNode;
|
|
12
12
|
width?: number;
|
|
13
13
|
minWidth?: number;
|
|
14
|
-
sorter?: boolean | 'string' | 'number' | 'basic' | 'datetime' | 'alphanumeric'
|
|
14
|
+
sorter?: boolean | 'string' | 'number' | 'basic' | 'datetime' | 'alphanumeric';
|
|
15
15
|
sortOrder?: TSortOrder;
|
|
16
16
|
sortDirections?: Array<'ascend' | 'descend'>;
|
|
17
17
|
selected?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export interface ITableProps<
|
|
20
|
-
columns: IColumn<
|
|
21
|
-
data:
|
|
22
|
-
|
|
23
|
-
onRowSelected?: (row: T) => void;
|
|
19
|
+
export interface ITableProps<RecordType> {
|
|
20
|
+
columns: IColumn<RecordType>[];
|
|
21
|
+
data: RecordType[];
|
|
22
|
+
onRowSelected?: (row: RecordType) => void;
|
|
24
23
|
loadMore?: () => void | Promise<void>;
|
|
25
24
|
hasNextPage?: boolean;
|
|
26
25
|
loading?: boolean;
|
|
27
|
-
renderHeaderLeft?: () => React.ReactNode;
|
|
28
|
-
renderHeaderRight?: () => React.ReactNode;
|
|
29
26
|
sortable?: boolean;
|
|
30
|
-
onChange?: (sort: ISort<
|
|
31
|
-
defaultSort?: ISort<
|
|
27
|
+
onChange?: (sort: ISort<RecordType>) => void;
|
|
28
|
+
defaultSort?: ISort<RecordType>;
|
|
32
29
|
sortDirections?: Array<'ascend' | 'descend'>;
|
|
33
30
|
resizeColumn?: boolean;
|
|
34
31
|
showHeader?: boolean;
|
|
35
32
|
innerScroll?: boolean;
|
|
36
33
|
ref?: React.RefObject<unknown>;
|
|
37
34
|
scrollThreshold?: string | number;
|
|
38
|
-
rowKey?: (row: any) => string;
|
|
39
35
|
rowClassName?: string;
|
|
40
36
|
ellipsis?: boolean;
|
|
41
|
-
|
|
37
|
+
rowKey?: string | ((row: RecordType) => string);
|
|
42
38
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
@ald-prefix: ant;
|
|
4
3
|
@ald-iconfont-css-prefix: anticon;
|
|
5
|
-
@table-row-height:
|
|
4
|
+
@table-row-height: 48px;
|
|
6
5
|
|
|
7
|
-
.
|
|
6
|
+
.ald-table {
|
|
8
7
|
display: flex;
|
|
9
8
|
flex-direction: column;
|
|
10
9
|
width: 100%;
|
|
@@ -25,9 +24,7 @@
|
|
|
25
24
|
&-cell {
|
|
26
25
|
flex-grow: 1;
|
|
27
26
|
height: unset;
|
|
28
|
-
padding: 12px;
|
|
29
27
|
color: @NL0;
|
|
30
|
-
line-height: 16px;
|
|
31
28
|
text-align: left;
|
|
32
29
|
word-break: break-all;
|
|
33
30
|
border-bottom: 1px solid @NL95;
|
|
@@ -39,10 +36,10 @@
|
|
|
39
36
|
|
|
40
37
|
&-row {
|
|
41
38
|
max-width: 100%;
|
|
42
|
-
height:
|
|
39
|
+
height: 48px;
|
|
43
40
|
|
|
44
41
|
&-ellipsis {
|
|
45
|
-
.
|
|
42
|
+
.ald-table-cell {
|
|
46
43
|
overflow: hidden;
|
|
47
44
|
white-space: nowrap;
|
|
48
45
|
text-overflow: ellipsis;
|
|
@@ -51,15 +48,24 @@
|
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
&-thead {
|
|
54
|
-
.
|
|
51
|
+
.ald-table-row {
|
|
52
|
+
height: 48px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ald-table-cell {
|
|
55
56
|
position: relative;
|
|
57
|
+
padding: 14px 24px;
|
|
56
58
|
color: @NL50;
|
|
59
|
+
line-height: 20px;
|
|
60
|
+
background-color: @BG97;
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
.ald-table-cell-content {
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
text-overflow: ellipsis;
|
|
60
66
|
}
|
|
61
67
|
|
|
62
|
-
.
|
|
68
|
+
.ald-table-bar {
|
|
63
69
|
position: absolute;
|
|
64
70
|
top: 50%;
|
|
65
71
|
right: -12px;
|
|
@@ -80,7 +86,7 @@
|
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
&:last-child {
|
|
83
|
-
.
|
|
89
|
+
.ald-table-bar {
|
|
84
90
|
display: none;
|
|
85
91
|
}
|
|
86
92
|
}
|
|
@@ -91,31 +97,55 @@
|
|
|
91
97
|
flex: 1;
|
|
92
98
|
overflow: hidden;
|
|
93
99
|
|
|
94
|
-
.
|
|
100
|
+
.ald-empty {
|
|
95
101
|
display: flex;
|
|
96
102
|
justify-content: center;
|
|
97
|
-
padding-top: 80px;
|
|
98
103
|
}
|
|
99
104
|
|
|
100
|
-
.
|
|
105
|
+
.ald-table-row {
|
|
106
|
+
height: 68px;
|
|
107
|
+
|
|
108
|
+
.ald-table-cell {
|
|
109
|
+
padding: 24px;
|
|
110
|
+
line-height: 20px;
|
|
111
|
+
}
|
|
112
|
+
|
|
101
113
|
&:hover {
|
|
102
114
|
background-color: @NL97;
|
|
103
115
|
}
|
|
104
116
|
|
|
105
117
|
&-selected {
|
|
106
|
-
background-color: @
|
|
118
|
+
background-color: @B98;
|
|
107
119
|
|
|
108
120
|
&:hover {
|
|
109
|
-
background-color: @
|
|
121
|
+
background-color: @B98;
|
|
110
122
|
}
|
|
111
123
|
}
|
|
112
124
|
}
|
|
113
125
|
}
|
|
114
126
|
|
|
115
127
|
&-loading {
|
|
128
|
+
height: 48px;
|
|
116
129
|
color: @NL80;
|
|
117
130
|
line-height: @table-row-height;
|
|
118
131
|
text-align: center;
|
|
132
|
+
|
|
133
|
+
&-icon {
|
|
134
|
+
margin-right: 4px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&-empty-icon {
|
|
139
|
+
padding-top: 52px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&-init-loading {
|
|
143
|
+
.ald-table-loading {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
padding-top: 84px;
|
|
148
|
+
}
|
|
119
149
|
}
|
|
120
150
|
|
|
121
151
|
&-header {
|
|
@@ -175,10 +205,10 @@
|
|
|
175
205
|
&-column-resizable {
|
|
176
206
|
overflow: overlay;
|
|
177
207
|
|
|
178
|
-
.
|
|
179
|
-
.
|
|
180
|
-
.
|
|
181
|
-
.
|
|
208
|
+
.ald-table-thead,
|
|
209
|
+
.ald-table-tbody {
|
|
210
|
+
.ald-table-row {
|
|
211
|
+
.ald-table {
|
|
182
212
|
&-cell {
|
|
183
213
|
flex: none;
|
|
184
214
|
}
|
package/es/Tabs/index.d.ts
CHANGED