@aloudata/aloudata-design 0.4.0-beta.9 → 0.4.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/LICENSE +21 -0
- package/README.md +22 -220
- package/dist/Alert/index.d.ts +4 -0
- package/dist/Alert/index.js +2 -0
- package/dist/Alert/style/index.js +2 -0
- package/dist/Avatar/component/Avatar/index.js +44 -0
- package/dist/Avatar/index.js +4 -0
- package/dist/Avatar/style/index.js +2 -0
- package/dist/Breadcrumb/index.js +47 -0
- package/dist/Breadcrumb/style/index.js +2 -0
- package/dist/Button/index.d.ts +58 -0
- package/dist/Button/index.js +116 -0
- package/dist/Button/style/index.js +2 -0
- package/dist/Button/style/index.less +356 -0
- package/dist/Card/index.js +3 -0
- package/dist/Card/style/index.js +2 -0
- package/dist/Checkbox/component/CheckboxGroup/index.js +28 -0
- package/dist/Checkbox/index.js +24 -0
- package/dist/Checkbox/style/index.js +2 -0
- package/dist/Col/index.js +4 -0
- package/dist/Col/style/index.js +2 -0
- package/dist/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/dist/ConfigProvider/defaultRenderEmpty.js +37 -0
- package/dist/ConfigProvider/index.js +3 -0
- package/dist/ConfigProvider/sizeContext.d.ts +9 -0
- package/dist/ConfigProvider/style/index.js +2 -0
- package/dist/DatePicker/index.js +2 -0
- package/dist/DatePicker/style/index.js +2 -0
- package/dist/Divider/index.js +13 -0
- package/dist/Divider/style/index.js +2 -0
- package/dist/DoubleCircleIcon/index.d.ts +9 -0
- package/dist/DoubleCircleIcon/index.js +33 -0
- package/dist/DoubleCircleIcon/style/index.less +23 -0
- package/dist/Drawer/index.js +4 -0
- package/dist/Drawer/style/index.js +2 -0
- package/dist/Dropdown/Button.js +32 -0
- package/dist/Dropdown/index.js +24 -0
- package/dist/Dropdown/style/index.js +2 -0
- package/dist/Empty/image/Data.d.ts +3 -0
- package/dist/Empty/image/Data.js +222 -0
- package/dist/Empty/image/Search.d.ts +3 -0
- package/dist/Empty/image/Search.js +212 -0
- package/dist/Empty/image/SearchSmall.d.ts +3 -0
- package/dist/Empty/image/SearchSmall.js +20 -0
- package/dist/Empty/image/User.d.ts +3 -0
- package/dist/Empty/image/User.js +199 -0
- package/dist/Empty/image/WorkBook.d.ts +3 -0
- package/dist/Empty/image/WorkBook.js +205 -0
- package/dist/Empty/index.d.ts +23 -0
- package/dist/Empty/index.js +81 -0
- package/dist/Empty/style/index.js +1 -0
- package/dist/Empty/style/index.less +57 -0
- package/dist/Form/index.js +8 -0
- package/dist/Form/style/index.js +2 -0
- package/dist/Icon/components/Icon.js +29 -0
- package/dist/Icon/icons.js +1443 -0
- package/dist/Icon/index.js +2 -0
- package/dist/Icon/style/index.less +0 -0
- package/dist/Input/components/Group/index.js +24 -0
- package/dist/Input/components/Input/index.js +32 -0
- package/dist/Input/components/Password/index.js +40 -0
- package/dist/Input/components/TextArea/index.js +27 -0
- package/dist/Input/index.js +9 -0
- package/dist/Input/style/index.js +2 -0
- package/dist/InputNumber/index.js +33 -0
- package/dist/InputNumber/style/index.js +2 -0
- package/dist/InputNumber/type.d.ts +161 -0
- package/dist/Layout/index.js +2 -0
- package/dist/Layout/style/index.js +2 -0
- package/dist/Menu/Divider.js +6 -0
- package/dist/Menu/MenuItem.js +6 -0
- package/dist/Menu/SubMenu.js +23 -0
- package/dist/Menu/index.d.ts +23 -0
- package/dist/Menu/index.js +34 -0
- package/dist/Menu/style/dropdown.less +51 -0
- package/dist/Menu/style/index.js +2 -0
- package/dist/Menu/style/index.less +43 -0
- package/dist/Modal/index.d.ts +37 -0
- package/dist/Modal/index.js +212 -0
- package/dist/Modal/locale.js +20 -0
- package/dist/Modal/style/index.js +2 -0
- package/dist/Modal/style/index.less +88 -0
- package/dist/Navigator/components/Menu/index.js +53 -0
- package/dist/Navigator/index.js +35 -0
- package/dist/Navigator/style/index.js +2 -0
- package/dist/Popconfirm/index.d.ts +10 -0
- package/dist/Popconfirm/index.js +58 -0
- package/dist/Popconfirm/style/index.js +2 -0
- package/dist/Popconfirm/style/index.less +28 -0
- package/dist/Popover/index.js +23 -0
- package/dist/Popover/style/index.js +2 -0
- package/dist/Progress/index.js +3 -0
- package/dist/Progress/style/index.js +2 -0
- package/dist/Radio/components/Group/index.d.ts +6 -0
- package/dist/Radio/components/Radio/index.js +95 -0
- package/dist/Radio/index.js +5 -0
- package/dist/Radio/style/index.js +2 -0
- package/dist/Row/index.js +2 -0
- package/dist/Row/style/index.js +2 -0
- package/dist/Select/components/MultipleOption.d.ts +10 -0
- package/dist/Select/components/MultipleOption.js +23 -0
- package/dist/Select/components/SingleOption.d.ts +10 -0
- package/dist/Select/components/SingleOption.js +27 -0
- package/dist/Select/index.d.ts +9 -0
- package/dist/Select/index.js +223 -0
- package/dist/Select/style/index.js +2 -0
- package/dist/Select/style/index.less +109 -0
- package/dist/Select/style/multiple.less +43 -0
- package/dist/Select/style/single.less +27 -0
- package/dist/Select/style/size.less +159 -0
- package/dist/Select/style/status.less +33 -0
- package/dist/Select/style/variables.less +35 -0
- package/dist/Skeleton/index.js +3 -0
- package/dist/Skeleton/style/index.js +2 -0
- package/dist/Space/index.js +2 -0
- package/dist/Space/style/index.js +2 -0
- package/dist/Spin/CustomIcon/index.d.ts +8 -0
- package/dist/Spin/CustomIcon/index.js +26 -0
- package/dist/Spin/CustomIcon/index.less +125 -0
- package/dist/Spin/Icon/index.d.ts +4 -0
- package/dist/Spin/Icon/index.js +7 -0
- package/dist/Spin/Icon/index.less +41 -0
- package/dist/Spin/index.d.ts +7 -0
- package/dist/Spin/index.js +32 -0
- package/dist/Spin/style/index.js +2 -0
- package/dist/Spin/style/index.less +1 -0
- package/dist/Steps/components/CustomDot/index.d.ts +2 -0
- package/dist/Steps/components/CustomDot/index.js +8 -0
- package/dist/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/dist/Steps/components/ProcessIcon/index.js +22 -0
- package/dist/Steps/components/Step/index.js +47 -0
- package/dist/Steps/index.d.ts +46 -0
- package/dist/Steps/index.js +34 -0
- package/dist/Steps/matchMedia.mock.d.ts +0 -0
- package/dist/Steps/matchMedia.mock.js +17 -0
- package/dist/Steps/style/index.js +2 -0
- package/dist/Steps/style/index.less +337 -0
- package/dist/Switch/index.js +70 -0
- package/dist/Switch/style/index.js +2 -0
- package/dist/Table/Table.js +401 -0
- package/dist/Table/components/Empty/index.js +16 -0
- package/dist/Table/components/Loading/index.js +14 -0
- package/dist/Table/components/TableBodyRowList/index.js +95 -0
- package/dist/Table/components/TableHead/index.js +262 -0
- package/dist/Table/constant.d.ts +0 -0
- package/dist/Table/constant.js +0 -0
- package/dist/Table/hooks/useFrame.js +90 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table/style/index.js +2 -0
- package/dist/Table/style/index.less +243 -0
- package/dist/Table/style/variable.less +5 -0
- package/dist/Table/utils.d.ts +15 -0
- package/dist/Table/utils.js +139 -0
- package/dist/Tabs/TabPane.js +6 -0
- package/dist/Tabs/index.js +48 -0
- package/dist/Tabs/style/index.js +2 -0
- package/dist/Tabs/style/index.less +168 -0
- package/dist/Tooltip/style/index.js +2 -0
- package/dist/Tooltip/style/index.less +17 -0
- package/dist/Tree/demo/basic/index.d.ts +3 -0
- package/dist/Tree/demo/basic/index.js +34 -0
- package/dist/Tree/index.d.ts +13 -0
- package/dist/Tree/index.js +19 -0
- package/dist/Tree/style/index.js +2 -0
- package/dist/Tree/style/index.less +45 -0
- package/dist/Typography/index.js +2 -0
- package/dist/Typography/style/index.js +2 -0
- package/dist/Upload/index.d.ts +4 -0
- package/dist/Upload/index.js +2 -0
- package/dist/Upload/style/index.js +2 -0
- package/dist/_utils/hooks/useControlledState.d.ts +2 -0
- package/dist/_utils/hooks/usePrefixCls.d.ts +2 -0
- package/dist/_utils/hooks/usePrefixCls.js +13 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +43 -0
- package/dist/locale/default.js +2 -0
- package/dist/locale-provider/context.d.ts +7 -0
- package/dist/locale-provider/default.js +2 -0
- package/dist/locale-provider/en_US.js +2 -0
- package/dist/locale-provider/index.d.ts +65 -0
- package/dist/locale-provider/index.js +105 -0
- package/dist/locale-provider/style/index.js +1 -0
- package/dist/locale-provider/zh_CN.js +2 -0
- package/dist/message/index.d.ts +14 -0
- package/dist/message/index.js +137 -0
- package/dist/message/style/color.less +55 -0
- package/dist/message/style/index.js +2 -0
- package/dist/message/style/index.less +32 -0
- package/dist/notification/index.d.ts +3 -0
- package/dist/notification/index.js +3 -0
- package/dist/notification/style/index.js +2 -0
- package/dist/style/index.js +1 -0
- package/dist/style/index.less +4 -0
- package/dist/style/themes/default/themeColor.module.less +439 -0
- package/package.json +74 -99
- package/es/Alert/index.d.ts +0 -4
- package/es/Alert/index.js +0 -3
- package/es/Alert/style/index.js +0 -2
- package/es/Avatar/component/Avatar/index.js +0 -42
- package/es/Avatar/index.js +0 -4
- package/es/Avatar/style/index.js +0 -2
- package/es/Breadcrumb/index.js +0 -46
- package/es/Breadcrumb/style/index.js +0 -2
- package/es/Button/index.d.ts +0 -49
- package/es/Button/index.js +0 -123
- package/es/Button/style/index.js +0 -2
- package/es/Button/style/index.less +0 -355
- package/es/Card/index.js +0 -3
- package/es/Card/style/index.js +0 -2
- package/es/Checkbox/component/CheckboxGroup/index.js +0 -27
- package/es/Checkbox/index.js +0 -23
- package/es/Checkbox/style/index.js +0 -2
- package/es/Col/index.js +0 -3
- package/es/Col/style/index.js +0 -2
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
- package/es/ConfigProvider/defaultRenderEmpty.js +0 -37
- package/es/ConfigProvider/index.js +0 -4
- package/es/ConfigProvider/sizeContext.d.ts +0 -9
- package/es/ConfigProvider/style/index.js +0 -2
- package/es/DatePicker/index.js +0 -3
- package/es/DatePicker/style/index.js +0 -2
- package/es/Divider/index.js +0 -12
- package/es/Divider/style/index.js +0 -2
- package/es/Drawer/index.js +0 -3
- package/es/Drawer/style/index.js +0 -2
- package/es/Dropdown/Button.js +0 -34
- package/es/Dropdown/index.js +0 -26
- package/es/Dropdown/style/index.d.ts +0 -3
- package/es/Dropdown/style/index.js +0 -3
- package/es/Empty/image/Authority.d.ts +0 -3
- package/es/Empty/image/Authority.js +0 -360
- package/es/Empty/image/Dataspace.d.ts +0 -3
- package/es/Empty/image/Dataspace.js +0 -271
- package/es/Empty/image/Search.d.ts +0 -3
- package/es/Empty/image/Search.js +0 -156
- package/es/Empty/image/Simple.d.ts +0 -3
- package/es/Empty/image/Simple.js +0 -20
- package/es/Empty/image/Worksheet.d.ts +0 -3
- package/es/Empty/image/Worksheet.js +0 -270
- package/es/Empty/image/empty.d.ts +0 -3
- package/es/Empty/image/empty.js +0 -139
- package/es/Empty/index.d.ts +0 -23
- package/es/Empty/index.js +0 -86
- package/es/Empty/style/index.js +0 -1
- package/es/Empty/style/index.less +0 -69
- package/es/Form/index.js +0 -3
- package/es/Form/style/index.js +0 -2
- package/es/Icon/components/Icon.js +0 -27
- package/es/Icon/icons/AddLine.d.ts +0 -13
- package/es/Icon/icons/AddLine.js +0 -66
- package/es/Icon/icons/AlertFill.d.ts +0 -13
- package/es/Icon/icons/AlertFill.js +0 -73
- package/es/Icon/icons/ArrowsDownLine.d.ts +0 -13
- package/es/Icon/icons/ArrowsDownLine.js +0 -66
- package/es/Icon/icons/CancelFill.d.ts +0 -13
- package/es/Icon/icons/CancelFill.js +0 -73
- package/es/Icon/icons/CheckFill.d.ts +0 -13
- package/es/Icon/icons/CheckFill.js +0 -73
- package/es/Icon/icons/CheckLine.d.ts +0 -13
- package/es/Icon/icons/CheckLine.js +0 -73
- package/es/Icon/icons/CloseLine.d.ts +0 -13
- package/es/Icon/icons/CloseLine.js +0 -66
- package/es/Icon/icons/DatabaseLine.d.ts +0 -13
- package/es/Icon/icons/DatabaseLine.js +0 -66
- package/es/Icon/icons/Deleteline.d.ts +0 -13
- package/es/Icon/icons/Deleteline.js +0 -66
- package/es/Icon/icons/DownloadLine.d.ts +0 -13
- package/es/Icon/icons/DownloadLine.js +0 -73
- package/es/Icon/icons/ErrorFill.d.ts +0 -13
- package/es/Icon/icons/ErrorFill.js +0 -73
- package/es/Icon/icons/EyeOffLine.d.ts +0 -13
- package/es/Icon/icons/EyeOffLine.js +0 -73
- package/es/Icon/icons/EyeOnLine.d.ts +0 -13
- package/es/Icon/icons/EyeOnLine.js +0 -66
- package/es/Icon/icons/FileLine.d.ts +0 -13
- package/es/Icon/icons/FileLine.js +0 -73
- package/es/Icon/icons/HomeFill.d.ts +0 -13
- package/es/Icon/icons/HomeFill.js +0 -73
- package/es/Icon/icons/IconBase.withSpan.tpl +0 -58
- package/es/Icon/icons/LightningLine.d.ts +0 -13
- package/es/Icon/icons/LightningLine.js +0 -66
- package/es/Icon/icons/Loading.d.ts +0 -13
- package/es/Icon/icons/Loading.js +0 -66
- package/es/Icon/icons/More.d.ts +0 -13
- package/es/Icon/icons/More.js +0 -66
- package/es/Icon/icons/NewWindowsLine.d.ts +0 -13
- package/es/Icon/icons/NewWindowsLine.js +0 -74
- package/es/Icon/icons/SearchLine.d.ts +0 -13
- package/es/Icon/icons/SearchLine.js +0 -73
- package/es/Icon/icons/SortAscendingLine.d.ts +0 -13
- package/es/Icon/icons/SortAscendingLine.js +0 -66
- package/es/Icon/icons/SortDescendingLine.d.ts +0 -13
- package/es/Icon/icons/SortDescendingLine.js +0 -66
- package/es/Icon/icons/TextLine.d.ts +0 -13
- package/es/Icon/icons/TextLine.js +0 -73
- package/es/Icon/icons/UserLine.d.ts +0 -13
- package/es/Icon/icons/UserLine.js +0 -73
- package/es/Icon/icons/style.css +0 -9
- package/es/Icon/icons/style.css.d.ts +0 -10
- package/es/Icon/icons.js +0 -1590
- package/es/Icon/index.js +0 -2
- package/es/Icon/style/index.d.ts +0 -1
- package/es/Icon/style/index.js +0 -1
- package/es/Input/components/Group/index.js +0 -22
- package/es/Input/components/Input/index.js +0 -30
- package/es/Input/components/Password/index.js +0 -41
- package/es/Input/components/TextArea/index.js +0 -25
- package/es/Input/index.js +0 -9
- package/es/Input/style/index.d.ts +0 -3
- package/es/Input/style/index.js +0 -3
- package/es/InputNumber/index.js +0 -32
- package/es/InputNumber/style/index.js +0 -2
- package/es/InputNumber/type.d.ts +0 -161
- package/es/Layout/index.js +0 -3
- package/es/Layout/style/index.js +0 -2
- package/es/Menu/Divider.js +0 -7
- package/es/Menu/MenuItem.js +0 -7
- package/es/Menu/SubMenu.js +0 -22
- package/es/Menu/index.d.ts +0 -23
- package/es/Menu/index.js +0 -24
- package/es/Menu/style/index.d.ts +0 -3
- package/es/Menu/style/index.js +0 -3
- package/es/Menu/style/index.less +0 -41
- package/es/Modal/index.d.ts +0 -21
- package/es/Modal/index.js +0 -99
- package/es/Modal/locale.js +0 -20
- package/es/Modal/style/index.js +0 -2
- package/es/Modal/style/index.less +0 -209
- package/es/Navigator/components/Menu/index.js +0 -51
- package/es/Navigator/index.js +0 -35
- package/es/Navigator/style/index.js +0 -2
- package/es/PageHeader/index.d.ts +0 -3
- package/es/PageHeader/index.js +0 -3
- package/es/PageHeader/style/index.js +0 -2
- package/es/Popconfirm/index.d.ts +0 -3
- package/es/Popconfirm/index.js +0 -2
- package/es/Popconfirm/style/index.js +0 -2
- package/es/Popover/index.js +0 -22
- package/es/Popover/style/index.js +0 -2
- package/es/Progress/index.js +0 -2
- package/es/Progress/style/index.js +0 -2
- package/es/Radio/components/Group/index.d.ts +0 -6
- package/es/Radio/components/Radio/index.js +0 -95
- package/es/Radio/index.js +0 -5
- package/es/Radio/style/index.js +0 -2
- package/es/Row/index.js +0 -3
- package/es/Row/style/index.js +0 -2
- package/es/Select/index.d.ts +0 -39
- package/es/Select/index.js +0 -156
- package/es/Select/rc-select/BaseSelect.d.ts +0 -116
- package/es/Select/rc-select/BaseSelect.js +0 -641
- package/es/Select/rc-select/OptGroup.d.ts +0 -12
- package/es/Select/rc-select/OptGroup.js +0 -7
- package/es/Select/rc-select/Option.d.ts +0 -14
- package/es/Select/rc-select/Option.js +0 -7
- package/es/Select/rc-select/OptionList.d.ts +0 -10
- package/es/Select/rc-select/OptionList.js +0 -401
- package/es/Select/rc-select/Select.d.ts +0 -109
- package/es/Select/rc-select/Select.js +0 -547
- package/es/Select/rc-select/SelectContext.d.ts +0 -20
- package/es/Select/rc-select/SelectContext.js +0 -4
- package/es/Select/rc-select/SelectTrigger.d.ts +0 -30
- package/es/Select/rc-select/SelectTrigger.js +0 -136
- package/es/Select/rc-select/Selector/Input.d.ts +0 -26
- package/es/Select/rc-select/Selector/Input.js +0 -114
- package/es/Select/rc-select/Selector/MultipleSelector.d.ts +0 -16
- package/es/Select/rc-select/Selector/MultipleSelector.js +0 -246
- package/es/Select/rc-select/Selector/SingleSelector.d.ts +0 -8
- package/es/Select/rc-select/Selector/SingleSelector.js +0 -112
- package/es/Select/rc-select/Selector/index.d.ts +0 -80
- package/es/Select/rc-select/Selector/index.js +0 -194
- package/es/Select/rc-select/TransBtn.d.ts +0 -12
- package/es/Select/rc-select/TransBtn.js +0 -42
- package/es/Select/rc-select/hooks/useBaseProps.d.ts +0 -13
- package/es/Select/rc-select/hooks/useBaseProps.js +0 -11
- package/es/Select/rc-select/hooks/useCache.d.ts +0 -7
- package/es/Select/rc-select/hooks/useCache.js +0 -49
- package/es/Select/rc-select/hooks/useDelayReset.d.ts +0 -5
- package/es/Select/rc-select/hooks/useDelayReset.js +0 -50
- package/es/Select/rc-select/hooks/useFilterOptions.d.ts +0 -3
- package/es/Select/rc-select/hooks/useFilterOptions.js +0 -75
- package/es/Select/rc-select/hooks/useId.d.ts +0 -5
- package/es/Select/rc-select/hooks/useId.js +0 -47
- package/es/Select/rc-select/hooks/useLayoutEffect.d.ts +0 -5
- package/es/Select/rc-select/hooks/useLayoutEffect.js +0 -17
- package/es/Select/rc-select/hooks/useLock.d.ts +0 -7
- package/es/Select/rc-select/hooks/useLock.js +0 -35
- package/es/Select/rc-select/hooks/useOptions.d.ts +0 -11
- package/es/Select/rc-select/hooks/useOptions.js +0 -53
- package/es/Select/rc-select/hooks/useRefFunc.d.ts +0 -5
- package/es/Select/rc-select/hooks/useRefFunc.js +0 -15
- package/es/Select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -1
- package/es/Select/rc-select/hooks/useSelectTriggerControl.js +0 -40
- package/es/Select/rc-select/index.d.ts +0 -10
- package/es/Select/rc-select/index.js +0 -7
- package/es/Select/rc-select/interface.d.ts +0 -10
- package/es/Select/rc-select/utils/commonUtil.d.ts +0 -4
- package/es/Select/rc-select/utils/commonUtil.js +0 -12
- package/es/Select/rc-select/utils/keyUtil.d.ts +0 -2
- package/es/Select/rc-select/utils/keyUtil.js +0 -8
- package/es/Select/rc-select/utils/legacyUtil.d.ts +0 -3
- package/es/Select/rc-select/utils/legacyUtil.js +0 -58
- package/es/Select/rc-select/utils/platformUtil.d.ts +0 -1
- package/es/Select/rc-select/utils/platformUtil.js +0 -4
- package/es/Select/rc-select/utils/valueUtil.d.ts +0 -22
- package/es/Select/rc-select/utils/valueUtil.js +0 -157
- package/es/Select/rc-select/utils/warningPropsUtil.d.ts +0 -3
- package/es/Select/rc-select/utils/warningPropsUtil.js +0 -114
- package/es/Select/style/index.d.ts +0 -3
- package/es/Select/style/index.js +0 -4
- package/es/Select/style/index.less +0 -340
- package/es/Select/style/multiple.less +0 -222
- package/es/Select/style/rtl.less +0 -168
- package/es/Select/style/select.less +0 -337
- package/es/Select/style/single.less +0 -179
- package/es/Select/style/status.less +0 -48
- package/es/Select/style/variables.less +0 -67
- package/es/Select/style/variables.less.d.ts +0 -190
- package/es/Select/utils/iconUtil.d.ts +0 -24
- package/es/Select/utils/iconUtil.js +0 -86
- package/es/Skeleton/index.js +0 -2
- package/es/Skeleton/style/index.js +0 -2
- package/es/Space/index.js +0 -2
- package/es/Space/style/index.js +0 -2
- package/es/Spin/index.d.ts +0 -4
- package/es/Spin/index.js +0 -2
- package/es/Spin/style/index.js +0 -2
- package/es/Steps/components/ProcessIcon/index.d.ts +0 -6
- package/es/Steps/components/ProcessIcon/index.js +0 -8
- package/es/Steps/components/Step/index.js +0 -45
- package/es/Steps/index.d.ts +0 -37
- package/es/Steps/index.js +0 -31
- package/es/Steps/matchMedia.mock.d.ts +0 -1
- package/es/Steps/matchMedia.mock.js +0 -17
- package/es/Steps/style/index.js +0 -2
- package/es/Steps/style/index.less +0 -258
- package/es/Switch/index.js +0 -72
- package/es/Switch/style/index.js +0 -2
- package/es/Table/Table.js +0 -388
- package/es/Table/components/Empty/index.js +0 -16
- package/es/Table/components/Loading/index.js +0 -18
- package/es/Table/components/TableBodyRowList/index.js +0 -91
- package/es/Table/components/TableHead/index.js +0 -261
- package/es/Table/constant.d.ts +0 -1
- package/es/Table/constant.js +0 -1
- package/es/Table/hooks/useFrame.js +0 -90
- package/es/Table/index.js +0 -2
- package/es/Table/interface.js +0 -1
- package/es/Table/style/index.js +0 -2
- package/es/Table/style/index.less +0 -238
- package/es/Table/style/variable.less +0 -5
- package/es/Table/style/variable.less.d.ts +0 -7
- package/es/Table/utils.d.ts +0 -15
- package/es/Table/utils.js +0 -138
- package/es/Tabs/TabPane.js +0 -6
- package/es/Tabs/index.js +0 -48
- package/es/Tabs/style/index.d.ts +0 -3
- package/es/Tabs/style/index.js +0 -3
- package/es/Tabs/style/index.less +0 -166
- package/es/Tooltip/style/index.js +0 -2
- package/es/Tooltip/style/index.less +0 -15
- package/es/Tree/index.d.ts +0 -5
- package/es/Tree/index.js +0 -2
- package/es/Tree/style/index.js +0 -2
- package/es/Tree/style/index.less +0 -1
- package/es/Typography/index.js +0 -3
- package/es/Typography/style/index.js +0 -2
- package/es/Typography/style/index.less +0 -1
- package/es/Upload/index.d.ts +0 -4
- package/es/Upload/index.js +0 -3
- package/es/Upload/style/index.js +0 -2
- package/es/Upload/style/index.less +0 -1
- package/es/_utils/hooks/useControlledState.d.ts +0 -2
- package/es/_utils/hooks/usePrefixCls.d.ts +0 -2
- package/es/_utils/hooks/usePrefixCls.js +0 -14
- package/es/index.d.ts +0 -81
- package/es/index.js +0 -42
- package/es/locale/default.js +0 -2
- package/es/locale-provider/context.d.ts +0 -7
- package/es/locale-provider/default.js +0 -2
- package/es/locale-provider/en_US.js +0 -2
- package/es/locale-provider/index.d.ts +0 -65
- package/es/locale-provider/index.js +0 -102
- package/es/locale-provider/style/index.js +0 -1
- package/es/locale-provider/zh_CN.js +0 -2
- package/es/message/index.d.ts +0 -5
- package/es/message/index.js +0 -3
- package/es/message/style/index.js +0 -2
- package/es/message/style/index.less +0 -1
- package/es/notification/index.d.ts +0 -4
- package/es/notification/index.js +0 -3
- package/es/notification/style/index.js +0 -2
- package/es/notification/style/index.less +0 -1
- package/es/style/index.js +0 -1
- package/es/style/index.less +0 -5
- package/es/style/themes/default/themeColor.module.less +0 -445
- package/lib/Alert/index.d.ts +0 -4
- package/lib/Alert/index.js +0 -15
- package/lib/Alert/style/index.js +0 -5
- package/lib/Alert/style/index.less +0 -1
- package/lib/Avatar/component/Avatar/index.d.ts +0 -84
- package/lib/Avatar/component/Avatar/index.js +0 -61
- package/lib/Avatar/index.d.ts +0 -3
- package/lib/Avatar/index.js +0 -16
- package/lib/Avatar/style/index.js +0 -5
- package/lib/Avatar/style/index.less +0 -34
- package/lib/Breadcrumb/index.d.ts +0 -11
- package/lib/Breadcrumb/index.js +0 -59
- package/lib/Breadcrumb/style/index.js +0 -5
- package/lib/Breadcrumb/style/index.less +0 -36
- package/lib/Button/index.d.ts +0 -49
- package/lib/Button/index.js +0 -139
- package/lib/Button/style/index.js +0 -5
- package/lib/Button/style/index.less +0 -355
- package/lib/Button/style/variables.less +0 -67
- package/lib/Card/index.d.ts +0 -3
- package/lib/Card/index.js +0 -15
- package/lib/Card/style/index.d.ts +0 -2
- package/lib/Card/style/index.js +0 -5
- package/lib/Card/style/index.less +0 -1
- package/lib/Checkbox/component/CheckboxGroup/index.d.ts +0 -4
- package/lib/Checkbox/component/CheckboxGroup/index.js +0 -42
- package/lib/Checkbox/index.d.ts +0 -10
- package/lib/Checkbox/index.js +0 -37
- package/lib/Checkbox/style/index.d.ts +0 -2
- package/lib/Checkbox/style/index.js +0 -5
- package/lib/Checkbox/style/index.less +0 -133
- package/lib/Checkbox/type.d.ts +0 -94
- package/lib/Checkbox/type.js +0 -13
- package/lib/Col/index.d.ts +0 -4
- package/lib/Col/index.js +0 -15
- package/lib/Col/style/index.d.ts +0 -2
- package/lib/Col/style/index.js +0 -5
- package/lib/Col/style/index.less +0 -1
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
- package/lib/ConfigProvider/defaultRenderEmpty.js +0 -55
- package/lib/ConfigProvider/index.d.ts +0 -4
- package/lib/ConfigProvider/index.js +0 -41
- package/lib/ConfigProvider/sizeContext.d.ts +0 -9
- package/lib/ConfigProvider/sizeContext.js +0 -30
- package/lib/ConfigProvider/style/index.d.ts +0 -2
- package/lib/ConfigProvider/style/index.js +0 -5
- package/lib/ConfigProvider/style/index.less +0 -1
- package/lib/DatePicker/index.d.ts +0 -4
- package/lib/DatePicker/index.js +0 -15
- package/lib/DatePicker/style/index.d.ts +0 -2
- package/lib/DatePicker/style/index.js +0 -5
- package/lib/DatePicker/style/index.less +0 -1
- package/lib/Divider/index.d.ts +0 -41
- package/lib/Divider/index.js +0 -25
- package/lib/Divider/style/index.d.ts +0 -2
- package/lib/Divider/style/index.js +0 -5
- package/lib/Divider/style/index.less +0 -5
- package/lib/Divider/style/index.less.d.ts +0 -183
- package/lib/Drawer/index.d.ts +0 -4
- package/lib/Drawer/index.js +0 -15
- package/lib/Drawer/style/index.d.ts +0 -2
- package/lib/Drawer/style/index.js +0 -5
- package/lib/Drawer/style/index.less +0 -1
- package/lib/Dropdown/Button.d.ts +0 -69
- package/lib/Dropdown/Button.js +0 -48
- package/lib/Dropdown/index.d.ts +0 -86
- package/lib/Dropdown/index.js +0 -39
- package/lib/Dropdown/style/index.d.ts +0 -3
- package/lib/Dropdown/style/index.js +0 -7
- package/lib/Dropdown/style/index.less +0 -73
- package/lib/Empty/image/Authority.d.ts +0 -3
- package/lib/Empty/image/Authority.js +0 -374
- package/lib/Empty/image/Dataspace.d.ts +0 -3
- package/lib/Empty/image/Dataspace.js +0 -285
- package/lib/Empty/image/Search.d.ts +0 -3
- package/lib/Empty/image/Search.js +0 -170
- package/lib/Empty/image/Simple.d.ts +0 -3
- package/lib/Empty/image/Simple.js +0 -34
- package/lib/Empty/image/Worksheet.d.ts +0 -3
- package/lib/Empty/image/Worksheet.js +0 -284
- package/lib/Empty/image/empty.d.ts +0 -3
- package/lib/Empty/image/empty.js +0 -153
- package/lib/Empty/index.d.ts +0 -23
- package/lib/Empty/index.js +0 -110
- package/lib/Empty/style/index.d.ts +0 -1
- package/lib/Empty/style/index.js +0 -3
- package/lib/Empty/style/index.less +0 -69
- package/lib/Form/index.d.ts +0 -8
- package/lib/Form/index.js +0 -15
- package/lib/Form/style/index.d.ts +0 -2
- package/lib/Form/style/index.js +0 -5
- package/lib/Form/style/index.less +0 -9
- package/lib/Icon/antdIconfont.d.ts +0 -4
- package/lib/Icon/antdIconfont.js +0 -13
- package/lib/Icon/components/Icon.d.ts +0 -32
- package/lib/Icon/components/Icon.js +0 -38
- package/lib/Icon/components/createFromScripts.d.ts +0 -1
- package/lib/Icon/components/createFromScripts.js +0 -41
- package/lib/Icon/iconSvgs/arrows_right_sm.svg +0 -3
- package/lib/Icon/icons/AddLine.d.ts +0 -13
- package/lib/Icon/icons/AddLine.js +0 -83
- package/lib/Icon/icons/AlertFill.d.ts +0 -13
- package/lib/Icon/icons/AlertFill.js +0 -90
- package/lib/Icon/icons/ArrowsDownLine.d.ts +0 -13
- package/lib/Icon/icons/ArrowsDownLine.js +0 -83
- package/lib/Icon/icons/CancelFill.d.ts +0 -13
- package/lib/Icon/icons/CancelFill.js +0 -90
- package/lib/Icon/icons/CheckFill.d.ts +0 -13
- package/lib/Icon/icons/CheckFill.js +0 -90
- package/lib/Icon/icons/CheckLine.d.ts +0 -13
- package/lib/Icon/icons/CheckLine.js +0 -90
- package/lib/Icon/icons/CloseLine.d.ts +0 -13
- package/lib/Icon/icons/CloseLine.js +0 -83
- package/lib/Icon/icons/DatabaseLine.d.ts +0 -13
- package/lib/Icon/icons/DatabaseLine.js +0 -83
- package/lib/Icon/icons/Deleteline.d.ts +0 -13
- package/lib/Icon/icons/Deleteline.js +0 -83
- package/lib/Icon/icons/DownloadLine.d.ts +0 -13
- package/lib/Icon/icons/DownloadLine.js +0 -90
- package/lib/Icon/icons/ErrorFill.d.ts +0 -13
- package/lib/Icon/icons/ErrorFill.js +0 -90
- package/lib/Icon/icons/EyeOffLine.d.ts +0 -13
- package/lib/Icon/icons/EyeOffLine.js +0 -90
- package/lib/Icon/icons/EyeOnLine.d.ts +0 -13
- package/lib/Icon/icons/EyeOnLine.js +0 -83
- package/lib/Icon/icons/FileLine.d.ts +0 -13
- package/lib/Icon/icons/FileLine.js +0 -90
- package/lib/Icon/icons/HomeFill.d.ts +0 -13
- package/lib/Icon/icons/HomeFill.js +0 -90
- package/lib/Icon/icons/IconBase.withSpan.tpl +0 -58
- package/lib/Icon/icons/LightningLine.d.ts +0 -13
- package/lib/Icon/icons/LightningLine.js +0 -83
- package/lib/Icon/icons/Loading.d.ts +0 -13
- package/lib/Icon/icons/Loading.js +0 -83
- package/lib/Icon/icons/More.d.ts +0 -13
- package/lib/Icon/icons/More.js +0 -83
- package/lib/Icon/icons/NewWindowsLine.d.ts +0 -13
- package/lib/Icon/icons/NewWindowsLine.js +0 -91
- package/lib/Icon/icons/SearchLine.d.ts +0 -13
- package/lib/Icon/icons/SearchLine.js +0 -90
- package/lib/Icon/icons/SortAscendingLine.d.ts +0 -13
- package/lib/Icon/icons/SortAscendingLine.js +0 -83
- package/lib/Icon/icons/SortDescendingLine.d.ts +0 -13
- package/lib/Icon/icons/SortDescendingLine.js +0 -83
- package/lib/Icon/icons/TextLine.d.ts +0 -13
- package/lib/Icon/icons/TextLine.js +0 -90
- package/lib/Icon/icons/UserLine.d.ts +0 -13
- package/lib/Icon/icons/UserLine.js +0 -90
- package/lib/Icon/icons/style.css +0 -9
- package/lib/Icon/icons/style.css.d.ts +0 -10
- package/lib/Icon/icons.d.ts +0 -9
- package/lib/Icon/icons.js +0 -1597
- package/lib/Icon/index.d.ts +0 -3
- package/lib/Icon/index.js +0 -13
- package/lib/Icon/index.less +0 -24
- package/lib/Icon/style/index.d.ts +0 -1
- package/lib/Icon/style/index.js +0 -1
- package/lib/Input/components/Group/index.d.ts +0 -18
- package/lib/Input/components/Group/index.js +0 -36
- package/lib/Input/components/Input/index.d.ts +0 -80
- package/lib/Input/components/Input/index.js +0 -46
- package/lib/Input/components/Password/index.d.ts +0 -22
- package/lib/Input/components/Password/index.js +0 -60
- package/lib/Input/components/TextArea/index.d.ts +0 -65
- package/lib/Input/components/TextArea/index.js +0 -40
- package/lib/Input/index.d.ts +0 -16
- package/lib/Input/index.js +0 -23
- package/lib/Input/style/index.d.ts +0 -3
- package/lib/Input/style/index.js +0 -7
- package/lib/Input/style/index.less +0 -490
- package/lib/InputNumber/index.d.ts +0 -4
- package/lib/InputNumber/index.js +0 -45
- package/lib/InputNumber/style/index.d.ts +0 -2
- package/lib/InputNumber/style/index.js +0 -5
- package/lib/InputNumber/style/index.less +0 -264
- package/lib/InputNumber/type.d.ts +0 -161
- package/lib/InputNumber/type.js +0 -5
- package/lib/Layout/index.d.ts +0 -4
- package/lib/Layout/index.js +0 -15
- package/lib/Layout/style/index.d.ts +0 -2
- package/lib/Layout/style/index.js +0 -5
- package/lib/Layout/style/index.less +0 -1
- package/lib/Menu/Divider.d.ts +0 -5
- package/lib/Menu/Divider.js +0 -20
- package/lib/Menu/MenuItem.d.ts +0 -30
- package/lib/Menu/MenuItem.js +0 -20
- package/lib/Menu/SubMenu.d.ts +0 -26
- package/lib/Menu/SubMenu.js +0 -36
- package/lib/Menu/index.d.ts +0 -23
- package/lib/Menu/index.js +0 -41
- package/lib/Menu/style/index.d.ts +0 -3
- package/lib/Menu/style/index.js +0 -7
- package/lib/Menu/style/index.less +0 -41
- package/lib/Modal/index.d.ts +0 -21
- package/lib/Modal/index.js +0 -128
- package/lib/Modal/locale.d.ts +0 -7
- package/lib/Modal/locale.js +0 -31
- package/lib/Modal/style/index.d.ts +0 -2
- package/lib/Modal/style/index.js +0 -5
- package/lib/Modal/style/index.less +0 -209
- package/lib/Navigator/components/Header/index.d.ts +0 -9
- package/lib/Navigator/components/Header/index.js +0 -28
- package/lib/Navigator/components/Menu/index.d.ts +0 -13
- package/lib/Navigator/components/Menu/index.js +0 -68
- package/lib/Navigator/components/MenuItem/index.d.ts +0 -21
- package/lib/Navigator/components/MenuItem/index.js +0 -56
- package/lib/Navigator/index.d.ts +0 -51
- package/lib/Navigator/index.js +0 -54
- package/lib/Navigator/style/bg.png +0 -0
- package/lib/Navigator/style/index.d.ts +0 -2
- package/lib/Navigator/style/index.js +0 -5
- package/lib/Navigator/style/index.less +0 -159
- package/lib/PageHeader/index.d.ts +0 -3
- package/lib/PageHeader/index.js +0 -15
- package/lib/PageHeader/style/index.d.ts +0 -2
- package/lib/PageHeader/style/index.js +0 -5
- package/lib/PageHeader/style/index.less +0 -1
- package/lib/Popconfirm/index.d.ts +0 -3
- package/lib/Popconfirm/index.js +0 -13
- package/lib/Popconfirm/style/index.d.ts +0 -2
- package/lib/Popconfirm/style/index.js +0 -5
- package/lib/Popconfirm/style/index.less +0 -1
- package/lib/Popover/index.d.ts +0 -5
- package/lib/Popover/index.js +0 -35
- package/lib/Popover/style/index.d.ts +0 -2
- package/lib/Popover/style/index.js +0 -5
- package/lib/Popover/style/index.less +0 -37
- package/lib/Progress/index.d.ts +0 -3
- package/lib/Progress/index.js +0 -13
- package/lib/Progress/style/index.d.ts +0 -2
- package/lib/Progress/style/index.js +0 -5
- package/lib/Progress/style/index.less +0 -1
- package/lib/Radio/components/Group/index.d.ts +0 -6
- package/lib/Radio/components/Group/index.js +0 -95
- package/lib/Radio/components/Radio/index.d.ts +0 -3
- package/lib/Radio/components/Radio/index.js +0 -115
- package/lib/Radio/index.d.ts +0 -10
- package/lib/Radio/index.js +0 -17
- package/lib/Radio/interface/radio.d.ts +0 -24
- package/lib/Radio/interface/radio.js +0 -5
- package/lib/Radio/interface/radioGroup.d.ts +0 -42
- package/lib/Radio/interface/radioGroup.js +0 -5
- package/lib/Radio/style/index.d.ts +0 -2
- package/lib/Radio/style/index.js +0 -5
- package/lib/Radio/style/index.less +0 -349
- package/lib/Row/index.d.ts +0 -3
- package/lib/Row/index.js +0 -15
- package/lib/Row/style/index.d.ts +0 -2
- package/lib/Row/style/index.js +0 -5
- package/lib/Row/style/index.less +0 -1
- package/lib/Select/index.d.ts +0 -39
- package/lib/Select/index.js +0 -181
- package/lib/Select/rc-select/BaseSelect.d.ts +0 -116
- package/lib/Select/rc-select/BaseSelect.js +0 -672
- package/lib/Select/rc-select/OptGroup.d.ts +0 -12
- package/lib/Select/rc-select/OptGroup.js +0 -15
- package/lib/Select/rc-select/Option.d.ts +0 -14
- package/lib/Select/rc-select/Option.js +0 -15
- package/lib/Select/rc-select/OptionList.d.ts +0 -10
- package/lib/Select/rc-select/OptionList.js +0 -428
- package/lib/Select/rc-select/Select.d.ts +0 -109
- package/lib/Select/rc-select/Select.js +0 -545
- package/lib/Select/rc-select/SelectContext.d.ts +0 -20
- package/lib/Select/rc-select/SelectContext.js +0 -19
- package/lib/Select/rc-select/SelectTrigger.d.ts +0 -30
- package/lib/Select/rc-select/SelectTrigger.js +0 -153
- package/lib/Select/rc-select/Selector/Input.d.ts +0 -26
- package/lib/Select/rc-select/Selector/Input.js +0 -132
- package/lib/Select/rc-select/Selector/MultipleSelector.d.ts +0 -16
- package/lib/Select/rc-select/Selector/MultipleSelector.js +0 -267
- package/lib/Select/rc-select/Selector/SingleSelector.d.ts +0 -8
- package/lib/Select/rc-select/Selector/SingleSelector.js +0 -129
- package/lib/Select/rc-select/Selector/index.d.ts +0 -80
- package/lib/Select/rc-select/Selector/index.js +0 -203
- package/lib/Select/rc-select/TransBtn.d.ts +0 -12
- package/lib/Select/rc-select/TransBtn.js +0 -59
- package/lib/Select/rc-select/hooks/useBaseProps.d.ts +0 -13
- package/lib/Select/rc-select/hooks/useBaseProps.js +0 -28
- package/lib/Select/rc-select/hooks/useCache.d.ts +0 -7
- package/lib/Select/rc-select/hooks/useCache.js +0 -63
- package/lib/Select/rc-select/hooks/useDelayReset.d.ts +0 -5
- package/lib/Select/rc-select/hooks/useDelayReset.js +0 -62
- package/lib/Select/rc-select/hooks/useFilterOptions.d.ts +0 -3
- package/lib/Select/rc-select/hooks/useFilterOptions.js +0 -91
- package/lib/Select/rc-select/hooks/useId.d.ts +0 -5
- package/lib/Select/rc-select/hooks/useId.js +0 -68
- package/lib/Select/rc-select/hooks/useLayoutEffect.d.ts +0 -5
- package/lib/Select/rc-select/hooks/useLayoutEffect.js +0 -32
- package/lib/Select/rc-select/hooks/useLock.d.ts +0 -7
- package/lib/Select/rc-select/hooks/useLock.js +0 -49
- package/lib/Select/rc-select/hooks/useOptions.d.ts +0 -11
- package/lib/Select/rc-select/hooks/useOptions.js +0 -68
- package/lib/Select/rc-select/hooks/useRefFunc.d.ts +0 -5
- package/lib/Select/rc-select/hooks/useRefFunc.js +0 -29
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -1
- package/lib/Select/rc-select/hooks/useSelectTriggerControl.js +0 -54
- package/lib/Select/rc-select/index.d.ts +0 -10
- package/lib/Select/rc-select/index.js +0 -45
- package/lib/Select/rc-select/interface.d.ts +0 -10
- package/lib/Select/rc-select/interface.js +0 -5
- package/lib/Select/rc-select/utils/commonUtil.d.ts +0 -4
- package/lib/Select/rc-select/utils/commonUtil.js +0 -23
- package/lib/Select/rc-select/utils/keyUtil.d.ts +0 -2
- package/lib/Select/rc-select/utils/keyUtil.js +0 -17
- package/lib/Select/rc-select/utils/legacyUtil.d.ts +0 -3
- package/lib/Select/rc-select/utils/legacyUtil.js +0 -73
- package/lib/Select/rc-select/utils/platformUtil.d.ts +0 -1
- package/lib/Select/rc-select/utils/platformUtil.js +0 -11
- package/lib/Select/rc-select/utils/valueUtil.d.ts +0 -22
- package/lib/Select/rc-select/utils/valueUtil.js +0 -172
- package/lib/Select/rc-select/utils/warningPropsUtil.d.ts +0 -3
- package/lib/Select/rc-select/utils/warningPropsUtil.js +0 -132
- package/lib/Select/style/index.d.ts +0 -3
- package/lib/Select/style/index.js +0 -7
- package/lib/Select/style/index.less +0 -340
- package/lib/Select/style/multiple.less +0 -222
- package/lib/Select/style/rtl.less +0 -168
- package/lib/Select/style/select.less +0 -337
- package/lib/Select/style/single.less +0 -179
- package/lib/Select/style/status.less +0 -48
- package/lib/Select/style/variables.less +0 -67
- package/lib/Select/style/variables.less.d.ts +0 -190
- package/lib/Select/utils/iconUtil.d.ts +0 -24
- package/lib/Select/utils/iconUtil.js +0 -108
- package/lib/Skeleton/index.d.ts +0 -3
- package/lib/Skeleton/index.js +0 -13
- package/lib/Skeleton/style/index.d.ts +0 -2
- package/lib/Skeleton/style/index.js +0 -5
- package/lib/Skeleton/style/index.less +0 -1
- package/lib/Space/index.d.ts +0 -4
- package/lib/Space/index.js +0 -17
- package/lib/Space/style/index.d.ts +0 -2
- package/lib/Space/style/index.js +0 -5
- package/lib/Space/style/index.less +0 -1
- package/lib/Spin/index.d.ts +0 -4
- package/lib/Spin/index.js +0 -13
- package/lib/Spin/style/index.d.ts +0 -2
- package/lib/Spin/style/index.js +0 -5
- package/lib/Spin/style/index.less +0 -1
- package/lib/Steps/components/ProcessIcon/index.d.ts +0 -6
- package/lib/Steps/components/ProcessIcon/index.js +0 -19
- package/lib/Steps/components/Step/index.d.ts +0 -20
- package/lib/Steps/components/Step/index.js +0 -61
- package/lib/Steps/index.d.ts +0 -37
- package/lib/Steps/index.js +0 -46
- package/lib/Steps/matchMedia.mock.d.ts +0 -1
- package/lib/Steps/matchMedia.mock.js +0 -17
- package/lib/Steps/style/index.d.ts +0 -2
- package/lib/Steps/style/index.js +0 -5
- package/lib/Steps/style/index.less +0 -258
- package/lib/Switch/index.d.ts +0 -48
- package/lib/Switch/index.js +0 -90
- package/lib/Switch/style/index.d.ts +0 -2
- package/lib/Switch/style/index.js +0 -5
- package/lib/Switch/style/index.less +0 -130
- package/lib/Table/Table.d.ts +0 -6
- package/lib/Table/Table.js +0 -419
- package/lib/Table/components/Empty/index.d.ts +0 -3
- package/lib/Table/components/Empty/index.js +0 -28
- package/lib/Table/components/Loading/index.d.ts +0 -3
- package/lib/Table/components/Loading/index.js +0 -31
- package/lib/Table/components/TableBodyRowList/index.d.ts +0 -13
- package/lib/Table/components/TableBodyRowList/index.js +0 -110
- package/lib/Table/components/TableHead/index.d.ts +0 -22
- package/lib/Table/components/TableHead/index.js +0 -285
- package/lib/Table/constant.d.ts +0 -1
- package/lib/Table/constant.js +0 -1
- package/lib/Table/hooks/useFrame.d.ts +0 -7
- package/lib/Table/hooks/useFrame.js +0 -98
- package/lib/Table/index.d.ts +0 -2
- package/lib/Table/index.js +0 -13
- package/lib/Table/interface.d.ts +0 -41
- package/lib/Table/interface.js +0 -5
- package/lib/Table/react-table-config.d.ts +0 -122
- package/lib/Table/style/index.d.ts +0 -2
- package/lib/Table/style/index.js +0 -5
- package/lib/Table/style/index.less +0 -238
- package/lib/Table/style/variable.less +0 -5
- package/lib/Table/style/variable.less.d.ts +0 -7
- package/lib/Table/utils.d.ts +0 -15
- package/lib/Table/utils.js +0 -154
- package/lib/Tabs/TabPane.d.ts +0 -21
- package/lib/Tabs/TabPane.js +0 -18
- package/lib/Tabs/index.d.ts +0 -47
- package/lib/Tabs/index.js +0 -64
- package/lib/Tabs/style/index.d.ts +0 -3
- package/lib/Tabs/style/index.js +0 -7
- package/lib/Tabs/style/index.less +0 -166
- package/lib/Tooltip/index.d.ts +0 -63
- package/lib/Tooltip/index.js +0 -44
- package/lib/Tooltip/style/index.d.ts +0 -2
- package/lib/Tooltip/style/index.js +0 -5
- package/lib/Tooltip/style/index.less +0 -15
- package/lib/Tree/index.d.ts +0 -5
- package/lib/Tree/index.js +0 -13
- package/lib/Tree/style/index.d.ts +0 -2
- package/lib/Tree/style/index.js +0 -5
- package/lib/Tree/style/index.less +0 -1
- package/lib/Typography/index.d.ts +0 -3
- package/lib/Typography/index.js +0 -15
- package/lib/Typography/style/index.d.ts +0 -2
- package/lib/Typography/style/index.js +0 -5
- package/lib/Typography/style/index.less +0 -1
- package/lib/Upload/index.d.ts +0 -4
- package/lib/Upload/index.js +0 -15
- package/lib/Upload/style/index.d.ts +0 -2
- package/lib/Upload/style/index.js +0 -5
- package/lib/Upload/style/index.less +0 -1
- package/lib/_utils/hooks/useControlledState.d.ts +0 -2
- package/lib/_utils/hooks/useControlledState.js +0 -63
- package/lib/_utils/hooks/useId.d.ts +0 -4
- package/lib/_utils/hooks/useId.js +0 -36
- package/lib/_utils/hooks/usePrefixCls.d.ts +0 -2
- package/lib/_utils/hooks/usePrefixCls.js +0 -27
- package/lib/index.d.ts +0 -81
- package/lib/index.js +0 -335
- package/lib/locale/default.d.ts +0 -2
- package/lib/locale/default.js +0 -13
- package/lib/locale/en_US.d.ts +0 -3
- package/lib/locale/en_US.js +0 -146
- package/lib/locale/zh_CN.d.ts +0 -3
- package/lib/locale/zh_CN.js +0 -145
- package/lib/locale-provider/LocaleReceiver.d.ts +0 -4
- package/lib/locale-provider/LocaleReceiver.js +0 -23
- package/lib/locale-provider/context.d.ts +0 -7
- package/lib/locale-provider/context.js +0 -12
- package/lib/locale-provider/default.d.ts +0 -2
- package/lib/locale-provider/default.js +0 -13
- package/lib/locale-provider/en_US.d.ts +0 -2
- package/lib/locale-provider/en_US.js +0 -13
- package/lib/locale-provider/index.d.ts +0 -65
- package/lib/locale-provider/index.js +0 -116
- package/lib/locale-provider/style/index.d.ts +0 -1
- package/lib/locale-provider/style/index.js +0 -3
- package/lib/locale-provider/style/index.less +0 -2
- package/lib/locale-provider/zh_CN.d.ts +0 -2
- package/lib/locale-provider/zh_CN.js +0 -13
- package/lib/message/index.d.ts +0 -5
- package/lib/message/index.js +0 -15
- package/lib/message/style/index.d.ts +0 -2
- package/lib/message/style/index.js +0 -5
- package/lib/message/style/index.less +0 -1
- package/lib/notification/index.d.ts +0 -4
- package/lib/notification/index.js +0 -15
- package/lib/notification/style/index.d.ts +0 -2
- package/lib/notification/style/index.js +0 -5
- package/lib/notification/style/index.less +0 -1
- package/lib/style/index.d.ts +0 -1
- package/lib/style/index.js +0 -3
- package/lib/style/index.less +0 -5
- package/lib/style/mixins/index.less +0 -8
- package/lib/style/themes/default/index.less +0 -36
- package/lib/style/themes/default/scrollBar.less +0 -16
- package/lib/style/themes/default/themeColor.module.less +0 -445
- package/lib/style/themes/default/themeColor.module.less.d.ts +0 -182
- /package/{es → dist}/Alert/style/index.d.ts +0 -0
- /package/{es → dist}/Alert/style/index.less +0 -0
- /package/{es → dist}/Avatar/component/Avatar/index.d.ts +0 -0
- /package/{es → dist}/Avatar/index.d.ts +0 -0
- /package/{es → dist}/Avatar/style/index.d.ts +0 -0
- /package/{es → dist}/Avatar/style/index.less +0 -0
- /package/{es → dist}/Breadcrumb/index.d.ts +0 -0
- /package/{es → dist}/Breadcrumb/style/index.d.ts +0 -0
- /package/{es → dist}/Breadcrumb/style/index.less +0 -0
- /package/{es → dist}/Button/style/index.d.ts +0 -0
- /package/{es → dist}/Button/style/variables.less +0 -0
- /package/{es → dist}/Card/index.d.ts +0 -0
- /package/{es → dist}/Card/style/index.d.ts +0 -0
- /package/{es → dist}/Card/style/index.less +0 -0
- /package/{es → dist}/Checkbox/component/CheckboxGroup/index.d.ts +0 -0
- /package/{es → dist}/Checkbox/index.d.ts +0 -0
- /package/{es → dist}/Checkbox/style/index.d.ts +0 -0
- /package/{es → dist}/Checkbox/style/index.less +0 -0
- /package/{es → dist}/Checkbox/type.d.ts +0 -0
- /package/{es → dist}/Checkbox/type.js +0 -0
- /package/{es → dist}/Col/index.d.ts +0 -0
- /package/{es → dist}/Col/style/index.d.ts +0 -0
- /package/{es → dist}/Col/style/index.less +0 -0
- /package/{es → dist}/ConfigProvider/index.d.ts +0 -0
- /package/{es → dist}/ConfigProvider/sizeContext.js +0 -0
- /package/{es → dist}/ConfigProvider/style/index.d.ts +0 -0
- /package/{es → dist}/ConfigProvider/style/index.less +0 -0
- /package/{es → dist}/DatePicker/index.d.ts +0 -0
- /package/{es → dist}/DatePicker/style/index.d.ts +0 -0
- /package/{es → dist}/DatePicker/style/index.less +0 -0
- /package/{es → dist}/Divider/index.d.ts +0 -0
- /package/{es → dist}/Divider/style/index.d.ts +0 -0
- /package/{es → dist}/Divider/style/index.less +0 -0
- /package/{es → dist}/Divider/style/index.less.d.ts +0 -0
- /package/{es → dist}/Drawer/index.d.ts +0 -0
- /package/{es → dist}/Drawer/style/index.d.ts +0 -0
- /package/{es → dist}/Drawer/style/index.less +0 -0
- /package/{es → dist}/Dropdown/Button.d.ts +0 -0
- /package/{es → dist}/Dropdown/index.d.ts +0 -0
- /package/{es/Form → dist/Dropdown}/style/index.d.ts +0 -0
- /package/{es → dist}/Dropdown/style/index.less +0 -0
- /package/{es → dist}/Empty/style/index.d.ts +0 -0
- /package/{es → dist}/Form/index.d.ts +0 -0
- /package/{es/InputNumber → dist/Form}/style/index.d.ts +0 -0
- /package/{es → dist}/Form/style/index.less +0 -0
- /package/{es → dist}/Icon/antdIconfont.d.ts +0 -0
- /package/{es → dist}/Icon/antdIconfont.js +0 -0
- /package/{es → dist}/Icon/components/Icon.d.ts +0 -0
- /package/{es → dist}/Icon/components/createFromScripts.d.ts +0 -0
- /package/{es → dist}/Icon/components/createFromScripts.js +0 -0
- /package/{es → dist}/Icon/iconSvgs/arrows_right_sm.svg +0 -0
- /package/{es → dist}/Icon/icons.d.ts +0 -0
- /package/{es → dist}/Icon/index.d.ts +0 -0
- /package/{es → dist}/Icon/index.less +0 -0
- /package/{es/Icon/style/index.less → dist/Icon/style/index.d.ts} +0 -0
- /package/{lib/Icon/style/index.less → dist/Icon/style/index.js} +0 -0
- /package/{es → dist}/Input/components/Group/index.d.ts +0 -0
- /package/{es → dist}/Input/components/Input/index.d.ts +0 -0
- /package/{es → dist}/Input/components/Password/index.d.ts +0 -0
- /package/{es → dist}/Input/components/TextArea/index.d.ts +0 -0
- /package/{es → dist}/Input/index.d.ts +0 -0
- /package/{es/Layout → dist/Input}/style/index.d.ts +0 -0
- /package/{es → dist}/Input/style/index.less +0 -0
- /package/{es → dist}/InputNumber/index.d.ts +0 -0
- /package/{es/Modal → dist/InputNumber}/style/index.d.ts +0 -0
- /package/{es → dist}/InputNumber/style/index.less +0 -0
- /package/{es → dist}/InputNumber/type.js +0 -0
- /package/{es → dist}/Layout/index.d.ts +0 -0
- /package/{es/Navigator → dist/Layout}/style/index.d.ts +0 -0
- /package/{es → dist}/Layout/style/index.less +0 -0
- /package/{es → dist}/Menu/Divider.d.ts +0 -0
- /package/{es → dist}/Menu/MenuItem.d.ts +0 -0
- /package/{es → dist}/Menu/SubMenu.d.ts +0 -0
- /package/{es/PageHeader → dist/Menu}/style/index.d.ts +0 -0
- /package/{es → dist}/Modal/locale.d.ts +0 -0
- /package/{es/Popconfirm → dist/Modal}/style/index.d.ts +0 -0
- /package/{es → dist}/Navigator/components/Header/index.d.ts +0 -0
- /package/{es → dist}/Navigator/components/Header/index.js +0 -0
- /package/{es → dist}/Navigator/components/Menu/index.d.ts +0 -0
- /package/{es → dist}/Navigator/components/MenuItem/index.d.ts +0 -0
- /package/{es → dist}/Navigator/components/MenuItem/index.js +0 -0
- /package/{es → dist}/Navigator/index.d.ts +0 -0
- /package/{es → dist}/Navigator/style/bg.png +0 -0
- /package/{es/Popover → dist/Navigator}/style/index.d.ts +0 -0
- /package/{es → dist}/Navigator/style/index.less +0 -0
- /package/{es/Progress → dist/Popconfirm}/style/index.d.ts +0 -0
- /package/{es → dist}/Popover/index.d.ts +0 -0
- /package/{es/Radio → dist/Popover}/style/index.d.ts +0 -0
- /package/{es → dist}/Popover/style/index.less +0 -0
- /package/{es → dist}/Progress/index.d.ts +0 -0
- /package/{es/Row → dist/Progress}/style/index.d.ts +0 -0
- /package/{es/PageHeader → dist/Progress}/style/index.less +0 -0
- /package/{es → dist}/Radio/components/Group/index.js +0 -0
- /package/{es → dist}/Radio/components/Radio/index.d.ts +0 -0
- /package/{es → dist}/Radio/index.d.ts +0 -0
- /package/{es → dist}/Radio/interface/radio.d.ts +0 -0
- /package/{es → dist}/Radio/interface/radio.js +0 -0
- /package/{es → dist}/Radio/interface/radioGroup.d.ts +0 -0
- /package/{es → dist}/Radio/interface/radioGroup.js +0 -0
- /package/{es/Skeleton → dist/Radio}/style/index.d.ts +0 -0
- /package/{es → dist}/Radio/style/index.less +0 -0
- /package/{es → dist}/Row/index.d.ts +0 -0
- /package/{es/Space → dist/Row}/style/index.d.ts +0 -0
- /package/{es/Popconfirm → dist/Row}/style/index.less +0 -0
- /package/{es/Spin → dist/Select}/style/index.d.ts +0 -0
- /package/{es → dist}/Skeleton/index.d.ts +0 -0
- /package/{es/Steps → dist/Skeleton}/style/index.d.ts +0 -0
- /package/{es/Progress → dist/Skeleton}/style/index.less +0 -0
- /package/{es → dist}/Space/index.d.ts +0 -0
- /package/{es/Switch → dist/Space}/style/index.d.ts +0 -0
- /package/{es/Row → dist/Space}/style/index.less +0 -0
- /package/{es/Table → dist/Spin}/style/index.d.ts +0 -0
- /package/{es → dist}/Steps/components/Step/index.d.ts +0 -0
- /package/{es/Tooltip → dist/Steps}/style/index.d.ts +0 -0
- /package/{es → dist}/Switch/index.d.ts +0 -0
- /package/{es/Tree → dist/Switch}/style/index.d.ts +0 -0
- /package/{es → dist}/Switch/style/index.less +0 -0
- /package/{es → dist}/Table/Table.d.ts +0 -0
- /package/{es → dist}/Table/components/Empty/index.d.ts +0 -0
- /package/{es → dist}/Table/components/Loading/index.d.ts +0 -0
- /package/{es → dist}/Table/components/TableBodyRowList/index.d.ts +0 -0
- /package/{es → dist}/Table/components/TableHead/index.d.ts +0 -0
- /package/{es → dist}/Table/hooks/useFrame.d.ts +0 -0
- /package/{es → dist}/Table/index.d.ts +0 -0
- /package/{es → dist}/Table/interface.d.ts +0 -0
- /package/{es/Select/rc-select → dist/Table}/interface.js +0 -0
- /package/{es → dist}/Table/react-table-config.d.ts +0 -0
- /package/{es/Typography → dist/Table}/style/index.d.ts +0 -0
- /package/{es → dist}/Tabs/TabPane.d.ts +0 -0
- /package/{es → dist}/Tabs/index.d.ts +0 -0
- /package/{es/Upload → dist/Tabs}/style/index.d.ts +0 -0
- /package/{es → dist}/Tooltip/index.d.ts +0 -0
- /package/{es → dist}/Tooltip/index.js +0 -0
- /package/{es/message → dist/Tooltip}/style/index.d.ts +0 -0
- /package/{es/notification → dist/Tree}/style/index.d.ts +0 -0
- /package/{es → dist}/Typography/index.d.ts +0 -0
- /package/{lib/Alert → dist/Typography}/style/index.d.ts +0 -0
- /package/{es/Skeleton → dist/Typography}/style/index.less +0 -0
- /package/{lib/Avatar → dist/Upload}/style/index.d.ts +0 -0
- /package/{es/Space → dist/Upload}/style/index.less +0 -0
- /package/{es → dist}/_utils/hooks/useControlledState.js +0 -0
- /package/{es → dist}/_utils/hooks/useId.d.ts +0 -0
- /package/{es → dist}/_utils/hooks/useId.js +0 -0
- /package/{es → dist}/locale/default.d.ts +0 -0
- /package/{es → dist}/locale/en_US.d.ts +0 -0
- /package/{es → dist}/locale/en_US.js +0 -0
- /package/{es → dist}/locale/zh_CN.d.ts +0 -0
- /package/{es → dist}/locale/zh_CN.js +0 -0
- /package/{es → dist}/locale-provider/LocaleReceiver.d.ts +0 -0
- /package/{es → dist}/locale-provider/LocaleReceiver.js +0 -0
- /package/{es → dist}/locale-provider/context.js +0 -0
- /package/{es → dist}/locale-provider/default.d.ts +0 -0
- /package/{es → dist}/locale-provider/en_US.d.ts +0 -0
- /package/{es → dist}/locale-provider/style/index.d.ts +0 -0
- /package/{es → dist}/locale-provider/style/index.less +0 -0
- /package/{es → dist}/locale-provider/zh_CN.d.ts +0 -0
- /package/{lib/Breadcrumb → dist/message}/style/index.d.ts +0 -0
- /package/{lib/Button → dist/notification}/style/index.d.ts +0 -0
- /package/{es/Spin → dist/notification}/style/index.less +0 -0
- /package/{es → dist}/style/index.d.ts +0 -0
- /package/{es → dist}/style/mixins/index.less +0 -0
- /package/{es → dist}/style/themes/default/index.less +0 -0
- /package/{es → dist}/style/themes/default/scrollBar.less +0 -0
- /package/{es → dist}/style/themes/default/themeColor.module.less.d.ts +0 -0
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import "@aloudata/icons-react/styles/index.less";
|
|
2
|
-
import _SortAscendingLine from "@aloudata/icons-react/es/icons/SortAscendingLine";
|
|
3
|
-
import "@aloudata/icons-react/styles/index.less";
|
|
4
|
-
import _SortDescendingLine from "@aloudata/icons-react/es/icons/SortDescendingLine";
|
|
5
|
-
var _excluded = ["style"];
|
|
6
|
-
|
|
7
|
-
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; }
|
|
8
|
-
|
|
9
|
-
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; }
|
|
10
|
-
|
|
11
|
-
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; }
|
|
12
|
-
|
|
13
|
-
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; }
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
-
|
|
19
|
-
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."); }
|
|
20
|
-
|
|
21
|
-
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); }
|
|
22
|
-
|
|
23
|
-
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; }
|
|
24
|
-
|
|
25
|
-
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; }
|
|
26
|
-
|
|
27
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
-
|
|
29
|
-
import React, { useState } from 'react';
|
|
30
|
-
import usePrefixCls from '../../../_utils/hooks/usePrefixCls';
|
|
31
|
-
import classnames from 'classnames';
|
|
32
|
-
import _ from 'lodash';
|
|
33
|
-
import { getValidWidthByNumber } from '../../utils';
|
|
34
|
-
import message from '../../../message';
|
|
35
|
-
var ARRAY_FIRST_INDEX = 0;
|
|
36
|
-
|
|
37
|
-
function TableHead(props) {
|
|
38
|
-
var headerGroups = props.headerGroups,
|
|
39
|
-
canResizeColumn = props.canResizeColumn,
|
|
40
|
-
defaultSort = props.defaultSort,
|
|
41
|
-
_props$sortable = props.sortable,
|
|
42
|
-
sortable = _props$sortable === void 0 ? false : _props$sortable,
|
|
43
|
-
_props$columns = props.columns,
|
|
44
|
-
columns = _props$columns === void 0 ? [{
|
|
45
|
-
accessor: '',
|
|
46
|
-
sortOrder: 'descend'
|
|
47
|
-
}] : _props$columns,
|
|
48
|
-
allSortDirections = props.sortDirections,
|
|
49
|
-
setSortBy = props.setSortBy,
|
|
50
|
-
_props$onChange = props.onChange,
|
|
51
|
-
onChange = _props$onChange === void 0 ? function () {} : _props$onChange,
|
|
52
|
-
columnsWidthMapRef = props.columnsWidthMapRef,
|
|
53
|
-
columnsTotalWidthRef = props.columnsTotalWidthRef;
|
|
54
|
-
var prefixCls = usePrefixCls('', 'ald-table'); // 第一列的情况 默认或者恢复是需要用到
|
|
55
|
-
|
|
56
|
-
var defaultSortObject = {
|
|
57
|
-
id: columns[ARRAY_FIRST_INDEX].accessor,
|
|
58
|
-
desc: !!(columns[ARRAY_FIRST_INDEX].sortOrder && columns[ARRAY_FIRST_INDEX].sortOrder === 'descend')
|
|
59
|
-
}; // 如果支持排序
|
|
60
|
-
// 1. 有默认排序 则按照默认排序
|
|
61
|
-
// 2. 如果没有默认排序,再判断第一列是否符合排序条件,若满足 => 则按第一列排序
|
|
62
|
-
|
|
63
|
-
var getInitialSortDirection = function getInitialSortDirection() {
|
|
64
|
-
if (defaultSort && defaultSort.id) {
|
|
65
|
-
return defaultSort;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (!defaultSortObject.id) {
|
|
69
|
-
message.error('开启了排序,但是没有给予默认排序列,并且第一列不支持排序');
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return defaultSortObject;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
var _useState = useState(getInitialSortDirection()),
|
|
76
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
77
|
-
sortDirection = _useState2[0],
|
|
78
|
-
setSortDirection = _useState2[1]; // 排序的方向 倒叙{ id: 'xx', desc: true }、正序{ id: 'xx', desc: false }、无序 { id: '', desc: undefined }
|
|
79
|
-
// 获取排序方向以及排序的id
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
var getSortBy = function getSortBy(id) {
|
|
83
|
-
var sortDirections = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['ascend', 'descend'];
|
|
84
|
-
var // 如果传了sortDirections,则使用传入的,否则使用默认的
|
|
85
|
-
sortOrder = arguments.length > 2 ? arguments[2] : undefined;
|
|
86
|
-
var res = {
|
|
87
|
-
id: id,
|
|
88
|
-
desc: undefined
|
|
89
|
-
};
|
|
90
|
-
var isSameCol = sortDirection.id === id;
|
|
91
|
-
var descMap = new Map([['ascend', false], ['descend', true]]);
|
|
92
|
-
var directions = allSortDirections || sortDirections; // 如果不是同一列 则返回默认排序 或者排序顺序的第一个
|
|
93
|
-
|
|
94
|
-
if (!isSameCol) {
|
|
95
|
-
if (sortOrder === 'ascend' || sortOrder === 'descend') {
|
|
96
|
-
res.desc = descMap.get(sortOrder);
|
|
97
|
-
} else {
|
|
98
|
-
res.desc = sortOrder || descMap.get(directions[ARRAY_FIRST_INDEX]);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return res;
|
|
102
|
-
} // 如果是同一列
|
|
103
|
-
// 如果列给了默认的sortOrder则不在变化
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
if (sortOrder === 'ascend' || sortOrder === 'descend') {
|
|
107
|
-
res.desc = descMap.get(sortOrder);
|
|
108
|
-
return res;
|
|
109
|
-
} // 在所有方向上 往后取一个
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
var lastSortDirection = sortDirection.desc ? 'descend' : 'ascend';
|
|
113
|
-
|
|
114
|
-
var index = _.findIndex(directions, function (item) {
|
|
115
|
-
return item === lastSortDirection;
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
var nextIndex = index + 1;
|
|
119
|
-
res.desc = descMap.get(directions[nextIndex]); // 如果没有排序方向,则返回默认排序对象
|
|
120
|
-
|
|
121
|
-
if (res.desc === undefined) {
|
|
122
|
-
res.id = '';
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return res;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
var getHeaderProps = function getHeaderProps(column) {
|
|
129
|
-
// @ts-ignore
|
|
130
|
-
var id = column.id,
|
|
131
|
-
canSort = column.canSort,
|
|
132
|
-
sorter = column.sorter,
|
|
133
|
-
sortOrder = column.sortOrder,
|
|
134
|
-
sortDirections = column.sortDirections;
|
|
135
|
-
var toggleProps = column.getSortByToggleProps(); // 仅在Table设置sortable时,所有列的canSort为true,此时为前端排序
|
|
136
|
-
|
|
137
|
-
if (canSort) {
|
|
138
|
-
// client sort
|
|
139
|
-
return _objectSpread(_objectSpread({}, column.getHeaderProps(_objectSpread({}, toggleProps))), {}, {
|
|
140
|
-
onClick: function onClick(e) {
|
|
141
|
-
e.stopPropagation();
|
|
142
|
-
|
|
143
|
-
if (typeof toggleProps.onClick === 'function') {
|
|
144
|
-
var sortBy = getSortBy(id, sortDirections, sortOrder);
|
|
145
|
-
setSortBy(sortBy.desc === undefined ? [defaultSortObject] : [sortBy]); // 客户端排序时 需要重新设置排序
|
|
146
|
-
|
|
147
|
-
setSortDirection(sortBy);
|
|
148
|
-
onChange(sortBy);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
} // 当列设置sorter属性时,则为服务端排序
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
if (sorter) {
|
|
156
|
-
// server sort
|
|
157
|
-
return _objectSpread(_objectSpread({}, column.getHeaderProps({
|
|
158
|
-
style: {
|
|
159
|
-
cursor: 'pointer'
|
|
160
|
-
}
|
|
161
|
-
})), {}, {
|
|
162
|
-
onClick: function onClick(e) {
|
|
163
|
-
e.stopPropagation();
|
|
164
|
-
var sortBy = getSortBy(id, sortDirections, sortOrder);
|
|
165
|
-
setSortDirection(sortBy);
|
|
166
|
-
onChange(sortBy);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return column.getHeaderProps();
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
var SortIcons = function SortIcons(_ref) {
|
|
175
|
-
var id = _ref.id;
|
|
176
|
-
var currentSortId = sortDirection.id,
|
|
177
|
-
desc = sortDirection.desc;
|
|
178
|
-
|
|
179
|
-
if (id !== currentSortId || !sortable) {
|
|
180
|
-
return null;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return desc ? /*#__PURE__*/React.createElement(_SortDescendingLine, {
|
|
184
|
-
className: "".concat(prefixCls, "-sortIcon"),
|
|
185
|
-
fill: "currentColor",
|
|
186
|
-
size: 12
|
|
187
|
-
}) : /*#__PURE__*/React.createElement(_SortAscendingLine, {
|
|
188
|
-
className: "".concat(prefixCls, "-sortIcon"),
|
|
189
|
-
fill: "currentColor",
|
|
190
|
-
size: 12
|
|
191
|
-
});
|
|
192
|
-
}; // 在页面拖拽完成之后 更新表格整体宽度以及每个列对应的列宽map
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
var adjustColumnsMapAfterDrag = function adjustColumnsMapAfterDrag(key, width) {
|
|
196
|
-
var _columnsWidthMapRef$c, _columnsWidthMapRef$c2;
|
|
197
|
-
|
|
198
|
-
var newMap = _.cloneDeep(columnsWidthMapRef.current);
|
|
199
|
-
|
|
200
|
-
var originWidth = (_columnsWidthMapRef$c = columnsWidthMapRef.current) === null || _columnsWidthMapRef$c === void 0 ? void 0 : (_columnsWidthMapRef$c2 = _columnsWidthMapRef$c.get(key)) === null || _columnsWidthMapRef$c2 === void 0 ? void 0 : _columnsWidthMapRef$c2.width;
|
|
201
|
-
var newWidth = getValidWidthByNumber(width);
|
|
202
|
-
newMap.set(key, {
|
|
203
|
-
isSpecific: true,
|
|
204
|
-
width: newWidth
|
|
205
|
-
});
|
|
206
|
-
columnsWidthMapRef.current = newMap;
|
|
207
|
-
columnsTotalWidthRef.current = columnsTotalWidthRef.current - originWidth + newWidth;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
var handleStyleAndReturn = function handleStyleAndReturn(column, index) {
|
|
211
|
-
var _columnsWidthMapRef$c3, _getHeaderProps$style, _getHeaderProps$style2;
|
|
212
|
-
|
|
213
|
-
var key = index.toString();
|
|
214
|
-
var lastColumnsMapWidth = (_columnsWidthMapRef$c3 = columnsWidthMapRef.current.get(key)) === null || _columnsWidthMapRef$c3 === void 0 ? void 0 : _columnsWidthMapRef$c3.width; // 在拖动之前记录宽度map
|
|
215
|
-
|
|
216
|
-
var currentRenderWidth = Number((_getHeaderProps$style = getHeaderProps(column).style) === null || _getHeaderProps$style === void 0 ? void 0 : (_getHeaderProps$style2 = _getHeaderProps$style.width) === null || _getHeaderProps$style2 === void 0 ? void 0 : _getHeaderProps$style2.toString().replace('px', '')); // 表格内置计算的宽度 'px'
|
|
217
|
-
|
|
218
|
-
if (currentRenderWidth !== lastColumnsMapWidth) {
|
|
219
|
-
adjustColumnsMapAfterDrag(key, currentRenderWidth);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
return _objectSpread(_objectSpread({}, getHeaderProps(column).style), {}, {
|
|
223
|
-
width: getValidWidthByNumber(currentRenderWidth)
|
|
224
|
-
});
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
228
|
-
className: "".concat(prefixCls, "-thead"),
|
|
229
|
-
style: {
|
|
230
|
-
width: columnsTotalWidthRef.current
|
|
231
|
-
}
|
|
232
|
-
}, headerGroups.map(function (headerGroup) {
|
|
233
|
-
var _headerGroup$getHeade = headerGroup.getHeaderGroupProps(),
|
|
234
|
-
style = _headerGroup$getHeade.style,
|
|
235
|
-
headerGroupProps = _objectWithoutProperties(_headerGroup$getHeade, _excluded);
|
|
236
|
-
|
|
237
|
-
return /*#__PURE__*/React.createElement("div", Object.assign({}, headerGroupProps, {
|
|
238
|
-
className: "".concat(prefixCls, "-row")
|
|
239
|
-
}), headerGroup.headers.map(function (column, index) {
|
|
240
|
-
var barProps = canResizeColumn ? column.getResizerProps() : {};
|
|
241
|
-
var headCellStyle = handleStyleAndReturn(column, index);
|
|
242
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
243
|
-
className: classnames(_defineProperty({}, "".concat(prefixCls, "-cell-sorting"), column.id === sortDirection.id), "".concat(prefixCls, "-cell")),
|
|
244
|
-
style: headCellStyle,
|
|
245
|
-
key: column.id
|
|
246
|
-
}, /*#__PURE__*/React.createElement("div", Object.assign({
|
|
247
|
-
className: "".concat(prefixCls, "-cell-content")
|
|
248
|
-
}, getHeaderProps(column), {
|
|
249
|
-
style: {
|
|
250
|
-
width: '100%'
|
|
251
|
-
}
|
|
252
|
-
}), /*#__PURE__*/React.createElement(React.Fragment, null, column.render('Header'), /*#__PURE__*/React.createElement(SortIcons, {
|
|
253
|
-
id: column.id
|
|
254
|
-
}))), /*#__PURE__*/React.createElement("div", Object.assign({}, barProps, {
|
|
255
|
-
className: classnames(_defineProperty({}, "".concat(prefixCls, "-dragBar"), canResizeColumn), "".concat(prefixCls, "-bar"))
|
|
256
|
-
})));
|
|
257
|
-
}));
|
|
258
|
-
}));
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export default TableHead;
|
package/es/Table/constant.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/es/Table/constant.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
// @ts-nocheck
|
|
14
|
-
import { useRef, useState, useEffect } from 'react';
|
|
15
|
-
/**
|
|
16
|
-
* Execute code before next frame but async
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
export function useLayoutState(defaultState) {
|
|
20
|
-
var stateRef = useRef(defaultState);
|
|
21
|
-
|
|
22
|
-
var _useState = useState({}),
|
|
23
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
-
forceUpdate = _useState2[1];
|
|
25
|
-
|
|
26
|
-
var lastPromiseRef = useRef(null);
|
|
27
|
-
var updateBatchRef = useRef([]);
|
|
28
|
-
|
|
29
|
-
function setFrameState(updater) {
|
|
30
|
-
updateBatchRef.current.push(updater);
|
|
31
|
-
var promise = Promise.resolve(); // @ts-ignore;
|
|
32
|
-
|
|
33
|
-
lastPromiseRef.current = promise;
|
|
34
|
-
promise.then(function () {
|
|
35
|
-
if (lastPromiseRef.current === promise) {
|
|
36
|
-
var prevBatch = updateBatchRef.current;
|
|
37
|
-
var prevState = stateRef.current;
|
|
38
|
-
updateBatchRef.current = [];
|
|
39
|
-
prevBatch.forEach(function (batchUpdater) {
|
|
40
|
-
stateRef.current = batchUpdater(stateRef.current);
|
|
41
|
-
}); // @ts-ignore;
|
|
42
|
-
|
|
43
|
-
lastPromiseRef.current = null;
|
|
44
|
-
|
|
45
|
-
if (prevState !== stateRef.current) {
|
|
46
|
-
forceUpdate({});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
useEffect(function () {
|
|
53
|
-
return function () {
|
|
54
|
-
// @ts-ignore;
|
|
55
|
-
lastPromiseRef.current = null;
|
|
56
|
-
};
|
|
57
|
-
}, []);
|
|
58
|
-
return [stateRef.current, setFrameState];
|
|
59
|
-
}
|
|
60
|
-
/** Lock frame, when frame pass reset the lock. */
|
|
61
|
-
|
|
62
|
-
export function useTimeoutLock(defaultState) {
|
|
63
|
-
var frameRef = useRef(defaultState || null);
|
|
64
|
-
var timeoutRef = useRef();
|
|
65
|
-
var TIMEOUT_DELAY = 50;
|
|
66
|
-
|
|
67
|
-
function cleanUp() {
|
|
68
|
-
window.clearTimeout(timeoutRef.current);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function setState(newState) {
|
|
72
|
-
// @ts-ignore;
|
|
73
|
-
frameRef.current = newState;
|
|
74
|
-
cleanUp();
|
|
75
|
-
timeoutRef.current = window.setTimeout(function () {
|
|
76
|
-
// @ts-ignore;
|
|
77
|
-
frameRef.current = null;
|
|
78
|
-
timeoutRef.current = undefined;
|
|
79
|
-
}, TIMEOUT_DELAY);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function getState() {
|
|
83
|
-
return frameRef.current;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
useEffect(function () {
|
|
87
|
-
return cleanUp;
|
|
88
|
-
}, []);
|
|
89
|
-
return [setState, getState];
|
|
90
|
-
}
|
package/es/Table/index.js
DELETED
package/es/Table/interface.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/Table/style/index.js
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable property-no-unknown */
|
|
2
|
-
|
|
3
|
-
@import '../../style/index.less';
|
|
4
|
-
@import '../../Empty/style/index.less';
|
|
5
|
-
@import '../../message/style/index.less';
|
|
6
|
-
@import './variable.less';
|
|
7
|
-
|
|
8
|
-
.ald-table {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
width: 100%;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
user-select: none;
|
|
14
|
-
|
|
15
|
-
&-page-loading {
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-table-wrap {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex: 1;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-inner-wrap {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
overflow-x: overlay;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-tableHeadScrollWrap {
|
|
33
|
-
display: flex;
|
|
34
|
-
width: 100%;
|
|
35
|
-
overflow-x: hidden;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&-cell {
|
|
39
|
-
flex-grow: 1;
|
|
40
|
-
height: unset;
|
|
41
|
-
color: inherit;
|
|
42
|
-
text-align: left;
|
|
43
|
-
word-break: break-all;
|
|
44
|
-
border-bottom: 1px solid @NL95;
|
|
45
|
-
|
|
46
|
-
&-content {
|
|
47
|
-
flex: 1;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-row {
|
|
52
|
-
height: @table-head-row-height;
|
|
53
|
-
|
|
54
|
-
&-ellipsis {
|
|
55
|
-
.ald-table-cell {
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
text-overflow: ellipsis;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-thead {
|
|
64
|
-
flex: 1;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
|
|
67
|
-
.ald-table-row {
|
|
68
|
-
min-width: 9999px; // 防止拖动时的闪动
|
|
69
|
-
height: @table-head-row-height;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.ald-table-cell {
|
|
73
|
-
position: relative;
|
|
74
|
-
padding: 14px 24px;
|
|
75
|
-
color: @NL50;
|
|
76
|
-
line-height: 20px;
|
|
77
|
-
background-color: @BG95;
|
|
78
|
-
|
|
79
|
-
.ald-table-cell-content {
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
white-space: nowrap;
|
|
82
|
-
text-overflow: ellipsis;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.ald-table-bar {
|
|
86
|
-
position: absolute;
|
|
87
|
-
top: 50%;
|
|
88
|
-
right: -12px;
|
|
89
|
-
z-index: 1;
|
|
90
|
-
display: inline-block;
|
|
91
|
-
width: 12px;
|
|
92
|
-
height: 14px;
|
|
93
|
-
transform: translateY(-50%);
|
|
94
|
-
touch-action: none;
|
|
95
|
-
|
|
96
|
-
&::after {
|
|
97
|
-
display: block;
|
|
98
|
-
width: 1px;
|
|
99
|
-
height: 100%;
|
|
100
|
-
background-color: @BG70;
|
|
101
|
-
content: '';
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:last-child {
|
|
106
|
-
.ald-table-bar {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-tbody {
|
|
114
|
-
flex: 1;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
|
|
117
|
-
.ald-empty {
|
|
118
|
-
display: flex;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.ald-table-row {
|
|
123
|
-
height: @table-body-row-height;
|
|
124
|
-
|
|
125
|
-
.ald-table-cell {
|
|
126
|
-
display: flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
padding-left: 24px;
|
|
129
|
-
|
|
130
|
-
.ald-table-cell-container {
|
|
131
|
-
width: 100%;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&:hover {
|
|
136
|
-
background-color: @NL97;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&-selected {
|
|
140
|
-
background-color: @B98;
|
|
141
|
-
|
|
142
|
-
&:hover {
|
|
143
|
-
background-color: @B98;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
&-tbody&-tbody-innerScroll {
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&-row-list-wrap {
|
|
154
|
-
overflow: unset;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&-loading {
|
|
158
|
-
height: @table-body-row-height;
|
|
159
|
-
color: @NL80;
|
|
160
|
-
line-height: @table-body-row-height;
|
|
161
|
-
text-align: center;
|
|
162
|
-
|
|
163
|
-
&-icon {
|
|
164
|
-
margin-right: 4px;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&-empty-icon {
|
|
169
|
-
padding-top: 52px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&-init-loading {
|
|
173
|
-
.ald-table-loading {
|
|
174
|
-
display: flex;
|
|
175
|
-
align-items: center;
|
|
176
|
-
justify-content: center;
|
|
177
|
-
padding-top: 84px;
|
|
178
|
-
padding-bottom: 84px;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&-header {
|
|
183
|
-
display: flex;
|
|
184
|
-
align-items: center;
|
|
185
|
-
justify-content: space-between;
|
|
186
|
-
margin-bottom: 24px;
|
|
187
|
-
|
|
188
|
-
&-left {
|
|
189
|
-
color: @NL0;
|
|
190
|
-
font-weight: 500;
|
|
191
|
-
font-size: 14px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&-right {
|
|
195
|
-
display: flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
justify-content: flex-end;
|
|
198
|
-
height: 28px;
|
|
199
|
-
color: @NL0;
|
|
200
|
-
font-size: 14px;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// 当出现多行的时候 会顶出一个滚动条 通过复写三方库的样式覆盖
|
|
205
|
-
&-list&-canNotInnerScroll {
|
|
206
|
-
overflow: hidden !important;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&-sortIcon {
|
|
210
|
-
margin-top: -2px;
|
|
211
|
-
margin-left: 4px;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
&-column-resizable {
|
|
215
|
-
overflow: overlay;
|
|
216
|
-
|
|
217
|
-
.ald-table-thead,
|
|
218
|
-
.ald-table-tbody {
|
|
219
|
-
.ald-table-row {
|
|
220
|
-
.ald-table {
|
|
221
|
-
&-cell {
|
|
222
|
-
flex: none;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&-thead {
|
|
226
|
-
&::-webkit-scrollbar {
|
|
227
|
-
display: none;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&-tbody {
|
|
232
|
-
overflow: initial;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
package/es/Table/utils.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IColumn } from './interface';
|
|
2
|
-
export interface IWidthDetail {
|
|
3
|
-
width: number;
|
|
4
|
-
isSpecific: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function getColumnsWidthMap<T>(columns: IColumn<T>[], clientWidth: number, lastWidthMap?: Map<string, IWidthDetail>): {
|
|
7
|
-
columnsWidthMap: Map<string, IWidthDetail>;
|
|
8
|
-
totalColumnWidth: number;
|
|
9
|
-
};
|
|
10
|
-
export declare function isPercentageWidth(width: string): boolean;
|
|
11
|
-
export declare function isSpecificPxWidth(width: string): boolean;
|
|
12
|
-
export declare function getValidWidthByNumber(width: number): number;
|
|
13
|
-
export declare function getValidScrollThreshold(height: string | number, clientHeight: number): number;
|
|
14
|
-
export declare function getPercentageValue(percentage: string, containerNum: number): number;
|
|
15
|
-
export declare function getPxValue(px: string): number;
|