linkmore-design 1.1.29 → 1.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1237 -0
- package/dist/Affix/demos/basic.d.ts +0 -1
- package/dist/Alert/demos/basic.d.ts +0 -1
- package/dist/Alert/demos/visible.d.ts +0 -1
- package/dist/Approval/demos/basic.d.ts +0 -1
- package/dist/Avatar/demos/basic.d.ts +0 -1
- package/dist/Badge/SingleNumber.d.ts +0 -1
- package/dist/Badge/demos/basic.d.ts +0 -1
- package/dist/Breadcrumb/demos/basic.d.ts +0 -1
- package/dist/Breadcrumb/demos/basic1.d.ts +0 -1
- package/dist/Button/demos/basic.d.ts +0 -1
- package/dist/Button/demos/disabled.d.ts +0 -1
- package/dist/Button/demos/ghost.d.ts +0 -1
- package/dist/Button/demos/icon.d.ts +0 -1
- package/dist/Button/demos/type.d.ts +0 -1
- package/dist/Calendar/demos/basic.d.ts +0 -1
- package/dist/Card/demos/basic.d.ts +0 -1
- package/dist/Carousel/demos/basic.d.ts +0 -1
- package/dist/Cascader/demos/basic.d.ts +0 -1
- package/dist/Cascader/demos/formItem.d.ts +0 -1
- package/dist/Col/demos/basic.d.ts +0 -1
- package/dist/Collapse/demos/basic.d.ts +0 -1
- package/dist/Comment/demos/basic.d.ts +0 -1
- package/dist/ConfigProvider/demos/componentSize.d.ts +0 -1
- package/dist/CustomTableOption/demos/basic.d.ts +0 -1
- package/dist/DatePicker/PickerButton.d.ts +0 -1
- package/dist/DatePicker/PickerTag.d.ts +0 -1
- package/dist/DatePicker/demos/basic.d.ts +0 -1
- package/dist/Descriptions/demos/basic.d.ts +0 -1
- package/dist/Drawer/demos/basic.d.ts +0 -1
- package/dist/Drawer/demos/button.d.ts +0 -1
- package/dist/Drawer/demos/nested.d.ts +0 -1
- package/dist/Dropdown/demos/basic.d.ts +0 -1
- package/dist/Dropdown/demos/button.d.ts +0 -1
- package/dist/Dropdown/demos/icon.d.ts +0 -1
- package/dist/Dropdown/demos/local.d.ts +0 -1
- package/dist/Dropdown/demos/target.d.ts +0 -1
- package/dist/Empty/demos/basic.d.ts +0 -1
- package/dist/Empty/demos/custom.d.ts +0 -1
- package/dist/Empty/empty.d.ts +0 -1
- package/dist/Empty/simple.d.ts +0 -1
- package/dist/Form/demos/disabled.d.ts +0 -1
- package/dist/Form/demos/drawer1152-triple.d.ts +0 -1
- package/dist/Form/demos/drawer440-double.d.ts +0 -1
- package/dist/Form/demos/drawer440.d.ts +0 -1
- package/dist/Form/demos/drawer720-double.d.ts +0 -1
- package/dist/Form/demos/error-tip.d.ts +0 -1
- package/dist/Form/demos/formlist.d.ts +0 -1
- package/dist/Form/demos/horizontal.d.ts +0 -1
- package/dist/Form/demos/inline.d.ts +0 -1
- package/dist/Form/demos/modal416.d.ts +0 -1
- package/dist/Form/demos/modal552-double.d.ts +0 -1
- package/dist/Form/demos/responsive.d.ts +0 -1
- package/dist/Form/demos/ruleTime.d.ts +0 -1
- package/dist/Form/demos/vertical.d.ts +0 -1
- package/dist/FullScreen/demos/basic.d.ts +0 -1
- package/dist/FullScreen/demos/useInModal.d.ts +0 -1
- package/dist/Grid/demos/basic.d.ts +0 -1
- package/dist/IconFont/index.d.ts +0 -1
- package/dist/Image/demos/basic.d.ts +0 -1
- package/dist/ImageViewer/components/Arrows.d.ts +0 -1
- package/dist/ImageViewer/components/Carousel.d.ts +0 -1
- package/dist/ImageViewer/components/Operate.d.ts +0 -1
- package/dist/ImageViewer/components/Thumb.d.ts +0 -1
- package/dist/Input/demos/after.d.ts +0 -1
- package/dist/Input/demos/base.d.ts +0 -1
- package/dist/Input/demos/basic.d.ts +0 -1
- package/dist/Input/demos/color.d.ts +0 -1
- package/dist/Input/demos/combination.d.ts +0 -1
- package/dist/Input/demos/import.d.ts +0 -1
- package/dist/Input/demos/line.d.ts +0 -1
- package/dist/Input/demos/password.d.ts +0 -1
- package/dist/Input/demos/size.d.ts +0 -1
- package/dist/InputNumber/demos/basic.d.ts +0 -1
- package/dist/InputNumber/demos/format.d.ts +0 -1
- package/dist/InputNumber/demos/price.d.ts +0 -1
- package/dist/InputNumber/demos/status.d.ts +0 -1
- package/dist/InputNumber/demos/suffix.d.ts +0 -1
- package/dist/Layout/demos/basic.d.ts +0 -1
- package/dist/List/demos/basic.d.ts +0 -1
- package/dist/LmDrag/components/DndContainer.d.ts +0 -1
- package/dist/LmDrag/demos/basic.d.ts +0 -1
- package/dist/LmEditTable/DragHandle.d.ts +0 -1
- package/dist/LmEditTable/EditTable.d.ts +1 -0
- package/dist/LmEditTable/components/DraggableContainer.d.ts +0 -1
- package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +0 -1
- package/dist/LmEditTable/components/customRenderEmpty.d.ts +0 -1
- package/dist/LmEditTable/components/index.d.ts +0 -1
- package/dist/LmEditTable/demos/basic.d.ts +0 -1
- package/dist/LmEditTable/demos/colsort.d.ts +0 -1
- package/dist/LmEditTable/demos/group.d.ts +0 -1
- package/dist/LmEditTable/demos/priceTable.d.ts +0 -1
- package/dist/LmEditTable/demos/sinleEdit.d.ts +0 -1
- package/dist/LmEditTable/demos/size.d.ts +0 -1
- package/dist/LmEditTable/sortableBox.d.ts +0 -1
- package/dist/LmEditTable/sortableBoxCol.d.ts +0 -1
- package/dist/LmEditTable/sortableItemCol.d.ts +0 -1
- package/dist/LmSelect/GhostSelect.d.ts +0 -1
- package/dist/LmSelect/demos/basic.d.ts +0 -1
- package/dist/LmSelect/demos/checkbox.d.ts +0 -1
- package/dist/LmSelect/demos/ghost.d.ts +0 -1
- package/dist/LmSelect/useCheckboxOptions.d.ts +0 -1
- package/dist/LmTable/components/Item/components/Remove/index.d.ts +0 -1
- package/dist/LmTable/components/customRenderEmpty.d.ts +0 -1
- package/dist/LmTable/components/inputDataEdit.d.ts +0 -1
- package/dist/LmTable/components/tableChartsModal.d.ts +0 -1
- package/dist/LmUpload/UploadList/ItemPicture.d.ts +0 -1
- package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +0 -1
- package/dist/LmUpload/UploadList/ItemText.d.ts +0 -1
- package/dist/LmUpload/view/index.d.ts +0 -1
- package/dist/LmUpload/wrapper/Upload.d.ts +0 -1
- package/dist/Mentions/demos/basic.d.ts +0 -1
- package/dist/Menu/demos/basic.d.ts +0 -1
- package/dist/Modal/demos/basic.d.ts +0 -1
- package/dist/Modal/demos/info.d.ts +0 -1
- package/dist/Modal/demos/locale.d.ts +0 -1
- package/dist/PageHeader/demos/basic.d.ts +0 -1
- package/dist/Pagination/demos/basic.d.ts +0 -1
- package/dist/Popconfirm/demos/basic.d.ts +0 -1
- package/dist/Popover/demos/basic.d.ts +0 -1
- package/dist/Popover/demos/basic1.d.ts +0 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Progress/demos/basic.d.ts +0 -1
- package/dist/Progress/demos/circle.d.ts +0 -1
- package/dist/Progress/demos/dynamic.d.ts +0 -1
- package/dist/Progress/demos/small.d.ts +0 -1
- package/dist/QuickMenu/demos/basic.d.ts +0 -1
- package/dist/QuickMenu/demos/useInDraw.d.ts +0 -1
- package/dist/Rate/demos/basic.d.ts +0 -1
- package/dist/Result/demos/403.d.ts +0 -1
- package/dist/Result/demos/404.d.ts +0 -1
- package/dist/Result/demos/500.d.ts +0 -1
- package/dist/Result/demos/basic.d.ts +0 -1
- package/dist/Result/demos/customicon.d.ts +0 -1
- package/dist/Result/demos/error.d.ts +0 -1
- package/dist/Result/demos/info.d.ts +0 -1
- package/dist/Result/demos/success.d.ts +0 -1
- package/dist/Result/demos/warning.d.ts +0 -1
- package/dist/Result/noFound.d.ts +0 -1
- package/dist/Result/serverError.d.ts +0 -1
- package/dist/Result/unauthorized.d.ts +0 -1
- package/dist/Row/demos/basic.d.ts +0 -1
- package/dist/Segmented/demos/basic.d.ts +0 -1
- package/dist/Select/demos/basic.d.ts +0 -1
- package/dist/Select/demos/bordered.d.ts +0 -1
- package/dist/Select/demos/formItem.d.ts +0 -1
- package/dist/Skeleton/demos/basic.d.ts +0 -1
- package/dist/Slider/demos/basic.d.ts +0 -1
- package/dist/Space/demos/auto.d.ts +0 -1
- package/dist/Space/demos/basic.d.ts +0 -1
- package/dist/Space/demos/vertical.d.ts +0 -1
- package/dist/Spin/demos/basic.d.ts +0 -1
- package/dist/Spin/demos/size.d.ts +0 -1
- package/dist/Statistic/demos/basic.d.ts +0 -1
- package/dist/Steps/demos/basic.d.ts +0 -1
- package/dist/Switch/demos/basic.d.ts +0 -1
- package/dist/Switch/demos/table.d.ts +0 -1
- package/dist/Table/demos/basic.d.ts +0 -1
- package/dist/Tabs/demos/basic.d.ts +0 -1
- package/dist/Tabs/demos/nobroder.d.ts +0 -1
- package/dist/Tag/demos/CheckableTag.d.ts +0 -1
- package/dist/Tag/demos/ExigencyTag.d.ts +0 -1
- package/dist/Tag/demos/add.d.ts +0 -1
- package/dist/Tag/demos/basic.d.ts +0 -1
- package/dist/Tag/demos/border.d.ts +0 -1
- package/dist/Tag/demos/colors.d.ts +0 -1
- package/dist/Timeline/demos/basic.d.ts +0 -1
- package/dist/Tooltip/demos/basic.d.ts +0 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Transfer/demos/basic.d.ts +0 -1
- package/dist/Tree/demos/basic.d.ts +0 -1
- package/dist/Tree/demos/controlled.d.ts +0 -1
- package/dist/Tree/demos/search.d.ts +0 -1
- package/dist/Tree/demos/sort.d.ts +0 -1
- package/dist/Tree/utils/dropIndicator.d.ts +0 -1
- package/dist/TreeSelect/demos/basic.d.ts +0 -1
- package/dist/TreeSelect/demos/formItem.d.ts +0 -1
- package/dist/Typography/demos/basic.d.ts +0 -1
- package/dist/hooks/useFullscreen/demos/basic.d.ts +0 -1
- package/dist/hooks/useFullscreen/demos/useInModal.d.ts +0 -1
- package/dist/index.umd.css +1224 -283
- package/dist/index.umd.js +158014 -137322
- package/dist/index.umd.min.css +2 -2
- package/dist/index.umd.min.js +25 -21
- package/dist/locale-provider/index.d.ts +2 -2
- package/dist/message/demos/basic.d.ts +0 -1
- package/dist/message/demos/other.d.ts +0 -1
- package/dist/notification/demos/basic.d.ts +0 -1
- package/dist/notification/demos/button.d.ts +0 -1
- package/dist/notification/demos/icon.d.ts +0 -1
- package/es/Affix/index.js +90 -37
- package/es/Affix/utils.js +13 -6
- package/es/Alert/ErrorBoundary.js +15 -5
- package/es/Alert/index.js +64 -42
- package/es/Approval/handle.js +27 -10
- package/es/Approval/index.js +120 -63
- package/es/Approval/type.js +24 -0
- package/es/Approval/util.js +24 -4
- package/es/AutoComplete/index.js +20 -9
- package/es/Badge/Ribbon.js +16 -9
- package/es/Badge/ScrollNumber.js +28 -17
- package/es/Badge/SingleNumber.d.ts +0 -1
- package/es/Badge/SingleNumber.js +38 -23
- package/es/Badge/index.js +68 -44
- package/es/Badge/utils.js +2 -2
- package/es/Box/body/Item.js +3 -1
- package/es/Box/body/OverflowList.js +2 -2
- package/es/Box/wrapper/BoxContainer.js +12 -8
- package/es/Box/wrapper/BoxRoot.js +7 -5
- package/es/Box/wrapper/reducer.js +4 -2
- package/es/Button/index.js +17 -10
- package/es/ButtonTags/ButtonTags.js +15 -6
- package/es/ButtonTags/index.js +3 -0
- package/es/CardTable/LmCardTable.js +28 -19
- package/es/CardTable/body/TableBody.js +26 -17
- package/es/CardTable/body/TableBodyCell.js +17 -9
- package/es/CardTable/body/TableBodyRow.js +19 -13
- package/es/CardTable/card/PictureTextColumn.js +28 -18
- package/es/CardTable/card/PictureTextRow.js +31 -18
- package/es/CardTable/card/PictureTextRowOperate.js +30 -17
- package/es/CardTable/context.js +5 -0
- package/es/CardTable/empty.js +6 -1
- package/es/CardTable/fns/index.js +36 -22
- package/es/CardTable/footer.js +15 -4
- package/es/CardTable/hooks/usePagination.js +50 -35
- package/es/CardTable/index.js +5 -0
- package/es/CardTable/pager/TablePagination.js +15 -8
- package/es/CardTable/pager/index.js +13 -6
- package/es/CardTable/table/Table.js +6 -2
- package/es/CardTable/table/TableContainer.js +23 -14
- package/es/CardTable/table/TableRoot.js +65 -45
- package/es/CardTable/table/TableWrapper.js +9 -2
- package/es/CardTable/toolbar/ToolBarBottom.js +8 -3
- package/es/CardTable/utils.js +9 -3
- package/es/Cascader/index.js +21 -11
- package/es/Checkbox/index.js +18 -7
- package/es/ConfigProvider/DisabledContext.js +1 -1
- package/es/ConfigProvider/SizeContext.js +1 -1
- package/es/ConfigProvider/context.js +10 -4
- package/es/ConfigProvider/cssVariables.js +25 -16
- package/es/ConfigProvider/defaultRenderEmpty.js +6 -0
- package/es/ConfigProvider/index.js +55 -30
- package/es/CropImg/body/Operate.js +19 -10
- package/es/CropImg/body/index.js +8 -6
- package/es/CropImg/fns/index.js +11 -10
- package/es/CropImg/utils.js +45 -27
- package/es/CropImg/wrapper/Container.js +20 -9
- package/es/CropImg/wrapper/Root.js +16 -13
- package/es/CropImg/wrapper/Wrapper.js +2 -0
- package/es/CropImg/wrapper/reducer.js +9 -5
- package/es/CustomTableOption/cardSort.js +49 -24
- package/es/CustomTableOption/columnsSort.js +63 -29
- package/es/CustomTableOption/filterSort.js +53 -28
- package/es/CustomTableOption/index.js +31 -18
- package/es/CustomerService/components/question.js +20 -3
- package/es/CustomerService/index.js +46 -18
- package/es/DatePicker/PickerButton.d.ts +0 -1
- package/es/DatePicker/PickerTag.d.ts +0 -1
- package/es/DatePicker/generatePicker/generateRangePicker.js +33 -23
- package/es/DatePicker/generatePicker/generateSinglePicker.js +37 -22
- package/es/DatePicker/generatePicker/index.js +25 -12
- package/es/DatePicker/util.js +17 -0
- package/es/Descriptions/Cell.js +17 -11
- package/es/Descriptions/Item.js +1 -0
- package/es/Descriptions/Row.js +31 -24
- package/es/Descriptions/index.js +46 -27
- package/es/Divider/index.js +21 -12
- package/es/Drawer/index.js +11 -4
- package/es/Dropdown/index.js +40 -19
- package/es/EditTable/EditTable.js +171 -75
- package/es/EditTable/index.js +3 -0
- package/es/Empty/empty.js +4 -1
- package/es/Empty/index.js +22 -11
- package/es/Empty/simple.js +4 -1
- package/es/EnlargeImg/index.js +43 -17
- package/es/Filter/Popover.js +65 -29
- package/es/Filter/baseFilter/Popover.js +70 -28
- package/es/Filter/baseFilter/ToggleFilter.js +25 -9
- package/es/Filter/baseFilter/index.js +28 -8
- package/es/Filter/complex/ComplexFilter.js +47 -16
- package/es/Filter/complex/ComplexItem.js +47 -24
- package/es/Filter/components/Checkbox.js +34 -14
- package/es/Filter/components/Date.js +30 -10
- package/es/Filter/components/Input.js +23 -7
- package/es/Filter/components/Select.js +33 -13
- package/es/Filter/components/Tree.js +24 -8
- package/es/Filter/components/header.js +17 -3
- package/es/Filter/components/index.js +6 -0
- package/es/Filter/context.js +4 -0
- package/es/Filter/edit/editFilter.js +78 -41
- package/es/Filter/index.js +43 -21
- package/es/Filter/popContext.js +4 -0
- package/es/Filter/remember.js +41 -18
- package/es/Form/ErrorList.js +22 -16
- package/es/Form/Form.js +49 -27
- package/es/Form/FormItem/ItemHolder.js +42 -26
- package/es/Form/FormItem/index.js +118 -70
- package/es/Form/FormItemInput.js +16 -14
- package/es/Form/FormItemLabel.js +43 -24
- package/es/Form/FormList.js +11 -3
- package/es/Form/FormWrapper.js +4 -0
- package/es/Form/WrapperItem.js +70 -34
- package/es/Form/container.js +25 -12
- package/es/Form/context.js +5 -2
- package/es/Form/hooks/useDebounce.js +4 -3
- package/es/Form/hooks/useForm.js +7 -2
- package/es/Form/hooks/useFormInstance.js +2 -1
- package/es/Form/hooks/useFormItemStatus.js +4 -1
- package/es/Form/hooks/useFrameState.js +8 -3
- package/es/Form/hooks/useItemRef.js +6 -1
- package/es/Form/index.js +2 -0
- package/es/Form/util.js +6 -2
- package/es/FullScreen/index.js +6 -3
- package/es/Grid/col.js +41 -21
- package/es/Grid/hooks/useBreakpoint.js +3 -0
- package/es/Grid/index.js +3 -2
- package/es/Grid/row.js +49 -31
- package/es/Icon/index.js +4 -0
- package/es/IconFont/font/iconfont.js +16 -10
- package/es/IconFont/index.js +4 -1
- package/es/IconSelect/index.js +29 -12
- package/es/ImageViewer/LmImageViewer.js +6 -0
- package/es/ImageViewer/components/Arrows.js +7 -1
- package/es/ImageViewer/components/Carousel.js +15 -13
- package/es/ImageViewer/components/Operate.js +4 -0
- package/es/ImageViewer/components/Thumb.js +10 -3
- package/es/ImageViewer/fns/index.js +26 -17
- package/es/ImageViewer/wrapeer/Container.js +5 -1
- package/es/ImageViewer/wrapeer/Root.js +19 -14
- package/es/ImageViewer/wrapeer/Wrapper.js +5 -1
- package/es/ImageViewer/wrapeer/reducer.js +13 -6
- package/es/Input/index.js +37 -30
- package/es/InputNumber/index.js +13 -9
- package/es/LeftTable/index.js +49 -25
- package/es/LmDrag/LmDrag.js +6 -0
- package/es/LmDrag/components/DndContainer.js +38 -22
- package/es/LmDrag/components/sortableBox.js +5 -4
- package/es/LmDrag/components/sortableItem.js +17 -13
- package/es/LmDrag/wrapper/Root.js +2 -0
- package/es/LmEditTable/DndContainer.js +33 -22
- package/es/LmEditTable/DragHandle.js +6 -4
- package/es/LmEditTable/EditTable.d.ts +1 -0
- package/es/LmEditTable/EditTable.js +367 -148
- package/es/LmEditTable/components/DraggableContainer.js +12 -6
- package/es/LmEditTable/components/QuickOpetate.js +12 -7
- package/es/LmEditTable/components/bottomOpetateComponent.js +6 -4
- package/es/LmEditTable/components/customRenderEmpty.js +4 -1
- package/es/LmEditTable/hooks/useForkRef.js +3 -0
- package/es/LmEditTable/rowSort/DndContainerRow.js +36 -24
- package/es/LmEditTable/sortableBox.js +3 -1
- package/es/LmEditTable/sortableBoxCol.js +3 -1
- package/es/LmEditTable/sortableItem.js +19 -10
- package/es/LmEditTable/sortableItemCol.d.ts +0 -1
- package/es/LmEditTable/sortableItemCol.js +21 -16
- package/es/LmEditTable/util.js +46 -6
- package/es/LmEditTable/virtual/VirtualRow.js +46 -26
- package/es/LmEditTable/virtual/VirtualRow2.js +15 -7
- package/es/LmEditTable/virtual/VirtualTable.js +14 -10
- package/es/LmEditTable/virtual/VirtualWrapper.js +13 -6
- package/es/LmEditTable/virtual/context.js +15 -5
- package/es/LmFilter/Controls/CheckboxTags.js +12 -2
- package/es/LmFilter/Controls/index.js +24 -10
- package/es/LmFilter/LmFilter.js +14 -4
- package/es/LmFilter/baseFilter/fuzzySearch.js +18 -8
- package/es/LmFilter/baseFilter/index.js +7 -2
- package/es/LmFilter/clearFilter/index.js +9 -2
- package/es/LmFilter/complexFilter/drawer.js +76 -47
- package/es/LmFilter/complexFilter/index.js +14 -2
- package/es/LmFilter/complexFilter/valueDrawer.js +46 -14
- package/es/LmFilter/components/CascaderFilter.js +52 -27
- package/es/LmFilter/components/CheckboxFilter.js +52 -39
- package/es/LmFilter/components/CustomSelectFilter.js +38 -20
- package/es/LmFilter/components/DateFilter.js +39 -23
- package/es/LmFilter/components/DropdownFIlter.js +82 -49
- package/es/LmFilter/components/EmptyFilter.js +5 -0
- package/es/LmFilter/components/InputFilter.js +13 -5
- package/es/LmFilter/components/InputSearchClose.js +22 -10
- package/es/LmFilter/components/SelectFilter.js +37 -21
- package/es/LmFilter/components/index.js +34 -23
- package/es/LmFilter/customFilter/drawer.js +72 -37
- package/es/LmFilter/customFilter/index.js +24 -11
- package/es/LmFilter/customFilter/saveModal.js +36 -12
- package/es/LmFilter/customFilter/valueDrawer.js +45 -14
- package/es/LmFilter/filterFns/index.js +192 -131
- package/es/LmFilter/hooks/index.js +2 -0
- package/es/LmFilter/hooks/useDelayedFn.js +5 -2
- package/es/LmFilter/index.js +3 -0
- package/es/LmFilter/localization.js +1 -2
- package/es/LmFilter/utils.js +47 -21
- package/es/LmFilter/wrapper/Filter.js +13 -4
- package/es/LmFilter/wrapper/FilterContainer.js +5 -1
- package/es/LmFilter/wrapper/FilterRoot.js +62 -40
- package/es/LmFilter/wrapper/FilterWrapper.js +5 -1
- package/es/LmImgList/body/Banner.js +17 -13
- package/es/LmImgList/body/Thumb.js +9 -4
- package/es/LmImgList/fns/index.js +23 -15
- package/es/LmImgList/wrapper/Container.js +13 -9
- package/es/LmImgList/wrapper/Root.js +16 -13
- package/es/LmImgList/wrapper/reducer.js +11 -6
- package/es/LmSelect/GhostSelect.js +150 -99
- package/es/LmSelect/NormalSelect.js +30 -20
- package/es/LmSelect/index.js +7 -1
- package/es/LmSelect/useCheckboxOptions.js +27 -17
- package/es/LmSelect/utils.js +22 -20
- package/es/LmTable/Table.js +488 -287
- package/es/LmTable/VList.js +170 -109
- package/es/LmTable/autosize.js +43 -16
- package/es/LmTable/chartUtil.js +14 -4
- package/es/LmTable/common/index.js +7 -1
- package/es/LmTable/components/CalcExpression.js +30 -11
- package/es/LmTable/components/Container/Container.js +22 -18
- package/es/LmTable/components/DndContainer.js +212 -132
- package/es/LmTable/components/HeaderCol.js +22 -13
- package/es/LmTable/components/Item/Item.js +26 -22
- package/es/LmTable/components/Item/components/Action/Action.js +8 -4
- package/es/LmTable/components/Item/components/Remove/index.d.ts +0 -1
- package/es/LmTable/components/SortableBox.js +6 -1
- package/es/LmTable/components/customRenderEmpty.js +4 -1
- package/es/LmTable/components/inputDataEdit.js +8 -3
- package/es/LmTable/components/sheelTableCell.js +57 -32
- package/es/LmTable/components/tableChartsModal.js +30 -23
- package/es/LmTable/context.js +3 -0
- package/es/LmTable/detectElementResize.js +48 -15
- package/es/LmTable/expression.js +24 -4
- package/es/LmTable/hooks/useDndItems.js +65 -24
- package/es/LmTable/hooks/useGroupDataSource.js +6 -1
- package/es/LmTable/hooks/useResizeObserver.js +18 -13
- package/es/LmTable/hooks/useRowSelectControllableValue.js +20 -6
- package/es/LmTable/index.js +3 -0
- package/es/LmTable/multipleContainersKeyboardCoordinates.js +30 -5
- package/es/LmTable/resetConfig.js +8 -8
- package/es/LmTable/testDemos/group.js +21 -5
- package/es/LmTable/util.js +94 -27
- package/es/LmTable/virTual/VirtualRow.js +42 -25
- package/es/LmTable/virTual/VirtualTable.js +21 -12
- package/es/LmTable/virTual/VirtualWrapper.js +14 -7
- package/es/LmTable/virTual/context.js +15 -5
- package/es/LmUpload/LmUpload.js +17 -11
- package/es/LmUpload/UploadList/ItemPicture.js +9 -8
- package/es/LmUpload/UploadList/ItemPictureCard.js +38 -23
- package/es/LmUpload/UploadList/ItemText.js +7 -5
- package/es/LmUpload/UploadList/RenderItem.js +7 -1
- package/es/LmUpload/UploadList/index.js +19 -11
- package/es/LmUpload/body/Progress.js +2 -0
- package/es/LmUpload/body/UploadCore.js +16 -10
- package/es/LmUpload/body/UploadPicture.js +5 -4
- package/es/LmUpload/components/Crop.js +5 -3
- package/es/LmUpload/components/Preview.js +10 -7
- package/es/LmUpload/fns/index.js +108 -57
- package/es/LmUpload/utils.js +15 -12
- package/es/LmUpload/view/index.js +2 -0
- package/es/LmUpload/wrapper/Upload.js +2 -0
- package/es/LmUpload/wrapper/UploadContainer.js +5 -1
- package/es/LmUpload/wrapper/UploadRoot.js +18 -13
- package/es/LmUpload/wrapper/UploadWrapper.js +2 -0
- package/es/LmUpload/wrapper/reducer.js +11 -6
- package/es/LoadingPage/index.js +7 -1
- package/es/Locale/ku_IQ.js +2 -2
- package/es/Modal/index.js +32 -11
- package/es/PageHeader/index.js +44 -22
- package/es/Pagination/index.js +13 -4
- package/es/Popover/index.d.ts +1 -1
- package/es/Popover/index.js +14 -5
- package/es/QuickMenu/index.js +45 -18
- package/es/Radio/index.js +24 -10
- package/es/Result/index.js +26 -16
- package/es/Result/noFound.js +2 -0
- package/es/Result/serverError.js +2 -0
- package/es/Result/unauthorized.js +2 -0
- package/es/Select/index.js +31 -20
- package/es/Switch/index.js +11 -4
- package/es/Tabs/TabPane.js +2 -0
- package/es/Tabs/hooks/useAnimateConfig.js +3 -0
- package/es/Tabs/hooks/useLegacyItems.js +12 -3
- package/es/Tabs/index.js +27 -15
- package/es/Tabs/index.old.js +11 -4
- package/es/Tag/index.js +13 -5
- package/es/Tooltip/index.d.ts +1 -1
- package/es/Tooltip/index.js +66 -34
- package/es/Tree/DirectoryTree.js +61 -31
- package/es/Tree/Tree.js +21 -14
- package/es/Tree/index.js +5 -1
- package/es/Tree/utils/dictUtil.js +21 -4
- package/es/Tree/utils/dropIndicator.d.ts +0 -1
- package/es/Tree/utils/dropIndicator.js +10 -5
- package/es/Tree/utils/iconUtil.js +13 -2
- package/es/TreeSelect/index.js +24 -15
- package/es/Typography/Base/Ellipsis.js +52 -25
- package/es/Typography/Base/EllipsisTooltip.js +8 -3
- package/es/Typography/Base/index.js +173 -104
- package/es/Typography/Editable.js +34 -21
- package/es/Typography/Link.js +11 -4
- package/es/Typography/Paragraph.js +2 -0
- package/es/Typography/Text.js +9 -1
- package/es/Typography/Title.js +10 -2
- package/es/Typography/Typography.js +23 -11
- package/es/Typography/hooks/useUpdatedEffect.js +1 -0
- package/es/Upload/index.js +6 -2
- package/es/UploadOss/index.js +4 -0
- package/es/UploadOss/uploadBtn.js +54 -32
- package/es/UploadOss/uploadImg.js +86 -58
- package/es/VirtualList/index.js +27 -18
- package/es/_util/colors.js +2 -2
- package/es/_util/domTarget.js +3 -0
- package/es/_util/getDataOrAriaProps.js +1 -0
- package/es/_util/getRenderPropValue.js +3 -0
- package/es/_util/hooks/useFlexGapSupport.js +4 -3
- package/es/_util/hooks/useForceUpdate.js +5 -4
- package/es/_util/motion.js +11 -2
- package/es/_util/placements.js +8 -7
- package/es/_util/responsiveObserve.js +5 -0
- package/es/_util/statusUtils.js +1 -0
- package/es/_util/styleChecker.js +9 -6
- package/es/_util/throttleByAnimationFrame.js +6 -0
- package/es/_util/transButton.js +15 -3
- package/es/_util/type.js +2 -0
- package/es/_util/warning.js +6 -4
- package/es/hooks/useEvent/index.js +7 -6
- package/es/hooks/useFullscreen/index.js +29 -7
- package/es/locale-provider/LocaleReceiver.js +12 -4
- package/es/locale-provider/index.d.ts +2 -2
- package/es/locale-provider/index.js +12 -3
- package/es/message/hooks/useMessage.js +17 -8
- package/es/message/index.js +36 -8
- package/es/notification/hooks/useNotification.js +12 -8
- package/es/notification/index.js +67 -31
- package/es/services/newRequest.js +47 -18
- package/es/services/utils.js +15 -0
- package/lib/Affix/index.js +104 -37
- package/lib/Affix/utils.js +22 -6
- package/lib/Alert/ErrorBoundary.js +21 -5
- package/lib/Alert/index.js +78 -42
- package/lib/Approval/handle.js +37 -10
- package/lib/Approval/index.js +131 -63
- package/lib/Approval/type.js +24 -0
- package/lib/Approval/util.js +30 -4
- package/lib/AutoComplete/index.js +34 -10
- package/lib/Avatar/index.js +4 -0
- package/lib/Badge/Ribbon.js +23 -9
- package/lib/Badge/ScrollNumber.js +35 -17
- package/lib/Badge/SingleNumber.d.ts +0 -1
- package/lib/Badge/SingleNumber.js +43 -23
- package/lib/Badge/index.js +79 -44
- package/lib/Badge/utils.js +2 -0
- package/lib/Box/LmBox.js +5 -0
- package/lib/Box/body/Item.js +7 -1
- package/lib/Box/body/List.js +6 -0
- package/lib/Box/body/OverflowList.js +4 -0
- package/lib/Box/index.js +3 -0
- package/lib/Box/wrapper/BoxContainer.js +19 -8
- package/lib/Box/wrapper/BoxRoot.js +14 -5
- package/lib/Box/wrapper/BoxWrapper.js +5 -0
- package/lib/Box/wrapper/reducer.js +8 -2
- package/lib/Breadcrumb/index.js +4 -0
- package/lib/Button/index.js +25 -10
- package/lib/ButtonTags/ButtonTags.js +15 -6
- package/lib/ButtonTags/index.js +3 -0
- package/lib/Calendar/index.js +4 -0
- package/lib/Card/index.js +4 -0
- package/lib/CardTable/LmCardTable.js +28 -19
- package/lib/CardTable/body/TableBody.js +26 -17
- package/lib/CardTable/body/TableBodyCell.js +17 -9
- package/lib/CardTable/body/TableBodyRow.js +19 -13
- package/lib/CardTable/card/PictureTextColumn.js +28 -18
- package/lib/CardTable/card/PictureTextRow.js +31 -18
- package/lib/CardTable/card/PictureTextRowOperate.js +30 -17
- package/lib/CardTable/context.js +5 -0
- package/lib/CardTable/empty.js +6 -1
- package/lib/CardTable/fns/index.js +36 -22
- package/lib/CardTable/footer.js +15 -4
- package/lib/CardTable/hooks/usePagination.js +50 -35
- package/lib/CardTable/index.js +5 -0
- package/lib/CardTable/pager/TablePagination.js +15 -8
- package/lib/CardTable/pager/index.js +13 -6
- package/lib/CardTable/table/Table.js +6 -2
- package/lib/CardTable/table/TableContainer.js +23 -14
- package/lib/CardTable/table/TableRoot.js +65 -45
- package/lib/CardTable/table/TableWrapper.js +9 -2
- package/lib/CardTable/toolbar/ToolBarBottom.js +8 -3
- package/lib/CardTable/utils.js +9 -3
- package/lib/Carousel/index.js +4 -0
- package/lib/Cascader/index.js +30 -11
- package/lib/Checkbox/index.js +18 -7
- package/lib/Col/index.js +2 -0
- package/lib/Collapse/index.js +4 -0
- package/lib/Comment/index.js +4 -0
- package/lib/ConfigProvider/DisabledContext.js +6 -1
- package/lib/ConfigProvider/SizeContext.js +6 -1
- package/lib/ConfigProvider/context.js +13 -4
- package/lib/ConfigProvider/cssVariables.js +34 -17
- package/lib/ConfigProvider/defaultRenderEmpty.js +12 -0
- package/lib/ConfigProvider/index.js +75 -30
- package/lib/CropImg/LmCropImg.js +5 -0
- package/lib/CropImg/body/Operate.js +23 -10
- package/lib/CropImg/body/index.js +13 -6
- package/lib/CropImg/fns/index.js +12 -8
- package/lib/CropImg/index.js +3 -0
- package/lib/CropImg/utils.js +45 -27
- package/lib/CropImg/wrapper/Container.js +26 -7
- package/lib/CropImg/wrapper/Root.js +24 -13
- package/lib/CropImg/wrapper/Wrapper.js +6 -0
- package/lib/CropImg/wrapper/reducer.js +12 -5
- package/lib/CustomTableOption/cardSort.js +60 -24
- package/lib/CustomTableOption/columnsSort.js +77 -29
- package/lib/CustomTableOption/filterSort.js +65 -28
- package/lib/CustomTableOption/index.js +44 -18
- package/lib/CustomerService/components/question.js +20 -3
- package/lib/CustomerService/index.js +46 -18
- package/lib/DatePicker/PickerButton.d.ts +0 -1
- package/lib/DatePicker/PickerButton.js +4 -0
- package/lib/DatePicker/PickerTag.d.ts +0 -1
- package/lib/DatePicker/PickerTag.js +4 -0
- package/lib/DatePicker/generatePicker/generateRangePicker.js +52 -23
- package/lib/DatePicker/generatePicker/generateSinglePicker.js +56 -22
- package/lib/DatePicker/generatePicker/index.js +33 -12
- package/lib/DatePicker/index.js +6 -0
- package/lib/DatePicker/util.js +20 -0
- package/lib/Descriptions/Cell.js +22 -11
- package/lib/Descriptions/Item.js +2 -0
- package/lib/Descriptions/Row.js +36 -24
- package/lib/Descriptions/index.js +61 -28
- package/lib/Divider/index.js +28 -12
- package/lib/Drawer/index.js +16 -4
- package/lib/Dropdown/index.js +48 -19
- package/lib/EditTable/EditTable.js +171 -75
- package/lib/EditTable/index.js +3 -0
- package/lib/Empty/empty.js +7 -1
- package/lib/Empty/index.js +33 -11
- package/lib/Empty/simple.js +7 -1
- package/lib/EnlargeImg/index.js +43 -17
- package/lib/Filter/Popover.js +65 -29
- package/lib/Filter/baseFilter/Popover.js +70 -28
- package/lib/Filter/baseFilter/ToggleFilter.js +25 -9
- package/lib/Filter/baseFilter/index.js +28 -8
- package/lib/Filter/complex/ComplexFilter.js +47 -16
- package/lib/Filter/complex/ComplexItem.js +47 -24
- package/lib/Filter/components/Checkbox.js +34 -14
- package/lib/Filter/components/Date.js +30 -10
- package/lib/Filter/components/Input.js +23 -7
- package/lib/Filter/components/Select.js +33 -13
- package/lib/Filter/components/Tree.js +24 -8
- package/lib/Filter/components/header.js +17 -3
- package/lib/Filter/components/index.js +6 -0
- package/lib/Filter/context.js +4 -0
- package/lib/Filter/edit/editFilter.js +78 -41
- package/lib/Filter/index.js +43 -21
- package/lib/Filter/popContext.js +4 -0
- package/lib/Filter/remember.js +41 -18
- package/lib/Form/ErrorList.js +34 -16
- package/lib/Form/Form.js +62 -27
- package/lib/Form/FormItem/ItemHolder.js +60 -26
- package/lib/Form/FormItem/index.js +138 -70
- package/lib/Form/FormItemInput.js +23 -14
- package/lib/Form/FormItemLabel.js +55 -24
- package/lib/Form/FormList.js +18 -3
- package/lib/Form/FormWrapper.js +8 -0
- package/lib/Form/WrapperItem.js +79 -34
- package/lib/Form/container.js +32 -12
- package/lib/Form/context.js +15 -2
- package/lib/Form/hooks/useDebounce.js +9 -3
- package/lib/Form/hooks/useForm.js +14 -2
- package/lib/Form/hooks/useFormInstance.js +5 -1
- package/lib/Form/hooks/useFormItemStatus.js +8 -1
- package/lib/Form/hooks/useFrameState.js +16 -3
- package/lib/Form/hooks/useItemRef.js +13 -1
- package/lib/Form/index.js +13 -0
- package/lib/Form/util.js +9 -2
- package/lib/FullScreen/index.js +10 -3
- package/lib/Grid/RowContext.js +2 -0
- package/lib/Grid/col.js +48 -21
- package/lib/Grid/hooks/useBreakpoint.js +8 -0
- package/lib/Grid/index.js +7 -0
- package/lib/Grid/row.js +62 -31
- package/lib/Icon/index.js +4 -0
- package/lib/IconFont/font/iconfont.js +16 -10
- package/lib/IconFont/index.js +11 -1
- package/lib/IconSelect/index.js +29 -12
- package/lib/Image/index.js +4 -0
- package/lib/ImageViewer/LmImageViewer.js +11 -0
- package/lib/ImageViewer/components/Arrows.js +10 -1
- package/lib/ImageViewer/components/Carousel.js +18 -13
- package/lib/ImageViewer/components/Operate.js +7 -0
- package/lib/ImageViewer/components/Thumb.js +15 -3
- package/lib/ImageViewer/fns/index.js +27 -17
- package/lib/ImageViewer/index.js +3 -0
- package/lib/ImageViewer/wrapeer/Container.js +12 -2
- package/lib/ImageViewer/wrapeer/Root.js +27 -15
- package/lib/ImageViewer/wrapeer/Wrapper.js +9 -2
- package/lib/ImageViewer/wrapeer/reducer.js +16 -6
- package/lib/Input/index.js +49 -30
- package/lib/InputNumber/index.js +23 -9
- package/lib/Layout/index.js +4 -0
- package/lib/LeftTable/index.js +49 -25
- package/lib/List/index.js +4 -0
- package/lib/LmDrag/LmDrag.js +11 -0
- package/lib/LmDrag/components/DndContainer.js +47 -22
- package/lib/LmDrag/components/sortableBox.js +9 -2
- package/lib/LmDrag/components/sortableItem.js +22 -13
- package/lib/LmDrag/index.js +3 -0
- package/lib/LmDrag/wrapper/Root.js +7 -0
- package/lib/LmEditTable/DndContainer.js +43 -22
- package/lib/LmEditTable/DragHandle.js +12 -4
- package/lib/LmEditTable/EditTable.d.ts +1 -0
- package/lib/LmEditTable/EditTable.js +394 -148
- package/lib/LmEditTable/components/DraggableContainer.js +17 -6
- package/lib/LmEditTable/components/QuickOpetate.js +18 -7
- package/lib/LmEditTable/components/bottomOpetateComponent.js +9 -4
- package/lib/LmEditTable/components/customRenderEmpty.js +8 -1
- package/lib/LmEditTable/components/index.js +6 -0
- package/lib/LmEditTable/hooks/useForkRef.js +4 -0
- package/lib/LmEditTable/index.js +3 -0
- package/lib/LmEditTable/rowSort/DndContainerRow.js +42 -23
- package/lib/LmEditTable/sortableBox.js +6 -1
- package/lib/LmEditTable/sortableBoxCol.js +6 -1
- package/lib/LmEditTable/sortableItem.js +25 -10
- package/lib/LmEditTable/sortableItemCol.d.ts +0 -1
- package/lib/LmEditTable/sortableItemCol.js +22 -11
- package/lib/LmEditTable/util.js +60 -6
- package/lib/LmEditTable/virtual/VirtualRow.js +53 -26
- package/lib/LmEditTable/virtual/VirtualRow2.js +22 -7
- package/lib/LmEditTable/virtual/VirtualTable.js +22 -10
- package/lib/LmEditTable/virtual/VirtualWrapper.js +18 -6
- package/lib/LmEditTable/virtual/context.js +15 -3
- package/lib/LmEditTable/virtual/index.js +4 -0
- package/lib/LmFilter/Controls/CheckboxTags.js +12 -2
- package/lib/LmFilter/Controls/index.js +24 -10
- package/lib/LmFilter/LmFilter.js +14 -4
- package/lib/LmFilter/baseFilter/fuzzySearch.js +18 -8
- package/lib/LmFilter/baseFilter/index.js +7 -2
- package/lib/LmFilter/clearFilter/index.js +9 -2
- package/lib/LmFilter/complexFilter/drawer.js +76 -47
- package/lib/LmFilter/complexFilter/index.js +14 -2
- package/lib/LmFilter/complexFilter/valueDrawer.js +46 -14
- package/lib/LmFilter/components/CascaderFilter.js +52 -27
- package/lib/LmFilter/components/CheckboxFilter.js +52 -39
- package/lib/LmFilter/components/CustomSelectFilter.js +38 -20
- package/lib/LmFilter/components/DateFilter.js +39 -23
- package/lib/LmFilter/components/DropdownFIlter.js +82 -49
- package/lib/LmFilter/components/EmptyFilter.js +5 -0
- package/lib/LmFilter/components/InputFilter.js +13 -5
- package/lib/LmFilter/components/InputSearchClose.js +22 -10
- package/lib/LmFilter/components/SelectFilter.js +37 -21
- package/lib/LmFilter/components/index.js +34 -23
- package/lib/LmFilter/customFilter/drawer.js +72 -37
- package/lib/LmFilter/customFilter/index.js +24 -11
- package/lib/LmFilter/customFilter/saveModal.js +36 -12
- package/lib/LmFilter/customFilter/valueDrawer.js +45 -14
- package/lib/LmFilter/filterFns/index.js +198 -129
- package/lib/LmFilter/hooks/index.js +2 -0
- package/lib/LmFilter/hooks/useDelayedFn.js +5 -2
- package/lib/LmFilter/index.js +3 -0
- package/lib/LmFilter/localization.js +1 -2
- package/lib/LmFilter/utils.js +47 -21
- package/lib/LmFilter/wrapper/Filter.js +13 -4
- package/lib/LmFilter/wrapper/FilterContainer.js +5 -1
- package/lib/LmFilter/wrapper/FilterRoot.js +62 -40
- package/lib/LmFilter/wrapper/FilterWrapper.js +5 -1
- package/lib/LmImgList/LmImgList.js +5 -0
- package/lib/LmImgList/body/Banner.js +22 -13
- package/lib/LmImgList/body/Thumb.js +16 -4
- package/lib/LmImgList/fns/index.js +24 -15
- package/lib/LmImgList/index.js +4 -0
- package/lib/LmImgList/wrapper/Container.js +21 -9
- package/lib/LmImgList/wrapper/Root.js +24 -13
- package/lib/LmImgList/wrapper/Wrapper.js +5 -0
- package/lib/LmImgList/wrapper/reducer.js +14 -6
- package/lib/LmSelect/GhostSelect.js +163 -99
- package/lib/LmSelect/NormalSelect.js +40 -20
- package/lib/LmSelect/index.js +14 -1
- package/lib/LmSelect/useCheckboxOptions.js +37 -17
- package/lib/LmSelect/utils.js +38 -18
- package/lib/LmTable/Table.js +488 -287
- package/lib/LmTable/VList.js +170 -109
- package/lib/LmTable/autosize.js +43 -16
- package/lib/LmTable/chartUtil.js +14 -4
- package/lib/LmTable/common/index.js +9 -1
- package/lib/LmTable/components/CalcExpression.js +37 -11
- package/lib/LmTable/components/Container/Container.js +26 -16
- package/lib/LmTable/components/Container/index.js +1 -0
- package/lib/LmTable/components/DndContainer.js +224 -128
- package/lib/LmTable/components/HeaderCol.js +22 -13
- package/lib/LmTable/components/Item/Item.js +32 -20
- package/lib/LmTable/components/Item/components/Action/Action.js +14 -4
- package/lib/LmTable/components/Item/components/Action/index.js +1 -0
- package/lib/LmTable/components/Item/components/Handle/index.js +4 -0
- package/lib/LmTable/components/Item/components/Remove/index.d.ts +0 -1
- package/lib/LmTable/components/Item/components/Remove/index.js +4 -0
- package/lib/LmTable/components/Item/components/index.js +4 -0
- package/lib/LmTable/components/Item/index.js +2 -0
- package/lib/LmTable/components/SortableBox.js +6 -1
- package/lib/LmTable/components/customRenderEmpty.js +8 -1
- package/lib/LmTable/components/inputDataEdit.js +11 -3
- package/lib/LmTable/components/sheelTableCell.js +65 -32
- package/lib/LmTable/components/tableChartsModal.js +26 -12
- package/lib/LmTable/context.js +3 -0
- package/lib/LmTable/detectElementResize.js +48 -15
- package/lib/LmTable/expression.js +28 -4
- package/lib/LmTable/hooks/useDndItems.js +70 -24
- package/lib/LmTable/hooks/useGroupDataSource.js +6 -1
- package/lib/LmTable/hooks/useResizeObserver.js +23 -13
- package/lib/LmTable/hooks/useRowSelectControllableValue.js +20 -6
- package/lib/LmTable/index.js +3 -0
- package/lib/LmTable/multipleContainersKeyboardCoordinates.js +32 -5
- package/lib/LmTable/resetConfig.js +8 -8
- package/lib/LmTable/testDemos/group.js +21 -5
- package/lib/LmTable/util.js +94 -27
- package/lib/LmTable/virTual/VirtualRow.js +46 -25
- package/lib/LmTable/virTual/VirtualTable.js +30 -12
- package/lib/LmTable/virTual/VirtualWrapper.js +19 -7
- package/lib/LmTable/virTual/context.js +15 -3
- package/lib/LmTable/virTual/index.js +4 -0
- package/lib/LmUpload/LmUpload.js +25 -11
- package/lib/LmUpload/UploadList/ItemPicture.js +13 -6
- package/lib/LmUpload/UploadList/ItemPictureCard.js +44 -23
- package/lib/LmUpload/UploadList/ItemText.js +12 -5
- package/lib/LmUpload/UploadList/RenderItem.js +14 -1
- package/lib/LmUpload/UploadList/index.js +26 -11
- package/lib/LmUpload/body/Progress.js +5 -0
- package/lib/LmUpload/body/UploadCore.js +22 -8
- package/lib/LmUpload/body/UploadPicture.js +10 -2
- package/lib/LmUpload/components/Crop.js +9 -3
- package/lib/LmUpload/components/Preview.js +14 -7
- package/lib/LmUpload/fns/index.js +114 -57
- package/lib/LmUpload/index.js +3 -0
- package/lib/LmUpload/utils.js +24 -10
- package/lib/LmUpload/view/index.js +4 -0
- package/lib/LmUpload/wrapper/Upload.js +6 -1
- package/lib/LmUpload/wrapper/UploadContainer.js +11 -2
- package/lib/LmUpload/wrapper/UploadRoot.js +26 -14
- package/lib/LmUpload/wrapper/UploadWrapper.js +9 -1
- package/lib/LmUpload/wrapper/reducer.js +15 -6
- package/lib/LoadingPage/index.js +7 -1
- package/lib/Locale/ar_EG.js +6 -1
- package/lib/Locale/az_AZ.js +6 -1
- package/lib/Locale/bg_BG.js +6 -0
- package/lib/Locale/bn_BD.js +6 -1
- package/lib/Locale/by_BY.js +6 -1
- package/lib/Locale/ca_ES.js +6 -1
- package/lib/Locale/cs_CZ.js +6 -1
- package/lib/Locale/da_DK.js +6 -0
- package/lib/Locale/de_DE.js +6 -1
- package/lib/Locale/default.js +7 -1
- package/lib/Locale/el_GR.js +6 -0
- package/lib/Locale/en_GB.js +6 -1
- package/lib/Locale/en_US.js +3 -0
- package/lib/Locale/es_ES.js +6 -1
- package/lib/Locale/et_EE.js +6 -1
- package/lib/Locale/fa_IR.js +6 -1
- package/lib/Locale/fi_FI.js +6 -0
- package/lib/Locale/fr_BE.js +6 -0
- package/lib/Locale/fr_CA.js +6 -0
- package/lib/Locale/fr_FR.js +6 -1
- package/lib/Locale/ga_IE.js +6 -1
- package/lib/Locale/gl_ES.js +6 -1
- package/lib/Locale/he_IL.js +6 -1
- package/lib/Locale/hi_IN.js +6 -1
- package/lib/Locale/hr_HR.js +6 -1
- package/lib/Locale/hu_HU.js +6 -0
- package/lib/Locale/id_ID.js +6 -0
- package/lib/Locale/is_IS.js +6 -0
- package/lib/Locale/it_IT.js +6 -0
- package/lib/Locale/ja_JP.js +6 -1
- package/lib/Locale/ka_GE.js +6 -1
- package/lib/Locale/kk_KZ.js +6 -1
- package/lib/Locale/km_KH.js +6 -1
- package/lib/Locale/kmr_IQ.js +6 -0
- package/lib/Locale/kn_IN.js +6 -0
- package/lib/Locale/ko_KR.js +6 -1
- package/lib/Locale/ku_IQ.js +6 -0
- package/lib/Locale/lt_LT.js +6 -1
- package/lib/Locale/lv_LV.js +6 -0
- package/lib/Locale/mk_MK.js +6 -0
- package/lib/Locale/ml_IN.js +6 -1
- package/lib/Locale/mn_MN.js +6 -0
- package/lib/Locale/ms_MY.js +6 -0
- package/lib/Locale/nb_NO.js +6 -1
- package/lib/Locale/ne_NP.js +6 -0
- package/lib/Locale/nl_BE.js +6 -1
- package/lib/Locale/nl_NL.js +6 -1
- package/lib/Locale/pl_PL.js +6 -1
- package/lib/Locale/pt_BR.js +6 -1
- package/lib/Locale/pt_PT.js +6 -0
- package/lib/Locale/ro_RO.js +6 -1
- package/lib/Locale/ru_RU.js +6 -1
- package/lib/Locale/si_LK.js +6 -1
- package/lib/Locale/sk_SK.js +6 -1
- package/lib/Locale/sl_SI.js +6 -0
- package/lib/Locale/sr_RS.js +6 -1
- package/lib/Locale/sv_SE.js +6 -1
- package/lib/Locale/ta_IN.js +6 -0
- package/lib/Locale/th_TH.js +6 -1
- package/lib/Locale/tk_TK.js +6 -1
- package/lib/Locale/tr_TR.js +6 -1
- package/lib/Locale/uk_UA.js +6 -1
- package/lib/Locale/ur_PK.js +6 -1
- package/lib/Locale/vi_VN.js +6 -0
- package/lib/Locale/zh_CN.js +7 -1
- package/lib/Locale/zh_HK.js +6 -1
- package/lib/Locale/zh_TW.js +6 -1
- package/lib/Mentions/index.js +4 -0
- package/lib/Menu/index.js +4 -0
- package/lib/Modal/index.js +43 -11
- package/lib/Modal/locale.js +5 -0
- package/lib/PageHeader/index.js +60 -22
- package/lib/Pagination/index.js +20 -4
- package/lib/Popconfirm/index.js +4 -0
- package/lib/Popover/index.d.ts +1 -1
- package/lib/Popover/index.js +23 -5
- package/lib/Progress/index.js +4 -0
- package/lib/QuickMenu/index.js +54 -18
- package/lib/Radio/index.js +24 -10
- package/lib/Rate/index.js +4 -0
- package/lib/Result/index.js +41 -16
- package/lib/Result/noFound.js +4 -0
- package/lib/Result/serverError.js +4 -0
- package/lib/Result/unauthorized.js +4 -0
- package/lib/Row/index.js +2 -0
- package/lib/Segmented/index.js +4 -0
- package/lib/Select/index.js +41 -20
- package/lib/Skeleton/index.js +4 -0
- package/lib/Slider/index.js +4 -0
- package/lib/Space/index.js +4 -0
- package/lib/Spin/index.js +4 -0
- package/lib/Statistic/index.js +4 -0
- package/lib/Steps/index.js +4 -0
- package/lib/Switch/index.js +18 -4
- package/lib/Table/index.js +4 -0
- package/lib/Tabs/TabPane.js +3 -0
- package/lib/Tabs/hooks/useAnimateConfig.js +8 -0
- package/lib/Tabs/hooks/useLegacyItems.js +17 -3
- package/lib/Tabs/index.js +43 -15
- package/lib/Tabs/index.old.js +17 -4
- package/lib/Tag/index.js +20 -5
- package/lib/TestTable/LmBox.js +3 -0
- package/lib/TestTable/index.js +3 -0
- package/lib/TimePicker/index.js +4 -0
- package/lib/Timeline/index.js +4 -0
- package/lib/Tooltip/index.d.ts +1 -1
- package/lib/Tooltip/index.js +80 -34
- package/lib/Transfer/index.js +4 -0
- package/lib/Tree/DirectoryTree.js +74 -29
- package/lib/Tree/Tree.js +35 -14
- package/lib/Tree/TreeIndex.js +3 -0
- package/lib/Tree/index.js +11 -1
- package/lib/Tree/utils/dictUtil.js +24 -4
- package/lib/Tree/utils/dropIndicator.d.ts +0 -1
- package/lib/Tree/utils/dropIndicator.js +15 -5
- package/lib/Tree/utils/iconUtil.js +25 -2
- package/lib/TreeSelect/index.js +35 -15
- package/lib/Typography/Base/Ellipsis.js +58 -25
- package/lib/Typography/Base/EllipsisTooltip.js +12 -3
- package/lib/Typography/Base/index.js +200 -104
- package/lib/Typography/Editable.js +45 -21
- package/lib/Typography/Link.js +17 -4
- package/lib/Typography/Paragraph.js +7 -0
- package/lib/Typography/Text.js +16 -1
- package/lib/Typography/Title.js +18 -2
- package/lib/Typography/Typography.js +30 -11
- package/lib/Typography/hooks/useMergedConfig.js +5 -0
- package/lib/Typography/hooks/useUpdatedEffect.js +6 -1
- package/lib/Typography/index.js +9 -0
- package/lib/Upload/index.js +13 -2
- package/lib/UploadOss/index.js +4 -0
- package/lib/UploadOss/uploadBtn.js +54 -32
- package/lib/UploadOss/uploadImg.js +86 -58
- package/lib/VirtualList/index.js +27 -18
- package/lib/_util/colors.js +4 -2
- package/lib/_util/domTarget.js +6 -0
- package/lib/_util/getDataOrAriaProps.js +2 -0
- package/lib/_util/getRenderPropValue.js +5 -0
- package/lib/_util/hooks/useFlexGapSupport.js +11 -3
- package/lib/_util/hooks/useForceUpdate.js +10 -4
- package/lib/_util/motion.js +12 -0
- package/lib/_util/placements.js +12 -7
- package/lib/_util/reactNode.js +5 -0
- package/lib/_util/responsiveObserve.js +8 -0
- package/lib/_util/statusUtils.js +9 -0
- package/lib/_util/styleChecker.js +16 -6
- package/lib/_util/throttleByAnimationFrame.js +12 -0
- package/lib/_util/transButton.js +19 -3
- package/lib/_util/type.js +6 -0
- package/lib/_util/warning.js +10 -4
- package/lib/hooks/index.js +3 -0
- package/lib/hooks/useEvent/index.js +7 -4
- package/lib/hooks/useFullscreen/index.js +33 -7
- package/lib/index.js +89 -0
- package/lib/locale-provider/LocaleReceiver.js +20 -4
- package/lib/locale-provider/ar_EG.js +3 -0
- package/lib/locale-provider/az_AZ.js +3 -0
- package/lib/locale-provider/bg_BG.js +3 -0
- package/lib/locale-provider/bn_BD.js +3 -0
- package/lib/locale-provider/by_BY.js +3 -0
- package/lib/locale-provider/ca_ES.js +3 -0
- package/lib/locale-provider/context.js +2 -0
- package/lib/locale-provider/cs_CZ.js +3 -0
- package/lib/locale-provider/da_DK.js +3 -0
- package/lib/locale-provider/de_DE.js +3 -0
- package/lib/locale-provider/default.js +3 -0
- package/lib/locale-provider/el_GR.js +3 -0
- package/lib/locale-provider/en_GB.js +3 -0
- package/lib/locale-provider/en_US.js +3 -0
- package/lib/locale-provider/es_ES.js +3 -0
- package/lib/locale-provider/et_EE.js +3 -0
- package/lib/locale-provider/fa_IR.js +3 -0
- package/lib/locale-provider/fi_FI.js +3 -0
- package/lib/locale-provider/fr_BE.js +3 -0
- package/lib/locale-provider/fr_CA.js +3 -0
- package/lib/locale-provider/fr_FR.js +3 -0
- package/lib/locale-provider/ga_IE.js +3 -0
- package/lib/locale-provider/gl_ES.js +3 -0
- package/lib/locale-provider/he_IL.js +3 -0
- package/lib/locale-provider/hi_IN.js +3 -0
- package/lib/locale-provider/hr_HR.js +3 -0
- package/lib/locale-provider/hu_HU.js +3 -0
- package/lib/locale-provider/hy_AM.js +3 -0
- package/lib/locale-provider/id_ID.js +3 -0
- package/lib/locale-provider/index.d.ts +2 -2
- package/lib/locale-provider/index.js +22 -3
- package/lib/locale-provider/is_IS.js +3 -0
- package/lib/locale-provider/it_IT.js +3 -0
- package/lib/locale-provider/ja_JP.js +3 -0
- package/lib/locale-provider/ka_GE.js +3 -0
- package/lib/locale-provider/kk_KZ.js +3 -0
- package/lib/locale-provider/km_KH.js +3 -0
- package/lib/locale-provider/kmr_IQ.js +3 -0
- package/lib/locale-provider/kn_IN.js +3 -0
- package/lib/locale-provider/ko_KR.js +3 -0
- package/lib/locale-provider/ku_IQ.js +3 -0
- package/lib/locale-provider/lt_LT.js +3 -0
- package/lib/locale-provider/lv_LV.js +3 -0
- package/lib/locale-provider/mk_MK.js +3 -0
- package/lib/locale-provider/ml_IN.js +3 -0
- package/lib/locale-provider/mn_MN.js +3 -0
- package/lib/locale-provider/ms_MY.js +3 -0
- package/lib/locale-provider/nb_NO.js +3 -0
- package/lib/locale-provider/ne_NP.js +3 -0
- package/lib/locale-provider/nl_BE.js +3 -0
- package/lib/locale-provider/nl_NL.js +3 -0
- package/lib/locale-provider/pl_PL.js +3 -0
- package/lib/locale-provider/pt_BR.js +3 -0
- package/lib/locale-provider/pt_PT.js +3 -0
- package/lib/locale-provider/ro_RO.js +3 -0
- package/lib/locale-provider/ru_RU.js +3 -0
- package/lib/locale-provider/si_LK.js +3 -0
- package/lib/locale-provider/sk_SK.js +3 -0
- package/lib/locale-provider/sl_SI.js +3 -0
- package/lib/locale-provider/sr_RS.js +3 -0
- package/lib/locale-provider/sv_SE.js +3 -0
- package/lib/locale-provider/ta_IN.js +3 -0
- package/lib/locale-provider/th_TH.js +3 -0
- package/lib/locale-provider/tk_TK.js +3 -0
- package/lib/locale-provider/tr_TR.js +3 -0
- package/lib/locale-provider/uk_UA.js +3 -0
- package/lib/locale-provider/ur_PK.js +3 -0
- package/lib/locale-provider/vi_VN.js +3 -0
- package/lib/locale-provider/zh_CN.js +3 -0
- package/lib/locale-provider/zh_HK.js +3 -0
- package/lib/locale-provider/zh_TW.js +3 -0
- package/lib/message/hooks/useMessage.js +27 -8
- package/lib/message/index.js +53 -8
- package/lib/notification/hooks/useNotification.js +19 -8
- package/lib/notification/index.js +80 -31
- package/lib/services/newRequest.js +47 -18
- package/lib/services/utils.js +15 -0
- package/package.json +1 -1
|
@@ -1,41 +1,50 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
-
import { getIsHas, getValueForType, getFilterShow } from '../utils';
|
|
5
|
-
|
|
4
|
+
import { getIsHas, getValueForType, getFilterShow } from '../utils'; // 初始化查询结构
|
|
5
|
+
|
|
6
6
|
export var initLocalization = function initLocalization(props) {
|
|
7
7
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
8
|
+
|
|
8
9
|
var localization = props.localization,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
dataSource = props.dataSource,
|
|
11
|
+
searchKey = props.searchKey,
|
|
12
|
+
searchConfig = props.searchConfig,
|
|
13
|
+
customOptions = props.customOptions;
|
|
13
14
|
var globalQuery = localization.globalQuery,
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
filterQuery = localization.filterQuery,
|
|
16
|
+
fuzzyQuery = localization.fuzzyQuery;
|
|
16
17
|
var basicFilter = (localization === null || localization === void 0 ? void 0 : localization.basicFilter) || {};
|
|
17
18
|
var basicQuery = {}; // 存储查询结构
|
|
19
|
+
|
|
18
20
|
var isFuzzy = Array.isArray(searchKey); // 数组时为模糊搜索结构
|
|
21
|
+
|
|
19
22
|
var searchFilter = (localization === null || localization === void 0 ? void 0 : localization.fuzzyFilter) || {};
|
|
20
23
|
var searchQuery = {}; // 模糊查询结构
|
|
24
|
+
|
|
21
25
|
var customFilter = (customOptions === null || customOptions === void 0 ? void 0 : customOptions.find(function (v) {
|
|
22
26
|
var _a;
|
|
27
|
+
|
|
23
28
|
return (v === null || v === void 0 ? void 0 : v.value) === ((_a = localization === null || localization === void 0 ? void 0 : localization.customFilter) === null || _a === void 0 ? void 0 : _a.value);
|
|
24
29
|
})) || {};
|
|
25
30
|
var customQuery = {}; // 自定义筛选存储结构
|
|
26
31
|
// 一级查询
|
|
32
|
+
|
|
27
33
|
if ((_b = (_a = globalQuery === null || globalQuery === void 0 ? void 0 : globalQuery.filters) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.conditions) {
|
|
28
34
|
var globalQueryArr = ((_d = (_c = globalQuery === null || globalQuery === void 0 ? void 0 : globalQuery.filters) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.conditions) || [];
|
|
29
35
|
customQuery = globalQueryArr.reduce(function (pre, cur) {
|
|
30
36
|
var checkedValue = cur.value; // 选中的数据
|
|
31
37
|
// 查找该数据是否展示
|
|
38
|
+
|
|
32
39
|
if (getIsHas(checkedValue)) {
|
|
33
40
|
pre[cur.fieldName] = cur;
|
|
34
41
|
}
|
|
42
|
+
|
|
35
43
|
return pre;
|
|
36
44
|
}, {});
|
|
37
|
-
}
|
|
38
|
-
|
|
45
|
+
} // 模糊查询
|
|
46
|
+
|
|
47
|
+
|
|
39
48
|
if (getIsHas(searchFilter)) {
|
|
40
49
|
searchQuery = (_e = Object.keys(searchFilter)) === null || _e === void 0 ? void 0 : _e.reduce(function (pre, cur) {
|
|
41
50
|
if (getIsHas(searchFilter[cur])) {
|
|
@@ -44,29 +53,35 @@ export var initLocalization = function initLocalization(props) {
|
|
|
44
53
|
value: [searchFilter[cur]]
|
|
45
54
|
});
|
|
46
55
|
}
|
|
56
|
+
|
|
47
57
|
return pre;
|
|
48
58
|
}, {});
|
|
49
59
|
} else if ((_g = (_f = fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : fuzzyQuery.filters) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.conditions) {
|
|
50
|
-
var fuzzyQueryArr = ((_j = (_h = fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : fuzzyQuery.filters) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.conditions) || [];
|
|
51
|
-
|
|
60
|
+
var fuzzyQueryArr = ((_j = (_h = fuzzyQuery === null || fuzzyQuery === void 0 ? void 0 : fuzzyQuery.filters) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.conditions) || []; // 初始化基础查询缓存
|
|
61
|
+
|
|
52
62
|
searchFilter = fuzzyQueryArr.reduce(function (pre, cur) {
|
|
53
63
|
var checkedValue = cur.value; // 选中的数据
|
|
64
|
+
|
|
54
65
|
if (getIsHas(checkedValue)) {
|
|
55
66
|
searchQuery[cur.fieldName] = cur;
|
|
56
67
|
pre[cur.fieldName] = checkedValue[0];
|
|
57
68
|
}
|
|
69
|
+
|
|
58
70
|
return pre;
|
|
59
71
|
}, {});
|
|
60
|
-
}
|
|
61
|
-
|
|
72
|
+
} // 二级查询
|
|
73
|
+
|
|
74
|
+
|
|
62
75
|
if (getIsHas(basicFilter)) {
|
|
63
76
|
basicQuery = (_k = Object.keys(basicFilter)) === null || _k === void 0 ? void 0 : _k.reduce(function (pre, cur) {
|
|
64
77
|
var item = dataSource.find(function (v) {
|
|
65
78
|
if (cur === v.field) {
|
|
66
79
|
return v.show || typeof v.show !== 'boolean';
|
|
67
80
|
}
|
|
81
|
+
|
|
68
82
|
return false;
|
|
69
83
|
});
|
|
84
|
+
|
|
70
85
|
if (!isFuzzy && cur === searchKey) {
|
|
71
86
|
item = {
|
|
72
87
|
field: searchKey,
|
|
@@ -74,6 +89,7 @@ export var initLocalization = function initLocalization(props) {
|
|
|
74
89
|
fieldType: 'string'
|
|
75
90
|
};
|
|
76
91
|
}
|
|
92
|
+
|
|
77
93
|
if (getIsHas(basicFilter[cur]) && !!item) {
|
|
78
94
|
pre[cur] = {
|
|
79
95
|
fieldName: cur,
|
|
@@ -82,33 +98,40 @@ export var initLocalization = function initLocalization(props) {
|
|
|
82
98
|
operator: (item === null || item === void 0 ? void 0 : item.operator) || 'equal'
|
|
83
99
|
};
|
|
84
100
|
}
|
|
101
|
+
|
|
85
102
|
return pre;
|
|
86
103
|
}, {});
|
|
87
104
|
} else if ((_m = (_l = filterQuery === null || filterQuery === void 0 ? void 0 : filterQuery.filters) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.conditions) {
|
|
88
|
-
var filterQueryArr = ((_p = (_o = filterQuery === null || filterQuery === void 0 ? void 0 : filterQuery.filters) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.conditions) || [];
|
|
89
|
-
|
|
105
|
+
var filterQueryArr = ((_p = (_o = filterQuery === null || filterQuery === void 0 ? void 0 : filterQuery.filters) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.conditions) || []; // 初始化基础查询缓存
|
|
106
|
+
|
|
90
107
|
basicFilter = filterQueryArr.reduce(function (pre, cur) {
|
|
91
108
|
var checkedValue = cur.value; // 选中的数据
|
|
92
109
|
// 是否搜索框
|
|
93
|
-
|
|
94
|
-
// 查找该数据是否展示
|
|
110
|
+
|
|
111
|
+
var isSearchInput = cur.fieldName === searchKey; // 查找该数据是否展示
|
|
112
|
+
|
|
95
113
|
var someData = dataSource.some(function (v) {
|
|
96
114
|
if (cur.fieldName === v.field) {
|
|
97
115
|
return v.show || typeof v.show !== 'boolean';
|
|
98
116
|
}
|
|
117
|
+
|
|
99
118
|
return false;
|
|
100
119
|
});
|
|
120
|
+
|
|
101
121
|
if (getIsHas(checkedValue) && someData || isSearchInput) {
|
|
102
|
-
basicQuery[cur.fieldName] = cur;
|
|
103
|
-
|
|
122
|
+
basicQuery[cur.fieldName] = cur; // 复选/级联/日期区间
|
|
123
|
+
|
|
104
124
|
if (!['checkbox', 'cascader'].includes(cur.type) && checkedValue.length < 2) {
|
|
105
125
|
checkedValue = checkedValue[0];
|
|
106
126
|
}
|
|
127
|
+
|
|
107
128
|
pre[cur.fieldName] = checkedValue;
|
|
108
129
|
}
|
|
130
|
+
|
|
109
131
|
return pre;
|
|
110
132
|
}, {});
|
|
111
133
|
}
|
|
134
|
+
|
|
112
135
|
return {
|
|
113
136
|
searchFilter: searchFilter,
|
|
114
137
|
searchQuery: searchQuery,
|
|
@@ -117,30 +140,32 @@ export var initLocalization = function initLocalization(props) {
|
|
|
117
140
|
customFilter: customFilter,
|
|
118
141
|
customQuery: customQuery
|
|
119
142
|
};
|
|
120
|
-
};
|
|
121
|
-
|
|
143
|
+
}; // 核心参数集合
|
|
144
|
+
|
|
122
145
|
var useCoreOptions = function useCoreOptions(_ref) {
|
|
123
146
|
var state = _ref.state,
|
|
124
|
-
|
|
125
|
-
|
|
147
|
+
dispatch = _ref.dispatch,
|
|
148
|
+
props = _ref.props;
|
|
126
149
|
var onChange = props.onChange,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
150
|
+
dataSource = props.dataSource,
|
|
151
|
+
searchKey = props.searchKey,
|
|
152
|
+
searchConfig = props.searchConfig,
|
|
153
|
+
customOptions = props.customOptions,
|
|
154
|
+
enableAutoString = props.enableAutoString; // 获取是否存在过滤值
|
|
155
|
+
|
|
133
156
|
var getHasFilter = useCallback(function () {
|
|
134
157
|
return getIsHas(state.basicFilter) || getIsHas(state.searchFilter);
|
|
135
|
-
}, [state.basicFilter, state.searchFilter]);
|
|
136
|
-
|
|
158
|
+
}, [state.basicFilter, state.searchFilter]); // 转换一级查询结构 object => array
|
|
159
|
+
|
|
137
160
|
var tranformGlobalQuery = useCallback(function (obj) {
|
|
138
161
|
var _a;
|
|
162
|
+
|
|
139
163
|
var nArr = ((_a = Object.keys(obj)) === null || _a === void 0 ? void 0 : _a.reduce(function (pre, cur) {
|
|
140
164
|
var item = dataSource.find(function (v) {
|
|
141
165
|
return cur === v.field;
|
|
142
166
|
});
|
|
143
167
|
var itemValue = obj[cur].value;
|
|
168
|
+
|
|
144
169
|
if (getIsHas(itemValue) && !!item) {
|
|
145
170
|
return [].concat(_toConsumableArray(pre), [{
|
|
146
171
|
relation: obj[cur].mode || 'and',
|
|
@@ -148,6 +173,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
148
173
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
149
174
|
type: item.type,
|
|
150
175
|
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
176
|
+
|
|
151
177
|
/**
|
|
152
178
|
* and 等同于逻辑关系contains: 选中的值包含所有值
|
|
153
179
|
* or 等同于逻辑关系in: 选中的值存在于所有值之中
|
|
@@ -155,18 +181,21 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
155
181
|
operator: 'in'
|
|
156
182
|
}]);
|
|
157
183
|
}
|
|
184
|
+
|
|
158
185
|
return pre;
|
|
159
186
|
}, [])) || [];
|
|
160
187
|
return nArr;
|
|
161
|
-
}, [dataSource]);
|
|
162
|
-
|
|
188
|
+
}, [dataSource]); // 转行查询结构
|
|
189
|
+
|
|
163
190
|
var tranformQuery = useCallback(function (_ref2) {
|
|
164
191
|
var customFilter = _ref2.customFilter,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
192
|
+
_ref2$searchQuery = _ref2.searchQuery,
|
|
193
|
+
searchQuery = _ref2$searchQuery === void 0 ? {} : _ref2$searchQuery,
|
|
194
|
+
_ref2$basicQuery = _ref2.basicQuery,
|
|
195
|
+
basicQuery = _ref2$basicQuery === void 0 ? {} : _ref2$basicQuery;
|
|
196
|
+
|
|
169
197
|
var _a, _b;
|
|
198
|
+
|
|
170
199
|
var globalQuery = {
|
|
171
200
|
filters: [{
|
|
172
201
|
conditions: tranformGlobalQuery(customFilter === null || customFilter === void 0 ? void 0 : customFilter.data)
|
|
@@ -191,38 +220,42 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
191
220
|
fuzzyQuery: fuzzyQuery,
|
|
192
221
|
filterQuery: filterQuery
|
|
193
222
|
};
|
|
194
|
-
}, [tranformGlobalQuery]);
|
|
195
|
-
|
|
223
|
+
}, [tranformGlobalQuery]); // 触发查询 type basic基础筛选 | complex高级筛选
|
|
224
|
+
|
|
196
225
|
var onQuery = useCallback(function () {
|
|
197
226
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
227
|
+
_ref3$complexFilter = _ref3.complexFilter,
|
|
228
|
+
complexFilter = _ref3$complexFilter === void 0 ? {} : _ref3$complexFilter,
|
|
229
|
+
_ref3$type = _ref3.type,
|
|
230
|
+
type = _ref3$type === void 0 ? 'basic' : _ref3$type,
|
|
231
|
+
_ref3$basicFilter = _ref3.basicFilter,
|
|
232
|
+
basicFilter = _ref3$basicFilter === void 0 ? state.basicFilter || {} : _ref3$basicFilter,
|
|
233
|
+
_ref3$basicQuery = _ref3.basicQuery,
|
|
234
|
+
basicQuery = _ref3$basicQuery === void 0 ? state.basicQuery || {} : _ref3$basicQuery,
|
|
235
|
+
_ref3$searchFilter = _ref3.searchFilter,
|
|
236
|
+
searchFilter = _ref3$searchFilter === void 0 ? state.searchFilter || {} : _ref3$searchFilter,
|
|
237
|
+
_ref3$searchQuery = _ref3.searchQuery,
|
|
238
|
+
searchQuery = _ref3$searchQuery === void 0 ? state.searchQuery || {} : _ref3$searchQuery,
|
|
239
|
+
_ref3$customFilter = _ref3.customFilter,
|
|
240
|
+
customFilter = _ref3$customFilter === void 0 ? state.customFilter || {} : _ref3$customFilter;
|
|
241
|
+
|
|
212
242
|
var _a;
|
|
243
|
+
|
|
213
244
|
if (type === 'custom') {
|
|
214
245
|
dispatch({
|
|
215
246
|
type: 'changeCustomFilter',
|
|
216
247
|
customFilter: customFilter
|
|
217
248
|
});
|
|
249
|
+
|
|
218
250
|
var _tranformQuery = tranformQuery({
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
251
|
+
customFilter: customFilter,
|
|
252
|
+
searchQuery: searchQuery,
|
|
253
|
+
basicQuery: basicQuery
|
|
254
|
+
}),
|
|
255
|
+
globalQuery = _tranformQuery.globalQuery,
|
|
256
|
+
fuzzyQuery = _tranformQuery.fuzzyQuery,
|
|
257
|
+
filterQuery = _tranformQuery.filterQuery;
|
|
258
|
+
|
|
226
259
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
227
260
|
fuzzyFilter: searchFilter,
|
|
228
261
|
fuzzyQuery: fuzzyQuery,
|
|
@@ -232,6 +265,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
232
265
|
type: 'custom'
|
|
233
266
|
});
|
|
234
267
|
}
|
|
268
|
+
|
|
235
269
|
if (type === 'search') {
|
|
236
270
|
dispatch({
|
|
237
271
|
type: 'changeSearchFilter',
|
|
@@ -246,14 +280,16 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
246
280
|
complexFilter: {}
|
|
247
281
|
}); // 基础筛选清空高级筛选
|
|
248
282
|
// 抛出给外部查询
|
|
283
|
+
|
|
249
284
|
var _tranformQuery2 = tranformQuery({
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
285
|
+
customFilter: customFilter,
|
|
286
|
+
searchQuery: searchQuery,
|
|
287
|
+
basicQuery: basicQuery
|
|
288
|
+
}),
|
|
289
|
+
_globalQuery = _tranformQuery2.globalQuery,
|
|
290
|
+
_fuzzyQuery = _tranformQuery2.fuzzyQuery,
|
|
291
|
+
_filterQuery = _tranformQuery2.filterQuery;
|
|
292
|
+
|
|
257
293
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
258
294
|
fuzzyFilter: searchFilter,
|
|
259
295
|
basicFilter: basicFilter,
|
|
@@ -263,6 +299,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
263
299
|
type: 'search'
|
|
264
300
|
});
|
|
265
301
|
}
|
|
302
|
+
|
|
266
303
|
if (type === 'basic') {
|
|
267
304
|
dispatch({
|
|
268
305
|
type: 'changeBasicFilter',
|
|
@@ -277,14 +314,16 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
277
314
|
complexFilter: {}
|
|
278
315
|
}); // 基础筛选清空高级筛选
|
|
279
316
|
// 抛出给外部查询
|
|
317
|
+
|
|
280
318
|
var _tranformQuery3 = tranformQuery({
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
319
|
+
customFilter: customFilter,
|
|
320
|
+
searchQuery: searchQuery,
|
|
321
|
+
basicQuery: basicQuery
|
|
322
|
+
}),
|
|
323
|
+
_globalQuery2 = _tranformQuery3.globalQuery,
|
|
324
|
+
_fuzzyQuery2 = _tranformQuery3.fuzzyQuery,
|
|
325
|
+
_filterQuery2 = _tranformQuery3.filterQuery;
|
|
326
|
+
|
|
288
327
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
289
328
|
fuzzyFilter: searchFilter,
|
|
290
329
|
basicFilter: basicFilter,
|
|
@@ -294,6 +333,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
294
333
|
type: 'basic'
|
|
295
334
|
});
|
|
296
335
|
}
|
|
336
|
+
|
|
297
337
|
if (type === 'complex') {
|
|
298
338
|
// eslint-disable-next-line no-shadow
|
|
299
339
|
var _basicQuery = (_a = Object.keys(complexFilter)) === null || _a === void 0 ? void 0 : _a.reduce(function (pre, cur) {
|
|
@@ -301,6 +341,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
301
341
|
return cur === v.field;
|
|
302
342
|
});
|
|
303
343
|
var itemValue = complexFilter[cur].value;
|
|
344
|
+
|
|
304
345
|
if (getIsHas(itemValue) && !!item) {
|
|
305
346
|
// eslint-disable-next-line no-param-reassign
|
|
306
347
|
pre[cur] = {
|
|
@@ -312,8 +353,10 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
312
353
|
operator: 'in'
|
|
313
354
|
};
|
|
314
355
|
}
|
|
356
|
+
|
|
315
357
|
return pre;
|
|
316
358
|
}, {});
|
|
359
|
+
|
|
317
360
|
dispatch({
|
|
318
361
|
type: 'changeSearchFilter',
|
|
319
362
|
searchFilter: {}
|
|
@@ -341,12 +384,14 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
341
384
|
type: 'changeBasicQuery',
|
|
342
385
|
basicQuery: _basicQuery
|
|
343
386
|
});
|
|
387
|
+
|
|
344
388
|
var _tranformQuery4 = tranformQuery({
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
389
|
+
customFilter: customFilter,
|
|
390
|
+
basicQuery: _basicQuery
|
|
391
|
+
}),
|
|
392
|
+
_globalQuery3 = _tranformQuery4.globalQuery,
|
|
393
|
+
_filterQuery3 = _tranformQuery4.filterQuery;
|
|
394
|
+
|
|
350
395
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
351
396
|
complexFilter: complexFilter,
|
|
352
397
|
globalQuery: _globalQuery3,
|
|
@@ -354,18 +399,21 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
354
399
|
type: type
|
|
355
400
|
});
|
|
356
401
|
}
|
|
402
|
+
|
|
357
403
|
if (type === 'clear') {
|
|
358
404
|
dispatch({
|
|
359
405
|
type: 'reset'
|
|
360
406
|
});
|
|
407
|
+
|
|
361
408
|
var _tranformQuery5 = tranformQuery({
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
409
|
+
customFilter: customFilter,
|
|
410
|
+
searchQuery: searchQuery,
|
|
411
|
+
basicQuery: basicQuery
|
|
412
|
+
}),
|
|
413
|
+
_globalQuery4 = _tranformQuery5.globalQuery,
|
|
414
|
+
_fuzzyQuery3 = _tranformQuery5.fuzzyQuery,
|
|
415
|
+
_filterQuery4 = _tranformQuery5.filterQuery;
|
|
416
|
+
|
|
369
417
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
370
418
|
fuzzyFilter: searchFilter,
|
|
371
419
|
basicFilter: basicFilter,
|
|
@@ -375,10 +423,11 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
375
423
|
type: 'clear'
|
|
376
424
|
});
|
|
377
425
|
}
|
|
378
|
-
}, [tranformQuery, state]);
|
|
379
|
-
|
|
426
|
+
}, [tranformQuery, state]); // 清除事件
|
|
427
|
+
|
|
380
428
|
var onClearChange = useCallback(function () {
|
|
381
429
|
var _a;
|
|
430
|
+
|
|
382
431
|
var params = {
|
|
383
432
|
searchFilter: {},
|
|
384
433
|
searchQuery: {},
|
|
@@ -389,18 +438,20 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
389
438
|
};
|
|
390
439
|
(_a = props.onClearChange) === null || _a === void 0 ? void 0 : _a.call(props, params);
|
|
391
440
|
onQuery(params);
|
|
392
|
-
}, [onQuery]);
|
|
393
|
-
|
|
441
|
+
}, [onQuery]); // 根据字段查找过滤的数据, 不存在时返回默认值
|
|
442
|
+
|
|
394
443
|
var getFilterValue = useCallback(function (_ref4) {
|
|
395
444
|
var field = _ref4.field,
|
|
396
|
-
|
|
445
|
+
type = _ref4.type;
|
|
446
|
+
|
|
397
447
|
if (getIsHas(state.basicFilter[field])) {
|
|
398
448
|
return state.basicFilter[field];
|
|
399
449
|
}
|
|
450
|
+
|
|
400
451
|
var defaultValue = getValueForType(type);
|
|
401
452
|
return state.basicFilter[field] || defaultValue;
|
|
402
|
-
}, [state.basicFilter]);
|
|
403
|
-
|
|
453
|
+
}, [state.basicFilter]); // 获取查询结构
|
|
454
|
+
|
|
404
455
|
var getFilterQuery = useCallback(function () {
|
|
405
456
|
var originData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : dataSource;
|
|
406
457
|
var basicFilter = getFilterShow(state.basicFilter, originData);
|
|
@@ -413,14 +464,16 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
413
464
|
type: 'changeBasicQuery',
|
|
414
465
|
basicQuery: basicQuery
|
|
415
466
|
});
|
|
467
|
+
|
|
416
468
|
var _tranformQuery6 = tranformQuery({
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
469
|
+
customFilter: state.customFilter,
|
|
470
|
+
searchQuery: state.searchQuery,
|
|
471
|
+
basicQuery: basicQuery
|
|
472
|
+
}),
|
|
473
|
+
globalQuery = _tranformQuery6.globalQuery,
|
|
474
|
+
fuzzyQuery = _tranformQuery6.fuzzyQuery,
|
|
475
|
+
filterQuery = _tranformQuery6.filterQuery;
|
|
476
|
+
|
|
424
477
|
return {
|
|
425
478
|
fuzzyFilter: state.searchFilter,
|
|
426
479
|
basicFilter: basicFilter,
|
|
@@ -434,8 +487,10 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
434
487
|
* 设置筛选的值 itemValue => String || Array => ['', '', ...]
|
|
435
488
|
* 后端仅接受数组包字符串形式, 不接受数值及布尔值
|
|
436
489
|
*/
|
|
490
|
+
|
|
437
491
|
var setFilterValue = useCallback(function (itemValue, item) {
|
|
438
492
|
var field = item.field;
|
|
493
|
+
|
|
439
494
|
if (field) {
|
|
440
495
|
// 将结果转换为字符串(级联数据需要递归)
|
|
441
496
|
var transformString = function transformString(val) {
|
|
@@ -443,49 +498,53 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
443
498
|
return transformString(v);
|
|
444
499
|
}) : String(val);
|
|
445
500
|
};
|
|
446
|
-
|
|
447
|
-
// 基础查询数据(受控数据)
|
|
448
|
-
|
|
449
|
-
// 外部查询数据结构
|
|
501
|
+
|
|
502
|
+
var stringValue = enableAutoString ? transformString(itemValue) : itemValue; // 基础查询数据(受控数据)
|
|
503
|
+
|
|
504
|
+
var basicFilter = Object.assign(Object.assign({}, state.basicFilter), _defineProperty({}, field, stringValue)); // 外部查询数据结构
|
|
505
|
+
|
|
450
506
|
var basicQuery = Object.assign(Object.assign({}, state.basicQuery), _defineProperty({}, field, {
|
|
451
507
|
fieldName: field,
|
|
452
508
|
fieldType: item.valueType || 'string',
|
|
453
509
|
type: item.type,
|
|
454
510
|
value: Array.isArray(itemValue) ? stringValue : [stringValue],
|
|
455
511
|
operator: item.operator || 'equal'
|
|
456
|
-
}));
|
|
457
|
-
|
|
512
|
+
})); // 数据清除时不返回结构体
|
|
513
|
+
|
|
458
514
|
if (!getIsHas(itemValue)) {
|
|
459
515
|
delete basicFilter[field];
|
|
460
516
|
delete basicQuery[field];
|
|
461
|
-
}
|
|
462
|
-
|
|
517
|
+
} // 触发外部事件
|
|
518
|
+
|
|
519
|
+
|
|
463
520
|
onQuery === null || onQuery === void 0 ? void 0 : onQuery({
|
|
464
521
|
basicFilter: basicFilter,
|
|
465
522
|
basicQuery: basicQuery,
|
|
466
523
|
type: 'basic'
|
|
467
524
|
});
|
|
468
525
|
}
|
|
469
|
-
}, [state]);
|
|
470
|
-
|
|
526
|
+
}, [state]); // 单个设置过滤字段值, 会触发onChange事件, 多个字段时使用setLocalization
|
|
527
|
+
|
|
471
528
|
var setFilterFieldValue = useCallback(function (field, value) {
|
|
472
529
|
var item = dataSource.find(function (v) {
|
|
473
530
|
return v.fidld === field;
|
|
474
531
|
}) || {};
|
|
475
532
|
setFilterValue === null || setFilterValue === void 0 ? void 0 : setFilterValue(value, item);
|
|
476
|
-
}, [dataSource]);
|
|
477
|
-
|
|
533
|
+
}, [dataSource]); // 读取缓存
|
|
534
|
+
|
|
478
535
|
var setLocalization = useCallback(function () {
|
|
479
536
|
var localization = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : props.localization;
|
|
537
|
+
|
|
480
538
|
var _initLocalization = initLocalization(Object.assign(Object.assign({}, props), {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
539
|
+
localization: localization
|
|
540
|
+
})),
|
|
541
|
+
searchFilter = _initLocalization.searchFilter,
|
|
542
|
+
searchQuery = _initLocalization.searchQuery,
|
|
543
|
+
basicFilter = _initLocalization.basicFilter,
|
|
544
|
+
basicQuery = _initLocalization.basicQuery,
|
|
545
|
+
customFilter = _initLocalization.customFilter,
|
|
546
|
+
customQuery = _initLocalization.customQuery;
|
|
547
|
+
|
|
489
548
|
dispatch({
|
|
490
549
|
type: 'changeSearchFilter',
|
|
491
550
|
searchFilter: searchFilter
|
|
@@ -510,8 +569,8 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
510
569
|
type: 'changeCustomQuery',
|
|
511
570
|
customQuery: customQuery
|
|
512
571
|
});
|
|
513
|
-
}, [props]);
|
|
514
|
-
|
|
572
|
+
}, [props]); // 模糊查询结构
|
|
573
|
+
|
|
515
574
|
var setSearchFilter = useCallback(function (itemValue) {
|
|
516
575
|
var searchFilter = searchKey === null || searchKey === void 0 ? void 0 : searchKey.reduce(function (pre, cur) {
|
|
517
576
|
pre[cur] = itemValue;
|
|
@@ -523,19 +582,20 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
523
582
|
value: [itemValue]
|
|
524
583
|
});
|
|
525
584
|
return pre;
|
|
526
|
-
}, Object.assign({}, state.searchQuery));
|
|
527
|
-
|
|
585
|
+
}, Object.assign({}, state.searchQuery)); // 数据清除时不返回结构体
|
|
586
|
+
|
|
528
587
|
if (!getIsHas(itemValue)) {
|
|
529
588
|
searchFilter = {};
|
|
530
589
|
searchQuery = {};
|
|
531
590
|
}
|
|
591
|
+
|
|
532
592
|
onQuery({
|
|
533
593
|
searchFilter: searchFilter,
|
|
534
594
|
searchQuery: searchQuery,
|
|
535
595
|
type: 'search'
|
|
536
596
|
});
|
|
537
|
-
}, [searchKey, state]);
|
|
538
|
-
|
|
597
|
+
}, [searchKey, state]); // 自定义筛选查询
|
|
598
|
+
|
|
539
599
|
var setCustomFilter = useCallback(function (val) {
|
|
540
600
|
var customFilter = customOptions.find(function (v) {
|
|
541
601
|
return v.value === val;
|
|
@@ -544,14 +604,14 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
544
604
|
customFilter: customFilter,
|
|
545
605
|
type: 'custom'
|
|
546
606
|
});
|
|
547
|
-
}, [customOptions, state.basicFilter]);
|
|
548
|
-
|
|
607
|
+
}, [customOptions, state.basicFilter]); // 组件内部使用
|
|
608
|
+
|
|
549
609
|
var CoreMethods = {
|
|
550
610
|
onQuery: onQuery,
|
|
551
611
|
setCustomFilter: setCustomFilter,
|
|
552
612
|
setSearchFilter: setSearchFilter
|
|
553
|
-
};
|
|
554
|
-
|
|
613
|
+
}; // 参与Ref转发
|
|
614
|
+
|
|
555
615
|
var RefMethods = {
|
|
556
616
|
getState: function getState() {
|
|
557
617
|
return state;
|
|
@@ -572,4 +632,5 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
572
632
|
RefMethods: RefMethods
|
|
573
633
|
};
|
|
574
634
|
};
|
|
635
|
+
|
|
575
636
|
export default useCoreOptions;
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
|
|
6
7
|
var _useDelayedFn = require("./useDelayedFn");
|
|
8
|
+
|
|
7
9
|
Object.keys(_useDelayedFn).forEach(function (key) {
|
|
8
10
|
if (key === "default" || key === "__esModule") return;
|
|
9
11
|
if (key in exports && exports[key] === _useDelayedFn[key]) return;
|