@maxtropy/v-components 0.1.12-beta.4 → 0.1.12-beta.6
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.umd.js +60 -0
- package/dist/types/common/request.d.ts +3 -3
- package/dist/types/components/alert/MxAlert.vue.d.ts +2 -2
- package/dist/types/components/authorizedpermission/AuthorizedPermission.vue.d.ts +1 -1
- package/dist/types/components/basiclayout/BasicLayout.vue.d.ts +5 -5
- package/dist/types/components/breadcrumb/BreadCrumb.vue.d.ts +4 -4
- package/dist/types/components/button/MxButton.vue.d.ts +18 -18
- package/dist/types/components/checkbox/MxCheckbox.vue.d.ts +4 -4
- package/dist/types/components/checkbox/MxCheckboxGroup.vue.d.ts +11 -11
- package/dist/types/components/checkbox/index.d.ts +1 -1
- package/dist/types/components/datePicker/MxDatePicker.vue.d.ts +2 -2
- package/dist/types/components/dialog/MxDialog.vue.d.ts +2 -2
- package/dist/types/components/empty/MxEmpty.vue.d.ts +2 -2
- package/dist/types/components/form/MxForm.vue.d.ts +28 -28
- package/dist/types/components/form/MxFormItem.vue.d.ts +4 -4
- package/dist/types/components/form/index.d.ts +5 -5
- package/dist/types/components/headnavigation/HeadNavigation.vue.d.ts +4 -4
- package/dist/types/components/headnavigation/MenuBar.vue.d.ts +5 -5
- package/dist/types/components/input/MxInput.vue.d.ts +2 -2
- package/dist/types/components/message/index.d.ts +2 -2
- package/dist/types/components/messageBox/index.d.ts +2 -2
- package/dist/types/components/messageBox/message.vue.d.ts +4 -4
- package/dist/types/components/pagination/MxPagination.vue.d.ts +2 -2
- package/dist/types/components/popconfirm/MxPopconfirm.vue.d.ts +1 -1
- package/dist/types/components/radio/MxRadio.vue.d.ts +11 -11
- package/dist/types/components/radio/MxRadioButton.vue.d.ts +9 -9
- package/dist/types/components/radio/MxRadioGroup.vue.d.ts +19 -19
- package/dist/types/components/radio/index.d.ts +2 -2
- package/dist/types/components/select/MxOption.vue.d.ts +2 -2
- package/dist/types/components/select/MxOptionGroup.vue.d.ts +2 -2
- package/dist/types/components/select/MxSelect.vue.d.ts +2 -2
- package/dist/types/components/select/index.d.ts +2 -2
- package/dist/types/components/sidermenu/SiderMenu.vue.d.ts +4 -4
- package/dist/types/components/slider/MxSlider.vue.d.ts +2 -2
- package/dist/types/components/steps/MxStep.vue.d.ts +2 -2
- package/dist/types/components/steps/MxSteps.vue.d.ts +2 -2
- package/dist/types/components/steps/index.d.ts +1 -1
- package/dist/types/components/switchstaff/SwitchStaff.vue.d.ts +4 -4
- package/dist/types/components/systemcontent/SystemContent.vue.d.ts +4 -4
- package/dist/types/components/table/MxTable.vue.d.ts +2 -2
- package/dist/types/components/table/MxTableColumn.vue.d.ts +2 -2
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/tabs/MxTabPane.vue.d.ts +2 -2
- package/dist/types/components/tabs/MxTabs.vue.d.ts +7 -7
- package/dist/types/components/tag/MxTag.vue.d.ts +2 -2
- package/dist/types/components/timePicker/MxTimePicker.vue.d.ts +2 -2
- package/dist/types/components/tooltip/MxTooltip.vue.d.ts +2 -2
- package/dist/types/components/tree/MxTree.vue.d.ts +2 -2
- package/dist/types/components/treeselect/MxTreeSelect.vue.d.ts +2 -2
- package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
- package/dist/types/components/upload/upload.d.ts +6 -6
- package/dist/types/components/upload/uploadList.vue.d.ts +1 -1
- package/dist/types/components/usercontent/UserContent.vue.d.ts +4 -4
- package/es/api/staff.d.ts +3 -0
- package/es/api/staff.js +11 -0
- package/es/api/tenant.d.ts +4 -0
- package/es/api/tenant.js +15 -0
- package/es/api/user.d.ts +24 -0
- package/es/api/user.js +20 -0
- package/es/assets/svg/ContainerSvg.vue.d.ts +2 -0
- package/es/assets/svg/ContainerSvg.vue.js +29 -0
- package/es/assets/svg/InfoCircleSvg.vue.d.ts +2 -0
- package/es/assets/svg/InfoCircleSvg.vue.js +31 -0
- package/es/assets/svg/InfoSvg.vue.d.ts +2 -0
- package/es/assets/svg/InfoSvg.vue.js +30 -0
- package/es/assets/svg/UploadSvg.vue.d.ts +2 -0
- package/es/assets/svg/UploadSvg.vue.js +29 -0
- package/es/common/const.d.ts +34 -0
- package/es/common/const.js +55 -0
- package/es/common/entity.d.ts +118 -0
- package/es/common/entity.js +32 -0
- package/es/common/fetch.d.ts +13 -0
- package/es/common/fetch.js +95 -0
- package/es/common/request.d.ts +30 -0
- package/es/common/request.js +107 -0
- package/es/common/subject.d.ts +20 -0
- package/es/common/subject.js +62 -0
- package/es/components/alert/MxAlert.css +47 -0
- package/es/components/alert/MxAlert.vue.d.ts +63 -0
- package/es/components/alert/MxAlert.vue.js +82 -0
- package/es/components/alert/index.d.ts +7 -0
- package/es/components/alert/index.js +8 -0
- package/es/components/authorizedpermission/AuthorizedPermission.css +14 -0
- package/es/components/authorizedpermission/AuthorizedPermission.vue.d.ts +10 -0
- package/es/components/authorizedpermission/AuthorizedPermission.vue.js +51 -0
- package/es/components/authorizedpermission/index.d.ts +7 -0
- package/es/components/authorizedpermission/index.js +8 -0
- package/es/components/basiclayout/BasicLayout.css +44 -0
- package/es/components/basiclayout/BasicLayout.vue.d.ts +45 -0
- package/es/components/basiclayout/BasicLayout.vue.js +64 -0
- package/es/components/basiclayout/index.d.ts +7 -0
- package/es/components/basiclayout/index.js +8 -0
- package/es/components/breadcrumb/BreadCrumb.css +20 -0
- package/es/components/breadcrumb/BreadCrumb.vue.d.ts +53 -0
- package/es/components/breadcrumb/BreadCrumb.vue.js +124 -0
- package/es/components/breadcrumb/index.d.ts +7 -0
- package/es/components/breadcrumb/index.js +8 -0
- package/es/components/button/MxButton.css +149 -0
- package/es/components/button/MxButton.vue.d.ts +107 -0
- package/es/components/button/MxButton.vue.js +76 -0
- package/es/components/button/index.d.ts +7 -0
- package/es/components/button/index.js +8 -0
- package/es/components/checkbox/MxCheckbox.css +35 -0
- package/es/components/checkbox/MxCheckbox.vue.d.ts +104 -0
- package/es/components/checkbox/MxCheckbox.vue.js +35 -0
- package/es/components/checkbox/MxCheckboxGroup.vue.d.ts +43 -0
- package/es/components/checkbox/MxCheckboxGroup.vue.js +26 -0
- package/es/components/checkbox/index.d.ts +351 -0
- package/es/components/checkbox/index.js +17 -0
- package/es/components/datePicker/MxDatePicker.css +586 -0
- package/es/components/datePicker/MxDatePicker.vue.d.ts +49 -0
- package/es/components/datePicker/MxDatePicker.vue.js +79 -0
- package/es/components/datePicker/index.d.ts +7 -0
- package/es/components/datePicker/index.js +8 -0
- package/es/components/dialog/MxDialog.css +62 -0
- package/es/components/dialog/MxDialog.vue.d.ts +164 -0
- package/es/components/dialog/MxDialog.vue.js +90 -0
- package/es/components/dialog/index.d.ts +7 -0
- package/es/components/dialog/index.js +8 -0
- package/es/components/dropdown/MxDropdown.css +30 -0
- package/es/components/dropdown/MxDropdown.vue.d.ts +71 -0
- package/es/components/dropdown/MxDropdown.vue.js +97 -0
- package/es/components/dropdown/index.d.ts +7 -0
- package/es/components/dropdown/index.js +8 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.css +3 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +42 -0
- package/es/components/ellipsisSpan/MxEllipsisSpan.vue.js +70 -0
- package/es/components/ellipsisSpan/index.d.ts +7 -0
- package/es/components/ellipsisSpan/index.js +8 -0
- package/es/components/empty/MxEmpty.css +10 -0
- package/es/components/empty/MxEmpty.vue.d.ts +7 -0
- package/es/components/empty/MxEmpty.vue.js +36 -0
- package/es/components/empty/index.d.ts +7 -0
- package/es/components/empty/index.js +8 -0
- package/es/components/form/MxForm.css +26 -0
- package/es/components/form/MxForm.vue.d.ts +123 -0
- package/es/components/form/MxForm.vue.js +99 -0
- package/es/components/form/MxFormItem.css +23 -0
- package/es/components/form/MxFormItem.vue.d.ts +94 -0
- package/es/components/form/MxFormItem.vue.js +63 -0
- package/es/components/form/index.d.ts +242 -0
- package/es/components/form/index.js +12 -0
- package/es/components/headnavigation/HeadNavigation.css +144 -0
- package/es/components/headnavigation/HeadNavigation.vue.d.ts +45 -0
- package/es/components/headnavigation/HeadNavigation.vue.js +201 -0
- package/es/components/headnavigation/MenuBar.css +113 -0
- package/es/components/headnavigation/MenuBar.vue.d.ts +35 -0
- package/es/components/headnavigation/MenuBar.vue.js +31 -0
- package/es/components/headnavigation/index.d.ts +7 -0
- package/es/components/headnavigation/index.js +8 -0
- package/es/components/index.d.ts +38 -0
- package/es/components/index.js +171 -0
- package/es/components/input/MxInput.css +54 -0
- package/es/components/input/MxInput.vue.d.ts +7 -0
- package/es/components/input/MxInput.vue.js +24 -0
- package/es/components/input/index.d.ts +7 -0
- package/es/components/input/index.js +8 -0
- package/es/components/message/index.d.ts +7 -0
- package/es/components/message/index.js +12 -0
- package/es/components/message/message.css +31 -0
- package/es/components/message/message.d.ts +4 -0
- package/es/components/message/message.js +42 -0
- package/es/components/messageBox/index.d.ts +7 -0
- package/es/components/messageBox/index.js +13 -0
- package/es/components/messageBox/message.vue.d.ts +48 -0
- package/es/components/messageBox/message.vue.js +58 -0
- package/es/components/messageBox/messageBox.css +160 -0
- package/es/components/messageBox/messageBox.d.ts +4 -0
- package/es/components/messageBox/messageBox.js +39 -0
- package/es/components/notification/index.d.ts +3 -0
- package/es/components/notification/index.js +7 -0
- package/es/components/notification/notification.css +58 -0
- package/es/components/notification/notification.d.ts +4 -0
- package/es/components/notification/notification.js +28 -0
- package/es/components/pagination/MxPagination.css +110 -0
- package/es/components/pagination/MxPagination.vue.d.ts +38 -0
- package/es/components/pagination/MxPagination.vue.js +53 -0
- package/es/components/pagination/index.d.ts +7 -0
- package/es/components/pagination/index.js +8 -0
- package/es/components/popconfirm/MxPopconfirm.css +26 -0
- package/es/components/popconfirm/MxPopconfirm.vue.d.ts +51 -0
- package/es/components/popconfirm/MxPopconfirm.vue.js +92 -0
- package/es/components/popconfirm/index.d.ts +7 -0
- package/es/components/popconfirm/index.js +8 -0
- package/es/components/radio/MxRadio.css +33 -0
- package/es/components/radio/MxRadio.vue.d.ts +36 -0
- package/es/components/radio/MxRadio.vue.js +35 -0
- package/es/components/radio/MxRadioButton.css +37 -0
- package/es/components/radio/MxRadioButton.vue.d.ts +31 -0
- package/es/components/radio/MxRadioButton.vue.js +33 -0
- package/es/components/radio/MxRadioGroup.vue.d.ts +45 -0
- package/es/components/radio/MxRadioGroup.vue.js +26 -0
- package/es/components/radio/index.d.ts +302 -0
- package/es/components/radio/index.js +16 -0
- package/es/components/select/MxOption.vue.d.ts +7 -0
- package/es/components/select/MxOption.vue.js +26 -0
- package/es/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/es/components/select/MxOptionGroup.vue.js +23 -0
- package/es/components/select/MxSelect.css +91 -0
- package/es/components/select/MxSelect.vue.d.ts +7 -0
- package/es/components/select/MxSelect.vue.js +43 -0
- package/es/components/select/index.d.ts +191 -0
- package/es/components/select/index.js +16 -0
- package/es/components/sidermenu/HambShow.css +65 -0
- package/es/components/sidermenu/HambShow.vue.d.ts +16 -0
- package/es/components/sidermenu/HambShow.vue.js +76 -0
- package/es/components/sidermenu/SiderMenu.css +94 -0
- package/es/components/sidermenu/SiderMenu.vue.d.ts +46 -0
- package/es/components/sidermenu/SiderMenu.vue.js +246 -0
- package/es/components/sidermenu/index.d.ts +7 -0
- package/es/components/sidermenu/index.js +8 -0
- package/es/components/slider/MxSlider.css +54 -0
- package/es/components/slider/MxSlider.vue.d.ts +32 -0
- package/es/components/slider/MxSlider.vue.js +39 -0
- package/es/components/slider/index.d.ts +7 -0
- package/es/components/slider/index.js +8 -0
- package/es/components/steps/MxStep.css +572 -0
- package/es/components/steps/MxStep.vue.d.ts +7 -0
- package/es/components/steps/MxStep.vue.js +30 -0
- package/es/components/steps/MxSteps.vue.d.ts +29 -0
- package/es/components/steps/MxSteps.vue.js +40 -0
- package/es/components/steps/index.d.ts +99 -0
- package/es/components/steps/index.js +12 -0
- package/es/components/switch/MxSwitch.css +49 -0
- package/es/components/switch/MxSwitch.vue.d.ts +2 -0
- package/es/components/switch/MxSwitch.vue.js +23 -0
- package/es/components/switch/index.d.ts +7 -0
- package/es/components/switch/index.js +8 -0
- package/es/components/switchstaff/CustomSvg.vue.d.ts +2 -0
- package/es/components/switchstaff/CustomSvg.vue.js +28 -0
- package/es/components/switchstaff/SwitchStaff.css +132 -0
- package/es/components/switchstaff/SwitchStaff.vue.d.ts +32 -0
- package/es/components/switchstaff/SwitchStaff.vue.js +121 -0
- package/es/components/switchstaff/WarnSvg.vue.d.ts +2 -0
- package/es/components/switchstaff/WarnSvg.vue.js +28 -0
- package/es/components/switchstaff/index.d.ts +7 -0
- package/es/components/switchstaff/index.js +8 -0
- package/es/components/systemcontent/SystemContent.css +28 -0
- package/es/components/systemcontent/SystemContent.vue.d.ts +51 -0
- package/es/components/systemcontent/SystemContent.vue.js +91 -0
- package/es/components/systemcontent/index.d.ts +7 -0
- package/es/components/systemcontent/index.js +8 -0
- package/es/components/table/MxTable.css +190 -0
- package/es/components/table/MxTable.vue.d.ts +37 -0
- package/es/components/table/MxTable.vue.js +63 -0
- package/es/components/table/MxTableColumn.css +31 -0
- package/es/components/table/MxTableColumn.vue.d.ts +11 -0
- package/es/components/table/MxTableColumn.vue.js +28 -0
- package/es/components/table/index.d.ts +103 -0
- package/es/components/table/index.js +12 -0
- package/es/components/tabs/MxTabPane.vue.d.ts +7 -0
- package/es/components/tabs/MxTabPane.vue.js +26 -0
- package/es/components/tabs/MxTabs.css +132 -0
- package/es/components/tabs/MxTabs.vue.d.ts +37 -0
- package/es/components/tabs/MxTabs.vue.js +44 -0
- package/es/components/tag/MxTag.css +84 -0
- package/es/components/tag/MxTag.vue.d.ts +40 -0
- package/es/components/tag/MxTag.vue.js +96 -0
- package/es/components/tag/index.d.ts +7 -0
- package/es/components/tag/index.js +8 -0
- package/es/components/timePicker/MxTimePicker.css +180 -0
- package/es/components/timePicker/MxTimePicker.vue.d.ts +49 -0
- package/es/components/timePicker/MxTimePicker.vue.js +79 -0
- package/es/components/timePicker/index.d.ts +7 -0
- package/es/components/timePicker/index.js +8 -0
- package/es/components/tooltip/MxTooltip.css +17 -0
- package/es/components/tooltip/MxTooltip.vue.d.ts +7 -0
- package/es/components/tooltip/MxTooltip.vue.js +24 -0
- package/es/components/tooltip/index.d.ts +7 -0
- package/es/components/tooltip/index.js +8 -0
- package/es/components/tree/MxTree.css +56 -0
- package/es/components/tree/MxTree.vue.d.ts +7 -0
- package/es/components/tree/MxTree.vue.js +27 -0
- package/es/components/tree/index.d.ts +7 -0
- package/es/components/tree/index.js +8 -0
- package/es/components/treeselect/MxTreeSelect.css +111 -0
- package/es/components/treeselect/MxTreeSelect.vue.d.ts +7 -0
- package/es/components/treeselect/MxTreeSelect.vue.js +35 -0
- package/es/components/treeselect/index.d.ts +7 -0
- package/es/components/treeselect/index.js +8 -0
- package/es/components/upload/MxUpload.css +111 -0
- package/es/components/upload/MxUpload.vue.d.ts +111 -0
- package/es/components/upload/MxUpload.vue.js +311 -0
- package/es/components/upload/index.d.ts +7 -0
- package/es/components/upload/index.js +8 -0
- package/es/components/upload/upload.d.ts +139 -0
- package/es/components/upload/upload.js +11 -0
- package/es/components/upload/uploadList.css +70 -0
- package/es/components/upload/uploadList.vue.d.ts +15 -0
- package/es/components/upload/uploadList.vue.js +118 -0
- package/es/components/upload/use-handlers.d.ts +13 -0
- package/es/components/upload/use-handlers.js +54 -0
- package/es/components/usercontent/ArrowSvg.vue.d.ts +2 -0
- package/es/components/usercontent/ArrowSvg.vue.js +28 -0
- package/es/components/usercontent/UserContent.css +53 -0
- package/es/components/usercontent/UserContent.vue.d.ts +28 -0
- package/es/components/usercontent/UserContent.vue.js +134 -0
- package/es/components/usercontent/UserSvg.vue.d.ts +2 -0
- package/es/components/usercontent/UserSvg.vue.js +29 -0
- package/es/components/usercontent/index.d.ts +7 -0
- package/es/components/usercontent/index.js +8 -0
- package/es/constants/const.d.ts +1 -0
- package/es/constants/const.js +4 -0
- package/es/constants/index.d.ts +2 -0
- package/es/constants/index.js +4 -0
- package/es/env.d.ts +30 -0
- package/es/index.d.ts +13 -0
- package/es/index.js +17 -0
- package/es/utils/hooks.d.ts +23 -0
- package/es/utils/hooks.js +126 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.js +6 -0
- package/es/utils/lib.d.ts +9 -0
- package/es/utils/lib.js +102 -0
- package/es/utils/micro.d.ts +12 -0
- package/es/utils/micro.js +128 -0
- package/lib/api/staff.d.ts +3 -0
- package/lib/api/staff.js +11 -0
- package/lib/api/tenant.d.ts +4 -0
- package/lib/api/tenant.js +15 -0
- package/lib/api/user.d.ts +24 -0
- package/lib/api/user.js +20 -0
- package/lib/assets/svg/ContainerSvg.vue.d.ts +2 -0
- package/lib/assets/svg/ContainerSvg.vue.js +28 -0
- package/lib/assets/svg/InfoCircleSvg.vue.d.ts +2 -0
- package/lib/assets/svg/InfoCircleSvg.vue.js +30 -0
- package/lib/assets/svg/InfoSvg.vue.d.ts +2 -0
- package/lib/assets/svg/InfoSvg.vue.js +29 -0
- package/lib/assets/svg/UploadSvg.vue.d.ts +2 -0
- package/lib/assets/svg/UploadSvg.vue.js +28 -0
- package/lib/common/const.d.ts +34 -0
- package/lib/common/const.js +55 -0
- package/lib/common/entity.d.ts +118 -0
- package/lib/common/entity.js +32 -0
- package/lib/common/fetch.d.ts +13 -0
- package/lib/common/fetch.js +95 -0
- package/lib/common/request.d.ts +30 -0
- package/lib/common/request.js +107 -0
- package/lib/common/subject.d.ts +20 -0
- package/lib/common/subject.js +62 -0
- package/lib/components/alert/MxAlert.css +47 -0
- package/lib/components/alert/MxAlert.vue.d.ts +63 -0
- package/lib/components/alert/MxAlert.vue.js +82 -0
- package/lib/components/alert/index.d.ts +7 -0
- package/lib/components/alert/index.js +6 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.css +14 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.d.ts +10 -0
- package/lib/components/authorizedpermission/AuthorizedPermission.vue.js +50 -0
- package/lib/components/authorizedpermission/index.d.ts +7 -0
- package/lib/components/authorizedpermission/index.js +6 -0
- package/lib/components/basiclayout/BasicLayout.css +44 -0
- package/lib/components/basiclayout/BasicLayout.vue.d.ts +45 -0
- package/lib/components/basiclayout/BasicLayout.vue.js +63 -0
- package/lib/components/basiclayout/index.d.ts +7 -0
- package/lib/components/basiclayout/index.js +6 -0
- package/lib/components/breadcrumb/BreadCrumb.css +20 -0
- package/lib/components/breadcrumb/BreadCrumb.vue.d.ts +53 -0
- package/lib/components/breadcrumb/BreadCrumb.vue.js +123 -0
- package/lib/components/breadcrumb/index.d.ts +7 -0
- package/lib/components/breadcrumb/index.js +6 -0
- package/lib/components/button/MxButton.css +149 -0
- package/lib/components/button/MxButton.vue.d.ts +107 -0
- package/lib/components/button/MxButton.vue.js +75 -0
- package/lib/components/button/index.d.ts +7 -0
- package/lib/components/button/index.js +6 -0
- package/lib/components/checkbox/MxCheckbox.css +35 -0
- package/lib/components/checkbox/MxCheckbox.vue.d.ts +104 -0
- package/lib/components/checkbox/MxCheckbox.vue.js +34 -0
- package/lib/components/checkbox/MxCheckboxGroup.vue.d.ts +43 -0
- package/lib/components/checkbox/MxCheckboxGroup.vue.js +25 -0
- package/lib/components/checkbox/index.d.ts +351 -0
- package/lib/components/checkbox/index.js +16 -0
- package/lib/components/datePicker/MxDatePicker.css +586 -0
- package/lib/components/datePicker/MxDatePicker.vue.d.ts +49 -0
- package/lib/components/datePicker/MxDatePicker.vue.js +78 -0
- package/lib/components/datePicker/index.d.ts +7 -0
- package/lib/components/datePicker/index.js +6 -0
- package/lib/components/dialog/MxDialog.css +62 -0
- package/lib/components/dialog/MxDialog.vue.d.ts +164 -0
- package/lib/components/dialog/MxDialog.vue.js +89 -0
- package/lib/components/dialog/index.d.ts +7 -0
- package/lib/components/dialog/index.js +6 -0
- package/lib/components/dropdown/MxDropdown.css +30 -0
- package/lib/components/dropdown/MxDropdown.vue.d.ts +71 -0
- package/lib/components/dropdown/MxDropdown.vue.js +96 -0
- package/lib/components/dropdown/index.d.ts +7 -0
- package/lib/components/dropdown/index.js +6 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.css +3 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +42 -0
- package/lib/components/ellipsisSpan/MxEllipsisSpan.vue.js +69 -0
- package/lib/components/ellipsisSpan/index.d.ts +7 -0
- package/lib/components/ellipsisSpan/index.js +6 -0
- package/lib/components/empty/MxEmpty.css +10 -0
- package/lib/components/empty/MxEmpty.vue.d.ts +7 -0
- package/lib/components/empty/MxEmpty.vue.js +35 -0
- package/lib/components/empty/index.d.ts +7 -0
- package/lib/components/empty/index.js +6 -0
- package/lib/components/form/MxForm.css +26 -0
- package/lib/components/form/MxForm.vue.d.ts +123 -0
- package/lib/components/form/MxForm.vue.js +98 -0
- package/lib/components/form/MxFormItem.css +23 -0
- package/lib/components/form/MxFormItem.vue.d.ts +94 -0
- package/lib/components/form/MxFormItem.vue.js +63 -0
- package/lib/components/form/index.d.ts +242 -0
- package/lib/components/form/index.js +11 -0
- package/lib/components/headnavigation/HeadNavigation.css +144 -0
- package/lib/components/headnavigation/HeadNavigation.vue.d.ts +45 -0
- package/lib/components/headnavigation/HeadNavigation.vue.js +200 -0
- package/lib/components/headnavigation/MenuBar.css +113 -0
- package/lib/components/headnavigation/MenuBar.vue.d.ts +35 -0
- package/lib/components/headnavigation/MenuBar.vue.js +30 -0
- package/lib/components/headnavigation/index.d.ts +7 -0
- package/lib/components/headnavigation/index.js +6 -0
- package/lib/components/index.d.ts +38 -0
- package/lib/components/index.js +175 -0
- package/lib/components/input/MxInput.css +54 -0
- package/lib/components/input/MxInput.vue.d.ts +7 -0
- package/lib/components/input/MxInput.vue.js +23 -0
- package/lib/components/input/index.d.ts +7 -0
- package/lib/components/input/index.js +6 -0
- package/lib/components/message/index.d.ts +7 -0
- package/lib/components/message/index.js +12 -0
- package/lib/components/message/message.css +31 -0
- package/lib/components/message/message.d.ts +4 -0
- package/lib/components/message/message.js +41 -0
- package/lib/components/messageBox/index.d.ts +7 -0
- package/lib/components/messageBox/index.js +13 -0
- package/lib/components/messageBox/message.vue.d.ts +48 -0
- package/lib/components/messageBox/message.vue.js +57 -0
- package/lib/components/messageBox/messageBox.css +160 -0
- package/lib/components/messageBox/messageBox.d.ts +4 -0
- package/lib/components/messageBox/messageBox.js +38 -0
- package/lib/components/notification/index.d.ts +3 -0
- package/lib/components/notification/index.js +6 -0
- package/lib/components/notification/notification.css +58 -0
- package/lib/components/notification/notification.d.ts +4 -0
- package/lib/components/notification/notification.js +27 -0
- package/lib/components/pagination/MxPagination.css +110 -0
- package/lib/components/pagination/MxPagination.vue.d.ts +38 -0
- package/lib/components/pagination/MxPagination.vue.js +52 -0
- package/lib/components/pagination/index.d.ts +7 -0
- package/lib/components/pagination/index.js +6 -0
- package/lib/components/popconfirm/MxPopconfirm.css +26 -0
- package/lib/components/popconfirm/MxPopconfirm.vue.d.ts +51 -0
- package/lib/components/popconfirm/MxPopconfirm.vue.js +91 -0
- package/lib/components/popconfirm/index.d.ts +7 -0
- package/lib/components/popconfirm/index.js +6 -0
- package/lib/components/radio/MxRadio.css +33 -0
- package/lib/components/radio/MxRadio.vue.d.ts +36 -0
- package/lib/components/radio/MxRadio.vue.js +34 -0
- package/lib/components/radio/MxRadioButton.css +37 -0
- package/lib/components/radio/MxRadioButton.vue.d.ts +31 -0
- package/lib/components/radio/MxRadioButton.vue.js +32 -0
- package/lib/components/radio/MxRadioGroup.vue.d.ts +45 -0
- package/lib/components/radio/MxRadioGroup.vue.js +25 -0
- package/lib/components/radio/index.d.ts +302 -0
- package/lib/components/radio/index.js +15 -0
- package/lib/components/select/MxOption.vue.d.ts +7 -0
- package/lib/components/select/MxOption.vue.js +25 -0
- package/lib/components/select/MxOptionGroup.vue.d.ts +7 -0
- package/lib/components/select/MxOptionGroup.vue.js +22 -0
- package/lib/components/select/MxSelect.css +91 -0
- package/lib/components/select/MxSelect.vue.d.ts +7 -0
- package/lib/components/select/MxSelect.vue.js +42 -0
- package/lib/components/select/index.d.ts +191 -0
- package/lib/components/select/index.js +15 -0
- package/lib/components/sidermenu/HambShow.css +65 -0
- package/lib/components/sidermenu/HambShow.vue.d.ts +16 -0
- package/lib/components/sidermenu/HambShow.vue.js +75 -0
- package/lib/components/sidermenu/SiderMenu.css +94 -0
- package/lib/components/sidermenu/SiderMenu.vue.d.ts +46 -0
- package/lib/components/sidermenu/SiderMenu.vue.js +245 -0
- package/lib/components/sidermenu/index.d.ts +7 -0
- package/lib/components/sidermenu/index.js +6 -0
- package/lib/components/slider/MxSlider.css +54 -0
- package/lib/components/slider/MxSlider.vue.d.ts +32 -0
- package/lib/components/slider/MxSlider.vue.js +38 -0
- package/lib/components/slider/index.d.ts +7 -0
- package/lib/components/slider/index.js +6 -0
- package/lib/components/steps/MxStep.css +572 -0
- package/lib/components/steps/MxStep.vue.d.ts +7 -0
- package/lib/components/steps/MxStep.vue.js +29 -0
- package/lib/components/steps/MxSteps.vue.d.ts +29 -0
- package/lib/components/steps/MxSteps.vue.js +39 -0
- package/lib/components/steps/index.d.ts +99 -0
- package/lib/components/steps/index.js +11 -0
- package/lib/components/switch/MxSwitch.css +49 -0
- package/lib/components/switch/MxSwitch.vue.d.ts +2 -0
- package/lib/components/switch/MxSwitch.vue.js +22 -0
- package/lib/components/switch/index.d.ts +7 -0
- package/lib/components/switch/index.js +6 -0
- package/lib/components/switchstaff/CustomSvg.vue.d.ts +2 -0
- package/lib/components/switchstaff/CustomSvg.vue.js +27 -0
- package/lib/components/switchstaff/SwitchStaff.css +132 -0
- package/lib/components/switchstaff/SwitchStaff.vue.d.ts +32 -0
- package/lib/components/switchstaff/SwitchStaff.vue.js +120 -0
- package/lib/components/switchstaff/WarnSvg.vue.d.ts +2 -0
- package/lib/components/switchstaff/WarnSvg.vue.js +27 -0
- package/lib/components/switchstaff/index.d.ts +7 -0
- package/lib/components/switchstaff/index.js +6 -0
- package/lib/components/systemcontent/SystemContent.css +28 -0
- package/lib/components/systemcontent/SystemContent.vue.d.ts +51 -0
- package/lib/components/systemcontent/SystemContent.vue.js +90 -0
- package/lib/components/systemcontent/index.d.ts +7 -0
- package/lib/components/systemcontent/index.js +6 -0
- package/lib/components/table/MxTable.css +190 -0
- package/lib/components/table/MxTable.vue.d.ts +37 -0
- package/lib/components/table/MxTable.vue.js +62 -0
- package/lib/components/table/MxTableColumn.css +31 -0
- package/lib/components/table/MxTableColumn.vue.d.ts +11 -0
- package/lib/components/table/MxTableColumn.vue.js +27 -0
- package/lib/components/table/index.d.ts +103 -0
- package/lib/components/table/index.js +11 -0
- package/lib/components/tabs/MxTabPane.vue.d.ts +7 -0
- package/lib/components/tabs/MxTabPane.vue.js +25 -0
- package/lib/components/tabs/MxTabs.css +132 -0
- package/lib/components/tabs/MxTabs.vue.d.ts +37 -0
- package/lib/components/tabs/MxTabs.vue.js +43 -0
- package/lib/components/tag/MxTag.css +84 -0
- package/lib/components/tag/MxTag.vue.d.ts +40 -0
- package/lib/components/tag/MxTag.vue.js +95 -0
- package/lib/components/tag/index.d.ts +7 -0
- package/lib/components/tag/index.js +6 -0
- package/lib/components/timePicker/MxTimePicker.css +180 -0
- package/lib/components/timePicker/MxTimePicker.vue.d.ts +49 -0
- package/lib/components/timePicker/MxTimePicker.vue.js +78 -0
- package/lib/components/timePicker/index.d.ts +7 -0
- package/lib/components/timePicker/index.js +6 -0
- package/lib/components/tooltip/MxTooltip.css +17 -0
- package/lib/components/tooltip/MxTooltip.vue.d.ts +7 -0
- package/lib/components/tooltip/MxTooltip.vue.js +23 -0
- package/lib/components/tooltip/index.d.ts +7 -0
- package/lib/components/tooltip/index.js +6 -0
- package/lib/components/tree/MxTree.css +56 -0
- package/lib/components/tree/MxTree.vue.d.ts +7 -0
- package/lib/components/tree/MxTree.vue.js +26 -0
- package/lib/components/tree/index.d.ts +7 -0
- package/lib/components/tree/index.js +6 -0
- package/lib/components/treeselect/MxTreeSelect.css +111 -0
- package/lib/components/treeselect/MxTreeSelect.vue.d.ts +7 -0
- package/lib/components/treeselect/MxTreeSelect.vue.js +34 -0
- package/lib/components/treeselect/index.d.ts +7 -0
- package/lib/components/treeselect/index.js +6 -0
- package/lib/components/upload/MxUpload.css +111 -0
- package/lib/components/upload/MxUpload.vue.d.ts +111 -0
- package/lib/components/upload/MxUpload.vue.js +310 -0
- package/lib/components/upload/index.d.ts +7 -0
- package/lib/components/upload/index.js +6 -0
- package/lib/components/upload/upload.d.ts +139 -0
- package/lib/components/upload/upload.js +11 -0
- package/lib/components/upload/uploadList.css +70 -0
- package/lib/components/upload/uploadList.vue.d.ts +15 -0
- package/lib/components/upload/uploadList.vue.js +117 -0
- package/lib/components/upload/use-handlers.d.ts +13 -0
- package/lib/components/upload/use-handlers.js +54 -0
- package/lib/components/usercontent/ArrowSvg.vue.d.ts +2 -0
- package/lib/components/usercontent/ArrowSvg.vue.js +27 -0
- package/lib/components/usercontent/UserContent.css +53 -0
- package/lib/components/usercontent/UserContent.vue.d.ts +28 -0
- package/lib/components/usercontent/UserContent.vue.js +133 -0
- package/lib/components/usercontent/UserSvg.vue.d.ts +2 -0
- package/lib/components/usercontent/UserSvg.vue.js +28 -0
- package/lib/components/usercontent/index.d.ts +7 -0
- package/lib/components/usercontent/index.js +6 -0
- package/lib/constants/const.d.ts +1 -0
- package/lib/constants/const.js +4 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +21 -0
- package/lib/env.d.ts +30 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +82 -0
- package/lib/utils/hooks.d.ts +23 -0
- package/lib/utils/hooks.js +126 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +6 -0
- package/lib/utils/lib.d.ts +9 -0
- package/lib/utils/lib.js +102 -0
- package/lib/utils/micro.d.ts +12 -0
- package/lib/utils/micro.js +128 -0
- package/package.json +8 -10
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, createCommentVNode } from "vue";
|
|
2
|
+
import { useIntegratedAuthorityList } from "../../utils/hooks";
|
|
3
|
+
const _hoisted_1 = { class: "header-wrapper" };
|
|
4
|
+
const _hoisted_2 = { class: "header-right" };
|
|
5
|
+
const _hoisted_3 = { class: "content-wrapper" };
|
|
6
|
+
const _hoisted_4 = { class: "page-content" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "BasicLayout",
|
|
9
|
+
props: {
|
|
10
|
+
customClass: { default: "" },
|
|
11
|
+
devMenu: { default: void 0 },
|
|
12
|
+
router: { default: () => ({}) }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const contentShow = ref(false);
|
|
17
|
+
useIntegratedAuthorityList((list) => {
|
|
18
|
+
if (!list)
|
|
19
|
+
return;
|
|
20
|
+
contentShow.value = true;
|
|
21
|
+
});
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
const _component_SystemContent = resolveComponent("SystemContent");
|
|
24
|
+
const _component_HeadNavigation = resolveComponent("HeadNavigation");
|
|
25
|
+
const _component_SwitchStaff = resolveComponent("SwitchStaff");
|
|
26
|
+
const _component_el_divider = resolveComponent("el-divider");
|
|
27
|
+
const _component_UserContent = resolveComponent("UserContent");
|
|
28
|
+
const _component_SiderMenu = resolveComponent("SiderMenu");
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: normalizeClass([props == null ? void 0 : props.customClass, "maxtropy-basic-layout"])
|
|
31
|
+
}, [
|
|
32
|
+
createElementVNode("header", _hoisted_1, [
|
|
33
|
+
createVNode(_component_SystemContent, { router: _ctx.router }, null, 8, ["router"]),
|
|
34
|
+
createVNode(_component_HeadNavigation, {
|
|
35
|
+
"dev-menu": _ctx.devMenu,
|
|
36
|
+
"custom-class": "middle",
|
|
37
|
+
router: _ctx.router
|
|
38
|
+
}, null, 8, ["dev-menu", "router"]),
|
|
39
|
+
createElementVNode("div", _hoisted_2, [
|
|
40
|
+
createVNode(_component_SwitchStaff),
|
|
41
|
+
createVNode(_component_el_divider, {
|
|
42
|
+
direction: "vertical",
|
|
43
|
+
class: "divider"
|
|
44
|
+
}),
|
|
45
|
+
createVNode(_component_UserContent)
|
|
46
|
+
])
|
|
47
|
+
]),
|
|
48
|
+
createElementVNode("div", _hoisted_3, [
|
|
49
|
+
createVNode(_component_SiderMenu, {
|
|
50
|
+
"dev-menu": _ctx.devMenu,
|
|
51
|
+
router: _ctx.router
|
|
52
|
+
}, null, 8, ["dev-menu", "router"]),
|
|
53
|
+
createElementVNode("div", _hoisted_4, [
|
|
54
|
+
contentShow.value ? renderSlot(_ctx.$slots, "router-view", { key: 0 }) : createCommentVNode("", true)
|
|
55
|
+
])
|
|
56
|
+
])
|
|
57
|
+
], 2);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const BasicLayout_vue_vue_type_style_index_0_lang = "";
|
|
62
|
+
export {
|
|
63
|
+
_sfc_main as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.maxtropy-bread-crumb .el-breadcrumb__item .el-breadcrumb__inner {
|
|
2
|
+
color: rgba(255, 255, 255, 0.45);
|
|
3
|
+
}
|
|
4
|
+
.maxtropy-bread-crumb .el-breadcrumb__item .el-breadcrumb__separator {
|
|
5
|
+
margin: 0 4px;
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
color: rgba(255, 255, 255, 0.45);
|
|
8
|
+
}
|
|
9
|
+
.maxtropy-bread-crumb .el-breadcrumb__item:last-child .el-breadcrumb__inner {
|
|
10
|
+
color: rgba(255, 255, 255, 0.85);
|
|
11
|
+
}
|
|
12
|
+
.maxtropy-bread-crumb .breadcrumb-item-name {
|
|
13
|
+
padding: 0 4px;
|
|
14
|
+
line-height: 22px;
|
|
15
|
+
}
|
|
16
|
+
.maxtropy-bread-crumb .is-active:hover {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
color: rgba(255, 255, 255, 0.85);
|
|
19
|
+
background-color: rgba(255, 255, 255, 0.12);
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { MenuItem } from '../../common/entity';
|
|
2
|
+
import 'element-plus/es/components/breadcrumb/style/css';
|
|
3
|
+
import 'element-plus/es/components/breadcrumb-item/style/css';
|
|
4
|
+
interface BreadCrumbItemProps {
|
|
5
|
+
name: string;
|
|
6
|
+
path?: string;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
customClass?: string;
|
|
10
|
+
devMenu?: MenuItem;
|
|
11
|
+
options?: BreadCrumbItemProps[];
|
|
12
|
+
reassign?: boolean;
|
|
13
|
+
itemClick?: (item: BreadCrumbItemProps) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
16
|
+
customClass: string;
|
|
17
|
+
devMenu: undefined;
|
|
18
|
+
options: () => never[];
|
|
19
|
+
reassign: boolean;
|
|
20
|
+
itemClick: undefined;
|
|
21
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "itemClick"[], "itemClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
22
|
+
customClass: string;
|
|
23
|
+
devMenu: undefined;
|
|
24
|
+
options: () => never[];
|
|
25
|
+
reassign: boolean;
|
|
26
|
+
itemClick: undefined;
|
|
27
|
+
}>>> & {
|
|
28
|
+
onItemClick?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
customClass: string;
|
|
31
|
+
devMenu: MenuItem;
|
|
32
|
+
options: BreadCrumbItemProps[];
|
|
33
|
+
reassign: boolean;
|
|
34
|
+
itemClick: (item: BreadCrumbItemProps) => void;
|
|
35
|
+
}, {}>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: import('vue').PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref, normalizeClass, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
|
|
2
|
+
import { cloneDeep } from "lodash-es";
|
|
3
|
+
import { useRoute } from "vue-router";
|
|
4
|
+
import { useMenuList } from "../../utils/hooks";
|
|
5
|
+
import { getThirdLevelPathToNodeMap, getMenuMap, filterSearchWithKey, uniqueSearchKey } from "../../utils/lib";
|
|
6
|
+
import "element-plus/es/components/breadcrumb/style/css";
|
|
7
|
+
import "element-plus/es/components/breadcrumb-item/style/css";
|
|
8
|
+
import { ElBreadcrumb, ElBreadcrumbItem } from "element-plus";
|
|
9
|
+
import { getBase } from "../../utils/micro";
|
|
10
|
+
const _hoisted_1 = ["onClick"];
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "BreadCrumb",
|
|
13
|
+
props: {
|
|
14
|
+
customClass: { default: "" },
|
|
15
|
+
devMenu: { default: void 0 },
|
|
16
|
+
options: { default: () => [] },
|
|
17
|
+
reassign: { type: Boolean, default: false },
|
|
18
|
+
itemClick: { type: Function, default: void 0 }
|
|
19
|
+
},
|
|
20
|
+
emits: ["itemClick"],
|
|
21
|
+
setup(__props, { emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const route = useRoute();
|
|
24
|
+
let prodMenuList = ref([]);
|
|
25
|
+
useMenuList((list) => prodMenuList.value = list ?? []);
|
|
26
|
+
const menuList = computed(() => {
|
|
27
|
+
var _a;
|
|
28
|
+
if (props.devMenu && process.env.NODE_ENV === "development") {
|
|
29
|
+
const devMenuList = [];
|
|
30
|
+
const devMenu2List = (menu) => {
|
|
31
|
+
devMenuList.push(menu);
|
|
32
|
+
if (menu.children) {
|
|
33
|
+
menu.children.forEach((item) => {
|
|
34
|
+
devMenu2List(item);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
devMenu2List(cloneDeep(props.devMenu));
|
|
39
|
+
return (_a = prodMenuList.value) == null ? void 0 : _a.concat(devMenuList);
|
|
40
|
+
}
|
|
41
|
+
return prodMenuList.value;
|
|
42
|
+
});
|
|
43
|
+
const path2Node = computed(() => {
|
|
44
|
+
return getThirdLevelPathToNodeMap(menuList.value);
|
|
45
|
+
});
|
|
46
|
+
const id2Node = computed(() => {
|
|
47
|
+
return getMenuMap(menuList.value ?? []);
|
|
48
|
+
});
|
|
49
|
+
const activeThirdKey = ref();
|
|
50
|
+
const generateRoutes = computed(() => {
|
|
51
|
+
if (activeThirdKey.value && !props.reassign) {
|
|
52
|
+
let activeThirdNode = path2Node.value[activeThirdKey.value] ?? path2Node.value["/" + activeThirdKey.value];
|
|
53
|
+
if (activeThirdNode) {
|
|
54
|
+
return [
|
|
55
|
+
{ name: id2Node.value[activeThirdNode.rootId].name },
|
|
56
|
+
{
|
|
57
|
+
name: id2Node.value[activeThirdNode.parentId].name
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: activeThirdNode.name,
|
|
61
|
+
path: activeThirdKey.value
|
|
62
|
+
},
|
|
63
|
+
...(props == null ? void 0 : props.options) ?? []
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return [...(props == null ? void 0 : props.options) ?? []];
|
|
68
|
+
});
|
|
69
|
+
watch(
|
|
70
|
+
route,
|
|
71
|
+
() => {
|
|
72
|
+
const { hash, pathname, search } = window.location;
|
|
73
|
+
let currentPath = pathname;
|
|
74
|
+
const base = getBase();
|
|
75
|
+
const sliceIndex = base ? [3, 6] : [0, 4];
|
|
76
|
+
if (hash) {
|
|
77
|
+
currentPath = hash.replace("#", "").split("/").slice(...sliceIndex).join("/");
|
|
78
|
+
const searchStartPos = hash.indexOf("?");
|
|
79
|
+
if (searchStartPos != -1)
|
|
80
|
+
currentPath += filterSearchWithKey(hash.substring(searchStartPos), uniqueSearchKey);
|
|
81
|
+
} else {
|
|
82
|
+
currentPath = pathname.split("/").slice(...sliceIndex).join("/");
|
|
83
|
+
currentPath += filterSearchWithKey(search, uniqueSearchKey);
|
|
84
|
+
}
|
|
85
|
+
console.log("currentPath", currentPath);
|
|
86
|
+
activeThirdKey.value = currentPath;
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
immediate: true,
|
|
90
|
+
deep: true
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
const clickItem = (item, index) => {
|
|
94
|
+
if (index === 2 && generateRoutes.value.length > 3) {
|
|
95
|
+
emit("itemClick", item);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
return (_ctx, _cache) => {
|
|
99
|
+
return openBlock(), createBlock(unref(ElBreadcrumb), {
|
|
100
|
+
separator: "/",
|
|
101
|
+
class: normalizeClass(["maxtropy-bread-crumb", props == null ? void 0 : props.customClass])
|
|
102
|
+
}, {
|
|
103
|
+
default: withCtx(() => [
|
|
104
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(generateRoutes.value, (item, index) => {
|
|
105
|
+
return openBlock(), createBlock(unref(ElBreadcrumbItem), { key: index }, {
|
|
106
|
+
default: withCtx(() => [
|
|
107
|
+
createElementVNode("div", {
|
|
108
|
+
class: normalizeClass(["breadcrumb-item-name", { "is-active": _ctx.reassign ? !!item.path : index === 2 && generateRoutes.value.length > 3 }]),
|
|
109
|
+
onClick: ($event) => clickItem(item, index)
|
|
110
|
+
}, toDisplayString(item.name), 11, _hoisted_1)
|
|
111
|
+
]),
|
|
112
|
+
_: 2
|
|
113
|
+
}, 1024);
|
|
114
|
+
}), 128))
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
}, 8, ["class"]);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const BreadCrumb_vue_vue_type_style_index_0_lang = "";
|
|
122
|
+
export {
|
|
123
|
+
_sfc_main as default
|
|
124
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
.mx-button[data-v-5d371584] {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
height: fit-content;
|
|
5
|
+
font-size: 0;
|
|
6
|
+
}
|
|
7
|
+
.mx-button[data-v-5d371584] .el-button {
|
|
8
|
+
--el-button-font-weight: 400;
|
|
9
|
+
--el-button-bg-color: rgba(255, 255, 255, 0.05);
|
|
10
|
+
--el-button-hover-text-color: #6ba3da;
|
|
11
|
+
--el-button-hover-border-color: #4a90e2;
|
|
12
|
+
--el-button-active-text-color: #37659a;
|
|
13
|
+
--el-button-active-border-color: #3570bd;
|
|
14
|
+
--el-button-border-color: rgba(255, 255, 255, 0.2);
|
|
15
|
+
--el-button-text-color: rgba(255, 255, 255, 0.85);
|
|
16
|
+
--el-fill-color-blank: #232324;
|
|
17
|
+
--el-button-hover-bg-color: rgba(255, 255, 255, 0.1);
|
|
18
|
+
padding: 5px 16px;
|
|
19
|
+
box-shadow: 0 2px 0 rgba(255, 255, 255, 0.04);
|
|
20
|
+
--el-border-radius-base: 2px;
|
|
21
|
+
}
|
|
22
|
+
.mx-button[data-v-5d371584] .el-button.is-disabled {
|
|
23
|
+
--el-button-disabled-text-color: rgba(255, 255, 255, 0.3);
|
|
24
|
+
--el-button-disabled-border-color: rgba(255, 255, 255, 0.2);
|
|
25
|
+
}
|
|
26
|
+
.mx-button[data-v-5d371584] .el-button--large {
|
|
27
|
+
padding: 8px 24px;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
}
|
|
30
|
+
.mx-button[data-v-5d371584] .el-button--small {
|
|
31
|
+
--el-border-radius-base: 3px;
|
|
32
|
+
padding: 2px 12px;
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
}
|
|
35
|
+
.mx-button[data-v-5d371584] .el-button.is-link {
|
|
36
|
+
--el-button-text-color: #4a90e2;
|
|
37
|
+
--el-button-hover-link-text-color: #75b3f0;
|
|
38
|
+
--el-button-active-color: #3570bd;
|
|
39
|
+
line-height: 22px;
|
|
40
|
+
box-shadow: none;
|
|
41
|
+
border: none;
|
|
42
|
+
}
|
|
43
|
+
.mx-button[data-v-5d371584] .el-button--large.el-button.is-link {
|
|
44
|
+
line-height: 24px;
|
|
45
|
+
}
|
|
46
|
+
.mx-button[data-v-5d371584] .el-button--small.el-button.is-link {
|
|
47
|
+
line-height: 16px;
|
|
48
|
+
}
|
|
49
|
+
.mx-button[data-v-5d371584] .el-button--primary {
|
|
50
|
+
--el-button-text-color: #fff;
|
|
51
|
+
--el-button-hover-text-color: #fff;
|
|
52
|
+
--el-button-active-text-color: #fff;
|
|
53
|
+
box-shadow: 0 10px 15px #2cc4f942;
|
|
54
|
+
--el-button-bg-color: linear-gradient(90deg, #057abf 0%, #2cc4f9 100%);
|
|
55
|
+
--el-border: none;
|
|
56
|
+
background: var(--el-button-bg-color);
|
|
57
|
+
}
|
|
58
|
+
.mx-button[data-v-5d371584] .el-button--primary.is-disabled {
|
|
59
|
+
background: linear-gradient(90deg, #004173 0%, #0e78ad 100%);
|
|
60
|
+
color: rgba(255, 255, 255, 0.3);
|
|
61
|
+
box-shadow: none;
|
|
62
|
+
}
|
|
63
|
+
.mx-button[data-v-5d371584] .el-button.is-link.el-button--danger {
|
|
64
|
+
--el-button-text-color: #e64242;
|
|
65
|
+
--el-button-hover-link-text-color: #dc6864;
|
|
66
|
+
--el-button-active-color: #9d3232;
|
|
67
|
+
}
|
|
68
|
+
.mx-button[data-v-5d371584] .el-button--danger.is-link.is-disabled {
|
|
69
|
+
--el-color-danger-light-5: rgba(255, 255, 255, 0.3);
|
|
70
|
+
}
|
|
71
|
+
.mx-button[data-v-5d371584] .el-button--primary:hover {
|
|
72
|
+
--el-button-bg-color: linear-gradient(90deg, #2795cc 0%, #57d8ff 100%);
|
|
73
|
+
}
|
|
74
|
+
.mx-button[data-v-5d371584] .el-button--primary:active {
|
|
75
|
+
--el-button-bg-color: linear-gradient(90deg, #005c99 0%, #1c9cd4 100%);
|
|
76
|
+
}
|
|
77
|
+
.mx-button[data-v-5d371584] .el-button--danger {
|
|
78
|
+
--el-button-text-color: #fff;
|
|
79
|
+
--el-button-hover-text-color: #fff;
|
|
80
|
+
--el-button-active-text-color: #fff;
|
|
81
|
+
--el-button-bg-color: #e64242;
|
|
82
|
+
--el-border: none;
|
|
83
|
+
--el-button-hover-bg-color: #f2716d;
|
|
84
|
+
--el-button-active-bg-color: #bf2e33;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
}
|
|
87
|
+
.mx-button[data-v-5d371584] .el-button--danger.is-disabled {
|
|
88
|
+
--el-button-disabled-text-color: rgba(255, 255, 255, 0.45);
|
|
89
|
+
--el-button-disabled-bg-color: #e64242;
|
|
90
|
+
}
|
|
91
|
+
.mx-button[data-v-5d371584] .el-button [class*="el-icon"] + span {
|
|
92
|
+
margin-left: 4px;
|
|
93
|
+
}
|
|
94
|
+
.mx-button .mx-button--dashed[data-v-5d371584] {
|
|
95
|
+
border-style: dashed;
|
|
96
|
+
--el-button-bg-color: transparent;
|
|
97
|
+
--el-button-hover-bg-color: transparent;
|
|
98
|
+
--el-button-text-color: #4a90e2;
|
|
99
|
+
--el-button-border-color: #4a90e2;
|
|
100
|
+
--el-button-hover-text-color: #75b3f0;
|
|
101
|
+
--el-button-hover-border-color: #75b3f0;
|
|
102
|
+
--el-button-active-text-color: #3570bd;
|
|
103
|
+
--el-button-active-border-color: #3570bd;
|
|
104
|
+
}
|
|
105
|
+
.mx-button .line[data-v-5d371584] {
|
|
106
|
+
position: absolute;
|
|
107
|
+
opacity: 0.5;
|
|
108
|
+
border-radius: 1px;
|
|
109
|
+
width: 2px;
|
|
110
|
+
top: 0;
|
|
111
|
+
height: 100%;
|
|
112
|
+
background: #fff;
|
|
113
|
+
}
|
|
114
|
+
.mx-button .line--left[data-v-5d371584] {
|
|
115
|
+
left: 0;
|
|
116
|
+
}
|
|
117
|
+
.mx-button .line--right[data-v-5d371584] {
|
|
118
|
+
right: 0;
|
|
119
|
+
}
|
|
120
|
+
.mx-button .dot[data-v-5d371584] {
|
|
121
|
+
position: absolute;
|
|
122
|
+
width: 3px;
|
|
123
|
+
height: 3px;
|
|
124
|
+
border-radius: 2px;
|
|
125
|
+
background: #fff;
|
|
126
|
+
opacity: 0.5;
|
|
127
|
+
}
|
|
128
|
+
.mx-button .dot--top-left[data-v-5d371584] {
|
|
129
|
+
top: 2px;
|
|
130
|
+
left: 5px;
|
|
131
|
+
}
|
|
132
|
+
.mx-button .dot--top-right[data-v-5d371584] {
|
|
133
|
+
top: 2px;
|
|
134
|
+
right: 5px;
|
|
135
|
+
}
|
|
136
|
+
.mx-button .dot--bottom-left[data-v-5d371584] {
|
|
137
|
+
bottom: 2px;
|
|
138
|
+
left: 5px;
|
|
139
|
+
}
|
|
140
|
+
.mx-button .dot--bottom-right[data-v-5d371584] {
|
|
141
|
+
bottom: 2px;
|
|
142
|
+
right: 5px;
|
|
143
|
+
}
|
|
144
|
+
.mx-button .mx-button-dot--disabled .line[data-v-5d371584] {
|
|
145
|
+
background: rgba(255, 255, 255, 0.3);
|
|
146
|
+
}
|
|
147
|
+
.mx-button .mx-button-dot--disabled .dot[data-v-5d371584] {
|
|
148
|
+
background: rgba(255, 255, 255, 0.3);
|
|
149
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
type: {
|
|
4
|
+
type: PropType<"" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger" | "dashed">;
|
|
5
|
+
validator: (value: string) => boolean;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
wait: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
readonly type: PropType<import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
icon: {
|
|
23
|
+
readonly type: PropType<import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
24
|
+
readonly required: false;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
+
__epPropKey: true;
|
|
27
|
+
};
|
|
28
|
+
nativeType: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
29
|
+
loading: BooleanConstructor;
|
|
30
|
+
loadingIcon: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, boolean>;
|
|
31
|
+
plain: BooleanConstructor;
|
|
32
|
+
text: BooleanConstructor;
|
|
33
|
+
link: BooleanConstructor;
|
|
34
|
+
bg: BooleanConstructor;
|
|
35
|
+
autofocus: BooleanConstructor;
|
|
36
|
+
round: BooleanConstructor;
|
|
37
|
+
circle: BooleanConstructor;
|
|
38
|
+
color: StringConstructor;
|
|
39
|
+
dark: BooleanConstructor;
|
|
40
|
+
autoInsertSpace: import("element-plus/es/utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
41
|
+
tag: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
42
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
type: {
|
|
44
|
+
type: PropType<"" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger" | "dashed">;
|
|
45
|
+
validator: (value: string) => boolean;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
wait: {
|
|
49
|
+
type: NumberConstructor;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
disabled: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
size: {
|
|
57
|
+
readonly type: PropType<import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
58
|
+
readonly required: false;
|
|
59
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
|
+
__epPropKey: true;
|
|
61
|
+
};
|
|
62
|
+
icon: {
|
|
63
|
+
readonly type: PropType<import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
+
__epPropKey: true;
|
|
67
|
+
};
|
|
68
|
+
nativeType: import("element-plus/es/utils/index.js").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
69
|
+
loading: BooleanConstructor;
|
|
70
|
+
loadingIcon: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, boolean>;
|
|
71
|
+
plain: BooleanConstructor;
|
|
72
|
+
text: BooleanConstructor;
|
|
73
|
+
link: BooleanConstructor;
|
|
74
|
+
bg: BooleanConstructor;
|
|
75
|
+
autofocus: BooleanConstructor;
|
|
76
|
+
round: BooleanConstructor;
|
|
77
|
+
circle: BooleanConstructor;
|
|
78
|
+
color: StringConstructor;
|
|
79
|
+
dark: BooleanConstructor;
|
|
80
|
+
autoInsertSpace: import("element-plus/es/utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
81
|
+
tag: import("element-plus/es/utils/index.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "button", boolean>;
|
|
82
|
+
}>> & {
|
|
83
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
link: boolean;
|
|
86
|
+
circle: boolean;
|
|
87
|
+
text: boolean;
|
|
88
|
+
type: "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger" | "dashed";
|
|
89
|
+
dark: boolean;
|
|
90
|
+
wait: number;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
nativeType: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
93
|
+
loading: boolean;
|
|
94
|
+
loadingIcon: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
95
|
+
plain: boolean;
|
|
96
|
+
bg: boolean;
|
|
97
|
+
autofocus: boolean;
|
|
98
|
+
round: boolean;
|
|
99
|
+
autoInsertSpace: import("element-plus/es/utils/index.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
100
|
+
tag: import("element-plus/es/utils/index.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>;
|
|
101
|
+
}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, createVNode, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeClass, createCommentVNode, createStaticVNode } from "vue";
|
|
2
|
+
import { buttonProps, ElButton } from "element-plus";
|
|
3
|
+
import "element-plus/es/components/button/style/css";
|
|
4
|
+
const _hoisted_1 = { class: "mx-button" };
|
|
5
|
+
const _hoisted_2 = /* @__PURE__ */ createStaticVNode('<div class="line line--left" data-v-5d371584></div><div class="line line--right" data-v-5d371584></div><div class="dot dot--top-left" data-v-5d371584></div><div class="dot dot--bottom-left" data-v-5d371584></div><div class="dot dot--top-right" data-v-5d371584></div><div class="dot dot--bottom-right" data-v-5d371584></div>', 6);
|
|
6
|
+
const _hoisted_8 = [
|
|
7
|
+
_hoisted_2
|
|
8
|
+
];
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "MxButton",
|
|
11
|
+
props: {
|
|
12
|
+
...buttonProps,
|
|
13
|
+
type: {
|
|
14
|
+
type: String,
|
|
15
|
+
validator: (value) => ["", "default", "text", "success", "warning", "info", "primary", "danger", "dashed"].includes(value),
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
wait: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 300
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
emits: ["click"],
|
|
28
|
+
setup(__props, { emit: emits }) {
|
|
29
|
+
const buttonProps2 = __props;
|
|
30
|
+
const record = ref(0);
|
|
31
|
+
const handleClick = () => {
|
|
32
|
+
let newTime = /* @__PURE__ */ new Date();
|
|
33
|
+
if (newTime.getTime() - record.value > buttonProps2.wait) {
|
|
34
|
+
emits("click");
|
|
35
|
+
}
|
|
36
|
+
record.value = (/* @__PURE__ */ new Date()).getTime();
|
|
37
|
+
};
|
|
38
|
+
const buttonType = buttonProps2.type === "dashed" ? "" : buttonProps2.type;
|
|
39
|
+
const buttonDisabled = buttonProps2.disabled ?? false;
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
42
|
+
createVNode(unref(ElButton), mergeProps(buttonProps2, {
|
|
43
|
+
type: unref(buttonType),
|
|
44
|
+
disabled: unref(buttonDisabled),
|
|
45
|
+
class: { "mx-button--dashed": buttonProps2.type === "dashed" },
|
|
46
|
+
onClick: handleClick
|
|
47
|
+
}), createSlots({ _: 2 }, [
|
|
48
|
+
renderList(_ctx.$slots, (item, key, index) => {
|
|
49
|
+
return {
|
|
50
|
+
name: key,
|
|
51
|
+
fn: withCtx(() => [
|
|
52
|
+
renderSlot(_ctx.$slots, key, {}, void 0, true)
|
|
53
|
+
])
|
|
54
|
+
};
|
|
55
|
+
})
|
|
56
|
+
]), 1040, ["type", "disabled", "class"]),
|
|
57
|
+
buttonProps2.type === "primary" ? (openBlock(), createElementBlock("div", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: normalizeClass({ "mx-button-dot--disabled": unref(buttonDisabled) })
|
|
60
|
+
}, _hoisted_8, 2)) : createCommentVNode("", true)
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
const MxButton_vue_vue_type_style_index_0_scoped_5d371584_lang = "";
|
|
66
|
+
const _export_sfc = (sfc, props) => {
|
|
67
|
+
const target = sfc.__vccOpts || sfc;
|
|
68
|
+
for (const [key, val] of props) {
|
|
69
|
+
target[key] = val;
|
|
70
|
+
}
|
|
71
|
+
return target;
|
|
72
|
+
};
|
|
73
|
+
const MxButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d371584"]]);
|
|
74
|
+
export {
|
|
75
|
+
MxButton as default
|
|
76
|
+
};
|