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
|
@@ -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_approval_title_status {
|
|
507
513
|
display: flex;
|
|
508
514
|
line-height: 20px;
|
|
@@ -510,12 +516,14 @@ html {
|
|
|
510
516
|
background: var(--color-4);
|
|
511
517
|
padding: 0 8px;
|
|
512
518
|
margin: 2px 0 0 16px;
|
|
519
|
+
justify-content: center;
|
|
520
|
+
align-items: center;
|
|
521
|
+
border-radius: 2px;
|
|
513
522
|
}
|
|
514
523
|
.lm_approval_title_status .icon {
|
|
515
524
|
display: inline-block;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
margin-top: 4px;
|
|
525
|
+
font-size: 16px;
|
|
526
|
+
margin: 0px;
|
|
519
527
|
}
|
|
520
528
|
.lm_approval_title_status .icon.blue {
|
|
521
529
|
color: #1890FC;
|
|
@@ -569,6 +577,19 @@ html {
|
|
|
569
577
|
.lm_approval_item .lm_approval_item_header .avator .icon.red {
|
|
570
578
|
color: #FA4F53;
|
|
571
579
|
}
|
|
580
|
+
.lm_approval_item .lm_approval_item_header .avator .cc-box {
|
|
581
|
+
display: flex;
|
|
582
|
+
justify-content: center;
|
|
583
|
+
align-items: center;
|
|
584
|
+
width: 100%;
|
|
585
|
+
height: 100%;
|
|
586
|
+
border-radius: 50%;
|
|
587
|
+
background-color: #1890FC;
|
|
588
|
+
}
|
|
589
|
+
.lm_approval_item .lm_approval_item_header .avator .cc-box .cc {
|
|
590
|
+
color: #fff;
|
|
591
|
+
font-size: 20px;
|
|
592
|
+
}
|
|
572
593
|
.lm_approval_item .lm_approval_item_header .avator .subname {
|
|
573
594
|
width: 100%;
|
|
574
595
|
height: 100%;
|
|
@@ -606,13 +627,22 @@ html {
|
|
|
606
627
|
.lm_approval_item .lm_approval_item_header .right {
|
|
607
628
|
font-size: 12px;
|
|
608
629
|
line-height: 20px;
|
|
630
|
+
}
|
|
631
|
+
.lm_approval_item .lm_approval_item_header .right span {
|
|
609
632
|
color: var(--color-45);
|
|
610
633
|
}
|
|
634
|
+
.lm_approval_item .lm_approval_item_header .right span.yellow {
|
|
635
|
+
color: #FD9827;
|
|
636
|
+
}
|
|
611
637
|
.lm_approval_item .lm_approval_item_body {
|
|
612
638
|
min-height: 32px;
|
|
613
|
-
margin: 4px
|
|
639
|
+
margin: 4px 0px 0px 20px;
|
|
614
640
|
border-left: 1px solid var(--color-6);
|
|
615
641
|
padding-left: 36px;
|
|
642
|
+
padding-bottom: 40px;
|
|
643
|
+
}
|
|
644
|
+
.lm_approval_item .lm_approval_item_body.small {
|
|
645
|
+
padding-bottom: 32px;
|
|
616
646
|
}
|
|
617
647
|
.lm_approval_item .lm_approval_item_body .agree-tip {
|
|
618
648
|
font-size: var(--font-size-sm);
|
|
@@ -627,12 +657,26 @@ html {
|
|
|
627
657
|
background-color: var(--color-4);
|
|
628
658
|
border-radius: 2px;
|
|
629
659
|
}
|
|
630
|
-
.lm_approval_item .lm_approval_item_body .
|
|
660
|
+
.lm_approval_item .lm_approval_item_body .comment .comment-delete {
|
|
661
|
+
margin-top: 8px;
|
|
662
|
+
color: #1890FC;
|
|
663
|
+
font-size: var(--font-size-sm);
|
|
664
|
+
line-height: 20px;
|
|
665
|
+
cursor: pointer;
|
|
666
|
+
}
|
|
667
|
+
.lm_approval_item .lm_approval_item_body .comment .comment-delete .icon {
|
|
668
|
+
font-size: 14px;
|
|
669
|
+
}
|
|
670
|
+
.lm-approver-wrapper {
|
|
671
|
+
display: flex;
|
|
672
|
+
}
|
|
673
|
+
.lm-approver-wrapper .lm-approver-box {
|
|
631
674
|
display: flex;
|
|
675
|
+
flex: 1;
|
|
632
676
|
flex-wrap: wrap;
|
|
633
677
|
margin-top: 4px;
|
|
634
678
|
}
|
|
635
|
-
.
|
|
679
|
+
.lm-approver-wrapper .lm-approver-box .lm-approver-cell {
|
|
636
680
|
display: flex;
|
|
637
681
|
margin: 0 8px 8px 0;
|
|
638
682
|
height: 24px;
|
|
@@ -641,7 +685,7 @@ html {
|
|
|
641
685
|
padding-right: 8px;
|
|
642
686
|
background-color: var(--color-4);
|
|
643
687
|
}
|
|
644
|
-
.
|
|
688
|
+
.lm-approver-wrapper .lm-approver-box .lm-approver-cell .lm-approver-circle {
|
|
645
689
|
width: 20px;
|
|
646
690
|
height: 20px;
|
|
647
691
|
border-radius: 50%;
|
|
@@ -651,8 +695,16 @@ html {
|
|
|
651
695
|
margin-top: 2px;
|
|
652
696
|
text-align: center;
|
|
653
697
|
}
|
|
654
|
-
.
|
|
698
|
+
.lm-approver-wrapper .lm-approver-box .lm-approver-cell span {
|
|
655
699
|
color: var(--color-85);
|
|
656
700
|
font-size: var(--font-size-sm);
|
|
657
701
|
margin-left: 4px;
|
|
658
702
|
}
|
|
703
|
+
.lm-approver-wrapper .lm-approver-box .icon {
|
|
704
|
+
margin-top: 5px;
|
|
705
|
+
margin-right: 8px;
|
|
706
|
+
color: rgba(0, 0, 0, 0.45);
|
|
707
|
+
}
|
|
708
|
+
.lm-approver-wrapper .urge {
|
|
709
|
+
margin-top: 4px;
|
|
710
|
+
}
|
package/lib/Approval/type.d.ts
CHANGED
|
@@ -1,24 +1,55 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type VoidFunction = () => void;
|
|
3
|
+
export declare enum ApprovalType {
|
|
4
|
+
START = "START",
|
|
5
|
+
APPROVAL = "APPROVAL",
|
|
6
|
+
CARBON_COPY = "CARBON_COPY",
|
|
7
|
+
ONLY_COMMENT = "ONLY_COMMENT"
|
|
8
|
+
}
|
|
9
|
+
export declare enum StatusType {
|
|
10
|
+
AGREE = "AGREE",
|
|
11
|
+
REFUSE = "REFUSE",
|
|
12
|
+
PENDING = "PENDING"
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ApprovalType {
|
|
15
|
+
function isAgree(type: ApprovalType, status: StatusType): boolean;
|
|
16
|
+
function isPending(type: ApprovalType, status: StatusType): boolean;
|
|
17
|
+
function isRefuse(type: ApprovalType, status: StatusType): boolean;
|
|
18
|
+
function isCC(type: ApprovalType): boolean;
|
|
19
|
+
function isOnlyComment(type: ApprovalType): boolean;
|
|
20
|
+
function isApproval(type: ApprovalType): boolean;
|
|
21
|
+
function toText(type: ApprovalType, status: StatusType): "" | "审核中" | "未通过" | "已审核" | "仅评论";
|
|
22
|
+
}
|
|
3
23
|
export interface IApprovalItemProps {
|
|
4
24
|
avator?: string;
|
|
5
25
|
name?: string;
|
|
6
26
|
time?: string;
|
|
7
|
-
|
|
27
|
+
urge?: boolean;
|
|
28
|
+
type?: ApprovalType;
|
|
29
|
+
approvalStatus?: StatusType;
|
|
8
30
|
everyoneAgree?: boolean;
|
|
9
|
-
approverList
|
|
31
|
+
approverList?: Array<string>;
|
|
32
|
+
agreeList?: Array<string>;
|
|
33
|
+
refuse?: string;
|
|
34
|
+
carbonCopyList?: Array<string>;
|
|
35
|
+
isCarbonCopy?: boolean;
|
|
36
|
+
comment?: string;
|
|
10
37
|
[prop: string]: any;
|
|
11
38
|
}
|
|
12
39
|
export interface IApprovalProps {
|
|
13
40
|
visible?: boolean;
|
|
14
41
|
title?: string;
|
|
15
|
-
close?: () => void;
|
|
16
42
|
className?: string;
|
|
17
43
|
style?: React.CSSProperties;
|
|
18
|
-
|
|
19
|
-
|
|
44
|
+
proposer: string;
|
|
45
|
+
user: string;
|
|
20
46
|
steps?: Array<IApprovalItemProps>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
47
|
+
onClose?: VoidFunction;
|
|
48
|
+
onComment?: VoidFunction;
|
|
49
|
+
onRefuse?: VoidFunction;
|
|
50
|
+
onAgree?: VoidFunction;
|
|
51
|
+
onUrge?: (approvalItem: IApprovalItemProps, i: number, list: Array<IApprovalItemProps>) => void;
|
|
52
|
+
onCarbonCopy?: (approvalItem: IApprovalItemProps, i: number, list: Array<IApprovalItemProps>) => void;
|
|
53
|
+
onDeleteComment?: (approvalItem: IApprovalItemProps, i: number, list: Array<IApprovalItemProps>) => void;
|
|
54
|
+
__update?: boolean;
|
|
24
55
|
}
|
package/lib/Approval/type.js
CHANGED
|
@@ -2,4 +2,104 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.StatusType = exports.ApprovalType = void 0;
|
|
7
|
+
// 节点类型
|
|
8
|
+
var ApprovalType;
|
|
9
|
+
exports.ApprovalType = ApprovalType;
|
|
10
|
+
|
|
11
|
+
(function (ApprovalType) {
|
|
12
|
+
ApprovalType["START"] = "START";
|
|
13
|
+
ApprovalType["APPROVAL"] = "APPROVAL";
|
|
14
|
+
ApprovalType["CARBON_COPY"] = "CARBON_COPY";
|
|
15
|
+
ApprovalType["ONLY_COMMENT"] = "ONLY_COMMENT";
|
|
16
|
+
})(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
|
|
17
|
+
|
|
18
|
+
var StatusType;
|
|
19
|
+
exports.StatusType = StatusType;
|
|
20
|
+
|
|
21
|
+
(function (StatusType) {
|
|
22
|
+
StatusType["AGREE"] = "AGREE";
|
|
23
|
+
StatusType["REFUSE"] = "REFUSE";
|
|
24
|
+
StatusType["PENDING"] = "PENDING";
|
|
25
|
+
})(StatusType || (exports.StatusType = StatusType = {}));
|
|
26
|
+
|
|
27
|
+
(function (ApprovalType) {
|
|
28
|
+
function isAgree(type, status) {
|
|
29
|
+
if (type === ApprovalType.APPROVAL && status === StatusType.AGREE) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ApprovalType.isAgree = isAgree;
|
|
37
|
+
|
|
38
|
+
function isPending(type, status) {
|
|
39
|
+
if (type === ApprovalType.APPROVAL && status === StatusType.PENDING) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ApprovalType.isPending = isPending;
|
|
47
|
+
|
|
48
|
+
function isRefuse(type, status) {
|
|
49
|
+
if (type === ApprovalType.APPROVAL && status === StatusType.REFUSE) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
ApprovalType.isRefuse = isRefuse;
|
|
57
|
+
|
|
58
|
+
function isCC(type) {
|
|
59
|
+
if (type === ApprovalType.CARBON_COPY) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
ApprovalType.isCC = isCC;
|
|
67
|
+
|
|
68
|
+
function isOnlyComment(type) {
|
|
69
|
+
if (type === ApprovalType.ONLY_COMMENT) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
ApprovalType.isOnlyComment = isOnlyComment;
|
|
77
|
+
|
|
78
|
+
function isApproval(type) {
|
|
79
|
+
if (type === ApprovalType.APPROVAL) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
ApprovalType.isApproval = isApproval;
|
|
87
|
+
|
|
88
|
+
function toText(type, status) {
|
|
89
|
+
if (type === ApprovalType.APPROVAL) {
|
|
90
|
+
if (status === StatusType.PENDING) {
|
|
91
|
+
return '审核中';
|
|
92
|
+
} else if (status === StatusType.REFUSE) {
|
|
93
|
+
return '未通过';
|
|
94
|
+
} else if (status === StatusType.AGREE) {
|
|
95
|
+
return '已审核';
|
|
96
|
+
}
|
|
97
|
+
} else if (type === ApprovalType.ONLY_COMMENT) {
|
|
98
|
+
return '仅评论';
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return '';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ApprovalType.toText = toText;
|
|
105
|
+
})(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IApprovalItemProps, StatusType } from "./type";
|
|
2
|
+
/**
|
|
3
|
+
* 当前用户是否可以审批
|
|
4
|
+
* @param steps
|
|
5
|
+
* @param user
|
|
6
|
+
*/
|
|
7
|
+
export declare function currentUserIsApprover(steps: Array<IApprovalItemProps>, user: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 当前用户是否是提议发起者
|
|
10
|
+
* @param proposer
|
|
11
|
+
* @param user
|
|
12
|
+
*/
|
|
13
|
+
export declare function currentUserIsProposer(proposer: string, user: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 审批节点是否通过
|
|
16
|
+
* @param approverList 审批人列表
|
|
17
|
+
* @param agreeList 已通过列表
|
|
18
|
+
* @param everyoneAgree 是否需要所有人都通过
|
|
19
|
+
*/
|
|
20
|
+
export declare function isAgreeOfApproverNode(approverList: Array<string>, agreeList: Array<string>, everyoneAgree: boolean): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 获取当前审批单状态
|
|
23
|
+
* @param steps
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function getStatus(steps: Array<IApprovalItemProps>): StatusType;
|
|
@@ -0,0 +1,148 @@
|
|
|
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.currentUserIsApprover = currentUserIsApprover;
|
|
9
|
+
exports.currentUserIsProposer = currentUserIsProposer;
|
|
10
|
+
exports.getStatus = getStatus;
|
|
11
|
+
exports.isAgreeOfApproverNode = isAgreeOfApproverNode;
|
|
12
|
+
|
|
13
|
+
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
14
|
+
|
|
15
|
+
var _type = require("./type");
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 当前用户是否可以审批
|
|
19
|
+
* @param steps
|
|
20
|
+
* @param user
|
|
21
|
+
*/
|
|
22
|
+
function currentUserIsApprover(steps, user) {
|
|
23
|
+
var _iterator = (0, _createForOfIteratorHelper2.default)(steps),
|
|
24
|
+
_step;
|
|
25
|
+
|
|
26
|
+
try {
|
|
27
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
28
|
+
var step = _step.value;
|
|
29
|
+
|
|
30
|
+
// 审核中
|
|
31
|
+
if (_type.ApprovalType.isPending(step.type, step.approvalStatus)) {
|
|
32
|
+
if (step.everyoneAgree) {
|
|
33
|
+
var index = step.agreeList.length;
|
|
34
|
+
|
|
35
|
+
if (index < step.approverList.length && step.approverList[index] === user) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
if (step.approverList.indexOf(user) !== -1) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
} catch (err) {
|
|
48
|
+
_iterator.e(err);
|
|
49
|
+
} finally {
|
|
50
|
+
_iterator.f();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 当前用户是否是提议发起者
|
|
57
|
+
* @param proposer
|
|
58
|
+
* @param user
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
function currentUserIsProposer(proposer, user) {
|
|
63
|
+
return proposer && proposer === user;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* 审批节点是否通过
|
|
67
|
+
* @param approverList 审批人列表
|
|
68
|
+
* @param agreeList 已通过列表
|
|
69
|
+
* @param everyoneAgree 是否需要所有人都通过
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
function isAgreeOfApproverNode(approverList, agreeList, everyoneAgree) {
|
|
74
|
+
if (!approverList.length) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (everyoneAgree) {
|
|
79
|
+
var _iterator2 = (0, _createForOfIteratorHelper2.default)(approverList),
|
|
80
|
+
_step2;
|
|
81
|
+
|
|
82
|
+
try {
|
|
83
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
84
|
+
var value = _step2.value;
|
|
85
|
+
|
|
86
|
+
if (agreeList.indexOf(value) === -1) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
} catch (err) {
|
|
91
|
+
_iterator2.e(err);
|
|
92
|
+
} finally {
|
|
93
|
+
_iterator2.f();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return true;
|
|
97
|
+
} else {
|
|
98
|
+
var _iterator3 = (0, _createForOfIteratorHelper2.default)(agreeList),
|
|
99
|
+
_step3;
|
|
100
|
+
|
|
101
|
+
try {
|
|
102
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
103
|
+
var _value = _step3.value;
|
|
104
|
+
|
|
105
|
+
if (approverList.indexOf(_value) !== -1) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
} catch (err) {
|
|
110
|
+
_iterator3.e(err);
|
|
111
|
+
} finally {
|
|
112
|
+
_iterator3.f();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 获取当前审批单状态
|
|
120
|
+
* @param steps
|
|
121
|
+
* @returns
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
function getStatus(steps) {
|
|
126
|
+
var _iterator4 = (0, _createForOfIteratorHelper2.default)(steps),
|
|
127
|
+
_step4;
|
|
128
|
+
|
|
129
|
+
try {
|
|
130
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
131
|
+
var step = _step4.value;
|
|
132
|
+
|
|
133
|
+
if (_type.ApprovalType.isPending(step.type, step.approvalStatus)) {
|
|
134
|
+
return _type.StatusType.PENDING;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (_type.ApprovalType.isRefuse(step.type, step.approvalStatus)) {
|
|
138
|
+
return _type.StatusType.REFUSE;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} catch (err) {
|
|
142
|
+
_iterator4.e(err);
|
|
143
|
+
} finally {
|
|
144
|
+
_iterator4.f();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return _type.StatusType.AGREE;
|
|
148
|
+
}
|
|
@@ -10,6 +10,7 @@ import * as React from 'react';
|
|
|
10
10
|
import type { BaseOptionType, DefaultOptionType, InternalSelectProps } from 'antd/es/select';
|
|
11
11
|
import type { InputStatus } from '../_util/statusUtils';
|
|
12
12
|
import { AutoComplete as AntdAutoComplete } from 'antd';
|
|
13
|
+
declare const Option: import("rc-select/lib/Option").OptionFC;
|
|
13
14
|
export interface DataSourceItemObject {
|
|
14
15
|
value: string;
|
|
15
16
|
text: string;
|
|
@@ -24,7 +25,7 @@ declare const RefAutoComplete: (<ValueType = any, OptionType extends DefaultOpti
|
|
|
24
25
|
} & {
|
|
25
26
|
ref?: React.Ref<BaseSelectRef>;
|
|
26
27
|
}) => React.ReactElement) & {
|
|
27
|
-
Option:
|
|
28
|
+
Option: typeof Option;
|
|
28
29
|
AntdAutoComplete: typeof AntdAutoComplete;
|
|
29
30
|
};
|
|
30
31
|
export default RefAutoComplete;
|
|
@@ -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,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,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_base_button_tag_Group {
|
|
507
513
|
position: relative;
|
|
508
514
|
display: flex;
|
|
@@ -0,0 +1,15 @@
|
|
|
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.default = void 0;
|
|
9
|
+
|
|
10
|
+
require("antd/es/calendar/style");
|
|
11
|
+
|
|
12
|
+
var _calendar = _interopRequireDefault(require("antd/es/calendar"));
|
|
13
|
+
|
|
14
|
+
var _default = _calendar.default;
|
|
15
|
+
exports.default = _default;
|