linkmore-design 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +63 -14
- package/dist/index.umd.min.js +7 -7
- package/lib/Input/index.js +3 -4
- package/lib/Radio/index.js +0 -50
- package/lib/index.js +25 -1
- package/package.json +1 -1
- package/es/Button/index.d.ts +0 -3
- package/es/Button/index.js +0 -43
- package/es/Button/style/index.d.ts +0 -1
- package/es/Button/style/index.js +0 -1
- package/es/Button/style/style.css +0 -110
- package/es/ButtonTags/ButtonTags.js +0 -59
- package/es/ButtonTags/index.js +0 -13
- package/es/ButtonTags/style/index.js +0 -3
- package/es/ButtonTags/style/style.css +0 -574
- package/es/Card/index.d.ts +0 -2
- package/es/Card/index.js +0 -17
- package/es/Card/style/index.css +0 -502
- package/es/Card/style/index.d.ts +0 -1
- package/es/Card/style/index.js +0 -1
- package/es/Checkbox/index.js +0 -47
- package/es/Checkbox/style/index.js +0 -3
- package/es/Checkbox/style/style.css +0 -128
- package/es/CkFilter/baseFilter/NestedFilter.js +0 -137
- package/es/CkFilter/baseFilter/filterMenu.js +0 -222
- package/es/CkFilter/baseFilter/index.js +0 -92
- package/es/CkFilter/baseFilter/moreFilters.js +0 -237
- package/es/CkFilter/complexFilter/drawer.js +0 -379
- package/es/CkFilter/complexFilter/index.js +0 -69
- package/es/CkFilter/components/CascaderFilter.js +0 -132
- package/es/CkFilter/components/CheckboxTags.js +0 -53
- package/es/CkFilter/components/Controls.js +0 -53
- package/es/CkFilter/components/CustomModal.js +0 -230
- package/es/CkFilter/components/DragBox/DndContainer.js +0 -49
- package/es/CkFilter/components/DragBox/index.js +0 -63
- package/es/CkFilter/components/DragBox/sortableBox.js +0 -24
- package/es/CkFilter/components/DragBox/sortableItem.js +0 -111
- package/es/CkFilter/components/Nested.js +0 -90
- package/es/CkFilter/components/filterTypes.js +0 -815
- package/es/CkFilter/components/modal.js +0 -297
- package/es/CkFilter/components/modalBack.js +0 -261
- package/es/CkFilter/context.js +0 -174
- package/es/CkFilter/customFilter/drawer.js +0 -395
- package/es/CkFilter/customFilter/index.js +0 -129
- package/es/CkFilter/customFilter/radioGroup.js +0 -64
- package/es/CkFilter/filter.js +0 -153
- package/es/CkFilter/icon_placeholder.png +0 -0
- package/es/CkFilter/index.js +0 -13
- package/es/CkFilter/style/index.js +0 -3
- package/es/CkFilter/style/style.css +0 -1079
- package/es/CkFilter/utils.js +0 -65
- package/es/CustomerService/assets/question01.png +0 -0
- package/es/CustomerService/assets/send.png +0 -0
- package/es/CustomerService/assets/service.png +0 -0
- package/es/CustomerService/assets/shuoming01.png +0 -0
- package/es/CustomerService/assets/shuoming02.png +0 -0
- package/es/CustomerService/components/question.js +0 -120
- package/es/CustomerService/index.js +0 -291
- package/es/CustomerService/style/index.js +0 -3
- package/es/CustomerService/style/style.css +0 -755
- package/es/Drawer/index.d.ts +0 -10
- package/es/Drawer/index.js +0 -42
- package/es/Drawer/style/index.css +0 -509
- package/es/Drawer/style/index.d.ts +0 -1
- package/es/Drawer/style/index.js +0 -1
- package/es/Dropdown/index.d.ts +0 -14
- package/es/Dropdown/index.js +0 -113
- package/es/Dropdown/style/index.css +0 -564
- package/es/Dropdown/style/index.d.ts +0 -1
- package/es/Dropdown/style/index.js +0 -1
- package/es/EditTable/EditTable.js +0 -588
- package/es/EditTable/index.js +0 -13
- package/es/EditTable/style/index.js +0 -3
- package/es/EditTable/style/style.css +0 -518
- package/es/Empty/index.d.ts +0 -7
- package/es/Empty/index.js +0 -3
- package/es/Empty/style/index.css +0 -502
- package/es/Empty/style/index.d.ts +0 -1
- package/es/Empty/style/index.js +0 -1
- package/es/EnlargeImg/index.js +0 -109
- package/es/EnlargeImg/style/index.js +0 -3
- package/es/EnlargeImg/style/style.css +0 -4
- package/es/Filter/Popover.js +0 -199
- package/es/Filter/baseFilter/Popover.js +0 -214
- package/es/Filter/baseFilter/ToggleFilter.js +0 -112
- package/es/Filter/baseFilter/index.js +0 -100
- package/es/Filter/complex/ComplexFilter.js +0 -149
- package/es/Filter/complex/ComplexItem.js +0 -157
- package/es/Filter/components/Checkbox.js +0 -94
- package/es/Filter/components/Date.js +0 -87
- package/es/Filter/components/Input.js +0 -63
- package/es/Filter/components/Select.js +0 -89
- package/es/Filter/components/Tree.js +0 -64
- package/es/Filter/components/header.js +0 -60
- package/es/Filter/components/index.js +0 -47
- package/es/Filter/context.js +0 -15
- package/es/Filter/edit/editFilter.js +0 -277
- package/es/Filter/index.js +0 -174
- package/es/Filter/popContext.js +0 -15
- package/es/Filter/remember.js +0 -137
- package/es/Filter/style/index.js +0 -3
- package/es/Filter/style/style.css +0 -773
- package/es/Icon/index.js +0 -20
- package/es/Icon/style/index.js +0 -1
- package/es/Icon/style/style.css +0 -0
- package/es/IconFont/index.js +0 -15
- package/es/IconFont/style/index.js +0 -1
- package/es/IconFont/style/style.css +0 -0
- package/es/IconSelect/iconJson.json +0 -2935
- package/es/IconSelect/index.js +0 -115
- package/es/IconSelect/style/index.js +0 -3
- package/es/IconSelect/style/style.css +0 -25
- package/es/Input/index.js +0 -75
- package/es/Input/style/index.js +0 -3
- package/es/Input/style/style.css +0 -724
- package/es/InputNumber/index.d.ts +0 -11
- package/es/InputNumber/index.js +0 -43
- package/es/InputNumber/style/index.css +0 -537
- package/es/InputNumber/style/index.d.ts +0 -1
- package/es/InputNumber/style/index.js +0 -1
- package/es/LeftTable/assets/imgTest.jpg +0 -0
- package/es/LeftTable/index.js +0 -118
- package/es/LeftTable/style/index.js +0 -3
- package/es/LeftTable/style/style.css +0 -614
- package/es/LmTable/ImgList/body.js +0 -111
- package/es/LmTable/ImgList/cardCell.js +0 -192
- package/es/LmTable/ImgList/context.js +0 -12
- package/es/LmTable/ImgList/empty.js +0 -24
- package/es/LmTable/ImgList/footer.js +0 -59
- package/es/LmTable/ImgList/imgCell.js +0 -175
- package/es/LmTable/ImgList/imgTable.js +0 -110
- package/es/LmTable/ImgList/index.js +0 -13
- package/es/LmTable/Table.js +0 -390
- package/es/LmTable/VList.js +0 -594
- package/es/LmTable/autosize.js +0 -170
- package/es/LmTable/context.js +0 -12
- package/es/LmTable/detectElementResize.js +0 -225
- package/es/LmTable/index.js +0 -19
- package/es/LmTable/resetConfig.js +0 -39
- package/es/LmTable/style/index.js +0 -3
- package/es/LmTable/style/style.css +0 -1076
- package/es/LoadingPage/index.js +0 -33
- package/es/LoadingPage/style/index.js +0 -1
- package/es/LoadingPage/style/style.css +0 -0
- package/es/Menu/index.d.ts +0 -7
- package/es/Menu/index.js +0 -3
- package/es/Menu/style/index.css +0 -502
- package/es/Menu/style/index.d.ts +0 -1
- package/es/Menu/style/index.js +0 -1
- package/es/Modal/index.d.ts +0 -12
- package/es/Modal/index.js +0 -94
- package/es/Modal/style/index.css +0 -537
- package/es/Modal/style/index.d.ts +0 -1
- package/es/Modal/style/index.js +0 -1
- package/es/Notification/index.d.ts +0 -7
- package/es/Notification/index.js +0 -10
- package/es/Notification/style/index.css +0 -505
- package/es/Notification/style/index.d.ts +0 -1
- package/es/Notification/style/index.js +0 -1
- package/es/OldModal/add.js +0 -68
- package/es/OldModal/confirm.js +0 -88
- package/es/OldModal/edit.js +0 -44
- package/es/OldModal/exportModal.js +0 -300
- package/es/OldModal/index.js +0 -24
- package/es/OldModal/style/index.js +0 -3
- package/es/OldModal/style/style.css +0 -119
- package/es/Pagination/index.d.ts +0 -7
- package/es/Pagination/index.js +0 -37
- package/es/Pagination/style/index.css +0 -551
- package/es/Pagination/style/index.d.ts +0 -1
- package/es/Pagination/style/index.js +0 -1
- package/es/PopTable/BseTable.js +0 -113
- package/es/PopTable/index.js +0 -151
- package/es/PopTable/style/index.js +0 -3
- package/es/PopTable/style/style.css +0 -712
- package/es/ProTable/ImgList/body.js +0 -111
- package/es/ProTable/ImgList/cardCell.js +0 -192
- package/es/ProTable/ImgList/context.js +0 -12
- package/es/ProTable/ImgList/empty.js +0 -24
- package/es/ProTable/ImgList/footer.js +0 -59
- package/es/ProTable/ImgList/imgCell.js +0 -181
- package/es/ProTable/ImgList/imgTable.js +0 -110
- package/es/ProTable/ImgList/index.js +0 -13
- package/es/ProTable/Table.js +0 -335
- package/es/ProTable/VList.js +0 -594
- package/es/ProTable/autosize.js +0 -170
- package/es/ProTable/context.js +0 -12
- package/es/ProTable/detectElementResize.js +0 -225
- package/es/ProTable/index.js +0 -19
- package/es/ProTable/resetConfig.js +0 -39
- package/es/ProTable/style/index.js +0 -3
- package/es/ProTable/style/style.css +0 -1076
- package/es/Radio/index.js +0 -50
- package/es/Radio/style/index.js +0 -3
- package/es/Radio/style/style.css +0 -137
- package/es/Select/index.d.ts +0 -18
- package/es/Select/index.js +0 -40
- package/es/Select/style/index.css +0 -514
- package/es/Select/style/index.d.ts +0 -1
- package/es/Select/style/index.js +0 -1
- package/es/Space/index.d.ts +0 -4
- package/es/Space/index.js +0 -3
- package/es/Space/style/index.css +0 -502
- package/es/Space/style/index.d.ts +0 -1
- package/es/Space/style/index.js +0 -1
- package/es/TabBar/index.d.ts +0 -12
- package/es/TabBar/index.js +0 -33
- package/es/TabBar/style/index.d.ts +0 -1
- package/es/TabBar/style/index.js +0 -1
- package/es/TabBar/style/style.css +0 -86
- package/es/TableRender/index.js +0 -15
- package/es/TableRender/state.js +0 -72
- package/es/TableRender/style/index.js +0 -3
- package/es/TableRender/style/style.css +0 -0
- package/es/Tree/index.d.ts +0 -7
- package/es/Tree/index.js +0 -3
- package/es/Tree/style/index.css +0 -502
- package/es/Tree/style/index.d.ts +0 -1
- package/es/Tree/style/index.js +0 -1
- package/es/UploadOss/index.js +0 -18
- package/es/UploadOss/style/index.js +0 -3
- package/es/UploadOss/style/style.css +0 -121
- package/es/UploadOss/uploadBtn.js +0 -141
- package/es/UploadOss/uploadImg.js +0 -282
- package/es/VirtualList/index.js +0 -84
- package/es/VirtualList/style/index.js +0 -3
- package/es/VirtualList/style/style.css +0 -0
- package/es/index.js +0 -287
- package/es/services/newRequest.js +0 -201
- package/es/services/utils.js +0 -72
- package/es/styles/globalClass.css +0 -63
- package/es/styles/icon.css +0 -15
- package/es/styles/main.css +0 -502
- package/es/styles/resetAntd.css +0 -83
- package/es/styles/them.css +0 -0
- package/lib/Button/index.d.ts +0 -3
- package/lib/Button/index.js +0 -56
- package/lib/Button/style/index.d.ts +0 -1
- package/lib/Button/style/index.js +0 -3
- package/lib/Button/style/style.css +0 -110
- package/lib/ButtonTags/style/index.js +0 -3
- package/lib/ButtonTags/style/style.css +0 -574
- package/lib/Card/index.d.ts +0 -2
- package/lib/Card/index.js +0 -29
- package/lib/Card/style/index.css +0 -502
- package/lib/Card/style/index.d.ts +0 -1
- package/lib/Card/style/index.js +0 -3
- package/lib/Checkbox/style/index.js +0 -3
- package/lib/Checkbox/style/style.css +0 -128
- package/lib/CkFilter/baseFilter/NestedFilter.js +0 -137
- package/lib/CkFilter/baseFilter/filterMenu.js +0 -222
- package/lib/CkFilter/baseFilter/index.js +0 -92
- package/lib/CkFilter/baseFilter/moreFilters.js +0 -237
- package/lib/CkFilter/complexFilter/drawer.js +0 -379
- package/lib/CkFilter/complexFilter/index.js +0 -69
- package/lib/CkFilter/components/CascaderFilter.js +0 -132
- package/lib/CkFilter/components/CheckboxTags.js +0 -53
- package/lib/CkFilter/components/Controls.js +0 -53
- package/lib/CkFilter/components/CustomModal.js +0 -230
- package/lib/CkFilter/components/DragBox/DndContainer.js +0 -49
- package/lib/CkFilter/components/DragBox/index.js +0 -63
- package/lib/CkFilter/components/DragBox/sortableBox.js +0 -24
- package/lib/CkFilter/components/DragBox/sortableItem.js +0 -111
- package/lib/CkFilter/components/Nested.js +0 -90
- package/lib/CkFilter/components/filterTypes.js +0 -815
- package/lib/CkFilter/components/modal.js +0 -297
- package/lib/CkFilter/components/modalBack.js +0 -261
- package/lib/CkFilter/customFilter/drawer.js +0 -395
- package/lib/CkFilter/customFilter/index.js +0 -129
- package/lib/CkFilter/customFilter/radioGroup.js +0 -64
- package/lib/CkFilter/style/index.js +0 -3
- package/lib/CkFilter/style/style.css +0 -1079
- package/lib/CustomerService/assets/question01.png +0 -0
- package/lib/CustomerService/assets/send.png +0 -0
- package/lib/CustomerService/assets/service.png +0 -0
- package/lib/CustomerService/assets/shuoming01.png +0 -0
- package/lib/CustomerService/assets/shuoming02.png +0 -0
- package/lib/CustomerService/components/question.js +0 -120
- package/lib/CustomerService/style/index.js +0 -3
- package/lib/CustomerService/style/style.css +0 -755
- package/lib/Drawer/index.d.ts +0 -10
- package/lib/Drawer/index.js +0 -55
- package/lib/Drawer/style/index.css +0 -509
- package/lib/Drawer/style/index.d.ts +0 -1
- package/lib/Drawer/style/index.js +0 -3
- package/lib/Dropdown/index.d.ts +0 -14
- package/lib/Dropdown/index.js +0 -129
- package/lib/Dropdown/style/index.css +0 -564
- package/lib/Dropdown/style/index.d.ts +0 -1
- package/lib/Dropdown/style/index.js +0 -3
- package/lib/EditTable/style/index.js +0 -3
- package/lib/EditTable/style/style.css +0 -518
- package/lib/Empty/index.d.ts +0 -7
- package/lib/Empty/index.js +0 -15
- package/lib/Empty/style/index.css +0 -502
- package/lib/Empty/style/index.d.ts +0 -1
- package/lib/Empty/style/index.js +0 -3
- package/lib/EnlargeImg/style/index.js +0 -3
- package/lib/EnlargeImg/style/style.css +0 -4
- package/lib/Filter/baseFilter/Popover.js +0 -214
- package/lib/Filter/baseFilter/ToggleFilter.js +0 -112
- package/lib/Filter/baseFilter/index.js +0 -100
- package/lib/Filter/complex/ComplexFilter.js +0 -149
- package/lib/Filter/complex/ComplexItem.js +0 -157
- package/lib/Filter/components/Checkbox.js +0 -94
- package/lib/Filter/components/Date.js +0 -87
- package/lib/Filter/components/Input.js +0 -63
- package/lib/Filter/components/Select.js +0 -89
- package/lib/Filter/components/Tree.js +0 -64
- package/lib/Filter/components/header.js +0 -60
- package/lib/Filter/components/index.js +0 -47
- package/lib/Filter/edit/editFilter.js +0 -277
- package/lib/Filter/style/index.js +0 -3
- package/lib/Filter/style/style.css +0 -773
- package/lib/Icon/style/index.js +0 -1
- package/lib/Icon/style/style.css +0 -0
- package/lib/IconFont/style/index.js +0 -1
- package/lib/IconFont/style/style.css +0 -0
- package/lib/IconSelect/style/index.js +0 -3
- package/lib/IconSelect/style/style.css +0 -25
- package/lib/Input/style/index.js +0 -3
- package/lib/Input/style/style.css +0 -724
- package/lib/InputNumber/index.d.ts +0 -11
- package/lib/InputNumber/index.js +0 -56
- package/lib/InputNumber/style/index.css +0 -537
- package/lib/InputNumber/style/index.d.ts +0 -1
- package/lib/InputNumber/style/index.js +0 -3
- package/lib/LeftTable/assets/imgTest.jpg +0 -0
- package/lib/LeftTable/style/index.js +0 -3
- package/lib/LeftTable/style/style.css +0 -614
- package/lib/LmTable/ImgList/body.js +0 -111
- package/lib/LmTable/ImgList/cardCell.js +0 -192
- package/lib/LmTable/ImgList/context.js +0 -12
- package/lib/LmTable/ImgList/empty.js +0 -24
- package/lib/LmTable/ImgList/footer.js +0 -59
- package/lib/LmTable/ImgList/imgCell.js +0 -175
- package/lib/LmTable/ImgList/imgTable.js +0 -110
- package/lib/LmTable/ImgList/index.js +0 -13
- package/lib/LmTable/style/index.js +0 -3
- package/lib/LmTable/style/style.css +0 -1076
- package/lib/LoadingPage/style/index.js +0 -1
- package/lib/LoadingPage/style/style.css +0 -0
- package/lib/Menu/index.d.ts +0 -7
- package/lib/Menu/index.js +0 -15
- package/lib/Menu/style/index.css +0 -502
- package/lib/Menu/style/index.d.ts +0 -1
- package/lib/Menu/style/index.js +0 -3
- package/lib/Modal/index.d.ts +0 -12
- package/lib/Modal/index.js +0 -108
- package/lib/Modal/style/index.css +0 -537
- package/lib/Modal/style/index.d.ts +0 -1
- package/lib/Modal/style/index.js +0 -3
- package/lib/Notification/index.d.ts +0 -7
- package/lib/Notification/index.js +0 -23
- package/lib/Notification/style/index.css +0 -505
- package/lib/Notification/style/index.d.ts +0 -1
- package/lib/Notification/style/index.js +0 -3
- package/lib/OldModal/style/index.js +0 -3
- package/lib/OldModal/style/style.css +0 -119
- package/lib/Pagination/index.d.ts +0 -7
- package/lib/Pagination/index.js +0 -50
- package/lib/Pagination/style/index.css +0 -551
- package/lib/Pagination/style/index.d.ts +0 -1
- package/lib/Pagination/style/index.js +0 -3
- package/lib/PopTable/style/index.js +0 -3
- package/lib/PopTable/style/style.css +0 -712
- package/lib/ProTable/ImgList/body.js +0 -111
- package/lib/ProTable/ImgList/cardCell.js +0 -192
- package/lib/ProTable/ImgList/context.js +0 -12
- package/lib/ProTable/ImgList/empty.js +0 -24
- package/lib/ProTable/ImgList/footer.js +0 -59
- package/lib/ProTable/ImgList/imgCell.js +0 -181
- package/lib/ProTable/ImgList/imgTable.js +0 -110
- package/lib/ProTable/ImgList/index.js +0 -13
- package/lib/ProTable/style/index.js +0 -3
- package/lib/ProTable/style/style.css +0 -1076
- package/lib/Radio/style/index.js +0 -3
- package/lib/Radio/style/style.css +0 -137
- package/lib/Select/index.d.ts +0 -18
- package/lib/Select/index.js +0 -53
- package/lib/Select/style/index.css +0 -514
- package/lib/Select/style/index.d.ts +0 -1
- package/lib/Select/style/index.js +0 -3
- package/lib/Space/index.d.ts +0 -4
- package/lib/Space/index.js +0 -15
- package/lib/Space/style/index.css +0 -502
- package/lib/Space/style/index.d.ts +0 -1
- package/lib/Space/style/index.js +0 -3
- package/lib/TabBar/index.d.ts +0 -12
- package/lib/TabBar/index.js +0 -45
- package/lib/TabBar/style/index.d.ts +0 -1
- package/lib/TabBar/style/index.js +0 -3
- package/lib/TabBar/style/style.css +0 -86
- package/lib/TableRender/index.js +0 -15
- package/lib/TableRender/state.js +0 -72
- package/lib/TableRender/style/index.js +0 -3
- package/lib/TableRender/style/style.css +0 -0
- package/lib/Tree/index.d.ts +0 -7
- package/lib/Tree/index.js +0 -15
- package/lib/Tree/style/index.css +0 -502
- package/lib/Tree/style/index.d.ts +0 -1
- package/lib/Tree/style/index.js +0 -3
- package/lib/UploadOss/index.js +0 -18
- package/lib/UploadOss/style/index.js +0 -3
- package/lib/UploadOss/style/style.css +0 -121
- package/lib/UploadOss/uploadBtn.js +0 -141
- package/lib/UploadOss/uploadImg.js +0 -282
- package/lib/VirtualList/index.js +0 -84
- package/lib/VirtualList/style/index.js +0 -3
- package/lib/VirtualList/style/style.css +0 -0
- package/lib/services/newRequest.js +0 -201
- package/lib/services/utils.js +0 -72
- package/lib/styles/globalClass.css +0 -63
- package/lib/styles/icon.css +0 -15
- package/lib/styles/main.css +0 -502
- package/lib/styles/resetAntd.css +0 -83
- package/lib/styles/them.css +0 -0
|
@@ -1,201 +0,0 @@
|
|
|
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
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
|
-
|
|
14
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
-
|
|
16
|
-
require("antd/es/message/style");
|
|
17
|
-
|
|
18
|
-
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
19
|
-
|
|
20
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
21
|
-
|
|
22
|
-
var _qs = _interopRequireDefault(require("qs"));
|
|
23
|
-
|
|
24
|
-
var _reactCookies = _interopRequireDefault(require("react-cookies"));
|
|
25
|
-
|
|
26
|
-
var _utils = require("./utils");
|
|
27
|
-
|
|
28
|
-
var _cookie$load;
|
|
29
|
-
|
|
30
|
-
// 附近处理函数
|
|
31
|
-
// cookie.save('UFXSCM_TokenId', 'Sfbw1SY/Rb2YNEGnoYlB7jiKG6mSznuGUXY5B6GNkHoHmU0IcH/d/A==');
|
|
32
|
-
// cookie.save('saas_gpid', '41mzTRAtm/XBGt2X4wrn+67+XGXNr10r6CJAsvv2iEHPwRa4hOXzCw==');
|
|
33
|
-
var inError = false; // 创建axios实例
|
|
34
|
-
|
|
35
|
-
var instance = _axios.default.create({
|
|
36
|
-
baseURL: process.env.BASE_API,
|
|
37
|
-
timeout: 15000,
|
|
38
|
-
// 请求超时时间
|
|
39
|
-
// `transformRequest` 允许在向服务器发送前,修改请求数据
|
|
40
|
-
transformRequest: [function (data) {
|
|
41
|
-
// 对 data 进行任意转换处理
|
|
42
|
-
return data;
|
|
43
|
-
}],
|
|
44
|
-
// `transformResponse` 在传递给 then/catch 前,允许修改响应数据
|
|
45
|
-
transformResponse: [function (data) {
|
|
46
|
-
// console.log(data);
|
|
47
|
-
// 对 data 进行任意转换处理
|
|
48
|
-
if (data && (data.type === 'application/octet-stream' || data.type === 'application/json')) {
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return JSON.parse(data);
|
|
53
|
-
}],
|
|
54
|
-
headers: {
|
|
55
|
-
'Cache-Control': 'no-cache',
|
|
56
|
-
Authorization: (_reactCookies.default === null || _reactCookies.default === void 0 ? void 0 : _reactCookies.default.load('UFXSCM_TokenId')) ? "Basic ".concat(_reactCookies.default.load('UFXSCM_TokenId')) : '',
|
|
57
|
-
TenantId: _reactCookies.default === null || _reactCookies.default === void 0 ? void 0 : _reactCookies.default.load('saas_gpid'),
|
|
58
|
-
SystemId: (_cookie$load = _reactCookies.default === null || _reactCookies.default === void 0 ? void 0 : _reactCookies.default.load('saas_sysid')) !== null && _cookie$load !== void 0 ? _cookie$load : ''
|
|
59
|
-
}
|
|
60
|
-
}); // 实例添加请求拦截器
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
instance.interceptors.request.use(function (config) {
|
|
64
|
-
// 在发送请求之前做处理...
|
|
65
|
-
config.headers = Object.assign(config.method === 'get' ? (config.data = true, {
|
|
66
|
-
Accept: 'application/json',
|
|
67
|
-
'Content-Type': 'application/json; charset=UTF-8'
|
|
68
|
-
}) : config.data ? '' : config.data = true, {
|
|
69
|
-
'Content-Type': 'application/json; charset=UTF-8' // 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
70
|
-
|
|
71
|
-
}, config.headers); // config.headers.token = sessionStorage.getItem(`${projectPrefix}_token_`);
|
|
72
|
-
|
|
73
|
-
if (!config.headers.Authorization) {
|
|
74
|
-
delete config.headers.Authorization;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (!config.headers.TenantId) {
|
|
78
|
-
delete config.headers.TenantId;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (['post', 'put'].includes(config.method)) {
|
|
82
|
-
var contentType = config.headers['Content-Type']; // 根据Content-Type转换data格式
|
|
83
|
-
|
|
84
|
-
if (contentType) {
|
|
85
|
-
if (contentType.includes('multipart')) {// 类型 'multipart/form-data;'
|
|
86
|
-
// config.data = data;
|
|
87
|
-
} else if (contentType.includes('json')) {
|
|
88
|
-
// 类型 'application/json;'
|
|
89
|
-
// 服务器收到的raw body(原始数据) "{name:"nowThen",age:"18"}"(普通字符串)
|
|
90
|
-
config.data = JSON.stringify(config.data);
|
|
91
|
-
} else {
|
|
92
|
-
// 类型 'application/x-www-form-urlencoded;'
|
|
93
|
-
// 服务器收到的raw body(原始数据) name=nowThen&age=18
|
|
94
|
-
config.data = _qs.default.stringify(config.data);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return Promise.resolve(config);
|
|
100
|
-
}, function (error) {
|
|
101
|
-
return (// 对请求错误做处理...
|
|
102
|
-
Promise.reject(error)
|
|
103
|
-
);
|
|
104
|
-
}); // 实例添加响应拦截器
|
|
105
|
-
|
|
106
|
-
instance.interceptors.response.use(function (response) {
|
|
107
|
-
// 对响应数据做处理,以下根据实际数据结构改动!!...
|
|
108
|
-
var _ref = response.data || {},
|
|
109
|
-
code = _ref.code;
|
|
110
|
-
|
|
111
|
-
if (code === 109 || code === 108) {
|
|
112
|
-
// 请求超时,跳转登录页
|
|
113
|
-
if (!inError) {
|
|
114
|
-
_message2.default.warning('登录超时,即将跳转到登录页面...');
|
|
115
|
-
|
|
116
|
-
inError = true;
|
|
117
|
-
setTimeout(function () {
|
|
118
|
-
_message2.default.destroy();
|
|
119
|
-
|
|
120
|
-
window.location.href = '/login';
|
|
121
|
-
inError = false;
|
|
122
|
-
}, 2000);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return Promise.resolve({});
|
|
126
|
-
} else if (response) {
|
|
127
|
-
return Promise.resolve((0, _utils.checkStatus)(response));
|
|
128
|
-
}
|
|
129
|
-
}, function (error) {
|
|
130
|
-
// 对响应错误做处理...
|
|
131
|
-
// console.log(error);
|
|
132
|
-
if (error.response) {
|
|
133
|
-
return Promise.reject((0, _utils.checkStatus)(error.response));
|
|
134
|
-
} else if (error.code === 'ECONNABORTED' && error.message.indexOf('timeout') !== -1) {
|
|
135
|
-
return Promise.reject({
|
|
136
|
-
msg: '请求超时'
|
|
137
|
-
});
|
|
138
|
-
} else {
|
|
139
|
-
return Promise.reject({});
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
var request = /*#__PURE__*/function () {
|
|
144
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(opt) {
|
|
145
|
-
var options, res;
|
|
146
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
147
|
-
while (1) {
|
|
148
|
-
switch (_context.prev = _context.next) {
|
|
149
|
-
case 0:
|
|
150
|
-
options = (0, _objectSpread2.default)({
|
|
151
|
-
method: 'get',
|
|
152
|
-
ifHandleError: true
|
|
153
|
-
}, opt); // 匹配接口前缀 开发环境则通过proxy配置转发请求; 生产环境根据实际配置
|
|
154
|
-
// options.baseURL = autoMatch(options.prefix);
|
|
155
|
-
|
|
156
|
-
_context.prev = 1;
|
|
157
|
-
_context.next = 4;
|
|
158
|
-
return instance(options);
|
|
159
|
-
|
|
160
|
-
case 4:
|
|
161
|
-
res = _context.sent;
|
|
162
|
-
|
|
163
|
-
if (!(res.code !== 200 && options.ifHandleError)) {
|
|
164
|
-
_context.next = 8;
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// 自定义参数,是否允许全局提示错误信息
|
|
169
|
-
_message2.default.error(res.message || '请求处理失败!');
|
|
170
|
-
|
|
171
|
-
return _context.abrupt("return", Promise.reject(options));
|
|
172
|
-
|
|
173
|
-
case 8:
|
|
174
|
-
return _context.abrupt("return", res);
|
|
175
|
-
|
|
176
|
-
case 11:
|
|
177
|
-
_context.prev = 11;
|
|
178
|
-
_context.t0 = _context["catch"](1);
|
|
179
|
-
|
|
180
|
-
if (options.ifHandleError) {
|
|
181
|
-
// 自定义参数,是否允许全局提示错误信息
|
|
182
|
-
_message2.default.error(_context.t0.message || _context.t0.msg || '请求处理失败!');
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return _context.abrupt("return", Promise.reject(options));
|
|
186
|
-
|
|
187
|
-
case 15:
|
|
188
|
-
case "end":
|
|
189
|
-
return _context.stop();
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}, _callee, null, [[1, 11]]);
|
|
193
|
-
}));
|
|
194
|
-
|
|
195
|
-
return function request(_x) {
|
|
196
|
-
return _ref2.apply(this, arguments);
|
|
197
|
-
};
|
|
198
|
-
}();
|
|
199
|
-
|
|
200
|
-
var _default = request;
|
|
201
|
-
exports.default = _default;
|
package/lib/services/utils.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.checkStatus = checkStatus;
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
9
|
-
function checkStatus(response) {
|
|
10
|
-
var status = response.status || -1000; // -1000 自己定义,连接错误的status
|
|
11
|
-
|
|
12
|
-
if (status >= 200 && status < 300 || status === 304) {
|
|
13
|
-
// 如果http状态码正常,则直接返回数据
|
|
14
|
-
return response.data;
|
|
15
|
-
} else {
|
|
16
|
-
var errorInfo = '';
|
|
17
|
-
|
|
18
|
-
switch (status) {
|
|
19
|
-
case -1:
|
|
20
|
-
errorInfo = '远程服务响应失败,请稍后重试';
|
|
21
|
-
break;
|
|
22
|
-
|
|
23
|
-
case 400:
|
|
24
|
-
errorInfo = '400:错误请求';
|
|
25
|
-
break;
|
|
26
|
-
|
|
27
|
-
case 401:
|
|
28
|
-
errorInfo = '401:访问令牌无效或已过期';
|
|
29
|
-
break;
|
|
30
|
-
|
|
31
|
-
case 403:
|
|
32
|
-
errorInfo = '403:拒绝访问';
|
|
33
|
-
break;
|
|
34
|
-
|
|
35
|
-
case 404:
|
|
36
|
-
errorInfo = '404:资源不存在';
|
|
37
|
-
break;
|
|
38
|
-
|
|
39
|
-
case 405:
|
|
40
|
-
errorInfo = '405:请求方法未允许';
|
|
41
|
-
break;
|
|
42
|
-
|
|
43
|
-
case 408:
|
|
44
|
-
errorInfo = '408:请求超时';
|
|
45
|
-
break;
|
|
46
|
-
|
|
47
|
-
case 500:
|
|
48
|
-
errorInfo = '500:访问服务失败';
|
|
49
|
-
break;
|
|
50
|
-
|
|
51
|
-
case 501:
|
|
52
|
-
errorInfo = '501:未实现';
|
|
53
|
-
break;
|
|
54
|
-
|
|
55
|
-
case 502:
|
|
56
|
-
errorInfo = '502:无效网关';
|
|
57
|
-
break;
|
|
58
|
-
|
|
59
|
-
case 503:
|
|
60
|
-
errorInfo = '503:服务不可用';
|
|
61
|
-
break;
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
errorInfo = "\u8FDE\u63A5\u9519\u8BEF";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
status: status,
|
|
69
|
-
msg: errorInfo
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
.lm-font-small-bold {
|
|
2
|
-
font-weight: 400;
|
|
3
|
-
font-size: var(--font-size-sm);
|
|
4
|
-
line-height: 20px;
|
|
5
|
-
}
|
|
6
|
-
.lm-font-middle-bold {
|
|
7
|
-
font-weight: 500;
|
|
8
|
-
font-size: var(--font-size-base);
|
|
9
|
-
line-height: 22px;
|
|
10
|
-
}
|
|
11
|
-
.lm-font-large-bold {
|
|
12
|
-
font-weight: 500;
|
|
13
|
-
font-size: var(--font-size-lg);
|
|
14
|
-
line-height: 24px;
|
|
15
|
-
}
|
|
16
|
-
.lm-font-small {
|
|
17
|
-
font-size: var(--font-size-sm);
|
|
18
|
-
line-height: 20px;
|
|
19
|
-
}
|
|
20
|
-
.lm-font-middle {
|
|
21
|
-
font-size: var(--font-size-base);
|
|
22
|
-
line-height: 22px;
|
|
23
|
-
}
|
|
24
|
-
.lm-font-large {
|
|
25
|
-
font-size: var(--font-size-lg);
|
|
26
|
-
line-height: 24px;
|
|
27
|
-
}
|
|
28
|
-
.lm-shadown-level1-up {
|
|
29
|
-
box-shadow: 0px -1px 2px -2px rgba(0, 0, 0, 0.16), 0px -3px 6px 0px rgba(0, 0, 0, 0.12), 0px -5px 12px 4px rgba(0, 0, 0, 0.09);
|
|
30
|
-
}
|
|
31
|
-
.lm-shadown-level2-up {
|
|
32
|
-
box-shadow: 0px -3px 6px -4px rgba(0, 0, 0, 0.12), 0px -6px 16px 0px rgba(0, 0, 0, 0.08), 0px -9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
33
|
-
}
|
|
34
|
-
.lm-shadown-level3-up {
|
|
35
|
-
box-shadow: 0px -6px 16px -8px rgba(0, 0, 0, 0.08), 0px -9px 28px 0px rgba(0, 0, 0, 0.05), 0px -12px 48px 16px rgba(0, 0, 0, 0.03);
|
|
36
|
-
}
|
|
37
|
-
.lm-shadown-level1-down {
|
|
38
|
-
box-shadow: 0px 1px 2px -2px rgba(0, 0, 0, 0.16), 0px 3px 6px 0px rgba(0, 0, 0, 0.12), 0px 5px 12px 4px rgba(0, 0, 0, 0.09);
|
|
39
|
-
}
|
|
40
|
-
.lm-shadown-level2-down {
|
|
41
|
-
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
42
|
-
}
|
|
43
|
-
.lm-shadown-level3-down {
|
|
44
|
-
box-shadow: 0px 6px 16px -8px rgba(0, 0, 0, 0.08), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 12px 48px 16px rgba(0, 0, 0, 0.03);
|
|
45
|
-
}
|
|
46
|
-
.lm-shadown-level1-left {
|
|
47
|
-
box-shadow: -1px 0px 2px -2px rgba(0, 0, 0, 0.16), -3px 0px 6px 0px rgba(0, 0, 0, 0.12), -5px 0px 12px 4px rgba(0, 0, 0, 0.09);
|
|
48
|
-
}
|
|
49
|
-
.lm-shadown-level2-left {
|
|
50
|
-
box-shadow: -3px 0px 6px -4px rgba(0, 0, 0, 0.12), -6px 0px 16px 0px rgba(0, 0, 0, 0.08), -9px 0px 28px 8px rgba(0, 0, 0, 0.05);
|
|
51
|
-
}
|
|
52
|
-
.lm-shadown-level3-left {
|
|
53
|
-
box-shadow: -6px 0px 16px -8px rgba(0, 0, 0, 0.08), -9px 0px 28px 0px rgba(0, 0, 0, 0.05), -12px 0px 48px 16px rgba(0, 0, 0, 0.03);
|
|
54
|
-
}
|
|
55
|
-
.lm-shadown-level1-right {
|
|
56
|
-
box-shadow: 1px 0px 2px -2px rgba(0, 0, 0, 0.16), 3px 0px 6px 0px rgba(0, 0, 0, 0.12), 5px 0px 12px 4px rgba(0, 0, 0, 0.09);
|
|
57
|
-
}
|
|
58
|
-
.lm-shadown-level2-right {
|
|
59
|
-
box-shadow: 3px 0px 6px -4px rgba(0, 0, 0, 0.12), 6px 0px 16px 0px rgba(0, 0, 0, 0.08), 9px 0px 28px 8px rgba(0, 0, 0, 0.05);
|
|
60
|
-
}
|
|
61
|
-
.lm-shadown-level3-right {
|
|
62
|
-
box-shadow: 6px 0px 16px -8px rgba(0, 0, 0, 0.08), 9px 0px 28px 0px rgba(0, 0, 0, 0.05), 12px 0px 48px 16px rgba(0, 0, 0, 0.03);
|
|
63
|
-
}
|
package/lib/styles/icon.css
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'iconfont';
|
|
3
|
-
/* Project id 2966019 */
|
|
4
|
-
src: url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.woff2?t=1641546077924') format('woff2'), url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.woff?t=1641546077924') format('woff'), url('//at.alicdn.com/t/font_2966019_i3eb1wwkoo.ttf?t=1641546077924') format('truetype');
|
|
5
|
-
}
|
|
6
|
-
.icon_ {
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
font-family: 'iconfont';
|
|
9
|
-
}
|
|
10
|
-
.iconfont {
|
|
11
|
-
font-size: 12px;
|
|
12
|
-
}
|
|
13
|
-
.icon_home::before {
|
|
14
|
-
content: '\e7fc';
|
|
15
|
-
}
|