linkmore-design 1.0.66 → 1.0.69
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/index.d.ts +1 -21
- package/dist/Approval/type.d.ts +55 -0
- 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/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/musort.d.ts +2 -0
- package/dist/LmTable/demos/tableColSort.d.ts +2 -0
- package/dist/LmUpload/LmUpload.d.ts +6 -0
- package/dist/LmUpload/UploadList/ItemPicture.d.ts +5 -0
- package/dist/LmUpload/UploadList/ItemPictureCard.d.ts +5 -0
- package/dist/LmUpload/UploadList/ItemText.d.ts +5 -0
- package/dist/LmUpload/UploadList/RenderItem.d.ts +2 -0
- package/dist/LmUpload/UploadList/index.d.ts +4 -0
- package/dist/LmUpload/body/Progress.d.ts +4 -0
- package/dist/LmUpload/body/UploadCore.d.ts +4 -0
- package/dist/LmUpload/body/UploadPicture.d.ts +4 -0
- package/dist/LmUpload/components/card.d.ts +2 -0
- package/dist/LmUpload/demos/basic.d.ts +2 -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 +18 -0
- package/dist/LmUpload/index.d.ts +2 -0
- package/dist/LmUpload/style/index.d.ts +1 -0
- package/dist/LmUpload/utils.d.ts +5 -0
- package/dist/LmUpload/view/index.d.ts +4 -0
- package/dist/LmUpload/wrapper/Upload.d.ts +4 -0
- package/dist/LmUpload/wrapper/UploadContainer.d.ts +5 -0
- package/dist/LmUpload/wrapper/UploadRoot.d.ts +3 -0
- package/dist/LmUpload/wrapper/UploadWrapper.d.ts +4 -0
- package/dist/LmUpload/wrapper/reducer.d.ts +8 -0
- 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 +18 -0
- package/dist/index.umd.js +3891 -1392
- 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.d.ts +1 -21
- package/es/Approval/index.js +341 -90
- package/es/Approval/style/index.css +131 -13
- package/es/Approval/type.d.ts +55 -0
- package/es/Approval/type.js +97 -0
- 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/index.js +6 -6
- 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/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/DragHandle.js +2 -1
- package/es/LmEditTable/EditTable.js +90 -43
- package/es/LmEditTable/style/index.css +18 -0
- package/es/LmFilter/LmFilter.js +2 -0
- package/es/LmFilter/complexFilter/drawer.js +2 -7
- package/es/LmFilter/complexFilter/valueDrawer.js +2 -5
- package/es/LmFilter/components/CascaderFilter.js +0 -1
- package/es/LmFilter/components/DropdownFIlter.js +17 -19
- package/es/LmFilter/components/InputFilter.js +1 -2
- package/es/LmFilter/components/SelectFilter.js +2 -2
- package/es/LmFilter/components/index.js +1 -1
- 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 +5 -7
- package/es/LmFilter/localization.d.ts +1 -0
- package/es/LmFilter/localization.js +2 -1
- package/es/LmFilter/utils.js +39 -22
- package/es/LmFilter/wrapper/Filter.js +3 -2
- package/es/LmFilter/wrapper/FilterRoot.js +0 -2
- package/es/LmSelect/NormalSelect.js +5 -1
- package/es/LmSelect/style/index.css +8 -1
- package/es/LmSelect/useCheckboxOptions.d.ts +2 -1
- package/es/LmSelect/useCheckboxOptions.js +6 -4
- package/es/LmTable/Table.js +88 -46
- 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 -0
- package/es/LmUpload/LmUpload.js +81 -0
- package/es/LmUpload/UploadList/ItemPicture.d.ts +5 -0
- package/es/LmUpload/UploadList/ItemPicture.js +31 -0
- package/es/LmUpload/UploadList/ItemPictureCard.d.ts +5 -0
- package/es/LmUpload/UploadList/ItemPictureCard.js +135 -0
- package/es/LmUpload/UploadList/ItemText.d.ts +5 -0
- package/es/LmUpload/UploadList/ItemText.js +30 -0
- package/es/LmUpload/UploadList/RenderItem.d.ts +2 -0
- package/es/LmUpload/UploadList/RenderItem.js +31 -0
- package/es/LmUpload/UploadList/index.d.ts +4 -0
- package/es/LmUpload/UploadList/index.js +27 -0
- package/es/LmUpload/body/Progress.d.ts +4 -0
- package/es/LmUpload/body/Progress.js +16 -0
- package/es/LmUpload/body/UploadCore.d.ts +4 -0
- package/es/LmUpload/body/UploadCore.js +57 -0
- package/es/LmUpload/body/UploadPicture.d.ts +4 -0
- package/es/LmUpload/body/UploadPicture.js +35 -0
- package/es/LmUpload/components/card.d.ts +2 -0
- package/es/LmUpload/components/card.js +9 -0
- package/es/LmUpload/fns/index.d.ts +18 -0
- package/es/LmUpload/fns/index.js +229 -0
- package/es/LmUpload/index.d.ts +2 -0
- package/es/LmUpload/index.js +2 -0
- package/es/LmUpload/style/index.css +205 -0
- package/es/LmUpload/style/index.js +3 -0
- package/es/LmUpload/utils.d.ts +5 -0
- package/es/LmUpload/utils.js +33 -0
- package/es/LmUpload/view/index.d.ts +4 -0
- package/es/LmUpload/view/index.js +10 -0
- package/es/LmUpload/wrapper/Upload.d.ts +4 -0
- package/es/LmUpload/wrapper/Upload.js +12 -0
- package/es/LmUpload/wrapper/UploadContainer.d.ts +5 -0
- package/es/LmUpload/wrapper/UploadContainer.js +28 -0
- package/es/LmUpload/wrapper/UploadRoot.d.ts +3 -0
- package/es/LmUpload/wrapper/UploadRoot.js +68 -0
- package/es/LmUpload/wrapper/UploadWrapper.d.ts +4 -0
- package/es/LmUpload/wrapper/UploadWrapper.js +17 -0
- package/es/LmUpload/wrapper/reducer.d.ts +8 -0
- package/es/LmUpload/wrapper/reducer.js +33 -0
- 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 +18 -0
- package/es/index.js +10 -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.d.ts +1 -21
- package/lib/Approval/index.js +347 -89
- package/lib/Approval/style/index.css +131 -13
- package/lib/Approval/type.d.ts +55 -0
- package/lib/Approval/type.js +105 -0
- 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/index.js +6 -6
- 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/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/DragHandle.js +2 -1
- package/lib/LmEditTable/EditTable.js +90 -43
- package/lib/LmEditTable/style/index.css +18 -0
- package/lib/LmFilter/LmFilter.js +2 -0
- package/lib/LmFilter/complexFilter/drawer.js +2 -7
- package/lib/LmFilter/complexFilter/valueDrawer.js +2 -5
- package/lib/LmFilter/components/CascaderFilter.js +0 -1
- package/lib/LmFilter/components/DropdownFIlter.js +17 -19
- package/lib/LmFilter/components/InputFilter.js +1 -2
- package/lib/LmFilter/components/SelectFilter.js +2 -2
- package/lib/LmFilter/components/index.js +1 -1
- 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 +5 -7
- package/lib/LmFilter/localization.d.ts +1 -0
- package/lib/LmFilter/localization.js +4 -2
- package/lib/LmFilter/utils.js +39 -22
- package/lib/LmFilter/wrapper/Filter.js +3 -2
- package/lib/LmFilter/wrapper/FilterRoot.js +0 -2
- package/lib/LmSelect/NormalSelect.js +5 -1
- package/lib/LmSelect/style/index.css +8 -1
- package/lib/LmSelect/useCheckboxOptions.d.ts +2 -1
- package/lib/LmSelect/useCheckboxOptions.js +9 -6
- package/lib/LmTable/Table.js +88 -46
- 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 -0
- package/lib/LmUpload/LmUpload.js +95 -0
- package/lib/LmUpload/UploadList/ItemPicture.d.ts +5 -0
- package/lib/LmUpload/UploadList/ItemPicture.js +43 -0
- package/lib/LmUpload/UploadList/ItemPictureCard.d.ts +5 -0
- package/lib/LmUpload/UploadList/ItemPictureCard.js +150 -0
- package/lib/LmUpload/UploadList/ItemText.d.ts +5 -0
- package/lib/LmUpload/UploadList/ItemText.js +41 -0
- package/lib/LmUpload/UploadList/RenderItem.d.ts +2 -0
- package/lib/LmUpload/UploadList/RenderItem.js +44 -0
- package/lib/LmUpload/UploadList/index.d.ts +4 -0
- package/lib/LmUpload/UploadList/index.js +41 -0
- package/lib/LmUpload/body/Progress.d.ts +4 -0
- package/lib/LmUpload/body/Progress.js +26 -0
- package/lib/LmUpload/body/UploadCore.d.ts +4 -0
- package/lib/LmUpload/body/UploadCore.js +73 -0
- package/lib/LmUpload/body/UploadPicture.d.ts +4 -0
- package/lib/LmUpload/body/UploadPicture.js +50 -0
- package/lib/LmUpload/components/card.d.ts +2 -0
- package/lib/LmUpload/components/card.js +19 -0
- package/lib/LmUpload/fns/index.d.ts +18 -0
- package/lib/LmUpload/fns/index.js +242 -0
- package/lib/LmUpload/index.d.ts +2 -0
- package/lib/LmUpload/index.js +13 -0
- package/lib/LmUpload/style/index.css +205 -0
- package/lib/LmUpload/style/index.js +3 -0
- package/lib/LmUpload/utils.d.ts +5 -0
- package/lib/LmUpload/utils.js +54 -0
- package/lib/LmUpload/view/index.d.ts +4 -0
- package/lib/LmUpload/view/index.js +20 -0
- package/lib/LmUpload/wrapper/Upload.d.ts +4 -0
- package/lib/LmUpload/wrapper/Upload.js +25 -0
- package/lib/LmUpload/wrapper/UploadContainer.d.ts +5 -0
- package/lib/LmUpload/wrapper/UploadContainer.js +43 -0
- package/lib/LmUpload/wrapper/UploadRoot.d.ts +3 -0
- package/lib/LmUpload/wrapper/UploadRoot.js +85 -0
- package/lib/LmUpload/wrapper/UploadWrapper.d.ts +4 -0
- package/lib/LmUpload/wrapper/UploadWrapper.js +29 -0
- package/lib/LmUpload/wrapper/reducer.d.ts +8 -0
- package/lib/LmUpload/wrapper/reducer.js +46 -0
- 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 +18 -0
- package/lib/index.js +73 -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
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
.lm_upload_wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
}
|
|
6
|
+
.lm_upload_wrapper .lm_upload_core {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
}
|
|
10
|
+
.lm_upload_wrapper .lm_upload_core .lm_upload_core_picture {
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
text-align: center;
|
|
16
|
+
border: 1px solid var(--color-15);
|
|
17
|
+
background-color: var(--color-2);
|
|
18
|
+
transition: all 0.3s;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.lm_upload_wrapper .lm_upload_core .lm_upload_core_picture:hover {
|
|
22
|
+
border-color: var(--primary-color);
|
|
23
|
+
}
|
|
24
|
+
.lm_upload_wrapper .lm_upload_core .lm_upload_core_picture .lm_upload_core_picture_action {
|
|
25
|
+
width: 100%;
|
|
26
|
+
text-align: center;
|
|
27
|
+
padding: var(--gap);
|
|
28
|
+
}
|
|
29
|
+
.lm_upload_wrapper .lm_upload_core .lm_upload_core_picture .lm_upload_core_picture_action .action_plus {
|
|
30
|
+
color: var(--color-85);
|
|
31
|
+
}
|
|
32
|
+
.lm_upload_wrapper .lm_upload_core .lm_upload_core_picture .lm_upload_core_picture_action .tip {
|
|
33
|
+
color: var(--color-45);
|
|
34
|
+
margin-top: var(--gap);
|
|
35
|
+
}
|
|
36
|
+
.lm_upload_wrapper .lm_upload_progress {
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 2px;
|
|
39
|
+
background-color: var(--color-4);
|
|
40
|
+
border-radius: 20px;
|
|
41
|
+
margin: 10px 0;
|
|
42
|
+
}
|
|
43
|
+
.lm_upload_wrapper .lm_upload_progress .line {
|
|
44
|
+
width: 0%;
|
|
45
|
+
height: 2px;
|
|
46
|
+
transition: 0.3;
|
|
47
|
+
background-color: var(--primary-color);
|
|
48
|
+
border-radius: 20px;
|
|
49
|
+
}
|
|
50
|
+
.lm_upload_wrapper .lm_upload_item {
|
|
51
|
+
vertical-align: middle;
|
|
52
|
+
}
|
|
53
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
gap: var(--gap);
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 22px;
|
|
60
|
+
padding: 0 6px;
|
|
61
|
+
transition: 0.3s;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text:hover {
|
|
65
|
+
background-color: var(--color-2);
|
|
66
|
+
}
|
|
67
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_left {
|
|
68
|
+
flex: 1;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: var(--gap);
|
|
72
|
+
}
|
|
73
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_left .prefix {
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
color: var(--color-45);
|
|
76
|
+
transition: 0.3s;
|
|
77
|
+
}
|
|
78
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_left .lm_upload_item_name {
|
|
79
|
+
flex: 1;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
color: var(--primary-color);
|
|
82
|
+
transition: 0.3s;
|
|
83
|
+
}
|
|
84
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_right {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
}
|
|
87
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_right .action_delete {
|
|
88
|
+
width: 24px;
|
|
89
|
+
text-align: center;
|
|
90
|
+
color: var(--color-45);
|
|
91
|
+
transition: 0.3s;
|
|
92
|
+
}
|
|
93
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_right .action_delete .anticon {
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
}
|
|
96
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_text .text_right .action_delete:hover {
|
|
97
|
+
color: var(--primary-color);
|
|
98
|
+
}
|
|
99
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card {
|
|
100
|
+
position: relative;
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
text-align: center;
|
|
105
|
+
border: 1px solid var(--color-15);
|
|
106
|
+
border-radius: 2px;
|
|
107
|
+
padding: var(--gap);
|
|
108
|
+
transition: all 0.3s;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
}
|
|
111
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card .lm_upload_item_thumb {
|
|
112
|
+
width: 100%;
|
|
113
|
+
}
|
|
114
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card .lm_upload_item_thumb .anticon {
|
|
115
|
+
font-size: 34px;
|
|
116
|
+
color: var(--color-45);
|
|
117
|
+
}
|
|
118
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card .lm_upload_item_thumb img {
|
|
119
|
+
object-fit: contain;
|
|
120
|
+
}
|
|
121
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card .lm_upload_item_error .lm_upload_item_name {
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
text-overflow: ellipsis;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
margin-top: 8px;
|
|
126
|
+
}
|
|
127
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card .lm_upload_item_mask {
|
|
128
|
+
position: absolute;
|
|
129
|
+
inset: 8px;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transition: 0.3s;
|
|
136
|
+
z-index: 1;
|
|
137
|
+
}
|
|
138
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card .lm_upload_item_mask .lm_upload_item_action {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: var(--gap);
|
|
142
|
+
color: #fff;
|
|
143
|
+
}
|
|
144
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card:hover .lm_upload_item_mask {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
}
|
|
147
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card.error {
|
|
148
|
+
border-color: var(--error-color);
|
|
149
|
+
}
|
|
150
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card.error .lm_upload_item_mask {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_card.error .lm_upload_item_error {
|
|
154
|
+
color: var(--error-color);
|
|
155
|
+
}
|
|
156
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
gap: var(--gap);
|
|
161
|
+
width: 100%;
|
|
162
|
+
border: 1px solid var(--color-15);
|
|
163
|
+
border-radius: 2px;
|
|
164
|
+
padding: var(--gap);
|
|
165
|
+
transition: 0.3s;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
}
|
|
168
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture:hover {
|
|
169
|
+
border-color: var(--primary-color);
|
|
170
|
+
}
|
|
171
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_left {
|
|
172
|
+
flex: 1;
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
gap: var(--gap);
|
|
176
|
+
}
|
|
177
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_left .lm_upload_item_thumb {
|
|
178
|
+
width: 48px;
|
|
179
|
+
}
|
|
180
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_left .lm_upload_item_thumb img {
|
|
181
|
+
width: 100%;
|
|
182
|
+
max-height: 80px;
|
|
183
|
+
}
|
|
184
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_left .lm_upload_item_name {
|
|
185
|
+
flex: 1;
|
|
186
|
+
font-size: 14px;
|
|
187
|
+
color: var(--primary-color);
|
|
188
|
+
transition: 0.3s;
|
|
189
|
+
}
|
|
190
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_right {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
}
|
|
194
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_right .action_delete {
|
|
195
|
+
width: 24px;
|
|
196
|
+
text-align: center;
|
|
197
|
+
color: var(--color-45);
|
|
198
|
+
transition: 0.3s;
|
|
199
|
+
}
|
|
200
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_right .action_delete .anticon {
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
}
|
|
203
|
+
.lm_upload_wrapper .lm_upload_item.lm_upload_item_picture .picture_right .action_delete:hover {
|
|
204
|
+
color: var(--primary-color);
|
|
205
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getIsHas(val: any): boolean;
|
|
2
|
+
export declare function isClassComponent(component: any): any;
|
|
3
|
+
export declare function isExoticComponent(component: any): boolean;
|
|
4
|
+
export declare function isReactComponent(component: any): any;
|
|
5
|
+
export declare const render: (Comp: any, props: any) => any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import React from 'react'; // 检查是否存在内容
|
|
3
|
+
|
|
4
|
+
export function getIsHas(val) {
|
|
5
|
+
var _a; // 检查是否数字类型, 是否布尔类型
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var flag = !!val || typeof val === 'number' || typeof val === 'boolean'; // 检查空对象和空数组
|
|
9
|
+
|
|
10
|
+
if (!!val && _typeof(val) === 'object') {
|
|
11
|
+
flag = Array.isArray(val) ? !!val.length : !!((_a = Object.keys(val)) === null || _a === void 0 ? void 0 : _a.length);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return flag;
|
|
15
|
+
} // 检查是否类组件
|
|
16
|
+
|
|
17
|
+
export function isClassComponent(component) {
|
|
18
|
+
return typeof component === 'function' && function () {
|
|
19
|
+
var proto = Object.getPrototypeOf(component);
|
|
20
|
+
return proto.prototype && proto.prototype.isReactComponent;
|
|
21
|
+
}();
|
|
22
|
+
} // 检查是否自定义组件
|
|
23
|
+
|
|
24
|
+
export function isExoticComponent(component) {
|
|
25
|
+
return _typeof(component) === 'object' && _typeof(component.$$typeof) === 'symbol' && ['react.memo', 'react.forward_ref'].includes(component.$$typeof.description);
|
|
26
|
+
} // 检查是否React组件
|
|
27
|
+
|
|
28
|
+
export function isReactComponent(component) {
|
|
29
|
+
return isClassComponent(component) || typeof component === 'function' || isExoticComponent(component);
|
|
30
|
+
}
|
|
31
|
+
export var render = function render(Comp, props) {
|
|
32
|
+
return !Comp ? null : isReactComponent(Comp) ? /*#__PURE__*/React.createElement(Comp, Object.assign({}, props)) : Comp;
|
|
33
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 上传组件组合
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import UploadCore from '../body/UploadCore';
|
|
4
|
+
|
|
5
|
+
var LmUpload = function LmUpload(_ref) {
|
|
6
|
+
var instance = _ref.instance;
|
|
7
|
+
return /*#__PURE__*/React.createElement(UploadCore, {
|
|
8
|
+
instance: instance
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default LmUpload;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// 上传组件主体区域
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import LmUpload from './Upload';
|
|
4
|
+
import LmUploadList from '../UploadList';
|
|
5
|
+
|
|
6
|
+
var LmUploadContainer = function LmUploadContainer(_ref) {
|
|
7
|
+
var instance = _ref.instance;
|
|
8
|
+
var wrapper = instance.components.wrapper;
|
|
9
|
+
|
|
10
|
+
if (!wrapper) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LmUpload, {
|
|
12
|
+
instance: instance
|
|
13
|
+
}), /*#__PURE__*/React.createElement(LmUploadList, {
|
|
14
|
+
instance: instance
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return wrapper === null || wrapper === void 0 ? void 0 : wrapper({
|
|
19
|
+
upload: /*#__PURE__*/React.createElement(LmUpload, {
|
|
20
|
+
instance: instance
|
|
21
|
+
}),
|
|
22
|
+
fileList: /*#__PURE__*/React.createElement(LmUploadList, {
|
|
23
|
+
instance: instance
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default /*#__PURE__*/React.memo(LmUploadContainer);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
|
|
3
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}; // 根文件 => 参数聚合
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
import React, { useMemo, useReducer, forwardRef, useImperativeHandle } from 'react';
|
|
18
|
+
import reducer, { initialState as initReducerState } from './reducer';
|
|
19
|
+
import useCoreOptions from '../fns';
|
|
20
|
+
import LmUploadWrapper from './UploadWrapper';
|
|
21
|
+
import { getIsHas } from '../utils';
|
|
22
|
+
|
|
23
|
+
var LmUploadRoot = function LmUploadRoot(props, ref) {
|
|
24
|
+
var initialState = useMemo(function () {
|
|
25
|
+
return initReducerState(props);
|
|
26
|
+
}, []);
|
|
27
|
+
|
|
28
|
+
var _useReducer = useReducer(reducer, initialState),
|
|
29
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
30
|
+
state = _useReducer2[0],
|
|
31
|
+
dispatch = _useReducer2[1]; // 格式化接收参数值
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
var configProps = useMemo(function () {
|
|
35
|
+
var fileList = props.fileList,
|
|
36
|
+
resetProps = __rest(props // 受控/非受控时的数据收集
|
|
37
|
+
, ["fileList"]); // 受控/非受控时的数据收集
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
var aliveValue = getIsHas(fileList) ? fileList : state.fileList;
|
|
41
|
+
return Object.assign(Object.assign({}, resetProps), {
|
|
42
|
+
fileList: aliveValue
|
|
43
|
+
});
|
|
44
|
+
}, [props, state.fileList]); // 获取核心Methods
|
|
45
|
+
|
|
46
|
+
var _useCoreOptions = useCoreOptions({
|
|
47
|
+
state: state,
|
|
48
|
+
dispatch: dispatch,
|
|
49
|
+
props: props
|
|
50
|
+
}),
|
|
51
|
+
CoreMethods = _useCoreOptions.CoreMethods,
|
|
52
|
+
RefMethods = _useCoreOptions.RefMethods; // 组件实例
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
var instance = Object.assign(Object.assign(Object.assign(Object.assign({}, configProps), CoreMethods), RefMethods), {
|
|
56
|
+
state: state,
|
|
57
|
+
dispatch: dispatch
|
|
58
|
+
}); // 向外暴露出的方法
|
|
59
|
+
|
|
60
|
+
useImperativeHandle(ref, function () {
|
|
61
|
+
return Object.assign({}, RefMethods);
|
|
62
|
+
});
|
|
63
|
+
return /*#__PURE__*/React.createElement(LmUploadWrapper, {
|
|
64
|
+
instance: instance
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export default /*#__PURE__*/forwardRef(LmUploadRoot);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// 包裹上传组件区域: 拓展其他结构
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import LmUploadContainer from './UploadContainer';
|
|
4
|
+
import LmUploadView from '../view';
|
|
5
|
+
|
|
6
|
+
var LmUploadWrapper = function LmUploadWrapper(_ref) {
|
|
7
|
+
var instance = _ref.instance;
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: "lm_upload_wrapper"
|
|
10
|
+
}, /*#__PURE__*/React.createElement(LmUploadContainer, {
|
|
11
|
+
instance: instance
|
|
12
|
+
}), /*#__PURE__*/React.createElement(LmUploadView, {
|
|
13
|
+
instance: instance
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default LmUploadWrapper;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// 状态管理操作
|
|
2
|
+
export var reducer = function reducer(state, action) {
|
|
3
|
+
var fileList = action.fileList,
|
|
4
|
+
percent = action.percent;
|
|
5
|
+
|
|
6
|
+
switch (action.type) {
|
|
7
|
+
case 'changeFileList':
|
|
8
|
+
return Object.assign(Object.assign({}, state), {
|
|
9
|
+
fileList: fileList
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
case 'changePercent':
|
|
13
|
+
return Object.assign(Object.assign({}, state), {
|
|
14
|
+
percent: percent
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
default:
|
|
18
|
+
throw new Error();
|
|
19
|
+
}
|
|
20
|
+
}; // 仅在初始化时触发一次
|
|
21
|
+
|
|
22
|
+
export var initialState = function initialState(props) {
|
|
23
|
+
var defaultFileList = props.defaultFileList,
|
|
24
|
+
upload = props.upload;
|
|
25
|
+
return {
|
|
26
|
+
upload: upload,
|
|
27
|
+
process: 0,
|
|
28
|
+
status: 'done',
|
|
29
|
+
fileList: defaultFileList // 用于非受控模式时的数据收集
|
|
30
|
+
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default reducer;
|
|
@@ -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/es/Menu/style/index.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/es/Modal/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface ILMModalProps extends ModalProps {
|
|
|
4
4
|
wrapClassName?: string;
|
|
5
5
|
size?: 'default' | 'small';
|
|
6
6
|
}
|
|
7
|
-
declare const LMModal: React.FC<ModalProps> & import("antd/lib/modal/confirm").ModalStaticFunctions & {
|
|
7
|
+
declare const LMModal: React.FC<ILMModalProps> & React.FC<ModalProps> & import("antd/lib/modal/confirm").ModalStaticFunctions & {
|
|
8
8
|
useModal: typeof import("antd/lib/modal/useModal").default;
|
|
9
9
|
destroyAll: () => void;
|
|
10
10
|
config: typeof import("antd/lib/modal/confirm").modalGlobalConfig;
|
package/es/Modal/style/index.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,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_modal.ant-modal-wrap .ant-modal-header > .ant-modal-title {
|
|
507
513
|
font-weight: normal;
|
|
508
514
|
font-size: 14px;
|
|
@@ -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
|
+
}
|
|
@@ -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_pagination.ant-pagination li {
|
|
507
513
|
font-size: 12px;
|
|
508
514
|
line-height: 24px !important;
|
|
@@ -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_popover_table .btn-dashed {
|
|
507
513
|
font-size: 12px;
|
|
508
514
|
color: #ccc;
|