@maxtropy/v-components 0.1.12-beta.9 → 0.1.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/dist/mx-vcomponents.es.js +9554 -9213
- package/dist/style.css +1 -1
- package/dist/types/components/dropdown/MxDropdown.vue.d.ts +12 -24
- package/dist/types/components/dropdown/index.d.ts +182 -0
- package/dist/types/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +1 -1
- package/dist/types/components/index.d.ts +3 -2
- package/dist/types/components/table/MxTable.vue.d.ts +15 -1
- package/{lib/components/steps → dist/types/components/tabs}/index.d.ts +6 -6
- package/dist/types/components/tree/MxTree.vue.d.ts +1 -1
- package/dist/types/components/treeselect/MxTreeSelect.vue.d.ts +1 -1
- 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.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.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.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/components/empty/MxEmpty.vue.d.ts → dist/types/components/dropdown/MxDropDownItem.vue.d.ts} +0 -0
- /package/{es/components/input/MxInput.vue.d.ts → dist/types/components/dropdown/MxDropDownMenu.vue.d.ts} +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
.mx-switch.el-switch[data-v-1b077b1e] .el-switch__core {
|
|
2
|
-
--el-switch-off-color: rgba(255, 255, 255, 0.3);
|
|
3
|
-
border: none;
|
|
4
|
-
height: 22px;
|
|
5
|
-
min-width: 44px;
|
|
6
|
-
border-radius: 11px;
|
|
7
|
-
}
|
|
8
|
-
.mx-switch.el-switch[data-v-1b077b1e] .el-switch__core .el-switch__action {
|
|
9
|
-
width: 18px;
|
|
10
|
-
height: 18px;
|
|
11
|
-
left: 2px;
|
|
12
|
-
}
|
|
13
|
-
.mx-switch.el-switch[data-v-1b077b1e] .el-switch__core .el-switch__inner .is-icon,
|
|
14
|
-
.mx-switch.el-switch[data-v-1b077b1e] .el-switch__core .el-switch__inner .is-text {
|
|
15
|
-
color: rgba(255, 255, 255, 0.85);
|
|
16
|
-
}
|
|
17
|
-
.mx-switch.el-switch.el-switch--small[data-v-1b077b1e] .el-switch__core {
|
|
18
|
-
min-width: 28px;
|
|
19
|
-
height: 16px;
|
|
20
|
-
}
|
|
21
|
-
.mx-switch.el-switch.el-switch--small[data-v-1b077b1e] .el-switch__core .el-switch__action {
|
|
22
|
-
width: 12px;
|
|
23
|
-
height: 12px;
|
|
24
|
-
}
|
|
25
|
-
.mx-switch.el-switch.el-switch--small.is-checked[data-v-1b077b1e] .el-switch__core .el-switch__action {
|
|
26
|
-
left: calc(100% - 14px);
|
|
27
|
-
}
|
|
28
|
-
.mx-switch.el-switch.is-checked[data-v-1b077b1e] .el-switch__core {
|
|
29
|
-
background: linear-gradient(90deg, #057abf 0%, #2cc4f9 100%);
|
|
30
|
-
}
|
|
31
|
-
.mx-switch.el-switch.is-checked[data-v-1b077b1e] .el-switch__core:hover {
|
|
32
|
-
background: linear-gradient(90deg, #2795cc 0%, #57d8ff 100%);
|
|
33
|
-
}
|
|
34
|
-
.mx-switch.el-switch.is-checked[data-v-1b077b1e] .el-switch__core .el-switch__action {
|
|
35
|
-
left: calc(100% - 20px);
|
|
36
|
-
}
|
|
37
|
-
.mx-switch.el-switch.is-disabled[data-v-1b077b1e] .el-switch__core {
|
|
38
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
39
|
-
}
|
|
40
|
-
.mx-switch.el-switch.is-disabled[data-v-1b077b1e] .el-switch__core .el-switch__action {
|
|
41
|
-
background-color: rgba(255, 255, 255, 0.3);
|
|
42
|
-
}
|
|
43
|
-
.mx-switch.el-switch.is-disabled[data-v-1b077b1e] .el-switch__core .el-switch__inner .is-icon,
|
|
44
|
-
.mx-switch.el-switch.is-disabled[data-v-1b077b1e] .el-switch__core .el-switch__inner .is-text {
|
|
45
|
-
color: rgba(255, 255, 255, 0.3);
|
|
46
|
-
}
|
|
47
|
-
.mx-switch.el-switch.is-checked.is-disabled[data-v-1b077b1e] .el-switch__core {
|
|
48
|
-
background: linear-gradient(90deg, #004173 0%, #0e78ad 100%);
|
|
49
|
-
}
|
|
@@ -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,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const elementPlus = require("element-plus");
|
|
4
|
-
require("element-plus/es/components/switch/style/css");
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
__name: "MxSwitch",
|
|
7
|
-
setup(__props) {
|
|
8
|
-
return (_ctx, _cache) => {
|
|
9
|
-
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSwitch), vue.mergeProps({ class: "mx-switch" }, _ctx.$attrs), null, 16);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const MxSwitch_vue_vue_type_style_index_0_scoped_1b077b1e_lang = "";
|
|
14
|
-
const _export_sfc = (sfc, props) => {
|
|
15
|
-
const target = sfc.__vccOpts || sfc;
|
|
16
|
-
for (const [key, val] of props) {
|
|
17
|
-
target[key] = val;
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
const MxSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b077b1e"]]);
|
|
22
|
-
module.exports = MxSwitch;
|
|
@@ -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,27 +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
|
-
width: "16px",
|
|
13
|
-
height: "16px",
|
|
14
|
-
viewBox: "0 0 16 16",
|
|
15
|
-
version: "1.1",
|
|
16
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
18
|
-
};
|
|
19
|
-
const _hoisted_2 = /* @__PURE__ */ vue.createStaticVNode('<title>公司</title><g id="控件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="导航栏" transform="translate(-1140.000000, -17.000000)" fill="#4A90E2" fill-rule="nonzero"><g id="编组-3" transform="translate(1136.000000, 9.000000)"><g id="公司" transform="translate(4.000000, 8.000000)"><rect id="矩形" opacity="0" x="0" y="0" width="16" height="16"></rect><path d="M14.688,13.478 L13.92,13.478 L13.92,4.734 C13.92,4.478 13.768,4.254 13.536,4.142 L9.704,2.142 C9.488,2.046 9.248,2.046 9.032,2.142 C8.792,2.238 8.64,2.47 8.648,3.734 L8.648,14.478 L7.88,14.478 L7.88,2.67 C7.88,1.374 7.88,1.182 7.592,1.078 C7.344,0.974 7.072,0.974 6.824,1.078 L2.44,3.39 C2.208,3.502 2.056,3.742 2.056,3.998 L2.056,13.486 L1.288,13.486 C1.096,13.486 1,13.59 1,13.686 L1,14.798 C1,14.894 1.096,14.998 1.288,14.998 L14.688,14.998 C14.776,14.998 14.96,14.894 14.976,14.798 L14.976,13.694 C15,13.574 14.792,13.478 14.688,13.478 Z M5.688,12.07 C5.688,12.182 5.6,12.27 5.488,12.27 L4.408,12.27 C4.296,12.27 4.208,12.182 4.208,12.07 L4.208,11.134 C4.208,11.022 4.296,10.934 4.408,10.934 L5.512,10.934 C5.624,10.934 5.712,11.022 5.712,11.134 L5.688,12.07 Z M5.688,9.246 C5.688,9.358 5.6,9.446 5.488,9.446 L4.408,9.446 C4.296,9.446 4.208,9.358 4.208,9.246 L4.208,8.294 C4.208,8.182 4.296,8.094 4.408,8.094 L5.512,8.094 C5.624,8.094 5.712,8.182 5.712,8.294 L5.688,9.246 Z M5.688,6.43 C5.688,6.542 5.6,6.63 5.488,6.63 L4.408,6.63 C4.296,6.63 4.208,6.542 4.208,6.43 L4.208,5.47 C4.208,5.358 4.296,5.27 4.408,5.27 L5.512,5.27 C5.624,5.27 5.712,5.358 5.712,5.47 L5.688,6.43 Z M12,12.062 C12,12.174 11.912,12.262 11.8,12.262 L10.696,12.262 C10.584,12.262 10.496,12.174 10.496,12.062 L10.496,11.118 C10.496,11.006 10.584,10.918 10.696,10.918 L11.8,10.918 C11.912,10.918 12,11.006 12,11.118 L12,12.062 Z M12,9.238 C12,9.35 11.912,9.438 11.8,9.438 L10.696,9.438 C10.584,9.438 10.496,9.35 10.496,9.238 L10.496,8.294 C10.496,8.182 10.584,8.094 10.696,8.094 L11.8,8.094 C11.912,8.094 12,8.182 12,8.294 L12,9.238 L12,9.238 Z M12,6.422 C12,6.534 11.912,6.622 11.8,6.622 L10.696,6.622 C10.584,6.622 10.496,6.534 10.496,6.422 L10.496,5.47 C10.496,5.358 10.584,5.27 10.696,5.27 L11.8,5.27 C11.912,5.27 12,5.358 12,5.47 L12,6.422 Z" id="形状"></path></g></g></g></g>', 2);
|
|
20
|
-
const _hoisted_4 = [
|
|
21
|
-
_hoisted_2
|
|
22
|
-
];
|
|
23
|
-
function _sfc_render(_ctx, _cache) {
|
|
24
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_4);
|
|
25
|
-
}
|
|
26
|
-
const CustomSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
27
|
-
module.exports = CustomSvg;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
.staff-switch {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
font-size: 14px;
|
|
5
|
-
-webkit-font-smoothing: initial;
|
|
6
|
-
}
|
|
7
|
-
.staff-switch .icon {
|
|
8
|
-
height: 16px;
|
|
9
|
-
}
|
|
10
|
-
.staff-switch .staff-name,
|
|
11
|
-
.staff-switch .link-btn {
|
|
12
|
-
margin-left: 5px;
|
|
13
|
-
}
|
|
14
|
-
.staff-switch .staff-name:hover,
|
|
15
|
-
.staff-switch .link-btn:hover {
|
|
16
|
-
background-color: unset;
|
|
17
|
-
}
|
|
18
|
-
.staff-switch .staff-name {
|
|
19
|
-
max-width: 160px;
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
text-overflow: ellipsis;
|
|
23
|
-
color: rgba(255, 255, 255, 0.65);
|
|
24
|
-
}
|
|
25
|
-
.staff-switch .link-btn {
|
|
26
|
-
display: block;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
color: #4a90e2;
|
|
29
|
-
text-decoration: none !important;
|
|
30
|
-
}
|
|
31
|
-
.staff-switch-dialog {
|
|
32
|
-
background-color: #232324;
|
|
33
|
-
border: 0;
|
|
34
|
-
border-radius: 2px;
|
|
35
|
-
width: 416px;
|
|
36
|
-
font-size: 14px;
|
|
37
|
-
color: rgba(255, 255, 255, 0.85);
|
|
38
|
-
border-top: 2px solid #4a90e2;
|
|
39
|
-
}
|
|
40
|
-
.staff-switch-dialog .el-dialog__header {
|
|
41
|
-
display: none;
|
|
42
|
-
}
|
|
43
|
-
.staff-switch-dialog .el-dialog__body {
|
|
44
|
-
padding: 20px 24px;
|
|
45
|
-
color: rgba(255, 255, 255, 0.85);
|
|
46
|
-
}
|
|
47
|
-
.staff-switch-dialog .warn-icon {
|
|
48
|
-
margin-inline-end: 12px;
|
|
49
|
-
}
|
|
50
|
-
.staff-switch-dialog .dialog-content {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-wrap: wrap;
|
|
53
|
-
align-items: center;
|
|
54
|
-
}
|
|
55
|
-
.staff-switch-dialog .dialog-title {
|
|
56
|
-
font-weight: 600;
|
|
57
|
-
font-size: 16px;
|
|
58
|
-
line-height: 24px;
|
|
59
|
-
}
|
|
60
|
-
.staff-switch-dialog .dialog-message {
|
|
61
|
-
margin-block-start: 8px;
|
|
62
|
-
margin-inline-start: 34px;
|
|
63
|
-
font-size: 14px;
|
|
64
|
-
line-height: 22px;
|
|
65
|
-
}
|
|
66
|
-
.staff-switch-dialog .dialog-footer {
|
|
67
|
-
display: flex;
|
|
68
|
-
justify-content: flex-end;
|
|
69
|
-
align-items: center;
|
|
70
|
-
margin-top: 12px;
|
|
71
|
-
}
|
|
72
|
-
.staff-switch-dialog .el-button {
|
|
73
|
-
border-radius: 2px;
|
|
74
|
-
border-color: rgba(0, 173, 255, 0.5);
|
|
75
|
-
background: transparent;
|
|
76
|
-
color: rgba(255, 255, 255, 0.65);
|
|
77
|
-
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
|
|
78
|
-
font-weight: 400;
|
|
79
|
-
}
|
|
80
|
-
.staff-switch-dialog .el-button:hover {
|
|
81
|
-
color: #6ba3da;
|
|
82
|
-
border-color: #6ba3da;
|
|
83
|
-
}
|
|
84
|
-
.staff-switch-dialog .el-button--primary {
|
|
85
|
-
background-color: #4a90e2;
|
|
86
|
-
border-color: #4a90e2;
|
|
87
|
-
color: #fff;
|
|
88
|
-
}
|
|
89
|
-
.staff-switch-dialog .el-button--primary:hover {
|
|
90
|
-
color: #fff;
|
|
91
|
-
background-color: #6ba3da;
|
|
92
|
-
}
|
|
93
|
-
.staff-switch-mask {
|
|
94
|
-
background-color: rgba(0, 0, 0, 0.45);
|
|
95
|
-
}
|
|
96
|
-
.staff-switch-popover {
|
|
97
|
-
width: auto !important;
|
|
98
|
-
}
|
|
99
|
-
.staff-switch-popover.el-popper.is-light, .staff-switch-popover.el-popper.is-light .el-popper__arrow::before,
|
|
100
|
-
.staff-switch-popover .el-scrollbar {
|
|
101
|
-
background-color: #1f1f1f;
|
|
102
|
-
}
|
|
103
|
-
.staff-switch-popover.el-popper.is-light .el-popper__arrow::before {
|
|
104
|
-
border: none;
|
|
105
|
-
}
|
|
106
|
-
.staff-switch-popover.el-popover.el-popper {
|
|
107
|
-
padding: 8px 4px 8px 0;
|
|
108
|
-
border: none;
|
|
109
|
-
}
|
|
110
|
-
.staff-switch-popover .el-scrollbar__view {
|
|
111
|
-
padding: 0 8px;
|
|
112
|
-
}
|
|
113
|
-
.staff-switch-popover .staff-select-item {
|
|
114
|
-
height: 32px;
|
|
115
|
-
line-height: 32px;
|
|
116
|
-
padding: 0 12px;
|
|
117
|
-
border-radius: 4px;
|
|
118
|
-
white-space: nowrap !important;
|
|
119
|
-
color: rgba(255, 255, 255, 0.8);
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
}
|
|
122
|
-
.staff-switch-popover .staff-select-item > * {
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
125
|
-
.staff-switch-popover .staff-select-item.is-current {
|
|
126
|
-
background-color: rgba(74, 144, 226, 0.16);
|
|
127
|
-
color: #4a90e2;
|
|
128
|
-
}
|
|
129
|
-
.staff-switch-popover .staff-select-item:hover:not(.is-current) {
|
|
130
|
-
background: #4a90e2;
|
|
131
|
-
color: #fff;
|
|
132
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
showSwitch?: boolean;
|
|
3
|
-
customClass?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
6
|
-
showSwitch: undefined;
|
|
7
|
-
customClass: string;
|
|
8
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
-
showSwitch: undefined;
|
|
10
|
-
customClass: string;
|
|
11
|
-
}>>>, {
|
|
12
|
-
customClass: string;
|
|
13
|
-
showSwitch: boolean;
|
|
14
|
-
}, {}>;
|
|
15
|
-
export default _default;
|
|
16
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
-
} : {
|
|
21
|
-
type: import('vue').PropType<T[K]>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
type __VLS_WithDefaults<P, D> = {
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_Prettify<T> = {
|
|
31
|
-
[K in keyof T]: T[K];
|
|
32
|
-
} & {};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const StaffSvg = require("./CustomSvg.vue");
|
|
4
|
-
const elementPlus = require("element-plus");
|
|
5
|
-
require("element-plus/es/components/popover/style/css");
|
|
6
|
-
require("element-plus/es/components/scrollbar/style/css");
|
|
7
|
-
const hooks = require("../../utils/hooks");
|
|
8
|
-
const staff = require("../../api/staff");
|
|
9
|
-
const MxMessageBox = require("../messageBox/messageBox");
|
|
10
|
-
const lodashEs = require("lodash-es");
|
|
11
|
-
const _hoisted_1 = { class: "icon" };
|
|
12
|
-
const _hoisted_2 = { class: "staff-name" };
|
|
13
|
-
const _hoisted_3 = { class: "staff-select-list" };
|
|
14
|
-
const _hoisted_4 = ["onClick"];
|
|
15
|
-
const _hoisted_5 = { class: "link-btn" };
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
-
__name: "SwitchStaff",
|
|
18
|
-
props: {
|
|
19
|
-
showSwitch: { type: Boolean, default: void 0 },
|
|
20
|
-
customClass: { default: "" }
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
let current = vue.ref();
|
|
25
|
-
hooks.useCurrent((val) => current.value = val);
|
|
26
|
-
let staffList = vue.ref([]);
|
|
27
|
-
hooks.useStaffList((list) => staffList.value = list ?? []);
|
|
28
|
-
const staffId = vue.computed(() => {
|
|
29
|
-
var _a;
|
|
30
|
-
return (_a = current.value) == null ? void 0 : _a.currentStaffId;
|
|
31
|
-
});
|
|
32
|
-
const staffName = vue.computed(() => {
|
|
33
|
-
const found = staffList.value.find((item) => {
|
|
34
|
-
var _a;
|
|
35
|
-
return item.id === ((_a = current.value) == null ? void 0 : _a.currentStaffId);
|
|
36
|
-
});
|
|
37
|
-
return found ? found.tenantName : "请选择";
|
|
38
|
-
});
|
|
39
|
-
const switchStaffAfterReload = () => {
|
|
40
|
-
const pathname = window.location.pathname;
|
|
41
|
-
const length = (pathname ?? "/").split("/").length;
|
|
42
|
-
return length > 4 ? window.location.assign(window.origin + "/" + pathname.split("/").slice(1, 4).join("/")) : window.location.reload();
|
|
43
|
-
};
|
|
44
|
-
const showSwitchBtn = vue.computed(() => {
|
|
45
|
-
if (typeof props.showSwitch === "boolean")
|
|
46
|
-
return props.showSwitch;
|
|
47
|
-
return staffList.value.length > 1;
|
|
48
|
-
});
|
|
49
|
-
const hasDiffrentTenant = vue.computed(() => {
|
|
50
|
-
const size = new Set((staffList.value ?? []).map((i) => i.tenantMcid)).size;
|
|
51
|
-
return size > 1;
|
|
52
|
-
});
|
|
53
|
-
const onClickItem = (staff$1) => {
|
|
54
|
-
MxMessageBox.confirm(
|
|
55
|
-
`即将切换到${hasDiffrentTenant.value ? staff$1.tenantName + "下" : ""}${staff$1.customerName}的账号${staff$1.staffCode},确定吗?未保存的数据将全部丢失`,
|
|
56
|
-
"切换账号",
|
|
57
|
-
{
|
|
58
|
-
confirmButtonText: "确定",
|
|
59
|
-
cancelButtonText: "取消",
|
|
60
|
-
type: "warning"
|
|
61
|
-
}
|
|
62
|
-
).then(() => {
|
|
63
|
-
if (lodashEs.isNil(staff$1.id))
|
|
64
|
-
return;
|
|
65
|
-
staff.switchStaff(staff$1.id).then(() => {
|
|
66
|
-
hooks.refreshCurrrent();
|
|
67
|
-
switchStaffAfterReload();
|
|
68
|
-
}).catch((e) => {
|
|
69
|
-
if (e.status === 412 || e.status === 403) {
|
|
70
|
-
console.log("切换失败");
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}).catch(() => {
|
|
74
|
-
console.log("关闭");
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
return (_ctx, _cache) => {
|
|
78
|
-
return vue.unref(staffList).length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
79
|
-
key: 0,
|
|
80
|
-
class: vue.normalizeClass(["staff-switch", props == null ? void 0 : props.customClass])
|
|
81
|
-
}, [
|
|
82
|
-
vue.createElementVNode("div", _hoisted_1, [
|
|
83
|
-
vue.createVNode(StaffSvg)
|
|
84
|
-
]),
|
|
85
|
-
vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(staffName.value), 1),
|
|
86
|
-
vue.createVNode(vue.unref(elementPlus.ElPopover), {
|
|
87
|
-
placement: "bottom-end",
|
|
88
|
-
trigger: "hover",
|
|
89
|
-
offset: 22,
|
|
90
|
-
"popper-class": "staff-switch-popover"
|
|
91
|
-
}, {
|
|
92
|
-
reference: vue.withCtx(() => [
|
|
93
|
-
vue.withDirectives(vue.createElementVNode("a", _hoisted_5, "切换", 512), [
|
|
94
|
-
[vue.vShow, showSwitchBtn.value]
|
|
95
|
-
])
|
|
96
|
-
]),
|
|
97
|
-
default: vue.withCtx(() => [
|
|
98
|
-
vue.createVNode(vue.unref(elementPlus.ElScrollbar), { "max-height": "320px" }, {
|
|
99
|
-
default: vue.withCtx(() => [
|
|
100
|
-
vue.createElementVNode("div", _hoisted_3, [
|
|
101
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(staffList), (item) => {
|
|
102
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
103
|
-
key: item.id,
|
|
104
|
-
class: vue.normalizeClass(["staff-select-item", { "is-current": staffId.value === item.id }]),
|
|
105
|
-
onClick: ($event) => onClickItem(item)
|
|
106
|
-
}, vue.toDisplayString(item.staffCode) + " " + vue.toDisplayString(item.customerName) + " | " + vue.toDisplayString(item.tenantName), 11, _hoisted_4);
|
|
107
|
-
}), 128))
|
|
108
|
-
])
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
})
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
})
|
|
115
|
-
], 2)) : vue.createCommentVNode("", true);
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
const SwitchStaff_vue_vue_type_style_index_0_lang = "";
|
|
120
|
-
module.exports = _sfc_main;
|
|
@@ -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,27 +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: "0 0 1024 1024",
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
"data-v-ea893728": ""
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
17
|
-
fill: "currentColor",
|
|
18
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"
|
|
19
|
-
}, null, -1);
|
|
20
|
-
const _hoisted_3 = [
|
|
21
|
-
_hoisted_2
|
|
22
|
-
];
|
|
23
|
-
function _sfc_render(_ctx, _cache) {
|
|
24
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, _hoisted_3);
|
|
25
|
-
}
|
|
26
|
-
const WarnSvg = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
27
|
-
module.exports = WarnSvg;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.system-content {
|
|
2
|
-
display: flex;
|
|
3
|
-
color: #4a90e2;
|
|
4
|
-
width: 245px;
|
|
5
|
-
padding-left: 15px;
|
|
6
|
-
align-items: center;
|
|
7
|
-
-webkit-font-smoothing: initial;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
.system-content .logo-pic {
|
|
11
|
-
width: 140px;
|
|
12
|
-
height: 40px;
|
|
13
|
-
background-size: contain;
|
|
14
|
-
background-repeat: no-repeat;
|
|
15
|
-
background-position: left center;
|
|
16
|
-
}
|
|
17
|
-
.system-content .logo-title {
|
|
18
|
-
color: #4a90e2;
|
|
19
|
-
width: 90px;
|
|
20
|
-
font-size: 10px;
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: flex-end;
|
|
23
|
-
align-items: center;
|
|
24
|
-
text-align: center;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
pointer-events: none;
|
|
27
|
-
user-select: none;
|
|
28
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Router } from 'vue-router';
|
|
2
|
-
interface Props {
|
|
3
|
-
title?: string;
|
|
4
|
-
showLogo?: boolean;
|
|
5
|
-
customClass?: string;
|
|
6
|
-
router?: Router;
|
|
7
|
-
linkEnable?: boolean;
|
|
8
|
-
linkPath?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
-
title: string;
|
|
12
|
-
showLogo: boolean;
|
|
13
|
-
customClass: string;
|
|
14
|
-
router: undefined;
|
|
15
|
-
linkEnable: boolean;
|
|
16
|
-
linkPath: undefined;
|
|
17
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
18
|
-
title: string;
|
|
19
|
-
showLogo: boolean;
|
|
20
|
-
customClass: string;
|
|
21
|
-
router: undefined;
|
|
22
|
-
linkEnable: boolean;
|
|
23
|
-
linkPath: undefined;
|
|
24
|
-
}>>> & {
|
|
25
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
title: string;
|
|
28
|
-
customClass: string;
|
|
29
|
-
router: Router;
|
|
30
|
-
showLogo: boolean;
|
|
31
|
-
linkEnable: boolean;
|
|
32
|
-
linkPath: string;
|
|
33
|
-
}, {}>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
-
} : {
|
|
40
|
-
type: import('vue').PropType<T[K]>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
type __VLS_WithDefaults<P, D> = {
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_Prettify<T> = {
|
|
50
|
-
[K in keyof T]: T[K];
|
|
51
|
-
} & {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const vue = require("vue");
|
|
3
|
-
const hooks = require("../../utils/hooks");
|
|
4
|
-
const defaultLogo = require("./logo.png");
|
|
5
|
-
const _hoisted_1 = { class: "logo-title" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
|
-
__name: "SystemContent",
|
|
8
|
-
props: {
|
|
9
|
-
title: { default: "工业互联网平台" },
|
|
10
|
-
showLogo: { type: Boolean, default: true },
|
|
11
|
-
customClass: { default: "" },
|
|
12
|
-
router: { default: void 0 },
|
|
13
|
-
linkEnable: { type: Boolean, default: true },
|
|
14
|
-
linkPath: { default: void 0 }
|
|
15
|
-
},
|
|
16
|
-
emits: ["click"],
|
|
17
|
-
setup(__props, { emit }) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
let current = vue.ref();
|
|
20
|
-
hooks.useCurrent((val) => current.value = val);
|
|
21
|
-
let menuList = vue.ref([]);
|
|
22
|
-
hooks.useMenuList((list) => menuList.value = list ?? []);
|
|
23
|
-
const insideRouter = vue.computed(() => {
|
|
24
|
-
if (props == null ? void 0 : props.router)
|
|
25
|
-
return props == null ? void 0 : props.router;
|
|
26
|
-
return null;
|
|
27
|
-
});
|
|
28
|
-
const defaultHomePage = vue.computed(() => {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
if (((_a = current.value) == null ? void 0 : _a.currentId) === null) {
|
|
31
|
-
return "/home";
|
|
32
|
-
}
|
|
33
|
-
const homePage = (_b = menuList.value) == null ? void 0 : _b.find((item) => {
|
|
34
|
-
var _a2;
|
|
35
|
-
return String((_a2 = current.value) == null ? void 0 : _a2.currentId) === item.currentId;
|
|
36
|
-
});
|
|
37
|
-
return (homePage == null ? void 0 : homePage.transitPagePath) ?? "/home";
|
|
38
|
-
});
|
|
39
|
-
const linkToHome = () => {
|
|
40
|
-
var _a;
|
|
41
|
-
emit("click", defaultHomePage.value);
|
|
42
|
-
if (!props.linkEnable)
|
|
43
|
-
return;
|
|
44
|
-
if (insideRouter.value && props.linkPath) {
|
|
45
|
-
(_a = insideRouter.value) == null ? void 0 : _a.push(props.linkPath);
|
|
46
|
-
}
|
|
47
|
-
const hasOrigin = /^http/.test(defaultHomePage.value);
|
|
48
|
-
let isEqualOrigin = false;
|
|
49
|
-
let pathname = "";
|
|
50
|
-
if (hasOrigin) {
|
|
51
|
-
const url = new URL(defaultHomePage.value);
|
|
52
|
-
isEqualOrigin = url.origin === window.location.origin;
|
|
53
|
-
pathname = url.pathname;
|
|
54
|
-
if (isEqualOrigin && insideRouter.value) {
|
|
55
|
-
insideRouter.value.push({ path: pathname });
|
|
56
|
-
} else {
|
|
57
|
-
window.location.assign(defaultHomePage.value);
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
if (insideRouter.value) {
|
|
61
|
-
insideRouter.value.push({ path: defaultHomePage.value });
|
|
62
|
-
} else {
|
|
63
|
-
window.location.assign(window.origin + defaultHomePage.value);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const logoUrl = vue.computed(() => {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
return ((_b = (_a = current.value) == null ? void 0 : _a.logoUrl) == null ? void 0 : _b.replace("-internal", "")) ?? defaultLogo;
|
|
70
|
-
});
|
|
71
|
-
const title = vue.computed(() => {
|
|
72
|
-
var _a;
|
|
73
|
-
return ((_a = current.value) == null ? void 0 : _a.platformSloganName) ?? props.title;
|
|
74
|
-
});
|
|
75
|
-
return (_ctx, _cache) => {
|
|
76
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
77
|
-
class: vue.normalizeClass(["system-content", props == null ? void 0 : props.customClass]),
|
|
78
|
-
onClick: linkToHome
|
|
79
|
-
}, [
|
|
80
|
-
vue.createElementVNode("div", {
|
|
81
|
-
class: "logo-pic",
|
|
82
|
-
style: vue.normalizeStyle({ backgroundImage: "url(" + logoUrl.value + ")" })
|
|
83
|
-
}, null, 4),
|
|
84
|
-
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(title.value), 1)
|
|
85
|
-
], 2);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
const SystemContent_vue_vue_type_style_index_0_lang = "";
|
|
90
|
-
module.exports = _sfc_main;
|
|
Binary file
|