@maxtropy/v-components 0.1.12-beta.11 → 0.1.12-beta.12
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/package.json +11 -8
- package/dist/mx-vcomponents.umd.js +0 -60
- package/es/api/staff.d.ts +0 -3
- package/es/api/staff.js +0 -11
- package/es/api/tenant.d.ts +0 -4
- package/es/api/tenant.js +0 -15
- package/es/api/user.d.ts +0 -24
- package/es/api/user.js +0 -20
- package/es/assets/images/notAuthorized.png +0 -0
- package/es/assets/images/tableNoData.png +0 -0
- package/es/assets/svg/ContainerSvg.vue.d.ts +0 -2
- package/es/assets/svg/ContainerSvg.vue.js +0 -29
- package/es/assets/svg/InfoCircleSvg.vue.d.ts +0 -2
- package/es/assets/svg/InfoCircleSvg.vue.js +0 -31
- package/es/assets/svg/InfoSvg.vue.d.ts +0 -2
- package/es/assets/svg/InfoSvg.vue.js +0 -30
- package/es/assets/svg/UploadSvg.vue.d.ts +0 -2
- package/es/assets/svg/UploadSvg.vue.js +0 -29
- package/es/common/const.d.ts +0 -34
- package/es/common/const.js +0 -55
- package/es/common/entity.d.ts +0 -118
- package/es/common/entity.js +0 -32
- package/es/common/fetch.d.ts +0 -13
- package/es/common/fetch.js +0 -95
- package/es/common/request.d.ts +0 -30
- package/es/common/request.js +0 -107
- package/es/common/subject.d.ts +0 -20
- package/es/common/subject.js +0 -62
- package/es/components/alert/MxAlert.css +0 -47
- package/es/components/alert/MxAlert.vue.d.ts +0 -63
- package/es/components/alert/MxAlert.vue.js +0 -82
- package/es/components/alert/index.d.ts +0 -7
- package/es/components/alert/index.js +0 -8
- package/es/components/authorizedpermission/AuthorizedPermission.css +0 -14
- package/es/components/authorizedpermission/AuthorizedPermission.vue.d.ts +0 -10
- package/es/components/authorizedpermission/AuthorizedPermission.vue.js +0 -51
- package/es/components/authorizedpermission/index.d.ts +0 -7
- package/es/components/authorizedpermission/index.js +0 -8
- package/es/components/basiclayout/BasicLayout.css +0 -44
- package/es/components/basiclayout/BasicLayout.vue.d.ts +0 -45
- package/es/components/basiclayout/BasicLayout.vue.js +0 -64
- package/es/components/basiclayout/index.d.ts +0 -7
- package/es/components/basiclayout/index.js +0 -8
- package/es/components/breadcrumb/BreadCrumb.css +0 -20
- package/es/components/breadcrumb/BreadCrumb.vue.d.ts +0 -53
- package/es/components/breadcrumb/BreadCrumb.vue.js +0 -124
- package/es/components/breadcrumb/index.d.ts +0 -7
- package/es/components/breadcrumb/index.js +0 -8
- package/es/components/button/MxButton.css +0 -149
- package/es/components/button/MxButton.vue.d.ts +0 -107
- package/es/components/button/MxButton.vue.js +0 -76
- package/es/components/button/index.d.ts +0 -7
- package/es/components/button/index.js +0 -8
- package/es/components/checkbox/MxCheckbox.css +0 -35
- package/es/components/checkbox/MxCheckbox.vue.d.ts +0 -104
- package/es/components/checkbox/MxCheckbox.vue.js +0 -35
- package/es/components/checkbox/MxCheckboxGroup.vue.d.ts +0 -43
- package/es/components/checkbox/MxCheckboxGroup.vue.js +0 -26
- package/es/components/checkbox/index.d.ts +0 -351
- package/es/components/checkbox/index.js +0 -17
- package/es/components/datePicker/MxDatePicker.css +0 -586
- package/es/components/datePicker/MxDatePicker.vue.d.ts +0 -49
- package/es/components/datePicker/MxDatePicker.vue.js +0 -79
- package/es/components/datePicker/index.d.ts +0 -7
- package/es/components/datePicker/index.js +0 -8
- package/es/components/dialog/MxDialog.css +0 -62
- package/es/components/dialog/MxDialog.vue.d.ts +0 -164
- package/es/components/dialog/MxDialog.vue.js +0 -90
- package/es/components/dialog/index.d.ts +0 -7
- package/es/components/dialog/index.js +0 -8
- package/es/components/dropdown/MxDropdown.css +0 -30
- package/es/components/dropdown/MxDropdown.vue.d.ts +0 -71
- package/es/components/dropdown/MxDropdown.vue.js +0 -97
- package/es/components/dropdown/index.d.ts +0 -7
- package/es/components/dropdown/index.js +0 -8
- package/es/components/ellipsisSpan/MxEllipsisSpan.css +0 -3
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +0 -42
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.js +0 -70
- package/es/components/ellipsisSpan/index.d.ts +0 -7
- package/es/components/ellipsisSpan/index.js +0 -8
- package/es/components/empty/MxEmpty.css +0 -10
- package/es/components/empty/MxEmpty.vue.d.ts +0 -7
- package/es/components/empty/MxEmpty.vue.js +0 -36
- package/es/components/empty/index.d.ts +0 -7
- package/es/components/empty/index.js +0 -8
- package/es/components/empty/no-data.png +0 -0
- package/es/components/form/MxForm.css +0 -26
- package/es/components/form/MxForm.vue.d.ts +0 -123
- package/es/components/form/MxForm.vue.js +0 -99
- package/es/components/form/MxFormItem.css +0 -23
- package/es/components/form/MxFormItem.vue.d.ts +0 -94
- package/es/components/form/MxFormItem.vue.js +0 -63
- package/es/components/form/index.d.ts +0 -242
- package/es/components/form/index.js +0 -12
- package/es/components/headnavigation/HeadNavigation.css +0 -144
- package/es/components/headnavigation/HeadNavigation.vue.d.ts +0 -45
- package/es/components/headnavigation/HeadNavigation.vue.js +0 -201
- package/es/components/headnavigation/MenuBar.css +0 -113
- package/es/components/headnavigation/MenuBar.vue.d.ts +0 -35
- package/es/components/headnavigation/MenuBar.vue.js +0 -31
- package/es/components/headnavigation/index.d.ts +0 -7
- package/es/components/headnavigation/index.js +0 -8
- package/es/components/index.d.ts +0 -38
- package/es/components/index.js +0 -171
- package/es/components/input/MxInput.css +0 -54
- package/es/components/input/MxInput.vue.d.ts +0 -7
- package/es/components/input/MxInput.vue.js +0 -24
- package/es/components/input/index.d.ts +0 -7
- package/es/components/input/index.js +0 -8
- package/es/components/message/index.d.ts +0 -7
- package/es/components/message/index.js +0 -12
- package/es/components/message/message.css +0 -31
- package/es/components/message/message.d.ts +0 -4
- package/es/components/message/message.js +0 -42
- package/es/components/messageBox/index.d.ts +0 -7
- package/es/components/messageBox/index.js +0 -13
- package/es/components/messageBox/message.vue.d.ts +0 -48
- package/es/components/messageBox/message.vue.js +0 -58
- package/es/components/messageBox/messageBox.css +0 -160
- package/es/components/messageBox/messageBox.d.ts +0 -4
- package/es/components/messageBox/messageBox.js +0 -39
- package/es/components/notification/index.d.ts +0 -3
- package/es/components/notification/index.js +0 -7
- package/es/components/notification/notification.css +0 -58
- package/es/components/notification/notification.d.ts +0 -4
- package/es/components/notification/notification.js +0 -28
- package/es/components/pagination/MxPagination.css +0 -110
- package/es/components/pagination/MxPagination.vue.d.ts +0 -38
- package/es/components/pagination/MxPagination.vue.js +0 -53
- package/es/components/pagination/index.d.ts +0 -7
- package/es/components/pagination/index.js +0 -8
- package/es/components/popconfirm/MxPopconfirm.css +0 -26
- package/es/components/popconfirm/MxPopconfirm.vue.d.ts +0 -51
- package/es/components/popconfirm/MxPopconfirm.vue.js +0 -92
- package/es/components/popconfirm/index.d.ts +0 -7
- package/es/components/popconfirm/index.js +0 -8
- package/es/components/radio/MxRadio.css +0 -33
- package/es/components/radio/MxRadio.vue.d.ts +0 -36
- package/es/components/radio/MxRadio.vue.js +0 -35
- package/es/components/radio/MxRadioButton.css +0 -37
- package/es/components/radio/MxRadioButton.vue.d.ts +0 -31
- package/es/components/radio/MxRadioButton.vue.js +0 -33
- package/es/components/radio/MxRadioGroup.vue.d.ts +0 -45
- package/es/components/radio/MxRadioGroup.vue.js +0 -26
- package/es/components/radio/index.d.ts +0 -302
- package/es/components/radio/index.js +0 -16
- package/es/components/select/MxOption.vue.d.ts +0 -7
- package/es/components/select/MxOption.vue.js +0 -26
- package/es/components/select/MxOptionGroup.vue.d.ts +0 -7
- package/es/components/select/MxOptionGroup.vue.js +0 -23
- package/es/components/select/MxSelect.css +0 -91
- package/es/components/select/MxSelect.vue.d.ts +0 -7
- package/es/components/select/MxSelect.vue.js +0 -43
- package/es/components/select/index.d.ts +0 -191
- package/es/components/select/index.js +0 -16
- package/es/components/sidermenu/HambShow.css +0 -65
- package/es/components/sidermenu/HambShow.vue.d.ts +0 -16
- package/es/components/sidermenu/HambShow.vue.js +0 -76
- package/es/components/sidermenu/SiderMenu.css +0 -94
- package/es/components/sidermenu/SiderMenu.vue.d.ts +0 -46
- package/es/components/sidermenu/SiderMenu.vue.js +0 -246
- package/es/components/sidermenu/index.d.ts +0 -7
- package/es/components/sidermenu/index.js +0 -8
- package/es/components/slider/MxSlider.css +0 -54
- package/es/components/slider/MxSlider.vue.d.ts +0 -32
- package/es/components/slider/MxSlider.vue.js +0 -39
- package/es/components/slider/index.d.ts +0 -7
- package/es/components/slider/index.js +0 -8
- package/es/components/steps/MxStep.css +0 -572
- package/es/components/steps/MxStep.vue.d.ts +0 -7
- package/es/components/steps/MxStep.vue.js +0 -30
- package/es/components/steps/MxSteps.vue.d.ts +0 -29
- package/es/components/steps/MxSteps.vue.js +0 -40
- package/es/components/steps/index.d.ts +0 -99
- package/es/components/steps/index.js +0 -12
- package/es/components/switch/MxSwitch.css +0 -49
- package/es/components/switch/MxSwitch.vue.d.ts +0 -2
- package/es/components/switch/MxSwitch.vue.js +0 -23
- package/es/components/switch/index.d.ts +0 -7
- package/es/components/switch/index.js +0 -8
- package/es/components/switchstaff/CustomSvg.vue.d.ts +0 -2
- package/es/components/switchstaff/CustomSvg.vue.js +0 -28
- package/es/components/switchstaff/SwitchStaff.css +0 -132
- package/es/components/switchstaff/SwitchStaff.vue.d.ts +0 -32
- package/es/components/switchstaff/SwitchStaff.vue.js +0 -121
- package/es/components/switchstaff/WarnSvg.vue.d.ts +0 -2
- package/es/components/switchstaff/WarnSvg.vue.js +0 -28
- package/es/components/switchstaff/index.d.ts +0 -7
- package/es/components/switchstaff/index.js +0 -8
- package/es/components/systemcontent/SystemContent.css +0 -28
- package/es/components/systemcontent/SystemContent.vue.d.ts +0 -51
- package/es/components/systemcontent/SystemContent.vue.js +0 -91
- package/es/components/systemcontent/index.d.ts +0 -7
- package/es/components/systemcontent/index.js +0 -8
- package/es/components/systemcontent/logo.png +0 -0
- package/es/components/table/MxTable.css +0 -190
- package/es/components/table/MxTable.vue.d.ts +0 -37
- package/es/components/table/MxTable.vue.js +0 -63
- package/es/components/table/MxTableColumn.css +0 -31
- package/es/components/table/MxTableColumn.vue.d.ts +0 -11
- package/es/components/table/MxTableColumn.vue.js +0 -28
- package/es/components/table/index.d.ts +0 -103
- package/es/components/table/index.js +0 -12
- package/es/components/tabs/MxTabPane.vue.d.ts +0 -7
- package/es/components/tabs/MxTabPane.vue.js +0 -26
- package/es/components/tabs/MxTabs.css +0 -132
- package/es/components/tabs/MxTabs.vue.d.ts +0 -37
- package/es/components/tabs/MxTabs.vue.js +0 -44
- package/es/components/tag/MxTag.css +0 -84
- package/es/components/tag/MxTag.vue.d.ts +0 -40
- package/es/components/tag/MxTag.vue.js +0 -96
- package/es/components/tag/index.d.ts +0 -7
- package/es/components/tag/index.js +0 -8
- package/es/components/timePicker/MxTimePicker.css +0 -180
- package/es/components/timePicker/MxTimePicker.vue.d.ts +0 -49
- package/es/components/timePicker/MxTimePicker.vue.js +0 -79
- package/es/components/timePicker/index.d.ts +0 -7
- package/es/components/timePicker/index.js +0 -8
- package/es/components/tooltip/MxTooltip.css +0 -17
- package/es/components/tooltip/MxTooltip.vue.d.ts +0 -7
- package/es/components/tooltip/MxTooltip.vue.js +0 -24
- package/es/components/tooltip/index.d.ts +0 -7
- package/es/components/tooltip/index.js +0 -8
- package/es/components/tree/MxTree.css +0 -56
- package/es/components/tree/MxTree.vue.d.ts +0 -7
- package/es/components/tree/MxTree.vue.js +0 -27
- package/es/components/tree/index.d.ts +0 -7
- package/es/components/tree/index.js +0 -8
- package/es/components/treeselect/MxTreeSelect.css +0 -111
- package/es/components/treeselect/MxTreeSelect.vue.d.ts +0 -7
- package/es/components/treeselect/MxTreeSelect.vue.js +0 -35
- package/es/components/treeselect/index.d.ts +0 -7
- package/es/components/treeselect/index.js +0 -8
- package/es/components/upload/MxUpload.css +0 -111
- package/es/components/upload/MxUpload.vue.d.ts +0 -111
- package/es/components/upload/MxUpload.vue.js +0 -310
- package/es/components/upload/index.d.ts +0 -7
- package/es/components/upload/index.js +0 -8
- package/es/components/upload/upload.d.ts +0 -139
- package/es/components/upload/upload.js +0 -11
- package/es/components/upload/uploadList.css +0 -70
- package/es/components/upload/uploadList.vue.d.ts +0 -15
- package/es/components/upload/uploadList.vue.js +0 -118
- package/es/components/upload/use-handlers.d.ts +0 -13
- package/es/components/upload/use-handlers.js +0 -54
- package/es/components/usercontent/ArrowSvg.vue.d.ts +0 -2
- package/es/components/usercontent/ArrowSvg.vue.js +0 -28
- package/es/components/usercontent/UserContent.css +0 -53
- package/es/components/usercontent/UserContent.vue.d.ts +0 -28
- package/es/components/usercontent/UserContent.vue.js +0 -134
- package/es/components/usercontent/UserSvg.vue.d.ts +0 -2
- package/es/components/usercontent/UserSvg.vue.js +0 -29
- package/es/components/usercontent/index.d.ts +0 -7
- package/es/components/usercontent/index.js +0 -8
- package/es/constants/const.d.ts +0 -1
- package/es/constants/const.js +0 -4
- package/es/constants/index.d.ts +0 -2
- package/es/constants/index.js +0 -4
- package/es/env.d.ts +0 -30
- package/es/index.d.ts +0 -13
- package/es/index.js +0 -17
- package/es/utils/hooks.d.ts +0 -23
- package/es/utils/hooks.js +0 -126
- package/es/utils/index.d.ts +0 -3
- package/es/utils/index.js +0 -6
- package/es/utils/lib.d.ts +0 -9
- package/es/utils/lib.js +0 -102
- package/es/utils/micro.d.ts +0 -12
- package/es/utils/micro.js +0 -128
- package/lib/api/staff.d.ts +0 -3
- package/lib/api/staff.js +0 -11
- package/lib/api/tenant.d.ts +0 -4
- package/lib/api/tenant.js +0 -15
- package/lib/api/user.d.ts +0 -24
- package/lib/api/user.js +0 -20
- package/lib/assets/images/notAuthorized.png +0 -0
- package/lib/assets/images/tableNoData.png +0 -0
- package/lib/assets/svg/ContainerSvg.vue.d.ts +0 -2
- package/lib/assets/svg/ContainerSvg.vue.js +0 -28
- package/lib/assets/svg/InfoCircleSvg.vue.d.ts +0 -2
- package/lib/assets/svg/InfoCircleSvg.vue.js +0 -30
- package/lib/assets/svg/InfoSvg.vue.d.ts +0 -2
- package/lib/assets/svg/InfoSvg.vue.js +0 -29
- package/lib/assets/svg/UploadSvg.vue.d.ts +0 -2
- package/lib/assets/svg/UploadSvg.vue.js +0 -28
- package/lib/common/const.d.ts +0 -34
- package/lib/common/const.js +0 -55
- package/lib/common/entity.d.ts +0 -118
- package/lib/common/entity.js +0 -32
- package/lib/common/fetch.d.ts +0 -13
- package/lib/common/fetch.js +0 -95
- package/lib/common/request.d.ts +0 -30
- package/lib/common/request.js +0 -107
- package/lib/common/subject.d.ts +0 -20
- package/lib/common/subject.js +0 -62
- package/lib/components/alert/MxAlert.css +0 -47
- package/lib/components/alert/MxAlert.vue.d.ts +0 -63
- package/lib/components/alert/MxAlert.vue.js +0 -82
- package/lib/components/alert/index.d.ts +0 -7
- package/lib/components/alert/index.js +0 -6
- package/lib/components/authorizedpermission/AuthorizedPermission.css +0 -14
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.d.ts +0 -10
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.js +0 -50
- package/lib/components/authorizedpermission/index.d.ts +0 -7
- package/lib/components/authorizedpermission/index.js +0 -6
- package/lib/components/basiclayout/BasicLayout.css +0 -44
- package/lib/components/basiclayout/BasicLayout.vue.d.ts +0 -45
- package/lib/components/basiclayout/BasicLayout.vue.js +0 -63
- package/lib/components/basiclayout/index.d.ts +0 -7
- package/lib/components/basiclayout/index.js +0 -6
- package/lib/components/breadcrumb/BreadCrumb.css +0 -20
- package/lib/components/breadcrumb/BreadCrumb.vue.d.ts +0 -53
- package/lib/components/breadcrumb/BreadCrumb.vue.js +0 -123
- package/lib/components/breadcrumb/index.d.ts +0 -7
- package/lib/components/breadcrumb/index.js +0 -6
- package/lib/components/button/MxButton.css +0 -149
- package/lib/components/button/MxButton.vue.d.ts +0 -107
- package/lib/components/button/MxButton.vue.js +0 -75
- package/lib/components/button/index.d.ts +0 -7
- package/lib/components/button/index.js +0 -6
- package/lib/components/checkbox/MxCheckbox.css +0 -35
- package/lib/components/checkbox/MxCheckbox.vue.d.ts +0 -104
- package/lib/components/checkbox/MxCheckbox.vue.js +0 -34
- package/lib/components/checkbox/MxCheckboxGroup.vue.d.ts +0 -43
- package/lib/components/checkbox/MxCheckboxGroup.vue.js +0 -25
- package/lib/components/checkbox/index.d.ts +0 -351
- package/lib/components/checkbox/index.js +0 -16
- package/lib/components/datePicker/MxDatePicker.css +0 -586
- package/lib/components/datePicker/MxDatePicker.vue.d.ts +0 -49
- package/lib/components/datePicker/MxDatePicker.vue.js +0 -78
- package/lib/components/datePicker/index.d.ts +0 -7
- package/lib/components/datePicker/index.js +0 -6
- package/lib/components/dialog/MxDialog.css +0 -62
- package/lib/components/dialog/MxDialog.vue.d.ts +0 -164
- package/lib/components/dialog/MxDialog.vue.js +0 -89
- package/lib/components/dialog/index.d.ts +0 -7
- package/lib/components/dialog/index.js +0 -6
- package/lib/components/dropdown/MxDropdown.css +0 -30
- package/lib/components/dropdown/MxDropdown.vue.d.ts +0 -71
- package/lib/components/dropdown/MxDropdown.vue.js +0 -96
- package/lib/components/dropdown/index.d.ts +0 -7
- package/lib/components/dropdown/index.js +0 -6
- package/lib/components/ellipsisSpan/MxEllipsisSpan.css +0 -3
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +0 -42
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.js +0 -69
- package/lib/components/ellipsisSpan/index.d.ts +0 -7
- package/lib/components/ellipsisSpan/index.js +0 -6
- package/lib/components/empty/MxEmpty.css +0 -10
- package/lib/components/empty/MxEmpty.vue.d.ts +0 -7
- package/lib/components/empty/MxEmpty.vue.js +0 -35
- package/lib/components/empty/index.d.ts +0 -7
- package/lib/components/empty/index.js +0 -6
- package/lib/components/empty/no-data.png +0 -0
- package/lib/components/form/MxForm.css +0 -26
- package/lib/components/form/MxForm.vue.d.ts +0 -123
- package/lib/components/form/MxForm.vue.js +0 -98
- package/lib/components/form/MxFormItem.css +0 -23
- package/lib/components/form/MxFormItem.vue.d.ts +0 -94
- package/lib/components/form/MxFormItem.vue.js +0 -63
- package/lib/components/form/index.d.ts +0 -242
- package/lib/components/form/index.js +0 -11
- package/lib/components/headnavigation/HeadNavigation.css +0 -144
- package/lib/components/headnavigation/HeadNavigation.vue.d.ts +0 -45
- package/lib/components/headnavigation/HeadNavigation.vue.js +0 -200
- package/lib/components/headnavigation/MenuBar.css +0 -113
- package/lib/components/headnavigation/MenuBar.vue.d.ts +0 -35
- package/lib/components/headnavigation/MenuBar.vue.js +0 -30
- package/lib/components/headnavigation/index.d.ts +0 -7
- package/lib/components/headnavigation/index.js +0 -6
- package/lib/components/index.d.ts +0 -38
- package/lib/components/index.js +0 -175
- package/lib/components/input/MxInput.css +0 -54
- package/lib/components/input/MxInput.vue.d.ts +0 -7
- package/lib/components/input/MxInput.vue.js +0 -23
- package/lib/components/input/index.d.ts +0 -7
- package/lib/components/input/index.js +0 -6
- package/lib/components/message/index.d.ts +0 -7
- package/lib/components/message/index.js +0 -12
- package/lib/components/message/message.css +0 -31
- package/lib/components/message/message.d.ts +0 -4
- package/lib/components/message/message.js +0 -41
- package/lib/components/messageBox/index.d.ts +0 -7
- package/lib/components/messageBox/index.js +0 -13
- package/lib/components/messageBox/message.vue.d.ts +0 -48
- package/lib/components/messageBox/message.vue.js +0 -57
- package/lib/components/messageBox/messageBox.css +0 -160
- package/lib/components/messageBox/messageBox.d.ts +0 -4
- package/lib/components/messageBox/messageBox.js +0 -38
- package/lib/components/notification/index.d.ts +0 -3
- package/lib/components/notification/index.js +0 -6
- package/lib/components/notification/notification.css +0 -58
- package/lib/components/notification/notification.d.ts +0 -4
- package/lib/components/notification/notification.js +0 -27
- package/lib/components/pagination/MxPagination.css +0 -110
- package/lib/components/pagination/MxPagination.vue.d.ts +0 -38
- package/lib/components/pagination/MxPagination.vue.js +0 -52
- package/lib/components/pagination/index.d.ts +0 -7
- package/lib/components/pagination/index.js +0 -6
- package/lib/components/popconfirm/MxPopconfirm.css +0 -26
- package/lib/components/popconfirm/MxPopconfirm.vue.d.ts +0 -51
- package/lib/components/popconfirm/MxPopconfirm.vue.js +0 -91
- package/lib/components/popconfirm/index.d.ts +0 -7
- package/lib/components/popconfirm/index.js +0 -6
- package/lib/components/radio/MxRadio.css +0 -33
- package/lib/components/radio/MxRadio.vue.d.ts +0 -36
- package/lib/components/radio/MxRadio.vue.js +0 -34
- package/lib/components/radio/MxRadioButton.css +0 -37
- package/lib/components/radio/MxRadioButton.vue.d.ts +0 -31
- package/lib/components/radio/MxRadioButton.vue.js +0 -32
- package/lib/components/radio/MxRadioGroup.vue.d.ts +0 -45
- package/lib/components/radio/MxRadioGroup.vue.js +0 -25
- package/lib/components/radio/index.d.ts +0 -302
- package/lib/components/radio/index.js +0 -15
- package/lib/components/select/MxOption.vue.d.ts +0 -7
- package/lib/components/select/MxOption.vue.js +0 -25
- package/lib/components/select/MxOptionGroup.vue.d.ts +0 -7
- package/lib/components/select/MxOptionGroup.vue.js +0 -22
- package/lib/components/select/MxSelect.css +0 -91
- package/lib/components/select/MxSelect.vue.d.ts +0 -7
- package/lib/components/select/MxSelect.vue.js +0 -42
- package/lib/components/select/index.d.ts +0 -191
- package/lib/components/select/index.js +0 -15
- package/lib/components/sidermenu/HambShow.css +0 -65
- package/lib/components/sidermenu/HambShow.vue.d.ts +0 -16
- package/lib/components/sidermenu/HambShow.vue.js +0 -75
- package/lib/components/sidermenu/SiderMenu.css +0 -94
- package/lib/components/sidermenu/SiderMenu.vue.d.ts +0 -46
- package/lib/components/sidermenu/SiderMenu.vue.js +0 -245
- package/lib/components/sidermenu/index.d.ts +0 -7
- package/lib/components/sidermenu/index.js +0 -6
- package/lib/components/slider/MxSlider.css +0 -54
- package/lib/components/slider/MxSlider.vue.d.ts +0 -32
- package/lib/components/slider/MxSlider.vue.js +0 -38
- package/lib/components/slider/index.d.ts +0 -7
- package/lib/components/slider/index.js +0 -6
- package/lib/components/steps/MxStep.css +0 -572
- package/lib/components/steps/MxStep.vue.d.ts +0 -7
- package/lib/components/steps/MxStep.vue.js +0 -29
- package/lib/components/steps/MxSteps.vue.d.ts +0 -29
- package/lib/components/steps/MxSteps.vue.js +0 -39
- package/lib/components/steps/index.d.ts +0 -99
- package/lib/components/steps/index.js +0 -11
- package/lib/components/switch/MxSwitch.css +0 -49
- package/lib/components/switch/MxSwitch.vue.d.ts +0 -2
- package/lib/components/switch/MxSwitch.vue.js +0 -22
- package/lib/components/switch/index.d.ts +0 -7
- package/lib/components/switch/index.js +0 -6
- package/lib/components/switchstaff/CustomSvg.vue.d.ts +0 -2
- package/lib/components/switchstaff/CustomSvg.vue.js +0 -27
- package/lib/components/switchstaff/SwitchStaff.css +0 -132
- package/lib/components/switchstaff/SwitchStaff.vue.d.ts +0 -32
- package/lib/components/switchstaff/SwitchStaff.vue.js +0 -120
- package/lib/components/switchstaff/WarnSvg.vue.d.ts +0 -2
- package/lib/components/switchstaff/WarnSvg.vue.js +0 -27
- package/lib/components/switchstaff/index.d.ts +0 -7
- package/lib/components/switchstaff/index.js +0 -6
- package/lib/components/systemcontent/SystemContent.css +0 -28
- package/lib/components/systemcontent/SystemContent.vue.d.ts +0 -51
- package/lib/components/systemcontent/SystemContent.vue.js +0 -90
- package/lib/components/systemcontent/index.d.ts +0 -7
- package/lib/components/systemcontent/index.js +0 -6
- package/lib/components/systemcontent/logo.png +0 -0
- package/lib/components/table/MxTable.css +0 -190
- package/lib/components/table/MxTable.vue.d.ts +0 -37
- package/lib/components/table/MxTable.vue.js +0 -62
- package/lib/components/table/MxTableColumn.css +0 -31
- package/lib/components/table/MxTableColumn.vue.d.ts +0 -11
- package/lib/components/table/MxTableColumn.vue.js +0 -27
- package/lib/components/table/index.d.ts +0 -103
- package/lib/components/table/index.js +0 -11
- package/lib/components/tabs/MxTabPane.vue.d.ts +0 -7
- package/lib/components/tabs/MxTabPane.vue.js +0 -25
- package/lib/components/tabs/MxTabs.css +0 -132
- package/lib/components/tabs/MxTabs.vue.d.ts +0 -37
- package/lib/components/tabs/MxTabs.vue.js +0 -43
- package/lib/components/tag/MxTag.css +0 -84
- package/lib/components/tag/MxTag.vue.d.ts +0 -40
- package/lib/components/tag/MxTag.vue.js +0 -95
- package/lib/components/tag/index.d.ts +0 -7
- package/lib/components/tag/index.js +0 -6
- package/lib/components/timePicker/MxTimePicker.css +0 -180
- package/lib/components/timePicker/MxTimePicker.vue.d.ts +0 -49
- package/lib/components/timePicker/MxTimePicker.vue.js +0 -78
- package/lib/components/timePicker/index.d.ts +0 -7
- package/lib/components/timePicker/index.js +0 -6
- package/lib/components/tooltip/MxTooltip.css +0 -17
- package/lib/components/tooltip/MxTooltip.vue.d.ts +0 -7
- package/lib/components/tooltip/MxTooltip.vue.js +0 -23
- package/lib/components/tooltip/index.d.ts +0 -7
- package/lib/components/tooltip/index.js +0 -6
- package/lib/components/tree/MxTree.css +0 -56
- package/lib/components/tree/MxTree.vue.d.ts +0 -7
- package/lib/components/tree/MxTree.vue.js +0 -26
- package/lib/components/tree/index.d.ts +0 -7
- package/lib/components/tree/index.js +0 -6
- package/lib/components/treeselect/MxTreeSelect.css +0 -111
- package/lib/components/treeselect/MxTreeSelect.vue.d.ts +0 -7
- package/lib/components/treeselect/MxTreeSelect.vue.js +0 -34
- package/lib/components/treeselect/index.d.ts +0 -7
- package/lib/components/treeselect/index.js +0 -6
- package/lib/components/upload/MxUpload.css +0 -111
- package/lib/components/upload/MxUpload.vue.d.ts +0 -111
- package/lib/components/upload/MxUpload.vue.js +0 -309
- package/lib/components/upload/index.d.ts +0 -7
- package/lib/components/upload/index.js +0 -6
- package/lib/components/upload/upload.d.ts +0 -139
- package/lib/components/upload/upload.js +0 -11
- package/lib/components/upload/uploadList.css +0 -70
- package/lib/components/upload/uploadList.vue.d.ts +0 -15
- package/lib/components/upload/uploadList.vue.js +0 -117
- package/lib/components/upload/use-handlers.d.ts +0 -13
- package/lib/components/upload/use-handlers.js +0 -54
- package/lib/components/usercontent/ArrowSvg.vue.d.ts +0 -2
- package/lib/components/usercontent/ArrowSvg.vue.js +0 -27
- package/lib/components/usercontent/UserContent.css +0 -53
- package/lib/components/usercontent/UserContent.vue.d.ts +0 -28
- package/lib/components/usercontent/UserContent.vue.js +0 -133
- package/lib/components/usercontent/UserSvg.vue.d.ts +0 -2
- package/lib/components/usercontent/UserSvg.vue.js +0 -28
- package/lib/components/usercontent/index.d.ts +0 -7
- package/lib/components/usercontent/index.js +0 -6
- package/lib/constants/const.d.ts +0 -1
- package/lib/constants/const.js +0 -4
- package/lib/constants/index.d.ts +0 -2
- package/lib/constants/index.js +0 -21
- package/lib/env.d.ts +0 -30
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -82
- package/lib/utils/hooks.d.ts +0 -23
- package/lib/utils/hooks.js +0 -126
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/index.js +0 -6
- package/lib/utils/lib.d.ts +0 -9
- package/lib/utils/lib.js +0 -102
- package/lib/utils/micro.d.ts +0 -12
- package/lib/utils/micro.js +0 -128
package/es/utils/hooks.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
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
|
-
};
|
package/es/utils/index.d.ts
DELETED
package/es/utils/index.js
DELETED
package/es/utils/lib.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
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
|
-
};
|
package/es/utils/micro.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
package/es/utils/micro.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
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.d.ts
DELETED
package/lib/api/staff.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
package/lib/api/tenant.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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[]>;
|
package/lib/api/tenant.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
package/lib/api/user.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,30 +0,0 @@
|
|
|
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;
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,29 +0,0 @@
|
|
|
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;
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
package/lib/common/const.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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>;
|