linkmore-design 1.1.32 → 1.1.33
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/CHANGELOG.md +1237 -0
- package/LICENSE +21 -21
- package/README.md +84 -84
- package/dist/Affix/demos/basic.d.ts +0 -1
- package/dist/Affix/index.d.ts +1 -1
- package/dist/Affix/utils.d.ts +1 -1
- package/dist/Alert/demos/basic.d.ts +0 -1
- package/dist/Alert/demos/visible.d.ts +0 -1
- package/dist/Approval/demos/basic.d.ts +0 -1
- package/dist/Approval/type.d.ts +1 -1
- package/dist/AutoComplete/index.d.ts +1 -1
- package/dist/Avatar/demos/basic.d.ts +0 -1
- package/dist/Badge/Ribbon.d.ts +1 -1
- package/dist/Badge/SingleNumber.d.ts +0 -1
- package/dist/Badge/demos/basic.d.ts +0 -1
- package/dist/Breadcrumb/demos/basic.d.ts +0 -1
- package/dist/Breadcrumb/demos/basic1.d.ts +0 -1
- package/dist/Button/demos/basic.d.ts +0 -1
- package/dist/Button/demos/disabled.d.ts +0 -1
- package/dist/Button/demos/ghost.d.ts +0 -1
- package/dist/Button/demos/icon.d.ts +0 -1
- package/dist/Button/demos/type.d.ts +0 -1
- package/dist/Calendar/demos/basic.d.ts +0 -1
- package/dist/Card/demos/basic.d.ts +0 -1
- package/dist/CardTable/LmCardTable.d.ts +1 -1
- package/dist/CardTable/table/TableRoot.d.ts +1 -1
- package/dist/Carousel/demos/basic.d.ts +0 -1
- package/dist/Cascader/demos/basic.d.ts +0 -1
- package/dist/Cascader/demos/formItem.d.ts +0 -1
- package/dist/Col/demos/basic.d.ts +0 -1
- package/dist/Collapse/demos/basic.d.ts +0 -1
- package/dist/Comment/demos/basic.d.ts +0 -1
- package/dist/ConfigProvider/DisabledContext.d.ts +1 -1
- package/dist/ConfigProvider/SizeContext.d.ts +1 -1
- package/dist/ConfigProvider/context.d.ts +2 -2
- package/dist/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
- package/dist/ConfigProvider/demos/componentSize.d.ts +0 -1
- package/dist/CustomTableOption/demos/basic.d.ts +0 -1
- package/dist/DatePicker/PickerButton.d.ts +0 -1
- package/dist/DatePicker/PickerTag.d.ts +0 -1
- package/dist/DatePicker/demos/basic.d.ts +0 -1
- package/dist/DatePicker/generatePicker/index.d.ts +13 -13
- package/dist/DatePicker/generatePicker/interface.d.ts +3 -3
- package/dist/DatePicker/index.d.ts +4 -4
- package/dist/Descriptions/demos/basic.d.ts +0 -1
- package/dist/Drawer/demos/basic.d.ts +0 -1
- package/dist/Drawer/demos/button.d.ts +0 -1
- package/dist/Drawer/demos/nested.d.ts +0 -1
- package/dist/Dropdown/demos/basic.d.ts +0 -1
- package/dist/Dropdown/demos/button.d.ts +0 -1
- package/dist/Dropdown/demos/icon.d.ts +0 -1
- package/dist/Dropdown/demos/local.d.ts +0 -1
- package/dist/Dropdown/demos/target.d.ts +0 -1
- package/dist/Empty/demos/basic.d.ts +0 -1
- package/dist/Empty/demos/custom.d.ts +0 -1
- package/dist/Empty/empty.d.ts +0 -1
- package/dist/Empty/simple.d.ts +0 -1
- package/dist/Form/Form.d.ts +2 -2
- package/dist/Form/FormItem/index.d.ts +6 -6
- package/dist/Form/FormItemLabel.d.ts +2 -2
- package/dist/Form/context.d.ts +2 -2
- package/dist/Form/demos/disabled.d.ts +0 -1
- package/dist/Form/demos/drawer1152-triple.d.ts +0 -1
- package/dist/Form/demos/drawer440-double.d.ts +0 -1
- package/dist/Form/demos/drawer440.d.ts +0 -1
- package/dist/Form/demos/drawer720-double.d.ts +0 -1
- package/dist/Form/demos/error-tip.d.ts +0 -1
- package/dist/Form/demos/formlist.d.ts +0 -1
- package/dist/Form/demos/horizontal.d.ts +0 -1
- package/dist/Form/demos/inline.d.ts +0 -1
- package/dist/Form/demos/modal416.d.ts +0 -1
- package/dist/Form/demos/modal552-double.d.ts +0 -1
- package/dist/Form/demos/responsive.d.ts +0 -1
- package/dist/Form/demos/ruleTime.d.ts +0 -1
- package/dist/Form/demos/vertical.d.ts +0 -1
- package/dist/Form/hooks/useFormItemStatus.d.ts +1 -1
- package/dist/Form/hooks/useFrameState.d.ts +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/interface.d.ts +2 -2
- package/dist/FullScreen/demos/basic.d.ts +0 -1
- package/dist/FullScreen/demos/useInModal.d.ts +0 -1
- package/dist/Grid/col.d.ts +2 -2
- package/dist/Grid/demos/basic.d.ts +0 -1
- package/dist/Grid/row.d.ts +1 -1
- package/dist/IconFont/index.d.ts +0 -1
- package/dist/Image/demos/basic.d.ts +0 -1
- package/dist/ImageViewer/components/Arrows.d.ts +0 -1
- package/dist/ImageViewer/components/Carousel.d.ts +0 -1
- package/dist/ImageViewer/components/Operate.d.ts +0 -1
- package/dist/ImageViewer/components/Thumb.d.ts +0 -1
- package/dist/Input/demos/after.d.ts +0 -1
- package/dist/Input/demos/base.d.ts +0 -1
- package/dist/Input/demos/basic.d.ts +0 -1
- package/dist/Input/demos/color.d.ts +0 -1
- package/dist/Input/demos/combination.d.ts +0 -1
- package/dist/Input/demos/import.d.ts +0 -1
- package/dist/Input/demos/line.d.ts +0 -1
- package/dist/Input/demos/password.d.ts +0 -1
- package/dist/Input/demos/size.d.ts +0 -1
- package/dist/InputNumber/demos/basic.d.ts +0 -1
- package/dist/InputNumber/demos/format.d.ts +0 -1
- package/dist/InputNumber/demos/price.d.ts +0 -1
- package/dist/InputNumber/demos/status.d.ts +0 -1
- package/dist/InputNumber/demos/suffix.d.ts +0 -1
- package/dist/Layout/demos/basic.d.ts +0 -1
- package/dist/List/demos/basic.d.ts +0 -1
- package/dist/LmDrag/components/DndContainer.d.ts +0 -1
- package/dist/LmDrag/demos/basic.d.ts +0 -1
- package/dist/LmEditTable/DragHandle.d.ts +0 -1
- package/dist/LmEditTable/EditTable.d.ts +1 -1
- package/dist/LmEditTable/components/DraggableContainer.d.ts +0 -1
- package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +0 -1
- package/dist/LmEditTable/components/customRenderEmpty.d.ts +0 -1
- package/dist/LmEditTable/components/index.d.ts +0 -1
- package/dist/LmEditTable/demos/basic.d.ts +0 -1
- package/dist/LmEditTable/demos/colsort.d.ts +0 -1
- package/dist/LmEditTable/demos/group.d.ts +0 -1
- package/dist/LmEditTable/demos/priceTable.d.ts +0 -1
- package/dist/LmEditTable/demos/sinleEdit.d.ts +0 -1
- package/dist/LmEditTable/demos/size.d.ts +0 -1
- package/dist/LmEditTable/sortableBox.d.ts +0 -1
- package/dist/LmEditTable/sortableBoxCol.d.ts +0 -1
- package/dist/LmEditTable/sortableItemCol.d.ts +0 -1
- package/dist/LmFilter/wrapper/FilterRoot.d.ts +1 -1
- package/dist/LmSelect/GhostSelect.d.ts +0 -1
- package/dist/LmSelect/demos/basic.d.ts +0 -1
- package/dist/LmSelect/demos/checkbox.d.ts +0 -1
- package/dist/LmSelect/demos/ghost.d.ts +0 -1
- package/dist/LmSelect/useCheckboxOptions.d.ts +0 -1
- package/dist/LmTable/Table.d.ts +1 -1
- package/dist/LmTable/components/DndContainer.d.ts +1 -1
- package/dist/LmTable/components/Item/components/Remove/index.d.ts +0 -1
- package/dist/LmTable/components/customRenderEmpty.d.ts +0 -1
- package/dist/LmTable/components/inputDataEdit.d.ts +0 -1
- package/dist/LmTable/components/tableChartsModal.d.ts +0 -1
- package/dist/LmTable/context.d.ts +1 -1
- package/dist/LmUpload/UploadList/ItemPicture.d.ts +0 -1
- package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +0 -1
- package/dist/LmUpload/UploadList/ItemText.d.ts +0 -1
- package/dist/LmUpload/demos/multiple.d.ts +2 -0
- package/dist/LmUpload/view/index.d.ts +0 -1
- package/dist/LmUpload/wrapper/Upload.d.ts +0 -1
- package/dist/Mentions/demos/basic.d.ts +0 -1
- package/dist/Menu/demos/basic.d.ts +0 -1
- package/dist/Modal/demos/basic.d.ts +0 -1
- package/dist/Modal/demos/info.d.ts +0 -1
- package/dist/Modal/demos/locale.d.ts +0 -1
- package/dist/PageHeader/demos/basic.d.ts +0 -1
- package/dist/Pagination/demos/basic.d.ts +0 -1
- package/dist/Popconfirm/demos/basic.d.ts +0 -1
- package/dist/Popover/demos/basic.d.ts +0 -1
- package/dist/Popover/demos/basic1.d.ts +0 -1
- package/dist/Progress/demos/basic.d.ts +0 -1
- package/dist/Progress/demos/circle.d.ts +0 -1
- package/dist/Progress/demos/dynamic.d.ts +0 -1
- package/dist/Progress/demos/small.d.ts +0 -1
- package/dist/QuickMenu/demos/basic.d.ts +0 -1
- package/dist/QuickMenu/demos/useInDraw.d.ts +0 -1
- package/dist/Rate/demos/basic.d.ts +0 -1
- package/dist/Result/demos/403.d.ts +0 -1
- package/dist/Result/demos/404.d.ts +0 -1
- package/dist/Result/demos/500.d.ts +0 -1
- package/dist/Result/demos/basic.d.ts +0 -1
- package/dist/Result/demos/customicon.d.ts +0 -1
- package/dist/Result/demos/error.d.ts +0 -1
- package/dist/Result/demos/info.d.ts +0 -1
- package/dist/Result/demos/success.d.ts +0 -1
- package/dist/Result/demos/warning.d.ts +0 -1
- package/dist/Result/index.d.ts +6 -6
- package/dist/Result/noFound.d.ts +0 -1
- package/dist/Result/serverError.d.ts +0 -1
- package/dist/Result/unauthorized.d.ts +0 -1
- package/dist/Row/demos/basic.d.ts +0 -1
- package/dist/Segmented/demos/basic.d.ts +0 -1
- package/dist/Select/demos/basic.d.ts +0 -1
- package/dist/Select/demos/bordered.d.ts +0 -1
- package/dist/Select/demos/formItem.d.ts +0 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Skeleton/demos/basic.d.ts +0 -1
- package/dist/Slider/demos/basic.d.ts +0 -1
- package/dist/Space/demos/auto.d.ts +0 -1
- package/dist/Space/demos/basic.d.ts +0 -1
- package/dist/Space/demos/vertical.d.ts +0 -1
- package/dist/Spin/demos/basic.d.ts +0 -1
- package/dist/Spin/demos/size.d.ts +0 -1
- package/dist/Statistic/demos/basic.d.ts +0 -1
- package/dist/Steps/demos/basic.d.ts +0 -1
- package/dist/Switch/demos/basic.d.ts +0 -1
- package/dist/Switch/demos/table.d.ts +0 -1
- package/dist/Table/demos/basic.d.ts +0 -1
- package/dist/Tabs/demos/basic.d.ts +0 -1
- package/dist/Tabs/demos/nobroder.d.ts +0 -1
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tag/demos/CheckableTag.d.ts +0 -1
- package/dist/Tag/demos/ExigencyTag.d.ts +0 -1
- package/dist/Tag/demos/add.d.ts +0 -1
- package/dist/Tag/demos/basic.d.ts +0 -1
- package/dist/Tag/demos/border.d.ts +0 -1
- package/dist/Tag/demos/colors.d.ts +0 -1
- package/dist/Timeline/demos/basic.d.ts +0 -1
- package/dist/Tooltip/demos/basic.d.ts +0 -1
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Transfer/demos/basic.d.ts +0 -1
- package/dist/Tree/DirectoryTree.d.ts +2 -2
- package/dist/Tree/Tree.d.ts +4 -4
- package/dist/Tree/demos/basic.d.ts +0 -1
- package/dist/Tree/demos/controlled.d.ts +0 -1
- package/dist/Tree/demos/search.d.ts +0 -1
- package/dist/Tree/demos/sort.d.ts +0 -1
- package/dist/Tree/utils/dropIndicator.d.ts +0 -1
- package/dist/TreeSelect/demos/basic.d.ts +0 -1
- package/dist/TreeSelect/demos/formItem.d.ts +0 -1
- package/dist/TreeSelect/index.d.ts +1 -1
- package/dist/Typography/Base/index.d.ts +1 -1
- package/dist/Typography/Title.d.ts +1 -1
- package/dist/Typography/demos/basic.d.ts +0 -1
- package/dist/Typography/hooks/useUpdatedEffect.d.ts +1 -1
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Upload/index.d.ts +3 -3
- package/dist/_util/colors.d.ts +2 -2
- package/dist/_util/domTarget.d.ts +3 -3
- package/dist/_util/getRenderPropValue.d.ts +1 -1
- package/dist/_util/motion.d.ts +1 -1
- package/dist/_util/reactNode.d.ts +2 -2
- package/dist/_util/responsiveObserve.d.ts +5 -5
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/type.d.ts +2 -2
- package/dist/_util/warning.d.ts +1 -1
- package/dist/hooks/useFullscreen/demos/basic.d.ts +0 -1
- package/dist/hooks/useFullscreen/demos/useInModal.d.ts +0 -1
- package/dist/hooks/useFullscreen/index.d.ts +3 -3
- package/dist/index.umd.css +1224 -283
- package/dist/index.umd.js +57398 -27795
- package/dist/index.umd.min.css +2 -2
- package/dist/index.umd.min.js +47 -23
- package/dist/locale-provider/LocaleReceiver.d.ts +1 -1
- package/dist/locale-provider/context.d.ts +1 -1
- package/dist/message/demos/basic.d.ts +0 -1
- package/dist/message/demos/other.d.ts +0 -1
- package/dist/message/index.d.ts +10 -10
- package/dist/notification/demos/basic.d.ts +0 -1
- package/dist/notification/demos/button.d.ts +0 -1
- package/dist/notification/demos/icon.d.ts +0 -1
- package/dist/notification/index.d.ts +2 -2
- package/dist/variables.css +178 -178
- package/es/Affix/index.d.ts +1 -1
- package/es/Affix/index.js +90 -37
- package/es/Affix/utils.d.ts +1 -1
- package/es/Affix/utils.js +13 -6
- package/es/Alert/ErrorBoundary.js +15 -5
- package/es/Alert/index.js +64 -42
- package/es/Approval/handle.js +27 -10
- package/es/Approval/index.js +120 -63
- package/es/Approval/type.d.ts +1 -1
- package/es/Approval/type.js +24 -0
- package/es/Approval/util.js +24 -4
- package/es/AutoComplete/index.d.ts +1 -1
- package/es/AutoComplete/index.js +20 -9
- package/es/Badge/Ribbon.d.ts +1 -1
- package/es/Badge/Ribbon.js +16 -9
- package/es/Badge/ScrollNumber.js +28 -17
- package/es/Badge/SingleNumber.d.ts +0 -1
- package/es/Badge/SingleNumber.js +38 -23
- package/es/Badge/index.js +68 -44
- package/es/Badge/utils.js +2 -2
- package/es/Box/body/Item.js +3 -1
- package/es/Box/body/OverflowList.js +2 -2
- package/es/Box/wrapper/BoxContainer.js +12 -8
- package/es/Box/wrapper/BoxRoot.js +7 -5
- package/es/Box/wrapper/reducer.js +4 -2
- package/es/Button/index.js +17 -10
- package/es/ButtonTags/ButtonTags.js +20 -11
- package/es/ButtonTags/index.js +3 -0
- package/es/CardTable/LmCardTable.js +28 -19
- package/es/CardTable/body/TableBody.js +26 -17
- package/es/CardTable/body/TableBodyCell.js +17 -9
- package/es/CardTable/body/TableBodyRow.js +19 -13
- package/es/CardTable/card/PictureTextColumn.js +28 -18
- package/es/CardTable/card/PictureTextRow.js +31 -18
- package/es/CardTable/card/PictureTextRowOperate.js +30 -17
- package/es/CardTable/context.js +5 -0
- package/es/CardTable/empty.js +6 -1
- package/es/CardTable/fns/index.js +36 -22
- package/es/CardTable/footer.js +15 -4
- package/es/CardTable/hooks/usePagination.js +53 -38
- package/es/CardTable/index.js +5 -0
- package/es/CardTable/pager/TablePagination.js +15 -8
- package/es/CardTable/pager/index.js +13 -6
- package/es/CardTable/table/Table.js +6 -2
- package/es/CardTable/table/TableContainer.js +23 -14
- package/es/CardTable/table/TableRoot.js +65 -45
- package/es/CardTable/table/TableWrapper.js +9 -2
- package/es/CardTable/toolbar/ToolBarBottom.js +8 -3
- package/es/CardTable/utils.js +9 -3
- package/es/Cascader/index.js +21 -11
- package/es/Checkbox/index.js +18 -7
- package/es/Col/README.md.old +22 -22
- package/es/ConfigProvider/DisabledContext.d.ts +1 -1
- package/es/ConfigProvider/DisabledContext.js +1 -1
- package/es/ConfigProvider/SizeContext.d.ts +1 -1
- package/es/ConfigProvider/SizeContext.js +1 -1
- package/es/ConfigProvider/context.d.ts +2 -2
- package/es/ConfigProvider/context.js +10 -4
- package/es/ConfigProvider/cssVariables.js +25 -16
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
- package/es/ConfigProvider/defaultRenderEmpty.js +6 -0
- package/es/ConfigProvider/index.js +55 -30
- package/es/CropImg/body/Operate.js +19 -10
- package/es/CropImg/body/index.js +8 -6
- package/es/CropImg/fns/index.js +11 -10
- package/es/CropImg/utils.js +52 -34
- package/es/CropImg/wrapper/Container.js +23 -12
- package/es/CropImg/wrapper/Root.js +16 -13
- package/es/CropImg/wrapper/Wrapper.js +2 -0
- package/es/CropImg/wrapper/reducer.js +9 -5
- package/es/CustomTableOption/cardSort.js +49 -24
- package/es/CustomTableOption/columnsSort.js +63 -29
- package/es/CustomTableOption/filterSort.js +53 -28
- package/es/CustomTableOption/index.js +31 -18
- package/es/CustomerService/README.md.old +15 -15
- package/es/CustomerService/components/question.js +20 -3
- package/es/CustomerService/index.js +46 -18
- package/es/DatePicker/PickerButton.d.ts +0 -1
- package/es/DatePicker/PickerTag.d.ts +0 -1
- package/es/DatePicker/generatePicker/generateRangePicker.js +33 -23
- package/es/DatePicker/generatePicker/generateSinglePicker.js +37 -22
- package/es/DatePicker/generatePicker/index.d.ts +13 -13
- package/es/DatePicker/generatePicker/index.js +25 -12
- package/es/DatePicker/generatePicker/interface.d.ts +3 -3
- package/es/DatePicker/index.d.ts +4 -4
- package/es/DatePicker/util.js +17 -0
- package/es/Descriptions/Cell.js +17 -11
- package/es/Descriptions/Item.js +1 -0
- package/es/Descriptions/Row.js +31 -24
- package/es/Descriptions/index.js +46 -27
- package/es/Divider/index.js +21 -12
- package/es/Drawer/index.js +11 -4
- package/es/Dropdown/index.js +40 -19
- package/es/EditTable/EditTable.js +178 -82
- package/es/EditTable/README.md.old +66 -66
- package/es/EditTable/index.js +3 -0
- package/es/Empty/empty.js +4 -1
- package/es/Empty/index.js +22 -10
- package/es/Empty/simple.js +4 -1
- package/es/EnlargeImg/README.md.old +21 -21
- package/es/EnlargeImg/index.js +43 -17
- package/es/Filter/Popover.js +65 -29
- package/es/Filter/README.md.old +144 -144
- package/es/Filter/baseFilter/Popover.js +70 -28
- package/es/Filter/baseFilter/ToggleFilter.js +25 -9
- package/es/Filter/baseFilter/index.js +31 -11
- package/es/Filter/complex/ComplexFilter.js +47 -16
- package/es/Filter/complex/ComplexItem.js +47 -24
- package/es/Filter/components/Checkbox.js +34 -14
- package/es/Filter/components/Date.js +30 -10
- package/es/Filter/components/Input.js +23 -7
- package/es/Filter/components/Select.js +33 -13
- package/es/Filter/components/Tree.js +24 -8
- package/es/Filter/components/header.js +17 -3
- package/es/Filter/components/index.js +6 -0
- package/es/Filter/context.js +4 -0
- package/es/Filter/edit/editFilter.js +81 -44
- package/es/Filter/index.js +49 -27
- package/es/Filter/popContext.js +4 -0
- package/es/Filter/remember.js +41 -18
- package/es/Form/ErrorList.js +22 -16
- package/es/Form/Form.d.ts +2 -2
- package/es/Form/Form.js +49 -27
- package/es/Form/FormItem/ItemHolder.js +42 -26
- package/es/Form/FormItem/index.d.ts +6 -6
- package/es/Form/FormItem/index.js +118 -70
- package/es/Form/FormItemInput.js +16 -14
- package/es/Form/FormItemLabel.d.ts +2 -2
- package/es/Form/FormItemLabel.js +43 -24
- package/es/Form/FormList.js +11 -3
- package/es/Form/FormWrapper.js +4 -0
- package/es/Form/WrapperItem.js +70 -34
- package/es/Form/container.js +25 -12
- package/es/Form/context.d.ts +2 -2
- package/es/Form/context.js +5 -2
- package/es/Form/hooks/useDebounce.js +4 -3
- package/es/Form/hooks/useForm.js +7 -2
- package/es/Form/hooks/useFormInstance.js +2 -1
- package/es/Form/hooks/useFormItemStatus.d.ts +1 -1
- package/es/Form/hooks/useFormItemStatus.js +4 -1
- package/es/Form/hooks/useFrameState.d.ts +1 -1
- package/es/Form/hooks/useFrameState.js +8 -3
- package/es/Form/hooks/useItemRef.js +6 -1
- package/es/Form/index.d.ts +1 -1
- package/es/Form/index.js +2 -0
- package/es/Form/interface.d.ts +2 -2
- package/es/Form/util.js +6 -2
- package/es/FullScreen/index.js +6 -3
- package/es/Grid/col.d.ts +2 -2
- package/es/Grid/col.js +41 -21
- package/es/Grid/hooks/useBreakpoint.js +3 -0
- package/es/Grid/index.js +3 -2
- package/es/Grid/row.d.ts +1 -1
- package/es/Grid/row.js +49 -31
- package/es/Icon/index.js +4 -0
- package/es/IconFont/font/iconfont.css +1831 -1831
- package/es/IconFont/font/iconfont.js +16 -10
- package/es/IconFont/index.js +4 -1
- package/es/IconSelect/iconJson.json +2935 -2935
- package/es/IconSelect/index.js +29 -12
- package/es/ImageViewer/LmImageViewer.js +6 -0
- package/es/ImageViewer/components/Arrows.js +7 -1
- package/es/ImageViewer/components/Carousel.js +15 -13
- package/es/ImageViewer/components/Operate.js +4 -0
- package/es/ImageViewer/components/Thumb.js +10 -3
- package/es/ImageViewer/fns/index.js +26 -17
- package/es/ImageViewer/wrapeer/Container.js +5 -1
- package/es/ImageViewer/wrapeer/Root.js +19 -14
- package/es/ImageViewer/wrapeer/Wrapper.js +5 -1
- package/es/ImageViewer/wrapeer/reducer.js +13 -6
- package/es/Input/index.js +37 -30
- package/es/InputNumber/index.js +13 -9
- package/es/LeftTable/index.js +49 -25
- package/es/LmDrag/LmDrag.js +6 -0
- package/es/LmDrag/components/DndContainer.js +38 -22
- package/es/LmDrag/components/sortableBox.js +5 -4
- package/es/LmDrag/components/sortableItem.js +17 -13
- package/es/LmDrag/wrapper/Root.js +2 -0
- package/es/LmEditTable/DndContainer.js +33 -22
- package/es/LmEditTable/DragHandle.js +6 -4
- package/es/LmEditTable/EditTable.d.ts +1 -1
- package/es/LmEditTable/EditTable.js +370 -159
- package/es/LmEditTable/components/DraggableContainer.js +12 -6
- package/es/LmEditTable/components/QuickOpetate.js +12 -7
- package/es/LmEditTable/components/bottomOpetateComponent.js +6 -4
- package/es/LmEditTable/components/customRenderEmpty.js +4 -1
- package/es/LmEditTable/hooks/useForkRef.js +3 -0
- package/es/LmEditTable/rowSort/DndContainerRow.js +36 -24
- package/es/LmEditTable/sortableBox.js +3 -1
- package/es/LmEditTable/sortableBoxCol.js +3 -1
- package/es/LmEditTable/sortableItem.js +19 -10
- package/es/LmEditTable/sortableItemCol.d.ts +0 -1
- package/es/LmEditTable/sortableItemCol.js +21 -16
- package/es/LmEditTable/util.js +46 -6
- package/es/LmEditTable/virtual/VirtualRow.js +46 -26
- package/es/LmEditTable/virtual/VirtualRow2.js +15 -7
- package/es/LmEditTable/virtual/VirtualTable.js +14 -10
- package/es/LmEditTable/virtual/VirtualWrapper.js +13 -6
- package/es/LmEditTable/virtual/context.js +15 -5
- package/es/LmFilter/Controls/CheckboxTags.js +12 -2
- package/es/LmFilter/Controls/index.js +24 -10
- package/es/LmFilter/LmFilter.js +14 -4
- package/es/LmFilter/baseFilter/fuzzySearch.js +18 -8
- package/es/LmFilter/baseFilter/index.js +7 -2
- package/es/LmFilter/clearFilter/index.js +9 -2
- package/es/LmFilter/complexFilter/drawer.js +76 -47
- package/es/LmFilter/complexFilter/index.js +14 -2
- package/es/LmFilter/complexFilter/valueDrawer.js +52 -20
- package/es/LmFilter/components/CascaderFilter.js +52 -27
- package/es/LmFilter/components/CheckboxFilter.js +52 -39
- package/es/LmFilter/components/CustomSelectFilter.js +38 -20
- package/es/LmFilter/components/DateFilter.js +39 -23
- package/es/LmFilter/components/DropdownFIlter.js +90 -57
- package/es/LmFilter/components/EmptyFilter.js +5 -0
- package/es/LmFilter/components/InputFilter.js +13 -5
- package/es/LmFilter/components/InputSearchClose.js +22 -10
- package/es/LmFilter/components/SelectFilter.js +37 -21
- package/es/LmFilter/components/index.js +37 -26
- package/es/LmFilter/customFilter/drawer.js +75 -40
- package/es/LmFilter/customFilter/index.js +24 -11
- package/es/LmFilter/customFilter/saveModal.js +39 -15
- package/es/LmFilter/customFilter/valueDrawer.js +51 -20
- package/es/LmFilter/filterFns/index.js +192 -131
- package/es/LmFilter/hooks/index.js +2 -0
- package/es/LmFilter/hooks/useDelayedFn.js +5 -2
- package/es/LmFilter/index.js +3 -0
- package/es/LmFilter/localization.js +1 -2
- package/es/LmFilter/utils.js +52 -26
- package/es/LmFilter/wrapper/Filter.js +13 -4
- package/es/LmFilter/wrapper/FilterContainer.js +5 -1
- package/es/LmFilter/wrapper/FilterRoot.js +62 -40
- package/es/LmFilter/wrapper/FilterWrapper.js +5 -1
- package/es/LmImgList/body/Banner.js +17 -13
- package/es/LmImgList/body/Thumb.js +9 -4
- package/es/LmImgList/fns/index.js +23 -15
- package/es/LmImgList/wrapper/Container.js +13 -9
- package/es/LmImgList/wrapper/Root.js +16 -13
- package/es/LmImgList/wrapper/reducer.js +11 -6
- package/es/LmSelect/GhostSelect.js +150 -99
- package/es/LmSelect/NormalSelect.js +30 -20
- package/es/LmSelect/index.js +7 -1
- package/es/LmSelect/useCheckboxOptions.js +27 -17
- package/es/LmSelect/utils.js +22 -20
- package/es/LmTable/Table.js +490 -289
- package/es/LmTable/VList.js +170 -109
- package/es/LmTable/autosize.js +43 -16
- package/es/LmTable/chartUtil.js +14 -4
- package/es/LmTable/common/index.js +7 -1
- package/es/LmTable/components/CalcExpression.js +30 -11
- package/es/LmTable/components/Container/Container.js +22 -18
- package/es/LmTable/components/DndContainer.d.ts +1 -1
- package/es/LmTable/components/DndContainer.js +211 -132
- package/es/LmTable/components/HeaderCol.js +22 -13
- package/es/LmTable/components/Item/Item.js +26 -22
- package/es/LmTable/components/Item/components/Action/Action.js +8 -4
- package/es/LmTable/components/Item/components/Remove/index.d.ts +0 -1
- package/es/LmTable/components/SortableBox.js +6 -1
- package/es/LmTable/components/customRenderEmpty.js +4 -1
- package/es/LmTable/components/inputDataEdit.js +8 -3
- package/es/LmTable/components/sheelTableCell.js +57 -32
- package/es/LmTable/components/tableChartsModal.js +30 -23
- package/es/LmTable/context.js +3 -0
- package/es/LmTable/detectElementResize.js +59 -26
- package/es/LmTable/expression.js +24 -4
- package/es/LmTable/hooks/useDndItems.js +65 -24
- package/es/LmTable/hooks/useGroupDataSource.js +6 -1
- package/es/LmTable/hooks/useResizeObserver.js +18 -13
- package/es/LmTable/hooks/useRowSelectControllableValue.js +20 -6
- package/es/LmTable/index.js +3 -0
- package/es/LmTable/multipleContainersKeyboardCoordinates.js +30 -5
- package/es/LmTable/resetConfig.js +8 -8
- package/es/LmTable/testDemos/group.js +21 -5
- package/es/LmTable/util.js +154 -87
- package/es/LmTable/virTual/VirtualRow.js +42 -25
- package/es/LmTable/virTual/VirtualTable.js +21 -12
- package/es/LmTable/virTual/VirtualWrapper.js +14 -7
- package/es/LmTable/virTual/context.js +15 -5
- package/es/LmUpload/LmUpload.js +18 -11
- package/es/LmUpload/UploadList/ItemPicture.js +9 -8
- package/es/LmUpload/UploadList/ItemPictureCard.js +38 -23
- package/es/LmUpload/UploadList/ItemText.js +7 -5
- package/es/LmUpload/UploadList/RenderItem.js +7 -1
- package/es/LmUpload/UploadList/index.js +19 -11
- package/es/LmUpload/body/Progress.js +2 -0
- package/es/LmUpload/body/UploadCore.js +18 -10
- package/es/LmUpload/body/UploadPicture.js +5 -4
- package/es/LmUpload/components/Crop.js +5 -3
- package/es/LmUpload/components/Preview.js +10 -7
- package/es/LmUpload/fns/index.js +117 -66
- package/es/LmUpload/utils.js +15 -12
- package/es/LmUpload/view/index.js +2 -0
- package/es/LmUpload/wrapper/Upload.js +2 -0
- package/es/LmUpload/wrapper/UploadContainer.js +5 -1
- package/es/LmUpload/wrapper/UploadRoot.js +18 -13
- package/es/LmUpload/wrapper/UploadWrapper.js +2 -0
- package/es/LmUpload/wrapper/reducer.js +11 -6
- package/es/LoadingPage/index.js +7 -1
- package/es/Locale/ku_IQ.js +2 -2
- package/es/Modal/index.js +25 -10
- package/es/PageHeader/index.js +44 -22
- package/es/Pagination/index.js +13 -4
- package/es/Popover/index.js +14 -5
- package/es/QuickMenu/index.js +45 -18
- package/es/Radio/index.js +24 -10
- package/es/Result/index.d.ts +6 -6
- package/es/Result/index.js +26 -16
- package/es/Result/noFound.js +2 -0
- package/es/Result/serverError.js +2 -0
- package/es/Result/unauthorized.js +2 -0
- package/es/Row/README.md.old +22 -22
- package/es/Select/index.d.ts +1 -1
- package/es/Select/index.js +31 -20
- package/es/Switch/index.js +11 -4
- package/es/Tabs/TabPane.js +2 -0
- package/es/Tabs/hooks/useAnimateConfig.js +3 -0
- package/es/Tabs/hooks/useLegacyItems.js +12 -3
- package/es/Tabs/index.d.ts +2 -2
- package/es/Tabs/index.js +27 -15
- package/es/Tabs/index.old.js +11 -4
- package/es/Tag/index.js +13 -5
- package/es/Tooltip/index.d.ts +2 -2
- package/es/Tooltip/index.js +66 -34
- package/es/Tree/DirectoryTree.d.ts +2 -2
- package/es/Tree/DirectoryTree.js +61 -31
- package/es/Tree/Tree.d.ts +4 -4
- package/es/Tree/Tree.js +21 -14
- package/es/Tree/index.js +5 -1
- package/es/Tree/utils/dictUtil.js +21 -4
- package/es/Tree/utils/dropIndicator.d.ts +0 -1
- package/es/Tree/utils/dropIndicator.js +10 -5
- package/es/Tree/utils/iconUtil.js +13 -2
- package/es/TreeSelect/index.d.ts +1 -1
- package/es/TreeSelect/index.js +24 -15
- package/es/Typography/Base/Ellipsis.js +52 -25
- package/es/Typography/Base/EllipsisTooltip.js +8 -3
- package/es/Typography/Base/index.d.ts +1 -1
- package/es/Typography/Base/index.js +173 -104
- package/es/Typography/Editable.js +34 -21
- package/es/Typography/Link.js +11 -4
- package/es/Typography/Paragraph.js +2 -0
- package/es/Typography/Text.js +9 -1
- package/es/Typography/Title.d.ts +1 -1
- package/es/Typography/Title.js +10 -2
- package/es/Typography/Typography.js +23 -11
- package/es/Typography/hooks/useUpdatedEffect.d.ts +1 -1
- package/es/Typography/hooks/useUpdatedEffect.js +1 -0
- package/es/Typography/index.d.ts +1 -1
- package/es/Upload/index.d.ts +3 -3
- package/es/Upload/index.js +6 -2
- package/es/UploadOss/index.js +4 -0
- package/es/UploadOss/uploadBtn.js +54 -32
- package/es/UploadOss/uploadImg.js +86 -58
- package/es/VirtualList/index.js +27 -18
- package/es/_util/colors.d.ts +2 -2
- package/es/_util/colors.js +2 -2
- package/es/_util/domTarget.d.ts +3 -3
- package/es/_util/domTarget.js +3 -0
- package/es/_util/getDataOrAriaProps.js +1 -0
- package/es/_util/getRenderPropValue.d.ts +1 -1
- package/es/_util/getRenderPropValue.js +3 -0
- package/es/_util/hooks/useFlexGapSupport.js +4 -3
- package/es/_util/hooks/useForceUpdate.js +5 -4
- package/es/_util/motion.d.ts +1 -1
- package/es/_util/motion.js +11 -2
- package/es/_util/placements.js +8 -7
- package/es/_util/reactNode.d.ts +2 -2
- package/es/_util/responsiveObserve.d.ts +5 -5
- package/es/_util/responsiveObserve.js +5 -0
- package/es/_util/statusUtils.d.ts +1 -1
- package/es/_util/statusUtils.js +1 -0
- package/es/_util/styleChecker.js +9 -6
- package/es/_util/throttleByAnimationFrame.js +6 -0
- package/es/_util/transButton.js +15 -3
- package/es/_util/type.d.ts +2 -2
- package/es/_util/type.js +2 -0
- package/es/_util/warning.d.ts +1 -1
- package/es/_util/warning.js +6 -4
- package/es/hooks/useEvent/index.js +7 -6
- package/es/hooks/useFullscreen/index.d.ts +3 -3
- package/es/hooks/useFullscreen/index.js +29 -7
- package/es/locale-provider/LocaleReceiver.d.ts +1 -1
- package/es/locale-provider/LocaleReceiver.js +12 -4
- package/es/locale-provider/context.d.ts +1 -1
- package/es/locale-provider/index.js +11 -2
- package/es/message/hooks/useMessage.js +17 -8
- package/es/message/index.d.ts +10 -10
- package/es/message/index.js +36 -8
- package/es/notification/hooks/useNotification.js +12 -8
- package/es/notification/index.d.ts +2 -2
- package/es/notification/index.js +70 -34
- package/es/services/newRequest.js +50 -21
- package/es/services/utils.js +15 -0
- package/es/styles/variables.css +178 -178
- package/lib/Affix/index.d.ts +1 -1
- package/lib/Affix/index.js +104 -37
- package/lib/Affix/utils.d.ts +1 -1
- package/lib/Affix/utils.js +22 -6
- package/lib/Alert/ErrorBoundary.js +21 -5
- package/lib/Alert/index.js +78 -42
- package/lib/Approval/handle.js +37 -10
- package/lib/Approval/index.js +131 -63
- package/lib/Approval/type.d.ts +1 -1
- package/lib/Approval/type.js +24 -0
- package/lib/Approval/util.js +30 -4
- package/lib/AutoComplete/index.d.ts +1 -1
- package/lib/AutoComplete/index.js +34 -10
- package/lib/Avatar/index.js +4 -0
- package/lib/Badge/Ribbon.d.ts +1 -1
- package/lib/Badge/Ribbon.js +23 -9
- package/lib/Badge/ScrollNumber.js +35 -17
- package/lib/Badge/SingleNumber.d.ts +0 -1
- package/lib/Badge/SingleNumber.js +43 -23
- package/lib/Badge/index.js +79 -44
- package/lib/Badge/utils.js +2 -0
- package/lib/Box/LmBox.js +5 -0
- package/lib/Box/body/Item.js +7 -1
- package/lib/Box/body/List.js +6 -0
- package/lib/Box/body/OverflowList.js +4 -0
- package/lib/Box/index.js +3 -0
- package/lib/Box/wrapper/BoxContainer.js +19 -8
- package/lib/Box/wrapper/BoxRoot.js +14 -5
- package/lib/Box/wrapper/BoxWrapper.js +5 -0
- package/lib/Box/wrapper/reducer.js +8 -2
- package/lib/Breadcrumb/index.js +4 -0
- package/lib/Button/index.js +25 -10
- package/lib/ButtonTags/ButtonTags.js +20 -11
- package/lib/ButtonTags/index.js +3 -0
- package/lib/Calendar/index.js +4 -0
- package/lib/Card/index.js +4 -0
- package/lib/CardTable/LmCardTable.js +28 -19
- package/lib/CardTable/body/TableBody.js +26 -17
- package/lib/CardTable/body/TableBodyCell.js +17 -9
- package/lib/CardTable/body/TableBodyRow.js +19 -13
- package/lib/CardTable/card/PictureTextColumn.js +28 -18
- package/lib/CardTable/card/PictureTextRow.js +31 -18
- package/lib/CardTable/card/PictureTextRowOperate.js +30 -17
- package/lib/CardTable/context.js +5 -0
- package/lib/CardTable/empty.js +6 -1
- package/lib/CardTable/fns/index.js +36 -22
- package/lib/CardTable/footer.js +15 -4
- package/lib/CardTable/hooks/usePagination.js +53 -38
- package/lib/CardTable/index.js +5 -0
- package/lib/CardTable/pager/TablePagination.js +15 -8
- package/lib/CardTable/pager/index.js +13 -6
- package/lib/CardTable/table/Table.js +6 -2
- package/lib/CardTable/table/TableContainer.js +23 -14
- package/lib/CardTable/table/TableRoot.js +65 -45
- package/lib/CardTable/table/TableWrapper.js +9 -2
- package/lib/CardTable/toolbar/ToolBarBottom.js +8 -3
- package/lib/CardTable/utils.js +9 -3
- package/lib/Carousel/index.js +4 -0
- package/lib/Cascader/index.js +30 -11
- package/lib/Checkbox/index.js +18 -7
- package/lib/Col/README.md.old +22 -22
- package/lib/Col/index.js +2 -0
- package/lib/Collapse/index.js +4 -0
- package/lib/Comment/index.js +4 -0
- package/lib/ConfigProvider/DisabledContext.d.ts +1 -1
- package/lib/ConfigProvider/DisabledContext.js +6 -1
- package/lib/ConfigProvider/SizeContext.d.ts +1 -1
- package/lib/ConfigProvider/SizeContext.js +6 -1
- package/lib/ConfigProvider/context.d.ts +2 -2
- package/lib/ConfigProvider/context.js +13 -4
- package/lib/ConfigProvider/cssVariables.js +34 -17
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
- package/lib/ConfigProvider/defaultRenderEmpty.js +12 -0
- package/lib/ConfigProvider/index.js +75 -30
- package/lib/CropImg/LmCropImg.js +5 -0
- package/lib/CropImg/body/Operate.js +23 -10
- package/lib/CropImg/body/index.js +13 -6
- package/lib/CropImg/fns/index.js +12 -8
- package/lib/CropImg/index.js +3 -0
- package/lib/CropImg/utils.js +52 -34
- package/lib/CropImg/wrapper/Container.js +29 -10
- package/lib/CropImg/wrapper/Root.js +24 -13
- package/lib/CropImg/wrapper/Wrapper.js +6 -0
- package/lib/CropImg/wrapper/reducer.js +12 -5
- package/lib/CustomTableOption/cardSort.js +60 -24
- package/lib/CustomTableOption/columnsSort.js +77 -29
- package/lib/CustomTableOption/filterSort.js +65 -28
- package/lib/CustomTableOption/index.js +44 -18
- package/lib/CustomerService/README.md.old +15 -15
- package/lib/CustomerService/components/question.js +20 -3
- package/lib/CustomerService/index.js +46 -18
- package/lib/DatePicker/PickerButton.d.ts +0 -1
- package/lib/DatePicker/PickerButton.js +4 -0
- package/lib/DatePicker/PickerTag.d.ts +0 -1
- package/lib/DatePicker/PickerTag.js +4 -0
- package/lib/DatePicker/generatePicker/generateRangePicker.js +52 -23
- package/lib/DatePicker/generatePicker/generateSinglePicker.js +56 -22
- package/lib/DatePicker/generatePicker/index.d.ts +13 -13
- package/lib/DatePicker/generatePicker/index.js +33 -12
- package/lib/DatePicker/generatePicker/interface.d.ts +3 -3
- package/lib/DatePicker/index.d.ts +4 -4
- package/lib/DatePicker/index.js +6 -0
- package/lib/DatePicker/util.js +20 -0
- package/lib/Descriptions/Cell.js +22 -11
- package/lib/Descriptions/Item.js +2 -0
- package/lib/Descriptions/Row.js +36 -24
- package/lib/Descriptions/index.js +61 -28
- package/lib/Divider/index.js +28 -12
- package/lib/Drawer/index.js +16 -4
- package/lib/Dropdown/index.js +48 -19
- package/lib/EditTable/EditTable.js +178 -82
- package/lib/EditTable/README.md.old +66 -66
- package/lib/EditTable/index.js +3 -0
- package/lib/Empty/empty.js +7 -1
- package/lib/Empty/index.js +33 -10
- package/lib/Empty/simple.js +7 -1
- package/lib/EnlargeImg/README.md.old +21 -21
- package/lib/EnlargeImg/index.js +43 -17
- package/lib/Filter/Popover.js +65 -29
- package/lib/Filter/README.md.old +144 -144
- package/lib/Filter/baseFilter/Popover.js +70 -28
- package/lib/Filter/baseFilter/ToggleFilter.js +25 -9
- package/lib/Filter/baseFilter/index.js +31 -11
- package/lib/Filter/complex/ComplexFilter.js +47 -16
- package/lib/Filter/complex/ComplexItem.js +47 -24
- package/lib/Filter/components/Checkbox.js +34 -14
- package/lib/Filter/components/Date.js +30 -10
- package/lib/Filter/components/Input.js +23 -7
- package/lib/Filter/components/Select.js +33 -13
- package/lib/Filter/components/Tree.js +24 -8
- package/lib/Filter/components/header.js +17 -3
- package/lib/Filter/components/index.js +6 -0
- package/lib/Filter/context.js +4 -0
- package/lib/Filter/edit/editFilter.js +81 -44
- package/lib/Filter/index.js +49 -27
- package/lib/Filter/popContext.js +4 -0
- package/lib/Filter/remember.js +41 -18
- package/lib/Form/ErrorList.js +34 -16
- package/lib/Form/Form.d.ts +2 -2
- package/lib/Form/Form.js +62 -27
- package/lib/Form/FormItem/ItemHolder.js +60 -26
- package/lib/Form/FormItem/index.d.ts +6 -6
- package/lib/Form/FormItem/index.js +138 -70
- package/lib/Form/FormItemInput.js +23 -14
- package/lib/Form/FormItemLabel.d.ts +2 -2
- package/lib/Form/FormItemLabel.js +55 -24
- package/lib/Form/FormList.js +18 -3
- package/lib/Form/FormWrapper.js +8 -0
- package/lib/Form/WrapperItem.js +79 -34
- package/lib/Form/container.js +32 -12
- package/lib/Form/context.d.ts +2 -2
- package/lib/Form/context.js +15 -2
- package/lib/Form/hooks/useDebounce.js +9 -3
- package/lib/Form/hooks/useForm.js +14 -2
- package/lib/Form/hooks/useFormInstance.js +5 -1
- package/lib/Form/hooks/useFormItemStatus.d.ts +1 -1
- package/lib/Form/hooks/useFormItemStatus.js +8 -1
- package/lib/Form/hooks/useFrameState.d.ts +1 -1
- package/lib/Form/hooks/useFrameState.js +16 -3
- package/lib/Form/hooks/useItemRef.js +13 -1
- package/lib/Form/index.d.ts +1 -1
- package/lib/Form/index.js +13 -0
- package/lib/Form/interface.d.ts +2 -2
- package/lib/Form/util.js +9 -2
- package/lib/FullScreen/index.js +10 -3
- package/lib/Grid/RowContext.js +2 -0
- package/lib/Grid/col.d.ts +2 -2
- package/lib/Grid/col.js +48 -21
- package/lib/Grid/hooks/useBreakpoint.js +8 -0
- package/lib/Grid/index.js +7 -0
- package/lib/Grid/row.d.ts +1 -1
- package/lib/Grid/row.js +62 -31
- package/lib/Icon/index.js +4 -0
- package/lib/IconFont/font/iconfont.css +1831 -1831
- package/lib/IconFont/font/iconfont.js +16 -10
- package/lib/IconFont/index.js +11 -1
- package/lib/IconSelect/iconJson.json +2935 -2935
- package/lib/IconSelect/index.js +29 -12
- package/lib/Image/index.js +4 -0
- package/lib/ImageViewer/LmImageViewer.js +11 -0
- package/lib/ImageViewer/components/Arrows.js +10 -1
- package/lib/ImageViewer/components/Carousel.js +18 -13
- package/lib/ImageViewer/components/Operate.js +7 -0
- package/lib/ImageViewer/components/Thumb.js +15 -3
- package/lib/ImageViewer/fns/index.js +27 -17
- package/lib/ImageViewer/index.js +3 -0
- package/lib/ImageViewer/wrapeer/Container.js +12 -2
- package/lib/ImageViewer/wrapeer/Root.js +27 -15
- package/lib/ImageViewer/wrapeer/Wrapper.js +9 -2
- package/lib/ImageViewer/wrapeer/reducer.js +16 -6
- package/lib/Input/index.js +49 -30
- package/lib/InputNumber/index.js +23 -9
- package/lib/Layout/index.js +4 -0
- package/lib/LeftTable/index.js +49 -25
- package/lib/List/index.js +4 -0
- package/lib/LmDrag/LmDrag.js +11 -0
- package/lib/LmDrag/components/DndContainer.js +47 -22
- package/lib/LmDrag/components/sortableBox.js +9 -2
- package/lib/LmDrag/components/sortableItem.js +22 -13
- package/lib/LmDrag/index.js +3 -0
- package/lib/LmDrag/wrapper/Root.js +7 -0
- package/lib/LmEditTable/DndContainer.js +43 -22
- package/lib/LmEditTable/DragHandle.js +12 -4
- package/lib/LmEditTable/EditTable.d.ts +1 -1
- package/lib/LmEditTable/EditTable.js +397 -159
- package/lib/LmEditTable/components/DraggableContainer.js +17 -6
- package/lib/LmEditTable/components/QuickOpetate.js +18 -7
- package/lib/LmEditTable/components/bottomOpetateComponent.js +9 -4
- package/lib/LmEditTable/components/customRenderEmpty.js +8 -1
- package/lib/LmEditTable/components/index.js +6 -0
- package/lib/LmEditTable/hooks/useForkRef.js +4 -0
- package/lib/LmEditTable/index.js +3 -0
- package/lib/LmEditTable/rowSort/DndContainerRow.js +42 -23
- package/lib/LmEditTable/sortableBox.js +6 -1
- package/lib/LmEditTable/sortableBoxCol.js +6 -1
- package/lib/LmEditTable/sortableItem.js +25 -10
- package/lib/LmEditTable/sortableItemCol.d.ts +0 -1
- package/lib/LmEditTable/sortableItemCol.js +22 -11
- package/lib/LmEditTable/util.js +60 -6
- package/lib/LmEditTable/virtual/VirtualRow.js +53 -26
- package/lib/LmEditTable/virtual/VirtualRow2.js +22 -7
- package/lib/LmEditTable/virtual/VirtualTable.js +22 -10
- package/lib/LmEditTable/virtual/VirtualWrapper.js +18 -6
- package/lib/LmEditTable/virtual/context.js +15 -3
- package/lib/LmEditTable/virtual/index.js +4 -0
- package/lib/LmFilter/Controls/CheckboxTags.js +12 -2
- package/lib/LmFilter/Controls/index.js +24 -10
- package/lib/LmFilter/LmFilter.js +14 -4
- package/lib/LmFilter/baseFilter/fuzzySearch.js +18 -8
- package/lib/LmFilter/baseFilter/index.js +7 -2
- package/lib/LmFilter/clearFilter/index.js +9 -2
- package/lib/LmFilter/complexFilter/drawer.js +76 -47
- package/lib/LmFilter/complexFilter/index.js +14 -2
- package/lib/LmFilter/complexFilter/valueDrawer.js +52 -20
- package/lib/LmFilter/components/CascaderFilter.js +52 -27
- package/lib/LmFilter/components/CheckboxFilter.js +52 -39
- package/lib/LmFilter/components/CustomSelectFilter.js +38 -20
- package/lib/LmFilter/components/DateFilter.js +39 -23
- package/lib/LmFilter/components/DropdownFIlter.js +90 -57
- package/lib/LmFilter/components/EmptyFilter.js +5 -0
- package/lib/LmFilter/components/InputFilter.js +13 -5
- package/lib/LmFilter/components/InputSearchClose.js +22 -10
- package/lib/LmFilter/components/SelectFilter.js +37 -21
- package/lib/LmFilter/components/index.js +37 -26
- package/lib/LmFilter/customFilter/drawer.js +75 -40
- package/lib/LmFilter/customFilter/index.js +24 -11
- package/lib/LmFilter/customFilter/saveModal.js +39 -15
- package/lib/LmFilter/customFilter/valueDrawer.js +51 -20
- package/lib/LmFilter/filterFns/index.js +198 -129
- package/lib/LmFilter/hooks/index.js +2 -0
- package/lib/LmFilter/hooks/useDelayedFn.js +5 -2
- package/lib/LmFilter/index.js +3 -0
- package/lib/LmFilter/localization.js +1 -2
- package/lib/LmFilter/utils.js +52 -26
- package/lib/LmFilter/wrapper/Filter.js +13 -4
- package/lib/LmFilter/wrapper/FilterContainer.js +5 -1
- package/lib/LmFilter/wrapper/FilterRoot.js +62 -40
- package/lib/LmFilter/wrapper/FilterWrapper.js +5 -1
- package/lib/LmImgList/LmImgList.js +5 -0
- package/lib/LmImgList/body/Banner.js +22 -13
- package/lib/LmImgList/body/Thumb.js +16 -4
- package/lib/LmImgList/fns/index.js +24 -15
- package/lib/LmImgList/index.js +4 -0
- package/lib/LmImgList/wrapper/Container.js +21 -9
- package/lib/LmImgList/wrapper/Root.js +24 -13
- package/lib/LmImgList/wrapper/Wrapper.js +5 -0
- package/lib/LmImgList/wrapper/reducer.js +14 -6
- package/lib/LmSelect/GhostSelect.js +163 -99
- package/lib/LmSelect/NormalSelect.js +40 -20
- package/lib/LmSelect/index.js +14 -1
- package/lib/LmSelect/useCheckboxOptions.js +37 -17
- package/lib/LmSelect/utils.js +38 -18
- package/lib/LmTable/Table.js +490 -289
- package/lib/LmTable/VList.js +170 -109
- package/lib/LmTable/autosize.js +43 -16
- package/lib/LmTable/chartUtil.js +14 -4
- package/lib/LmTable/common/index.js +9 -1
- package/lib/LmTable/components/CalcExpression.js +37 -11
- package/lib/LmTable/components/Container/Container.js +26 -16
- package/lib/LmTable/components/Container/index.js +1 -0
- package/lib/LmTable/components/DndContainer.d.ts +1 -1
- package/lib/LmTable/components/DndContainer.js +223 -128
- package/lib/LmTable/components/HeaderCol.js +22 -13
- package/lib/LmTable/components/Item/Item.js +32 -20
- package/lib/LmTable/components/Item/components/Action/Action.js +14 -4
- package/lib/LmTable/components/Item/components/Action/index.js +1 -0
- package/lib/LmTable/components/Item/components/Handle/index.js +4 -0
- package/lib/LmTable/components/Item/components/Remove/index.d.ts +0 -1
- package/lib/LmTable/components/Item/components/Remove/index.js +4 -0
- package/lib/LmTable/components/Item/components/index.js +4 -0
- package/lib/LmTable/components/Item/index.js +2 -0
- package/lib/LmTable/components/SortableBox.js +6 -1
- package/lib/LmTable/components/customRenderEmpty.js +8 -1
- package/lib/LmTable/components/inputDataEdit.js +11 -3
- package/lib/LmTable/components/sheelTableCell.js +65 -32
- package/lib/LmTable/components/tableChartsModal.js +26 -12
- package/lib/LmTable/context.js +3 -0
- package/lib/LmTable/detectElementResize.js +59 -26
- package/lib/LmTable/expression.js +28 -4
- package/lib/LmTable/hooks/useDndItems.js +70 -24
- package/lib/LmTable/hooks/useGroupDataSource.js +6 -1
- package/lib/LmTable/hooks/useResizeObserver.js +23 -13
- package/lib/LmTable/hooks/useRowSelectControllableValue.js +20 -6
- package/lib/LmTable/index.js +3 -0
- package/lib/LmTable/multipleContainersKeyboardCoordinates.js +32 -5
- package/lib/LmTable/resetConfig.js +8 -8
- package/lib/LmTable/testDemos/group.js +21 -5
- package/lib/LmTable/util.js +154 -87
- package/lib/LmTable/virTual/VirtualRow.js +46 -25
- package/lib/LmTable/virTual/VirtualTable.js +30 -12
- package/lib/LmTable/virTual/VirtualWrapper.js +19 -7
- package/lib/LmTable/virTual/context.js +15 -3
- package/lib/LmTable/virTual/index.js +4 -0
- package/lib/LmUpload/LmUpload.js +26 -11
- package/lib/LmUpload/UploadList/ItemPicture.js +13 -6
- package/lib/LmUpload/UploadList/ItemPictureCard.js +44 -23
- package/lib/LmUpload/UploadList/ItemText.js +12 -5
- package/lib/LmUpload/UploadList/RenderItem.js +14 -1
- package/lib/LmUpload/UploadList/index.js +26 -11
- package/lib/LmUpload/body/Progress.js +5 -0
- package/lib/LmUpload/body/UploadCore.js +24 -8
- package/lib/LmUpload/body/UploadPicture.js +10 -2
- package/lib/LmUpload/components/Crop.js +9 -3
- package/lib/LmUpload/components/Preview.js +14 -7
- package/lib/LmUpload/fns/index.js +123 -66
- package/lib/LmUpload/index.js +3 -0
- package/lib/LmUpload/utils.js +24 -10
- package/lib/LmUpload/view/index.js +4 -0
- package/lib/LmUpload/wrapper/Upload.js +6 -1
- package/lib/LmUpload/wrapper/UploadContainer.js +11 -2
- package/lib/LmUpload/wrapper/UploadRoot.js +26 -14
- package/lib/LmUpload/wrapper/UploadWrapper.js +9 -1
- package/lib/LmUpload/wrapper/reducer.js +15 -6
- package/lib/LoadingPage/index.js +7 -1
- package/lib/Locale/ar_EG.js +6 -1
- package/lib/Locale/az_AZ.js +6 -1
- package/lib/Locale/bg_BG.js +6 -0
- package/lib/Locale/bn_BD.js +6 -1
- package/lib/Locale/by_BY.js +6 -1
- package/lib/Locale/ca_ES.js +6 -1
- package/lib/Locale/cs_CZ.js +6 -1
- package/lib/Locale/da_DK.js +6 -0
- package/lib/Locale/de_DE.js +6 -1
- package/lib/Locale/default.js +7 -1
- package/lib/Locale/el_GR.js +6 -0
- package/lib/Locale/en_GB.js +6 -1
- package/lib/Locale/en_US.js +3 -0
- package/lib/Locale/es_ES.js +6 -1
- package/lib/Locale/et_EE.js +6 -1
- package/lib/Locale/fa_IR.js +6 -1
- package/lib/Locale/fi_FI.js +6 -0
- package/lib/Locale/fr_BE.js +6 -0
- package/lib/Locale/fr_CA.js +6 -0
- package/lib/Locale/fr_FR.js +6 -1
- package/lib/Locale/ga_IE.js +6 -1
- package/lib/Locale/gl_ES.js +6 -1
- package/lib/Locale/he_IL.js +6 -1
- package/lib/Locale/hi_IN.js +6 -1
- package/lib/Locale/hr_HR.js +6 -1
- package/lib/Locale/hu_HU.js +6 -0
- package/lib/Locale/id_ID.js +6 -0
- package/lib/Locale/is_IS.js +6 -0
- package/lib/Locale/it_IT.js +6 -0
- package/lib/Locale/ja_JP.js +6 -1
- package/lib/Locale/ka_GE.js +6 -1
- package/lib/Locale/kk_KZ.js +6 -1
- package/lib/Locale/km_KH.js +6 -1
- package/lib/Locale/kmr_IQ.js +6 -0
- package/lib/Locale/kn_IN.js +6 -0
- package/lib/Locale/ko_KR.js +6 -1
- package/lib/Locale/ku_IQ.js +6 -0
- package/lib/Locale/lt_LT.js +6 -1
- package/lib/Locale/lv_LV.js +6 -0
- package/lib/Locale/mk_MK.js +6 -0
- package/lib/Locale/ml_IN.js +6 -1
- package/lib/Locale/mn_MN.js +6 -0
- package/lib/Locale/ms_MY.js +6 -0
- package/lib/Locale/nb_NO.js +6 -1
- package/lib/Locale/ne_NP.js +6 -0
- package/lib/Locale/nl_BE.js +6 -1
- package/lib/Locale/nl_NL.js +6 -1
- package/lib/Locale/pl_PL.js +6 -1
- package/lib/Locale/pt_BR.js +6 -1
- package/lib/Locale/pt_PT.js +6 -0
- package/lib/Locale/ro_RO.js +6 -1
- package/lib/Locale/ru_RU.js +6 -1
- package/lib/Locale/si_LK.js +6 -1
- package/lib/Locale/sk_SK.js +6 -1
- package/lib/Locale/sl_SI.js +6 -0
- package/lib/Locale/sr_RS.js +6 -1
- package/lib/Locale/sv_SE.js +6 -1
- package/lib/Locale/ta_IN.js +6 -0
- package/lib/Locale/th_TH.js +6 -1
- package/lib/Locale/tk_TK.js +6 -1
- package/lib/Locale/tr_TR.js +6 -1
- package/lib/Locale/uk_UA.js +6 -1
- package/lib/Locale/ur_PK.js +6 -1
- package/lib/Locale/vi_VN.js +6 -0
- package/lib/Locale/zh_CN.js +7 -1
- package/lib/Locale/zh_HK.js +6 -1
- package/lib/Locale/zh_TW.js +6 -1
- package/lib/Mentions/index.js +4 -0
- package/lib/Menu/index.js +4 -0
- package/lib/Modal/index.js +36 -10
- package/lib/Modal/locale.js +5 -0
- package/lib/PageHeader/index.js +60 -22
- package/lib/Pagination/index.js +20 -4
- package/lib/Popconfirm/index.js +4 -0
- package/lib/Popover/index.js +23 -5
- package/lib/Progress/index.js +4 -0
- package/lib/QuickMenu/index.js +54 -18
- package/lib/Radio/index.js +24 -10
- package/lib/Rate/index.js +4 -0
- package/lib/Result/index.d.ts +6 -6
- package/lib/Result/index.js +41 -16
- package/lib/Result/noFound.js +4 -0
- package/lib/Result/serverError.js +4 -0
- package/lib/Result/unauthorized.js +4 -0
- package/lib/Row/README.md.old +22 -22
- package/lib/Row/index.js +2 -0
- package/lib/Segmented/index.js +4 -0
- package/lib/Select/index.d.ts +1 -1
- package/lib/Select/index.js +41 -20
- package/lib/Skeleton/index.js +4 -0
- package/lib/Slider/index.js +4 -0
- package/lib/Space/index.js +4 -0
- package/lib/Spin/index.js +4 -0
- package/lib/Statistic/index.js +4 -0
- package/lib/Steps/index.js +4 -0
- package/lib/Switch/index.js +18 -4
- package/lib/Table/index.js +4 -0
- package/lib/Tabs/TabPane.js +3 -0
- package/lib/Tabs/hooks/useAnimateConfig.js +8 -0
- package/lib/Tabs/hooks/useLegacyItems.js +17 -3
- package/lib/Tabs/index.d.ts +2 -2
- package/lib/Tabs/index.js +43 -15
- package/lib/Tabs/index.old.js +17 -4
- package/lib/Tag/index.js +20 -5
- package/lib/TestTable/LmBox.js +3 -0
- package/lib/TestTable/index.js +3 -0
- package/lib/TimePicker/index.js +4 -0
- package/lib/Timeline/index.js +4 -0
- package/lib/Tooltip/index.d.ts +2 -2
- package/lib/Tooltip/index.js +80 -34
- package/lib/Transfer/index.js +4 -0
- package/lib/Tree/DirectoryTree.d.ts +2 -2
- package/lib/Tree/DirectoryTree.js +74 -29
- package/lib/Tree/Tree.d.ts +4 -4
- package/lib/Tree/Tree.js +35 -14
- package/lib/Tree/TreeIndex.js +3 -0
- package/lib/Tree/index.js +11 -1
- package/lib/Tree/utils/dictUtil.js +24 -4
- package/lib/Tree/utils/dropIndicator.d.ts +0 -1
- package/lib/Tree/utils/dropIndicator.js +15 -5
- package/lib/Tree/utils/iconUtil.js +25 -2
- package/lib/TreeSelect/index.d.ts +1 -1
- package/lib/TreeSelect/index.js +35 -15
- package/lib/Typography/Base/Ellipsis.js +58 -25
- package/lib/Typography/Base/EllipsisTooltip.js +12 -3
- package/lib/Typography/Base/index.d.ts +1 -1
- package/lib/Typography/Base/index.js +200 -104
- package/lib/Typography/Editable.js +45 -21
- package/lib/Typography/Link.js +17 -4
- package/lib/Typography/Paragraph.js +7 -0
- package/lib/Typography/Text.js +16 -1
- package/lib/Typography/Title.d.ts +1 -1
- package/lib/Typography/Title.js +18 -2
- package/lib/Typography/Typography.js +30 -11
- package/lib/Typography/hooks/useMergedConfig.js +5 -0
- package/lib/Typography/hooks/useUpdatedEffect.d.ts +1 -1
- package/lib/Typography/hooks/useUpdatedEffect.js +4 -0
- package/lib/Typography/index.d.ts +1 -1
- package/lib/Typography/index.js +9 -0
- package/lib/Upload/index.d.ts +3 -3
- package/lib/Upload/index.js +13 -2
- package/lib/UploadOss/index.js +4 -0
- package/lib/UploadOss/uploadBtn.js +54 -32
- package/lib/UploadOss/uploadImg.js +86 -58
- package/lib/VirtualList/index.js +27 -18
- package/lib/_util/colors.d.ts +2 -2
- package/lib/_util/colors.js +4 -2
- package/lib/_util/domTarget.d.ts +3 -3
- package/lib/_util/domTarget.js +6 -0
- package/lib/_util/getDataOrAriaProps.js +2 -0
- package/lib/_util/getRenderPropValue.d.ts +1 -1
- package/lib/_util/getRenderPropValue.js +5 -0
- package/lib/_util/hooks/useFlexGapSupport.js +11 -3
- package/lib/_util/hooks/useForceUpdate.js +10 -4
- package/lib/_util/motion.d.ts +1 -1
- package/lib/_util/motion.js +12 -0
- package/lib/_util/placements.js +12 -7
- package/lib/_util/reactNode.d.ts +2 -2
- package/lib/_util/reactNode.js +5 -0
- package/lib/_util/responsiveObserve.d.ts +5 -5
- package/lib/_util/responsiveObserve.js +8 -0
- package/lib/_util/statusUtils.d.ts +1 -1
- package/lib/_util/statusUtils.js +9 -0
- package/lib/_util/styleChecker.js +16 -6
- package/lib/_util/throttleByAnimationFrame.js +12 -0
- package/lib/_util/transButton.js +19 -3
- package/lib/_util/type.d.ts +2 -2
- package/lib/_util/type.js +6 -0
- package/lib/_util/warning.d.ts +1 -1
- package/lib/_util/warning.js +10 -4
- package/lib/hooks/index.js +3 -0
- package/lib/hooks/useEvent/index.js +7 -4
- package/lib/hooks/useFullscreen/index.d.ts +3 -3
- package/lib/hooks/useFullscreen/index.js +33 -7
- package/lib/index.js +89 -0
- package/lib/locale-provider/LocaleReceiver.d.ts +1 -1
- package/lib/locale-provider/LocaleReceiver.js +20 -4
- package/lib/locale-provider/ar_EG.js +3 -0
- package/lib/locale-provider/az_AZ.js +3 -0
- package/lib/locale-provider/bg_BG.js +3 -0
- package/lib/locale-provider/bn_BD.js +3 -0
- package/lib/locale-provider/by_BY.js +3 -0
- package/lib/locale-provider/ca_ES.js +3 -0
- package/lib/locale-provider/context.d.ts +1 -1
- package/lib/locale-provider/context.js +2 -0
- package/lib/locale-provider/cs_CZ.js +3 -0
- package/lib/locale-provider/da_DK.js +3 -0
- package/lib/locale-provider/de_DE.js +3 -0
- package/lib/locale-provider/default.js +3 -0
- package/lib/locale-provider/el_GR.js +3 -0
- package/lib/locale-provider/en_GB.js +3 -0
- package/lib/locale-provider/en_US.js +3 -0
- package/lib/locale-provider/es_ES.js +3 -0
- package/lib/locale-provider/et_EE.js +3 -0
- package/lib/locale-provider/fa_IR.js +3 -0
- package/lib/locale-provider/fi_FI.js +3 -0
- package/lib/locale-provider/fr_BE.js +3 -0
- package/lib/locale-provider/fr_CA.js +3 -0
- package/lib/locale-provider/fr_FR.js +3 -0
- package/lib/locale-provider/ga_IE.js +3 -0
- package/lib/locale-provider/gl_ES.js +3 -0
- package/lib/locale-provider/he_IL.js +3 -0
- package/lib/locale-provider/hi_IN.js +3 -0
- package/lib/locale-provider/hr_HR.js +3 -0
- package/lib/locale-provider/hu_HU.js +3 -0
- package/lib/locale-provider/hy_AM.js +3 -0
- package/lib/locale-provider/id_ID.js +3 -0
- package/lib/locale-provider/index.js +21 -2
- package/lib/locale-provider/is_IS.js +3 -0
- package/lib/locale-provider/it_IT.js +3 -0
- package/lib/locale-provider/ja_JP.js +3 -0
- package/lib/locale-provider/ka_GE.js +3 -0
- package/lib/locale-provider/kk_KZ.js +3 -0
- package/lib/locale-provider/km_KH.js +3 -0
- package/lib/locale-provider/kmr_IQ.js +3 -0
- package/lib/locale-provider/kn_IN.js +3 -0
- package/lib/locale-provider/ko_KR.js +3 -0
- package/lib/locale-provider/ku_IQ.js +3 -0
- package/lib/locale-provider/lt_LT.js +3 -0
- package/lib/locale-provider/lv_LV.js +3 -0
- package/lib/locale-provider/mk_MK.js +3 -0
- package/lib/locale-provider/ml_IN.js +3 -0
- package/lib/locale-provider/mn_MN.js +3 -0
- package/lib/locale-provider/ms_MY.js +3 -0
- package/lib/locale-provider/nb_NO.js +3 -0
- package/lib/locale-provider/ne_NP.js +3 -0
- package/lib/locale-provider/nl_BE.js +3 -0
- package/lib/locale-provider/nl_NL.js +3 -0
- package/lib/locale-provider/pl_PL.js +3 -0
- package/lib/locale-provider/pt_BR.js +3 -0
- package/lib/locale-provider/pt_PT.js +3 -0
- package/lib/locale-provider/ro_RO.js +3 -0
- package/lib/locale-provider/ru_RU.js +3 -0
- package/lib/locale-provider/si_LK.js +3 -0
- package/lib/locale-provider/sk_SK.js +3 -0
- package/lib/locale-provider/sl_SI.js +3 -0
- package/lib/locale-provider/sr_RS.js +3 -0
- package/lib/locale-provider/sv_SE.js +3 -0
- package/lib/locale-provider/ta_IN.js +3 -0
- package/lib/locale-provider/th_TH.js +3 -0
- package/lib/locale-provider/tk_TK.js +3 -0
- package/lib/locale-provider/tr_TR.js +3 -0
- package/lib/locale-provider/uk_UA.js +3 -0
- package/lib/locale-provider/ur_PK.js +3 -0
- package/lib/locale-provider/vi_VN.js +3 -0
- package/lib/locale-provider/zh_CN.js +3 -0
- package/lib/locale-provider/zh_HK.js +3 -0
- package/lib/locale-provider/zh_TW.js +3 -0
- package/lib/message/hooks/useMessage.js +27 -8
- package/lib/message/index.d.ts +10 -10
- package/lib/message/index.js +53 -8
- package/lib/notification/hooks/useNotification.js +19 -8
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +83 -34
- package/lib/services/newRequest.js +50 -21
- package/lib/services/utils.js +15 -0
- package/lib/styles/variables.css +178 -178
- package/package.json +146 -146
package/dist/variables.css
CHANGED
|
@@ -1734,112 +1734,6 @@ p {
|
|
|
1734
1734
|
.lm_cutimg_container .img_crop_control .anticon {
|
|
1735
1735
|
font-size: 16px;
|
|
1736
1736
|
}
|
|
1737
|
-
.lm_custom-table-option.lm_drawer .ant-drawer-body {
|
|
1738
|
-
padding: 0 0 24px 0;
|
|
1739
|
-
}
|
|
1740
|
-
.lm_custom-table-option.lm_drawer .ant-drawer-body .ant-tabs-nav-wrap {
|
|
1741
|
-
padding: 0 24px;
|
|
1742
|
-
}
|
|
1743
|
-
.lm_custom-table-option.lm_drawer .ant-drawer-body .ant-tabs-content-holder {
|
|
1744
|
-
padding: 0 24px;
|
|
1745
|
-
}
|
|
1746
|
-
.lm_custom_option_columns .global_setting {
|
|
1747
|
-
height: 44px;
|
|
1748
|
-
display: flex;
|
|
1749
|
-
align-items: center;
|
|
1750
|
-
justify-content: space-between;
|
|
1751
|
-
padding-bottom: 12px;
|
|
1752
|
-
border-bottom: 1px solid var(--border-color);
|
|
1753
|
-
font-size: 12px;
|
|
1754
|
-
margin-bottom: 8px;
|
|
1755
|
-
}
|
|
1756
|
-
.lm_custom_option_columns .global_setting .lm-checkbox > span {
|
|
1757
|
-
font-size: 12px;
|
|
1758
|
-
}
|
|
1759
|
-
.lm_custom_option_columns .global_setting > span {
|
|
1760
|
-
color: var(--primary-color);
|
|
1761
|
-
cursor: pointer;
|
|
1762
|
-
}
|
|
1763
|
-
.lm_custom_option_columns .custom_hiddle {
|
|
1764
|
-
display: none;
|
|
1765
|
-
}
|
|
1766
|
-
.lm_custom_option_columns .fixed_title {
|
|
1767
|
-
color: var(--color-45);
|
|
1768
|
-
font-size: 12px;
|
|
1769
|
-
display: inline-block;
|
|
1770
|
-
margin-bottom: 8px;
|
|
1771
|
-
}
|
|
1772
|
-
.lm_custom_option_columns .lm_custom_item {
|
|
1773
|
-
height: 44px;
|
|
1774
|
-
background-color: var(--color-4);
|
|
1775
|
-
display: flex;
|
|
1776
|
-
align-items: center;
|
|
1777
|
-
justify-content: space-between;
|
|
1778
|
-
padding: 0 16px;
|
|
1779
|
-
font-size: 12px;
|
|
1780
|
-
margin-bottom: 8px;
|
|
1781
|
-
cursor: pointer;
|
|
1782
|
-
}
|
|
1783
|
-
.lm_custom_option_columns .lm_custom_item:hover {
|
|
1784
|
-
background-color: var(--line-color);
|
|
1785
|
-
}
|
|
1786
|
-
.lm_custom_option_columns .lm_custom_item:hover .hover_show {
|
|
1787
|
-
display: inline-flex;
|
|
1788
|
-
}
|
|
1789
|
-
.lm_custom_option_columns .lm_custom_item .lm-checkbox > span {
|
|
1790
|
-
font-size: 12px;
|
|
1791
|
-
}
|
|
1792
|
-
.lm_custom_option_columns .lm_custom_icon {
|
|
1793
|
-
font-size: 16px;
|
|
1794
|
-
margin-left: 8px;
|
|
1795
|
-
cursor: pointer;
|
|
1796
|
-
}
|
|
1797
|
-
.lm_custom_option_columns .lm_custom_icon.sort_item {
|
|
1798
|
-
color: var(--tip-text-color);
|
|
1799
|
-
}
|
|
1800
|
-
.lm_custom_option_columns .lm_custom_icon.hover_show {
|
|
1801
|
-
display: none;
|
|
1802
|
-
color: var(--primary-color);
|
|
1803
|
-
}
|
|
1804
|
-
.lm_custom_option_columns .card_prompt .anticon {
|
|
1805
|
-
font-size: 16px;
|
|
1806
|
-
color: var(--warning-color);
|
|
1807
|
-
}
|
|
1808
|
-
.lm_custom_size_warp {
|
|
1809
|
-
display: flex;
|
|
1810
|
-
flex-direction: column;
|
|
1811
|
-
align-items: center;
|
|
1812
|
-
justify-content: center;
|
|
1813
|
-
cursor: pointer;
|
|
1814
|
-
}
|
|
1815
|
-
.lm_custom_size_warp > .anticon {
|
|
1816
|
-
margin: 8px 0;
|
|
1817
|
-
}
|
|
1818
|
-
.lm_custom_size_warp > img {
|
|
1819
|
-
width: 100px;
|
|
1820
|
-
height: 100px;
|
|
1821
|
-
margin: 8px 0;
|
|
1822
|
-
}
|
|
1823
|
-
.lm_size_radio_group {
|
|
1824
|
-
width: 100%;
|
|
1825
|
-
display: flex;
|
|
1826
|
-
flex-direction: row;
|
|
1827
|
-
align-items: center;
|
|
1828
|
-
justify-content: space-between;
|
|
1829
|
-
}
|
|
1830
|
-
.save_setting {
|
|
1831
|
-
height: 68px;
|
|
1832
|
-
margin-top: 24px;
|
|
1833
|
-
border-top: 1px solid var(--color-6);
|
|
1834
|
-
border-bottom: 1px solid var(--color-6);
|
|
1835
|
-
display: flex;
|
|
1836
|
-
align-items: center;
|
|
1837
|
-
justify-content: space-between;
|
|
1838
|
-
font-size: 12px;
|
|
1839
|
-
}
|
|
1840
|
-
.global_search {
|
|
1841
|
-
margin-bottom: 16px;
|
|
1842
|
-
}
|
|
1843
1737
|
.lm_customerservice_warp .fixGroup {
|
|
1844
1738
|
transition: right 0.3s;
|
|
1845
1739
|
position: fixed;
|
|
@@ -2093,6 +1987,112 @@ p {
|
|
|
2093
1987
|
.lm_question_warp .main .title {
|
|
2094
1988
|
font-size: 14px;
|
|
2095
1989
|
}
|
|
1990
|
+
.lm_custom-table-option.lm_drawer .ant-drawer-body {
|
|
1991
|
+
padding: 0 0 24px 0;
|
|
1992
|
+
}
|
|
1993
|
+
.lm_custom-table-option.lm_drawer .ant-drawer-body .ant-tabs-nav-wrap {
|
|
1994
|
+
padding: 0 24px;
|
|
1995
|
+
}
|
|
1996
|
+
.lm_custom-table-option.lm_drawer .ant-drawer-body .ant-tabs-content-holder {
|
|
1997
|
+
padding: 0 24px;
|
|
1998
|
+
}
|
|
1999
|
+
.lm_custom_option_columns .global_setting {
|
|
2000
|
+
height: 44px;
|
|
2001
|
+
display: flex;
|
|
2002
|
+
align-items: center;
|
|
2003
|
+
justify-content: space-between;
|
|
2004
|
+
padding-bottom: 12px;
|
|
2005
|
+
border-bottom: 1px solid var(--border-color);
|
|
2006
|
+
font-size: 12px;
|
|
2007
|
+
margin-bottom: 8px;
|
|
2008
|
+
}
|
|
2009
|
+
.lm_custom_option_columns .global_setting .lm-checkbox > span {
|
|
2010
|
+
font-size: 12px;
|
|
2011
|
+
}
|
|
2012
|
+
.lm_custom_option_columns .global_setting > span {
|
|
2013
|
+
color: var(--primary-color);
|
|
2014
|
+
cursor: pointer;
|
|
2015
|
+
}
|
|
2016
|
+
.lm_custom_option_columns .custom_hiddle {
|
|
2017
|
+
display: none;
|
|
2018
|
+
}
|
|
2019
|
+
.lm_custom_option_columns .fixed_title {
|
|
2020
|
+
color: var(--color-45);
|
|
2021
|
+
font-size: 12px;
|
|
2022
|
+
display: inline-block;
|
|
2023
|
+
margin-bottom: 8px;
|
|
2024
|
+
}
|
|
2025
|
+
.lm_custom_option_columns .lm_custom_item {
|
|
2026
|
+
height: 44px;
|
|
2027
|
+
background-color: var(--color-4);
|
|
2028
|
+
display: flex;
|
|
2029
|
+
align-items: center;
|
|
2030
|
+
justify-content: space-between;
|
|
2031
|
+
padding: 0 16px;
|
|
2032
|
+
font-size: 12px;
|
|
2033
|
+
margin-bottom: 8px;
|
|
2034
|
+
cursor: pointer;
|
|
2035
|
+
}
|
|
2036
|
+
.lm_custom_option_columns .lm_custom_item:hover {
|
|
2037
|
+
background-color: var(--line-color);
|
|
2038
|
+
}
|
|
2039
|
+
.lm_custom_option_columns .lm_custom_item:hover .hover_show {
|
|
2040
|
+
display: inline-flex;
|
|
2041
|
+
}
|
|
2042
|
+
.lm_custom_option_columns .lm_custom_item .lm-checkbox > span {
|
|
2043
|
+
font-size: 12px;
|
|
2044
|
+
}
|
|
2045
|
+
.lm_custom_option_columns .lm_custom_icon {
|
|
2046
|
+
font-size: 16px;
|
|
2047
|
+
margin-left: 8px;
|
|
2048
|
+
cursor: pointer;
|
|
2049
|
+
}
|
|
2050
|
+
.lm_custom_option_columns .lm_custom_icon.sort_item {
|
|
2051
|
+
color: var(--tip-text-color);
|
|
2052
|
+
}
|
|
2053
|
+
.lm_custom_option_columns .lm_custom_icon.hover_show {
|
|
2054
|
+
display: none;
|
|
2055
|
+
color: var(--primary-color);
|
|
2056
|
+
}
|
|
2057
|
+
.lm_custom_option_columns .card_prompt .anticon {
|
|
2058
|
+
font-size: 16px;
|
|
2059
|
+
color: var(--warning-color);
|
|
2060
|
+
}
|
|
2061
|
+
.lm_custom_size_warp {
|
|
2062
|
+
display: flex;
|
|
2063
|
+
flex-direction: column;
|
|
2064
|
+
align-items: center;
|
|
2065
|
+
justify-content: center;
|
|
2066
|
+
cursor: pointer;
|
|
2067
|
+
}
|
|
2068
|
+
.lm_custom_size_warp > .anticon {
|
|
2069
|
+
margin: 8px 0;
|
|
2070
|
+
}
|
|
2071
|
+
.lm_custom_size_warp > img {
|
|
2072
|
+
width: 100px;
|
|
2073
|
+
height: 100px;
|
|
2074
|
+
margin: 8px 0;
|
|
2075
|
+
}
|
|
2076
|
+
.lm_size_radio_group {
|
|
2077
|
+
width: 100%;
|
|
2078
|
+
display: flex;
|
|
2079
|
+
flex-direction: row;
|
|
2080
|
+
align-items: center;
|
|
2081
|
+
justify-content: space-between;
|
|
2082
|
+
}
|
|
2083
|
+
.save_setting {
|
|
2084
|
+
height: 68px;
|
|
2085
|
+
margin-top: 24px;
|
|
2086
|
+
border-top: 1px solid var(--color-6);
|
|
2087
|
+
border-bottom: 1px solid var(--color-6);
|
|
2088
|
+
display: flex;
|
|
2089
|
+
align-items: center;
|
|
2090
|
+
justify-content: space-between;
|
|
2091
|
+
font-size: 12px;
|
|
2092
|
+
}
|
|
2093
|
+
.global_search {
|
|
2094
|
+
margin-bottom: 16px;
|
|
2095
|
+
}
|
|
2096
2096
|
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2097
2097
|
/* stylelint-disable no-duplicate-selectors */
|
|
2098
2098
|
/* stylelint-disable */
|
|
@@ -12232,6 +12232,37 @@ button.ant-table-row-expand-icon::after {
|
|
|
12232
12232
|
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture.lm_upload_item_error {
|
|
12233
12233
|
color: var(--error-color);
|
|
12234
12234
|
}
|
|
12235
|
+
.lm_message .ant-message-notice-content {
|
|
12236
|
+
position: relative;
|
|
12237
|
+
padding: 8px 16px;
|
|
12238
|
+
font-size: 12px;
|
|
12239
|
+
}
|
|
12240
|
+
.lm_message .message_progress {
|
|
12241
|
+
position: absolute;
|
|
12242
|
+
width: 100%;
|
|
12243
|
+
height: 2px;
|
|
12244
|
+
background-color: #52C41A;
|
|
12245
|
+
left: 0;
|
|
12246
|
+
bottom: 0;
|
|
12247
|
+
animation-name: Progress;
|
|
12248
|
+
animation-iteration-count: 1;
|
|
12249
|
+
animation-fill-mode: forwards;
|
|
12250
|
+
transition: width 0.2s;
|
|
12251
|
+
animation-timing-function: linear;
|
|
12252
|
+
}
|
|
12253
|
+
.lm_message:hover .message_progress {
|
|
12254
|
+
width: 100%;
|
|
12255
|
+
animation-name: none;
|
|
12256
|
+
animation-play-state: paused;
|
|
12257
|
+
}
|
|
12258
|
+
@keyframes Progress {
|
|
12259
|
+
from {
|
|
12260
|
+
width: 100%;
|
|
12261
|
+
}
|
|
12262
|
+
to {
|
|
12263
|
+
width: 0;
|
|
12264
|
+
}
|
|
12265
|
+
}
|
|
12235
12266
|
.lm_modal.ant-modal-wrap .ant-modal-header > .ant-modal-title {
|
|
12236
12267
|
font-weight: normal;
|
|
12237
12268
|
font-size: 14px;
|
|
@@ -12267,6 +12298,47 @@ button.ant-table-row-expand-icon::after {
|
|
|
12267
12298
|
background-color: var(--primary-color);
|
|
12268
12299
|
color: #fff;
|
|
12269
12300
|
}
|
|
12301
|
+
.lm_notification.ant-notification-notice {
|
|
12302
|
+
padding: 0;
|
|
12303
|
+
}
|
|
12304
|
+
.lm_notification .ant-notification-notice-content {
|
|
12305
|
+
position: relative;
|
|
12306
|
+
padding: 16px 24px;
|
|
12307
|
+
font-size: 12px;
|
|
12308
|
+
}
|
|
12309
|
+
.lm_notification .message_progress {
|
|
12310
|
+
position: absolute;
|
|
12311
|
+
width: 100%;
|
|
12312
|
+
height: 2px;
|
|
12313
|
+
background-color: #52C41A;
|
|
12314
|
+
left: 0;
|
|
12315
|
+
bottom: 0;
|
|
12316
|
+
animation-name: Progress;
|
|
12317
|
+
animation-iteration-count: 1;
|
|
12318
|
+
animation-fill-mode: forwards;
|
|
12319
|
+
transition: width 0.2s;
|
|
12320
|
+
animation-timing-function: linear;
|
|
12321
|
+
margin-bottom: 0 !important;
|
|
12322
|
+
}
|
|
12323
|
+
.lm_notification:hover .message_progress {
|
|
12324
|
+
width: 100%;
|
|
12325
|
+
animation-name: none;
|
|
12326
|
+
animation-play-state: paused;
|
|
12327
|
+
}
|
|
12328
|
+
.lm_notification .ant-notification-notice-btn {
|
|
12329
|
+
margin-bottom: 16px;
|
|
12330
|
+
}
|
|
12331
|
+
@keyframes Progress {
|
|
12332
|
+
from {
|
|
12333
|
+
width: 100%;
|
|
12334
|
+
}
|
|
12335
|
+
to {
|
|
12336
|
+
width: 0;
|
|
12337
|
+
}
|
|
12338
|
+
}
|
|
12339
|
+
.ant-notification-notice-message {
|
|
12340
|
+
font-size: 14px;
|
|
12341
|
+
}
|
|
12270
12342
|
.lm_pagination.ant-pagination li {
|
|
12271
12343
|
font-size: 12px;
|
|
12272
12344
|
line-height: 24px !important;
|
|
@@ -12921,75 +12993,3 @@ button.ant-table-row-expand-icon::after {
|
|
|
12921
12993
|
.lm_upload_img .upload_body .upload_card_box:hover {
|
|
12922
12994
|
border-color: #1890fc;
|
|
12923
12995
|
}
|
|
12924
|
-
.lm_message .ant-message-notice-content {
|
|
12925
|
-
position: relative;
|
|
12926
|
-
padding: 8px 16px;
|
|
12927
|
-
font-size: 12px;
|
|
12928
|
-
}
|
|
12929
|
-
.lm_message .message_progress {
|
|
12930
|
-
position: absolute;
|
|
12931
|
-
width: 100%;
|
|
12932
|
-
height: 2px;
|
|
12933
|
-
background-color: #52C41A;
|
|
12934
|
-
left: 0;
|
|
12935
|
-
bottom: 0;
|
|
12936
|
-
animation-name: Progress;
|
|
12937
|
-
animation-iteration-count: 1;
|
|
12938
|
-
animation-fill-mode: forwards;
|
|
12939
|
-
transition: width 0.2s;
|
|
12940
|
-
animation-timing-function: linear;
|
|
12941
|
-
}
|
|
12942
|
-
.lm_message:hover .message_progress {
|
|
12943
|
-
width: 100%;
|
|
12944
|
-
animation-name: none;
|
|
12945
|
-
animation-play-state: paused;
|
|
12946
|
-
}
|
|
12947
|
-
@keyframes Progress {
|
|
12948
|
-
from {
|
|
12949
|
-
width: 100%;
|
|
12950
|
-
}
|
|
12951
|
-
to {
|
|
12952
|
-
width: 0;
|
|
12953
|
-
}
|
|
12954
|
-
}
|
|
12955
|
-
.lm_notification.ant-notification-notice {
|
|
12956
|
-
padding: 0;
|
|
12957
|
-
}
|
|
12958
|
-
.lm_notification .ant-notification-notice-content {
|
|
12959
|
-
position: relative;
|
|
12960
|
-
padding: 16px 24px;
|
|
12961
|
-
font-size: 12px;
|
|
12962
|
-
}
|
|
12963
|
-
.lm_notification .message_progress {
|
|
12964
|
-
position: absolute;
|
|
12965
|
-
width: 100%;
|
|
12966
|
-
height: 2px;
|
|
12967
|
-
background-color: #52C41A;
|
|
12968
|
-
left: 0;
|
|
12969
|
-
bottom: 0;
|
|
12970
|
-
animation-name: Progress;
|
|
12971
|
-
animation-iteration-count: 1;
|
|
12972
|
-
animation-fill-mode: forwards;
|
|
12973
|
-
transition: width 0.2s;
|
|
12974
|
-
animation-timing-function: linear;
|
|
12975
|
-
margin-bottom: 0 !important;
|
|
12976
|
-
}
|
|
12977
|
-
.lm_notification:hover .message_progress {
|
|
12978
|
-
width: 100%;
|
|
12979
|
-
animation-name: none;
|
|
12980
|
-
animation-play-state: paused;
|
|
12981
|
-
}
|
|
12982
|
-
.lm_notification .ant-notification-notice-btn {
|
|
12983
|
-
margin-bottom: 16px;
|
|
12984
|
-
}
|
|
12985
|
-
@keyframes Progress {
|
|
12986
|
-
from {
|
|
12987
|
-
width: 100%;
|
|
12988
|
-
}
|
|
12989
|
-
to {
|
|
12990
|
-
width: 0;
|
|
12991
|
-
}
|
|
12992
|
-
}
|
|
12993
|
-
.ant-notification-notice-message {
|
|
12994
|
-
font-size: 14px;
|
|
12995
|
-
}
|
package/es/Affix/index.d.ts
CHANGED
|
@@ -49,6 +49,6 @@ declare class Affix extends React.Component<InternalAffixProps, AffixState> {
|
|
|
49
49
|
lazyUpdatePosition(): void;
|
|
50
50
|
render(): JSX.Element;
|
|
51
51
|
}
|
|
52
|
-
export type InternalAffixClass = Affix;
|
|
52
|
+
export declare type InternalAffixClass = Affix;
|
|
53
53
|
declare const AffixFC: React.ForwardRefExoticComponent<AffixProps & React.RefAttributes<Affix>>;
|
|
54
54
|
export default AffixFC;
|
package/es/Affix/index.js
CHANGED
|
@@ -6,15 +6,17 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
8
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
9
|
+
|
|
9
10
|
var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
|
|
10
11
|
var c = arguments.length,
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
13
|
+
d;
|
|
13
14
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
14
15
|
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
16
|
}
|
|
16
17
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
18
|
};
|
|
19
|
+
|
|
18
20
|
import classNames from 'classnames';
|
|
19
21
|
import ResizeObserver from 'rc-resize-observer';
|
|
20
22
|
import omit from 'rc-util/lib/omit';
|
|
@@ -22,57 +24,77 @@ import * as React from 'react';
|
|
|
22
24
|
import { ConfigContext } from 'antd/es/config-provider';
|
|
23
25
|
import { throttleByAnimationFrameDecorator } from '../_util/throttleByAnimationFrame';
|
|
24
26
|
import { addObserveTarget, getFixedBottom, getFixedTop, getTargetRect, removeObserveTarget } from './utils';
|
|
27
|
+
|
|
25
28
|
function getDefaultTarget() {
|
|
26
29
|
return typeof window !== 'undefined' ? window : null;
|
|
27
30
|
}
|
|
31
|
+
|
|
28
32
|
var AffixStatus;
|
|
33
|
+
|
|
29
34
|
(function (AffixStatus) {
|
|
30
35
|
AffixStatus[AffixStatus["None"] = 0] = "None";
|
|
31
36
|
AffixStatus[AffixStatus["Prepare"] = 1] = "Prepare";
|
|
32
37
|
})(AffixStatus || (AffixStatus = {}));
|
|
38
|
+
|
|
33
39
|
var Affix = /*#__PURE__*/function (_React$Component) {
|
|
34
40
|
_inherits(Affix, _React$Component);
|
|
41
|
+
|
|
35
42
|
var _super = _createSuper(Affix);
|
|
43
|
+
|
|
36
44
|
function Affix() {
|
|
37
45
|
var _this;
|
|
46
|
+
|
|
38
47
|
_classCallCheck(this, Affix);
|
|
48
|
+
|
|
39
49
|
_this = _super.apply(this, arguments);
|
|
40
50
|
_this.state = {
|
|
41
51
|
status: AffixStatus.None,
|
|
42
52
|
lastAffix: false,
|
|
43
53
|
prevTarget: null
|
|
44
54
|
};
|
|
55
|
+
|
|
45
56
|
_this.getOffsetTop = function () {
|
|
46
57
|
var _this$props = _this.props,
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
offsetBottom = _this$props.offsetBottom,
|
|
59
|
+
offsetTop = _this$props.offsetTop;
|
|
49
60
|
return offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop;
|
|
50
61
|
};
|
|
62
|
+
|
|
51
63
|
_this.getOffsetBottom = function () {
|
|
52
64
|
return _this.props.offsetBottom;
|
|
53
65
|
};
|
|
66
|
+
|
|
54
67
|
_this.savePlaceholderNode = function (node) {
|
|
55
68
|
_this.placeholderNode = node;
|
|
56
69
|
};
|
|
70
|
+
|
|
57
71
|
_this.saveFixedNode = function (node) {
|
|
58
72
|
_this.fixedNode = node;
|
|
59
|
-
};
|
|
60
|
-
|
|
73
|
+
}; // =================== Measure ===================
|
|
74
|
+
|
|
75
|
+
|
|
61
76
|
_this.measure = function () {
|
|
62
77
|
var _this$state = _this.state,
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
status = _this$state.status,
|
|
79
|
+
lastAffix = _this$state.lastAffix;
|
|
65
80
|
var onChange = _this.props.onChange;
|
|
81
|
+
|
|
66
82
|
var targetFunc = _this.getTargetFunc();
|
|
83
|
+
|
|
67
84
|
if (status !== AffixStatus.Prepare || !_this.fixedNode || !_this.placeholderNode || !targetFunc) {
|
|
68
85
|
return;
|
|
69
86
|
}
|
|
87
|
+
|
|
70
88
|
var offsetTop = _this.getOffsetTop();
|
|
89
|
+
|
|
71
90
|
var offsetBottom = _this.getOffsetBottom();
|
|
91
|
+
|
|
72
92
|
var targetNode = targetFunc();
|
|
93
|
+
|
|
73
94
|
if (!targetNode) {
|
|
74
95
|
return;
|
|
75
96
|
}
|
|
97
|
+
|
|
76
98
|
var newState = {
|
|
77
99
|
status: AffixStatus.None
|
|
78
100
|
};
|
|
@@ -80,6 +102,7 @@ var Affix = /*#__PURE__*/function (_React$Component) {
|
|
|
80
102
|
var placeholderReact = getTargetRect(_this.placeholderNode);
|
|
81
103
|
var fixedTop = getFixedTop(placeholderReact, targetRect, offsetTop);
|
|
82
104
|
var fixedBottom = getFixedBottom(placeholderReact, targetRect, offsetBottom);
|
|
105
|
+
|
|
83
106
|
if (fixedTop !== undefined) {
|
|
84
107
|
newState.affixStyle = {
|
|
85
108
|
position: 'fixed',
|
|
@@ -103,50 +126,61 @@ var Affix = /*#__PURE__*/function (_React$Component) {
|
|
|
103
126
|
height: placeholderReact.height
|
|
104
127
|
};
|
|
105
128
|
}
|
|
129
|
+
|
|
106
130
|
newState.lastAffix = !!newState.affixStyle;
|
|
131
|
+
|
|
107
132
|
if (onChange && lastAffix !== newState.lastAffix) {
|
|
108
133
|
onChange(newState.lastAffix);
|
|
109
134
|
}
|
|
135
|
+
|
|
110
136
|
_this.setState(newState);
|
|
111
|
-
};
|
|
112
|
-
|
|
137
|
+
}; // @ts-ignore TS6133
|
|
138
|
+
|
|
139
|
+
|
|
113
140
|
_this.prepareMeasure = function () {
|
|
114
141
|
// event param is used before. Keep compatible ts define here.
|
|
115
142
|
_this.setState({
|
|
116
143
|
status: AffixStatus.Prepare,
|
|
117
144
|
affixStyle: undefined,
|
|
118
145
|
placeholderStyle: undefined
|
|
119
|
-
});
|
|
120
|
-
|
|
146
|
+
}); // Test if `updatePosition` called
|
|
147
|
+
|
|
148
|
+
|
|
121
149
|
if (process.env.NODE_ENV === 'test') {
|
|
122
150
|
var onTestUpdatePosition = _this.props.onTestUpdatePosition;
|
|
123
151
|
onTestUpdatePosition === null || onTestUpdatePosition === void 0 ? void 0 : onTestUpdatePosition();
|
|
124
152
|
}
|
|
125
153
|
};
|
|
154
|
+
|
|
126
155
|
return _this;
|
|
127
156
|
}
|
|
157
|
+
|
|
128
158
|
_createClass(Affix, [{
|
|
129
159
|
key: "getTargetFunc",
|
|
130
160
|
value: function getTargetFunc() {
|
|
131
161
|
var getTargetContainer = this.context.getTargetContainer;
|
|
132
162
|
var target = this.props.target;
|
|
163
|
+
|
|
133
164
|
if (target !== undefined) {
|
|
134
165
|
return target;
|
|
135
166
|
}
|
|
167
|
+
|
|
136
168
|
return getTargetContainer || getDefaultTarget;
|
|
137
|
-
}
|
|
138
|
-
|
|
169
|
+
} // Event handler
|
|
170
|
+
|
|
139
171
|
}, {
|
|
140
172
|
key: "componentDidMount",
|
|
141
173
|
value: function componentDidMount() {
|
|
142
174
|
var _this2 = this;
|
|
175
|
+
|
|
143
176
|
var targetFunc = this.getTargetFunc();
|
|
177
|
+
|
|
144
178
|
if (targetFunc) {
|
|
145
179
|
// [Legacy] Wait for parent component ref has its value.
|
|
146
180
|
// We should use target as directly element instead of function which makes element check hard.
|
|
147
181
|
this.timeout = setTimeout(function () {
|
|
148
|
-
addObserveTarget(targetFunc(), _this2);
|
|
149
|
-
|
|
182
|
+
addObserveTarget(targetFunc(), _this2); // Mock Event object.
|
|
183
|
+
|
|
150
184
|
_this2.updatePosition();
|
|
151
185
|
});
|
|
152
186
|
}
|
|
@@ -157,21 +191,26 @@ var Affix = /*#__PURE__*/function (_React$Component) {
|
|
|
157
191
|
var prevTarget = this.state.prevTarget;
|
|
158
192
|
var targetFunc = this.getTargetFunc();
|
|
159
193
|
var newTarget = (targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc()) || null;
|
|
194
|
+
|
|
160
195
|
if (prevTarget !== newTarget) {
|
|
161
196
|
removeObserveTarget(this);
|
|
197
|
+
|
|
162
198
|
if (newTarget) {
|
|
163
|
-
addObserveTarget(newTarget, this);
|
|
164
|
-
|
|
199
|
+
addObserveTarget(newTarget, this); // Mock Event object.
|
|
200
|
+
|
|
165
201
|
this.updatePosition();
|
|
166
|
-
}
|
|
167
|
-
|
|
202
|
+
} // eslint-disable-next-line react/no-did-update-set-state
|
|
203
|
+
|
|
204
|
+
|
|
168
205
|
this.setState({
|
|
169
206
|
prevTarget: newTarget
|
|
170
207
|
});
|
|
171
208
|
}
|
|
209
|
+
|
|
172
210
|
if (prevProps.offsetTop !== this.props.offsetTop || prevProps.offsetBottom !== this.props.offsetBottom) {
|
|
173
211
|
this.updatePosition();
|
|
174
212
|
}
|
|
213
|
+
|
|
175
214
|
this.measure();
|
|
176
215
|
}
|
|
177
216
|
}, {
|
|
@@ -179,11 +218,11 @@ var Affix = /*#__PURE__*/function (_React$Component) {
|
|
|
179
218
|
value: function componentWillUnmount() {
|
|
180
219
|
clearTimeout(this.timeout);
|
|
181
220
|
removeObserveTarget(this);
|
|
182
|
-
this.updatePosition.cancel();
|
|
183
|
-
|
|
221
|
+
this.updatePosition.cancel(); // https://github.com/ant-design/ant-design/issues/22683
|
|
222
|
+
|
|
184
223
|
this.lazyUpdatePosition.cancel();
|
|
185
|
-
}
|
|
186
|
-
|
|
224
|
+
} // Handle realign logic
|
|
225
|
+
|
|
187
226
|
}, {
|
|
188
227
|
key: "updatePosition",
|
|
189
228
|
value: function updatePosition() {
|
|
@@ -193,42 +232,47 @@ var Affix = /*#__PURE__*/function (_React$Component) {
|
|
|
193
232
|
key: "lazyUpdatePosition",
|
|
194
233
|
value: function lazyUpdatePosition() {
|
|
195
234
|
var targetFunc = this.getTargetFunc();
|
|
196
|
-
var affixStyle = this.state.affixStyle;
|
|
197
|
-
|
|
235
|
+
var affixStyle = this.state.affixStyle; // Check position change before measure to make Safari smooth
|
|
236
|
+
|
|
198
237
|
if (targetFunc && affixStyle) {
|
|
199
238
|
var offsetTop = this.getOffsetTop();
|
|
200
239
|
var offsetBottom = this.getOffsetBottom();
|
|
201
240
|
var targetNode = targetFunc();
|
|
241
|
+
|
|
202
242
|
if (targetNode && this.placeholderNode) {
|
|
203
243
|
var targetRect = getTargetRect(targetNode);
|
|
204
244
|
var placeholderReact = getTargetRect(this.placeholderNode);
|
|
205
245
|
var fixedTop = getFixedTop(placeholderReact, targetRect, offsetTop);
|
|
206
246
|
var fixedBottom = getFixedBottom(placeholderReact, targetRect, offsetBottom);
|
|
247
|
+
|
|
207
248
|
if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
|
|
208
249
|
return;
|
|
209
250
|
}
|
|
210
251
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
252
|
+
} // Directly call prepare measure since it's already throttled.
|
|
253
|
+
|
|
254
|
+
|
|
213
255
|
this.prepareMeasure();
|
|
214
|
-
}
|
|
215
|
-
|
|
256
|
+
} // =================== Render ===================
|
|
257
|
+
|
|
216
258
|
}, {
|
|
217
259
|
key: "render",
|
|
218
260
|
value: function render() {
|
|
219
261
|
var _this3 = this;
|
|
262
|
+
|
|
220
263
|
var _this$state2 = this.state,
|
|
221
|
-
|
|
222
|
-
|
|
264
|
+
affixStyle = _this$state2.affixStyle,
|
|
265
|
+
placeholderStyle = _this$state2.placeholderStyle;
|
|
223
266
|
var _this$props2 = this.props,
|
|
224
|
-
|
|
225
|
-
|
|
267
|
+
affixPrefixCls = _this$props2.affixPrefixCls,
|
|
268
|
+
children = _this$props2.children;
|
|
226
269
|
var className = classNames(_defineProperty({}, affixPrefixCls, !!affixStyle));
|
|
227
|
-
var props = omit(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'affixPrefixCls']);
|
|
228
|
-
|
|
270
|
+
var props = omit(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'affixPrefixCls']); // Omit this since `onTestUpdatePosition` only works on test.
|
|
271
|
+
|
|
229
272
|
if (process.env.NODE_ENV === 'test') {
|
|
230
273
|
props = omit(props, ['onTestUpdatePosition']);
|
|
231
274
|
}
|
|
275
|
+
|
|
232
276
|
return /*#__PURE__*/React.createElement(ResizeObserver, {
|
|
233
277
|
onResize: function onResize() {
|
|
234
278
|
_this3.updatePosition();
|
|
@@ -249,15 +293,22 @@ var Affix = /*#__PURE__*/function (_React$Component) {
|
|
|
249
293
|
}, children))));
|
|
250
294
|
}
|
|
251
295
|
}]);
|
|
296
|
+
|
|
252
297
|
return Affix;
|
|
253
298
|
}(React.Component);
|
|
299
|
+
|
|
254
300
|
Affix.contextType = ConfigContext;
|
|
301
|
+
|
|
255
302
|
__decorate([throttleByAnimationFrameDecorator()], Affix.prototype, "updatePosition", null);
|
|
303
|
+
|
|
256
304
|
__decorate([throttleByAnimationFrameDecorator()], Affix.prototype, "lazyUpdatePosition", null);
|
|
305
|
+
|
|
257
306
|
var AffixFC = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
258
307
|
var customizePrefixCls = props.prefixCls;
|
|
308
|
+
|
|
259
309
|
var _React$useContext = React.useContext(ConfigContext),
|
|
260
|
-
|
|
310
|
+
getPrefixCls = _React$useContext.getPrefixCls;
|
|
311
|
+
|
|
261
312
|
var affixPrefixCls = getPrefixCls('affix', customizePrefixCls);
|
|
262
313
|
var affixProps = Object.assign(Object.assign({}, props), {
|
|
263
314
|
affixPrefixCls: affixPrefixCls
|
|
@@ -267,7 +318,9 @@ var AffixFC = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
267
318
|
}));
|
|
268
319
|
});
|
|
269
320
|
AffixFC.AntdAffix = _Affix;
|
|
321
|
+
|
|
270
322
|
if (process.env.NODE_ENV !== 'production') {
|
|
271
323
|
AffixFC.displayName = 'Affix';
|
|
272
324
|
}
|
|
325
|
+
|
|
273
326
|
export default AffixFC;
|