linkmore-design 1.1.22-beta.1 → 1.1.22-beta.3
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 +184363 -204774
- 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 +7 -8
- 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 +27 -12
- 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 +7 -11
- 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 +27 -20
- 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
|
@@ -2,14 +2,12 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
|
|
6
5
|
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
7
6
|
function adopt(value) {
|
|
8
7
|
return value instanceof P ? value : new P(function (resolve) {
|
|
9
8
|
resolve(value);
|
|
10
9
|
});
|
|
11
10
|
}
|
|
12
|
-
|
|
13
11
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
12
|
function fulfilled(value) {
|
|
15
13
|
try {
|
|
@@ -18,7 +16,6 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
18
16
|
reject(e);
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
function rejected(value) {
|
|
23
20
|
try {
|
|
24
21
|
step(generator["throw"](value));
|
|
@@ -26,30 +23,23 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
26
23
|
reject(e);
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
|
-
|
|
30
26
|
function step(result) {
|
|
31
27
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
32
28
|
}
|
|
33
|
-
|
|
34
29
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
30
|
});
|
|
36
31
|
};
|
|
37
|
-
|
|
38
32
|
var __rest = this && this.__rest || function (s, e) {
|
|
39
33
|
var t = {};
|
|
40
|
-
|
|
41
34
|
for (var p in s) {
|
|
42
35
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
43
36
|
}
|
|
44
|
-
|
|
45
37
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46
38
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
47
39
|
}
|
|
48
40
|
return t;
|
|
49
41
|
};
|
|
50
42
|
/* eslint-disable no-unused-vars */
|
|
51
|
-
|
|
52
|
-
|
|
53
43
|
import { PlusCircleOutlined } from '@ant-design/icons';
|
|
54
44
|
import moment from 'moment';
|
|
55
45
|
import { arrayMove } from '@dnd-kit/sortable';
|
|
@@ -68,16 +58,14 @@ import UploadOss from '../UploadOss';
|
|
|
68
58
|
import { isObjEmpty, deepDataSourcePreKeys, isExpandRow, checkRowKeyByDataSource } from './util';
|
|
69
59
|
import cls from "classnames";
|
|
70
60
|
var UploadBtn = UploadOss.UploadBtn;
|
|
71
|
-
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
72
|
-
|
|
61
|
+
var EditableContext = /*#__PURE__*/React.createContext(null);
|
|
62
|
+
// 表格行
|
|
73
63
|
var EditableRow = function EditableRow(_a) {
|
|
74
64
|
var index = _a.index,
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
props = __rest(_a, ["index"]);
|
|
77
66
|
var _Form$useForm = Form.useForm(),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
67
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
68
|
+
form = _Form$useForm2[0];
|
|
81
69
|
return /*#__PURE__*/React.createElement(Form, {
|
|
82
70
|
form: form,
|
|
83
71
|
component: false
|
|
@@ -85,15 +73,12 @@ var EditableRow = function EditableRow(_a) {
|
|
|
85
73
|
value: form
|
|
86
74
|
}, /*#__PURE__*/React.createElement("tr", Object.assign({}, props))));
|
|
87
75
|
};
|
|
88
|
-
|
|
89
76
|
var EditableSortRow = function EditableSortRow(_a) {
|
|
90
77
|
var index = _a.index,
|
|
91
|
-
|
|
92
|
-
|
|
78
|
+
props = __rest(_a, ["index"]);
|
|
93
79
|
var _Form$useForm3 = Form.useForm(),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
80
|
+
_Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
|
|
81
|
+
form = _Form$useForm4[0];
|
|
97
82
|
return /*#__PURE__*/React.createElement(Form, {
|
|
98
83
|
form: form,
|
|
99
84
|
component: false
|
|
@@ -101,16 +86,13 @@ var EditableSortRow = function EditableSortRow(_a) {
|
|
|
101
86
|
value: form
|
|
102
87
|
}, /*#__PURE__*/React.createElement(SortableItem, Object.assign({}, props))));
|
|
103
88
|
};
|
|
104
|
-
|
|
105
89
|
var UploadSingle = function UploadSingle(props) {
|
|
106
90
|
var value = props.value,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
91
|
+
onChange = props.onChange,
|
|
92
|
+
editEnum = props.editEnum;
|
|
110
93
|
var handleDelete = function handleDelete() {
|
|
111
94
|
onChange === null || onChange === void 0 ? void 0 : onChange();
|
|
112
95
|
};
|
|
113
|
-
|
|
114
96
|
return /*#__PURE__*/React.createElement("div", {
|
|
115
97
|
className: "upload_single"
|
|
116
98
|
}, value ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
|
|
@@ -135,43 +117,36 @@ var UploadSingle = function UploadSingle(props) {
|
|
|
135
117
|
onChange: onChange
|
|
136
118
|
})));
|
|
137
119
|
};
|
|
138
|
-
|
|
139
120
|
var InputRange = function InputRange(_a) {
|
|
140
121
|
var _a$value = _a.value,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
122
|
+
value = _a$value === void 0 ? ['', ''] : _a$value,
|
|
123
|
+
onChange = _a.onChange,
|
|
124
|
+
record = _a.record,
|
|
125
|
+
rowIndex = _a.rowIndex,
|
|
126
|
+
colIndex = _a.colIndex,
|
|
127
|
+
validator = _a.validator,
|
|
128
|
+
editEnum = __rest(_a, ["value", "onChange", "record", "rowIndex", "colIndex", "validator"]);
|
|
129
|
+
// 输入值改变
|
|
150
130
|
var history = useRef([]);
|
|
151
|
-
|
|
152
131
|
var _useState = useState([]),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
132
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
133
|
+
nValue = _useState2[0],
|
|
134
|
+
setValue = _useState2[1];
|
|
157
135
|
useEffect(function () {
|
|
158
136
|
setValue(value);
|
|
159
137
|
}, value);
|
|
160
|
-
|
|
161
138
|
var handleFocus = function handleFocus() {
|
|
162
139
|
history.current.push(nValue);
|
|
163
140
|
};
|
|
164
|
-
|
|
165
141
|
var handleInput = function handleInput(e, type) {
|
|
166
142
|
var v = type === 'prev' ? [e.target.value, nValue[1]] : [nValue[0], e.target.value];
|
|
167
143
|
setValue(v);
|
|
168
144
|
onChange(v);
|
|
169
145
|
history.current.push(v);
|
|
170
146
|
};
|
|
171
|
-
|
|
172
147
|
var handleBlur = function handleBlur(e, type) {
|
|
173
|
-
var isFun = isFunction(validator);
|
|
174
|
-
|
|
148
|
+
var isFun = isFunction(validator);
|
|
149
|
+
// 验证历史记录
|
|
175
150
|
var traverse = function traverse(arr) {
|
|
176
151
|
if (!arr || !arr.length) {
|
|
177
152
|
if (type === 'prev') {
|
|
@@ -179,13 +154,10 @@ var InputRange = function InputRange(_a) {
|
|
|
179
154
|
} else if (type === 'next') {
|
|
180
155
|
setValue([nValue[0], '']);
|
|
181
156
|
}
|
|
182
|
-
|
|
183
157
|
history.current = [];
|
|
184
158
|
return;
|
|
185
159
|
}
|
|
186
|
-
|
|
187
160
|
var value = arr.pop();
|
|
188
|
-
|
|
189
161
|
if (isFun && validator(record, value, rowIndex, colIndex)) {
|
|
190
162
|
setValue(value);
|
|
191
163
|
history.current = [];
|
|
@@ -193,10 +165,8 @@ var InputRange = function InputRange(_a) {
|
|
|
193
165
|
traverse(arr);
|
|
194
166
|
}
|
|
195
167
|
};
|
|
196
|
-
|
|
197
168
|
traverse(history.current);
|
|
198
169
|
};
|
|
199
|
-
|
|
200
170
|
return /*#__PURE__*/React.createElement("div", {
|
|
201
171
|
className: "lm_editTable_wrapperRange"
|
|
202
172
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -226,27 +196,23 @@ var InputRange = function InputRange(_a) {
|
|
|
226
196
|
return handleInput(e, 'next');
|
|
227
197
|
}
|
|
228
198
|
}, editEnum))));
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
|
|
199
|
+
};
|
|
200
|
+
// 操作列
|
|
232
201
|
var Opetate = function Opetate(_ref) {
|
|
233
202
|
var record = _ref.record,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
203
|
+
rowKey = _ref.rowKey,
|
|
204
|
+
handleAdd = _ref.handleAdd,
|
|
205
|
+
handleDelete = _ref.handleDelete,
|
|
206
|
+
_ref$options = _ref.options,
|
|
207
|
+
options = _ref$options === void 0 ? ['add', 'delete'] : _ref$options,
|
|
208
|
+
getLength = _ref.getLength,
|
|
209
|
+
quickOpetateClearAll = _ref.quickOpetateClearAll;
|
|
242
210
|
var appendChildren = function appendChildren() {
|
|
243
211
|
handleAdd === null || handleAdd === void 0 ? void 0 : handleAdd(record, true);
|
|
244
212
|
};
|
|
245
|
-
|
|
246
213
|
var appendAdd = function appendAdd() {
|
|
247
214
|
handleAdd === null || handleAdd === void 0 ? void 0 : handleAdd(record);
|
|
248
215
|
};
|
|
249
|
-
|
|
250
216
|
return /*#__PURE__*/React.createElement("div", {
|
|
251
217
|
style: {
|
|
252
218
|
display: 'flex',
|
|
@@ -300,84 +266,75 @@ var Opetate = function Opetate(_ref) {
|
|
|
300
266
|
return handleAdd(record, (options === null || options === void 0 ? void 0 : options.includes('addInChildren')) ? true : false);
|
|
301
267
|
}
|
|
302
268
|
}) : null);
|
|
303
|
-
};
|
|
269
|
+
};
|
|
270
|
+
// const isValidValue = (verifyValue) => {
|
|
304
271
|
// const toStringValue = JSON.stringify(verifyValue);
|
|
305
272
|
// if (verifyValue === undefined || verifyValue === null || verifyValue === '' || toStringValue === '[]' || toStringValue === '{}') {
|
|
306
273
|
// return false;
|
|
307
274
|
// }
|
|
308
275
|
// return true;
|
|
309
276
|
// }
|
|
310
|
-
|
|
311
277
|
/*
|
|
312
278
|
表格单元格
|
|
313
279
|
editEnum: 下拉框时的数据数组(非数组时是配置设置)
|
|
314
280
|
valueType: 编辑框配置(多选)
|
|
315
281
|
*/
|
|
316
|
-
|
|
317
|
-
|
|
318
282
|
var EditableCell = function EditableCell(props) {
|
|
319
283
|
var _props$record = props.record,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
284
|
+
record = _props$record === void 0 ? {} : _props$record,
|
|
285
|
+
rowKey = props.rowKey,
|
|
286
|
+
isEdit = props.isEdit,
|
|
287
|
+
_props$col = props.col,
|
|
288
|
+
col = _props$col === void 0 ? {} : _props$col,
|
|
289
|
+
rowIndex = props.rowIndex,
|
|
290
|
+
colIndex = props.colIndex,
|
|
291
|
+
handleTableRowDelete = props.handleTableRowDelete,
|
|
292
|
+
handleTableRowAdd = props.handleTableRowAdd,
|
|
293
|
+
quickOpetateClearAll = props.quickOpetateClearAll,
|
|
294
|
+
getLength = props.getLength,
|
|
295
|
+
isHoverEdit = props.isHoverEdit,
|
|
296
|
+
editEnum = props.editEnum,
|
|
297
|
+
valueType = props.valueType,
|
|
298
|
+
children = props.children,
|
|
299
|
+
handleSave = props.handleSave,
|
|
300
|
+
handleAdd = props.handleAdd,
|
|
301
|
+
handleDelete = props.handleDelete,
|
|
302
|
+
handleCopy = props.handleCopy,
|
|
303
|
+
itemProps = props.itemProps,
|
|
304
|
+
setValid = props.setValid,
|
|
305
|
+
reWriteOriginSource = props.reWriteOriginSource,
|
|
306
|
+
restProps = __rest(props, ["record", "rowKey", "isEdit", "col", "rowIndex", "colIndex", "handleTableRowDelete", "handleTableRowAdd", "quickOpetateClearAll", "getLength", "isHoverEdit", "editEnum", "valueType", "children", "handleSave", "handleAdd", "handleDelete", "handleCopy", "itemProps", "setValid", "reWriteOriginSource"]);
|
|
343
307
|
/** 去除移入移出功能,保留最纯粹的功能,优化性能 */
|
|
344
|
-
|
|
345
|
-
|
|
346
308
|
var onMouseEnter = restProps.onMouseEnter,
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
309
|
+
onMouseLeave = restProps.onMouseLeave,
|
|
310
|
+
clearProps = __rest(restProps, ["onMouseEnter", "onMouseLeave"]);
|
|
350
311
|
var _col$componentProps = col.componentProps,
|
|
351
|
-
|
|
352
|
-
|
|
312
|
+
componentProps = _col$componentProps === void 0 ? {} : _col$componentProps,
|
|
313
|
+
dataIndex = col.dataIndex;
|
|
353
314
|
/** 是否正在编辑中 */
|
|
354
|
-
|
|
355
315
|
var _useState3 = useState(false),
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
316
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
317
|
+
editing = _useState4[0],
|
|
318
|
+
setEditing = _useState4[1];
|
|
360
319
|
var inputRef = useRef(null);
|
|
361
320
|
var form = useContext(EditableContext);
|
|
362
321
|
useEffect(function () {
|
|
363
322
|
var _a;
|
|
364
|
-
|
|
365
323
|
if (editing) {
|
|
366
324
|
(_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
367
325
|
}
|
|
368
326
|
}, [editing]);
|
|
369
|
-
|
|
370
327
|
var toggleEdit = function toggleEdit() {
|
|
371
|
-
setEditing(!editing);
|
|
372
|
-
|
|
328
|
+
setEditing(!editing);
|
|
329
|
+
// form.setFieldsValue({ [dataIndex]: record[dataIndex] });
|
|
330
|
+
};
|
|
331
|
+
// const checkCellRef = useRef(null)
|
|
373
332
|
// const focusCapturedRef = useRef(false);
|
|
374
333
|
// const curValue = useMemo(() => {
|
|
375
334
|
// return record?.dataIndex
|
|
376
335
|
// }, [record])
|
|
377
336
|
// const curValueIsValid = isValidValue(curValue);
|
|
378
337
|
// 校验保存
|
|
379
|
-
|
|
380
|
-
|
|
381
338
|
var save = function save(row) {
|
|
382
339
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
383
340
|
var values, resultComponentProps;
|
|
@@ -386,29 +343,22 @@ var EditableCell = function EditableCell(props) {
|
|
|
386
343
|
switch (_context.prev = _context.next) {
|
|
387
344
|
case 0:
|
|
388
345
|
_context.prev = 0;
|
|
389
|
-
|
|
390
346
|
if (!row) {
|
|
391
347
|
_context.next = 5;
|
|
392
348
|
break;
|
|
393
349
|
}
|
|
394
|
-
|
|
395
350
|
_context.t0 = omit(row, 'onChange');
|
|
396
351
|
_context.next = 8;
|
|
397
352
|
break;
|
|
398
|
-
|
|
399
353
|
case 5:
|
|
400
354
|
_context.next = 7;
|
|
401
355
|
return form.getFieldsValue();
|
|
402
|
-
|
|
403
356
|
case 7:
|
|
404
357
|
_context.t0 = _context.sent;
|
|
405
|
-
|
|
406
358
|
case 8:
|
|
407
359
|
values = _context.t0;
|
|
408
360
|
resultComponentProps = isFunction(componentProps) ? componentProps === null || componentProps === void 0 ? void 0 : componentProps(record, col) : componentProps; // console.time('testForEach');
|
|
409
|
-
|
|
410
361
|
/** 如果属于中有唯一性,并且当前的值与唯一值不一致,则改变其他的 */
|
|
411
|
-
|
|
412
362
|
if (resultComponentProps.isOnlyValue !== undefined && values[dataIndex] !== record[dataIndex] && ![undefined, null].includes(values[dataIndex])) {
|
|
413
363
|
handleSave(Object.assign(Object.assign(Object.assign({}, record), values), _defineProperty({}, rowKey, record === null || record === void 0 ? void 0 : record[rowKey])), {
|
|
414
364
|
only: {
|
|
@@ -418,30 +368,25 @@ var EditableCell = function EditableCell(props) {
|
|
|
418
368
|
});
|
|
419
369
|
} else {
|
|
420
370
|
handleSave(Object.assign(Object.assign(Object.assign({}, record), values), _defineProperty({}, rowKey, record === null || record === void 0 ? void 0 : record[rowKey])));
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
371
|
+
}
|
|
372
|
+
// console.timeEnd('testForEach');
|
|
424
373
|
_context.next = 13;
|
|
425
374
|
return form.validateFields();
|
|
426
|
-
|
|
427
375
|
case 13:
|
|
428
376
|
if (col === null || col === void 0 ? void 0 : col.hoverEdit) {
|
|
429
377
|
toggleEdit();
|
|
430
|
-
}
|
|
378
|
+
}
|
|
379
|
+
// // 清空异常校验
|
|
431
380
|
// setValid((old) => {
|
|
432
381
|
// const obj = { ...old }
|
|
433
382
|
// delete obj[record[rowKey]]
|
|
434
383
|
// return obj
|
|
435
384
|
// })
|
|
436
|
-
|
|
437
|
-
|
|
438
385
|
_context.next = 18;
|
|
439
386
|
break;
|
|
440
|
-
|
|
441
387
|
case 16:
|
|
442
388
|
_context.prev = 16;
|
|
443
389
|
_context.t1 = _context["catch"](0);
|
|
444
|
-
|
|
445
390
|
case 18:
|
|
446
391
|
case "end":
|
|
447
392
|
return _context.stop();
|
|
@@ -449,25 +394,20 @@ var EditableCell = function EditableCell(props) {
|
|
|
449
394
|
}
|
|
450
395
|
}, _callee, null, [[0, 16]]);
|
|
451
396
|
}));
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
|
|
397
|
+
};
|
|
398
|
+
// 触发保存
|
|
455
399
|
var handleFormItemChange = function handleFormItemChange(e) {
|
|
456
400
|
save === null || save === void 0 ? void 0 : save();
|
|
457
401
|
};
|
|
458
402
|
/** 快捷刷子,把当前的所有列的值,刷成当前的选中的列 */
|
|
459
|
-
|
|
460
|
-
|
|
461
403
|
var copyKey = function copyKey(e) {
|
|
462
404
|
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
463
405
|
var dataIndex = col.dataIndex;
|
|
464
406
|
handleCopy === null || handleCopy === void 0 ? void 0 : handleCopy(dataIndex, record[dataIndex]);
|
|
465
407
|
};
|
|
466
|
-
|
|
467
408
|
var Control = function Control(con) {
|
|
468
409
|
var resultComponentProps = isFunction(componentProps) ? componentProps === null || componentProps === void 0 ? void 0 : componentProps(record, col) : componentProps;
|
|
469
410
|
var clearAttrComponentProps = omit(resultComponentProps, ['optionOnly', 'isOnlyValue']);
|
|
470
|
-
|
|
471
411
|
switch (con) {
|
|
472
412
|
case 'input':
|
|
473
413
|
return /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
@@ -495,7 +435,6 @@ var EditableCell = function EditableCell(props) {
|
|
|
495
435
|
type: 'lmweb-icon_m_brush'
|
|
496
436
|
})) : null
|
|
497
437
|
}));
|
|
498
|
-
|
|
499
438
|
case 'inputRange':
|
|
500
439
|
return /*#__PURE__*/React.createElement(InputRange, Object.assign({
|
|
501
440
|
onChange: handleFormItemChange,
|
|
@@ -505,7 +444,6 @@ var EditableCell = function EditableCell(props) {
|
|
|
505
444
|
rowIndex: rowIndex,
|
|
506
445
|
colIndex: colIndex
|
|
507
446
|
}));
|
|
508
|
-
|
|
509
447
|
case 'number':
|
|
510
448
|
return /*#__PURE__*/React.createElement(InputNumber, Object.assign({
|
|
511
449
|
onPressEnter: handleFormItemChange,
|
|
@@ -516,13 +454,11 @@ var EditableCell = function EditableCell(props) {
|
|
|
516
454
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
517
455
|
ref: inputRef
|
|
518
456
|
}, clearAttrComponentProps));
|
|
519
|
-
|
|
520
457
|
case 'date':
|
|
521
458
|
// @ts-ignore
|
|
522
459
|
return /*#__PURE__*/React.createElement(DatePicker, Object.assign({
|
|
523
460
|
onChange: handleFormItemChange
|
|
524
461
|
}, clearAttrComponentProps));
|
|
525
|
-
|
|
526
462
|
case 'select':
|
|
527
463
|
return /*#__PURE__*/React.createElement(Select, Object.assign({
|
|
528
464
|
showSearch: true,
|
|
@@ -531,14 +467,12 @@ var EditableCell = function EditableCell(props) {
|
|
|
531
467
|
ref: inputRef,
|
|
532
468
|
filterOption: function filterOption(input, option) {
|
|
533
469
|
var _a, _b;
|
|
534
|
-
|
|
535
470
|
return ((_b = (_a = option.children) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.indexOf(input.toLowerCase())) >= 0;
|
|
536
471
|
}
|
|
537
472
|
}, clearAttrComponentProps, {
|
|
538
473
|
// open={true}
|
|
539
474
|
onChange: handleFormItemChange
|
|
540
475
|
}));
|
|
541
|
-
|
|
542
476
|
case 'multiple':
|
|
543
477
|
return /*#__PURE__*/React.createElement(Select, Object.assign({
|
|
544
478
|
mode: "multiple",
|
|
@@ -548,45 +482,38 @@ var EditableCell = function EditableCell(props) {
|
|
|
548
482
|
ref: inputRef,
|
|
549
483
|
filterOption: function filterOption(input, option) {
|
|
550
484
|
var _a;
|
|
551
|
-
|
|
552
485
|
return ((_a = option.children) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(input.toLowerCase())) >= 0;
|
|
553
486
|
},
|
|
554
487
|
onChange: handleFormItemChange,
|
|
555
488
|
onDeselect: handleFormItemChange
|
|
556
489
|
}, clearAttrComponentProps));
|
|
557
|
-
|
|
558
490
|
case 'checkbox':
|
|
559
491
|
return /*#__PURE__*/React.createElement(Checkbox.Group, Object.assign({
|
|
560
492
|
onChange: handleFormItemChange,
|
|
561
493
|
ref: inputRef
|
|
562
494
|
}, clearAttrComponentProps));
|
|
563
|
-
|
|
564
495
|
case 'radio':
|
|
565
496
|
return /*#__PURE__*/React.createElement(Radio, Object.assign({
|
|
566
497
|
onChange: handleFormItemChange,
|
|
567
498
|
ref: inputRef
|
|
568
499
|
}, clearAttrComponentProps));
|
|
569
|
-
|
|
570
500
|
case 'radioGroup':
|
|
571
501
|
return /*#__PURE__*/React.createElement(Radio.Group, Object.assign({
|
|
572
502
|
onChange: handleFormItemChange,
|
|
573
503
|
ref: inputRef
|
|
574
504
|
}, clearAttrComponentProps));
|
|
575
|
-
|
|
576
505
|
case 'switch':
|
|
577
506
|
return /*#__PURE__*/React.createElement(Switch, Object.assign({
|
|
578
507
|
size: 'small'
|
|
579
508
|
}, clearAttrComponentProps, {
|
|
580
509
|
onChange: handleFormItemChange
|
|
581
510
|
}));
|
|
582
|
-
|
|
583
511
|
case 'upload':
|
|
584
512
|
return /*#__PURE__*/React.createElement(UploadSingle, {
|
|
585
513
|
editEnum: resultComponentProps,
|
|
586
514
|
ref: inputRef,
|
|
587
515
|
onChange: handleFormItemChange
|
|
588
516
|
});
|
|
589
|
-
|
|
590
517
|
case 'operate':
|
|
591
518
|
case 'lm_edit_opetate':
|
|
592
519
|
return /*#__PURE__*/React.createElement(Opetate, Object.assign({
|
|
@@ -598,7 +525,6 @@ var EditableCell = function EditableCell(props) {
|
|
|
598
525
|
getLength: getLength,
|
|
599
526
|
quickOpetateClearAll: quickOpetateClearAll
|
|
600
527
|
}, resultComponentProps));
|
|
601
|
-
|
|
602
528
|
case 'render':
|
|
603
529
|
{
|
|
604
530
|
var render = resultComponentProps.render;
|
|
@@ -607,7 +533,6 @@ var EditableCell = function EditableCell(props) {
|
|
|
607
533
|
onChange: save
|
|
608
534
|
}));
|
|
609
535
|
}
|
|
610
|
-
|
|
611
536
|
default:
|
|
612
537
|
return /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
613
538
|
onPressEnter: handleFormItemChange,
|
|
@@ -616,18 +541,15 @@ var EditableCell = function EditableCell(props) {
|
|
|
616
541
|
}, resultComponentProps));
|
|
617
542
|
}
|
|
618
543
|
};
|
|
619
|
-
|
|
620
544
|
var getMemoChildNode = useMemo(function () {
|
|
621
545
|
var _a, _b;
|
|
622
|
-
|
|
623
546
|
var editable = col.editable,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
547
|
+
dataIndex = col.dataIndex,
|
|
548
|
+
formProps = col.formProps,
|
|
549
|
+
componentProps = col.componentProps,
|
|
550
|
+
hoverEdit = col.hoverEdit;
|
|
628
551
|
var resultComponentProps = isFunction(componentProps) ? componentProps === null || componentProps === void 0 ? void 0 : componentProps(record, col) : componentProps;
|
|
629
552
|
var childNode = children;
|
|
630
|
-
|
|
631
553
|
if (hoverEdit && !editing) {
|
|
632
554
|
childNode = /*#__PURE__*/React.createElement("div", {
|
|
633
555
|
className: "editable-cell-value-wrap",
|
|
@@ -646,7 +568,6 @@ var EditableCell = function EditableCell(props) {
|
|
|
646
568
|
}, formProps, {
|
|
647
569
|
name: dataIndex
|
|
648
570
|
}), Control(editable)));
|
|
649
|
-
|
|
650
571
|
if (editable === 'input' && ((resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonBefore) || (resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonAfter))) {
|
|
651
572
|
childNode = /*#__PURE__*/React.createElement(React.Fragment, null, isExpandRow(childNode) && childNode[0], /*#__PURE__*/React.createElement(Form.Item, Object.assign({
|
|
652
573
|
errorPlacement: "right",
|
|
@@ -662,18 +583,17 @@ var EditableCell = function EditableCell(props) {
|
|
|
662
583
|
return item.value === record[dataIndex];
|
|
663
584
|
})) === null || _b === void 0 ? void 0 : _b.label) || childNode;
|
|
664
585
|
}
|
|
665
|
-
|
|
666
586
|
return childNode;
|
|
667
|
-
}, [col, isEdit, editing, getLength]);
|
|
587
|
+
}, [col, isEdit, editing, getLength]);
|
|
588
|
+
// const [childNode, setChildNode] = useState(getMemoChildNode);
|
|
668
589
|
// 出现死循环找我
|
|
669
|
-
|
|
670
590
|
useEffect(function () {
|
|
671
591
|
var editable = col.editable,
|
|
672
|
-
|
|
673
|
-
|
|
592
|
+
dataIndex = col.dataIndex;
|
|
674
593
|
if (isEdit && editable) {
|
|
675
594
|
form.setFieldsValue(_defineProperty({}, dataIndex, editable === 'date' ? moment(record[dataIndex]) : record[dataIndex]));
|
|
676
|
-
}
|
|
595
|
+
}
|
|
596
|
+
// if (
|
|
677
597
|
// (isEdit && editable && record[dataIndex]) ||
|
|
678
598
|
// (isHoverEdit && editable && record[dataIndex])
|
|
679
599
|
// ) {
|
|
@@ -681,94 +601,80 @@ var EditableCell = function EditableCell(props) {
|
|
|
681
601
|
// [dataIndex]: editable === 'date' ? moment(record[dataIndex]) : record[dataIndex],
|
|
682
602
|
// })
|
|
683
603
|
// }
|
|
684
|
-
|
|
685
604
|
}, [record]);
|
|
686
605
|
return /*#__PURE__*/React.createElement("td", Object.assign({}, omit(clearProps, ['dataIndex']), {
|
|
687
606
|
className: cls(clearProps === null || clearProps === void 0 ? void 0 : clearProps.className, 'lm_custom_cell_td'),
|
|
688
607
|
key: "r".concat(rowIndex, "_c").concat(colIndex)
|
|
689
608
|
}), getMemoChildNode);
|
|
690
609
|
};
|
|
691
|
-
|
|
692
610
|
var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
693
611
|
var _a, _b;
|
|
694
|
-
|
|
695
612
|
var defaultData = props.value,
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
613
|
+
columns = props.columns,
|
|
614
|
+
isEdit = props.isEdit,
|
|
615
|
+
_props$isAdd = props.isAdd,
|
|
616
|
+
isAdd = _props$isAdd === void 0 ? false : _props$isAdd,
|
|
617
|
+
onChange = props.onChange,
|
|
618
|
+
_props$rowKey = props.rowKey,
|
|
619
|
+
_rowKey = _props$rowKey === void 0 ? '_ID' : _props$rowKey,
|
|
620
|
+
rowHoverEdit = props.rowHoverEdit,
|
|
621
|
+
_props$isUseForm = props.isUseForm,
|
|
622
|
+
isUseForm = _props$isUseForm === void 0 ? true : _props$isUseForm,
|
|
623
|
+
isHoverEdit = props.isHoverEdit,
|
|
624
|
+
useQuickOpetate = props.useQuickOpetate,
|
|
625
|
+
_props$quickOpetateCl = props.quickOpetateClearAll,
|
|
626
|
+
quickOpetateClearAll = _props$quickOpetateCl === void 0 ? true : _props$quickOpetateCl,
|
|
627
|
+
rowSelection = props.rowSelection,
|
|
628
|
+
sortOpen = props.sortOpen,
|
|
629
|
+
colSortOpen = props.colSortOpen,
|
|
630
|
+
filterChange = props.filterChange,
|
|
631
|
+
_props$size = props.size,
|
|
632
|
+
size = _props$size === void 0 ? 'small' : _props$size,
|
|
633
|
+
recordCreatorProps = props.recordCreatorProps,
|
|
634
|
+
_props$shouldUpdate = props.shouldUpdate,
|
|
635
|
+
shouldUpdate = _props$shouldUpdate === void 0 ? false : _props$shouldUpdate,
|
|
636
|
+
resetProps = __rest(props, ["value", "columns", "isEdit", "isAdd", "onChange", "rowKey", "rowHoverEdit", "isUseForm", "isHoverEdit", "useQuickOpetate", "quickOpetateClearAll", "rowSelection", "sortOpen", "colSortOpen", "filterChange", "size", "recordCreatorProps", "shouldUpdate"]);
|
|
637
|
+
// const [dataSource, setDataSource] = useState([]);
|
|
722
638
|
var _useControllableValue = useControllableValue({
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
639
|
+
value: checkRowKeyByDataSource(props.value, _rowKey),
|
|
640
|
+
onChange: props.onChange
|
|
641
|
+
}),
|
|
642
|
+
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
643
|
+
dataSource = _useControllableValue2[0],
|
|
644
|
+
setDataSource = _useControllableValue2[1];
|
|
645
|
+
// const [count, setCount] = useState(0);
|
|
731
646
|
var _useState5 = useState({}),
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
647
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
648
|
+
_valid = _useState6[0],
|
|
649
|
+
setValid = _useState6[1];
|
|
650
|
+
// const [localRowSelectList, setLocalRowSelectList] = useState([])
|
|
737
651
|
var transformRowSelect = function transformRowSelect(selectedRowKeys, selectedRows, info) {
|
|
738
652
|
var _a;
|
|
739
|
-
|
|
740
653
|
return (_a = rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.onChange) === null || _a === void 0 ? void 0 : _a.call(rowSelection, selectedRowKeys, selectedRows, info);
|
|
741
654
|
};
|
|
742
|
-
|
|
743
655
|
var _useControllableValue3 = useControllableValue({
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
656
|
+
value: {
|
|
657
|
+
selectedRows: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) || (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || []
|
|
658
|
+
},
|
|
659
|
+
onChange: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.onChange) ? transformRowSelect : undefined
|
|
660
|
+
}),
|
|
661
|
+
_useControllableValue4 = _slicedToArray(_useControllableValue3, 2),
|
|
662
|
+
localRowSelectList = _useControllableValue4[0],
|
|
663
|
+
setLocalRowSelectList = _useControllableValue4[1];
|
|
753
664
|
var _useState7 = useState([]),
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
665
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
666
|
+
sortEditTable = _useState8[0],
|
|
667
|
+
setCallBackFalg = _useState8[1];
|
|
757
668
|
/** 当前展开的列 */
|
|
758
|
-
|
|
759
|
-
|
|
760
669
|
var _useState9 = useState([]),
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
670
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
671
|
+
expandedRowKeys = _useState10[0],
|
|
672
|
+
setExpandedRowKeys = _useState10[1];
|
|
765
673
|
var dataSourceRef = useRef([]);
|
|
766
674
|
var sortDataSorceRef = useRef([]);
|
|
767
675
|
var deepDataSourceRef = useRef([]);
|
|
768
|
-
|
|
769
676
|
var onSortEnd = function onSortEnd(active, over) {
|
|
770
677
|
var cloneArr = _toConsumableArray(dataSourceRef.current);
|
|
771
|
-
|
|
772
678
|
var oldIndex = cloneArr.findIndex(function (v) {
|
|
773
679
|
return v[_rowKey] === active;
|
|
774
680
|
});
|
|
@@ -777,10 +683,8 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
777
683
|
});
|
|
778
684
|
setDataSource(arrayMove(cloneArr, oldIndex, newIndex));
|
|
779
685
|
};
|
|
780
|
-
|
|
781
686
|
var onColSortEnd = function onColSortEnd(active, over) {
|
|
782
687
|
var _a;
|
|
783
|
-
|
|
784
688
|
var oldIndex = columns.findIndex(function (item) {
|
|
785
689
|
return item['dataIndex'] === active;
|
|
786
690
|
});
|
|
@@ -792,35 +696,30 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
792
696
|
order: index
|
|
793
697
|
});
|
|
794
698
|
}));
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
|
|
699
|
+
};
|
|
700
|
+
// 删除
|
|
798
701
|
var handleDelete = function handleDelete(key) {
|
|
799
702
|
var nValue = dataSource.filter(function (item) {
|
|
800
703
|
return item[_rowKey] !== key;
|
|
801
|
-
});
|
|
802
|
-
|
|
704
|
+
});
|
|
705
|
+
// onChange?.(nValue)
|
|
803
706
|
setDataSource(nValue);
|
|
804
707
|
};
|
|
805
708
|
/** 点击添加按钮添加 */
|
|
806
|
-
|
|
807
|
-
|
|
808
709
|
var handleAdd = function handleAdd(row) {
|
|
809
710
|
var _a;
|
|
810
|
-
|
|
811
711
|
var addDataInfo = isFunction(recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.initData) ? (_a = recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.initData) === null || _a === void 0 ? void 0 : _a.call(recordCreatorProps) : recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.initData;
|
|
812
712
|
var res = produce(dataSourceRef.current, function (draft) {
|
|
813
713
|
draft.push(Object.assign(_defineProperty({}, _rowKey, "".concat(Date.now())), addDataInfo || {}));
|
|
814
714
|
});
|
|
815
|
-
setDataSource(res);
|
|
715
|
+
setDataSource(res);
|
|
716
|
+
// onChange?.(res)
|
|
816
717
|
};
|
|
817
718
|
|
|
818
719
|
useEffect(function () {
|
|
819
720
|
var _a;
|
|
820
|
-
|
|
821
721
|
dataSourceRef.current = dataSource;
|
|
822
722
|
deepDataSourceRef.current = deepDataSourcePreKeys(dataSource, _rowKey);
|
|
823
|
-
|
|
824
723
|
if (sortOpen) {
|
|
825
724
|
var dataSourceKeys = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
826
725
|
return item[_rowKey];
|
|
@@ -828,13 +727,13 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
828
727
|
var setCallBackFalgKeys = ((_a = sortDataSorceRef.current) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
829
728
|
return item[_rowKey];
|
|
830
729
|
}).join(',')) || '';
|
|
831
|
-
|
|
832
730
|
if (dataSourceKeys !== setCallBackFalgKeys) {
|
|
833
731
|
setCallBackFalg(dataSource);
|
|
834
732
|
sortDataSorceRef.current = dataSource;
|
|
835
733
|
}
|
|
836
734
|
}
|
|
837
|
-
}, [dataSource]);
|
|
735
|
+
}, [dataSource]);
|
|
736
|
+
// /** 本地缓存一个选择数据 */
|
|
838
737
|
// useEffect(() => {
|
|
839
738
|
// if (rowSelection) {
|
|
840
739
|
// const { selectedRowKeys } = rowSelection
|
|
@@ -847,22 +746,18 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
847
746
|
// setLocalRowSelectList(selectRows);
|
|
848
747
|
// // (rowSelection?.onChange as any)?.(selectRows)
|
|
849
748
|
// }
|
|
850
|
-
|
|
851
749
|
var handleSave = function handleSave(row, options) {
|
|
852
750
|
var _a, _b;
|
|
853
|
-
|
|
854
751
|
var preKeys = (_b = (_a = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : deepDataSourceRef.current) === null || _a === void 0 ? void 0 : _a[row[_rowKey]]) === null || _b === void 0 ? void 0 : _b.preKeys;
|
|
855
752
|
var res = produce(dataSourceRef.current, function (draft) {
|
|
856
753
|
if (options === null || options === void 0 ? void 0 : options.only) {
|
|
857
754
|
var _ref2 = options === null || options === void 0 ? void 0 : options.only,
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
755
|
+
key = _ref2.key,
|
|
756
|
+
value = _ref2.value;
|
|
861
757
|
if ((preKeys === null || preKeys === void 0 ? void 0 : preKeys.length) > 1) {
|
|
862
758
|
var deeps = function deeps(children) {
|
|
863
759
|
children === null || children === void 0 ? void 0 : children.forEach(function (item) {
|
|
864
760
|
var _a;
|
|
865
|
-
|
|
866
761
|
if (preKeys.includes(item[_rowKey])) {
|
|
867
762
|
if (item[_rowKey] === row[_rowKey]) {
|
|
868
763
|
children === null || children === void 0 ? void 0 : children.forEach(function (c) {
|
|
@@ -877,7 +772,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
877
772
|
}
|
|
878
773
|
});
|
|
879
774
|
};
|
|
880
|
-
|
|
881
775
|
deeps(draft);
|
|
882
776
|
} else {
|
|
883
777
|
draft === null || draft === void 0 ? void 0 : draft.forEach(function (item, index) {
|
|
@@ -893,7 +787,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
893
787
|
var _deeps = function _deeps(children) {
|
|
894
788
|
children === null || children === void 0 ? void 0 : children.forEach(function (item) {
|
|
895
789
|
var _a;
|
|
896
|
-
|
|
897
790
|
if (preKeys.includes(item[_rowKey])) {
|
|
898
791
|
if (item[_rowKey] === row[_rowKey]) {
|
|
899
792
|
(_a = Object.keys(row)) === null || _a === void 0 ? void 0 : _a.forEach(function (v) {
|
|
@@ -905,13 +798,11 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
905
798
|
}
|
|
906
799
|
});
|
|
907
800
|
};
|
|
908
|
-
|
|
909
801
|
_deeps(draft);
|
|
910
802
|
} else {
|
|
911
803
|
var index = draft.findIndex(function (item) {
|
|
912
804
|
return row[_rowKey] === item[_rowKey];
|
|
913
805
|
});
|
|
914
|
-
|
|
915
806
|
if (index !== -1) {
|
|
916
807
|
draft[index] = row;
|
|
917
808
|
}
|
|
@@ -920,28 +811,22 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
920
811
|
});
|
|
921
812
|
setDataSource(res);
|
|
922
813
|
};
|
|
923
|
-
|
|
924
814
|
var reWriteOriginSource = function reWriteOriginSource(rowKey, rowValue, dataIndex, nextValue) {
|
|
925
815
|
setDataSource(function (prevDataSource) {
|
|
926
816
|
return prevDataSource === null || prevDataSource === void 0 ? void 0 : prevDataSource.map(function (item) {
|
|
927
817
|
if (get(item, rowKey) === rowValue) {
|
|
928
818
|
set(item, dataIndex, nextValue);
|
|
929
819
|
}
|
|
930
|
-
|
|
931
820
|
return item;
|
|
932
821
|
});
|
|
933
822
|
});
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
|
|
823
|
+
};
|
|
824
|
+
// @ts-ignore
|
|
937
825
|
var handleTableRowDelete = function handleTableRowDelete(key) {
|
|
938
826
|
var _a, _b, _c;
|
|
939
|
-
|
|
940
827
|
var preKeys = (_b = (_a = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : deepDataSourceRef.current) === null || _a === void 0 ? void 0 : _a[key]) === null || _b === void 0 ? void 0 : _b.preKeys;
|
|
941
|
-
|
|
942
828
|
if (preKeys.length > 1) {
|
|
943
|
-
/** 说明删除的是children中的数据 */
|
|
944
|
-
var filter = function filter(data, key) {
|
|
829
|
+
/** 说明删除的是children中的数据 */var filter = function filter(data, key) {
|
|
945
830
|
var newData = data === null || data === void 0 ? void 0 : data.filter(function (x) {
|
|
946
831
|
return x[_rowKey] !== key;
|
|
947
832
|
});
|
|
@@ -949,7 +834,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
949
834
|
if (x.children) {
|
|
950
835
|
var c = filter(x.children, key);
|
|
951
836
|
x.children = c;
|
|
952
|
-
|
|
953
837
|
if (!c.length) {
|
|
954
838
|
delete x.children;
|
|
955
839
|
}
|
|
@@ -957,42 +841,33 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
957
841
|
});
|
|
958
842
|
return newData;
|
|
959
843
|
};
|
|
960
|
-
|
|
961
844
|
var res = filter(dataSource, key);
|
|
962
845
|
setDataSource(res);
|
|
963
846
|
} else {
|
|
964
847
|
if (((_c = dataSourceRef.current) === null || _c === void 0 ? void 0 : _c.length) === 1 && !quickOpetateClearAll) {
|
|
965
848
|
return false;
|
|
966
849
|
}
|
|
967
|
-
|
|
968
850
|
var _res = produce(dataSourceRef.current, function (draft) {
|
|
969
851
|
var index = draft.findIndex(function (item) {
|
|
970
852
|
return key === item[_rowKey];
|
|
971
853
|
});
|
|
972
|
-
|
|
973
854
|
if (index !== -1) {
|
|
974
855
|
draft.splice(index, 1);
|
|
975
856
|
}
|
|
976
857
|
});
|
|
977
|
-
|
|
978
858
|
setDataSource(_res);
|
|
979
859
|
}
|
|
980
860
|
};
|
|
981
861
|
/** 快捷添加 */
|
|
982
|
-
|
|
983
|
-
|
|
984
862
|
var handleTableRowAdd = function handleTableRowAdd(record, isAppendInChindren) {
|
|
985
863
|
var _a, _b;
|
|
986
|
-
|
|
987
864
|
var preKeys = (_b = (_a = deepDataSourceRef === null || deepDataSourceRef === void 0 ? void 0 : deepDataSourceRef.current) === null || _a === void 0 ? void 0 : _a[record[_rowKey]]) === null || _b === void 0 ? void 0 : _b.preKeys;
|
|
988
865
|
var res = produce(dataSourceRef.current, function (draft) {
|
|
989
866
|
var _a, _b, _c, _d;
|
|
990
|
-
|
|
991
867
|
if (preKeys.length > 1) {
|
|
992
868
|
var deeps = function deeps(children) {
|
|
993
869
|
children === null || children === void 0 ? void 0 : children.forEach(function (item, index) {
|
|
994
870
|
var _a;
|
|
995
|
-
|
|
996
871
|
if (preKeys === null || preKeys === void 0 ? void 0 : preKeys.includes(item[_rowKey])) {
|
|
997
872
|
if (item[_rowKey] === record[_rowKey]) {
|
|
998
873
|
if (isAppendInChindren) {
|
|
@@ -1001,7 +876,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1001
876
|
} else {
|
|
1002
877
|
item.children = [_defineProperty({}, _rowKey, "".concat(Date.now()))];
|
|
1003
878
|
}
|
|
1004
|
-
|
|
1005
879
|
!expandedRowKeys.includes(item[_rowKey]) && setExpandedRowKeys([].concat(_toConsumableArray(expandedRowKeys), [item[_rowKey]]));
|
|
1006
880
|
} else {
|
|
1007
881
|
children.splice(index + 1, 0, _defineProperty({}, _rowKey, "".concat(Date.now())));
|
|
@@ -1012,13 +886,11 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1012
886
|
}
|
|
1013
887
|
});
|
|
1014
888
|
};
|
|
1015
|
-
|
|
1016
889
|
deeps(draft);
|
|
1017
890
|
} else {
|
|
1018
891
|
var index = draft.findIndex(function (item) {
|
|
1019
892
|
return record[_rowKey] === item[_rowKey];
|
|
1020
893
|
});
|
|
1021
|
-
|
|
1022
894
|
if (index !== -1) {
|
|
1023
895
|
if (isAppendInChindren) {
|
|
1024
896
|
if ((_a = draft[index].children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
@@ -1026,7 +898,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1026
898
|
} else {
|
|
1027
899
|
draft[index].children = [_defineProperty({}, _rowKey, "".concat(Date.now()))];
|
|
1028
900
|
}
|
|
1029
|
-
|
|
1030
901
|
!expandedRowKeys.includes((_c = draft[index]) === null || _c === void 0 ? void 0 : _c[_rowKey]) && setExpandedRowKeys([].concat(_toConsumableArray(expandedRowKeys), [(_d = draft[index]) === null || _d === void 0 ? void 0 : _d[_rowKey]]));
|
|
1031
902
|
} else {
|
|
1032
903
|
draft.splice(index + 1, 0, _defineProperty({}, _rowKey, "".concat(Date.now())));
|
|
@@ -1036,7 +907,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1036
907
|
});
|
|
1037
908
|
setDataSource(res);
|
|
1038
909
|
};
|
|
1039
|
-
|
|
1040
910
|
var handleCopy = function handleCopy(key, value) {
|
|
1041
911
|
var res = produce(dataSourceRef.current, function (draft) {
|
|
1042
912
|
draft === null || draft === void 0 ? void 0 : draft.forEach(function (item) {
|
|
@@ -1046,31 +916,24 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1046
916
|
setDataSource(res);
|
|
1047
917
|
};
|
|
1048
918
|
/** 判断columne中有没有带optionOnly参数 */
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
919
|
var hasDisableOptions = useMemo(function () {
|
|
1052
920
|
var hasOnlyOptionsDatas = columns.filter(function (item) {
|
|
1053
921
|
var _a;
|
|
1054
|
-
|
|
1055
922
|
return (_a = item === null || item === void 0 ? void 0 : item['componentProps']) === null || _a === void 0 ? void 0 : _a.optionOnly;
|
|
1056
923
|
});
|
|
1057
|
-
|
|
1058
924
|
if (hasOnlyOptionsDatas.length) {
|
|
1059
925
|
return hasOnlyOptionsDatas === null || hasOnlyOptionsDatas === void 0 ? void 0 : hasOnlyOptionsDatas.map(function (item) {
|
|
1060
926
|
return item['dataIndex'];
|
|
1061
927
|
});
|
|
1062
928
|
}
|
|
1063
|
-
|
|
1064
929
|
return false;
|
|
1065
930
|
}, [columns]);
|
|
1066
931
|
/** 动态获取disabled的props数据源 */
|
|
1067
|
-
|
|
1068
932
|
var DisableOptions = useMemo(function () {
|
|
1069
933
|
var newColumns = columns === null || columns === void 0 ? void 0 : columns.map(function (item) {
|
|
1070
934
|
var _ref5 = item['componentProps'] || {},
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
935
|
+
optionOnly = _ref5.optionOnly,
|
|
936
|
+
options = _ref5.options;
|
|
1074
937
|
if (optionOnly && options) {
|
|
1075
938
|
var dataIndex = item.dataIndex;
|
|
1076
939
|
var dataIndexData = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (d) {
|
|
@@ -1096,7 +959,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1096
959
|
return hasDisableOptions ? [DisableOptions] : [];
|
|
1097
960
|
}, [hasDisableOptions, DisableOptions]);
|
|
1098
961
|
/** 组装之后的最终columns */
|
|
1099
|
-
|
|
1100
962
|
var resultColumns = useMemo(function () {
|
|
1101
963
|
var rColumns = hasDisableOptions ? DisableOptions : columns;
|
|
1102
964
|
var localColumns = [sortOpen ? {
|
|
@@ -1144,31 +1006,24 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1144
1006
|
});
|
|
1145
1007
|
localColumns = [].concat(leftColumns, mainColumns, rightColumns);
|
|
1146
1008
|
/** 为了支持colums中的分组之后,进行递归处理 */
|
|
1147
|
-
|
|
1148
1009
|
var mapColumns = function mapColumns(col, index) {
|
|
1149
1010
|
var _a, _b;
|
|
1150
|
-
|
|
1151
1011
|
if (!col.editable && !((_a = col.children) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
1152
1012
|
return col;
|
|
1153
1013
|
}
|
|
1154
|
-
|
|
1155
1014
|
var newCol = Object.assign(Object.assign({}, col), {
|
|
1156
1015
|
shouldCellUpdate: function shouldCellUpdate(record, prevRecord) {
|
|
1157
1016
|
var _a;
|
|
1158
|
-
|
|
1159
1017
|
var dataIndex = col.dataIndex,
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1018
|
+
editable = col.editable,
|
|
1019
|
+
relevanceCols = col.relevanceCols,
|
|
1020
|
+
componentProps = col.componentProps;
|
|
1164
1021
|
if (componentProps && isFunction(componentProps)) {
|
|
1165
1022
|
return true;
|
|
1166
1023
|
}
|
|
1167
|
-
|
|
1168
1024
|
if ((col === null || col === void 0 ? void 0 : col.fixed) || hasDisableOptions && hasDisableOptions.includes(dataIndex) || ((_a = col.componentProps) === null || _a === void 0 ? void 0 : _a.options) || editable === 'render' || !!relevanceCols || !!shouldUpdate || !!record.children) {
|
|
1169
1025
|
return true;
|
|
1170
1026
|
}
|
|
1171
|
-
|
|
1172
1027
|
return record[dataIndex] !== prevRecord[dataIndex];
|
|
1173
1028
|
},
|
|
1174
1029
|
onCell: function onCell(record, rowIndex) {
|
|
@@ -1198,14 +1053,11 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1198
1053
|
};
|
|
1199
1054
|
}
|
|
1200
1055
|
});
|
|
1201
|
-
|
|
1202
1056
|
if (col === null || col === void 0 ? void 0 : col.children) {
|
|
1203
1057
|
newCol.children = (_b = col.children) === null || _b === void 0 ? void 0 : _b.map(mapColumns);
|
|
1204
1058
|
}
|
|
1205
|
-
|
|
1206
1059
|
return newCol;
|
|
1207
1060
|
};
|
|
1208
|
-
|
|
1209
1061
|
var res = localColumns.map(function (col, index) {
|
|
1210
1062
|
return mapColumns(col, index);
|
|
1211
1063
|
});
|
|
@@ -1213,9 +1065,7 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1213
1065
|
}, [columns, isAdd, sortOpen, useQuickOpetate, sortEditTable, dataSource, _toConsumableArray(memoOptions)]);
|
|
1214
1066
|
var DraggableContainer = useCallback(function (_a) {
|
|
1215
1067
|
var _b;
|
|
1216
|
-
|
|
1217
1068
|
var props = __rest(_a, []);
|
|
1218
|
-
|
|
1219
1069
|
return /*#__PURE__*/React.createElement(DndContainer, {
|
|
1220
1070
|
move: onSortEnd
|
|
1221
1071
|
}, /*#__PURE__*/React.createElement(SortableBox, {
|
|
@@ -1226,16 +1076,12 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1226
1076
|
}, [sortEditTable]);
|
|
1227
1077
|
var colDraggableContainer = useCallback(function (_a) {
|
|
1228
1078
|
var _b;
|
|
1229
|
-
|
|
1230
1079
|
var props = __rest(_a, []);
|
|
1231
|
-
|
|
1232
1080
|
return /*#__PURE__*/React.createElement("tr", null, (_b = React.Children) === null || _b === void 0 ? void 0 : _b.map(props.children, function (child) {
|
|
1233
1081
|
var _a, _b;
|
|
1234
|
-
|
|
1235
1082
|
if ((_b = (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.column) === null || _b === void 0 ? void 0 : _b.fixed) {
|
|
1236
1083
|
return child;
|
|
1237
1084
|
}
|
|
1238
|
-
|
|
1239
1085
|
return /*#__PURE__*/React.createElement(ColSortableItem, {
|
|
1240
1086
|
id: child.key
|
|
1241
1087
|
}, child);
|
|
@@ -1250,13 +1096,11 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1250
1096
|
wrapper: DraggableContainer
|
|
1251
1097
|
} : {})
|
|
1252
1098
|
};
|
|
1253
|
-
|
|
1254
1099
|
if (colSortOpen) {
|
|
1255
1100
|
component['header'] = {
|
|
1256
1101
|
row: colDraggableContainer
|
|
1257
1102
|
};
|
|
1258
1103
|
}
|
|
1259
|
-
|
|
1260
1104
|
return Object.assign({
|
|
1261
1105
|
pagination: false,
|
|
1262
1106
|
tableLayout: 'fixed',
|
|
@@ -1293,7 +1137,6 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1293
1137
|
var isShowAddAction = useMemo(function () {
|
|
1294
1138
|
return isEdit && isAdd || isHoverEdit && isAdd;
|
|
1295
1139
|
}, [isEdit, isAdd, isHoverEdit]);
|
|
1296
|
-
|
|
1297
1140
|
if (colSortOpen) {
|
|
1298
1141
|
return /*#__PURE__*/React.createElement("div", {
|
|
1299
1142
|
className: "lm_editTable_warpper"
|
|
@@ -1334,9 +1177,8 @@ var EditTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1334
1177
|
}, /*#__PURE__*/React.createElement(PlusCircleOutlined, {
|
|
1335
1178
|
className: "lmweb-plus"
|
|
1336
1179
|
}), "\u65B0\u589E"));
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1180
|
+
}
|
|
1181
|
+
// @ts-ignore
|
|
1340
1182
|
return /*#__PURE__*/React.createElement("div", {
|
|
1341
1183
|
className: "lm_editTable_warpper"
|
|
1342
1184
|
}, /*#__PURE__*/React.createElement(Table, Object.assign({}, config, {
|