linkmore-design 1.1.22-beta.1 → 1.1.22-beta.2
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/dist/Affix/demos/basic.d.ts +1 -0
- package/dist/Alert/demos/basic.d.ts +1 -0
- package/dist/Alert/demos/visible.d.ts +1 -0
- package/dist/Approval/demos/basic.d.ts +1 -0
- package/dist/Avatar/demos/basic.d.ts +1 -0
- package/dist/Badge/SingleNumber.d.ts +1 -0
- package/dist/Badge/demos/basic.d.ts +1 -0
- package/dist/Breadcrumb/demos/basic.d.ts +1 -0
- package/dist/Breadcrumb/demos/basic1.d.ts +1 -0
- package/dist/Button/demos/basic.d.ts +1 -0
- package/dist/Button/demos/disabled.d.ts +1 -0
- package/dist/Button/demos/ghost.d.ts +1 -0
- package/dist/Button/demos/icon.d.ts +1 -0
- package/dist/Button/demos/type.d.ts +1 -0
- package/dist/Calendar/demos/basic.d.ts +1 -0
- package/dist/Card/demos/basic.d.ts +1 -0
- package/dist/Carousel/demos/basic.d.ts +1 -0
- package/dist/Cascader/demos/basic.d.ts +1 -0
- package/dist/Cascader/demos/formItem.d.ts +1 -0
- package/dist/Col/demos/basic.d.ts +1 -0
- package/dist/Collapse/demos/basic.d.ts +1 -0
- package/dist/Comment/demos/basic.d.ts +1 -0
- package/dist/ConfigProvider/demos/componentSize.d.ts +1 -0
- package/dist/CustomTableOption/demos/basic.d.ts +1 -0
- package/dist/DatePicker/PickerButton.d.ts +1 -0
- package/dist/DatePicker/PickerTag.d.ts +1 -0
- package/dist/DatePicker/demos/basic.d.ts +1 -0
- package/dist/Descriptions/demos/basic.d.ts +1 -0
- package/dist/Drawer/demos/basic.d.ts +1 -0
- package/dist/Drawer/demos/button.d.ts +1 -0
- package/dist/Drawer/demos/nested.d.ts +1 -0
- package/dist/Dropdown/demos/basic.d.ts +1 -0
- package/dist/Dropdown/demos/button.d.ts +1 -0
- package/dist/Dropdown/demos/icon.d.ts +1 -0
- package/dist/Dropdown/demos/local.d.ts +1 -0
- package/dist/Dropdown/demos/target.d.ts +1 -0
- package/dist/Empty/demos/basic.d.ts +1 -0
- package/dist/Empty/demos/custom.d.ts +1 -0
- package/dist/Empty/empty.d.ts +1 -0
- package/dist/Empty/simple.d.ts +1 -0
- package/dist/Form/demos/disabled.d.ts +1 -0
- package/dist/Form/demos/drawer1152-triple.d.ts +1 -0
- package/dist/Form/demos/drawer440-double.d.ts +1 -0
- package/dist/Form/demos/drawer440.d.ts +1 -0
- package/dist/Form/demos/drawer720-double.d.ts +1 -0
- package/dist/Form/demos/error-tip.d.ts +1 -0
- package/dist/Form/demos/formlist.d.ts +1 -0
- package/dist/Form/demos/horizontal.d.ts +1 -0
- package/dist/Form/demos/inline.d.ts +1 -0
- package/dist/Form/demos/modal416.d.ts +1 -0
- package/dist/Form/demos/modal552-double.d.ts +1 -0
- package/dist/Form/demos/responsive.d.ts +1 -0
- package/dist/Form/demos/ruleTime.d.ts +1 -0
- package/dist/Form/demos/vertical.d.ts +1 -0
- package/dist/FullScreen/demos/basic.d.ts +1 -0
- package/dist/FullScreen/demos/useInModal.d.ts +1 -0
- package/dist/Grid/demos/basic.d.ts +1 -0
- package/dist/IconFont/index.d.ts +1 -0
- package/dist/Image/demos/basic.d.ts +1 -0
- package/dist/ImageViewer/components/Arrows.d.ts +1 -0
- package/dist/ImageViewer/components/Carousel.d.ts +1 -0
- package/dist/ImageViewer/components/Operate.d.ts +1 -0
- package/dist/ImageViewer/components/Thumb.d.ts +1 -0
- package/dist/Input/demos/after.d.ts +1 -0
- package/dist/Input/demos/base.d.ts +1 -0
- package/dist/Input/demos/basic.d.ts +1 -0
- package/dist/Input/demos/color.d.ts +1 -0
- package/dist/Input/demos/combination.d.ts +1 -0
- package/dist/Input/demos/import.d.ts +1 -0
- package/dist/Input/demos/line.d.ts +1 -0
- package/dist/Input/demos/password.d.ts +1 -0
- package/dist/Input/demos/size.d.ts +1 -0
- package/dist/InputNumber/demos/basic.d.ts +1 -0
- package/dist/InputNumber/demos/format.d.ts +1 -0
- package/dist/InputNumber/demos/price.d.ts +1 -0
- package/dist/InputNumber/demos/status.d.ts +1 -0
- package/dist/InputNumber/demos/suffix.d.ts +1 -0
- package/dist/Layout/demos/basic.d.ts +1 -0
- package/dist/List/demos/basic.d.ts +1 -0
- package/dist/LmDrag/components/DndContainer.d.ts +1 -0
- package/dist/LmDrag/demos/basic.d.ts +1 -0
- package/dist/LmEditTable/DndContainer.d.ts +1 -0
- package/dist/LmEditTable/DragHandle.d.ts +1 -0
- package/dist/LmEditTable/demos/basic.d.ts +1 -0
- package/dist/LmEditTable/demos/colsort.d.ts +1 -0
- package/dist/LmEditTable/demos/group.d.ts +1 -0
- package/dist/LmEditTable/demos/priceTable.d.ts +1 -0
- package/dist/LmEditTable/demos/sinleEdit.d.ts +1 -0
- package/dist/LmEditTable/demos/size.d.ts +1 -0
- package/dist/LmEditTable/sortableBox.d.ts +1 -0
- package/dist/LmEditTable/sortableBoxCol.d.ts +1 -0
- package/dist/LmEditTable/sortableItem.d.ts +1 -0
- package/dist/LmEditTable/sortableItemCol.d.ts +1 -0
- package/dist/LmSelect/GhostSelect.d.ts +1 -0
- package/dist/LmSelect/demos/basic.d.ts +1 -0
- package/dist/LmSelect/demos/checkbox.d.ts +1 -0
- package/dist/LmSelect/demos/ghost.d.ts +1 -0
- package/dist/LmSelect/useCheckboxOptions.d.ts +1 -0
- package/dist/LmTable/components/Item/components/Remove/index.d.ts +1 -0
- package/dist/LmTable/components/customRenderEmpty.d.ts +1 -0
- package/dist/LmTable/components/inputDataEdit.d.ts +1 -0
- package/dist/LmTable/components/tableChartsModal.d.ts +1 -0
- package/dist/LmUpload/UploadList/ItemPicture.d.ts +1 -0
- package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +1 -0
- package/dist/LmUpload/UploadList/ItemText.d.ts +1 -0
- package/dist/LmUpload/view/index.d.ts +1 -0
- package/dist/LmUpload/wrapper/Upload.d.ts +1 -0
- package/dist/Mentions/demos/basic.d.ts +1 -0
- package/dist/Menu/demos/basic.d.ts +1 -0
- package/dist/Modal/demos/basic.d.ts +1 -0
- package/dist/Modal/demos/info.d.ts +1 -0
- package/dist/Modal/demos/locale.d.ts +1 -0
- package/dist/PageHeader/demos/basic.d.ts +1 -0
- package/dist/Pagination/demos/basic.d.ts +1 -0
- package/dist/Popconfirm/demos/basic.d.ts +1 -0
- package/dist/Popover/demos/basic.d.ts +1 -0
- package/dist/Popover/demos/basic1.d.ts +1 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Progress/demos/basic.d.ts +1 -0
- package/dist/Progress/demos/circle.d.ts +1 -0
- package/dist/Progress/demos/dynamic.d.ts +1 -0
- package/dist/Progress/demos/small.d.ts +1 -0
- package/dist/QuickMenu/demos/basic.d.ts +1 -0
- package/dist/QuickMenu/demos/useInDraw.d.ts +1 -0
- package/dist/Rate/demos/basic.d.ts +1 -0
- package/dist/Result/demos/403.d.ts +1 -0
- package/dist/Result/demos/404.d.ts +1 -0
- package/dist/Result/demos/500.d.ts +1 -0
- package/dist/Result/demos/basic.d.ts +1 -0
- package/dist/Result/demos/customicon.d.ts +1 -0
- package/dist/Result/demos/error.d.ts +1 -0
- package/dist/Result/demos/info.d.ts +1 -0
- package/dist/Result/demos/success.d.ts +1 -0
- package/dist/Result/demos/warning.d.ts +1 -0
- package/dist/Result/noFound.d.ts +1 -0
- package/dist/Result/serverError.d.ts +1 -0
- package/dist/Result/unauthorized.d.ts +1 -0
- package/dist/Row/demos/basic.d.ts +1 -0
- package/dist/Segmented/demos/basic.d.ts +1 -0
- package/dist/Select/demos/basic.d.ts +1 -0
- package/dist/Select/demos/bordered.d.ts +1 -0
- package/dist/Select/demos/formItem.d.ts +1 -0
- package/dist/Skeleton/demos/basic.d.ts +1 -0
- package/dist/Slider/demos/basic.d.ts +1 -0
- package/dist/Space/demos/auto.d.ts +1 -0
- package/dist/Space/demos/basic.d.ts +1 -0
- package/dist/Space/demos/vertical.d.ts +1 -0
- package/dist/Spin/demos/basic.d.ts +1 -0
- package/dist/Spin/demos/size.d.ts +1 -0
- package/dist/Statistic/demos/basic.d.ts +1 -0
- package/dist/Steps/demos/basic.d.ts +1 -0
- package/dist/Switch/demos/basic.d.ts +1 -0
- package/dist/Switch/demos/table.d.ts +1 -0
- package/dist/Table/demos/basic.d.ts +1 -0
- package/dist/Tabs/demos/basic.d.ts +1 -0
- package/dist/Tabs/demos/nobroder.d.ts +1 -0
- package/dist/Tag/demos/CheckableTag.d.ts +1 -0
- package/dist/Tag/demos/ExigencyTag.d.ts +1 -0
- package/dist/Tag/demos/add.d.ts +1 -0
- package/dist/Tag/demos/basic.d.ts +1 -0
- package/dist/Tag/demos/border.d.ts +1 -0
- package/dist/Tag/demos/colors.d.ts +1 -0
- package/dist/Timeline/demos/basic.d.ts +1 -0
- package/dist/Tooltip/demos/basic.d.ts +1 -0
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Transfer/demos/basic.d.ts +1 -0
- package/dist/Tree/demos/basic.d.ts +1 -0
- package/dist/Tree/demos/controlled.d.ts +1 -0
- package/dist/Tree/demos/search.d.ts +1 -0
- package/dist/Tree/demos/sort.d.ts +1 -0
- package/dist/Tree/utils/dropIndicator.d.ts +1 -0
- package/dist/TreeSelect/demos/basic.d.ts +1 -0
- package/dist/TreeSelect/demos/formItem.d.ts +1 -0
- package/dist/Typography/demos/basic.d.ts +1 -0
- package/dist/hooks/useFullscreen/demos/basic.d.ts +1 -0
- package/dist/hooks/useFullscreen/demos/useInModal.d.ts +1 -0
- package/dist/index.umd.css +284 -1225
- package/dist/index.umd.js +184333 -204750
- package/dist/index.umd.min.css +2 -2
- package/dist/index.umd.min.js +21 -25
- package/dist/locale-provider/index.d.ts +2 -2
- package/dist/message/demos/basic.d.ts +1 -0
- package/dist/message/demos/other.d.ts +1 -0
- package/dist/notification/demos/basic.d.ts +1 -0
- package/dist/notification/demos/button.d.ts +1 -0
- package/dist/notification/demos/icon.d.ts +1 -0
- package/es/Affix/index.js +37 -90
- package/es/Affix/utils.js +6 -13
- package/es/Alert/ErrorBoundary.js +5 -15
- package/es/Alert/index.js +42 -64
- package/es/Approval/handle.js +10 -27
- package/es/Approval/index.js +63 -120
- package/es/Approval/type.js +0 -24
- package/es/Approval/util.js +4 -24
- package/es/AutoComplete/index.js +9 -20
- package/es/Badge/Ribbon.js +9 -16
- package/es/Badge/ScrollNumber.js +17 -28
- package/es/Badge/SingleNumber.d.ts +1 -0
- package/es/Badge/SingleNumber.js +23 -38
- package/es/Badge/index.js +44 -68
- package/es/Badge/utils.js +2 -2
- package/es/Box/body/Item.js +1 -3
- package/es/Box/body/OverflowList.js +2 -2
- package/es/Box/wrapper/BoxContainer.js +8 -12
- package/es/Box/wrapper/BoxRoot.js +5 -7
- package/es/Box/wrapper/reducer.js +2 -4
- package/es/Button/index.js +10 -17
- package/es/ButtonTags/ButtonTags.js +6 -15
- package/es/ButtonTags/index.js +0 -3
- package/es/CardTable/LmCardTable.js +19 -28
- package/es/CardTable/body/TableBody.js +17 -26
- package/es/CardTable/body/TableBodyCell.js +9 -17
- package/es/CardTable/body/TableBodyRow.js +13 -19
- package/es/CardTable/card/PictureTextColumn.js +18 -28
- package/es/CardTable/card/PictureTextRow.js +18 -31
- package/es/CardTable/card/PictureTextRowOperate.js +17 -30
- package/es/CardTable/context.js +0 -5
- package/es/CardTable/empty.js +1 -6
- package/es/CardTable/fns/index.js +22 -36
- package/es/CardTable/footer.js +4 -15
- package/es/CardTable/hooks/usePagination.js +35 -50
- package/es/CardTable/index.js +0 -5
- package/es/CardTable/pager/TablePagination.js +8 -15
- package/es/CardTable/pager/index.js +6 -13
- package/es/CardTable/table/Table.js +2 -6
- package/es/CardTable/table/TableContainer.js +14 -23
- package/es/CardTable/table/TableRoot.js +45 -65
- package/es/CardTable/table/TableWrapper.js +2 -9
- package/es/CardTable/toolbar/ToolBarBottom.js +3 -8
- package/es/CardTable/utils.js +3 -9
- package/es/Cascader/index.js +11 -21
- package/es/Checkbox/index.js +7 -18
- package/es/ConfigProvider/DisabledContext.js +1 -1
- package/es/ConfigProvider/SizeContext.js +1 -1
- package/es/ConfigProvider/context.js +4 -10
- package/es/ConfigProvider/cssVariables.js +16 -25
- package/es/ConfigProvider/defaultRenderEmpty.js +0 -6
- package/es/ConfigProvider/index.js +30 -55
- package/es/CropImg/body/Operate.js +10 -19
- package/es/CropImg/body/index.js +6 -8
- package/es/CropImg/fns/index.js +10 -11
- package/es/CropImg/utils.js +27 -45
- package/es/CropImg/wrapper/Container.js +9 -20
- package/es/CropImg/wrapper/Root.js +13 -16
- package/es/CropImg/wrapper/Wrapper.js +0 -2
- package/es/CropImg/wrapper/reducer.js +5 -9
- package/es/CustomTableOption/cardSort.js +24 -49
- package/es/CustomTableOption/columnsSort.js +22 -56
- package/es/CustomTableOption/filterSort.js +23 -48
- package/es/CustomTableOption/index.js +18 -31
- package/es/CustomerService/components/question.js +3 -20
- package/es/CustomerService/index.js +18 -46
- package/es/DatePicker/PickerButton.d.ts +1 -0
- package/es/DatePicker/PickerTag.d.ts +1 -0
- package/es/DatePicker/generatePicker/generateRangePicker.js +23 -33
- package/es/DatePicker/generatePicker/generateSinglePicker.js +22 -37
- package/es/DatePicker/generatePicker/index.js +12 -25
- package/es/DatePicker/util.js +0 -17
- package/es/Descriptions/Cell.js +11 -17
- package/es/Descriptions/Item.js +0 -1
- package/es/Descriptions/Row.js +24 -31
- package/es/Descriptions/index.js +27 -46
- package/es/Divider/index.js +12 -21
- package/es/Drawer/index.js +4 -11
- package/es/Dropdown/index.js +19 -40
- package/es/EditTable/EditTable.js +75 -171
- package/es/EditTable/index.js +0 -3
- package/es/Empty/empty.js +1 -4
- package/es/Empty/index.js +10 -22
- package/es/Empty/simple.js +1 -4
- package/es/EnlargeImg/index.js +17 -43
- package/es/Filter/Popover.js +29 -65
- package/es/Filter/baseFilter/Popover.js +28 -70
- package/es/Filter/baseFilter/ToggleFilter.js +9 -25
- package/es/Filter/baseFilter/index.js +8 -28
- package/es/Filter/complex/ComplexFilter.js +16 -47
- package/es/Filter/complex/ComplexItem.js +24 -47
- package/es/Filter/components/Checkbox.js +14 -34
- package/es/Filter/components/Date.js +10 -30
- package/es/Filter/components/Input.js +7 -23
- package/es/Filter/components/Select.js +13 -33
- package/es/Filter/components/Tree.js +8 -24
- package/es/Filter/components/header.js +3 -17
- package/es/Filter/components/index.js +0 -6
- package/es/Filter/context.js +0 -4
- package/es/Filter/edit/editFilter.js +41 -78
- package/es/Filter/index.js +21 -43
- package/es/Filter/popContext.js +0 -4
- package/es/Filter/remember.js +18 -41
- package/es/Form/ErrorList.js +16 -22
- package/es/Form/Form.js +27 -49
- package/es/Form/FormItem/ItemHolder.js +26 -42
- package/es/Form/FormItem/index.js +58 -103
- package/es/Form/FormItemInput.js +14 -16
- package/es/Form/FormItemLabel.js +24 -43
- package/es/Form/FormList.js +3 -11
- package/es/Form/FormWrapper.js +0 -4
- package/es/Form/WrapperItem.js +34 -70
- package/es/Form/container.js +12 -25
- package/es/Form/context.js +2 -5
- package/es/Form/hooks/useDebounce.js +3 -4
- package/es/Form/hooks/useForm.js +2 -7
- package/es/Form/hooks/useFormInstance.js +1 -2
- package/es/Form/hooks/useFormItemStatus.js +1 -4
- package/es/Form/hooks/useFrameState.js +3 -8
- package/es/Form/hooks/useItemRef.js +1 -6
- package/es/Form/index.js +0 -2
- package/es/Form/util.js +2 -6
- package/es/FullScreen/index.js +3 -6
- package/es/Grid/col.js +21 -41
- package/es/Grid/hooks/useBreakpoint.js +0 -3
- package/es/Grid/index.js +2 -3
- package/es/Grid/row.js +31 -49
- package/es/Icon/index.js +0 -4
- package/es/IconFont/font/iconfont.js +10 -16
- package/es/IconFont/index.js +1 -4
- package/es/IconSelect/index.js +12 -29
- package/es/ImageViewer/LmImageViewer.js +0 -6
- package/es/ImageViewer/components/Arrows.js +1 -7
- package/es/ImageViewer/components/Carousel.js +13 -15
- package/es/ImageViewer/components/Operate.js +0 -4
- package/es/ImageViewer/components/Thumb.js +3 -10
- package/es/ImageViewer/fns/index.js +17 -26
- package/es/ImageViewer/wrapeer/Container.js +1 -5
- package/es/ImageViewer/wrapeer/Root.js +14 -19
- package/es/ImageViewer/wrapeer/Wrapper.js +1 -5
- package/es/ImageViewer/wrapeer/reducer.js +6 -13
- package/es/Input/index.js +16 -24
- package/es/InputNumber/index.js +9 -17
- package/es/LeftTable/index.js +25 -49
- package/es/LmDrag/LmDrag.js +0 -6
- package/es/LmDrag/components/DndContainer.js +22 -38
- package/es/LmDrag/components/sortableBox.js +4 -5
- package/es/LmDrag/components/sortableItem.js +13 -17
- package/es/LmDrag/wrapper/Root.js +0 -2
- package/es/LmEditTable/DndContainer.js +9 -12
- package/es/LmEditTable/DragHandle.js +4 -6
- package/es/LmEditTable/EditTable.js +153 -311
- package/es/LmEditTable/sortableBox.js +1 -3
- package/es/LmEditTable/sortableBoxCol.js +1 -3
- package/es/LmEditTable/sortableItem.js +9 -16
- package/es/LmEditTable/sortableItemCol.d.ts +1 -0
- package/es/LmEditTable/sortableItemCol.js +8 -14
- package/es/LmEditTable/util.js +2 -10
- package/es/LmFilter/Controls/CheckboxTags.js +2 -12
- package/es/LmFilter/Controls/index.js +10 -24
- package/es/LmFilter/LmFilter.js +4 -14
- package/es/LmFilter/baseFilter/fuzzySearch.js +8 -18
- package/es/LmFilter/baseFilter/index.js +1 -6
- package/es/LmFilter/clearFilter/index.js +2 -9
- package/es/LmFilter/complexFilter/drawer.js +47 -76
- package/es/LmFilter/complexFilter/index.js +2 -14
- package/es/LmFilter/complexFilter/valueDrawer.js +14 -46
- package/es/LmFilter/components/CascaderFilter.js +27 -52
- package/es/LmFilter/components/CheckboxFilter.js +39 -52
- package/es/LmFilter/components/CustomSelectFilter.js +20 -38
- package/es/LmFilter/components/DateFilter.js +23 -39
- package/es/LmFilter/components/DropdownFIlter.js +49 -82
- package/es/LmFilter/components/EmptyFilter.js +0 -5
- package/es/LmFilter/components/InputFilter.js +5 -13
- package/es/LmFilter/components/InputSearchClose.js +10 -22
- package/es/LmFilter/components/SelectFilter.js +21 -37
- package/es/LmFilter/components/index.js +23 -34
- package/es/LmFilter/customFilter/drawer.js +37 -72
- package/es/LmFilter/customFilter/index.js +11 -24
- package/es/LmFilter/customFilter/saveModal.js +12 -36
- package/es/LmFilter/customFilter/valueDrawer.js +14 -45
- package/es/LmFilter/filterFns/index.js +131 -191
- package/es/LmFilter/hooks/index.js +0 -2
- package/es/LmFilter/hooks/useDelayedFn.js +2 -5
- package/es/LmFilter/index.js +0 -3
- package/es/LmFilter/localization.js +2 -1
- package/es/LmFilter/utils.js +21 -47
- package/es/LmFilter/wrapper/Filter.js +4 -13
- package/es/LmFilter/wrapper/FilterContainer.js +1 -5
- package/es/LmFilter/wrapper/FilterRoot.js +40 -62
- package/es/LmFilter/wrapper/FilterWrapper.js +1 -5
- package/es/LmImgList/body/Banner.js +13 -17
- package/es/LmImgList/body/Thumb.js +4 -9
- package/es/LmImgList/fns/index.js +15 -23
- package/es/LmImgList/wrapper/Container.js +9 -13
- package/es/LmImgList/wrapper/Root.js +13 -16
- package/es/LmImgList/wrapper/reducer.js +6 -11
- package/es/LmSelect/GhostSelect.js +99 -150
- package/es/LmSelect/NormalSelect.js +20 -30
- package/es/LmSelect/index.js +1 -7
- package/es/LmSelect/useCheckboxOptions.js +17 -27
- package/es/LmSelect/utils.js +20 -22
- package/es/LmTable/Table.js +289 -460
- package/es/LmTable/VList.js +109 -170
- package/es/LmTable/autosize.js +16 -43
- package/es/LmTable/chartUtil.js +4 -14
- package/es/LmTable/common/index.js +1 -7
- package/es/LmTable/components/Container/Container.js +16 -20
- package/es/LmTable/components/DndContainer.js +126 -203
- package/es/LmTable/components/HeaderCol.js +10 -18
- package/es/LmTable/components/Item/Item.js +22 -26
- package/es/LmTable/components/Item/components/Action/Action.js +4 -8
- package/es/LmTable/components/Item/components/Remove/index.d.ts +1 -0
- package/es/LmTable/components/SortableBox.js +1 -6
- package/es/LmTable/components/customRenderEmpty.js +1 -4
- package/es/LmTable/components/inputDataEdit.js +3 -8
- package/es/LmTable/components/sheelTableCell.js +32 -57
- package/es/LmTable/components/tableChartsModal.js +23 -30
- package/es/LmTable/context.js +0 -3
- package/es/LmTable/detectElementResize.js +15 -48
- package/es/LmTable/expression.js +2 -7
- package/es/LmTable/hooks/useDndItems.js +19 -45
- package/es/LmTable/hooks/useGroupDataSource.js +4 -12
- package/es/LmTable/hooks/useRowSelectControllableValue.js +6 -20
- package/es/LmTable/index.js +0 -3
- package/es/LmTable/multipleContainersKeyboardCoordinates.js +5 -30
- package/es/LmTable/resetConfig.js +8 -8
- package/es/LmTable/testDemos/group.js +5 -21
- package/es/LmTable/util.js +30 -90
- package/es/LmTable/virTual/VirtualRow.js +14 -26
- package/es/LmTable/virTual/VirtualTable.js +13 -9
- package/es/LmTable/virTual/VirtualWrapper.js +7 -14
- package/es/LmTable/virTual/context.js +4 -13
- package/es/LmUpload/LmUpload.js +11 -17
- package/es/LmUpload/UploadList/ItemPicture.js +7 -8
- package/es/LmUpload/UploadList/ItemPictureCard.js +22 -37
- package/es/LmUpload/UploadList/ItemText.js +4 -6
- package/es/LmUpload/UploadList/RenderItem.js +1 -7
- package/es/LmUpload/UploadList/index.js +10 -18
- package/es/LmUpload/body/Progress.js +0 -2
- package/es/LmUpload/body/UploadCore.js +9 -15
- package/es/LmUpload/body/UploadPicture.js +4 -5
- package/es/LmUpload/components/Crop.js +3 -5
- package/es/LmUpload/components/Preview.js +7 -10
- package/es/LmUpload/fns/index.js +57 -108
- package/es/LmUpload/utils.js +12 -15
- package/es/LmUpload/view/index.js +0 -2
- package/es/LmUpload/wrapper/Upload.js +0 -2
- package/es/LmUpload/wrapper/UploadContainer.js +1 -5
- package/es/LmUpload/wrapper/UploadRoot.js +13 -18
- package/es/LmUpload/wrapper/UploadWrapper.js +0 -2
- package/es/LmUpload/wrapper/reducer.js +6 -11
- package/es/LoadingPage/index.js +1 -7
- package/es/Locale/ku_IQ.js +2 -2
- package/es/Modal/index.js +8 -22
- package/es/PageHeader/index.js +22 -44
- package/es/Pagination/index.js +4 -13
- package/es/Popover/index.d.ts +1 -1
- package/es/Popover/index.js +5 -14
- package/es/QuickMenu/index.js +17 -45
- package/es/Radio/index.js +9 -20
- package/es/Result/index.js +16 -26
- package/es/Result/noFound.js +0 -2
- package/es/Result/serverError.js +0 -2
- package/es/Result/unauthorized.js +0 -2
- package/es/Select/index.js +20 -31
- package/es/Switch/index.js +3 -10
- package/es/Tabs/TabPane.js +0 -2
- package/es/Tabs/hooks/useAnimateConfig.js +0 -3
- package/es/Tabs/hooks/useLegacyItems.js +3 -12
- package/es/Tabs/index.js +15 -27
- package/es/Tabs/index.old.js +4 -11
- package/es/Tag/index.js +5 -13
- package/es/Tooltip/index.d.ts +1 -1
- package/es/Tooltip/index.js +34 -66
- package/es/Tree/DirectoryTree.js +31 -61
- package/es/Tree/Tree.js +14 -21
- package/es/Tree/index.js +1 -5
- package/es/Tree/utils/dictUtil.js +4 -21
- package/es/Tree/utils/dropIndicator.d.ts +1 -0
- package/es/Tree/utils/dropIndicator.js +5 -10
- package/es/Tree/utils/iconUtil.js +2 -13
- package/es/TreeSelect/index.js +15 -24
- package/es/Typography/Base/Ellipsis.js +25 -52
- package/es/Typography/Base/EllipsisTooltip.js +3 -8
- package/es/Typography/Base/index.js +104 -173
- package/es/Typography/Editable.js +21 -34
- package/es/Typography/Link.js +4 -11
- package/es/Typography/Paragraph.js +0 -2
- package/es/Typography/Text.js +1 -9
- package/es/Typography/Title.js +2 -10
- package/es/Typography/Typography.js +11 -23
- package/es/Typography/hooks/useUpdatedEffect.js +0 -1
- package/es/Upload/index.js +2 -6
- package/es/UploadOss/index.js +0 -4
- package/es/UploadOss/uploadBtn.js +32 -54
- package/es/UploadOss/uploadImg.js +58 -86
- package/es/VirtualList/index.js +18 -27
- package/es/_util/colors.js +2 -2
- package/es/_util/domTarget.js +0 -3
- package/es/_util/getDataOrAriaProps.js +0 -1
- package/es/_util/getRenderPropValue.js +0 -3
- package/es/_util/hooks/useFlexGapSupport.js +3 -4
- package/es/_util/hooks/useForceUpdate.js +4 -5
- package/es/_util/motion.js +2 -11
- package/es/_util/placements.js +7 -8
- package/es/_util/responsiveObserve.js +0 -5
- package/es/_util/statusUtils.js +0 -1
- package/es/_util/styleChecker.js +6 -9
- package/es/_util/throttleByAnimationFrame.js +0 -6
- package/es/_util/transButton.js +3 -15
- package/es/_util/type.js +0 -2
- package/es/_util/warning.js +4 -6
- package/es/hooks/useEvent/index.js +6 -7
- package/es/hooks/useFullscreen/index.js +7 -29
- package/es/locale-provider/LocaleReceiver.js +4 -12
- package/es/locale-provider/index.d.ts +2 -2
- package/es/locale-provider/index.js +2 -11
- package/es/message/hooks/useMessage.js +8 -17
- package/es/message/index.js +8 -36
- package/es/notification/hooks/useNotification.js +8 -12
- package/es/notification/index.js +31 -67
- package/es/services/newRequest.js +18 -47
- package/es/services/utils.js +0 -15
- package/lib/Affix/index.js +37 -104
- package/lib/Affix/utils.js +6 -22
- package/lib/Alert/ErrorBoundary.js +5 -21
- package/lib/Alert/index.js +42 -78
- package/lib/Approval/handle.js +10 -37
- package/lib/Approval/index.js +63 -131
- package/lib/Approval/type.js +0 -24
- package/lib/Approval/util.js +4 -30
- package/lib/AutoComplete/index.js +10 -34
- package/lib/Avatar/index.js +0 -4
- package/lib/Badge/Ribbon.js +9 -23
- package/lib/Badge/ScrollNumber.js +17 -35
- package/lib/Badge/SingleNumber.d.ts +1 -0
- package/lib/Badge/SingleNumber.js +23 -43
- package/lib/Badge/index.js +44 -79
- package/lib/Badge/utils.js +0 -2
- package/lib/Box/LmBox.js +0 -5
- package/lib/Box/body/Item.js +1 -7
- package/lib/Box/body/List.js +0 -6
- package/lib/Box/body/OverflowList.js +0 -4
- package/lib/Box/index.js +0 -3
- package/lib/Box/wrapper/BoxContainer.js +8 -19
- package/lib/Box/wrapper/BoxRoot.js +5 -14
- package/lib/Box/wrapper/BoxWrapper.js +0 -5
- package/lib/Box/wrapper/reducer.js +2 -8
- package/lib/Breadcrumb/index.js +0 -4
- package/lib/Button/index.js +10 -25
- package/lib/ButtonTags/ButtonTags.js +6 -15
- package/lib/ButtonTags/index.js +0 -3
- package/lib/Calendar/index.js +0 -4
- package/lib/Card/index.js +0 -4
- package/lib/CardTable/LmCardTable.js +19 -28
- package/lib/CardTable/body/TableBody.js +17 -26
- package/lib/CardTable/body/TableBodyCell.js +9 -17
- package/lib/CardTable/body/TableBodyRow.js +13 -19
- package/lib/CardTable/card/PictureTextColumn.js +18 -28
- package/lib/CardTable/card/PictureTextRow.js +18 -31
- package/lib/CardTable/card/PictureTextRowOperate.js +17 -30
- package/lib/CardTable/context.js +0 -5
- package/lib/CardTable/empty.js +1 -6
- package/lib/CardTable/fns/index.js +22 -36
- package/lib/CardTable/footer.js +4 -15
- package/lib/CardTable/hooks/usePagination.js +35 -50
- package/lib/CardTable/index.js +0 -5
- package/lib/CardTable/pager/TablePagination.js +8 -15
- package/lib/CardTable/pager/index.js +6 -13
- package/lib/CardTable/table/Table.js +2 -6
- package/lib/CardTable/table/TableContainer.js +14 -23
- package/lib/CardTable/table/TableRoot.js +45 -65
- package/lib/CardTable/table/TableWrapper.js +2 -9
- package/lib/CardTable/toolbar/ToolBarBottom.js +3 -8
- package/lib/CardTable/utils.js +3 -9
- package/lib/Carousel/index.js +0 -4
- package/lib/Cascader/index.js +11 -30
- package/lib/Checkbox/index.js +7 -18
- package/lib/Col/index.js +0 -2
- package/lib/Collapse/index.js +0 -4
- package/lib/Comment/index.js +0 -4
- package/lib/ConfigProvider/DisabledContext.js +1 -6
- package/lib/ConfigProvider/SizeContext.js +1 -6
- package/lib/ConfigProvider/context.js +4 -13
- package/lib/ConfigProvider/cssVariables.js +17 -34
- package/lib/ConfigProvider/defaultRenderEmpty.js +0 -12
- package/lib/ConfigProvider/index.js +30 -75
- package/lib/CropImg/LmCropImg.js +0 -5
- package/lib/CropImg/body/Operate.js +10 -23
- package/lib/CropImg/body/index.js +6 -13
- package/lib/CropImg/fns/index.js +8 -12
- package/lib/CropImg/index.js +0 -3
- package/lib/CropImg/utils.js +27 -45
- package/lib/CropImg/wrapper/Container.js +7 -26
- package/lib/CropImg/wrapper/Root.js +13 -24
- package/lib/CropImg/wrapper/Wrapper.js +0 -6
- package/lib/CropImg/wrapper/reducer.js +5 -12
- package/lib/CustomTableOption/cardSort.js +24 -60
- package/lib/CustomTableOption/columnsSort.js +22 -67
- package/lib/CustomTableOption/filterSort.js +23 -59
- package/lib/CustomTableOption/index.js +18 -44
- package/lib/CustomerService/components/question.js +3 -20
- package/lib/CustomerService/index.js +18 -46
- package/lib/DatePicker/PickerButton.d.ts +1 -0
- package/lib/DatePicker/PickerButton.js +0 -4
- package/lib/DatePicker/PickerTag.d.ts +1 -0
- package/lib/DatePicker/PickerTag.js +0 -4
- package/lib/DatePicker/generatePicker/generateRangePicker.js +23 -52
- package/lib/DatePicker/generatePicker/generateSinglePicker.js +22 -56
- package/lib/DatePicker/generatePicker/index.js +12 -33
- package/lib/DatePicker/index.js +0 -6
- package/lib/DatePicker/util.js +0 -20
- package/lib/Descriptions/Cell.js +11 -22
- package/lib/Descriptions/Item.js +0 -2
- package/lib/Descriptions/Row.js +24 -36
- package/lib/Descriptions/index.js +28 -61
- package/lib/Divider/index.js +12 -28
- package/lib/Drawer/index.js +4 -16
- package/lib/Dropdown/index.js +19 -48
- package/lib/EditTable/EditTable.js +75 -171
- package/lib/EditTable/index.js +0 -3
- package/lib/Empty/empty.js +1 -7
- package/lib/Empty/index.js +10 -33
- package/lib/Empty/simple.js +1 -7
- package/lib/EnlargeImg/index.js +17 -43
- package/lib/Filter/Popover.js +29 -65
- package/lib/Filter/baseFilter/Popover.js +28 -70
- package/lib/Filter/baseFilter/ToggleFilter.js +9 -25
- package/lib/Filter/baseFilter/index.js +8 -28
- package/lib/Filter/complex/ComplexFilter.js +16 -47
- package/lib/Filter/complex/ComplexItem.js +24 -47
- package/lib/Filter/components/Checkbox.js +14 -34
- package/lib/Filter/components/Date.js +10 -30
- package/lib/Filter/components/Input.js +7 -23
- package/lib/Filter/components/Select.js +13 -33
- package/lib/Filter/components/Tree.js +8 -24
- package/lib/Filter/components/header.js +3 -17
- package/lib/Filter/components/index.js +0 -6
- package/lib/Filter/context.js +0 -4
- package/lib/Filter/edit/editFilter.js +41 -78
- package/lib/Filter/index.js +21 -43
- package/lib/Filter/popContext.js +0 -4
- package/lib/Filter/remember.js +18 -41
- package/lib/Form/ErrorList.js +16 -34
- package/lib/Form/Form.js +27 -62
- package/lib/Form/FormItem/ItemHolder.js +26 -60
- package/lib/Form/FormItem/index.js +58 -122
- package/lib/Form/FormItemInput.js +14 -23
- package/lib/Form/FormItemLabel.js +24 -55
- package/lib/Form/FormList.js +3 -18
- package/lib/Form/FormWrapper.js +0 -8
- package/lib/Form/WrapperItem.js +34 -79
- package/lib/Form/container.js +12 -32
- package/lib/Form/context.js +2 -15
- package/lib/Form/hooks/useDebounce.js +3 -9
- package/lib/Form/hooks/useForm.js +2 -14
- package/lib/Form/hooks/useFormInstance.js +1 -5
- package/lib/Form/hooks/useFormItemStatus.js +1 -8
- package/lib/Form/hooks/useFrameState.js +3 -16
- package/lib/Form/hooks/useItemRef.js +1 -13
- package/lib/Form/index.js +0 -13
- package/lib/Form/util.js +2 -9
- package/lib/FullScreen/index.js +3 -10
- package/lib/Grid/RowContext.js +0 -2
- package/lib/Grid/col.js +21 -48
- package/lib/Grid/hooks/useBreakpoint.js +0 -8
- package/lib/Grid/index.js +0 -7
- package/lib/Grid/row.js +31 -62
- package/lib/Icon/index.js +0 -4
- package/lib/IconFont/font/iconfont.js +10 -16
- package/lib/IconFont/index.js +1 -11
- package/lib/IconSelect/index.js +12 -29
- package/lib/Image/index.js +0 -4
- package/lib/ImageViewer/LmImageViewer.js +0 -11
- package/lib/ImageViewer/components/Arrows.js +1 -10
- package/lib/ImageViewer/components/Carousel.js +13 -18
- package/lib/ImageViewer/components/Operate.js +0 -7
- package/lib/ImageViewer/components/Thumb.js +3 -15
- package/lib/ImageViewer/fns/index.js +17 -27
- package/lib/ImageViewer/index.js +0 -3
- package/lib/ImageViewer/wrapeer/Container.js +2 -12
- package/lib/ImageViewer/wrapeer/Root.js +15 -27
- package/lib/ImageViewer/wrapeer/Wrapper.js +2 -9
- package/lib/ImageViewer/wrapeer/reducer.js +6 -16
- package/lib/Input/index.js +16 -34
- package/lib/InputNumber/index.js +9 -26
- package/lib/Layout/index.js +0 -4
- package/lib/LeftTable/index.js +25 -49
- package/lib/List/index.js +0 -4
- package/lib/LmDrag/LmDrag.js +0 -11
- package/lib/LmDrag/components/DndContainer.js +22 -47
- package/lib/LmDrag/components/sortableBox.js +2 -9
- package/lib/LmDrag/components/sortableItem.js +13 -22
- package/lib/LmDrag/index.js +0 -3
- package/lib/LmDrag/wrapper/Root.js +0 -7
- package/lib/LmEditTable/DndContainer.js +7 -16
- package/lib/LmEditTable/DragHandle.js +4 -12
- package/lib/LmEditTable/EditTable.js +153 -336
- package/lib/LmEditTable/index.js +0 -3
- package/lib/LmEditTable/sortableBox.js +1 -6
- package/lib/LmEditTable/sortableBoxCol.js +1 -6
- package/lib/LmEditTable/sortableItem.js +9 -20
- package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
- package/lib/LmEditTable/sortableItemCol.js +8 -20
- package/lib/LmEditTable/util.js +2 -19
- package/lib/LmFilter/Controls/CheckboxTags.js +2 -12
- package/lib/LmFilter/Controls/index.js +10 -24
- package/lib/LmFilter/LmFilter.js +4 -14
- package/lib/LmFilter/baseFilter/fuzzySearch.js +8 -18
- package/lib/LmFilter/baseFilter/index.js +1 -6
- package/lib/LmFilter/clearFilter/index.js +2 -9
- package/lib/LmFilter/complexFilter/drawer.js +47 -76
- package/lib/LmFilter/complexFilter/index.js +2 -14
- package/lib/LmFilter/complexFilter/valueDrawer.js +14 -46
- package/lib/LmFilter/components/CascaderFilter.js +27 -52
- package/lib/LmFilter/components/CheckboxFilter.js +39 -52
- package/lib/LmFilter/components/CustomSelectFilter.js +20 -38
- package/lib/LmFilter/components/DateFilter.js +23 -39
- package/lib/LmFilter/components/DropdownFIlter.js +49 -82
- package/lib/LmFilter/components/EmptyFilter.js +0 -5
- package/lib/LmFilter/components/InputFilter.js +5 -13
- package/lib/LmFilter/components/InputSearchClose.js +10 -22
- package/lib/LmFilter/components/SelectFilter.js +21 -37
- package/lib/LmFilter/components/index.js +23 -34
- package/lib/LmFilter/customFilter/drawer.js +37 -72
- package/lib/LmFilter/customFilter/index.js +11 -24
- package/lib/LmFilter/customFilter/saveModal.js +12 -36
- package/lib/LmFilter/customFilter/valueDrawer.js +14 -45
- package/lib/LmFilter/filterFns/index.js +129 -197
- package/lib/LmFilter/hooks/index.js +0 -2
- package/lib/LmFilter/hooks/useDelayedFn.js +2 -5
- package/lib/LmFilter/index.js +0 -3
- package/lib/LmFilter/localization.js +2 -1
- package/lib/LmFilter/utils.js +21 -47
- package/lib/LmFilter/wrapper/Filter.js +4 -13
- package/lib/LmFilter/wrapper/FilterContainer.js +1 -5
- package/lib/LmFilter/wrapper/FilterRoot.js +40 -62
- package/lib/LmFilter/wrapper/FilterWrapper.js +1 -5
- package/lib/LmImgList/LmImgList.js +0 -5
- package/lib/LmImgList/body/Banner.js +13 -22
- package/lib/LmImgList/body/Thumb.js +4 -16
- package/lib/LmImgList/fns/index.js +15 -24
- package/lib/LmImgList/index.js +0 -4
- package/lib/LmImgList/wrapper/Container.js +9 -21
- package/lib/LmImgList/wrapper/Root.js +13 -24
- package/lib/LmImgList/wrapper/Wrapper.js +0 -5
- package/lib/LmImgList/wrapper/reducer.js +6 -14
- package/lib/LmSelect/GhostSelect.js +99 -163
- package/lib/LmSelect/NormalSelect.js +20 -40
- package/lib/LmSelect/index.js +1 -14
- package/lib/LmSelect/useCheckboxOptions.js +17 -37
- package/lib/LmSelect/utils.js +18 -38
- package/lib/LmTable/Table.js +289 -460
- package/lib/LmTable/VList.js +109 -170
- package/lib/LmTable/autosize.js +16 -43
- package/lib/LmTable/chartUtil.js +4 -14
- package/lib/LmTable/common/index.js +1 -9
- package/lib/LmTable/components/Container/Container.js +14 -24
- package/lib/LmTable/components/Container/index.js +0 -1
- package/lib/LmTable/components/DndContainer.js +122 -215
- package/lib/LmTable/components/HeaderCol.js +10 -18
- package/lib/LmTable/components/Item/Item.js +20 -32
- package/lib/LmTable/components/Item/components/Action/Action.js +4 -14
- package/lib/LmTable/components/Item/components/Action/index.js +0 -1
- package/lib/LmTable/components/Item/components/Handle/index.js +0 -4
- package/lib/LmTable/components/Item/components/Remove/index.d.ts +1 -0
- package/lib/LmTable/components/Item/components/Remove/index.js +0 -4
- package/lib/LmTable/components/Item/components/index.js +0 -4
- package/lib/LmTable/components/Item/index.js +0 -2
- package/lib/LmTable/components/SortableBox.js +1 -6
- package/lib/LmTable/components/customRenderEmpty.js +1 -8
- package/lib/LmTable/components/inputDataEdit.js +3 -11
- package/lib/LmTable/components/sheelTableCell.js +32 -65
- package/lib/LmTable/components/tableChartsModal.js +12 -26
- package/lib/LmTable/context.js +0 -3
- package/lib/LmTable/detectElementResize.js +15 -48
- package/lib/LmTable/expression.js +2 -10
- package/lib/LmTable/hooks/useDndItems.js +19 -49
- package/lib/LmTable/hooks/useGroupDataSource.js +4 -12
- package/lib/LmTable/hooks/useRowSelectControllableValue.js +6 -20
- package/lib/LmTable/index.js +0 -3
- package/lib/LmTable/multipleContainersKeyboardCoordinates.js +5 -32
- package/lib/LmTable/resetConfig.js +8 -8
- package/lib/LmTable/testDemos/group.js +5 -21
- package/lib/LmTable/util.js +30 -90
- package/lib/LmTable/virTual/VirtualRow.js +14 -31
- package/lib/LmTable/virTual/VirtualTable.js +13 -17
- package/lib/LmTable/virTual/VirtualWrapper.js +7 -19
- package/lib/LmTable/virTual/context.js +2 -13
- package/lib/LmTable/virTual/index.js +0 -4
- package/lib/LmUpload/LmUpload.js +11 -22
- package/lib/LmUpload/UploadList/ItemPicture.js +5 -12
- package/lib/LmUpload/UploadList/ItemPictureCard.js +22 -43
- package/lib/LmUpload/UploadList/ItemText.js +4 -11
- package/lib/LmUpload/UploadList/RenderItem.js +1 -14
- package/lib/LmUpload/UploadList/index.js +10 -25
- package/lib/LmUpload/body/Progress.js +0 -5
- package/lib/LmUpload/body/UploadCore.js +7 -20
- package/lib/LmUpload/body/UploadPicture.js +2 -10
- package/lib/LmUpload/components/Crop.js +3 -9
- package/lib/LmUpload/components/Preview.js +7 -14
- package/lib/LmUpload/fns/index.js +57 -114
- package/lib/LmUpload/index.js +0 -3
- package/lib/LmUpload/utils.js +10 -24
- package/lib/LmUpload/view/index.js +0 -4
- package/lib/LmUpload/wrapper/Upload.js +1 -6
- package/lib/LmUpload/wrapper/UploadContainer.js +2 -11
- package/lib/LmUpload/wrapper/UploadRoot.js +14 -26
- package/lib/LmUpload/wrapper/UploadWrapper.js +1 -9
- package/lib/LmUpload/wrapper/reducer.js +6 -15
- package/lib/LoadingPage/index.js +1 -7
- package/lib/Locale/ar_EG.js +1 -6
- package/lib/Locale/az_AZ.js +1 -6
- package/lib/Locale/bg_BG.js +0 -6
- package/lib/Locale/bn_BD.js +1 -6
- package/lib/Locale/by_BY.js +1 -6
- package/lib/Locale/ca_ES.js +1 -6
- package/lib/Locale/cs_CZ.js +1 -6
- package/lib/Locale/da_DK.js +0 -6
- package/lib/Locale/de_DE.js +1 -6
- package/lib/Locale/default.js +1 -7
- package/lib/Locale/el_GR.js +0 -6
- package/lib/Locale/en_GB.js +1 -6
- package/lib/Locale/en_US.js +0 -3
- package/lib/Locale/es_ES.js +1 -6
- package/lib/Locale/et_EE.js +1 -6
- package/lib/Locale/fa_IR.js +1 -6
- package/lib/Locale/fi_FI.js +0 -6
- package/lib/Locale/fr_BE.js +0 -6
- package/lib/Locale/fr_CA.js +0 -6
- package/lib/Locale/fr_FR.js +1 -6
- package/lib/Locale/ga_IE.js +1 -6
- package/lib/Locale/gl_ES.js +1 -6
- package/lib/Locale/he_IL.js +1 -6
- package/lib/Locale/hi_IN.js +1 -6
- package/lib/Locale/hr_HR.js +1 -6
- package/lib/Locale/hu_HU.js +0 -6
- package/lib/Locale/id_ID.js +0 -6
- package/lib/Locale/is_IS.js +0 -6
- package/lib/Locale/it_IT.js +0 -6
- package/lib/Locale/ja_JP.js +1 -6
- package/lib/Locale/ka_GE.js +1 -6
- package/lib/Locale/kk_KZ.js +1 -6
- package/lib/Locale/km_KH.js +1 -6
- package/lib/Locale/kmr_IQ.js +0 -6
- package/lib/Locale/kn_IN.js +0 -6
- package/lib/Locale/ko_KR.js +1 -6
- package/lib/Locale/ku_IQ.js +0 -6
- package/lib/Locale/lt_LT.js +1 -6
- package/lib/Locale/lv_LV.js +0 -6
- package/lib/Locale/mk_MK.js +0 -6
- package/lib/Locale/ml_IN.js +1 -6
- package/lib/Locale/mn_MN.js +0 -6
- package/lib/Locale/ms_MY.js +0 -6
- package/lib/Locale/nb_NO.js +1 -6
- package/lib/Locale/ne_NP.js +0 -6
- package/lib/Locale/nl_BE.js +1 -6
- package/lib/Locale/nl_NL.js +1 -6
- package/lib/Locale/pl_PL.js +1 -6
- package/lib/Locale/pt_BR.js +1 -6
- package/lib/Locale/pt_PT.js +0 -6
- package/lib/Locale/ro_RO.js +1 -6
- package/lib/Locale/ru_RU.js +1 -6
- package/lib/Locale/si_LK.js +1 -6
- package/lib/Locale/sk_SK.js +1 -6
- package/lib/Locale/sl_SI.js +0 -6
- package/lib/Locale/sr_RS.js +1 -6
- package/lib/Locale/sv_SE.js +1 -6
- package/lib/Locale/ta_IN.js +0 -6
- package/lib/Locale/th_TH.js +1 -6
- package/lib/Locale/tk_TK.js +1 -6
- package/lib/Locale/tr_TR.js +1 -6
- package/lib/Locale/uk_UA.js +1 -6
- package/lib/Locale/ur_PK.js +1 -6
- package/lib/Locale/vi_VN.js +0 -6
- package/lib/Locale/zh_CN.js +1 -7
- package/lib/Locale/zh_HK.js +1 -6
- package/lib/Locale/zh_TW.js +1 -6
- package/lib/Mentions/index.js +0 -4
- package/lib/Menu/index.js +0 -4
- package/lib/Modal/index.js +8 -33
- package/lib/Modal/locale.js +0 -5
- package/lib/PageHeader/index.js +22 -60
- package/lib/Pagination/index.js +4 -20
- package/lib/Popconfirm/index.js +0 -4
- package/lib/Popover/index.d.ts +1 -1
- package/lib/Popover/index.js +5 -23
- package/lib/Progress/index.js +0 -4
- package/lib/QuickMenu/index.js +17 -54
- package/lib/Radio/index.js +9 -20
- package/lib/Rate/index.js +0 -4
- package/lib/Result/index.js +16 -41
- package/lib/Result/noFound.js +0 -4
- package/lib/Result/serverError.js +0 -4
- package/lib/Result/unauthorized.js +0 -4
- package/lib/Row/index.js +0 -2
- package/lib/Segmented/index.js +0 -4
- package/lib/Select/index.js +20 -41
- package/lib/Skeleton/index.js +0 -4
- package/lib/Slider/index.js +0 -4
- package/lib/Space/index.js +0 -4
- package/lib/Spin/index.js +0 -4
- package/lib/Statistic/index.js +0 -4
- package/lib/Steps/index.js +0 -4
- package/lib/Switch/index.js +3 -15
- package/lib/Table/index.js +0 -4
- package/lib/Tabs/TabPane.js +0 -3
- package/lib/Tabs/hooks/useAnimateConfig.js +0 -8
- package/lib/Tabs/hooks/useLegacyItems.js +3 -17
- package/lib/Tabs/index.js +15 -43
- package/lib/Tabs/index.old.js +4 -17
- package/lib/Tag/index.js +5 -20
- package/lib/TestTable/LmBox.js +0 -3
- package/lib/TestTable/index.js +0 -3
- package/lib/TimePicker/index.js +0 -4
- package/lib/Timeline/index.js +0 -4
- package/lib/Tooltip/index.d.ts +1 -1
- package/lib/Tooltip/index.js +34 -80
- package/lib/Transfer/index.js +0 -4
- package/lib/Tree/DirectoryTree.js +29 -74
- package/lib/Tree/Tree.js +14 -35
- package/lib/Tree/TreeIndex.js +0 -3
- package/lib/Tree/index.js +1 -11
- package/lib/Tree/utils/dictUtil.js +4 -24
- package/lib/Tree/utils/dropIndicator.d.ts +1 -0
- package/lib/Tree/utils/dropIndicator.js +5 -15
- package/lib/Tree/utils/iconUtil.js +2 -25
- package/lib/TreeSelect/index.js +15 -35
- package/lib/Typography/Base/Ellipsis.js +25 -58
- package/lib/Typography/Base/EllipsisTooltip.js +3 -12
- package/lib/Typography/Base/index.js +104 -200
- package/lib/Typography/Editable.js +21 -45
- package/lib/Typography/Link.js +4 -17
- package/lib/Typography/Paragraph.js +0 -7
- package/lib/Typography/Text.js +1 -16
- package/lib/Typography/Title.js +2 -18
- package/lib/Typography/Typography.js +11 -30
- package/lib/Typography/hooks/useMergedConfig.js +0 -5
- package/lib/Typography/hooks/useUpdatedEffect.js +1 -6
- package/lib/Typography/index.js +0 -9
- package/lib/Upload/index.js +2 -13
- package/lib/UploadOss/index.js +0 -4
- package/lib/UploadOss/uploadBtn.js +32 -54
- package/lib/UploadOss/uploadImg.js +58 -86
- package/lib/VirtualList/index.js +18 -27
- package/lib/_util/colors.js +2 -4
- package/lib/_util/domTarget.js +0 -6
- package/lib/_util/getDataOrAriaProps.js +0 -2
- package/lib/_util/getRenderPropValue.js +0 -5
- package/lib/_util/hooks/useFlexGapSupport.js +3 -11
- package/lib/_util/hooks/useForceUpdate.js +4 -10
- package/lib/_util/motion.js +0 -12
- package/lib/_util/placements.js +7 -12
- package/lib/_util/reactNode.js +0 -5
- package/lib/_util/responsiveObserve.js +0 -8
- package/lib/_util/statusUtils.js +0 -9
- package/lib/_util/styleChecker.js +6 -16
- package/lib/_util/throttleByAnimationFrame.js +0 -12
- package/lib/_util/transButton.js +3 -19
- package/lib/_util/type.js +0 -6
- package/lib/_util/warning.js +4 -10
- package/lib/hooks/index.js +0 -3
- package/lib/hooks/useEvent/index.js +4 -7
- package/lib/hooks/useFullscreen/index.js +7 -33
- package/lib/index.js +0 -89
- package/lib/locale-provider/LocaleReceiver.js +4 -20
- package/lib/locale-provider/ar_EG.js +0 -3
- package/lib/locale-provider/az_AZ.js +0 -3
- package/lib/locale-provider/bg_BG.js +0 -3
- package/lib/locale-provider/bn_BD.js +0 -3
- package/lib/locale-provider/by_BY.js +0 -3
- package/lib/locale-provider/ca_ES.js +0 -3
- package/lib/locale-provider/context.js +0 -2
- package/lib/locale-provider/cs_CZ.js +0 -3
- package/lib/locale-provider/da_DK.js +0 -3
- package/lib/locale-provider/de_DE.js +0 -3
- package/lib/locale-provider/default.js +0 -3
- package/lib/locale-provider/el_GR.js +0 -3
- package/lib/locale-provider/en_GB.js +0 -3
- package/lib/locale-provider/en_US.js +0 -3
- package/lib/locale-provider/es_ES.js +0 -3
- package/lib/locale-provider/et_EE.js +0 -3
- package/lib/locale-provider/fa_IR.js +0 -3
- package/lib/locale-provider/fi_FI.js +0 -3
- package/lib/locale-provider/fr_BE.js +0 -3
- package/lib/locale-provider/fr_CA.js +0 -3
- package/lib/locale-provider/fr_FR.js +0 -3
- package/lib/locale-provider/ga_IE.js +0 -3
- package/lib/locale-provider/gl_ES.js +0 -3
- package/lib/locale-provider/he_IL.js +0 -3
- package/lib/locale-provider/hi_IN.js +0 -3
- package/lib/locale-provider/hr_HR.js +0 -3
- package/lib/locale-provider/hu_HU.js +0 -3
- package/lib/locale-provider/hy_AM.js +0 -3
- package/lib/locale-provider/id_ID.js +0 -3
- package/lib/locale-provider/index.d.ts +2 -2
- package/lib/locale-provider/index.js +2 -21
- package/lib/locale-provider/is_IS.js +0 -3
- package/lib/locale-provider/it_IT.js +0 -3
- package/lib/locale-provider/ja_JP.js +0 -3
- package/lib/locale-provider/ka_GE.js +0 -3
- package/lib/locale-provider/kk_KZ.js +0 -3
- package/lib/locale-provider/km_KH.js +0 -3
- package/lib/locale-provider/kmr_IQ.js +0 -3
- package/lib/locale-provider/kn_IN.js +0 -3
- package/lib/locale-provider/ko_KR.js +0 -3
- package/lib/locale-provider/ku_IQ.js +0 -3
- package/lib/locale-provider/lt_LT.js +0 -3
- package/lib/locale-provider/lv_LV.js +0 -3
- package/lib/locale-provider/mk_MK.js +0 -3
- package/lib/locale-provider/ml_IN.js +0 -3
- package/lib/locale-provider/mn_MN.js +0 -3
- package/lib/locale-provider/ms_MY.js +0 -3
- package/lib/locale-provider/nb_NO.js +0 -3
- package/lib/locale-provider/ne_NP.js +0 -3
- package/lib/locale-provider/nl_BE.js +0 -3
- package/lib/locale-provider/nl_NL.js +0 -3
- package/lib/locale-provider/pl_PL.js +0 -3
- package/lib/locale-provider/pt_BR.js +0 -3
- package/lib/locale-provider/pt_PT.js +0 -3
- package/lib/locale-provider/ro_RO.js +0 -3
- package/lib/locale-provider/ru_RU.js +0 -3
- package/lib/locale-provider/si_LK.js +0 -3
- package/lib/locale-provider/sk_SK.js +0 -3
- package/lib/locale-provider/sl_SI.js +0 -3
- package/lib/locale-provider/sr_RS.js +0 -3
- package/lib/locale-provider/sv_SE.js +0 -3
- package/lib/locale-provider/ta_IN.js +0 -3
- package/lib/locale-provider/th_TH.js +0 -3
- package/lib/locale-provider/tk_TK.js +0 -3
- package/lib/locale-provider/tr_TR.js +0 -3
- package/lib/locale-provider/uk_UA.js +0 -3
- package/lib/locale-provider/ur_PK.js +0 -3
- package/lib/locale-provider/vi_VN.js +0 -3
- package/lib/locale-provider/zh_CN.js +0 -3
- package/lib/locale-provider/zh_HK.js +0 -3
- package/lib/locale-provider/zh_TW.js +0 -3
- package/lib/message/hooks/useMessage.js +8 -27
- package/lib/message/index.js +8 -53
- package/lib/notification/hooks/useNotification.js +8 -19
- package/lib/notification/index.js +31 -80
- package/lib/services/newRequest.js +18 -47
- package/lib/services/utils.js +0 -15
- package/package.json +1 -1
- package/CHANGELOG.md +0 -1164
package/lib/LmTable/VList.js
CHANGED
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.scrollTo = exports.VList = void 0;
|
|
11
|
-
|
|
12
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
-
|
|
14
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
-
|
|
16
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
|
-
|
|
18
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
19
|
-
|
|
20
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
|
-
|
|
22
14
|
var _lodash = require("lodash");
|
|
23
|
-
|
|
24
15
|
var _reactResizable = require("react-resizable");
|
|
25
|
-
|
|
26
16
|
var _context = _interopRequireDefault(require("./context"));
|
|
27
|
-
|
|
28
17
|
var _excluded = ["width", "onResize", "children"],
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
_excluded2 = ["children"],
|
|
19
|
+
_excluded3 = ["children", "style"],
|
|
20
|
+
_excluded4 = ["children"],
|
|
21
|
+
_excluded5 = ["style", "children"],
|
|
22
|
+
_excluded6 = ["width"];
|
|
34
23
|
// ===============reducer ============== //
|
|
35
24
|
var initialState = {
|
|
36
25
|
// 行高度
|
|
@@ -40,65 +29,57 @@ var initialState = {
|
|
|
40
29
|
// 总行数
|
|
41
30
|
totalLen: 0
|
|
42
31
|
};
|
|
43
|
-
|
|
44
32
|
function reducer(state, action) {
|
|
45
33
|
var curScrollTop = action.curScrollTop,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
curScrollLeft = action.curScrollLeft,
|
|
35
|
+
rowHeight = action.rowHeight,
|
|
36
|
+
totalLen = action.totalLen,
|
|
37
|
+
ifScrollTopClear = action.ifScrollTopClear,
|
|
38
|
+
isScrolling = action.isScrolling;
|
|
51
39
|
var stateScrollTop = state.curScrollTop;
|
|
52
|
-
|
|
53
40
|
switch (action.type) {
|
|
54
41
|
// 滚动条是否滚动中
|
|
55
42
|
case 'changeScrolling':
|
|
56
43
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
57
44
|
isScrolling: isScrolling
|
|
58
45
|
});
|
|
59
|
-
|
|
60
46
|
case 'changeTrs':
|
|
61
47
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
62
48
|
curScrollTop: curScrollTop
|
|
63
49
|
});
|
|
64
50
|
// 滚动横向滚动条 即 改变渲染的列表operate
|
|
65
|
-
|
|
66
51
|
case 'changeOperate':
|
|
67
52
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
68
53
|
curScrollLeft: curScrollLeft
|
|
69
54
|
});
|
|
70
55
|
// 初始化每行的高度, 表格总高度, 渲染的条数
|
|
71
|
-
|
|
72
56
|
case 'initHeight':
|
|
73
57
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
74
58
|
rowHeight: rowHeight
|
|
75
59
|
});
|
|
76
60
|
// 更改totalLen
|
|
77
|
-
|
|
78
61
|
case 'changeTotalLen':
|
|
79
62
|
if (totalLen === 0) {
|
|
80
63
|
stateScrollTop = 0;
|
|
81
64
|
}
|
|
82
|
-
|
|
83
65
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
84
66
|
totalLen: totalLen,
|
|
85
67
|
curScrollTop: stateScrollTop
|
|
86
68
|
});
|
|
87
|
-
|
|
88
69
|
case 'reset':
|
|
89
70
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
90
71
|
curScrollTop: ifScrollTopClear ? 0 : state.curScrollTop
|
|
91
72
|
});
|
|
92
|
-
|
|
93
73
|
default:
|
|
94
74
|
throw new Error();
|
|
95
75
|
}
|
|
96
|
-
}
|
|
97
|
-
|
|
76
|
+
}
|
|
98
77
|
|
|
78
|
+
// ============== 全局常量 ================== //
|
|
99
79
|
var DEFAULT_VID = 'vtable';
|
|
100
|
-
var vidMap = new Map();
|
|
80
|
+
var vidMap = new Map();
|
|
101
81
|
|
|
82
|
+
// =============== context ============== //
|
|
102
83
|
var ScrollContext = /*#__PURE__*/(0, _react.createContext)({
|
|
103
84
|
dispatch: undefined,
|
|
104
85
|
renderLen: 1,
|
|
@@ -109,25 +90,24 @@ var ScrollContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
109
90
|
totalLen: 0,
|
|
110
91
|
vid: DEFAULT_VID
|
|
111
92
|
});
|
|
112
|
-
var HeaderContext = /*#__PURE__*/(0, _react.createContext)();
|
|
93
|
+
var HeaderContext = /*#__PURE__*/(0, _react.createContext)();
|
|
113
94
|
|
|
95
|
+
// ============= 组件 =================== //
|
|
114
96
|
var HeaderWrapper = function HeaderWrapper(props) {
|
|
115
97
|
var _useState = (0, _react.useState)(),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
98
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
99
|
+
useKeys = _useState2[0],
|
|
100
|
+
setKeys = _useState2[1];
|
|
120
101
|
var _useContext = (0, _react.useContext)(_context.default),
|
|
121
|
-
|
|
122
|
-
|
|
102
|
+
width = _useContext.width;
|
|
123
103
|
var changeKeys = function changeKeys() {
|
|
124
104
|
setKeys(Date.now());
|
|
125
105
|
};
|
|
126
|
-
|
|
127
106
|
(0, _react.useEffect)(function () {
|
|
128
107
|
changeKeys();
|
|
129
|
-
}, [width]);
|
|
108
|
+
}, [width]);
|
|
130
109
|
|
|
110
|
+
// console.log('每列的偏移', props.children[0].props.stickyOffsets);
|
|
131
111
|
return /*#__PURE__*/_react.default.createElement(HeaderContext.Provider, {
|
|
132
112
|
value: {
|
|
133
113
|
changeKeys: changeKeys
|
|
@@ -136,42 +116,35 @@ var HeaderWrapper = function HeaderWrapper(props) {
|
|
|
136
116
|
key: useKeys
|
|
137
117
|
}, props)));
|
|
138
118
|
};
|
|
139
|
-
|
|
140
119
|
var HeaderCell = function HeaderCell(props) {
|
|
141
120
|
var width = props.width,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
121
|
+
onResize = props.onResize,
|
|
122
|
+
children = props.children,
|
|
123
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
146
124
|
var _useState3 = (0, _react.useState)(width || 0),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
125
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
126
|
+
useWidth = _useState4[0],
|
|
127
|
+
setWidth = _useState4[1];
|
|
151
128
|
var _useContext2 = (0, _react.useContext)(HeaderContext),
|
|
152
|
-
|
|
153
|
-
|
|
129
|
+
changeKeys = _useContext2.changeKeys;
|
|
154
130
|
var handleResize = function handleResize(e, _ref) {
|
|
155
131
|
var size = _ref.size;
|
|
156
132
|
var nValue = size.width;
|
|
157
133
|
setWidth(nValue);
|
|
158
134
|
};
|
|
159
|
-
|
|
160
135
|
var handleResizeStop = function handleResizeStop(e, _ref2) {
|
|
161
136
|
var size = _ref2.size;
|
|
162
|
-
var nValue = size.width;
|
|
163
|
-
|
|
164
|
-
onResize === null || onResize === void 0 ? void 0 : onResize(width, nValue);
|
|
165
|
-
|
|
137
|
+
var nValue = size.width;
|
|
138
|
+
// const sc = width - nValue > 0 ? width - nValue : 1;
|
|
139
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(width, nValue);
|
|
140
|
+
// 触发重新渲染列头单元格,重新计算拖拽位置
|
|
166
141
|
changeKeys === null || changeKeys === void 0 ? void 0 : changeKeys();
|
|
167
142
|
};
|
|
168
|
-
|
|
169
143
|
if (!width) {
|
|
170
144
|
return /*#__PURE__*/_react.default.createElement("th", restProps, /*#__PURE__*/_react.default.createElement("div", {
|
|
171
145
|
className: "text-overflow"
|
|
172
146
|
}, children));
|
|
173
147
|
}
|
|
174
|
-
|
|
175
148
|
return /*#__PURE__*/_react.default.createElement("th", restProps, /*#__PURE__*/_react.default.createElement("div", {
|
|
176
149
|
className: "text-overflow"
|
|
177
150
|
}, children), /*#__PURE__*/_react.default.createElement(_reactResizable.ResizableBox, {
|
|
@@ -186,35 +159,31 @@ var HeaderCell = function HeaderCell(props) {
|
|
|
186
159
|
}),
|
|
187
160
|
onResize: handleResize,
|
|
188
161
|
onResizeStop: handleResizeStop,
|
|
189
|
-
minConstraints: [40, 0]
|
|
190
|
-
|
|
162
|
+
minConstraints: [40, 0]
|
|
163
|
+
// draggableOpts={{ enableUserSelectHack: false }}
|
|
191
164
|
}));
|
|
192
165
|
};
|
|
193
166
|
|
|
194
167
|
var VCell = function VCell(props) {
|
|
195
168
|
var children = props.children,
|
|
196
|
-
|
|
169
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
197
170
|
return /*#__PURE__*/_react.default.createElement("td", restProps, children);
|
|
198
171
|
};
|
|
199
|
-
|
|
200
172
|
var VRow = function VRow(props, ref) {
|
|
201
173
|
var _useContext3 = (0, _react.useContext)(ScrollContext),
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
174
|
+
dispatch = _useContext3.dispatch,
|
|
175
|
+
rowHeight = _useContext3.rowHeight,
|
|
176
|
+
totalLen = _useContext3.totalLen,
|
|
177
|
+
vid = _useContext3.vid;
|
|
207
178
|
var children = props.children,
|
|
208
|
-
|
|
209
|
-
|
|
179
|
+
style = props.style,
|
|
180
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded3);
|
|
210
181
|
var trRef = (0, _react.useRef)(null);
|
|
211
182
|
(0, _react.useEffect)(function () {
|
|
212
183
|
var initHeight = function initHeight(tempRef) {
|
|
213
184
|
var _tempRef$current;
|
|
214
|
-
|
|
215
185
|
if ((tempRef === null || tempRef === void 0 ? void 0 : (_tempRef$current = tempRef.current) === null || _tempRef$current === void 0 ? void 0 : _tempRef$current.offsetHeight) && !rowHeight && totalLen) {
|
|
216
186
|
var _tempRef$current$offs, _tempRef$current2;
|
|
217
|
-
|
|
218
187
|
var tempRowHeight = (_tempRef$current$offs = tempRef === null || tempRef === void 0 ? void 0 : (_tempRef$current2 = tempRef.current) === null || _tempRef$current2 === void 0 ? void 0 : _tempRef$current2.offsetHeight) !== null && _tempRef$current$offs !== void 0 ? _tempRef$current$offs : 0;
|
|
219
188
|
vidMap.set(vid, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, vidMap.get(vid)), {}, {
|
|
220
189
|
rowItemHeight: tempRowHeight
|
|
@@ -225,7 +194,6 @@ var VRow = function VRow(props, ref) {
|
|
|
225
194
|
});
|
|
226
195
|
}
|
|
227
196
|
};
|
|
228
|
-
|
|
229
197
|
initHeight(Object.prototype.hasOwnProperty.call(ref, 'current') ? ref : trRef);
|
|
230
198
|
}, [trRef, dispatch, rowHeight, totalLen, ref, vid]);
|
|
231
199
|
return /*#__PURE__*/_react.default.createElement("tr", (0, _extends2.default)({}, restProps, {
|
|
@@ -236,24 +204,20 @@ var VRow = function VRow(props, ref) {
|
|
|
236
204
|
})
|
|
237
205
|
}), children);
|
|
238
206
|
};
|
|
239
|
-
|
|
240
207
|
var VWrapper = function VWrapper(props) {
|
|
241
208
|
var children = props.children,
|
|
242
|
-
|
|
243
|
-
|
|
209
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded4);
|
|
244
210
|
var _useContext4 = (0, _react.useContext)(ScrollContext),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
211
|
+
renderLen = _useContext4.renderLen,
|
|
212
|
+
start = _useContext4.start,
|
|
213
|
+
dispatch = _useContext4.dispatch,
|
|
214
|
+
vid = _useContext4.vid,
|
|
215
|
+
totalLen = _useContext4.totalLen;
|
|
251
216
|
var contents = (0, _react.useMemo)(function () {
|
|
252
217
|
return children[1];
|
|
253
218
|
}, [children]);
|
|
254
219
|
var contentsLen = (0, _react.useMemo)(function () {
|
|
255
220
|
var _contents$length;
|
|
256
|
-
|
|
257
221
|
return (_contents$length = contents === null || contents === void 0 ? void 0 : contents.length) !== null && _contents$length !== void 0 ? _contents$length : 0;
|
|
258
222
|
}, [contents]);
|
|
259
223
|
(0, _react.useEffect)(function () {
|
|
@@ -265,9 +229,9 @@ var VWrapper = function VWrapper(props) {
|
|
|
265
229
|
}
|
|
266
230
|
}, [contentsLen, dispatch, vid, totalLen]);
|
|
267
231
|
var tempNode = null;
|
|
268
|
-
|
|
269
232
|
if (Array.isArray(contents) && contents.length) {
|
|
270
|
-
tempNode = [children[0], contents.slice(start, start + (renderLen !== null && renderLen !== void 0 ? renderLen : 1))
|
|
233
|
+
tempNode = [children[0], contents.slice(start, start + (renderLen !== null && renderLen !== void 0 ? renderLen : 1))
|
|
234
|
+
// contents.slice(start, start + (renderLen ?? 1)).map((item) => {
|
|
271
235
|
// if (Array.isArray(item)) {
|
|
272
236
|
// // 兼容antd v4.3.5 --- rc-table 7.8.1及以下
|
|
273
237
|
// return item[0];
|
|
@@ -279,40 +243,34 @@ var VWrapper = function VWrapper(props) {
|
|
|
279
243
|
} else {
|
|
280
244
|
tempNode = children;
|
|
281
245
|
}
|
|
282
|
-
|
|
283
246
|
return /*#__PURE__*/_react.default.createElement("tbody", restProps, tempNode);
|
|
284
247
|
};
|
|
285
|
-
|
|
286
248
|
var VTable = function VTable(props, otherParams) {
|
|
287
249
|
var _children$1$props$dat, _children$, _children$$props, _children$$props$data;
|
|
288
|
-
|
|
289
250
|
var style = props.style,
|
|
290
|
-
|
|
291
|
-
|
|
251
|
+
children = props.children,
|
|
252
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded5);
|
|
292
253
|
var width = style.width,
|
|
293
|
-
|
|
294
|
-
|
|
254
|
+
restStyle = (0, _objectWithoutProperties2.default)(style, _excluded6);
|
|
295
255
|
var _ref3 = otherParams !== null && otherParams !== void 0 ? otherParams : {},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
256
|
+
vid = _ref3.vid,
|
|
257
|
+
scrollY = _ref3.scrollY,
|
|
258
|
+
reachEnd = _ref3.reachEnd,
|
|
259
|
+
onScroll = _ref3.onScroll,
|
|
260
|
+
resetScrollTopWhenDataChange = _ref3.resetScrollTopWhenDataChange;
|
|
302
261
|
var _useReducer = (0, _react.useReducer)(reducer, initialState),
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
262
|
+
_useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),
|
|
263
|
+
state = _useReducer2[0],
|
|
264
|
+
dispatch = _useReducer2[1];
|
|
307
265
|
var wrapTableRef = (0, _react.useRef)(null);
|
|
308
266
|
var tableRef = (0, _react.useRef)(null);
|
|
309
|
-
var ifChangeRef = (0, _react.useRef)(false);
|
|
267
|
+
var ifChangeRef = (0, _react.useRef)(false);
|
|
310
268
|
|
|
269
|
+
// 数据的总条数
|
|
311
270
|
var _useState5 = (0, _react.useState)((_children$1$props$dat = (_children$ = children[1]) === null || _children$ === void 0 ? void 0 : (_children$$props = _children$.props) === null || _children$$props === void 0 ? void 0 : (_children$$props$data = _children$$props.data) === null || _children$$props$data === void 0 ? void 0 : _children$$props$data.length) !== null && _children$1$props$dat !== void 0 ? _children$1$props$dat : 0),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
271
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
272
|
+
totalLen = _useState6[0],
|
|
273
|
+
setTotalLen = _useState6[1];
|
|
316
274
|
(0, _react.useEffect)(function () {
|
|
317
275
|
setTotalLen(state.totalLen);
|
|
318
276
|
}, [state.totalLen]);
|
|
@@ -320,103 +278,97 @@ var VTable = function VTable(props, otherParams) {
|
|
|
320
278
|
return function () {
|
|
321
279
|
vidMap.delete(vid);
|
|
322
280
|
};
|
|
323
|
-
}, [vid]);
|
|
281
|
+
}, [vid]);
|
|
324
282
|
|
|
283
|
+
// 数据变更
|
|
325
284
|
(0, _react.useEffect)(function () {
|
|
326
285
|
var _children$2, _children$2$props, _children$2$props$dat;
|
|
327
|
-
|
|
328
286
|
ifChangeRef.current = true;
|
|
329
|
-
|
|
330
287
|
if ((0, _lodash.isNumber)((_children$2 = children[1]) === null || _children$2 === void 0 ? void 0 : (_children$2$props = _children$2.props) === null || _children$2$props === void 0 ? void 0 : (_children$2$props$dat = _children$2$props.data) === null || _children$2$props$dat === void 0 ? void 0 : _children$2$props$dat.length)) {
|
|
331
288
|
var _children$1$props$dat2, _children$3, _children$3$props, _children$3$props$dat;
|
|
332
|
-
|
|
333
289
|
dispatch({
|
|
334
290
|
type: 'changeTotalLen',
|
|
335
291
|
totalLen: (_children$1$props$dat2 = (_children$3 = children[1]) === null || _children$3 === void 0 ? void 0 : (_children$3$props = _children$3.props) === null || _children$3$props === void 0 ? void 0 : (_children$3$props$dat = _children$3$props.data) === null || _children$3$props$dat === void 0 ? void 0 : _children$3$props$dat.length) !== null && _children$1$props$dat2 !== void 0 ? _children$1$props$dat2 : 0
|
|
336
292
|
});
|
|
337
293
|
}
|
|
338
|
-
}, [children[1].props.data]);
|
|
294
|
+
}, [children[1].props.data]);
|
|
339
295
|
|
|
296
|
+
// table总高度
|
|
340
297
|
var tableHeight = (0, _react.useMemo)(function () {
|
|
341
298
|
var temp = 'auto';
|
|
342
|
-
|
|
343
299
|
if (state.rowHeight && totalLen) {
|
|
344
300
|
temp = state.rowHeight * totalLen;
|
|
345
301
|
}
|
|
346
|
-
|
|
347
302
|
return temp;
|
|
348
|
-
}, [state.rowHeight, totalLen]);
|
|
303
|
+
}, [state.rowHeight, totalLen]);
|
|
349
304
|
|
|
305
|
+
// table的scrollY值
|
|
350
306
|
var _useState7 = (0, _react.useState)(0),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
307
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
308
|
+
tableScrollY = _useState8[0],
|
|
309
|
+
setTableScrollY = _useState8[1];
|
|
355
310
|
|
|
311
|
+
// tableScrollY 随scrollY / tableHeight 进行变更
|
|
356
312
|
(0, _react.useEffect)(function () {
|
|
357
313
|
var temp = 0;
|
|
358
|
-
|
|
359
314
|
if (typeof scrollY === 'string') {
|
|
360
315
|
var _wrapTableRef$current, _wrapTableRef$current2, _wrapTableRef$current3;
|
|
361
|
-
|
|
362
316
|
temp = (_wrapTableRef$current = (_wrapTableRef$current2 = wrapTableRef.current) === null || _wrapTableRef$current2 === void 0 ? void 0 : (_wrapTableRef$current3 = _wrapTableRef$current2.parentNode) === null || _wrapTableRef$current3 === void 0 ? void 0 : _wrapTableRef$current3.offsetHeight) !== null && _wrapTableRef$current !== void 0 ? _wrapTableRef$current : 0;
|
|
363
317
|
} else {
|
|
364
318
|
temp = scrollY;
|
|
365
|
-
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// if (isNumber(tableHeight) && tableHeight < temp) {
|
|
366
322
|
// temp = tableHeight;
|
|
367
323
|
// }
|
|
368
|
-
// 处理tableScrollY <= 0的情况
|
|
369
|
-
|
|
370
324
|
|
|
325
|
+
// 处理tableScrollY <= 0的情况
|
|
371
326
|
if (temp <= 0) {
|
|
372
327
|
temp = 0;
|
|
373
328
|
}
|
|
374
|
-
|
|
375
329
|
setTableScrollY(temp);
|
|
376
|
-
}, [scrollY, tableHeight]);
|
|
330
|
+
}, [scrollY, tableHeight]);
|
|
377
331
|
|
|
332
|
+
// 渲染的条数
|
|
378
333
|
var renderLen = (0, _react.useMemo)(function () {
|
|
379
334
|
var temp = 1;
|
|
380
|
-
|
|
381
335
|
if (state.rowHeight && totalLen && tableScrollY) {
|
|
382
336
|
if (tableScrollY <= 0) {
|
|
383
337
|
temp = 0;
|
|
384
338
|
} else {
|
|
385
|
-
var tempRenderLen = (tableScrollY / state.rowHeight || 0) + 1 + 20;
|
|
386
|
-
|
|
339
|
+
var tempRenderLen = (tableScrollY / state.rowHeight || 0) + 1 + 20;
|
|
340
|
+
// temp = tempRenderLen > totalLen ? totalLen : tempRenderLen;
|
|
387
341
|
temp = tempRenderLen;
|
|
388
342
|
}
|
|
389
343
|
}
|
|
390
|
-
|
|
391
344
|
return temp;
|
|
392
|
-
}, [state.rowHeight, totalLen, tableScrollY]);
|
|
345
|
+
}, [state.rowHeight, totalLen, tableScrollY]);
|
|
393
346
|
|
|
394
|
-
|
|
347
|
+
// 渲染中的第一条
|
|
348
|
+
var start = state.rowHeight ? state.curScrollTop / state.rowHeight || 0 : 0;
|
|
395
349
|
|
|
396
|
-
|
|
350
|
+
// 偏移量
|
|
351
|
+
var offsetStart = state.rowHeight ? state.curScrollTop % state.rowHeight : 0;
|
|
397
352
|
|
|
353
|
+
// 用来优化向上滚动出现的空白
|
|
398
354
|
if (state.curScrollTop && state.rowHeight && state.curScrollTop > state.rowHeight) {
|
|
399
355
|
start -= 1;
|
|
400
356
|
offsetStart += state.rowHeight;
|
|
401
357
|
} else {
|
|
402
358
|
start = 0;
|
|
403
|
-
}
|
|
404
|
-
|
|
359
|
+
}
|
|
405
360
|
|
|
361
|
+
// 数据变更 操作scrollTop
|
|
406
362
|
(0, _react.useEffect)(function () {
|
|
407
363
|
var _wrapTableRef$current4;
|
|
408
|
-
|
|
409
364
|
var scrollNode = (_wrapTableRef$current4 = wrapTableRef.current) === null || _wrapTableRef$current4 === void 0 ? void 0 : _wrapTableRef$current4.parentNode;
|
|
410
|
-
|
|
411
365
|
if (ifChangeRef === null || ifChangeRef === void 0 ? void 0 : ifChangeRef.current) {
|
|
412
366
|
ifChangeRef.current = false;
|
|
413
|
-
|
|
414
367
|
if (resetScrollTopWhenDataChange) {
|
|
415
368
|
// 重置scrollTop
|
|
416
369
|
if (scrollNode) {
|
|
417
370
|
scrollNode.scrollTop = 0;
|
|
418
371
|
}
|
|
419
|
-
|
|
420
372
|
dispatch({
|
|
421
373
|
type: 'reset',
|
|
422
374
|
ifScrollTopClear: true
|
|
@@ -429,7 +381,6 @@ var VTable = function VTable(props, otherParams) {
|
|
|
429
381
|
});
|
|
430
382
|
}
|
|
431
383
|
}
|
|
432
|
-
|
|
433
384
|
if (vidMap.has(vid)) {
|
|
434
385
|
vidMap.set(vid, {
|
|
435
386
|
scrollNode: scrollNode
|
|
@@ -438,25 +389,23 @@ var VTable = function VTable(props, otherParams) {
|
|
|
438
389
|
}, [totalLen, resetScrollTopWhenDataChange, vid, children]);
|
|
439
390
|
(0, _react.useEffect)(function () {
|
|
440
391
|
var _wrapTableRef$current5;
|
|
441
|
-
|
|
442
392
|
var timer = null;
|
|
443
393
|
var timeout = 100;
|
|
444
394
|
var throttleScroll = (0, _lodash.throttle)(function (e) {
|
|
445
395
|
var _e$target$scrollLeft, _e$target, _e$target$scrollTop, _e$target2, _e$target$scrollHeigh, _e$target3, _e$target$clientHeigh, _e$target4;
|
|
446
|
-
|
|
447
396
|
var scrollLeft = (_e$target$scrollLeft = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.scrollLeft) !== null && _e$target$scrollLeft !== void 0 ? _e$target$scrollLeft : 0;
|
|
448
397
|
var scrollTop = (_e$target$scrollTop = e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.scrollTop) !== null && _e$target$scrollTop !== void 0 ? _e$target$scrollTop : 0;
|
|
449
398
|
var scrollHeight = (_e$target$scrollHeigh = e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.scrollHeight) !== null && _e$target$scrollHeigh !== void 0 ? _e$target$scrollHeigh : 0;
|
|
450
|
-
var clientHeight = (_e$target$clientHeigh = e === null || e === void 0 ? void 0 : (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : _e$target4.clientHeight) !== null && _e$target$clientHeigh !== void 0 ? _e$target$clientHeigh : 0;
|
|
399
|
+
var clientHeight = (_e$target$clientHeigh = e === null || e === void 0 ? void 0 : (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : _e$target4.clientHeight) !== null && _e$target$clientHeigh !== void 0 ? _e$target$clientHeigh : 0;
|
|
451
400
|
|
|
452
|
-
|
|
401
|
+
// 到底了 没有滚动条就不会触发reachEnd. 建议设置scrolly高度少点或者数据量多点.
|
|
402
|
+
if (scrollTop === scrollHeight) {
|
|
403
|
+
// reachEnd && reachEnd()
|
|
453
404
|
} else if (scrollTop + clientHeight >= scrollHeight) {
|
|
454
405
|
// 有滚动条的情况
|
|
455
406
|
reachEnd && reachEnd();
|
|
456
407
|
}
|
|
457
|
-
|
|
458
408
|
onScroll && onScroll(scrollTop, scrollLeft);
|
|
459
|
-
|
|
460
409
|
if (!timer) {
|
|
461
410
|
dispatch({
|
|
462
411
|
type: 'changeScrolling',
|
|
@@ -466,7 +415,6 @@ var VTable = function VTable(props, otherParams) {
|
|
|
466
415
|
clearTimeout(timer);
|
|
467
416
|
timer = null;
|
|
468
417
|
}
|
|
469
|
-
|
|
470
418
|
timer = setTimeout(function () {
|
|
471
419
|
dispatch({
|
|
472
420
|
type: 'changeScrolling',
|
|
@@ -488,11 +436,9 @@ var VTable = function VTable(props, otherParams) {
|
|
|
488
436
|
});
|
|
489
437
|
}, 60);
|
|
490
438
|
var ref = wrapTableRef === null || wrapTableRef === void 0 ? void 0 : (_wrapTableRef$current5 = wrapTableRef.current) === null || _wrapTableRef$current5 === void 0 ? void 0 : _wrapTableRef$current5.parentNode;
|
|
491
|
-
|
|
492
439
|
if (ref) {
|
|
493
440
|
ref.addEventListener('scroll', throttleScroll);
|
|
494
441
|
}
|
|
495
|
-
|
|
496
442
|
return function () {
|
|
497
443
|
ref.removeEventListener('scroll', throttleScroll);
|
|
498
444
|
};
|
|
@@ -527,23 +473,21 @@ var VTable = function VTable(props, otherParams) {
|
|
|
527
473
|
pointerEvents: state.isScrolling ? 'none' : 'initial'
|
|
528
474
|
})
|
|
529
475
|
}), children)));
|
|
530
|
-
};
|
|
531
|
-
|
|
476
|
+
};
|
|
532
477
|
|
|
478
|
+
// ================导出===================
|
|
533
479
|
var VList = function VList(props) {
|
|
534
480
|
var _props$vid = props.vid,
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
481
|
+
vid = _props$vid === void 0 ? DEFAULT_VID : _props$vid,
|
|
482
|
+
height = props.height,
|
|
483
|
+
onReachEnd = props.onReachEnd,
|
|
484
|
+
onScroll = props.onScroll,
|
|
485
|
+
_props$resetTopWhenDa = props.resetTopWhenDataChange,
|
|
486
|
+
resetTopWhenDataChange = _props$resetTopWhenDa === void 0 ? true : _props$resetTopWhenDa;
|
|
541
487
|
var resetScrollTopWhenDataChange = onReachEnd ? false : resetTopWhenDataChange;
|
|
542
|
-
|
|
543
488
|
if (!vidMap.has(vid)) {
|
|
544
489
|
vidMap.set(vid, {});
|
|
545
490
|
}
|
|
546
|
-
|
|
547
491
|
return {
|
|
548
492
|
table: function table(p) {
|
|
549
493
|
return VTable(p, {
|
|
@@ -567,19 +511,15 @@ var VList = function VList(props) {
|
|
|
567
511
|
}
|
|
568
512
|
};
|
|
569
513
|
};
|
|
570
|
-
|
|
571
514
|
exports.VList = VList;
|
|
572
|
-
|
|
573
515
|
var scrollTo = function scrollTo(option) {
|
|
574
516
|
var row = option.row,
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
517
|
+
y = option.y,
|
|
518
|
+
_option$vid = option.vid,
|
|
519
|
+
vid = _option$vid === void 0 ? DEFAULT_VID : _option$vid;
|
|
579
520
|
var _vidMap$get = vidMap.get(vid),
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
521
|
+
scrollNode = _vidMap$get.scrollNode,
|
|
522
|
+
rowItemHeight = _vidMap$get.rowItemHeight;
|
|
583
523
|
if (row) {
|
|
584
524
|
if (row - 1 > 0) {
|
|
585
525
|
scrollNode.scrollTop = (row - 1) * (rowItemHeight !== null && rowItemHeight !== void 0 ? rowItemHeight : 0);
|
|
@@ -590,5 +530,4 @@ var scrollTo = function scrollTo(option) {
|
|
|
590
530
|
scrollNode.scrollTop = y !== null && y !== void 0 ? y : 0;
|
|
591
531
|
}
|
|
592
532
|
};
|
|
593
|
-
|
|
594
533
|
exports.scrollTo = scrollTo;
|