@maxtropy/v-components 0.1.12-beta.5 → 0.1.12-beta.7
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/mx-vcomponents.es.js +3497 -3442
- package/dist/mx-vcomponents.umd.js +60 -0
- package/dist/types/common/request.d.ts +3 -3
- package/dist/types/components/alert/MxAlert.vue.d.ts +2 -2
- package/dist/types/components/authorizedpermission/AuthorizedPermission.vue.d.ts +1 -1
- package/dist/types/components/basiclayout/BasicLayout.vue.d.ts +5 -5
- package/dist/types/components/breadcrumb/BreadCrumb.vue.d.ts +4 -4
- package/dist/types/components/button/MxButton.vue.d.ts +18 -18
- package/dist/types/components/checkbox/MxCheckbox.vue.d.ts +4 -4
- package/dist/types/components/checkbox/MxCheckboxGroup.vue.d.ts +11 -11
- package/dist/types/components/checkbox/index.d.ts +1 -1
- package/dist/types/components/datePicker/MxDatePicker.vue.d.ts +2 -2
- package/dist/types/components/dialog/MxDialog.vue.d.ts +2 -2
- package/dist/types/components/empty/MxEmpty.vue.d.ts +2 -2
- package/dist/types/components/form/MxForm.vue.d.ts +28 -28
- package/dist/types/components/form/MxFormItem.vue.d.ts +4 -4
- package/dist/types/components/form/index.d.ts +5 -5
- package/dist/types/components/headnavigation/HeadNavigation.vue.d.ts +4 -4
- package/dist/types/components/headnavigation/MenuBar.vue.d.ts +5 -5
- package/dist/types/components/input/MxInput.vue.d.ts +2 -2
- package/dist/types/components/message/index.d.ts +2 -2
- package/dist/types/components/messageBox/index.d.ts +2 -2
- package/dist/types/components/messageBox/message.vue.d.ts +4 -4
- package/dist/types/components/pagination/MxPagination.vue.d.ts +2 -2
- package/dist/types/components/popconfirm/MxPopconfirm.vue.d.ts +1 -1
- package/dist/types/components/radio/MxRadio.vue.d.ts +11 -11
- package/dist/types/components/radio/MxRadioButton.vue.d.ts +9 -9
- package/dist/types/components/radio/MxRadioGroup.vue.d.ts +19 -19
- package/dist/types/components/radio/index.d.ts +2 -2
- package/dist/types/components/select/MxOption.vue.d.ts +2 -2
- package/dist/types/components/select/MxOptionGroup.vue.d.ts +2 -2
- package/dist/types/components/select/MxSelect.vue.d.ts +2 -2
- package/dist/types/components/select/index.d.ts +2 -2
- package/dist/types/components/sidermenu/SiderMenu.vue.d.ts +4 -4
- package/dist/types/components/slider/MxSlider.vue.d.ts +2 -2
- package/dist/types/components/steps/MxStep.vue.d.ts +2 -2
- package/dist/types/components/steps/MxSteps.vue.d.ts +2 -2
- package/dist/types/components/steps/index.d.ts +1 -1
- package/dist/types/components/switchstaff/SwitchStaff.vue.d.ts +4 -4
- package/dist/types/components/systemcontent/SystemContent.vue.d.ts +4 -4
- package/dist/types/components/table/MxTable.vue.d.ts +2 -2
- package/dist/types/components/table/MxTableColumn.vue.d.ts +2 -2
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/tabs/MxTabPane.vue.d.ts +2 -2
- package/dist/types/components/tabs/MxTabs.vue.d.ts +7 -7
- package/dist/types/components/tag/MxTag.vue.d.ts +2 -2
- package/dist/types/components/timePicker/MxTimePicker.vue.d.ts +2 -2
- package/dist/types/components/tooltip/MxTooltip.vue.d.ts +2 -2
- package/dist/types/components/tree/MxTree.vue.d.ts +2 -2
- package/dist/types/components/treeselect/MxTreeSelect.vue.d.ts +2 -2
- package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
- package/dist/types/components/upload/upload.d.ts +6 -6
- package/dist/types/components/upload/uploadList.vue.d.ts +1 -1
- package/dist/types/components/usercontent/UserContent.vue.d.ts +4 -4
- package/es/api/staff.d.ts +3 -0
- package/es/api/staff.js +11 -0
- package/es/api/tenant.d.ts +4 -0
- package/es/api/tenant.js +15 -0
- package/es/api/user.d.ts +24 -0
- package/es/api/user.js +20 -0
- package/es/assets/images/notAuthorized.png +0 -0
- package/es/assets/images/tableNoData.png +0 -0
- package/es/assets/svg/ContainerSvg.vue.d.ts +2 -0
- package/es/assets/svg/ContainerSvg.vue.js +29 -0
- package/es/assets/svg/InfoCircleSvg.vue.d.ts +2 -0
- package/es/assets/svg/InfoCircleSvg.vue.js +31 -0
- package/es/assets/svg/InfoSvg.vue.d.ts +2 -0
- package/es/assets/svg/InfoSvg.vue.js +30 -0
- package/es/assets/svg/UploadSvg.vue.d.ts +2 -0
- package/es/assets/svg/UploadSvg.vue.js +29 -0
- package/es/common/const.d.ts +34 -0
- package/es/common/const.js +55 -0
- package/es/common/entity.d.ts +118 -0
- package/es/common/entity.js +32 -0
- package/es/common/fetch.d.ts +13 -0
- package/es/common/fetch.js +95 -0
- package/es/common/request.d.ts +30 -0
- package/es/common/request.js +107 -0
- package/es/common/subject.d.ts +20 -0
- package/es/common/subject.js +62 -0
- package/es/components/alert/MxAlert.css +47 -0
- package/es/components/alert/MxAlert.vue.d.ts +63 -0
- package/es/components/alert/MxAlert.vue.js +82 -0
- package/es/components/alert/index.d.ts +7 -0
- package/es/components/alert/index.js +8 -0
- package/es/components/authorizedpermission/AuthorizedPermission.css +14 -0
- package/es/components/authorizedpermission/AuthorizedPermission.vue.d.ts +10 -0
- package/es/components/authorizedpermission/AuthorizedPermission.vue.js +51 -0
- package/es/components/authorizedpermission/index.d.ts +7 -0
- package/es/components/authorizedpermission/index.js +8 -0
- package/es/components/basiclayout/BasicLayout.css +44 -0
- package/es/components/basiclayout/BasicLayout.vue.d.ts +45 -0
- package/es/components/basiclayout/BasicLayout.vue.js +64 -0
- package/es/components/basiclayout/index.d.ts +7 -0
- package/es/components/basiclayout/index.js +8 -0
- package/es/components/breadcrumb/BreadCrumb.css +20 -0
- package/es/components/breadcrumb/BreadCrumb.vue.d.ts +53 -0
- package/es/components/breadcrumb/BreadCrumb.vue.js +124 -0
- package/es/components/breadcrumb/index.d.ts +7 -0
- package/es/components/breadcrumb/index.js +8 -0
- package/es/components/button/MxButton.css +149 -0
- package/es/components/button/MxButton.vue.d.ts +107 -0
- package/es/components/button/MxButton.vue.js +76 -0
- package/es/components/button/index.d.ts +7 -0
- package/es/components/button/index.js +8 -0
- package/es/components/checkbox/MxCheckbox.css +35 -0
- package/es/components/checkbox/MxCheckbox.vue.d.ts +104 -0
- package/es/components/checkbox/MxCheckbox.vue.js +35 -0
- package/es/components/checkbox/MxCheckboxGroup.vue.d.ts +43 -0
- package/es/components/checkbox/MxCheckboxGroup.vue.js +26 -0
- package/es/components/checkbox/index.d.ts +351 -0
- package/es/components/checkbox/index.js +17 -0
- package/es/components/datePicker/MxDatePicker.css +586 -0
- package/es/components/datePicker/MxDatePicker.vue.d.ts +49 -0
- package/es/components/datePicker/MxDatePicker.vue.js +79 -0
- package/es/components/datePicker/index.d.ts +7 -0
- package/es/components/datePicker/index.js +8 -0
- package/es/components/dialog/MxDialog.css +62 -0
- package/es/components/dialog/MxDialog.vue.d.ts +164 -0
- package/es/components/dialog/MxDialog.vue.js +90 -0
- package/es/components/dialog/index.d.ts +7 -0
- package/es/components/dialog/index.js +8 -0
- package/es/components/dropdown/MxDropdown.css +30 -0
- package/es/components/dropdown/MxDropdown.vue.d.ts +71 -0
- package/es/components/dropdown/MxDropdown.vue.js +97 -0
- package/es/components/dropdown/index.d.ts +7 -0
- package/es/components/dropdown/index.js +8 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.css +3 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +42 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.js +70 -0
- package/es/components/ellipsisSpan/index.d.ts +7 -0
- package/es/components/ellipsisSpan/index.js +8 -0
- package/es/components/empty/MxEmpty.css +10 -0
- package/es/components/empty/MxEmpty.vue.d.ts +7 -0
- package/es/components/empty/MxEmpty.vue.js +36 -0
- package/es/components/empty/index.d.ts +7 -0
- package/es/components/empty/index.js +8 -0
- package/es/components/empty/no-data.png +0 -0
- package/es/components/form/MxForm.css +26 -0
- package/es/components/form/MxForm.vue.d.ts +123 -0
- package/es/components/form/MxForm.vue.js +99 -0
- package/es/components/form/MxFormItem.css +23 -0
- package/es/components/form/MxFormItem.vue.d.ts +94 -0
- package/es/components/form/MxFormItem.vue.js +63 -0
- package/es/components/form/index.d.ts +242 -0
- package/es/components/form/index.js +12 -0
- package/es/components/headnavigation/HeadNavigation.css +144 -0
- package/es/components/headnavigation/HeadNavigation.vue.d.ts +45 -0
- package/es/components/headnavigation/HeadNavigation.vue.js +201 -0
- package/es/components/headnavigation/MenuBar.css +113 -0
- package/es/components/headnavigation/MenuBar.vue.d.ts +35 -0
- package/es/components/headnavigation/MenuBar.vue.js +31 -0
- package/es/components/headnavigation/index.d.ts +7 -0
- package/es/components/headnavigation/index.js +8 -0
- package/es/components/index.d.ts +38 -0
- package/es/components/index.js +171 -0
- package/es/components/input/MxInput.css +54 -0
- package/es/components/input/MxInput.vue.d.ts +7 -0
- package/es/components/input/MxInput.vue.js +24 -0
- package/es/components/input/index.d.ts +7 -0
- package/es/components/input/index.js +8 -0
- package/es/components/message/index.d.ts +7 -0
- package/es/components/message/index.js +12 -0
- package/es/components/message/message.css +31 -0
- package/es/components/message/message.d.ts +4 -0
- package/es/components/message/message.js +42 -0
- package/es/components/messageBox/index.d.ts +7 -0
- package/es/components/messageBox/index.js +13 -0
- package/es/components/messageBox/message.vue.d.ts +48 -0
- package/es/components/messageBox/message.vue.js +58 -0
- package/es/components/messageBox/messageBox.css +160 -0
- package/es/components/messageBox/messageBox.d.ts +4 -0
- package/es/components/messageBox/messageBox.js +39 -0
- package/es/components/notification/index.d.ts +3 -0
- package/es/components/notification/index.js +7 -0
- package/es/components/notification/notification.css +58 -0
- package/es/components/notification/notification.d.ts +4 -0
- package/es/components/notification/notification.js +28 -0
- package/es/components/pagination/MxPagination.css +110 -0
- package/es/components/pagination/MxPagination.vue.d.ts +38 -0
- package/es/components/pagination/MxPagination.vue.js +53 -0
- package/es/components/pagination/index.d.ts +7 -0
- package/es/components/pagination/index.js +8 -0
- package/es/components/popconfirm/MxPopconfirm.css +26 -0
- package/es/components/popconfirm/MxPopconfirm.vue.d.ts +51 -0
- package/es/components/popconfirm/MxPopconfirm.vue.js +92 -0
- package/es/components/popconfirm/index.d.ts +7 -0
- package/es/components/popconfirm/index.js +8 -0
- package/es/components/radio/MxRadio.css +33 -0
- package/es/components/radio/MxRadio.vue.d.ts +36 -0
- package/es/components/radio/MxRadio.vue.js +35 -0
- package/es/components/radio/MxRadioButton.css +37 -0
- package/es/components/radio/MxRadioButton.vue.d.ts +31 -0
- package/es/components/radio/MxRadioButton.vue.js +33 -0
- package/es/components/radio/MxRadioGroup.vue.d.ts +45 -0
- package/es/components/radio/MxRadioGroup.vue.js +26 -0
- package/es/components/radio/index.d.ts +302 -0
- package/es/components/radio/index.js +16 -0
- package/es/components/select/MxOption.vue.d.ts +7 -0
- package/es/components/select/MxOption.vue.js +26 -0
- package/es/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/es/components/select/MxOptionGroup.vue.js +23 -0
- package/es/components/select/MxSelect.css +91 -0
- package/es/components/select/MxSelect.vue.d.ts +7 -0
- package/es/components/select/MxSelect.vue.js +43 -0
- package/es/components/select/index.d.ts +191 -0
- package/es/components/select/index.js +16 -0
- package/es/components/sidermenu/HambShow.css +65 -0
- package/es/components/sidermenu/HambShow.vue.d.ts +16 -0
- package/es/components/sidermenu/HambShow.vue.js +76 -0
- package/es/components/sidermenu/SiderMenu.css +94 -0
- package/es/components/sidermenu/SiderMenu.vue.d.ts +46 -0
- package/es/components/sidermenu/SiderMenu.vue.js +246 -0
- package/es/components/sidermenu/index.d.ts +7 -0
- package/es/components/sidermenu/index.js +8 -0
- package/es/components/slider/MxSlider.css +54 -0
- package/es/components/slider/MxSlider.vue.d.ts +32 -0
- package/es/components/slider/MxSlider.vue.js +39 -0
- package/es/components/slider/index.d.ts +7 -0
- package/es/components/slider/index.js +8 -0
- package/es/components/steps/MxStep.css +572 -0
- package/es/components/steps/MxStep.vue.d.ts +7 -0
- package/es/components/steps/MxStep.vue.js +30 -0
- package/es/components/steps/MxSteps.vue.d.ts +29 -0
- package/es/components/steps/MxSteps.vue.js +40 -0
- package/es/components/steps/index.d.ts +99 -0
- package/es/components/steps/index.js +12 -0
- package/es/components/switch/MxSwitch.css +49 -0
- package/es/components/switch/MxSwitch.vue.d.ts +2 -0
- package/es/components/switch/MxSwitch.vue.js +23 -0
- package/es/components/switch/index.d.ts +7 -0
- package/es/components/switch/index.js +8 -0
- package/es/components/switchstaff/CustomSvg.vue.d.ts +2 -0
- package/es/components/switchstaff/CustomSvg.vue.js +28 -0
- package/es/components/switchstaff/SwitchStaff.css +132 -0
- package/es/components/switchstaff/SwitchStaff.vue.d.ts +32 -0
- package/es/components/switchstaff/SwitchStaff.vue.js +121 -0
- package/es/components/switchstaff/WarnSvg.vue.d.ts +2 -0
- package/es/components/switchstaff/WarnSvg.vue.js +28 -0
- package/es/components/switchstaff/index.d.ts +7 -0
- package/es/components/switchstaff/index.js +8 -0
- package/es/components/systemcontent/SystemContent.css +28 -0
- package/es/components/systemcontent/SystemContent.vue.d.ts +51 -0
- package/es/components/systemcontent/SystemContent.vue.js +91 -0
- package/es/components/systemcontent/index.d.ts +7 -0
- package/es/components/systemcontent/index.js +8 -0
- package/es/components/systemcontent/logo.png +0 -0
- package/es/components/table/MxTable.css +190 -0
- package/es/components/table/MxTable.vue.d.ts +37 -0
- package/es/components/table/MxTable.vue.js +63 -0
- package/es/components/table/MxTableColumn.css +31 -0
- package/es/components/table/MxTableColumn.vue.d.ts +11 -0
- package/es/components/table/MxTableColumn.vue.js +28 -0
- package/es/components/table/index.d.ts +103 -0
- package/es/components/table/index.js +12 -0
- package/es/components/tabs/MxTabPane.vue.d.ts +7 -0
- package/es/components/tabs/MxTabPane.vue.js +26 -0
- package/es/components/tabs/MxTabs.css +132 -0
- package/es/components/tabs/MxTabs.vue.d.ts +37 -0
- package/es/components/tabs/MxTabs.vue.js +44 -0
- package/es/components/tag/MxTag.css +84 -0
- package/es/components/tag/MxTag.vue.d.ts +40 -0
- package/es/components/tag/MxTag.vue.js +96 -0
- package/es/components/tag/index.d.ts +7 -0
- package/es/components/tag/index.js +8 -0
- package/es/components/timePicker/MxTimePicker.css +180 -0
- package/es/components/timePicker/MxTimePicker.vue.d.ts +49 -0
- package/es/components/timePicker/MxTimePicker.vue.js +79 -0
- package/es/components/timePicker/index.d.ts +7 -0
- package/es/components/timePicker/index.js +8 -0
- package/es/components/tooltip/MxTooltip.css +17 -0
- package/es/components/tooltip/MxTooltip.vue.d.ts +7 -0
- package/es/components/tooltip/MxTooltip.vue.js +24 -0
- package/es/components/tooltip/index.d.ts +7 -0
- package/es/components/tooltip/index.js +8 -0
- package/es/components/tree/MxTree.css +56 -0
- package/es/components/tree/MxTree.vue.d.ts +7 -0
- package/es/components/tree/MxTree.vue.js +27 -0
- package/es/components/tree/index.d.ts +7 -0
- package/es/components/tree/index.js +8 -0
- package/es/components/treeselect/MxTreeSelect.css +111 -0
- package/es/components/treeselect/MxTreeSelect.vue.d.ts +7 -0
- package/es/components/treeselect/MxTreeSelect.vue.js +35 -0
- package/es/components/treeselect/index.d.ts +7 -0
- package/es/components/treeselect/index.js +8 -0
- package/es/components/upload/MxUpload.css +111 -0
- package/es/components/upload/MxUpload.vue.d.ts +111 -0
- package/es/components/upload/MxUpload.vue.js +311 -0
- package/es/components/upload/index.d.ts +7 -0
- package/es/components/upload/index.js +8 -0
- package/es/components/upload/upload.d.ts +139 -0
- package/es/components/upload/upload.js +11 -0
- package/es/components/upload/uploadList.css +70 -0
- package/es/components/upload/uploadList.vue.d.ts +15 -0
- package/es/components/upload/uploadList.vue.js +118 -0
- package/es/components/upload/use-handlers.d.ts +13 -0
- package/es/components/upload/use-handlers.js +54 -0
- package/es/components/usercontent/ArrowSvg.vue.d.ts +2 -0
- package/es/components/usercontent/ArrowSvg.vue.js +28 -0
- package/es/components/usercontent/UserContent.css +53 -0
- package/es/components/usercontent/UserContent.vue.d.ts +28 -0
- package/es/components/usercontent/UserContent.vue.js +134 -0
- package/es/components/usercontent/UserSvg.vue.d.ts +2 -0
- package/es/components/usercontent/UserSvg.vue.js +29 -0
- package/es/components/usercontent/index.d.ts +7 -0
- package/es/components/usercontent/index.js +8 -0
- package/es/constants/const.d.ts +1 -0
- package/es/constants/const.js +4 -0
- package/es/constants/index.d.ts +2 -0
- package/es/constants/index.js +4 -0
- package/es/env.d.ts +30 -0
- package/es/index.d.ts +13 -0
- package/es/index.js +17 -0
- package/es/utils/hooks.d.ts +23 -0
- package/es/utils/hooks.js +126 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.js +6 -0
- package/es/utils/lib.d.ts +9 -0
- package/es/utils/lib.js +102 -0
- package/es/utils/micro.d.ts +12 -0
- package/es/utils/micro.js +128 -0
- package/lib/api/staff.d.ts +3 -0
- package/lib/api/staff.js +11 -0
- package/lib/api/tenant.d.ts +4 -0
- package/lib/api/tenant.js +15 -0
- package/lib/api/user.d.ts +24 -0
- package/lib/api/user.js +20 -0
- package/lib/assets/images/notAuthorized.png +0 -0
- package/lib/assets/images/tableNoData.png +0 -0
- package/lib/assets/svg/ContainerSvg.vue.d.ts +2 -0
- package/lib/assets/svg/ContainerSvg.vue.js +28 -0
- package/lib/assets/svg/InfoCircleSvg.vue.d.ts +2 -0
- package/lib/assets/svg/InfoCircleSvg.vue.js +30 -0
- package/lib/assets/svg/InfoSvg.vue.d.ts +2 -0
- package/lib/assets/svg/InfoSvg.vue.js +29 -0
- package/lib/assets/svg/UploadSvg.vue.d.ts +2 -0
- package/lib/assets/svg/UploadSvg.vue.js +28 -0
- package/lib/common/const.d.ts +34 -0
- package/lib/common/const.js +55 -0
- package/lib/common/entity.d.ts +118 -0
- package/lib/common/entity.js +32 -0
- package/lib/common/fetch.d.ts +13 -0
- package/lib/common/fetch.js +95 -0
- package/lib/common/request.d.ts +30 -0
- package/lib/common/request.js +107 -0
- package/lib/common/subject.d.ts +20 -0
- package/lib/common/subject.js +62 -0
- package/lib/components/alert/MxAlert.css +47 -0
- package/lib/components/alert/MxAlert.vue.d.ts +63 -0
- package/lib/components/alert/MxAlert.vue.js +82 -0
- package/lib/components/alert/index.d.ts +7 -0
- package/lib/components/alert/index.js +6 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.css +14 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.d.ts +10 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.js +50 -0
- package/lib/components/authorizedpermission/index.d.ts +7 -0
- package/lib/components/authorizedpermission/index.js +6 -0
- package/lib/components/basiclayout/BasicLayout.css +44 -0
- package/lib/components/basiclayout/BasicLayout.vue.d.ts +45 -0
- package/lib/components/basiclayout/BasicLayout.vue.js +63 -0
- package/lib/components/basiclayout/index.d.ts +7 -0
- package/lib/components/basiclayout/index.js +6 -0
- package/lib/components/breadcrumb/BreadCrumb.css +20 -0
- package/lib/components/breadcrumb/BreadCrumb.vue.d.ts +53 -0
- package/lib/components/breadcrumb/BreadCrumb.vue.js +123 -0
- package/lib/components/breadcrumb/index.d.ts +7 -0
- package/lib/components/breadcrumb/index.js +6 -0
- package/lib/components/button/MxButton.css +149 -0
- package/lib/components/button/MxButton.vue.d.ts +107 -0
- package/lib/components/button/MxButton.vue.js +75 -0
- package/lib/components/button/index.d.ts +7 -0
- package/lib/components/button/index.js +6 -0
- package/lib/components/checkbox/MxCheckbox.css +35 -0
- package/lib/components/checkbox/MxCheckbox.vue.d.ts +104 -0
- package/lib/components/checkbox/MxCheckbox.vue.js +34 -0
- package/lib/components/checkbox/MxCheckboxGroup.vue.d.ts +43 -0
- package/lib/components/checkbox/MxCheckboxGroup.vue.js +25 -0
- package/lib/components/checkbox/index.d.ts +351 -0
- package/lib/components/checkbox/index.js +16 -0
- package/lib/components/datePicker/MxDatePicker.css +586 -0
- package/lib/components/datePicker/MxDatePicker.vue.d.ts +49 -0
- package/lib/components/datePicker/MxDatePicker.vue.js +78 -0
- package/lib/components/datePicker/index.d.ts +7 -0
- package/lib/components/datePicker/index.js +6 -0
- package/lib/components/dialog/MxDialog.css +62 -0
- package/lib/components/dialog/MxDialog.vue.d.ts +164 -0
- package/lib/components/dialog/MxDialog.vue.js +89 -0
- package/lib/components/dialog/index.d.ts +7 -0
- package/lib/components/dialog/index.js +6 -0
- package/lib/components/dropdown/MxDropdown.css +30 -0
- package/lib/components/dropdown/MxDropdown.vue.d.ts +71 -0
- package/lib/components/dropdown/MxDropdown.vue.js +96 -0
- package/lib/components/dropdown/index.d.ts +7 -0
- package/lib/components/dropdown/index.js +6 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.css +3 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +42 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.js +69 -0
- package/lib/components/ellipsisSpan/index.d.ts +7 -0
- package/lib/components/ellipsisSpan/index.js +6 -0
- package/lib/components/empty/MxEmpty.css +10 -0
- package/lib/components/empty/MxEmpty.vue.d.ts +7 -0
- package/lib/components/empty/MxEmpty.vue.js +35 -0
- package/lib/components/empty/index.d.ts +7 -0
- package/lib/components/empty/index.js +6 -0
- package/lib/components/empty/no-data.png +0 -0
- package/lib/components/form/MxForm.css +26 -0
- package/lib/components/form/MxForm.vue.d.ts +123 -0
- package/lib/components/form/MxForm.vue.js +98 -0
- package/lib/components/form/MxFormItem.css +23 -0
- package/lib/components/form/MxFormItem.vue.d.ts +94 -0
- package/lib/components/form/MxFormItem.vue.js +63 -0
- package/lib/components/form/index.d.ts +242 -0
- package/lib/components/form/index.js +11 -0
- package/lib/components/headnavigation/HeadNavigation.css +144 -0
- package/lib/components/headnavigation/HeadNavigation.vue.d.ts +45 -0
- package/lib/components/headnavigation/HeadNavigation.vue.js +200 -0
- package/lib/components/headnavigation/MenuBar.css +113 -0
- package/lib/components/headnavigation/MenuBar.vue.d.ts +35 -0
- package/lib/components/headnavigation/MenuBar.vue.js +30 -0
- package/lib/components/headnavigation/index.d.ts +7 -0
- package/lib/components/headnavigation/index.js +6 -0
- package/lib/components/index.d.ts +38 -0
- package/lib/components/index.js +175 -0
- package/lib/components/input/MxInput.css +54 -0
- package/lib/components/input/MxInput.vue.d.ts +7 -0
- package/lib/components/input/MxInput.vue.js +23 -0
- package/lib/components/input/index.d.ts +7 -0
- package/lib/components/input/index.js +6 -0
- package/lib/components/message/index.d.ts +7 -0
- package/lib/components/message/index.js +12 -0
- package/lib/components/message/message.css +31 -0
- package/lib/components/message/message.d.ts +4 -0
- package/lib/components/message/message.js +41 -0
- package/lib/components/messageBox/index.d.ts +7 -0
- package/lib/components/messageBox/index.js +13 -0
- package/lib/components/messageBox/message.vue.d.ts +48 -0
- package/lib/components/messageBox/message.vue.js +57 -0
- package/lib/components/messageBox/messageBox.css +160 -0
- package/lib/components/messageBox/messageBox.d.ts +4 -0
- package/lib/components/messageBox/messageBox.js +38 -0
- package/lib/components/notification/index.d.ts +3 -0
- package/lib/components/notification/index.js +6 -0
- package/lib/components/notification/notification.css +58 -0
- package/lib/components/notification/notification.d.ts +4 -0
- package/lib/components/notification/notification.js +27 -0
- package/lib/components/pagination/MxPagination.css +110 -0
- package/lib/components/pagination/MxPagination.vue.d.ts +38 -0
- package/lib/components/pagination/MxPagination.vue.js +52 -0
- package/lib/components/pagination/index.d.ts +7 -0
- package/lib/components/pagination/index.js +6 -0
- package/lib/components/popconfirm/MxPopconfirm.css +26 -0
- package/lib/components/popconfirm/MxPopconfirm.vue.d.ts +51 -0
- package/lib/components/popconfirm/MxPopconfirm.vue.js +91 -0
- package/lib/components/popconfirm/index.d.ts +7 -0
- package/lib/components/popconfirm/index.js +6 -0
- package/lib/components/radio/MxRadio.css +33 -0
- package/lib/components/radio/MxRadio.vue.d.ts +36 -0
- package/lib/components/radio/MxRadio.vue.js +34 -0
- package/lib/components/radio/MxRadioButton.css +37 -0
- package/lib/components/radio/MxRadioButton.vue.d.ts +31 -0
- package/lib/components/radio/MxRadioButton.vue.js +32 -0
- package/lib/components/radio/MxRadioGroup.vue.d.ts +45 -0
- package/lib/components/radio/MxRadioGroup.vue.js +25 -0
- package/lib/components/radio/index.d.ts +302 -0
- package/lib/components/radio/index.js +15 -0
- package/lib/components/select/MxOption.vue.d.ts +7 -0
- package/lib/components/select/MxOption.vue.js +25 -0
- package/lib/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/lib/components/select/MxOptionGroup.vue.js +22 -0
- package/lib/components/select/MxSelect.css +91 -0
- package/lib/components/select/MxSelect.vue.d.ts +7 -0
- package/lib/components/select/MxSelect.vue.js +42 -0
- package/lib/components/select/index.d.ts +191 -0
- package/lib/components/select/index.js +15 -0
- package/lib/components/sidermenu/HambShow.css +65 -0
- package/lib/components/sidermenu/HambShow.vue.d.ts +16 -0
- package/lib/components/sidermenu/HambShow.vue.js +75 -0
- package/lib/components/sidermenu/SiderMenu.css +94 -0
- package/lib/components/sidermenu/SiderMenu.vue.d.ts +46 -0
- package/lib/components/sidermenu/SiderMenu.vue.js +245 -0
- package/lib/components/sidermenu/index.d.ts +7 -0
- package/lib/components/sidermenu/index.js +6 -0
- package/lib/components/slider/MxSlider.css +54 -0
- package/lib/components/slider/MxSlider.vue.d.ts +32 -0
- package/lib/components/slider/MxSlider.vue.js +38 -0
- package/lib/components/slider/index.d.ts +7 -0
- package/lib/components/slider/index.js +6 -0
- package/lib/components/steps/MxStep.css +572 -0
- package/lib/components/steps/MxStep.vue.d.ts +7 -0
- package/lib/components/steps/MxStep.vue.js +29 -0
- package/lib/components/steps/MxSteps.vue.d.ts +29 -0
- package/lib/components/steps/MxSteps.vue.js +39 -0
- package/lib/components/steps/index.d.ts +99 -0
- package/lib/components/steps/index.js +11 -0
- package/lib/components/switch/MxSwitch.css +49 -0
- package/lib/components/switch/MxSwitch.vue.d.ts +2 -0
- package/lib/components/switch/MxSwitch.vue.js +22 -0
- package/lib/components/switch/index.d.ts +7 -0
- package/lib/components/switch/index.js +6 -0
- package/lib/components/switchstaff/CustomSvg.vue.d.ts +2 -0
- package/lib/components/switchstaff/CustomSvg.vue.js +27 -0
- package/lib/components/switchstaff/SwitchStaff.css +132 -0
- package/lib/components/switchstaff/SwitchStaff.vue.d.ts +32 -0
- package/lib/components/switchstaff/SwitchStaff.vue.js +120 -0
- package/lib/components/switchstaff/WarnSvg.vue.d.ts +2 -0
- package/lib/components/switchstaff/WarnSvg.vue.js +27 -0
- package/lib/components/switchstaff/index.d.ts +7 -0
- package/lib/components/switchstaff/index.js +6 -0
- package/lib/components/systemcontent/SystemContent.css +28 -0
- package/lib/components/systemcontent/SystemContent.vue.d.ts +51 -0
- package/lib/components/systemcontent/SystemContent.vue.js +90 -0
- package/lib/components/systemcontent/index.d.ts +7 -0
- package/lib/components/systemcontent/index.js +6 -0
- package/lib/components/systemcontent/logo.png +0 -0
- package/lib/components/table/MxTable.css +190 -0
- package/lib/components/table/MxTable.vue.d.ts +37 -0
- package/lib/components/table/MxTable.vue.js +62 -0
- package/lib/components/table/MxTableColumn.css +31 -0
- package/lib/components/table/MxTableColumn.vue.d.ts +11 -0
- package/lib/components/table/MxTableColumn.vue.js +27 -0
- package/lib/components/table/index.d.ts +103 -0
- package/lib/components/table/index.js +11 -0
- package/lib/components/tabs/MxTabPane.vue.d.ts +7 -0
- package/lib/components/tabs/MxTabPane.vue.js +25 -0
- package/lib/components/tabs/MxTabs.css +132 -0
- package/lib/components/tabs/MxTabs.vue.d.ts +37 -0
- package/lib/components/tabs/MxTabs.vue.js +43 -0
- package/lib/components/tag/MxTag.css +84 -0
- package/lib/components/tag/MxTag.vue.d.ts +40 -0
- package/lib/components/tag/MxTag.vue.js +95 -0
- package/lib/components/tag/index.d.ts +7 -0
- package/lib/components/tag/index.js +6 -0
- package/lib/components/timePicker/MxTimePicker.css +180 -0
- package/lib/components/timePicker/MxTimePicker.vue.d.ts +49 -0
- package/lib/components/timePicker/MxTimePicker.vue.js +78 -0
- package/lib/components/timePicker/index.d.ts +7 -0
- package/lib/components/timePicker/index.js +6 -0
- package/lib/components/tooltip/MxTooltip.css +17 -0
- package/lib/components/tooltip/MxTooltip.vue.d.ts +7 -0
- package/lib/components/tooltip/MxTooltip.vue.js +23 -0
- package/lib/components/tooltip/index.d.ts +7 -0
- package/lib/components/tooltip/index.js +6 -0
- package/lib/components/tree/MxTree.css +56 -0
- package/lib/components/tree/MxTree.vue.d.ts +7 -0
- package/lib/components/tree/MxTree.vue.js +26 -0
- package/lib/components/tree/index.d.ts +7 -0
- package/lib/components/tree/index.js +6 -0
- package/lib/components/treeselect/MxTreeSelect.css +111 -0
- package/lib/components/treeselect/MxTreeSelect.vue.d.ts +7 -0
- package/lib/components/treeselect/MxTreeSelect.vue.js +34 -0
- package/lib/components/treeselect/index.d.ts +7 -0
- package/lib/components/treeselect/index.js +6 -0
- package/lib/components/upload/MxUpload.css +111 -0
- package/lib/components/upload/MxUpload.vue.d.ts +111 -0
- package/lib/components/upload/MxUpload.vue.js +310 -0
- package/lib/components/upload/index.d.ts +7 -0
- package/lib/components/upload/index.js +6 -0
- package/lib/components/upload/upload.d.ts +139 -0
- package/lib/components/upload/upload.js +11 -0
- package/lib/components/upload/uploadList.css +70 -0
- package/lib/components/upload/uploadList.vue.d.ts +15 -0
- package/lib/components/upload/uploadList.vue.js +117 -0
- package/lib/components/upload/use-handlers.d.ts +13 -0
- package/lib/components/upload/use-handlers.js +54 -0
- package/lib/components/usercontent/ArrowSvg.vue.d.ts +2 -0
- package/lib/components/usercontent/ArrowSvg.vue.js +27 -0
- package/lib/components/usercontent/UserContent.css +53 -0
- package/lib/components/usercontent/UserContent.vue.d.ts +28 -0
- package/lib/components/usercontent/UserContent.vue.js +133 -0
- package/lib/components/usercontent/UserSvg.vue.d.ts +2 -0
- package/lib/components/usercontent/UserSvg.vue.js +28 -0
- package/lib/components/usercontent/index.d.ts +7 -0
- package/lib/components/usercontent/index.js +6 -0
- package/lib/constants/const.d.ts +1 -0
- package/lib/constants/const.js +4 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +21 -0
- package/lib/env.d.ts +30 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +82 -0
- package/lib/utils/hooks.d.ts +23 -0
- package/lib/utils/hooks.js +126 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +6 -0
- package/lib/utils/lib.d.ts +9 -0
- package/lib/utils/lib.js +102 -0
- package/lib/utils/micro.d.ts +12 -0
- package/lib/utils/micro.js +128 -0
- package/package.json +9 -14
- package/dist/mx-vcomponents.es2.js +0 -70
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ResponseCodeError } from './fetch';
|
|
2
|
+
import 'element-plus/es/components/message-box/style/css';
|
|
3
|
+
interface ErrorHandler {
|
|
4
|
+
(err: any): boolean;
|
|
5
|
+
}
|
|
6
|
+
export type PromiseWithErrorHandler<T> = Promise<T> & ErrorHandlerReceiver<T>;
|
|
7
|
+
interface ErrorHandlerReceiver<T> {
|
|
8
|
+
onError(handler: ErrorHandler): PromiseWithErrorHandler<T>;
|
|
9
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
10
|
+
}
|
|
11
|
+
export declare function defaultErrorHandling(err: any): boolean;
|
|
12
|
+
export declare class ResponseError extends Error {
|
|
13
|
+
readonly cause: ResponseCodeError;
|
|
14
|
+
readonly error?: string;
|
|
15
|
+
readonly errorCode?: string;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly path?: string;
|
|
18
|
+
readonly status?: string;
|
|
19
|
+
readonly timestamp?: string;
|
|
20
|
+
constructor(cause: ResponseCodeError);
|
|
21
|
+
}
|
|
22
|
+
interface DefaultErrorHandler {
|
|
23
|
+
(err: any): boolean;
|
|
24
|
+
}
|
|
25
|
+
interface fetchConfigProps {
|
|
26
|
+
handler: DefaultErrorHandler;
|
|
27
|
+
}
|
|
28
|
+
export declare const createFetchInstance: (defaultConfig?: fetchConfigProps) => <T>(input: RequestInfo, init?: RequestInit) => PromiseWithErrorHandler<T>;
|
|
29
|
+
declare const fetchInstance: <T>(input: RequestInfo, init?: RequestInit) => PromiseWithErrorHandler<T>;
|
|
30
|
+
export { fetchInstance as fetch };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { ResponseCodeError, fetch as fetch$1 } from "./fetch";
|
|
8
|
+
import "element-plus/es/components/message-box/style/css";
|
|
9
|
+
import { ElMessage } from "element-plus";
|
|
10
|
+
import "element-plus/es/components/message/style/css";
|
|
11
|
+
async function fetch(input, init) {
|
|
12
|
+
try {
|
|
13
|
+
return await fetch$1(input, init);
|
|
14
|
+
} catch (e) {
|
|
15
|
+
if (e instanceof ResponseCodeError) {
|
|
16
|
+
throw new ResponseError(e);
|
|
17
|
+
} else {
|
|
18
|
+
throw e;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function defaultErrorHandling(err) {
|
|
23
|
+
let rce;
|
|
24
|
+
let defaultMessage = "未知错误! 请联系管理员。";
|
|
25
|
+
if (err instanceof ResponseCodeError) {
|
|
26
|
+
rce = err;
|
|
27
|
+
} else if (err instanceof ResponseError) {
|
|
28
|
+
rce = err.cause;
|
|
29
|
+
defaultMessage = err.message || err.cause.errorMessage || defaultMessage;
|
|
30
|
+
}
|
|
31
|
+
if (rce) {
|
|
32
|
+
switch (rce.status) {
|
|
33
|
+
case 400:
|
|
34
|
+
ElMessage({
|
|
35
|
+
message: defaultMessage,
|
|
36
|
+
type: "error"
|
|
37
|
+
});
|
|
38
|
+
return true;
|
|
39
|
+
case 500:
|
|
40
|
+
ElMessage({
|
|
41
|
+
message: defaultMessage,
|
|
42
|
+
type: "error"
|
|
43
|
+
});
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
class ResponseError extends Error {
|
|
50
|
+
constructor(cause) {
|
|
51
|
+
var _a, _b, _c, _d, _e, _f;
|
|
52
|
+
super();
|
|
53
|
+
__publicField(this, "cause");
|
|
54
|
+
__publicField(this, "error");
|
|
55
|
+
__publicField(this, "errorCode");
|
|
56
|
+
__publicField(this, "message");
|
|
57
|
+
__publicField(this, "path");
|
|
58
|
+
__publicField(this, "status");
|
|
59
|
+
__publicField(this, "timestamp");
|
|
60
|
+
this.cause = cause;
|
|
61
|
+
this.error = (_a = cause == null ? void 0 : cause.body) == null ? void 0 : _a.error;
|
|
62
|
+
this.errorCode = (_b = cause == null ? void 0 : cause.body) == null ? void 0 : _b.error_code;
|
|
63
|
+
this.message = (_c = cause == null ? void 0 : cause.body) == null ? void 0 : _c.message;
|
|
64
|
+
this.path = (_d = cause == null ? void 0 : cause.body) == null ? void 0 : _d.path;
|
|
65
|
+
this.status = (_e = cause == null ? void 0 : cause.body) == null ? void 0 : _e.status;
|
|
66
|
+
this.timestamp = (_f = cause == null ? void 0 : cause.body) == null ? void 0 : _f.timestamp;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const createFetchInstance = (defaultConfig) => {
|
|
70
|
+
const { handler = defaultErrorHandling } = defaultConfig ?? {};
|
|
71
|
+
return function fetchWithDefaultErrorHandling(input, init) {
|
|
72
|
+
let errorHandler;
|
|
73
|
+
let callThen = true;
|
|
74
|
+
const result = fetch(input, init).catch((e) => {
|
|
75
|
+
if (errorHandler) {
|
|
76
|
+
callThen = !errorHandler(e);
|
|
77
|
+
} else {
|
|
78
|
+
callThen = !handler(e);
|
|
79
|
+
}
|
|
80
|
+
if (callThen) {
|
|
81
|
+
throw e;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const mergedResult = result;
|
|
85
|
+
mergedResult.onError = (handler2) => {
|
|
86
|
+
errorHandler = handler2;
|
|
87
|
+
return mergedResult;
|
|
88
|
+
};
|
|
89
|
+
const _then = mergedResult.then;
|
|
90
|
+
mergedResult.then = (onfulfilled, onrejected) => {
|
|
91
|
+
const fulfilled = (...args) => {
|
|
92
|
+
if (callThen) {
|
|
93
|
+
return onfulfilled(...args);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
return _then.apply(mergedResult, [fulfilled, onrejected]);
|
|
97
|
+
};
|
|
98
|
+
return mergedResult;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
const fetchInstance = /* @__PURE__ */ createFetchInstance();
|
|
102
|
+
export {
|
|
103
|
+
ResponseError,
|
|
104
|
+
createFetchInstance,
|
|
105
|
+
defaultErrorHandling,
|
|
106
|
+
fetchInstance as fetch
|
|
107
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Subscription } from 'rxjs';
|
|
2
|
+
export interface ISubjectHolder<T> {
|
|
3
|
+
subscribe(callback: (data?: T) => void): Subscription;
|
|
4
|
+
current(): T | undefined;
|
|
5
|
+
resetData(): void;
|
|
6
|
+
refreshData(callback?: () => void): void;
|
|
7
|
+
}
|
|
8
|
+
export declare class SubjectHolder<T> implements ISubjectHolder<T> {
|
|
9
|
+
private readonly subject;
|
|
10
|
+
private data?;
|
|
11
|
+
private asyncGetData?;
|
|
12
|
+
private sending;
|
|
13
|
+
constructor(asyncGetData?: () => Promise<T>);
|
|
14
|
+
subscribe(callback: (data?: T) => void): Subscription;
|
|
15
|
+
private getData;
|
|
16
|
+
resetData(): void;
|
|
17
|
+
refreshData(callback?: () => void): void;
|
|
18
|
+
current(): T | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare function lazyHolderSingletonGetter<T>(supplier: () => ISubjectHolder<T>): () => ISubjectHolder<T>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { BehaviorSubject } from "rxjs";
|
|
8
|
+
class SubjectHolder {
|
|
9
|
+
constructor(asyncGetData) {
|
|
10
|
+
__publicField(this, "subject", new BehaviorSubject(void 0));
|
|
11
|
+
__publicField(this, "data");
|
|
12
|
+
__publicField(this, "asyncGetData");
|
|
13
|
+
__publicField(this, "sending", false);
|
|
14
|
+
if (asyncGetData) {
|
|
15
|
+
this.asyncGetData = asyncGetData;
|
|
16
|
+
}
|
|
17
|
+
this.subscribe((data) => {
|
|
18
|
+
this.data = data;
|
|
19
|
+
});
|
|
20
|
+
this.getData();
|
|
21
|
+
}
|
|
22
|
+
subscribe(callback) {
|
|
23
|
+
return this.subject.subscribe(callback);
|
|
24
|
+
}
|
|
25
|
+
async getData(callback) {
|
|
26
|
+
if (this.sending)
|
|
27
|
+
return;
|
|
28
|
+
if (this.asyncGetData) {
|
|
29
|
+
this.sending = true;
|
|
30
|
+
try {
|
|
31
|
+
const res = await this.asyncGetData();
|
|
32
|
+
this.subject.next(res);
|
|
33
|
+
callback && callback();
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error(e);
|
|
36
|
+
}
|
|
37
|
+
this.sending = false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
resetData() {
|
|
41
|
+
this.subject.next(void 0);
|
|
42
|
+
}
|
|
43
|
+
refreshData(callback) {
|
|
44
|
+
this.getData(callback);
|
|
45
|
+
}
|
|
46
|
+
current() {
|
|
47
|
+
return this.data;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function lazyHolderSingletonGetter(supplier) {
|
|
51
|
+
let instance;
|
|
52
|
+
return () => {
|
|
53
|
+
if (!instance) {
|
|
54
|
+
instance = supplier();
|
|
55
|
+
}
|
|
56
|
+
return instance;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
SubjectHolder,
|
|
61
|
+
lazyHolderSingletonGetter
|
|
62
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.mx-alert[data-v-3f2a0ebe] {
|
|
2
|
+
padding: 9px 16px;
|
|
3
|
+
border: 1px solid rgba(74, 144, 226, 0.5);
|
|
4
|
+
}
|
|
5
|
+
.mx-alert .el-alert__icon[data-v-3f2a0ebe] {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
}
|
|
8
|
+
.mx-alert[data-v-3f2a0ebe] .el-alert__content {
|
|
9
|
+
line-height: 22px;
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
.mx-alert[data-v-3f2a0ebe] .el-alert__content .el-alert__title {
|
|
13
|
+
--el-alert-title-font-size: 14px;
|
|
14
|
+
line-height: 22px;
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
.mx-alert[data-v-3f2a0ebe] .el-alert__content .el-icon {
|
|
18
|
+
margin-right: 8px;
|
|
19
|
+
height: 22px;
|
|
20
|
+
}
|
|
21
|
+
.mx-alert[data-v-3f2a0ebe] .el-alert__content .el-alert__description {
|
|
22
|
+
margin-left: 24px;
|
|
23
|
+
}
|
|
24
|
+
.mx-alert[data-v-3f2a0ebe] .el-alert__close-btn {
|
|
25
|
+
--el-alert-close-font-size: 12px;
|
|
26
|
+
top: 14px;
|
|
27
|
+
right: 16px;
|
|
28
|
+
}
|
|
29
|
+
.mx-alert.el-alert--success[data-v-3f2a0ebe] {
|
|
30
|
+
--el-color-success: #52c41a;
|
|
31
|
+
--el-alert-bg-color: rgba(82, 196, 26, 0.1);
|
|
32
|
+
border-color: rgba(82, 196, 26, 0.5);
|
|
33
|
+
}
|
|
34
|
+
.mx-alert.el-alert--error[data-v-3f2a0ebe] {
|
|
35
|
+
--el-color-error: #e64242;
|
|
36
|
+
--el-alert-bg-color: rgba(230, 66, 66, 0.1);
|
|
37
|
+
border-color: rgba(230, 66, 66, 0.5);
|
|
38
|
+
}
|
|
39
|
+
.mx-alert.el-alert--info[data-v-3f2a0ebe] {
|
|
40
|
+
--el-color-info: #4a90e2;
|
|
41
|
+
--el-alert-bg-color: rgba(74, 144, 226, 0.1);
|
|
42
|
+
}
|
|
43
|
+
.mx-alert.el-alert--warning[data-v-3f2a0ebe] {
|
|
44
|
+
--el-color-info: #faad14;
|
|
45
|
+
--el-alert-bg-color: rgba(250, 173, 20, 0.1);
|
|
46
|
+
border-color: rgba(250, 173, 20, 0.5);
|
|
47
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const TypeComponentsMap: {
|
|
2
|
+
success: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
3
|
+
warning: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
|
+
error: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
info: import("vue").Raw<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const keysOf: <T extends object>(object: T) => string[];
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
9
|
+
type: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
values: string[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
showIcon: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
23
|
+
closable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
24
|
+
closeText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
25
|
+
center: BooleanConstructor;
|
|
26
|
+
effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "light" | "dark", unknown, "light", boolean>;
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
type: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
values: string[];
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
title: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
showIcon: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
42
|
+
closable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
43
|
+
closeText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
44
|
+
center: BooleanConstructor;
|
|
45
|
+
effect: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "light" | "dark", unknown, "light", boolean>;
|
|
46
|
+
}>>, {
|
|
47
|
+
title: string;
|
|
48
|
+
type: string;
|
|
49
|
+
showIcon: boolean;
|
|
50
|
+
description: string;
|
|
51
|
+
closable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
52
|
+
closeText: string;
|
|
53
|
+
center: boolean;
|
|
54
|
+
effect: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "light" | "dark", unknown>;
|
|
55
|
+
}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>> & {
|
|
56
|
+
title?(_: {}): any;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { markRaw, defineComponent, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, resolveDynamicComponent, createCommentVNode, renderSlot, createTextVNode, toDisplayString, renderList } from "vue";
|
|
2
|
+
import { SuccessFilled, WarningFilled, CircleCloseFilled } from "@element-plus/icons-vue";
|
|
3
|
+
import { alertProps } from "element-plus";
|
|
4
|
+
import InfoSvg from "../../assets/svg/InfoSvg.vue";
|
|
5
|
+
const TypeComponentsMap = {
|
|
6
|
+
success: SuccessFilled,
|
|
7
|
+
warning: WarningFilled,
|
|
8
|
+
error: CircleCloseFilled,
|
|
9
|
+
info: markRaw(InfoSvg)
|
|
10
|
+
};
|
|
11
|
+
const keysOf = (object) => Object.keys(object);
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "MxAlert",
|
|
14
|
+
props: {
|
|
15
|
+
...alertProps,
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
values: keysOf(TypeComponentsMap),
|
|
19
|
+
default: "info"
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
showIcon: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const iconComponent = computed(() => TypeComponentsMap[props.type]);
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
35
|
+
const _component_ElAlert = resolveComponent("ElAlert");
|
|
36
|
+
return openBlock(), createBlock(_component_ElAlert, mergeProps(props, {
|
|
37
|
+
class: "mx-alert",
|
|
38
|
+
closable: false,
|
|
39
|
+
"show-icon": false
|
|
40
|
+
}), createSlots({
|
|
41
|
+
title: withCtx(() => [
|
|
42
|
+
__props.showIcon && iconComponent.value ? (openBlock(), createBlock(_component_el_icon, {
|
|
43
|
+
key: 0,
|
|
44
|
+
size: 16
|
|
45
|
+
}, {
|
|
46
|
+
default: withCtx(() => [
|
|
47
|
+
(openBlock(), createBlock(resolveDynamicComponent(iconComponent.value)))
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})) : createCommentVNode("", true),
|
|
51
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
52
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
53
|
+
], true)
|
|
54
|
+
]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, [
|
|
57
|
+
renderList(_ctx.$slots, (item, key, index) => {
|
|
58
|
+
return {
|
|
59
|
+
name: key,
|
|
60
|
+
fn: withCtx(() => [
|
|
61
|
+
renderSlot(_ctx.$slots, key, {}, void 0, true)
|
|
62
|
+
])
|
|
63
|
+
};
|
|
64
|
+
})
|
|
65
|
+
]), 1040);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const MxAlert_vue_vue_type_style_index_0_scoped_3f2a0ebe_lang = "";
|
|
70
|
+
const _export_sfc = (sfc, props) => {
|
|
71
|
+
const target = sfc.__vccOpts || sfc;
|
|
72
|
+
for (const [key, val] of props) {
|
|
73
|
+
target[key] = val;
|
|
74
|
+
}
|
|
75
|
+
return target;
|
|
76
|
+
};
|
|
77
|
+
const MxAlert = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f2a0ebe"]]);
|
|
78
|
+
export {
|
|
79
|
+
TypeComponentsMap,
|
|
80
|
+
MxAlert as default,
|
|
81
|
+
keysOf
|
|
82
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.not-authorized[data-v-0e210937] {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
color: white;
|
|
9
|
+
}
|
|
10
|
+
.not-authorized .img[data-v-0e210937] {
|
|
11
|
+
width: 80px;
|
|
12
|
+
height: 80px;
|
|
13
|
+
margin-bottom: 16px;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
error?(_: {}): any;
|
|
4
|
+
}>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, renderSlot, openBlock, createElementBlock, Fragment, createElementVNode, unref, createCommentVNode, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import { useIntegratedAuthorityList } from "../../utils/hooks";
|
|
4
|
+
import notAuthorizedImg from "../../assets/images/notAuthorized.png";
|
|
5
|
+
const _withScopeId = (n) => (pushScopeId("data-v-0e210937"), n = n(), popScopeId(), n);
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "not-authorized"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = ["src"];
|
|
11
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "您没有本页面的操作权限,请联系系统管理员,为您开通对应权限。", -1));
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "AuthorizedPermission",
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const route = useRoute();
|
|
16
|
+
const authorityList = ref([]);
|
|
17
|
+
useIntegratedAuthorityList((val) => {
|
|
18
|
+
authorityList.value = val || [];
|
|
19
|
+
});
|
|
20
|
+
const hasPermission = computed(() => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.permission))
|
|
23
|
+
return false;
|
|
24
|
+
return authorityList.value.includes((_b = route == null ? void 0 : route.meta) == null ? void 0 : _b.permission);
|
|
25
|
+
});
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return hasPermission.value ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
28
|
+
renderSlot(_ctx.$slots, "error", {}, void 0, true),
|
|
29
|
+
!_ctx.$slots.error ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
|
+
createElementVNode("img", {
|
|
31
|
+
src: unref(notAuthorizedImg),
|
|
32
|
+
class: "img"
|
|
33
|
+
}, null, 8, _hoisted_2),
|
|
34
|
+
_hoisted_3
|
|
35
|
+
])) : createCommentVNode("", true)
|
|
36
|
+
], 64));
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const AuthorizedPermission_vue_vue_type_style_index_0_scoped_0e210937_lang = "";
|
|
41
|
+
const _export_sfc = (sfc, props) => {
|
|
42
|
+
const target = sfc.__vccOpts || sfc;
|
|
43
|
+
for (const [key, val] of props) {
|
|
44
|
+
target[key] = val;
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
};
|
|
48
|
+
const AuthorizedPermission = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0e210937"]]);
|
|
49
|
+
export {
|
|
50
|
+
AuthorizedPermission as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AuthorizedPermission from "./AuthorizedPermission.vue";
|
|
2
|
+
import { default as default2 } from "./AuthorizedPermission.vue";
|
|
3
|
+
AuthorizedPermission.install = (app) => {
|
|
4
|
+
app.component(AuthorizedPermission.__name, AuthorizedPermission);
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
default2 as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.maxtropy-basic-layout {
|
|
2
|
+
min-width: 1366px;
|
|
3
|
+
min-height: 768px;
|
|
4
|
+
}
|
|
5
|
+
.maxtropy-basic-layout .header-wrapper {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 50px;
|
|
8
|
+
display: flex;
|
|
9
|
+
padding: 0 10px 0 5px;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
background-color: #1b1b1b;
|
|
13
|
+
border-bottom: 2px solid rgba(0, 0, 0, 0);
|
|
14
|
+
border-image: linear-gradient(to left, transparent, #0277bd 45%, #2cc4f9, #0277bd 55%, transparent);
|
|
15
|
+
border-image-slice: 1;
|
|
16
|
+
}
|
|
17
|
+
.maxtropy-basic-layout .divider {
|
|
18
|
+
border-left: 1px solid rgba(255, 255, 255, 0.12);
|
|
19
|
+
}
|
|
20
|
+
.maxtropy-basic-layout .header-left {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
.maxtropy-basic-layout .middle {
|
|
25
|
+
flex: 1 1;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
}
|
|
28
|
+
.maxtropy-basic-layout .header-right {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 3px;
|
|
32
|
+
}
|
|
33
|
+
.maxtropy-basic-layout .content-wrapper {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
height: calc(100vh - 50px);
|
|
37
|
+
}
|
|
38
|
+
.maxtropy-basic-layout .page-content {
|
|
39
|
+
width: 100%;
|
|
40
|
+
padding: 8px 13px;
|
|
41
|
+
position: relative;
|
|
42
|
+
background-color: #29292c;
|
|
43
|
+
overflow-y: auto;
|
|
44
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Router } from 'vue-router';
|
|
2
|
+
import { MenuItem } from '../../common/entity';
|
|
3
|
+
interface Props {
|
|
4
|
+
customClass?: string;
|
|
5
|
+
devMenu?: MenuItem;
|
|
6
|
+
router: Router;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
customClass: string;
|
|
10
|
+
devMenu: undefined;
|
|
11
|
+
router: () => Router;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
customClass: string;
|
|
14
|
+
devMenu: undefined;
|
|
15
|
+
router: () => Router;
|
|
16
|
+
}>>>, {
|
|
17
|
+
customClass: string;
|
|
18
|
+
devMenu: MenuItem;
|
|
19
|
+
router: Router;
|
|
20
|
+
}, {}>, {
|
|
21
|
+
"router-view"?(_: {}): any;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|