linkmore-design 1.1.30 → 1.1.32
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/Affix/index.d.ts +1 -1
- package/dist/Affix/utils.d.ts +1 -1
- 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/Approval/type.d.ts +1 -1
- package/dist/AutoComplete/index.d.ts +1 -1
- package/dist/Avatar/demos/basic.d.ts +1 -0
- package/dist/Badge/Ribbon.d.ts +1 -1
- 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/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 +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/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 +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/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 +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/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 +1 -0
- package/dist/FullScreen/demos/useInModal.d.ts +1 -0
- package/dist/Grid/col.d.ts +2 -2
- package/dist/Grid/demos/basic.d.ts +1 -0
- package/dist/Grid/row.d.ts +1 -1
- 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/DragHandle.d.ts +1 -0
- package/dist/LmEditTable/EditTable.d.ts +1 -1
- package/dist/LmEditTable/components/DraggableContainer.d.ts +1 -0
- package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +1 -0
- package/dist/LmEditTable/components/customRenderEmpty.d.ts +1 -0
- package/dist/LmEditTable/components/index.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/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/DndContainer.d.ts +1 -1
- 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/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/index.d.ts +6 -6
- 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/Select/index.d.ts +1 -1
- 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/Tabs/index.d.ts +2 -2
- 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 +2 -2
- package/dist/Transfer/demos/basic.d.ts +1 -0
- package/dist/Tree/DirectoryTree.d.ts +2 -2
- package/dist/Tree/Tree.d.ts +4 -4
- 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/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 +1 -0
- 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/placements.d.ts +0 -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 +1 -0
- package/dist/hooks/useFullscreen/demos/useInModal.d.ts +1 -0
- package/dist/hooks/useFullscreen/index.d.ts +3 -3
- package/dist/index.umd.css +284 -1225
- package/dist/index.umd.js +35741 -39823
- package/dist/index.umd.min.css +2 -2
- package/dist/index.umd.min.js +20 -24
- 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 +1 -0
- package/dist/message/demos/other.d.ts +1 -0
- package/dist/message/index.d.ts +10 -10
- 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/dist/notification/index.d.ts +2 -2
- package/es/Affix/index.d.ts +1 -1
- package/es/Affix/index.js +37 -90
- package/es/Affix/utils.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/Approval/type.js +0 -24
- package/es/Approval/util.js +4 -24
- package/es/AutoComplete/index.d.ts +1 -1
- package/es/AutoComplete/index.js +9 -20
- package/es/Badge/Ribbon.d.ts +1 -1
- 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.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 +4 -10
- package/es/ConfigProvider/cssVariables.js +16 -25
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
- 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 +29 -63
- package/es/CustomTableOption/filterSort.js +28 -53
- package/es/CustomTableOption/index.js +22 -32
- 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.d.ts +13 -13
- package/es/DatePicker/generatePicker/index.js +12 -25
- package/es/DatePicker/generatePicker/interface.d.ts +3 -3
- package/es/DatePicker/index.d.ts +4 -4
- 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.d.ts +2 -2
- package/es/Form/Form.js +27 -49
- package/es/Form/FormItem/ItemHolder.js +26 -42
- package/es/Form/FormItem/index.d.ts +6 -6
- package/es/Form/FormItem/index.js +70 -118
- package/es/Form/FormItemInput.js +14 -16
- package/es/Form/FormItemLabel.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/es/Form/hooks/useFormItemStatus.js +1 -4
- package/es/Form/hooks/useFrameState.d.ts +1 -1
- package/es/Form/hooks/useFrameState.js +3 -8
- package/es/Form/hooks/useItemRef.js +1 -6
- package/es/Form/index.d.ts +1 -1
- package/es/Form/index.js +0 -2
- package/es/Form/interface.d.ts +2 -2
- package/es/Form/util.js +2 -6
- package/es/FullScreen/index.js +3 -6
- package/es/Grid/col.d.ts +2 -2
- 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.d.ts +1 -1
- 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 +30 -37
- package/es/InputNumber/index.js +9 -13
- 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 +22 -33
- package/es/LmEditTable/DragHandle.js +4 -6
- package/es/LmEditTable/EditTable.d.ts +1 -1
- package/es/LmEditTable/EditTable.js +150 -361
- package/es/LmEditTable/components/DraggableContainer.js +6 -12
- package/es/LmEditTable/components/QuickOpetate.js +7 -12
- package/es/LmEditTable/components/bottomOpetateComponent.js +4 -6
- package/es/LmEditTable/components/customRenderEmpty.js +1 -4
- package/es/LmEditTable/hooks/useForkRef.js +0 -3
- package/es/LmEditTable/rowSort/DndContainerRow.js +24 -36
- package/es/LmEditTable/sortableBox.js +1 -3
- package/es/LmEditTable/sortableBoxCol.js +1 -3
- package/es/LmEditTable/sortableItem.js +10 -19
- package/es/LmEditTable/sortableItemCol.d.ts +1 -0
- package/es/LmEditTable/sortableItemCol.js +16 -21
- package/es/LmEditTable/util.js +6 -46
- package/es/LmEditTable/virtual/VirtualRow.js +26 -46
- package/es/LmEditTable/virtual/VirtualRow2.js +7 -15
- package/es/LmEditTable/virtual/VirtualTable.js +10 -14
- package/es/LmEditTable/virtual/VirtualWrapper.js +6 -13
- package/es/LmEditTable/virtual/context.js +5 -15
- 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 +2 -7
- 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 -192
- 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 +286 -487
- 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/CalcExpression.js +11 -30
- package/es/LmTable/components/Container/Container.js +18 -22
- package/es/LmTable/components/DndContainer.d.ts +1 -1
- package/es/LmTable/components/DndContainer.js +132 -211
- package/es/LmTable/components/HeaderCol.js +13 -22
- 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 +4 -24
- package/es/LmTable/hooks/useDndItems.js +24 -65
- package/es/LmTable/hooks/useGroupDataSource.js +1 -6
- package/es/LmTable/hooks/useResizeObserver.js +13 -18
- 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 +27 -94
- package/es/LmTable/virTual/VirtualRow.js +25 -42
- package/es/LmTable/virTual/VirtualTable.js +12 -21
- package/es/LmTable/virTual/VirtualWrapper.js +7 -14
- package/es/LmTable/virTual/context.js +5 -15
- package/es/LmUpload/LmUpload.js +11 -17
- package/es/LmUpload/UploadList/ItemPicture.js +8 -9
- package/es/LmUpload/UploadList/ItemPictureCard.js +23 -38
- package/es/LmUpload/UploadList/ItemText.js +5 -7
- package/es/LmUpload/UploadList/RenderItem.js +1 -7
- package/es/LmUpload/UploadList/index.js +11 -19
- package/es/LmUpload/body/Progress.js +0 -2
- package/es/LmUpload/body/UploadCore.js +10 -16
- 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 +10 -25
- package/es/PageHeader/index.js +22 -44
- package/es/Pagination/index.js +4 -13
- package/es/Popover/index.js +5 -14
- package/es/QuickMenu/index.js +18 -45
- package/es/Radio/index.js +10 -24
- package/es/Result/index.d.ts +6 -6
- 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.d.ts +1 -1
- package/es/Select/index.js +20 -31
- package/es/Switch/index.js +4 -11
- 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.d.ts +2 -2
- 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 +2 -2
- package/es/Tooltip/index.js +34 -66
- package/es/Tree/DirectoryTree.d.ts +2 -2
- package/es/Tree/DirectoryTree.js +31 -61
- package/es/Tree/Tree.d.ts +4 -4
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/Typography/Title.js +2 -10
- package/es/Typography/Typography.js +11 -23
- package/es/Typography/hooks/useUpdatedEffect.js +0 -1
- package/es/Typography/index.d.ts +1 -1
- package/es/Upload/index.d.ts +3 -3
- 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.d.ts +2 -2
- package/es/_util/colors.js +2 -2
- package/es/_util/domTarget.d.ts +3 -3
- package/es/_util/domTarget.js +0 -3
- package/es/_util/getDataOrAriaProps.js +0 -1
- package/es/_util/getRenderPropValue.d.ts +1 -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.d.ts +1 -1
- package/es/_util/motion.js +2 -11
- package/es/_util/placements.d.ts +0 -1
- package/es/_util/placements.js +7 -8
- package/es/_util/reactNode.d.ts +2 -2
- package/es/_util/responsiveObserve.d.ts +5 -5
- package/es/_util/responsiveObserve.js +0 -5
- package/es/_util/statusUtils.d.ts +1 -1
- 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.d.ts +2 -2
- package/es/_util/type.js +0 -2
- package/es/_util/warning.d.ts +1 -1
- package/es/_util/warning.js +4 -6
- package/es/hooks/useEvent/index.js +6 -7
- package/es/hooks/useFullscreen/index.d.ts +3 -3
- package/es/hooks/useFullscreen/index.js +7 -29
- package/es/locale-provider/LocaleReceiver.d.ts +1 -1
- package/es/locale-provider/LocaleReceiver.js +4 -12
- package/es/locale-provider/context.d.ts +1 -1
- package/es/locale-provider/index.js +2 -11
- package/es/message/hooks/useMessage.js +8 -17
- package/es/message/index.d.ts +10 -10
- package/es/message/index.js +8 -36
- package/es/notification/hooks/useNotification.js +8 -12
- package/es/notification/index.d.ts +2 -2
- 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.d.ts +1 -1
- package/lib/Affix/index.js +37 -104
- package/lib/Affix/utils.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/Approval/type.js +0 -24
- package/lib/Approval/util.js +4 -30
- package/lib/AutoComplete/index.d.ts +1 -1
- package/lib/AutoComplete/index.js +10 -34
- package/lib/Avatar/index.js +0 -4
- package/lib/Badge/Ribbon.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/ConfigProvider/DisabledContext.js +1 -6
- package/lib/ConfigProvider/SizeContext.d.ts +1 -1
- package/lib/ConfigProvider/SizeContext.js +1 -6
- package/lib/ConfigProvider/context.d.ts +2 -2
- package/lib/ConfigProvider/context.js +4 -13
- package/lib/ConfigProvider/cssVariables.js +17 -34
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
- 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 +29 -77
- package/lib/CustomTableOption/filterSort.js +28 -65
- package/lib/CustomTableOption/index.js +22 -45
- 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.d.ts +13 -13
- package/lib/DatePicker/generatePicker/index.js +12 -33
- package/lib/DatePicker/generatePicker/interface.d.ts +3 -3
- package/lib/DatePicker/index.d.ts +4 -4
- 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.d.ts +2 -2
- package/lib/Form/Form.js +27 -62
- package/lib/Form/FormItem/ItemHolder.js +26 -60
- package/lib/Form/FormItem/index.d.ts +6 -6
- package/lib/Form/FormItem/index.js +70 -138
- package/lib/Form/FormItemInput.js +14 -23
- package/lib/Form/FormItemLabel.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/lib/Form/hooks/useFormItemStatus.js +1 -8
- package/lib/Form/hooks/useFrameState.d.ts +1 -1
- package/lib/Form/hooks/useFrameState.js +3 -16
- package/lib/Form/hooks/useItemRef.js +1 -13
- package/lib/Form/index.d.ts +1 -1
- package/lib/Form/index.js +0 -13
- package/lib/Form/interface.d.ts +2 -2
- 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.d.ts +2 -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.d.ts +1 -1
- 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 +30 -49
- package/lib/InputNumber/index.js +9 -23
- 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 +22 -43
- package/lib/LmEditTable/DragHandle.js +4 -12
- package/lib/LmEditTable/EditTable.d.ts +1 -1
- package/lib/LmEditTable/EditTable.js +150 -388
- package/lib/LmEditTable/components/DraggableContainer.js +6 -17
- package/lib/LmEditTable/components/QuickOpetate.js +7 -18
- package/lib/LmEditTable/components/bottomOpetateComponent.js +4 -9
- package/lib/LmEditTable/components/customRenderEmpty.js +1 -8
- package/lib/LmEditTable/components/index.js +0 -6
- package/lib/LmEditTable/hooks/useForkRef.js +0 -4
- package/lib/LmEditTable/index.js +0 -3
- package/lib/LmEditTable/rowSort/DndContainerRow.js +23 -42
- package/lib/LmEditTable/sortableBox.js +1 -6
- package/lib/LmEditTable/sortableBoxCol.js +1 -6
- package/lib/LmEditTable/sortableItem.js +10 -25
- package/lib/LmEditTable/sortableItemCol.d.ts +1 -0
- package/lib/LmEditTable/sortableItemCol.js +11 -22
- package/lib/LmEditTable/util.js +6 -60
- package/lib/LmEditTable/virtual/VirtualRow.js +26 -53
- package/lib/LmEditTable/virtual/VirtualRow2.js +7 -22
- package/lib/LmEditTable/virtual/VirtualTable.js +10 -22
- package/lib/LmEditTable/virtual/VirtualWrapper.js +6 -18
- package/lib/LmEditTable/virtual/context.js +3 -15
- package/lib/LmEditTable/virtual/index.js +0 -4
- 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 +2 -7
- 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 -198
- 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 +286 -487
- 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/CalcExpression.js +11 -37
- package/lib/LmTable/components/Container/Container.js +16 -26
- package/lib/LmTable/components/Container/index.js +0 -1
- package/lib/LmTable/components/DndContainer.d.ts +1 -1
- package/lib/LmTable/components/DndContainer.js +128 -223
- package/lib/LmTable/components/HeaderCol.js +13 -22
- 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 +4 -28
- package/lib/LmTable/hooks/useDndItems.js +24 -70
- package/lib/LmTable/hooks/useGroupDataSource.js +1 -6
- package/lib/LmTable/hooks/useResizeObserver.js +13 -23
- 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 +27 -94
- package/lib/LmTable/virTual/VirtualRow.js +25 -46
- package/lib/LmTable/virTual/VirtualTable.js +12 -30
- package/lib/LmTable/virTual/VirtualWrapper.js +7 -19
- package/lib/LmTable/virTual/context.js +3 -15
- package/lib/LmTable/virTual/index.js +0 -4
- package/lib/LmUpload/LmUpload.js +11 -25
- package/lib/LmUpload/UploadList/ItemPicture.js +6 -13
- package/lib/LmUpload/UploadList/ItemPictureCard.js +23 -44
- package/lib/LmUpload/UploadList/ItemText.js +5 -12
- package/lib/LmUpload/UploadList/RenderItem.js +1 -14
- package/lib/LmUpload/UploadList/index.js +11 -26
- package/lib/LmUpload/body/Progress.js +0 -5
- package/lib/LmUpload/body/UploadCore.js +8 -22
- 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 +10 -36
- 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.js +5 -23
- package/lib/Progress/index.js +0 -4
- package/lib/QuickMenu/index.js +18 -54
- package/lib/Radio/index.js +10 -24
- package/lib/Rate/index.js +0 -4
- package/lib/Result/index.d.ts +6 -6
- 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.d.ts +1 -1
- 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 +4 -18
- 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.d.ts +2 -2
- 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 +2 -2
- package/lib/Tooltip/index.js +34 -80
- package/lib/Transfer/index.js +0 -4
- package/lib/Tree/DirectoryTree.d.ts +2 -2
- package/lib/Tree/DirectoryTree.js +29 -74
- package/lib/Tree/Tree.d.ts +4 -4
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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 +0 -4
- package/lib/Typography/index.d.ts +1 -1
- package/lib/Typography/index.js +0 -9
- package/lib/Upload/index.d.ts +3 -3
- 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.d.ts +2 -2
- package/lib/_util/colors.js +2 -4
- package/lib/_util/domTarget.d.ts +3 -3
- package/lib/_util/domTarget.js +0 -6
- package/lib/_util/getDataOrAriaProps.js +0 -2
- package/lib/_util/getRenderPropValue.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/_util/motion.js +0 -12
- package/lib/_util/placements.d.ts +0 -1
- package/lib/_util/placements.js +7 -12
- package/lib/_util/reactNode.d.ts +2 -2
- package/lib/_util/reactNode.js +0 -5
- package/lib/_util/responsiveObserve.d.ts +5 -5
- package/lib/_util/responsiveObserve.js +0 -8
- package/lib/_util/statusUtils.d.ts +1 -1
- 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.d.ts +2 -2
- package/lib/_util/type.js +0 -6
- package/lib/_util/warning.d.ts +1 -1
- 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.d.ts +3 -3
- package/lib/hooks/useFullscreen/index.js +7 -33
- package/lib/index.js +0 -89
- package/lib/locale-provider/LocaleReceiver.d.ts +1 -1
- 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.d.ts +1 -1
- 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.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.d.ts +10 -10
- package/lib/message/index.js +8 -53
- package/lib/notification/hooks/useNotification.js +8 -19
- package/lib/notification/index.d.ts +2 -2
- 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 -1237
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
|
|
4
3
|
for (var p in s) {
|
|
5
4
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
8
|
}
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
import React from 'react';
|
|
15
12
|
import DndContainer from '../rowSort/DndContainerRow';
|
|
16
13
|
import SortableBox from '../sortableBox';
|
|
17
14
|
import { VirtualWrapper } from '../virtual';
|
|
18
|
-
|
|
19
15
|
var DraggableContainer = function DraggableContainer(_a) {
|
|
20
16
|
var keys = _a.keys,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
onSortEnd = _a.onSortEnd,
|
|
18
|
+
virtual = _a.virtual,
|
|
19
|
+
rowKey = _a.rowKey,
|
|
20
|
+
options = _a.options,
|
|
21
|
+
tableWidth = _a.tableWidth,
|
|
22
|
+
props = __rest(_a, ["keys", "onSortEnd", "virtual", "rowKey", "options", "tableWidth"]);
|
|
28
23
|
return /*#__PURE__*/React.createElement(DndContainer, {
|
|
29
24
|
move: onSortEnd,
|
|
30
25
|
items: keys,
|
|
@@ -35,5 +30,4 @@ var DraggableContainer = function DraggableContainer(_a) {
|
|
|
35
30
|
items: keys
|
|
36
31
|
}, virtual ? /*#__PURE__*/React.createElement(VirtualWrapper, Object.assign({}, props)) : /*#__PURE__*/React.createElement("tbody", Object.assign({}, props))));
|
|
37
32
|
};
|
|
38
|
-
|
|
39
33
|
export default DraggableContainer;
|
|
@@ -3,26 +3,22 @@ import Button from '../../Button';
|
|
|
3
3
|
import IconFont from '../../IconFont';
|
|
4
4
|
import Popover from '../../Popover';
|
|
5
5
|
import DisabledContext from '../../ConfigProvider/DisabledContext';
|
|
6
|
-
|
|
7
6
|
var QuickOpetate = function QuickOpetate(_ref) {
|
|
8
7
|
var record = _ref.record,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
rowKey = _ref.rowKey,
|
|
9
|
+
handleAdd = _ref.handleAdd,
|
|
10
|
+
handleDelete = _ref.handleDelete,
|
|
11
|
+
_ref$options = _ref.options,
|
|
12
|
+
options = _ref$options === void 0 ? ['add', 'delete'] : _ref$options,
|
|
13
|
+
getLength = _ref.getLength,
|
|
14
|
+
quickOpetateClearAll = _ref.quickOpetateClearAll;
|
|
16
15
|
var disabled = React.useContext(DisabledContext) || false;
|
|
17
|
-
|
|
18
16
|
var appendChildren = function appendChildren() {
|
|
19
17
|
handleAdd === null || handleAdd === void 0 ? void 0 : handleAdd(record, true);
|
|
20
18
|
};
|
|
21
|
-
|
|
22
19
|
var appendAdd = function appendAdd() {
|
|
23
20
|
handleAdd === null || handleAdd === void 0 ? void 0 : handleAdd(record);
|
|
24
21
|
};
|
|
25
|
-
|
|
26
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
23
|
style: {
|
|
28
24
|
display: 'flex',
|
|
@@ -78,5 +74,4 @@ var QuickOpetate = function QuickOpetate(_ref) {
|
|
|
78
74
|
}
|
|
79
75
|
}) : null);
|
|
80
76
|
};
|
|
81
|
-
|
|
82
77
|
export default QuickOpetate;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button, IconFont } from '../../index';
|
|
3
|
-
|
|
4
3
|
var BottomOpetateComponent = function BottomOpetateComponent(props) {
|
|
5
4
|
var isShowAddAction = props.isShowAddAction,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
recordCreatorProps = props.recordCreatorProps,
|
|
6
|
+
handleAdd = props.handleAdd,
|
|
7
|
+
_props$disabled = props.disabled,
|
|
8
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
10
9
|
return isShowAddAction ? /*#__PURE__*/React.createElement(Button, {
|
|
11
10
|
className: "lm_editTable_add_bar",
|
|
12
11
|
type: "dashed",
|
|
@@ -19,5 +18,4 @@ var BottomOpetateComponent = function BottomOpetateComponent(props) {
|
|
|
19
18
|
type: "lmweb-plus"
|
|
20
19
|
}), (recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.creatorButtonText) || '新增') : null;
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
export default BottomOpetateComponent;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ConfigProvider from '../../ConfigProvider';
|
|
3
3
|
var ConfigContext = ConfigProvider.ConfigContext;
|
|
4
|
-
|
|
5
4
|
var CustomizeRenderEmpty = function CustomizeRenderEmpty() {
|
|
6
5
|
var _React$useContext = React.useContext(ConfigContext),
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
locale = _React$useContext.locale;
|
|
9
7
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
8
|
className: "lm_table_empty"
|
|
11
9
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16,5 +14,4 @@ var CustomizeRenderEmpty = function CustomizeRenderEmpty() {
|
|
|
16
14
|
}
|
|
17
15
|
}), /*#__PURE__*/React.createElement("span", null, (locale === null || locale === void 0 ? void 0 : locale.locale) === 'en' ? 'no Data' : '暂无数据'));
|
|
18
16
|
};
|
|
19
|
-
|
|
20
17
|
export default CustomizeRenderEmpty;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
|
|
3
2
|
function setRef(ref, value) {
|
|
4
3
|
if (typeof ref === 'function') {
|
|
5
4
|
ref(value);
|
|
@@ -7,13 +6,11 @@ function setRef(ref, value) {
|
|
|
7
6
|
ref.current = value;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
export default function useForkRef(refA, refB) {
|
|
12
10
|
return useMemo(function () {
|
|
13
11
|
if (refA == null && refB == null) {
|
|
14
12
|
return null;
|
|
15
13
|
}
|
|
16
|
-
|
|
17
14
|
return function (refValue) {
|
|
18
15
|
setRef(refA, refValue);
|
|
19
16
|
setRef(refB, refValue);
|
|
@@ -1,63 +1,52 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
|
|
3
2
|
/* eslint-disable no-unused-vars */
|
|
4
3
|
import React, { memo } from 'react';
|
|
5
4
|
import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
|
|
6
5
|
import { restrictToParentElement, restrictToVerticalAxis } from '@dnd-kit/modifiers';
|
|
7
|
-
import { sortableKeyboardCoordinates } from '@dnd-kit/sortable';
|
|
8
|
-
|
|
6
|
+
import { sortableKeyboardCoordinates } from '@dnd-kit/sortable';
|
|
7
|
+
// 可拖拽容器
|
|
9
8
|
var DndContainer = function DndContainer(_ref) {
|
|
10
9
|
var children = _ref.children,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
options = _ref.options,
|
|
11
|
+
move = _ref.move,
|
|
12
|
+
rowKey = _ref.rowKey,
|
|
13
|
+
items = _ref.items,
|
|
14
|
+
tableWidth = _ref.tableWidth;
|
|
17
15
|
var _React$useState = React.useState(false),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17
|
+
isDragging = _React$useState2[0],
|
|
18
|
+
setIsDragging = _React$useState2[1]; // 是否拖拽中
|
|
23
19
|
var _React$useState3 = React.useState(null),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
21
|
+
activeId = _React$useState4[0],
|
|
22
|
+
setActiveId = _React$useState4[1]; // 是否拖拽中
|
|
29
23
|
var sensors = useSensors(useSensor(PointerSensor), useSensor(KeyboardSensor, {
|
|
30
24
|
coordinateGetter: sortableKeyboardCoordinates
|
|
31
|
-
}));
|
|
32
|
-
|
|
25
|
+
}));
|
|
26
|
+
// 开始拖拽
|
|
33
27
|
var handleDragStart = function handleDragStart(_ref2) {
|
|
34
28
|
var active = _ref2.active;
|
|
35
29
|
setIsDragging(true);
|
|
36
|
-
|
|
37
30
|
if (!active) {
|
|
38
31
|
return;
|
|
39
32
|
}
|
|
40
|
-
|
|
41
33
|
setActiveId(active.id);
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
};
|
|
35
|
+
// 拖拽结束
|
|
45
36
|
var handleDragEnd = function handleDragEnd(event) {
|
|
46
37
|
var active = event.active,
|
|
47
|
-
|
|
48
|
-
setActiveId(null);
|
|
49
|
-
|
|
38
|
+
over = event.over;
|
|
39
|
+
setActiveId(null);
|
|
40
|
+
// 未移入时触发
|
|
50
41
|
if (!(over === null || over === void 0 ? void 0 : over.id)) {
|
|
51
42
|
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
}
|
|
44
|
+
// 移入时触发更新数据
|
|
55
45
|
if (active.id !== over.id) {
|
|
56
46
|
move(active.id, over.id);
|
|
57
47
|
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
};
|
|
49
|
+
// @ts-ignore
|
|
61
50
|
var instance = {
|
|
62
51
|
isDragging: isDragging,
|
|
63
52
|
activeId: activeId,
|
|
@@ -79,5 +68,4 @@ var DndContainer = function DndContainer(_ref) {
|
|
|
79
68
|
modifiers: [restrictToParentElement, restrictToVerticalAxis]
|
|
80
69
|
}, children);
|
|
81
70
|
};
|
|
82
|
-
|
|
83
71
|
export default /*#__PURE__*/memo(DndContainer);
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
3
|
-
|
|
4
3
|
var SortableBox = function SortableBox(_ref) {
|
|
5
4
|
var items = _ref.items,
|
|
6
|
-
|
|
5
|
+
children = _ref.children;
|
|
7
6
|
return /*#__PURE__*/React.createElement(SortableContext, {
|
|
8
7
|
items: items,
|
|
9
8
|
strategy: verticalListSortingStrategy
|
|
10
9
|
}, children);
|
|
11
10
|
};
|
|
12
|
-
|
|
13
11
|
export default SortableBox;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SortableContext, horizontalListSortingStrategy } from '@dnd-kit/sortable';
|
|
3
|
-
|
|
4
3
|
var SortableBox = function SortableBox(_ref) {
|
|
5
4
|
var items = _ref.items,
|
|
6
|
-
|
|
5
|
+
children = _ref.children;
|
|
7
6
|
return /*#__PURE__*/React.createElement(SortableContext, {
|
|
8
7
|
items: items,
|
|
9
8
|
strategy: horizontalListSortingStrategy
|
|
10
9
|
}, children);
|
|
11
10
|
};
|
|
12
|
-
|
|
13
11
|
export default SortableBox;
|
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
|
|
4
3
|
for (var p in s) {
|
|
5
4
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
8
|
}
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
import React, { memo } from 'react';
|
|
15
12
|
import { useSortable } from '@dnd-kit/sortable';
|
|
16
13
|
import { CSS } from '@dnd-kit/utilities';
|
|
17
14
|
import { VirtualRow } from './virtual';
|
|
18
|
-
|
|
19
15
|
var SortableItem = function SortableItem(props) {
|
|
20
16
|
var key = props['data-row-key'],
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
children = props.children,
|
|
18
|
+
className = props.className,
|
|
19
|
+
virtual = props.virtual,
|
|
20
|
+
resetField = __rest(props, ['data-row-key', "children", "className", "virtual"]);
|
|
26
21
|
var _useSortable = useSortable({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
id: key
|
|
23
|
+
}),
|
|
24
|
+
attributes = _useSortable.attributes,
|
|
25
|
+
setNodeRef = _useSortable.setNodeRef,
|
|
26
|
+
transform = _useSortable.transform,
|
|
27
|
+
transition = _useSortable.transition;
|
|
34
28
|
var style = {
|
|
35
29
|
transform: CSS.Transform.toString(transform),
|
|
36
30
|
transition: transition
|
|
37
31
|
};
|
|
38
|
-
|
|
39
32
|
if (!virtual) {
|
|
40
33
|
return /*#__PURE__*/React.createElement("tr", Object.assign({}, resetField, {
|
|
41
34
|
ref: setNodeRef,
|
|
@@ -43,7 +36,6 @@ var SortableItem = function SortableItem(props) {
|
|
|
43
36
|
style: style
|
|
44
37
|
}, attributes), children);
|
|
45
38
|
}
|
|
46
|
-
|
|
47
39
|
return /*#__PURE__*/React.createElement(VirtualRow, Object.assign({}, resetField, {
|
|
48
40
|
ref: setNodeRef,
|
|
49
41
|
pref: setNodeRef,
|
|
@@ -51,5 +43,4 @@ var SortableItem = function SortableItem(props) {
|
|
|
51
43
|
style: style
|
|
52
44
|
}, attributes), children);
|
|
53
45
|
};
|
|
54
|
-
|
|
55
46
|
export default /*#__PURE__*/memo(SortableItem);
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
|
|
4
3
|
for (var p in s) {
|
|
5
4
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6
5
|
}
|
|
7
|
-
|
|
8
6
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
8
|
}
|
|
11
9
|
return t;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
11
|
import React, { forwardRef } from 'react';
|
|
15
|
-
import { useSortable } from '@dnd-kit/sortable';
|
|
16
|
-
|
|
17
|
-
import { CSS } from '@dnd-kit/utilities';
|
|
12
|
+
import { useSortable } from '@dnd-kit/sortable';
|
|
13
|
+
// import { omit } from 'lodash'
|
|
14
|
+
import { CSS } from '@dnd-kit/utilities';
|
|
15
|
+
// interface ItemType {
|
|
18
16
|
// children: React.ReactNode
|
|
19
17
|
// }
|
|
20
18
|
// interface ItemInstance {}
|
|
21
19
|
// @ts-ignore
|
|
22
|
-
|
|
23
20
|
var Item = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
24
21
|
var children = _a.children,
|
|
25
|
-
|
|
22
|
+
props = __rest(_a, ["children"]);
|
|
23
|
+
// const rProps = omit({ ...props, ...children.props }, [
|
|
26
24
|
// 'isSticky',
|
|
27
25
|
// 'colStart',
|
|
28
26
|
// 'colEnd',
|
|
@@ -37,31 +35,28 @@ var Item = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
37
35
|
// 'additionalProps',
|
|
38
36
|
// 'rowType',
|
|
39
37
|
// ])
|
|
40
|
-
|
|
41
|
-
|
|
42
38
|
return (
|
|
43
39
|
/*#__PURE__*/
|
|
44
40
|
// <th {...rProps} ref={ref as any} />
|
|
45
41
|
React.createElement("th", Object.assign({}, props, children.props, {
|
|
46
42
|
ref: ref
|
|
47
|
-
}))
|
|
43
|
+
}))
|
|
44
|
+
// <th {...props} ref={ref as any}>
|
|
48
45
|
// {(children as any)?.props?.children || children}
|
|
49
46
|
// </th>
|
|
50
|
-
|
|
51
47
|
);
|
|
52
48
|
});
|
|
49
|
+
|
|
53
50
|
export default function SortableItem(props) {
|
|
54
51
|
var id = props.id;
|
|
55
|
-
|
|
56
52
|
var _useSortable = useSortable({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
id: id
|
|
54
|
+
}),
|
|
55
|
+
attributes = _useSortable.attributes,
|
|
56
|
+
listeners = _useSortable.listeners,
|
|
57
|
+
setNodeRef = _useSortable.setNodeRef,
|
|
58
|
+
transform = _useSortable.transform,
|
|
59
|
+
transition = _useSortable.transition;
|
|
65
60
|
var style = {
|
|
66
61
|
position: 'relative',
|
|
67
62
|
transform: CSS.Translate.toString(transform ? Object.assign(Object.assign({}, transform), {
|
package/es/LmEditTable/util.js
CHANGED
|
@@ -3,21 +3,19 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
3
3
|
import { keyBy, isEqual, pick, isFunction, omit, isObject } from 'lodash';
|
|
4
4
|
export function isObjEmpty(obj) {
|
|
5
5
|
var _a;
|
|
6
|
-
|
|
7
6
|
return ((_a = Object.keys(obj || {})) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
8
7
|
}
|
|
9
8
|
export function deepDataSourcePreKeys(dataSource, rowKey) {
|
|
10
9
|
var deepDataSource = [];
|
|
11
|
-
|
|
12
10
|
var eachChildren = function eachChildren(children, preKeys, deepIds) {
|
|
13
11
|
children === null || children === void 0 ? void 0 : children.forEach(function (item, index) {
|
|
14
12
|
deepDataSource.push(Object.assign(Object.assign({}, item), {
|
|
15
13
|
preKeys: [].concat(_toConsumableArray(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]]),
|
|
16
14
|
_deepIds: [].concat(_toConsumableArray(deepIds), [index + 1])
|
|
17
15
|
}));
|
|
18
|
-
|
|
19
16
|
if (item === null || item === void 0 ? void 0 : item.children) {
|
|
20
|
-
eachChildren(item === null || item === void 0 ? void 0 : item.children, [].concat(_toConsumableArray(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]]), [].concat(_toConsumableArray(deepIds), [index + 1]));
|
|
17
|
+
eachChildren(item === null || item === void 0 ? void 0 : item.children, [].concat(_toConsumableArray(preKeys), [item === null || item === void 0 ? void 0 : item[rowKey]]), [].concat(_toConsumableArray(deepIds), [index + 1]));
|
|
18
|
+
// deepDataSource.push({ ...item, preKeys: [...preKeys, item[rowKey]] })
|
|
21
19
|
}
|
|
22
20
|
});
|
|
23
21
|
};
|
|
@@ -27,7 +25,6 @@ export function deepDataSourcePreKeys(dataSource, rowKey) {
|
|
|
27
25
|
}
|
|
28
26
|
export function isExpandRow(children) {
|
|
29
27
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
30
|
-
|
|
31
28
|
return ['Collapse row', 'Expand row'].includes((_e = (_d = (_c = (_b = (_a = children === null || children === void 0 ? void 0 : children[0]) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.children) === null || _c === void 0 ? void 0 : _c[1]) === null || _d === void 0 ? void 0 : _d.props) === null || _e === void 0 ? void 0 : _e['aria-label']) || ((_l = (_k = (_j = (_h = (_g = (_f = children === null || children === void 0 ? void 0 : children[0]) === null || _f === void 0 ? void 0 : _f.props) === null || _g === void 0 ? void 0 : _g.children) === null || _h === void 0 ? void 0 : _h[1]) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.className) === null || _l === void 0 ? void 0 : _l.indexOf('ant-table-row-expand-icon')) > -1;
|
|
32
29
|
}
|
|
33
30
|
export function checkRowKeyByDataSource(dataSource, rowKey) {
|
|
@@ -35,114 +32,89 @@ export function checkRowKeyByDataSource(dataSource, rowKey) {
|
|
|
35
32
|
return children === null || children === void 0 ? void 0 : children.map(function (item, index) {
|
|
36
33
|
if (item.children) {
|
|
37
34
|
var _Object$assign;
|
|
38
|
-
|
|
39
35
|
var rchildren = addRowKey(item.children, "".concat(pkey, "_").concat(index + 1));
|
|
40
36
|
return Object.assign(Object.assign({}, item), (_Object$assign = {}, _defineProperty(_Object$assign, rowKey, item[rowKey] || "".concat(pkey, "_").concat(index + 1)), _defineProperty(_Object$assign, "children", rchildren), _Object$assign));
|
|
41
37
|
}
|
|
42
|
-
|
|
43
38
|
return Object.assign(Object.assign({}, item), _defineProperty({}, rowKey, item[rowKey] || "".concat(pkey, "_").concat(index + 1)));
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
|
|
47
41
|
var res = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (v, idx) {
|
|
48
42
|
if (v.children) {
|
|
49
43
|
var _Object$assign3;
|
|
50
|
-
|
|
51
44
|
var rchildren = addRowKey(v.children, v[rowKey] || "v".concat(idx + 1));
|
|
52
45
|
return Object.assign(Object.assign({}, v), (_Object$assign3 = {}, _defineProperty(_Object$assign3, rowKey, v[rowKey] || "v".concat(idx + 1)), _defineProperty(_Object$assign3, "children", rchildren), _Object$assign3));
|
|
53
46
|
}
|
|
54
|
-
|
|
55
47
|
return Object.assign(Object.assign({}, v), _defineProperty({}, rowKey, v[rowKey] || "v".concat(idx + 1)));
|
|
56
48
|
});
|
|
57
49
|
return res || [];
|
|
58
50
|
}
|
|
59
51
|
export function getExpandStatus(children) {
|
|
60
52
|
var _a, _b, _c, _d, _e;
|
|
61
|
-
|
|
62
53
|
return isExpandRow(children) ? (_e = (_d = (_c = (_b = (_a = children === null || children === void 0 ? void 0 : children[0]) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.children) === null || _c === void 0 ? void 0 : _c[1]) === null || _d === void 0 ? void 0 : _d.props) === null || _e === void 0 ? void 0 : _e['aria-label'] : '';
|
|
63
54
|
}
|
|
64
55
|
export function checkMemoShouldUploadSpecialFun(prev, next) {
|
|
65
56
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
66
|
-
|
|
67
57
|
var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
|
|
68
|
-
|
|
69
58
|
if (!checkExpandStatus) {
|
|
70
59
|
return false;
|
|
71
60
|
}
|
|
72
|
-
|
|
73
61
|
var prevCol = prev === null || prev === void 0 ? void 0 : prev.col;
|
|
74
62
|
var nextCol = next === null || next === void 0 ? void 0 : next.col;
|
|
75
63
|
/** TODO: 使用了自定义render, 是否要判断rowIndex? 这样排序之后,渲染的性能就会变差 */
|
|
76
|
-
|
|
77
64
|
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.render) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.render)) && !isEqual(pick(prev, ['colIndex', 'record', 'children']), pick(next, ['colIndex', 'record', 'children']))) {
|
|
78
65
|
return false;
|
|
79
66
|
}
|
|
80
|
-
|
|
81
67
|
if (!(next === null || next === void 0 ? void 0 : next.quickOpetateClearAll) && ((next === null || next === void 0 ? void 0 : next.getLength) < 2 || (prev === null || prev === void 0 ? void 0 : prev.getLength) === 1) && (next === null || next === void 0 ? void 0 : next.dataIndex) === 'lm_edit_opetate') {
|
|
82
68
|
return false;
|
|
83
69
|
}
|
|
84
|
-
|
|
85
70
|
if (prev.isEdit !== next.isEdit) {
|
|
86
71
|
return false;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
72
|
+
}
|
|
73
|
+
// console.log(22, prevCol?.editable === 'render', nextCol?.editable === 'render', prevCol?.componentProps, prevCol?.componentProps)
|
|
90
74
|
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.editable) === 'render' || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.editable) === 'render') && (((_a = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _a === void 0 ? void 0 : _a.render) || ((_b = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _b === void 0 ? void 0 : _b.render)) && (!isEqual(omit(prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps, ['render']), omit(nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps, ['render'])) || !isEqual(pick(prev, ['colIndex', 'record', 'rowIndex']), pick(next, ['colIndex', 'record', 'rowIndex'])))) {
|
|
91
75
|
return false;
|
|
92
76
|
}
|
|
93
|
-
|
|
94
77
|
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.fixed) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.fixed)) && !isEqual(prev === null || prev === void 0 ? void 0 : prev.style, next === null || next === void 0 ? void 0 : next.style)) {
|
|
95
78
|
return false;
|
|
96
79
|
}
|
|
97
|
-
|
|
98
80
|
if ((((_c = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _c === void 0 ? void 0 : _c.optionOnly) || ((_d = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _d === void 0 ? void 0 : _d.optionOnly)) && !isEqual((_e = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _e === void 0 ? void 0 : _e.options, (_f = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _f === void 0 ? void 0 : _f.options)) {
|
|
99
81
|
return false;
|
|
100
82
|
}
|
|
101
|
-
|
|
102
83
|
if ((((_g = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _g === void 0 ? void 0 : _g.options) || ((_h = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _h === void 0 ? void 0 : _h.options)) && !isEqual((_j = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _j === void 0 ? void 0 : _j.options, (_k = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _k === void 0 ? void 0 : _k.options)) {
|
|
103
84
|
return false;
|
|
104
85
|
}
|
|
105
|
-
|
|
106
86
|
if ((isFunction(prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) || isFunction(nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps)) && !isEqual(prevCol.newOptions, nextCol.newOptions) && !isEqual(prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps, nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps)) {
|
|
107
87
|
return false;
|
|
108
88
|
}
|
|
109
|
-
|
|
110
89
|
if (((prevCol === null || prevCol === void 0 ? void 0 : prevCol.order) || (nextCol === null || nextCol === void 0 ? void 0 : nextCol.order)) && !isEqual(prevCol === null || prevCol === void 0 ? void 0 : prevCol.order, nextCol === null || nextCol === void 0 ? void 0 : nextCol.order)) {
|
|
111
90
|
// return isEqual(prevCol?.order, nextCol?.fixed)
|
|
112
91
|
return false;
|
|
113
92
|
}
|
|
114
|
-
|
|
115
93
|
if (next.className.indexOf('drag-visible') > -1) {
|
|
116
94
|
return isEqual(prev.style, next.style);
|
|
117
95
|
}
|
|
118
|
-
|
|
119
96
|
if (((_l = next.className) === null || _l === void 0 ? void 0 : _l.indexOf('ant-table-row-expand-icon-cell')) > -1) {
|
|
120
97
|
return false;
|
|
121
98
|
}
|
|
122
|
-
|
|
123
99
|
if (((_m = next.className) === null || _m === void 0 ? void 0 : _m.indexOf('ant-table-cell-with-append')) > -1) {
|
|
124
100
|
return false;
|
|
125
101
|
}
|
|
126
|
-
|
|
127
102
|
if (next.className.indexOf('ant-table-selection-column') > -1) {
|
|
128
103
|
return isEqual((_p = (_o = prev.children) === null || _o === void 0 ? void 0 : _o[1]) === null || _p === void 0 ? void 0 : _p.props, (_r = (_q = next.children) === null || _q === void 0 ? void 0 : _q[1]) === null || _r === void 0 ? void 0 : _r.props);
|
|
129
104
|
}
|
|
130
105
|
/** 如果启用了快速复制功能,需要实时判断rowIndex与getLength */
|
|
131
|
-
|
|
132
|
-
|
|
133
106
|
if (((_s = prevCol === null || prevCol === void 0 ? void 0 : prevCol.componentProps) === null || _s === void 0 ? void 0 : _s.quickcopy) || ((_t = nextCol === null || nextCol === void 0 ? void 0 : nextCol.componentProps) === null || _t === void 0 ? void 0 : _t.quickcopy)) {
|
|
134
107
|
var pickProps = ['record', 'colIndex', 'rowIndex', 'getLength'];
|
|
135
108
|
var p = pick(prev, pickProps);
|
|
136
109
|
var n = pick(next, pickProps);
|
|
137
110
|
return isEqual(p, n);
|
|
138
111
|
}
|
|
139
|
-
|
|
140
112
|
return true;
|
|
141
113
|
}
|
|
142
114
|
export function checkExpandIconColumnIndex(_ref) {
|
|
143
115
|
var rowSelection = _ref.rowSelection,
|
|
144
|
-
|
|
145
|
-
|
|
116
|
+
sortOpen = _ref.sortOpen,
|
|
117
|
+
indexCol = _ref.indexCol;
|
|
146
118
|
var arr = [rowSelection, sortOpen, indexCol].filter(function (item) {
|
|
147
119
|
return !!item;
|
|
148
120
|
});
|
|
@@ -150,9 +122,7 @@ export function checkExpandIconColumnIndex(_ref) {
|
|
|
150
122
|
}
|
|
151
123
|
export function checkDataSourceIsEmpty(config, dataSource, scrollInfo) {
|
|
152
124
|
var _a, _b;
|
|
153
|
-
|
|
154
125
|
var resultConfig = Object.assign({}, config);
|
|
155
|
-
|
|
156
126
|
if (scrollInfo) {
|
|
157
127
|
resultConfig = Object.assign(Object.assign({}, resultConfig), {
|
|
158
128
|
scroll: {
|
|
@@ -161,11 +131,9 @@ export function checkDataSourceIsEmpty(config, dataSource, scrollInfo) {
|
|
|
161
131
|
}
|
|
162
132
|
});
|
|
163
133
|
}
|
|
164
|
-
|
|
165
134
|
if (dataSource.length) {
|
|
166
135
|
return resultConfig;
|
|
167
136
|
}
|
|
168
|
-
|
|
169
137
|
return Object.assign(Object.assign({}, resultConfig), {
|
|
170
138
|
components: Object.assign(Object.assign({}, resultConfig.components), {
|
|
171
139
|
body: {}
|
|
@@ -173,39 +141,31 @@ export function checkDataSourceIsEmpty(config, dataSource, scrollInfo) {
|
|
|
173
141
|
});
|
|
174
142
|
}
|
|
175
143
|
/** 根据传入的disabedRows, 得出最终需要disabed的rowKeys */
|
|
176
|
-
|
|
177
144
|
export function checkTableRowIsDisable(deepDataSource, disabledRows, rowKey) {
|
|
178
145
|
var disabledRkeys = [];
|
|
179
|
-
|
|
180
146
|
if (!disabledRows.length) {
|
|
181
147
|
return disabledRkeys;
|
|
182
148
|
}
|
|
183
|
-
|
|
184
149
|
var disableIds = disabledRows.map(function (item) {
|
|
185
150
|
return isObject(item) ? item === null || item === void 0 ? void 0 : item[rowKey] : item;
|
|
186
151
|
});
|
|
187
|
-
|
|
188
152
|
function deep(children, arrs) {
|
|
189
153
|
children === null || children === void 0 ? void 0 : children.forEach(function (item) {
|
|
190
154
|
arrs.push(item[rowKey]);
|
|
191
|
-
|
|
192
155
|
if (item.children) {
|
|
193
156
|
deep(item.children, arrs);
|
|
194
157
|
}
|
|
195
158
|
});
|
|
196
159
|
}
|
|
197
|
-
|
|
198
160
|
if (disableIds.length) {
|
|
199
161
|
disableIds === null || disableIds === void 0 ? void 0 : disableIds.forEach(function (item) {
|
|
200
162
|
disabledRkeys.push(item);
|
|
201
163
|
var record = deepDataSource[item];
|
|
202
|
-
|
|
203
164
|
if (record === null || record === void 0 ? void 0 : record.children) {
|
|
204
165
|
deep(record.children, disabledRkeys);
|
|
205
166
|
}
|
|
206
167
|
});
|
|
207
168
|
}
|
|
208
|
-
|
|
209
169
|
return disabledRkeys;
|
|
210
170
|
}
|
|
211
171
|
export default {
|