linkmore-design 1.0.67 → 1.0.70
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/README.md +11 -7
- package/dist/Approval/demos/basic.d.ts +1 -0
- package/dist/Approval/handle.d.ts +11 -0
- package/dist/Approval/type.d.ts +39 -8
- package/dist/Approval/util.d.ts +26 -0
- package/dist/AutoComplete/index.d.ts +2 -1
- package/dist/Calendar/demos/basic.d.ts +2 -0
- package/dist/Calendar/index.d.ts +4 -0
- package/dist/Calendar/style/index.d.ts +1 -0
- package/dist/CardTable/hooks/usePagination.d.ts +1 -1
- package/dist/CardTable/utils.d.ts +2 -2
- package/dist/Carousel/demos/basic.d.ts +2 -0
- package/dist/Carousel/index.d.ts +3 -0
- package/dist/Carousel/style/index.d.ts +1 -0
- package/dist/CkFilter/components/CascaderFilter.d.ts +1 -1
- package/dist/Collapse/demos/basic.d.ts +2 -0
- package/dist/Collapse/index.d.ts +3 -0
- package/dist/Collapse/style/index.d.ts +1 -0
- package/dist/Comment/demos/basic.d.ts +2 -0
- package/dist/Comment/index.d.ts +3 -0
- package/dist/Comment/style/index.d.ts +1 -0
- package/dist/ImageViewer/LmImageViewer.d.ts +5 -0
- package/dist/ImageViewer/demos/basic.d.ts +2 -0
- package/dist/ImageViewer/index.d.ts +2 -0
- package/dist/ImageViewer/style/index.d.ts +1 -0
- package/dist/ImageViewer/wrapeer/Root.d.ts +3 -0
- package/dist/LmFilter/components/CascaderFilter.d.ts +1 -1
- package/dist/LmFilter/components/CheckboxFilter.d.ts +1 -1
- package/dist/LmFilter/components/DateFilter.d.ts +1 -1
- package/dist/LmFilter/components/InputFilter.d.ts +2 -2
- package/dist/LmFilter/components/SelectFilter.d.ts +1 -1
- package/dist/LmFilter/filterFns/index.d.ts +1 -1
- package/dist/LmFilter/localization.d.ts +1 -0
- package/dist/LmFilter/utils.d.ts +1 -1
- package/dist/LmSelect/useCheckboxOptions.d.ts +2 -1
- package/dist/LmTable/components/DndContainer.d.ts +5 -0
- package/dist/LmTable/components/sortableBoxCol.d.ts +5 -0
- package/dist/LmTable/components/sortableItemCol.d.ts +1 -0
- package/dist/LmTable/demos/tableColSort.d.ts +2 -0
- package/dist/LmUpload/LmUpload.d.ts +6 -1
- package/dist/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/dist/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/dist/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/dist/LmUpload/UploadList/index.d.ts +4 -3
- package/dist/LmUpload/body/Progress.d.ts +4 -0
- package/dist/LmUpload/demos/card.d.ts +2 -0
- package/dist/LmUpload/demos/picture.d.ts +2 -0
- package/dist/LmUpload/fns/index.d.ts +9 -1
- package/dist/LmUpload/utils.d.ts +1 -0
- package/dist/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Popconfirm/demos/basic.d.ts +2 -0
- package/dist/Popconfirm/index.d.ts +3 -0
- package/dist/Popconfirm/style/index.d.ts +1 -0
- package/dist/Progress/demos/basic.d.ts +2 -0
- package/dist/Progress/demos/circle.d.ts +2 -0
- package/dist/Progress/demos/dynamic.d.ts +2 -0
- package/dist/Progress/demos/small.d.ts +2 -0
- package/dist/Progress/index.d.ts +3 -0
- package/dist/Progress/style/index.d.ts +1 -0
- package/dist/Segmented/demos/basic.d.ts +2 -0
- package/dist/Segmented/index.d.ts +3 -0
- package/dist/Segmented/style/index.d.ts +1 -0
- package/dist/Slider/demos/basic.d.ts +2 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/style/index.d.ts +1 -0
- package/dist/Statistic/demos/basic.d.ts +2 -0
- package/dist/Statistic/index.d.ts +3 -0
- package/dist/Statistic/style/index.d.ts +1 -0
- package/dist/TimePicker/demos/basic.d.ts +3 -0
- package/dist/TimePicker/index.d.ts +3 -0
- package/dist/TimePicker/style/index.d.ts +1 -0
- package/dist/Timeline/demos/basic.d.ts +2 -0
- package/dist/Timeline/index.d.ts +3 -0
- package/dist/Timeline/style/index.d.ts +1 -0
- package/dist/Transfer/demos/basic.d.ts +2 -0
- package/dist/Transfer/index.d.ts +3 -0
- package/dist/Transfer/style/index.d.ts +1 -0
- package/dist/TreeSelect/demos/basic.d.ts +2 -0
- package/dist/TreeSelect/index.d.ts +3 -0
- package/dist/TreeSelect/style/index.d.ts +1 -0
- package/dist/hooks/useFullscreen/demos/useInModal.d.ts +2 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.umd.js +8832 -2917
- package/dist/index.umd.min.js +6 -6
- package/es/Affix/style/index.css +6 -0
- package/es/Alert/index.js +27 -5
- package/es/Alert/style/index.css +7 -1
- package/es/Approval/handle.d.ts +11 -0
- package/es/Approval/handle.js +138 -0
- package/es/Approval/index.js +280 -122
- package/es/Approval/style/index.css +60 -8
- package/es/Approval/type.d.ts +39 -8
- package/es/Approval/type.js +97 -1
- package/es/Approval/util.d.ts +26 -0
- package/es/Approval/util.js +132 -0
- package/es/AutoComplete/index.d.ts +2 -1
- package/es/AutoComplete/style/index.css +6 -0
- package/es/Avatar/style/index.css +6 -0
- package/es/Breadcrumb/style/index.css +6 -0
- package/es/ButtonTags/style/index.css +6 -0
- package/es/Calendar/index.d.ts +4 -0
- package/es/Calendar/index.js +3 -0
- package/es/Calendar/style/index.css +511 -0
- package/es/Calendar/style/index.d.ts +1 -0
- package/es/Calendar/style/index.js +1 -0
- package/es/Card/style/index.css +6 -0
- package/es/CardTable/fns/index.js +5 -8
- package/es/CardTable/table/TableRoot.js +2 -1
- package/es/Carousel/index.d.ts +3 -0
- package/es/Carousel/index.js +3 -0
- package/es/Carousel/style/index.css +511 -0
- package/es/Carousel/style/index.d.ts +1 -0
- package/es/Carousel/style/index.js +1 -0
- package/es/Cascader/style/index.css +6 -0
- package/es/CkFilter/complexFilter/drawer.js +1 -4
- package/es/CkFilter/complexFilter/saveModal.js +5 -7
- package/es/CkFilter/components/CustomModal.js +2 -3
- package/es/CkFilter/components/filterTypes.js +1 -3
- package/es/CkFilter/components/modal.js +2 -5
- package/es/CkFilter/components/modalBack.js +2 -3
- package/es/CkFilter/customFilter/drawer.js +6 -11
- package/es/CkFilter/style/index.css +6 -0
- package/es/Col/style/index.css +6 -0
- package/es/Collapse/index.d.ts +3 -0
- package/es/Collapse/index.js +3 -0
- package/es/Collapse/style/index.css +511 -0
- package/es/Collapse/style/index.d.ts +1 -0
- package/es/Collapse/style/index.js +1 -0
- package/es/Comment/index.d.ts +3 -0
- package/es/Comment/index.js +3 -0
- package/es/Comment/style/index.css +511 -0
- package/es/Comment/style/index.d.ts +1 -0
- package/es/Comment/style/index.js +1 -0
- package/es/CustomTableOption/style/index.css +6 -0
- package/es/CustomerService/style/index.css +6 -0
- package/es/DatePicker/style/index.css +6 -0
- package/es/Descriptions/style/index.css +6 -0
- package/es/Drawer/style/index.css +6 -0
- package/es/Dropdown/style/index.css +6 -0
- package/es/EditTable/style/index.css +6 -0
- package/es/Empty/style/index.css +6 -0
- package/es/Filter/baseFilter/Popover.js +0 -1
- package/es/Filter/baseFilter/ToggleFilter.js +0 -1
- package/es/Filter/edit/editFilter.js +2 -6
- package/es/Filter/remember.js +0 -1
- package/es/Filter/style/index.css +6 -0
- package/es/Form/style/index.css +6 -0
- package/es/Grid/style/index.css +6 -0
- package/es/Icon/style/index.css +6 -0
- package/es/IconFont/font/iconfont.js +1 -1
- package/es/Image/style/index.css +6 -0
- package/es/ImageViewer/LmImageViewer.d.ts +5 -0
- package/es/ImageViewer/LmImageViewer.js +26 -0
- package/es/ImageViewer/index.d.ts +2 -0
- package/es/ImageViewer/index.js +2 -0
- package/es/ImageViewer/style/index.css +211 -0
- package/es/ImageViewer/style/index.js +3 -0
- package/es/ImageViewer/wrapeer/Root.d.ts +3 -0
- package/es/ImageViewer/wrapeer/Root.js +12 -0
- package/es/Input/style/index.css +6 -0
- package/es/InputNumber/style/index.css +6 -0
- package/es/Layout/style/index.css +6 -0
- package/es/LeftTable/style/index.css +6 -0
- package/es/List/style/index.css +6 -0
- package/es/LmEditTable/EditTable.js +5 -3
- package/es/LmEditTable/style/index.css +12 -0
- package/es/LmFilter/complexFilter/drawer.js +2 -7
- package/es/LmFilter/complexFilter/valueDrawer.js +2 -5
- package/es/LmFilter/components/CascaderFilter.js +3 -2
- package/es/LmFilter/components/CheckboxFilter.js +3 -3
- package/es/LmFilter/components/DropdownFIlter.js +71 -65
- package/es/LmFilter/components/InputFilter.js +1 -2
- package/es/LmFilter/components/SelectFilter.js +2 -2
- package/es/LmFilter/components/index.js +7 -5
- package/es/LmFilter/customFilter/drawer.js +7 -25
- package/es/LmFilter/customFilter/index.js +2 -1
- package/es/LmFilter/customFilter/saveModal.js +5 -7
- package/es/LmFilter/customFilter/valueDrawer.js +2 -5
- package/es/LmFilter/filterFns/index.js +4 -7
- package/es/LmFilter/localization.d.ts +1 -0
- package/es/LmFilter/localization.js +2 -1
- package/es/LmFilter/utils.js +41 -22
- package/es/LmFilter/wrapper/FilterRoot.js +0 -2
- package/es/LmSelect/style/index.css +6 -0
- package/es/LmSelect/useCheckboxOptions.d.ts +2 -1
- package/es/LmSelect/useCheckboxOptions.js +4 -3
- package/es/LmTable/Table.js +78 -45
- package/es/LmTable/autosize.js +0 -3
- package/es/LmTable/components/DndContainer.d.ts +5 -0
- package/es/LmTable/components/DndContainer.js +35 -0
- package/es/LmTable/components/sortableBoxCol.js +24 -0
- package/es/LmTable/components/sortableItemCol.js +54 -0
- package/es/LmTable/style/index.css +6 -0
- package/es/LmUpload/LmUpload.d.ts +6 -1
- package/es/LmUpload/LmUpload.js +70 -14
- package/es/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemPicture.js +23 -8
- package/es/LmUpload/UploadList/ItemPictureCard.js +82 -16
- package/es/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/es/LmUpload/UploadList/ItemText.js +13 -7
- package/es/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/es/LmUpload/UploadList/RenderItem.js +3 -3
- package/es/LmUpload/UploadList/index.d.ts +4 -3
- package/es/LmUpload/UploadList/index.js +15 -8
- package/es/LmUpload/body/Progress.d.ts +4 -0
- package/es/LmUpload/body/Progress.js +16 -0
- package/es/LmUpload/body/UploadCore.js +20 -13
- package/es/LmUpload/body/UploadPicture.js +16 -8
- package/es/LmUpload/fns/index.d.ts +8 -0
- package/es/LmUpload/fns/index.js +231 -25
- package/es/LmUpload/style/index.css +26 -3
- package/es/LmUpload/utils.d.ts +1 -0
- package/es/LmUpload/utils.js +14 -1
- package/es/LmUpload/view/index.js +2 -2
- package/es/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/es/LmUpload/wrapper/UploadContainer.js +19 -3
- package/es/LmUpload/wrapper/UploadRoot.js +9 -1
- package/es/LmUpload/wrapper/UploadWrapper.js +4 -8
- package/es/LmUpload/wrapper/reducer.js +9 -2
- package/es/Mentions/style/index.css +6 -0
- package/es/Menu/style/index.css +6 -0
- package/es/Modal/index.d.ts +1 -1
- package/es/Modal/style/index.css +6 -0
- package/es/PageHeader/style/index.css +6 -0
- package/es/Pagination/style/index.css +6 -0
- package/es/PopTable/style/index.css +6 -0
- package/es/Popconfirm/index.d.ts +3 -0
- package/es/Popconfirm/index.js +3 -0
- package/es/Popconfirm/style/index.css +511 -0
- package/es/Popconfirm/style/index.d.ts +1 -0
- package/es/Popconfirm/style/index.js +1 -0
- package/es/Popover/style/index.css +6 -0
- package/es/ProTable/Table.js +0 -1
- package/es/ProTable/autosize.js +0 -3
- package/es/ProTable/style/index.css +6 -0
- package/es/Progress/index.d.ts +3 -0
- package/es/Progress/index.js +3 -0
- package/es/Progress/style/index.css +511 -0
- package/es/Progress/style/index.d.ts +1 -0
- package/es/Progress/style/index.js +1 -0
- package/es/QuickMenu/style/index.css +6 -0
- package/es/Rate/style/index.css +6 -0
- package/es/Row/style/index.css +6 -0
- package/es/Segmented/index.d.ts +3 -0
- package/es/Segmented/index.js +3 -0
- package/es/Segmented/style/index.css +511 -0
- package/es/Segmented/style/index.d.ts +1 -0
- package/es/Segmented/style/index.js +1 -0
- package/es/Select/style/index.css +6 -0
- package/es/Slider/index.d.ts +2 -0
- package/es/Slider/index.js +3 -0
- package/es/Slider/style/index.css +511 -0
- package/es/Slider/style/index.d.ts +1 -0
- package/es/Slider/style/index.js +1 -0
- package/es/Space/style/index.css +6 -0
- package/es/Spin/style/index.css +6 -0
- package/es/Statistic/index.d.ts +3 -0
- package/es/Statistic/index.js +3 -0
- package/es/Statistic/style/index.css +511 -0
- package/es/Statistic/style/index.d.ts +1 -0
- package/es/Statistic/style/index.js +1 -0
- package/es/Steps/style/index.css +6 -0
- package/es/Switch/style/index.css +6 -0
- package/es/Table/style/index.css +6 -0
- package/es/Tabs/style/index.css +6 -0
- package/es/Tag/style/index.css +6 -0
- package/es/TimePicker/index.d.ts +3 -0
- package/es/TimePicker/index.js +3 -0
- package/es/TimePicker/style/index.css +511 -0
- package/es/TimePicker/style/index.d.ts +1 -0
- package/es/TimePicker/style/index.js +1 -0
- package/es/Timeline/index.d.ts +3 -0
- package/es/Timeline/index.js +3 -0
- package/es/Timeline/style/index.css +511 -0
- package/es/Timeline/style/index.d.ts +1 -0
- package/es/Timeline/style/index.js +1 -0
- package/es/Tooltip/style/index.css +6 -0
- package/es/Transfer/index.d.ts +3 -0
- package/es/Transfer/index.js +3 -0
- package/es/Transfer/style/index.css +511 -0
- package/es/Transfer/style/index.d.ts +1 -0
- package/es/Transfer/style/index.js +1 -0
- package/es/Tree/style/index.css +6 -0
- package/es/TreeSelect/index.d.ts +3 -0
- package/es/TreeSelect/index.js +3 -0
- package/es/TreeSelect/style/index.css +511 -0
- package/es/TreeSelect/style/index.d.ts +1 -0
- package/es/TreeSelect/style/index.js +1 -0
- package/es/Typography/style/index.css +6 -0
- package/es/Upload/style/index.css +6 -0
- package/es/hooks/useFullscreen/index.js +6 -8
- package/es/index.d.ts +19 -0
- package/es/index.js +11 -1
- package/es/message/style/index.css +6 -0
- package/es/notification/style/index.css +6 -0
- package/es/styles/main.css +6 -0
- package/es/styles/resetAntd.css +3 -0
- package/lib/Affix/style/index.css +6 -0
- package/lib/Alert/index.js +27 -5
- package/lib/Alert/style/index.css +7 -1
- package/lib/Approval/handle.d.ts +11 -0
- package/lib/Approval/handle.js +160 -0
- package/lib/Approval/index.js +287 -122
- package/lib/Approval/style/index.css +60 -8
- package/lib/Approval/type.d.ts +39 -8
- package/lib/Approval/type.js +101 -1
- package/lib/Approval/util.d.ts +26 -0
- package/lib/Approval/util.js +148 -0
- package/lib/AutoComplete/index.d.ts +2 -1
- package/lib/AutoComplete/style/index.css +6 -0
- package/lib/Avatar/style/index.css +6 -0
- package/lib/Breadcrumb/style/index.css +6 -0
- package/lib/ButtonTags/style/index.css +6 -0
- package/lib/Calendar/index.d.ts +4 -0
- package/lib/Calendar/index.js +15 -0
- package/lib/Calendar/style/index.css +511 -0
- package/lib/Calendar/style/index.d.ts +1 -0
- package/lib/Calendar/style/index.js +3 -0
- package/lib/Card/style/index.css +6 -0
- package/lib/CardTable/fns/index.js +5 -8
- package/lib/CardTable/table/TableRoot.js +2 -1
- package/lib/Carousel/index.d.ts +3 -0
- package/lib/Carousel/index.js +15 -0
- package/lib/Carousel/style/index.css +511 -0
- package/lib/Carousel/style/index.d.ts +1 -0
- package/lib/Carousel/style/index.js +3 -0
- package/lib/Cascader/style/index.css +6 -0
- package/lib/CkFilter/complexFilter/drawer.js +1 -4
- package/lib/CkFilter/complexFilter/saveModal.js +5 -7
- package/lib/CkFilter/components/CustomModal.js +2 -3
- package/lib/CkFilter/components/filterTypes.js +1 -3
- package/lib/CkFilter/components/modal.js +2 -5
- package/lib/CkFilter/components/modalBack.js +2 -3
- package/lib/CkFilter/customFilter/drawer.js +6 -11
- package/lib/CkFilter/style/index.css +6 -0
- package/lib/Col/style/index.css +6 -0
- package/lib/Collapse/index.d.ts +3 -0
- package/lib/Collapse/index.js +15 -0
- package/lib/Collapse/style/index.css +511 -0
- package/lib/Collapse/style/index.d.ts +1 -0
- package/lib/Collapse/style/index.js +3 -0
- package/lib/Comment/index.d.ts +3 -0
- package/lib/Comment/index.js +15 -0
- package/lib/Comment/style/index.css +511 -0
- package/lib/Comment/style/index.d.ts +1 -0
- package/lib/Comment/style/index.js +3 -0
- package/lib/CustomTableOption/style/index.css +6 -0
- package/lib/CustomerService/style/index.css +6 -0
- package/lib/DatePicker/style/index.css +6 -0
- package/lib/Descriptions/style/index.css +6 -0
- package/lib/Drawer/style/index.css +6 -0
- package/lib/Dropdown/style/index.css +6 -0
- package/lib/EditTable/style/index.css +6 -0
- package/lib/Empty/style/index.css +6 -0
- package/lib/Filter/baseFilter/Popover.js +0 -1
- package/lib/Filter/baseFilter/ToggleFilter.js +0 -1
- package/lib/Filter/edit/editFilter.js +2 -6
- package/lib/Filter/remember.js +0 -1
- package/lib/Filter/style/index.css +6 -0
- package/lib/Form/style/index.css +6 -0
- package/lib/Grid/style/index.css +6 -0
- package/lib/Icon/style/index.css +6 -0
- package/lib/IconFont/font/iconfont.js +1 -1
- package/lib/Image/style/index.css +6 -0
- package/lib/ImageViewer/LmImageViewer.d.ts +5 -0
- package/lib/ImageViewer/LmImageViewer.js +40 -0
- package/lib/ImageViewer/index.d.ts +2 -0
- package/lib/ImageViewer/index.js +13 -0
- package/lib/ImageViewer/style/index.css +211 -0
- package/lib/ImageViewer/style/index.js +3 -0
- package/lib/ImageViewer/wrapeer/Root.d.ts +3 -0
- package/lib/ImageViewer/wrapeer/Root.js +23 -0
- package/lib/Input/style/index.css +6 -0
- package/lib/InputNumber/style/index.css +6 -0
- package/lib/Layout/style/index.css +6 -0
- package/lib/LeftTable/style/index.css +6 -0
- package/lib/List/style/index.css +6 -0
- package/lib/LmEditTable/EditTable.js +5 -3
- package/lib/LmEditTable/style/index.css +12 -0
- package/lib/LmFilter/complexFilter/drawer.js +2 -7
- package/lib/LmFilter/complexFilter/valueDrawer.js +2 -5
- package/lib/LmFilter/components/CascaderFilter.js +3 -2
- package/lib/LmFilter/components/CheckboxFilter.js +3 -3
- package/lib/LmFilter/components/DropdownFIlter.js +71 -65
- package/lib/LmFilter/components/InputFilter.js +1 -2
- package/lib/LmFilter/components/SelectFilter.js +2 -2
- package/lib/LmFilter/components/index.js +7 -5
- package/lib/LmFilter/customFilter/drawer.js +7 -25
- package/lib/LmFilter/customFilter/index.js +2 -1
- package/lib/LmFilter/customFilter/saveModal.js +5 -7
- package/lib/LmFilter/customFilter/valueDrawer.js +2 -5
- package/lib/LmFilter/filterFns/index.js +4 -7
- package/lib/LmFilter/localization.d.ts +1 -0
- package/lib/LmFilter/localization.js +4 -2
- package/lib/LmFilter/utils.js +41 -22
- package/lib/LmFilter/wrapper/FilterRoot.js +0 -2
- package/lib/LmSelect/style/index.css +6 -0
- package/lib/LmSelect/useCheckboxOptions.d.ts +2 -1
- package/lib/LmSelect/useCheckboxOptions.js +7 -5
- package/lib/LmTable/Table.js +78 -45
- package/lib/LmTable/autosize.js +0 -3
- package/lib/LmTable/components/DndContainer.d.ts +5 -0
- package/lib/LmTable/components/DndContainer.js +49 -0
- package/lib/LmTable/components/sortableBoxCol.js +24 -0
- package/lib/LmTable/components/sortableItemCol.js +54 -0
- package/lib/LmTable/style/index.css +6 -0
- package/lib/LmUpload/LmUpload.d.ts +6 -1
- package/lib/LmUpload/LmUpload.js +69 -13
- package/lib/LmUpload/UploadList/ItemPicture.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemPicture.js +26 -8
- package/lib/LmUpload/UploadList/ItemPictureCard.js +81 -16
- package/lib/LmUpload/UploadList/ItemText.d.ts +2 -1
- package/lib/LmUpload/UploadList/ItemText.js +16 -7
- package/lib/LmUpload/UploadList/RenderItem.d.ts +1 -5
- package/lib/LmUpload/UploadList/RenderItem.js +3 -3
- package/lib/LmUpload/UploadList/index.d.ts +4 -3
- package/lib/LmUpload/UploadList/index.js +17 -8
- package/lib/LmUpload/body/Progress.d.ts +4 -0
- package/lib/LmUpload/body/{UploadDrag.js → Progress.js} +10 -5
- package/lib/LmUpload/body/UploadCore.js +25 -18
- package/lib/LmUpload/body/UploadPicture.js +18 -7
- package/lib/LmUpload/fns/index.d.ts +8 -0
- package/lib/LmUpload/fns/index.js +233 -25
- package/lib/LmUpload/style/index.css +26 -3
- package/lib/LmUpload/utils.d.ts +1 -0
- package/lib/LmUpload/utils.js +16 -1
- package/lib/LmUpload/view/index.js +2 -2
- package/lib/LmUpload/wrapper/UploadContainer.d.ts +4 -3
- package/lib/LmUpload/wrapper/UploadContainer.js +21 -3
- package/lib/LmUpload/wrapper/UploadRoot.js +9 -1
- package/lib/LmUpload/wrapper/UploadWrapper.js +5 -12
- package/lib/LmUpload/wrapper/reducer.js +9 -2
- package/lib/Mentions/style/index.css +6 -0
- package/lib/Menu/style/index.css +6 -0
- package/lib/Modal/index.d.ts +1 -1
- package/lib/Modal/style/index.css +6 -0
- package/lib/PageHeader/style/index.css +6 -0
- package/lib/Pagination/style/index.css +6 -0
- package/lib/PopTable/style/index.css +6 -0
- package/lib/Popconfirm/index.d.ts +3 -0
- package/lib/Popconfirm/index.js +15 -0
- package/lib/Popconfirm/style/index.css +511 -0
- package/lib/Popconfirm/style/index.d.ts +1 -0
- package/lib/Popconfirm/style/index.js +3 -0
- package/lib/Popover/style/index.css +6 -0
- package/lib/ProTable/Table.js +0 -1
- package/lib/ProTable/autosize.js +0 -3
- package/lib/ProTable/style/index.css +6 -0
- package/lib/Progress/index.d.ts +3 -0
- package/lib/Progress/index.js +15 -0
- package/lib/Progress/style/index.css +511 -0
- package/lib/Progress/style/index.d.ts +1 -0
- package/lib/Progress/style/index.js +3 -0
- package/lib/QuickMenu/style/index.css +6 -0
- package/lib/Rate/style/index.css +6 -0
- package/lib/Row/style/index.css +6 -0
- package/lib/Segmented/index.d.ts +3 -0
- package/lib/Segmented/index.js +15 -0
- package/lib/Segmented/style/index.css +511 -0
- package/lib/Segmented/style/index.d.ts +1 -0
- package/lib/Segmented/style/index.js +3 -0
- package/lib/Select/style/index.css +6 -0
- package/lib/Slider/index.d.ts +2 -0
- package/lib/Slider/index.js +15 -0
- package/lib/Slider/style/index.css +511 -0
- package/lib/Slider/style/index.d.ts +1 -0
- package/lib/Slider/style/index.js +3 -0
- package/lib/Space/style/index.css +6 -0
- package/lib/Spin/style/index.css +6 -0
- package/lib/Statistic/index.d.ts +3 -0
- package/lib/Statistic/index.js +15 -0
- package/lib/Statistic/style/index.css +511 -0
- package/lib/Statistic/style/index.d.ts +1 -0
- package/lib/Statistic/style/index.js +3 -0
- package/lib/Steps/style/index.css +6 -0
- package/lib/Switch/style/index.css +6 -0
- package/lib/Table/style/index.css +6 -0
- package/lib/Tabs/style/index.css +6 -0
- package/lib/Tag/style/index.css +6 -0
- package/lib/TimePicker/index.d.ts +3 -0
- package/lib/TimePicker/index.js +15 -0
- package/lib/TimePicker/style/index.css +511 -0
- package/lib/TimePicker/style/index.d.ts +1 -0
- package/lib/TimePicker/style/index.js +3 -0
- package/lib/Timeline/index.d.ts +3 -0
- package/lib/Timeline/index.js +15 -0
- package/lib/Timeline/style/index.css +511 -0
- package/lib/Timeline/style/index.d.ts +1 -0
- package/lib/Timeline/style/index.js +3 -0
- package/lib/Tooltip/style/index.css +6 -0
- package/lib/Transfer/index.d.ts +3 -0
- package/lib/Transfer/index.js +15 -0
- package/lib/Transfer/style/index.css +511 -0
- package/lib/Transfer/style/index.d.ts +1 -0
- package/lib/Transfer/style/index.js +3 -0
- package/lib/Tree/style/index.css +6 -0
- package/lib/TreeSelect/index.d.ts +3 -0
- package/lib/TreeSelect/index.js +15 -0
- package/lib/TreeSelect/style/index.css +511 -0
- package/lib/TreeSelect/style/index.d.ts +1 -0
- package/lib/TreeSelect/style/index.js +3 -0
- package/lib/Typography/style/index.css +6 -0
- package/lib/Upload/style/index.css +6 -0
- package/lib/hooks/useFullscreen/index.js +6 -10
- package/lib/index.d.ts +19 -0
- package/lib/index.js +81 -1
- package/lib/message/style/index.css +6 -0
- package/lib/notification/style/index.css +6 -0
- package/lib/styles/main.css +6 -0
- package/lib/styles/resetAntd.css +3 -0
- package/package.json +3 -1
- package/typings/index.d.ts +1 -1
- package/dist/LmUpload/body/UploadDrag.d.ts +0 -4
- package/es/LmUpload/body/UploadDrag.d.ts +0 -4
- package/es/LmUpload/body/UploadDrag.js +0 -10
- package/lib/LmUpload/body/UploadDrag.d.ts +0 -4
package/es/styles/resetAntd.css
CHANGED
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
.ant-notification-notice .ant-notification-notice-description {
|
|
82
82
|
font-size: 12px;
|
|
83
83
|
}
|
|
84
|
+
.ant-collapse {
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
}
|
|
84
87
|
@font-face {
|
|
85
88
|
font-family: 'iconfont';
|
|
86
89
|
/* Project id 2966019 */
|
|
@@ -503,3 +506,6 @@ html {
|
|
|
503
506
|
.card_cell_content:hover .card_cell_body .card_cell_checkbox {
|
|
504
507
|
opacity: 1;
|
|
505
508
|
}
|
|
509
|
+
p {
|
|
510
|
+
margin-bottom: 0;
|
|
511
|
+
}
|
package/lib/Alert/index.js
CHANGED
|
@@ -107,8 +107,8 @@ var Alert = function Alert(_a) {
|
|
|
107
107
|
_a$className = _a.className,
|
|
108
108
|
className = _a$className === void 0 ? '' : _a$className,
|
|
109
109
|
style = _a.style,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
_onMouseEnter = _a.onMouseEnter,
|
|
111
|
+
_onMouseLeave = _a.onMouseLeave,
|
|
112
112
|
onClick = _a.onClick,
|
|
113
113
|
afterClose = _a.afterClose,
|
|
114
114
|
showIcon = _a.showIcon,
|
|
@@ -125,6 +125,11 @@ var Alert = function Alert(_a) {
|
|
|
125
125
|
closed = _React$useState2[0],
|
|
126
126
|
setClosed = _React$useState2[1];
|
|
127
127
|
|
|
128
|
+
var _React$useState3 = React.useState(false),
|
|
129
|
+
_React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2),
|
|
130
|
+
hovering = _React$useState4[0],
|
|
131
|
+
setHovering = _React$useState4[1];
|
|
132
|
+
|
|
128
133
|
var ref = React.useRef();
|
|
129
134
|
|
|
130
135
|
var _React$useContext = React.useContext(_configProvider.ConfigContext),
|
|
@@ -156,7 +161,18 @@ var Alert = function Alert(_a) {
|
|
|
156
161
|
var type = getType(); // banner 模式默认有 Icon
|
|
157
162
|
|
|
158
163
|
var isShowIcon = banner && showIcon === undefined ? true : showIcon;
|
|
159
|
-
var alertCls = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-with-description"), !!description), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-no-icon"), !isShowIcon), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-banner"), !!banner), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames2), className, 'lm_alert');
|
|
164
|
+
var alertCls = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-with-description"), !!description), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-no-icon"), !isShowIcon), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-banner"), !!banner), (0, _defineProperty2.default)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames2), className, 'lm_alert'); // @ts-ignore
|
|
165
|
+
|
|
166
|
+
React.useEffect(function () {
|
|
167
|
+
if (!hovering && duration > 0) {
|
|
168
|
+
var timeout = setTimeout(function () {
|
|
169
|
+
handleClose();
|
|
170
|
+
}, duration * 1000);
|
|
171
|
+
return function () {
|
|
172
|
+
clearTimeout(timeout);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}, [duration, hovering]);
|
|
160
176
|
var dataOrAriaProps = (0, _getDataOrAriaProps.default)(props);
|
|
161
177
|
return /*#__PURE__*/React.createElement(_rcMotion.default, {
|
|
162
178
|
visible: !closed,
|
|
@@ -177,8 +193,14 @@ var Alert = function Alert(_a) {
|
|
|
177
193
|
"data-show": !closed,
|
|
178
194
|
className: (0, _classnames.default)(alertCls, motionClassName),
|
|
179
195
|
style: Object.assign(Object.assign({}, style), motionStyle),
|
|
180
|
-
onMouseEnter: onMouseEnter
|
|
181
|
-
|
|
196
|
+
onMouseEnter: function onMouseEnter(e) {
|
|
197
|
+
setHovering(true);
|
|
198
|
+
_onMouseEnter === null || _onMouseEnter === void 0 ? void 0 : _onMouseEnter(e);
|
|
199
|
+
},
|
|
200
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
201
|
+
setHovering(false);
|
|
202
|
+
_onMouseLeave === null || _onMouseLeave === void 0 ? void 0 : _onMouseLeave(e);
|
|
203
|
+
},
|
|
182
204
|
onClick: onClick,
|
|
183
205
|
role: "alert"
|
|
184
206
|
}, dataOrAriaProps), isShowIcon ? /*#__PURE__*/React.createElement(IconNode, {
|
|
@@ -81,6 +81,9 @@
|
|
|
81
81
|
.ant-notification-notice .ant-notification-notice-description {
|
|
82
82
|
font-size: 12px;
|
|
83
83
|
}
|
|
84
|
+
.ant-collapse {
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
}
|
|
84
87
|
@font-face {
|
|
85
88
|
font-family: 'iconfont';
|
|
86
89
|
/* Project id 2966019 */
|
|
@@ -503,6 +506,9 @@ html {
|
|
|
503
506
|
.card_cell_content:hover .card_cell_body .card_cell_checkbox {
|
|
504
507
|
opacity: 1;
|
|
505
508
|
}
|
|
509
|
+
p {
|
|
510
|
+
margin-bottom: 0;
|
|
511
|
+
}
|
|
506
512
|
.lm_alert .alert_progress {
|
|
507
513
|
position: absolute;
|
|
508
514
|
width: 100%;
|
|
@@ -516,7 +522,7 @@ html {
|
|
|
516
522
|
transition: width 0.2s;
|
|
517
523
|
animation-timing-function: linear;
|
|
518
524
|
}
|
|
519
|
-
.lm_alert:hover .
|
|
525
|
+
.lm_alert:hover .alert_progress {
|
|
520
526
|
width: 100%;
|
|
521
527
|
animation-name: none;
|
|
522
528
|
animation-play-state: paused;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IApprovalItemProps } from "./type";
|
|
2
|
+
/**
|
|
3
|
+
* 获取现在到之前的时间差
|
|
4
|
+
* @param time
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function getDistanceTime(time: string | number | Date): string;
|
|
8
|
+
export declare function getCurrentTime(): string;
|
|
9
|
+
export declare const wrapperComment: (user: string, steps: Array<IApprovalItemProps>, update: any, setUpdate: any) => (value: string) => void;
|
|
10
|
+
export declare const wrapperAgree: (user: string, steps: Array<IApprovalItemProps>, update: any, setUpdate: any) => (value: string) => void;
|
|
11
|
+
export declare const wrapperRefuse: (user: string, steps: Array<IApprovalItemProps>, update: any, setUpdate: any) => (value: string) => void;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getCurrentTime = getCurrentTime;
|
|
9
|
+
exports.getDistanceTime = getDistanceTime;
|
|
10
|
+
exports.wrapperRefuse = exports.wrapperComment = exports.wrapperAgree = void 0;
|
|
11
|
+
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
|
|
14
|
+
var _type = require("./type");
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 获取现在到之前的时间差
|
|
18
|
+
* @param time
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
function getDistanceTime(time) {
|
|
22
|
+
if (typeof time === 'string' || typeof time === 'number') {
|
|
23
|
+
time = new Date(time);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var result = '';
|
|
27
|
+
var dis = Date.now() - time.getTime();
|
|
28
|
+
var second = parseInt(dis / 1000 + '');
|
|
29
|
+
var day = parseInt(second / 3600 / 24 + '');
|
|
30
|
+
var hour = parseInt(second / 3600 % 24 + '');
|
|
31
|
+
var minute = parseInt(second / 60 % 60 + '');
|
|
32
|
+
|
|
33
|
+
if (day > 0) {
|
|
34
|
+
result += day + '天' + hour + '小时' + minute + '分钟';
|
|
35
|
+
} else {
|
|
36
|
+
if (hour > 0) {
|
|
37
|
+
result += hour + '小时' + minute + '分钟';
|
|
38
|
+
} else {
|
|
39
|
+
result += minute + '分钟';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function getCurrentTime() {
|
|
47
|
+
var _Date$toLocaleString$ = new Date().toLocaleString().split(' '),
|
|
48
|
+
_Date$toLocaleString$2 = (0, _slicedToArray2.default)(_Date$toLocaleString$, 2),
|
|
49
|
+
t1 = _Date$toLocaleString$2[0],
|
|
50
|
+
t2 = _Date$toLocaleString$2[1];
|
|
51
|
+
|
|
52
|
+
var _t1$split = t1.split('/'),
|
|
53
|
+
_t1$split2 = (0, _slicedToArray2.default)(_t1$split, 3),
|
|
54
|
+
y = _t1$split2[0],
|
|
55
|
+
m = _t1$split2[1],
|
|
56
|
+
d = _t1$split2[2];
|
|
57
|
+
|
|
58
|
+
var _t2$split = t2.split(':'),
|
|
59
|
+
_t2$split2 = (0, _slicedToArray2.default)(_t2$split, 2),
|
|
60
|
+
h = _t2$split2[0],
|
|
61
|
+
minute = _t2$split2[1];
|
|
62
|
+
|
|
63
|
+
if (m.length === 1) {
|
|
64
|
+
m = 0 + m;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (d.length === 1) {
|
|
68
|
+
d = 0 + d;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var wrapperComment = function wrapperComment(user, steps, update, setUpdate) {
|
|
75
|
+
return function (value) {
|
|
76
|
+
var index = steps.findIndex(function (step) {
|
|
77
|
+
return _type.ApprovalType.isPending(step.type, step.approvalStatus);
|
|
78
|
+
});
|
|
79
|
+
steps.splice(index, 0, {
|
|
80
|
+
name: user,
|
|
81
|
+
time: getCurrentTime(),
|
|
82
|
+
type: _type.ApprovalType.ONLY_COMMENT,
|
|
83
|
+
comment: value
|
|
84
|
+
});
|
|
85
|
+
setUpdate(!update);
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
exports.wrapperComment = wrapperComment;
|
|
90
|
+
|
|
91
|
+
var wrapperAgree = function wrapperAgree(user, steps, update, setUpdate) {
|
|
92
|
+
return function (value) {
|
|
93
|
+
var currentTime = getCurrentTime();
|
|
94
|
+
var index = steps.findIndex(function (step) {
|
|
95
|
+
return _type.ApprovalType.isPending(step.type, step.approvalStatus);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
if (index < 0) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
var step = steps[index];
|
|
103
|
+
|
|
104
|
+
if (step.agreeList.length >= step.approverList.length) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
step.agreeList.push(user);
|
|
109
|
+
|
|
110
|
+
if (step.everyoneAgree) {
|
|
111
|
+
if (step.agreeList.length === step.approverList.length) {
|
|
112
|
+
step.approvalStatus = _type.StatusType.AGREE;
|
|
113
|
+
step.name = user;
|
|
114
|
+
step.comment = value;
|
|
115
|
+
step.time = currentTime;
|
|
116
|
+
} else {
|
|
117
|
+
// 新增一条记录
|
|
118
|
+
steps.splice(index, 0, {
|
|
119
|
+
name: user,
|
|
120
|
+
time: currentTime,
|
|
121
|
+
type: _type.ApprovalType.APPROVAL,
|
|
122
|
+
approvalStatus: _type.StatusType.AGREE,
|
|
123
|
+
comment: value
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
step.approvalStatus = _type.StatusType.AGREE;
|
|
128
|
+
step.name = user;
|
|
129
|
+
step.comment = value;
|
|
130
|
+
step.time = currentTime;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
var nextNode = steps.find(function (step) {
|
|
134
|
+
return _type.ApprovalType.isPending(step.type, step.approvalStatus);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
if (nextNode) {
|
|
138
|
+
nextNode.time = currentTime;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
setUpdate(!update);
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
exports.wrapperAgree = wrapperAgree;
|
|
146
|
+
|
|
147
|
+
var wrapperRefuse = function wrapperRefuse(user, steps, update, setUpdate) {
|
|
148
|
+
return function (value) {
|
|
149
|
+
var step = steps.find(function (step) {
|
|
150
|
+
return _type.ApprovalType.isPending(step.type, step.approvalStatus);
|
|
151
|
+
});
|
|
152
|
+
step.refuse = user;
|
|
153
|
+
step.approvalStatus = _type.StatusType.REFUSE;
|
|
154
|
+
step.comment = value;
|
|
155
|
+
step.time = getCurrentTime();
|
|
156
|
+
setUpdate(!update);
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
exports.wrapperRefuse = wrapperRefuse;
|