@maxtropy/v-components 0.1.12-beta.1 → 0.1.12-beta.11
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 +4518 -4650
- package/dist/mx-vcomponents.umd.js +60 -0
- package/dist/style.css +1 -1
- 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/dist/types/utils/micro.d.ts +3 -0
- 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 +310 -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 +309 -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 -11
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import { getStaffList } from "../api/staff";
|
|
3
|
+
import { getIntegratedAuthority, getTenantMenuList } from "../api/tenant";
|
|
4
|
+
import { getCurrent, getConfig, logout } from "../api/user";
|
|
5
|
+
import { PlatformTitleType } from "../common/entity";
|
|
6
|
+
import { lazyHolderSingletonGetter, SubjectHolder } from "../common/subject";
|
|
7
|
+
const getTenantCurrent = /* @__PURE__ */ lazyHolderSingletonGetter(() => new SubjectHolder(getCurrent));
|
|
8
|
+
function refreshCurrrent(callback) {
|
|
9
|
+
getTenantCurrent().refreshData(callback);
|
|
10
|
+
}
|
|
11
|
+
const getSystemConfig = /* @__PURE__ */ lazyHolderSingletonGetter(() => new SubjectHolder(getConfig));
|
|
12
|
+
function useCurrent(callback) {
|
|
13
|
+
const currentInstance = getTenantCurrent();
|
|
14
|
+
const currentConfig = getSystemConfig();
|
|
15
|
+
currentInstance.subscribe((current) => {
|
|
16
|
+
currentConfig.subscribe((config) => {
|
|
17
|
+
const selectStaffOrigin = config == null ? void 0 : config.customerUrl;
|
|
18
|
+
if (current && !(current == null ? void 0 : current.currentStaffId) && selectStaffOrigin) {
|
|
19
|
+
window.location.assign(
|
|
20
|
+
`${selectStaffOrigin}/select-staff?redirect=` + encodeURIComponent(window.location.href)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
callback == null ? void 0 : callback(current, config);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function useStaffList(callback) {
|
|
28
|
+
const currentInstance = getTenantCurrent();
|
|
29
|
+
currentInstance.subscribe((current) => {
|
|
30
|
+
const getList = () => {
|
|
31
|
+
if (current == null ? void 0 : current.currentStaffId) {
|
|
32
|
+
getStaffList().then((res) => {
|
|
33
|
+
callback == null ? void 0 : callback(res);
|
|
34
|
+
loop();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const loop = () => {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
getList();
|
|
41
|
+
}, 5 * 60 * 1e3);
|
|
42
|
+
};
|
|
43
|
+
getList();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const getMenuCurrent = /* @__PURE__ */ lazyHolderSingletonGetter(() => new SubjectHolder(getTenantMenuList));
|
|
47
|
+
function useMenuList(callback) {
|
|
48
|
+
const currentInstance = getMenuCurrent();
|
|
49
|
+
currentInstance.subscribe((list) => {
|
|
50
|
+
callback == null ? void 0 : callback(list ?? []);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function useLogout() {
|
|
54
|
+
logout().then(() => {
|
|
55
|
+
document.cookie = "isvAppToken=;expires=Thu,01 Jan 1970 00:00:00 UTC;path=/;";
|
|
56
|
+
const url = new URL(window.location.href);
|
|
57
|
+
url.searchParams.delete("isvAppToken");
|
|
58
|
+
window.location.assign("/server/landing?to=" + encodeURIComponent(url.toString()));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
const getIntegratedAuthorityCurrent = lazyHolderSingletonGetter(() => new SubjectHolder(getIntegratedAuthority));
|
|
62
|
+
function useIntegratedAuthorityList(callback) {
|
|
63
|
+
const currentInstance = getIntegratedAuthorityCurrent();
|
|
64
|
+
currentInstance.subscribe((list) => {
|
|
65
|
+
callback == null ? void 0 : callback(list);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function usePermission(key) {
|
|
69
|
+
const hasPermission = ref(false);
|
|
70
|
+
useIntegratedAuthorityList((list) => {
|
|
71
|
+
if (list == null ? void 0 : list.includes(key)) {
|
|
72
|
+
hasPermission.value = true;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return hasPermission;
|
|
76
|
+
}
|
|
77
|
+
function useStaffTitle(navName) {
|
|
78
|
+
const currentInstance = getTenantCurrent();
|
|
79
|
+
currentInstance.subscribe((current) => {
|
|
80
|
+
const platformTitleType = current == null ? void 0 : current.platformTitleType;
|
|
81
|
+
const platformName = (current == null ? void 0 : current.platformName) ?? "Maxtropy";
|
|
82
|
+
const navTitle = navName ?? "Maxtropy";
|
|
83
|
+
if (platformTitleType === PlatformTitleType.PLATFORMNAME) {
|
|
84
|
+
document.title = platformName;
|
|
85
|
+
} else if (platformTitleType === PlatformTitleType.NAVIGATIONNAME) {
|
|
86
|
+
document.title = navTitle;
|
|
87
|
+
} else if (platformTitleType === PlatformTitleType.PLATFORMANDNAVIGATIONNAME) {
|
|
88
|
+
document.title = `${platformName}-${navTitle}`;
|
|
89
|
+
}
|
|
90
|
+
if (current == null ? void 0 : current.iconUrl) {
|
|
91
|
+
const iconUrl = `/api/fileStream?key=${current.iconUrl}`;
|
|
92
|
+
const currentLink = document.querySelector("link[rel*='icon']");
|
|
93
|
+
if (!currentLink) {
|
|
94
|
+
const link = document.createElement("link");
|
|
95
|
+
link.setAttribute("rel", "shortcut icon");
|
|
96
|
+
link.setAttribute("href", iconUrl);
|
|
97
|
+
document.head.appendChild(link);
|
|
98
|
+
} else {
|
|
99
|
+
currentLink.setAttribute("href", iconUrl);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const hooks = {
|
|
105
|
+
useCurrent,
|
|
106
|
+
useStaffList,
|
|
107
|
+
useMenuList,
|
|
108
|
+
useLogout,
|
|
109
|
+
useIntegratedAuthorityList,
|
|
110
|
+
useStaffTitle
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
hooks as default,
|
|
114
|
+
getIntegratedAuthorityCurrent,
|
|
115
|
+
getMenuCurrent,
|
|
116
|
+
getSystemConfig,
|
|
117
|
+
getTenantCurrent,
|
|
118
|
+
refreshCurrrent,
|
|
119
|
+
useCurrent,
|
|
120
|
+
useIntegratedAuthorityList,
|
|
121
|
+
useLogout,
|
|
122
|
+
useMenuList,
|
|
123
|
+
usePermission,
|
|
124
|
+
useStaffList,
|
|
125
|
+
useStaffTitle
|
|
126
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuItem, MenuItemProps } from '../common/entity';
|
|
2
|
+
export declare const uniqueSearchKey = "_key_";
|
|
3
|
+
export declare function getMenuMap(list: MenuItemProps[]): Record<string, MenuItem>;
|
|
4
|
+
export declare function inserDataOfWeight(list: MenuItem[], data: MenuItem): void;
|
|
5
|
+
export declare function getThirdLevelPathToNodeMap(list?: MenuItemProps[]): Record<string, MenuItemProps>;
|
|
6
|
+
export declare function list2Tree(list: MenuItemProps[], parentId?: string): MenuItem[];
|
|
7
|
+
export declare function filterSearchWithKey(search: string, key: string): string;
|
|
8
|
+
export declare function getUrlSearch(path: string): string;
|
|
9
|
+
export declare function getSearchValueByKey(path: string, searchKey: string): string;
|
package/es/utils/lib.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { cloneDeep } from "lodash-es";
|
|
2
|
+
import { MenuLevel } from "../common/const";
|
|
3
|
+
const uniqueSearchKey = "_key_";
|
|
4
|
+
function getMenuMap(list) {
|
|
5
|
+
const map = {};
|
|
6
|
+
for (let i = 0; i < list.length; i += 1) {
|
|
7
|
+
const node = list[i];
|
|
8
|
+
map[node.currentId] = node;
|
|
9
|
+
node.children = [];
|
|
10
|
+
}
|
|
11
|
+
return map;
|
|
12
|
+
}
|
|
13
|
+
function inserDataOfWeight(list, data) {
|
|
14
|
+
const index = list.findIndex((i) => i.weighting < data.weighting);
|
|
15
|
+
if (index !== -1) {
|
|
16
|
+
list.splice(index, 0, data);
|
|
17
|
+
} else {
|
|
18
|
+
list.push(data);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function getThirdLevelPathToNodeMap(list = []) {
|
|
22
|
+
const cloneList = cloneDeep(list);
|
|
23
|
+
const map = {};
|
|
24
|
+
for (let i = 0; i < cloneList.length; i += 1) {
|
|
25
|
+
const node = cloneList[i];
|
|
26
|
+
if (node.level === MenuLevel.THREE) {
|
|
27
|
+
const path = node.transitPagePath ?? "";
|
|
28
|
+
const hasOrigin = /^http/.test(path);
|
|
29
|
+
let pathname = "";
|
|
30
|
+
if (!hasOrigin) {
|
|
31
|
+
pathname = path.split("/").slice(0, 4).join("/");
|
|
32
|
+
} else {
|
|
33
|
+
const url = new URL(path);
|
|
34
|
+
if (url.hash) {
|
|
35
|
+
const hash = url.hash.replace("#", "");
|
|
36
|
+
pathname = hash.split("/").slice(0, 4).join("/");
|
|
37
|
+
const searchStartPos = hash.indexOf("?");
|
|
38
|
+
if (searchStartPos != -1)
|
|
39
|
+
pathname += filterSearchWithKey(hash.substring(searchStartPos), uniqueSearchKey);
|
|
40
|
+
} else {
|
|
41
|
+
pathname = url.pathname.split("/").slice(0, 4).join("/");
|
|
42
|
+
pathname += filterSearchWithKey(url.search, uniqueSearchKey);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (pathname !== "") {
|
|
46
|
+
map[`${pathname}`] = node;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return map;
|
|
51
|
+
}
|
|
52
|
+
function list2Tree(list, parentId = "0") {
|
|
53
|
+
const cloneList = cloneDeep(list);
|
|
54
|
+
return cloneList.filter((item) => item.parentId === parentId).sort((a, b) => {
|
|
55
|
+
if (a.weighting !== b.weighting) {
|
|
56
|
+
return b.weighting - a.weighting;
|
|
57
|
+
}
|
|
58
|
+
return a.name.localeCompare(b.name, "zh-CN");
|
|
59
|
+
}).map((item) => ({
|
|
60
|
+
...item,
|
|
61
|
+
children: list2Tree(cloneList, item.currentId)
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
function filterSearchWithKey(search, key) {
|
|
65
|
+
const searchMap = new URLSearchParams(search);
|
|
66
|
+
const value = searchMap.get(key);
|
|
67
|
+
return value ? `?${key}=${value}` : "";
|
|
68
|
+
}
|
|
69
|
+
function getUrlSearch(path) {
|
|
70
|
+
const hasOrigin = /^http/.test(path);
|
|
71
|
+
if (!hasOrigin) {
|
|
72
|
+
const searchStartPos = path.indexOf("?");
|
|
73
|
+
if (searchStartPos != -1)
|
|
74
|
+
return path.substring(searchStartPos);
|
|
75
|
+
} else {
|
|
76
|
+
const url = new URL(path);
|
|
77
|
+
if (url.hash) {
|
|
78
|
+
const hash = url.hash.replace("#", "");
|
|
79
|
+
const searchStartPos = hash.indexOf("?");
|
|
80
|
+
if (searchStartPos != -1)
|
|
81
|
+
return hash.substring(searchStartPos);
|
|
82
|
+
} else {
|
|
83
|
+
return url.search;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return "";
|
|
87
|
+
}
|
|
88
|
+
function getSearchValueByKey(path, searchKey) {
|
|
89
|
+
const search = getUrlSearch(path);
|
|
90
|
+
const searchMap = new URLSearchParams(search);
|
|
91
|
+
return searchMap.get(searchKey) ?? "";
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
filterSearchWithKey,
|
|
95
|
+
getMenuMap,
|
|
96
|
+
getSearchValueByKey,
|
|
97
|
+
getThirdLevelPathToNodeMap,
|
|
98
|
+
getUrlSearch,
|
|
99
|
+
inserDataOfWeight,
|
|
100
|
+
list2Tree,
|
|
101
|
+
uniqueSearchKey
|
|
102
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Router } from 'vue-router';
|
|
2
|
+
export declare function getBase(): string;
|
|
3
|
+
export declare function getMicroAppBaseRoute(): string;
|
|
4
|
+
export declare function microAppRewrite(): void;
|
|
5
|
+
export declare function microAppRouterHandle(router: Router): void;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
getBase: typeof getBase;
|
|
8
|
+
getMicroAppBaseRoute: typeof getMicroAppBaseRoute;
|
|
9
|
+
microAppRewrite: typeof microAppRewrite;
|
|
10
|
+
microAppRouterHandle: typeof microAppRouterHandle;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
function getBase() {
|
|
2
|
+
if (window.__MICRO_APP_ENVIRONMENT__)
|
|
3
|
+
return getMicroAppBaseRoute() + "/" + window.__MICRO_APP_NAME__;
|
|
4
|
+
else if (window.__MICRO_APP_BASE_APPLICATION__)
|
|
5
|
+
return window.location.pathname.split("/").slice(0, 3).join("/");
|
|
6
|
+
else
|
|
7
|
+
return "";
|
|
8
|
+
}
|
|
9
|
+
function getMicroAppBaseRoute() {
|
|
10
|
+
if (window.__MICRO_APP_ENVIRONMENT__)
|
|
11
|
+
return window.__MICRO_APP_BASE_ROUTE__ ?? "";
|
|
12
|
+
else if (window.__MICRO_APP_BASE_APPLICATION__)
|
|
13
|
+
return "/" + window.location.pathname.split("/")[1];
|
|
14
|
+
return "";
|
|
15
|
+
}
|
|
16
|
+
function microAppRewrite() {
|
|
17
|
+
var _a;
|
|
18
|
+
window.$location = window.__MICRO_APP_ENVIRONMENT__ ? window.microApp.location : window.location;
|
|
19
|
+
const base = getBase();
|
|
20
|
+
if (!base)
|
|
21
|
+
return;
|
|
22
|
+
const microAppBaseRoute = getMicroAppBaseRoute();
|
|
23
|
+
window.rawFetch = window.fetch;
|
|
24
|
+
window.fetch = (input, init) => {
|
|
25
|
+
var _a2, _b;
|
|
26
|
+
const prefix = base;
|
|
27
|
+
let finalInput = input;
|
|
28
|
+
if (typeof input === "string" && !input.startsWith("http") && !input.startsWith(microAppBaseRoute)) {
|
|
29
|
+
finalInput = prefix + input;
|
|
30
|
+
}
|
|
31
|
+
if (typeof input === "object" && !(input instanceof URL) && !input.url.startsWith("http") && !input.url.startsWith(microAppBaseRoute)) {
|
|
32
|
+
finalInput = { ...input, url: prefix + input.url };
|
|
33
|
+
}
|
|
34
|
+
const cookies = window.document.cookie;
|
|
35
|
+
const cookieArray = cookies.split(";").filter((k) => k.indexOf("GT=GT-") > -1);
|
|
36
|
+
const xGT = (_b = (_a2 = cookieArray == null ? void 0 : cookieArray[0]) == null ? void 0 : _a2.split("=")) == null ? void 0 : _b[1];
|
|
37
|
+
let finalInit = { ...init };
|
|
38
|
+
if (xGT) {
|
|
39
|
+
finalInit = {
|
|
40
|
+
...init,
|
|
41
|
+
headers: {
|
|
42
|
+
"X-GT": xGT,
|
|
43
|
+
...init == null ? void 0 : init.headers
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return window.rawFetch(finalInput, finalInit);
|
|
48
|
+
};
|
|
49
|
+
window.rawXMLHttpRequest = window.XMLHttpRequest;
|
|
50
|
+
window.XMLHttpRequest = class extends window.XMLHttpRequest {
|
|
51
|
+
constructor() {
|
|
52
|
+
super();
|
|
53
|
+
this.open = (method, url, async, user, password) => {
|
|
54
|
+
var _a2, _b;
|
|
55
|
+
const prefix = base;
|
|
56
|
+
if (!url.startsWith("http") && !url.startsWith(microAppBaseRoute)) {
|
|
57
|
+
super.open(method, prefix + url, async ?? true, user, password);
|
|
58
|
+
const cookies = window.document.cookie;
|
|
59
|
+
const cookieArray = cookies.split(";").filter((k) => k.indexOf("GT=GT-") > -1);
|
|
60
|
+
const xGT = (_b = (_a2 = cookieArray == null ? void 0 : cookieArray[0]) == null ? void 0 : _a2.split("=")) == null ? void 0 : _b[1];
|
|
61
|
+
if (xGT) {
|
|
62
|
+
super.setRequestHeader("X-GT", xGT);
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
super.open(method, url, async ?? true, user, password);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
window.rawOpen = window.open;
|
|
71
|
+
window.open = (url, target, features) => {
|
|
72
|
+
if (typeof url === "string" && url.startsWith("/") && !url.startsWith(microAppBaseRoute)) {
|
|
73
|
+
return window.rawWindow.rawOpen(base + url, target, features);
|
|
74
|
+
}
|
|
75
|
+
return window.rawOpen(url, target, features);
|
|
76
|
+
};
|
|
77
|
+
window.addEventListener("click", (e) => {
|
|
78
|
+
if (e.defaultPrevented)
|
|
79
|
+
return;
|
|
80
|
+
const target = e.target;
|
|
81
|
+
const aDom = target.closest("a");
|
|
82
|
+
if (!aDom)
|
|
83
|
+
return;
|
|
84
|
+
const href = aDom.getAttribute("href");
|
|
85
|
+
if (!href)
|
|
86
|
+
return;
|
|
87
|
+
e.preventDefault();
|
|
88
|
+
window.open(href, aDom.getAttribute("target") ?? "_self");
|
|
89
|
+
});
|
|
90
|
+
window.SELECTSTAFFORIGIN = window.location.origin + microAppBaseRoute + `/${"ms-cc"}`;
|
|
91
|
+
window.IOTPLATFORMORIGIN = window.location.origin + microAppBaseRoute + `/${"ms-dc"}`;
|
|
92
|
+
window.DMEPLATFORMSORIGIN = window.location.origin + microAppBaseRoute + `/${"ms-ds"}`;
|
|
93
|
+
window.IDSPLATFORMORIGIN = window.location.origin + microAppBaseRoute + `/${"ms-ids"}`;
|
|
94
|
+
(_a = window.SERVERALARM) == null ? void 0 : _a.forEach((item) => {
|
|
95
|
+
if (item.originId === 1)
|
|
96
|
+
item.origin = window.SELECTSTAFFORIGIN;
|
|
97
|
+
else if (item.originId === 2)
|
|
98
|
+
item.origin = window.IOTPLATFORMORIGIN;
|
|
99
|
+
else if (item.originId === 3)
|
|
100
|
+
item.origin = window.DMEPLATFORMSORIGIN;
|
|
101
|
+
else if (item.originId === 4)
|
|
102
|
+
item.origin = window.IDSPLATFORMORIGIN;
|
|
103
|
+
});
|
|
104
|
+
window.RAW_ALARMWORKORDER = window.ALARMWORKORDER;
|
|
105
|
+
window.ALARMWORKORDER = window.location.origin + microAppBaseRoute + `/${"ms-wo"}`;
|
|
106
|
+
}
|
|
107
|
+
function microAppRouterHandle(router) {
|
|
108
|
+
if (!window.__MICRO_APP_ENVIRONMENT__)
|
|
109
|
+
return;
|
|
110
|
+
router.afterEach((to, from) => {
|
|
111
|
+
if (to.fullPath !== from.fullPath) {
|
|
112
|
+
window.rawWindow.dispatchEvent(new PopStateEvent("popstate", { state: null }));
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
const micro = {
|
|
117
|
+
getBase,
|
|
118
|
+
getMicroAppBaseRoute,
|
|
119
|
+
microAppRewrite,
|
|
120
|
+
microAppRouterHandle
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
micro as default,
|
|
124
|
+
getBase,
|
|
125
|
+
getMicroAppBaseRoute,
|
|
126
|
+
microAppRewrite,
|
|
127
|
+
microAppRouterHandle
|
|
128
|
+
};
|
package/lib/api/staff.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const request = require("../common/request");
|
|
4
|
+
function getStaffList() {
|
|
5
|
+
return request.fetch(`/api/getStaffList`);
|
|
6
|
+
}
|
|
7
|
+
function switchStaff(id) {
|
|
8
|
+
return request.fetch(`/api/staffSwitch?staffId=${id}`);
|
|
9
|
+
}
|
|
10
|
+
exports.getStaffList = getStaffList;
|
|
11
|
+
exports.switchStaff = switchStaff;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MenuItemProps } from '../common/entity';
|
|
2
|
+
export declare function combineURL(origin: string, relativeURL?: string): string;
|
|
3
|
+
export declare function getTenantMenuList(): import("../common/request").PromiseWithErrorHandler<MenuItemProps[]>;
|
|
4
|
+
export declare function getIntegratedAuthority(): import("../common/request").PromiseWithErrorHandler<string[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const request = require("../common/request");
|
|
4
|
+
function combineURL(origin, relativeURL) {
|
|
5
|
+
return relativeURL ? (origin ?? "").replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : origin;
|
|
6
|
+
}
|
|
7
|
+
function getTenantMenuList() {
|
|
8
|
+
return request.fetch("/api/getStaffNavigation");
|
|
9
|
+
}
|
|
10
|
+
function getIntegratedAuthority() {
|
|
11
|
+
return request.fetch("/api/getIntegratedAuthority");
|
|
12
|
+
}
|
|
13
|
+
exports.combineURL = combineURL;
|
|
14
|
+
exports.getIntegratedAuthority = getIntegratedAuthority;
|
|
15
|
+
exports.getTenantMenuList = getTenantMenuList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PlatformTitleType } from '../common/entity';
|
|
2
|
+
export interface UserInfo {
|
|
3
|
+
name?: string;
|
|
4
|
+
headPic?: string;
|
|
5
|
+
currentStaffId?: number;
|
|
6
|
+
username?: string;
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
tenantUuid?: string;
|
|
9
|
+
userId?: string;
|
|
10
|
+
logoUrl?: string;
|
|
11
|
+
navigationPreference?: number;
|
|
12
|
+
navigationId?: number | null;
|
|
13
|
+
currentId?: number | null;
|
|
14
|
+
iconUrl?: string;
|
|
15
|
+
platformTitleType?: PlatformTitleType;
|
|
16
|
+
platformName?: string;
|
|
17
|
+
platformSloganName?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function getCurrent(): Promise<UserInfo>;
|
|
20
|
+
export interface UserConfig {
|
|
21
|
+
customerUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function getConfig(): Promise<UserConfig | null>;
|
|
24
|
+
export declare function logout(): Promise<void>;
|
package/lib/api/user.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const request = require("../common/request");
|
|
4
|
+
function getCurrent() {
|
|
5
|
+
return request.fetch("/api/getUserInfo");
|
|
6
|
+
}
|
|
7
|
+
function getConfig() {
|
|
8
|
+
return request.fetch("/api/getConfig").then((res) => {
|
|
9
|
+
return res;
|
|
10
|
+
}).catch(() => {
|
|
11
|
+
console.error("获取后端配置customerUrl失败,请检查");
|
|
12
|
+
return null;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function logout() {
|
|
16
|
+
return request.fetch("/server/logout");
|
|
17
|
+
}
|
|
18
|
+
exports.getConfig = getConfig;
|
|
19
|
+
exports.getCurrent = getCurrent;
|
|
20
|
+
exports.logout = logout;
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _export_sfc = (sfc, props) => {
|
|
4
|
+
const target = sfc.__vccOpts || sfc;
|
|
5
|
+
for (const [key, val] of props) {
|
|
6
|
+
target[key] = val;
|
|
7
|
+
}
|
|
8
|
+
return target;
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = {};
|
|
11
|
+
const _hoisted_1 = {
|
|
12
|
+
viewBox: "64 64 896 896",
|
|
13
|
+
focusable: "false",
|
|
14
|
+
"data-icon": "container",
|
|
15
|
+
width: "1em",
|
|
16
|
+
height: "1em",
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" }, null, -1);
|
|
21
|
+
const _hoisted_3 = [
|
|
22
|
+
_hoisted_2
|
|
23
|
+
];
|
|
24
|
+
function _sfc_render(_ctx, _cache) {
|
|
25
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
26
|
+
}
|
|
27
|
+
const ContainerSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
28
|
+
module.exports = ContainerSvg;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _export_sfc = (sfc, props) => {
|
|
4
|
+
const target = sfc.__vccOpts || sfc;
|
|
5
|
+
for (const [key, val] of props) {
|
|
6
|
+
target[key] = val;
|
|
7
|
+
}
|
|
8
|
+
return target;
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = {};
|
|
11
|
+
const _hoisted_1 = {
|
|
12
|
+
viewBox: "64 64 896 896",
|
|
13
|
+
focusable: "false",
|
|
14
|
+
"data-icon": "info-circle",
|
|
15
|
+
width: "1em",
|
|
16
|
+
height: "1em",
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }, null, -1);
|
|
21
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" }, null, -1);
|
|
22
|
+
const _hoisted_4 = [
|
|
23
|
+
_hoisted_2,
|
|
24
|
+
_hoisted_3
|
|
25
|
+
];
|
|
26
|
+
function _sfc_render(_ctx, _cache) {
|
|
27
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_4);
|
|
28
|
+
}
|
|
29
|
+
const InfoCircleSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
30
|
+
module.exports = InfoCircleSvg;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _export_sfc = (sfc, props) => {
|
|
4
|
+
const target = sfc.__vccOpts || sfc;
|
|
5
|
+
for (const [key, val] of props) {
|
|
6
|
+
target[key] = val;
|
|
7
|
+
}
|
|
8
|
+
return target;
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = {};
|
|
11
|
+
const _hoisted_1 = {
|
|
12
|
+
viewBox: "64 64 896 896",
|
|
13
|
+
focusable: "false",
|
|
14
|
+
"data-icon": "info-circle",
|
|
15
|
+
width: "1em",
|
|
16
|
+
height: "1em",
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
"aria-hidden": "true",
|
|
19
|
+
color: "#4A90E2"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }, null, -1);
|
|
22
|
+
const _hoisted_3 = [
|
|
23
|
+
_hoisted_2
|
|
24
|
+
];
|
|
25
|
+
function _sfc_render(_ctx, _cache) {
|
|
26
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
27
|
+
}
|
|
28
|
+
const InfoSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
29
|
+
module.exports = InfoSvg;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _export_sfc = (sfc, props) => {
|
|
4
|
+
const target = sfc.__vccOpts || sfc;
|
|
5
|
+
for (const [key, val] of props) {
|
|
6
|
+
target[key] = val;
|
|
7
|
+
}
|
|
8
|
+
return target;
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = {};
|
|
11
|
+
const _hoisted_1 = {
|
|
12
|
+
viewBox: "64 64 896 896",
|
|
13
|
+
focusable: "false",
|
|
14
|
+
"data-icon": "upload",
|
|
15
|
+
width: "1em",
|
|
16
|
+
height: "1em",
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" }, null, -1);
|
|
21
|
+
const _hoisted_3 = [
|
|
22
|
+
_hoisted_2
|
|
23
|
+
];
|
|
24
|
+
function _sfc_render(_ctx, _cache) {
|
|
25
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
26
|
+
}
|
|
27
|
+
const UploadSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
28
|
+
module.exports = UploadSvg;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum UserStatus {
|
|
2
|
+
ENABLE = 0,
|
|
3
|
+
DISABLE = 1,
|
|
4
|
+
FREEZE = 2
|
|
5
|
+
}
|
|
6
|
+
export declare enum Gender {
|
|
7
|
+
MALE = 0,
|
|
8
|
+
FEMALE = 1
|
|
9
|
+
}
|
|
10
|
+
export declare enum PermissionType {
|
|
11
|
+
MENU = "p",
|
|
12
|
+
BUTTON = "b"
|
|
13
|
+
}
|
|
14
|
+
export declare enum MenuLevel {
|
|
15
|
+
ONE = 1,
|
|
16
|
+
TWO = 2,
|
|
17
|
+
THREE = 3
|
|
18
|
+
}
|
|
19
|
+
export declare enum MenuOpenType {
|
|
20
|
+
CurrentPage = 0,
|
|
21
|
+
NewPage = 1,
|
|
22
|
+
CurrentPageForce = 2
|
|
23
|
+
}
|
|
24
|
+
export declare enum TenantMenuJumpType {
|
|
25
|
+
WITHINSYSTEM = 1,
|
|
26
|
+
CUSTOMIZATIONWITHINSYSTEM = 2,
|
|
27
|
+
OUTSIDESYSTEM = 3
|
|
28
|
+
}
|
|
29
|
+
export declare enum TenantMenuPermissionType {
|
|
30
|
+
PLATFORM = 1,
|
|
31
|
+
INTEGRATEDAPP = 2,
|
|
32
|
+
NOPERMISSION = 3
|
|
33
|
+
}
|
|
34
|
+
export declare const envMap: Record<string, string>;
|