hs-admin-ui 1.0.0 → 1.0.3
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/favicon.ico +0 -0
- package/dist/style.css +1 -0
- package/dist/style.css.gz +0 -0
- package/dist/umd/index.js +169 -0
- package/dist/umd/index.js.gz +0 -0
- package/package.json +81 -78
- package/.env +0 -11
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintignore +0 -18
- package/.eslintrc.js +0 -104
- package/.prettierrc.js +0 -39
- package/.vite/deps_temp_3669a513/chunk-FVXAE7ZR.js +0 -11400
- package/.vite/deps_temp_3669a513/chunk-ZS7NZCD4.js +0 -36
- package/.vite/deps_temp_3669a513/default-passive-events.js +0 -25
- package/.vite/deps_temp_3669a513/element-plus.js +0 -65013
- package/.vite/deps_temp_3669a513/lodash.js +0 -5497
- package/.vite/deps_temp_3669a513/package.json +0 -3
- package/.vite/deps_temp_3669a513/vue.js +0 -324
- package/.vite/deps_temp_3669a513/vxe-table.js +0 -32336
- package/CHANGELOG.md +0 -1
- package/directoryList.md +0 -180
- package/postcss.config.js +0 -7
- package/src/App.vue +0 -88
- package/src/api/fieldConfigController/index.ts +0 -76
- package/src/api/fieldConfigController/type.ts +0 -44
- package/src/api/login/index.ts +0 -78
- package/src/api/loginController/index.ts +0 -74
- package/src/api/menu/index.ts +0 -34
- package/src/api/menu/index2.ts +0 -291
- package/src/api/menuController/index.ts +0 -189
- package/src/api/systemController/index.ts +0 -26
- package/src/api/systemController/type.ts +0 -16
- package/src/api/test/index.ts +0 -22
- package/src/api/user/index.ts +0 -30
- package/src/assets/404.png +0 -0
- package/src/assets/logo-main.svg +0 -12
- package/src/assets/logo-mini.svg +0 -12
- package/src/components/base/hsAffix/src/hsAffix.vue +0 -22
- package/src/components/base/hsAlert/src/hsAlert.vue +0 -15
- package/src/components/base/hsAutocomplete/src/hsAutocomplete.vue +0 -36
- package/src/components/base/hsButton/src/hsButton.vue +0 -26
- package/src/components/base/hsButton/src/hsButtonGroup.vue +0 -8
- package/src/components/base/hsButton/useButtonEvents.ts +0 -19
- package/src/components/base/hsCalendar/src/hsCalendar.vue +0 -36
- package/src/components/base/hsCarousel/src/hsCarousel.vue +0 -15
- package/src/components/base/hsCarousel/src/hsCarouselItem.vue +0 -15
- package/src/components/base/hsCascader/src/hsCascader.vue +0 -36
- package/src/components/base/hsCascader/src/hsCascaderPanel.vue +0 -29
- package/src/components/base/hsCheckbox/src/hsCheckbox.vue +0 -32
- package/src/components/base/hsCheckbox/src/hsCheckboxButton.vue +0 -18
- package/src/components/base/hsCheckbox/src/hsCheckboxGroup.vue +0 -32
- package/src/components/base/hsCol/src/hsCol.vue +0 -20
- package/src/components/base/hsCollapse/src/hsCollapse.vue +0 -36
- package/src/components/base/hsCollapse/src/hsCollapseItem.vue +0 -22
- package/src/components/base/hsColorPicker/src/hsColorPicker.vue +0 -32
- package/src/components/base/hsDatePicker/src/hsDatePicker.vue +0 -40
- package/src/components/base/hsDialog/src/hsDialog.vue +0 -36
- package/src/components/base/hsDrawer/src/hsDrawer.vue +0 -29
- package/src/components/base/hsDropdown/src/hsDropdown.vue +0 -15
- package/src/components/base/hsDropdown/src/hsDropdownItem.vue +0 -15
- package/src/components/base/hsDropdown/src/hsDropdownMenu.vue +0 -15
- package/src/components/base/hsForm/src/hsForm.vue +0 -23
- package/src/components/base/hsForm/src/hsFormItem.vue +0 -22
- package/src/components/base/hsGetApi/src/hsGetApis.vue +0 -231
- package/src/components/base/hsGetApi/useGetApis.ts +0 -158
- package/src/components/base/hsInput/src/hsInput.vue +0 -40
- package/src/components/base/hsInput/useInputEvents.ts +0 -52
- package/src/components/base/hsInputNumber/src/hsInputNumber.vue +0 -31
- package/src/components/base/hsPopconfirm/src/hsPopconfirm.vue +0 -15
- package/src/components/base/hsPopover/src/hsPopover.vue +0 -22
- package/src/components/base/hsProgress/src/hsProgress.vue +0 -15
- package/src/components/base/hsRadio/src/hsRadio.vue +0 -32
- package/src/components/base/hsRadio/src/hsRadioButton.vue +0 -18
- package/src/components/base/hsRadio/src/hsRadioGroup.vue +0 -32
- package/src/components/base/hsRate/src/hsRate.vue +0 -33
- package/src/components/base/hsResult/src/hsResult.vue +0 -15
- package/src/components/base/hsRow/src/hsRow.vue +0 -20
- package/src/components/base/hsScrollbar/src/hsScrollbar.vue +0 -22
- package/src/components/base/hsSelect/src/hsOption.vue +0 -8
- package/src/components/base/hsSelect/src/hsOptionGroup.vue +0 -8
- package/src/components/base/hsSelect/src/hsSelect.vue +0 -42
- package/src/components/base/hsSelect/useSelectEvents.ts +0 -60
- package/src/components/base/hsSlider/src/hsSlider.vue +0 -25
- package/src/components/base/hsSteps/src/hsStep.vue +0 -15
- package/src/components/base/hsSteps/src/hsSteps.vue +0 -15
- package/src/components/base/hsSwitch/src/hsSwitch.vue +0 -35
- package/src/components/base/hsTable/hsBCTable.vue +0 -116
- package/src/components/base/hsTable/hsTable copy.vue +0 -226
- package/src/components/base/hsTable/hsTable.vue +0 -213
- package/src/components/base/hsTable/useHsTableConfig.ts +0 -95
- package/src/components/base/hsTable/useTableEvents.ts +0 -118
- package/src/components/base/hsTabs/src/hsTabPane.vue +0 -15
- package/src/components/base/hsTabs/src/hsTabs.vue +0 -29
- package/src/components/base/hsTag/src/hsCheckTag.vue +0 -16
- package/src/components/base/hsTag/src/hsTag.vue +0 -15
- package/src/components/base/hsTest/HsTest.vue +0 -320
- package/src/components/base/hsTooltip/src/hsTooltip.vue +0 -22
- package/src/components/base/hsTour/src/hsTour.vue +0 -31
- package/src/components/base/hsTour/src/hsTourStep.vue +0 -15
- package/src/components/base/hsTransfer/src/hsTransfer.vue +0 -36
- package/src/components/base/hsTree/src/hsTree.vue +0 -24
- package/src/components/base/hsTreeSelect/src/hsTreeSelect.vue +0 -39
- package/src/components/base/hsUpload/src/hsUpload.vue +0 -32
- package/src/components/base/hsWatermark/src/hsWatermark.vue +0 -15
- package/src/components/business/bcAutoComplete/bcAutoComplete.vue +0 -38
- package/src/components/business/bcAutoComplete/defaultData.ts +0 -25
- package/src/components/business/bcAutoComplete/useAutoComplete.ts +0 -65
- package/src/components/business/bcBtn/bcBtn.vue +0 -40
- package/src/components/business/bcForm/bcForm.vue +0 -113
- package/src/components/business/bcForm/bcFormDrag.vue +0 -104
- package/src/components/business/bcForm/bcFormSearch.vue +0 -154
- package/src/components/business/bcForm/components/sortForm/index.ts +0 -18
- package/src/components/business/bcForm/components/sortForm/sortForm.vue +0 -92
- package/src/components/business/bcFormConfig/bcFormConfig.vue +0 -196
- package/src/components/business/bcFormTable/bcFormTable.vue +0 -91
- package/src/components/business/bcFormTable/components/bcTabs/bcTabs.vue +0 -53
- package/src/components/business/bcFormTable/components/contextBody/contextBody.vue +0 -67
- package/src/components/business/bcFormTable/components/contextBody/useContextMenu.ts +0 -53
- package/src/components/business/bcFormTable/components/formSearchBtn/formSearchBtn.vue +0 -21
- package/src/components/business/bcFormTable/methods/cellDetailMethod.ts +0 -5
- package/src/components/business/bcFormTable/methods/filterAgeMethod.ts +0 -5
- package/src/components/business/bcFormTable/methods/footerMethod.ts +0 -25
- package/src/components/business/bcFormTable/methods/index.ts +0 -10
- package/src/components/business/bcFormTable/utils/onFormKey.ts +0 -121
- package/src/components/business/bcFormTable/utils/onTableKey.ts +0 -119
- package/src/components/business/bcFormTable/utils/parseTable.ts +0 -201
- package/src/components/business/bcFormTable/utils/useButon.ts +0 -20
- package/src/components/business/bcFormTable/utils/useTableHeight.ts +0 -44
- package/src/components/business/bcPageConfig/bcPageConfig.vue +0 -79
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue +0 -39
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue +0 -32
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsBtn/useAttrBtn.ts +0 -58
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.ts +0 -71
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.ts +0 -35
- package/src/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue +0 -33
- package/src/components/business/bcPageConfig/components/hsExpand/useExpand.ts +0 -9
- package/src/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue +0 -54
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue +0 -64
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue +0 -24
- package/src/components/business/bcPageConfig/components/hsForm/useAttrForm.ts +0 -108
- package/src/components/business/bcPageConfig/components/hsForm/useFormListConfig.ts +0 -69
- package/src/components/business/bcPageConfig/components/hsForm/useFormParse.ts +0 -120
- package/src/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue +0 -48
- package/src/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.ts +0 -148
- package/src/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue +0 -122
- package/src/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue +0 -51
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue +0 -46
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue +0 -68
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue +0 -24
- package/src/components/business/bcPageConfig/components/hsTables/useAttrTable.ts +0 -218
- package/src/components/business/bcPageConfig/components/hsTables/useTableConfigList.ts +0 -77
- package/src/components/business/bcPageConfig/components/hsTables/useTableParse.ts +0 -78
- package/src/components/business/bcPageConfig/default/apis.json +0 -24712
- package/src/components/business/bcPageConfig/default/baseBtnConfig.ts +0 -256
- package/src/components/business/bcPageConfig/default/baseFormConfig.ts +0 -380
- package/src/components/business/bcPageConfig/default/baseTableConfig.ts +0 -2399
- package/src/components/business/bcPageConfig/usePageConfig.ts +0 -469
- package/src/components/business/bcSelect/bcSelect.vue +0 -50
- package/src/components/business/bcSwitchSystems/bcSwitchSystems.vue +0 -36
- package/src/components/business/bcSwitchSystems/useSwitchSystems.ts +0 -74
- package/src/components/business/bcTable/bcTable.vue +0 -63
- package/src/components/business/bcTable/components/sortColumn/index.ts +0 -19
- package/src/components/business/bcTable/components/sortColumn/sortColumn.vue +0 -107
- package/src/components/business/bcTable/useTable.ts +0 -51
- package/src/components/business/bcTable/useTableHeight.ts +0 -24
- package/src/components/business/bcTreeSelect/bcTreeSelect.vue +0 -12
- package/src/components/business/cardID/cardID.vue +0 -24
- package/src/components/business/cardID/type.ts +0 -0
- package/src/components/business/cardID/useCardID.ts +0 -0
- package/src/components/component.ts +0 -188
- package/src/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue +0 -26
- package/src/components/config/autocompleteAttrConfig/config.ts +0 -170
- package/src/components/config/baseForm.vue +0 -175
- package/src/components/config/buttonAttrConfig/buttonAttrConfig.vue +0 -26
- package/src/components/config/buttonAttrConfig/config.ts +0 -261
- package/src/components/config/cascaderAttrConfig/cascaderAttrConfig.vue +0 -26
- package/src/components/config/cascaderAttrConfig/config.ts +0 -287
- package/src/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue +0 -26
- package/src/components/config/cascaderPanelAttrConfig/config.ts +0 -278
- package/src/components/config/checkboxAttrConfig/checkboxAttrConfig.vue +0 -26
- package/src/components/config/checkboxAttrConfig/config.ts +0 -301
- package/src/components/config/datePickerAttrConfig/config.ts +0 -256
- package/src/components/config/datePickerAttrConfig/datePickerAttrConfig.vue +0 -26
- package/src/components/config/inputAttrConfig/config.ts +0 -322
- package/src/components/config/inputAttrConfig/inputAttrConfig.vue +0 -33
- package/src/components/config/inputAttrConfig/inputEventConfig.vue +0 -35
- package/src/components/config/inputNumberAttrConfig/config.ts +0 -177
- package/src/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue +0 -26
- package/src/components/config/radioAttrConfig/config.ts +0 -212
- package/src/components/config/radioAttrConfig/radioAttrConfig.vue +0 -26
- package/src/components/config/selectAttrConfig/config.ts +0 -478
- package/src/components/config/selectAttrConfig/selectAttrConfig.vue +0 -26
- package/src/components/config/switchAttrConfig/config.ts +0 -195
- package/src/components/config/switchAttrConfig/switchAttrConfig.vue +0 -26
- package/src/components/config/treeSelectAttrConfig/config.ts +0 -625
- package/src/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue +0 -26
- package/src/components/config/type/formType.ts +0 -25
- package/src/components/config/uploadAttrConfig/config.ts +0 -250
- package/src/components/config/uploadAttrConfig/uploadAttrConfig.vue +0 -26
- package/src/components/iconSelector/index.vue +0 -247
- package/src/components/iconSelector/list.vue +0 -84
- package/src/components/svgIcon/index.vue +0 -61
- package/src/directive/authDirective.ts +0 -40
- package/src/directive/customDirective.ts +0 -178
- package/src/directive/index.ts +0 -18
- package/src/hooks/useCrypto.ts +0 -36
- package/src/hooks/useExpose.ts +0 -60
- package/src/layout/component/aside.vue +0 -160
- package/src/layout/component/columnsAside.vue +0 -299
- package/src/layout/component/header.vue +0 -18
- package/src/layout/component/main.vue +0 -65
- package/src/layout/footer/index.vue +0 -25
- package/src/layout/index.vue +0 -53
- package/src/layout/lockScreen/index.vue +0 -352
- package/src/layout/logo/index.vue +0 -75
- package/src/layout/main/classic.vue +0 -73
- package/src/layout/main/columns.vue +0 -73
- package/src/layout/main/defaults.vue +0 -73
- package/src/layout/main/transverse.vue +0 -60
- package/src/layout/navBars/index.vue +0 -35
- package/src/layout/navBars/tagsView/contextmenu.vue +0 -133
- package/src/layout/navBars/tagsView/tagsView.vue +0 -737
- package/src/layout/navBars/topBar/breadcrumb.vue +0 -146
- package/src/layout/navBars/topBar/closeFull.vue +0 -53
- package/src/layout/navBars/topBar/index.vue +0 -107
- package/src/layout/navBars/topBar/search.vue +0 -123
- package/src/layout/navBars/topBar/setings.vue +0 -789
- package/src/layout/navBars/topBar/user.vue +0 -222
- package/src/layout/navBars/topBar/userNews.vue +0 -107
- package/src/layout/navMenu/horizontal.vue +0 -138
- package/src/layout/navMenu/subItem.vue +0 -49
- package/src/layout/navMenu/vertical.vue +0 -100
- package/src/layout/routerView/iframes.vue +0 -101
- package/src/layout/routerView/link.vue +0 -93
- package/src/layout/routerView/parent.vue +0 -104
- package/src/layout/upgrade/index.vue +0 -147
- package/src/main.ts +0 -70
- package/src/router/backEnd.ts +0 -173
- package/src/router/frontEnd.ts +0 -155
- package/src/router/index.ts +0 -138
- package/src/router/route.ts +0 -94
- package/src/stores/index.ts +0 -8
- package/src/stores/keepAliveNames.ts +0 -38
- package/src/stores/requestOldRoutes.ts +0 -16
- package/src/stores/routesList.ts +0 -26
- package/src/stores/tagsViewRoutes.ts +0 -23
- package/src/stores/themeConfig.ts +0 -142
- package/src/stores/userInfo.ts +0 -65
- package/src/style/index.scss +0 -0
- package/src/style/tailwind.css +0 -29
- package/src/theme/app.scss +0 -333
- package/src/theme/common/transition.scss +0 -147
- package/src/theme/dark.scss +0 -255
- package/src/theme/element.scss +0 -321
- package/src/theme/iconSelector.scss +0 -31
- package/src/theme/index.scss +0 -8
- package/src/theme/loading.scss +0 -51
- package/src/theme/media/chart.scss +0 -94
- package/src/theme/media/cityLinkage.scss +0 -10
- package/src/theme/media/date.scss +0 -25
- package/src/theme/media/dialog.scss +0 -12
- package/src/theme/media/error.scss +0 -45
- package/src/theme/media/form.scss +0 -31
- package/src/theme/media/home.scss +0 -23
- package/src/theme/media/index.scss +0 -15
- package/src/theme/media/layout.scss +0 -63
- package/src/theme/media/login.scss +0 -74
- package/src/theme/media/media.scss +0 -13
- package/src/theme/media/pagination.scss +0 -15
- package/src/theme/media/personal.scss +0 -16
- package/src/theme/media/scrollbar.scss +0 -56
- package/src/theme/media/tagsView.scss +0 -11
- package/src/theme/mixins/index.scss +0 -56
- package/src/theme/other.scss +0 -36
- package/src/theme/tableTool.scss +0 -27
- package/src/theme/waves.scss +0 -101
- package/src/types/auth.d.ts +0 -44
- package/src/types/axios.d.ts +0 -13
- package/src/types/components.d.ts +0 -30
- package/src/types/customData.d.ts +0 -163
- package/src/types/form.ts +0 -68
- package/src/types/formItem/autocomplete.ts +0 -43
- package/src/types/formItem/button.ts +0 -39
- package/src/types/formItem/input.ts +0 -66
- package/src/types/formItem/inputNumber.ts +0 -42
- package/src/types/formItem/selelct.ts +0 -54
- package/src/types/formItem/treeSelect.ts +0 -37
- package/src/types/formTable.d.ts +0 -210
- package/src/types/global.d.ts +0 -118
- package/src/types/layout.d.ts +0 -59
- package/src/types/mitt.d.ts +0 -38
- package/src/types/pinia.d.ts +0 -92
- package/src/types/views.d.ts +0 -331
- package/src/utils/arrayOperation.ts +0 -65
- package/src/utils/authFunction.ts +0 -38
- package/src/utils/build.ts +0 -124
- package/src/utils/commonFunction.ts +0 -64
- package/src/utils/formatTime.ts +0 -137
- package/src/utils/getDataType.ts +0 -136
- package/src/utils/getStyleSheets.ts +0 -101
- package/src/utils/loading.ts +0 -44
- package/src/utils/mitt.ts +0 -8
- package/src/utils/other.ts +0 -214
- package/src/utils/request.ts +0 -82
- package/src/utils/setIconfont.ts +0 -48
- package/src/utils/showMessage.ts +0 -57
- package/src/utils/showMessageBox.ts +0 -39
- package/src/utils/showNotification.ts +0 -50
- package/src/utils/showPopup.ts +0 -81
- package/src/utils/storage.ts +0 -137
- package/src/utils/theme.ts +0 -65
- package/src/utils/toolsValidate.ts +0 -370
- package/src/utils/watermark.ts +0 -47
- package/src/views/error/401.vue +0 -88
- package/src/views/error/404.vue +0 -89
- package/src/views/home/index.vue +0 -62
- package/src/views/login/component/account.vue +0 -172
- package/src/views/login/component/mobile.vue +0 -72
- package/src/views/login/component/scan.vue +0 -63
- package/src/views/login/index.vue +0 -254
- package/src/views/system/auth/index.vue +0 -48
- package/src/views/system/auth/list.ts +0 -50
- package/src/views/system/auth/useAuth.ts +0 -34
- package/src/views/system/dept/dialog.vue +0 -167
- package/src/views/system/dept/index.vue +0 -135
- package/src/views/system/dic/dialog.vue +0 -150
- package/src/views/system/dic/index.vue +0 -132
- package/src/views/system/form/data.json +0 -360
- package/src/views/system/form/index.vue +0 -24
- package/src/views/system/formSetting/components/hsBtn/src/hsAttrBtn.vue +0 -58
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnPanel.vue +0 -51
- package/src/views/system/formSetting/components/hsBtn/useAttrBtn.ts +0 -129
- package/src/views/system/formSetting/components/hsBtn/useBtnConfigList.ts +0 -73
- package/src/views/system/formSetting/components/hsExpand/src/hsExpand.vue +0 -27
- package/src/views/system/formSetting/components/hsExpand/useExpand.ts +0 -9
- package/src/views/system/formSetting/components/hsForm/src/hsAttrForm.vue +0 -124
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsForm/src/hsFormPanel.vue +0 -152
- package/src/views/system/formSetting/components/hsForm/src/hsFormParse.vue +0 -33
- package/src/views/system/formSetting/components/hsForm/useAttrForm.ts +0 -109
- package/src/views/system/formSetting/components/hsForm/useFormListConfig.ts +0 -70
- package/src/views/system/formSetting/components/hsPageTree/configData.ts +0 -3700
- package/src/views/system/formSetting/components/hsPageTree/src/hsPageTree.vue +0 -30
- package/src/views/system/formSetting/components/hsPageTree/usePageTree.ts +0 -50
- package/src/views/system/formSetting/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/views/system/formSetting/components/hsSaveForm/src/saveForm.vue +0 -47
- package/src/views/system/formSetting/components/hsSaveForm/useSaveForm.ts +0 -122
- package/src/views/system/formSetting/components/hsTables/src/hsAttrTable.vue +0 -91
- package/src/views/system/formSetting/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfig.vue +0 -39
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsTables/src/hsTablePanel.vue +0 -56
- package/src/views/system/formSetting/components/hsTables/src/hsTableParse.vue +0 -29
- package/src/views/system/formSetting/components/hsTables/useAttrTable.ts +0 -125
- package/src/views/system/formSetting/components/hsTables/useTableConfigList.ts +0 -77
- package/src/views/system/formSetting/components/selectConfig/config.ts +0 -476
- package/src/views/system/formSetting/components/selectConfig/selectConfig.vue +0 -30
- package/src/views/system/formSetting/data.json +0 -360
- package/src/views/system/formSetting/default/baseBtnConfig.ts +0 -216
- package/src/views/system/formSetting/default/baseFormConfig.ts +0 -567
- package/src/views/system/formSetting/default/baseTableConfig.ts +0 -2353
- package/src/views/system/formSetting/formConfig.vue +0 -108
- package/src/views/system/formSetting/index.vue +0 -35
- package/src/views/system/formSetting/menuType.d.ts +0 -12
- package/src/views/system/formSetting/panelConfig.json +0 -164
- package/src/views/system/formSetting/useForm.ts +0 -89
- package/src/views/system/formSetting/useFormConfig.ts +0 -192
- package/src/views/system/menu/dialog.vue +0 -285
- package/src/views/system/menu/index.vue +0 -180
- package/src/views/system/page/components/hsPageTree/configData.ts +0 -3700
- package/src/views/system/page/components/hsPageTree/src/hsPageTree.vue +0 -30
- package/src/views/system/page/components/hsPageTree/usePageTree.ts +0 -49
- package/src/views/system/page/index.vue +0 -32
- package/src/views/system/page/menuType.d.ts +0 -12
- package/src/views/system/page/usePage.ts +0 -125
- package/src/views/system/role/dialog.vue +0 -236
- package/src/views/system/role/index.vue +0 -146
- package/src/views/system/table/data.json +0 -747
- package/src/views/system/table/formate.js +0 -49
- package/src/views/system/table/index.vue +0 -53
- package/src/views/system/user/dialog.vue +0 -187
- package/src/views/system/user/index.vue +0 -161
- package/src/views/test/test/components/hsBtn/src/hsAttrBtn.vue +0 -58
- package/src/views/test/test/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/views/test/test/components/hsBtn/src/hsBtnPanel.vue +0 -51
- package/src/views/test/test/components/hsBtn/useAttrBtn.ts +0 -129
- package/src/views/test/test/components/hsBtn/useBtnConfigList.ts +0 -73
- package/src/views/test/test/components/hsExpand/src/hsExpand.vue +0 -27
- package/src/views/test/test/components/hsExpand/useExpand.ts +0 -9
- package/src/views/test/test/components/hsForm/src/hsAttrForm.vue +0 -124
- package/src/views/test/test/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/views/test/test/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/views/test/test/components/hsForm/src/hsFormPanel.vue +0 -152
- package/src/views/test/test/components/hsForm/src/hsFormParse.vue +0 -33
- package/src/views/test/test/components/hsForm/useAttrForm.ts +0 -109
- package/src/views/test/test/components/hsForm/useFormListConfig.ts +0 -70
- package/src/views/test/test/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/views/test/test/components/hsSaveForm/src/saveForm.vue +0 -47
- package/src/views/test/test/components/hsSaveForm/useSaveForm.ts +0 -122
- package/src/views/test/test/components/hsTables/src/hsAttrTable.vue +0 -91
- package/src/views/test/test/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/views/test/test/components/hsTables/src/hsTableConfig.vue +0 -39
- package/src/views/test/test/components/hsTables/src/hsTableConfigList.vue +0 -45
- package/src/views/test/test/components/hsTables/src/hsTablePanel.vue +0 -56
- package/src/views/test/test/components/hsTables/src/hsTableParse.vue +0 -29
- package/src/views/test/test/components/hsTables/useAttrTable.ts +0 -125
- package/src/views/test/test/components/hsTables/useTableConfigList.ts +0 -77
- package/src/views/test/test/components/selectConfig/config.ts +0 -476
- package/src/views/test/test/components/selectConfig/selectConfig.vue +0 -30
- package/src/views/test/test/data.json +0 -360
- package/src/views/test/test/default/baseBtnConfig.ts +0 -216
- package/src/views/test/test/default/baseFormConfig.ts +0 -567
- package/src/views/test/test/default/baseTableConfig.ts +0 -2353
- package/src/views/test/test/formConfig.vue +0 -102
- package/src/views/test/test/test.vue +0 -28
- package/src/views/test/test/test3.vue +0 -24
- package/src/views/test/test/test4.vue +0 -107
- package/src/views/test/test/test/345/211/257/346/234/254.vue +0 -2424
- package/src/views/test/test/useFormConfig.ts +0 -192
- package/src/views/test/test2/test2.vue +0 -17
- package/src/views/test/test3/test.vue +0 -20
- package/tailwind.config.js +0 -12
- package/tsconfig.json +0 -75
- package/vite.config.ts +0 -123
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="layout-columns-aside">
|
|
3
|
-
<el-scrollbar>
|
|
4
|
-
<ul @mouseleave="onColumnsAsideMenuMouseleave()">
|
|
5
|
-
<li
|
|
6
|
-
v-for="(v, k) in state.columnsAsideList"
|
|
7
|
-
:key="k"
|
|
8
|
-
@click="onColumnsAsideMenuClick(v)"
|
|
9
|
-
@mouseenter="onColumnsAsideMenuMouseenter(v, k)"
|
|
10
|
-
:ref="
|
|
11
|
-
(el) => {
|
|
12
|
-
if (el) columnsAsideOffsetTopRefs[k] = el;
|
|
13
|
-
}
|
|
14
|
-
"
|
|
15
|
-
:class="{ 'layout-columns-active': state.liIndex === k, 'layout-columns-hover': state.liHoverIndex === k }"
|
|
16
|
-
:title="v.meta.title"
|
|
17
|
-
>
|
|
18
|
-
<div :class="themeConfig.columnsAsideLayout" v-if="!v.meta.isLink || (v.meta.isLink && v.meta.isIframe)">
|
|
19
|
-
<SvgIcon :name="v.meta.icon" />
|
|
20
|
-
<div class="columns-vertical-title font12">
|
|
21
|
-
{{
|
|
22
|
-
v.meta.title && v.meta.title.length >= 4
|
|
23
|
-
? v.meta.title.substr(0, themeConfig.columnsAsideLayout === 'columns-vertical' ? 4 : 3)
|
|
24
|
-
: v.meta.title
|
|
25
|
-
}}
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div :class="themeConfig.columnsAsideLayout" v-else>
|
|
29
|
-
<a :href="v.meta.isLink" target="_blank">
|
|
30
|
-
<SvgIcon :name="v.meta.icon" />
|
|
31
|
-
<div class="columns-vertical-title font12">
|
|
32
|
-
{{
|
|
33
|
-
v.meta.title && v.meta.title.length >= 4
|
|
34
|
-
? v.meta.title.substr(0, themeConfig.columnsAsideLayout === 'columns-vertical' ? 4 : 3)
|
|
35
|
-
: v.meta.title
|
|
36
|
-
}}
|
|
37
|
-
</div>
|
|
38
|
-
</a>
|
|
39
|
-
</div>
|
|
40
|
-
</li>
|
|
41
|
-
<div ref="columnsAsideActiveRef" :class="themeConfig.columnsAsideStyle"></div>
|
|
42
|
-
</ul>
|
|
43
|
-
</el-scrollbar>
|
|
44
|
-
</div>
|
|
45
|
-
</template>
|
|
46
|
-
|
|
47
|
-
<script setup lang="ts" name="layoutColumnsAside">
|
|
48
|
-
import { reactive, ref, onMounted, nextTick, watch, onUnmounted } from 'vue';
|
|
49
|
-
import { useRoute, useRouter, onBeforeRouteUpdate, RouteRecordRaw } from 'vue-router';
|
|
50
|
-
import { storeToRefs } from 'pinia';
|
|
51
|
-
import { useRoutesList } from '/@/stores/routesList';
|
|
52
|
-
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
53
|
-
import mittBus from '/@/utils/mitt';
|
|
54
|
-
|
|
55
|
-
// 定义变量内容
|
|
56
|
-
const columnsAsideOffsetTopRefs = ref<RefType>([]);
|
|
57
|
-
const columnsAsideActiveRef = ref();
|
|
58
|
-
const stores = useRoutesList();
|
|
59
|
-
const storesThemeConfig = useThemeConfig();
|
|
60
|
-
const { routesList, isColumnsMenuHover, isColumnsNavHover } = storeToRefs(stores);
|
|
61
|
-
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
62
|
-
const route = useRoute();
|
|
63
|
-
const router = useRouter();
|
|
64
|
-
const state = reactive<ColumnsAsideState>({
|
|
65
|
-
columnsAsideList: [],
|
|
66
|
-
liIndex: 0,
|
|
67
|
-
liOldIndex: null,
|
|
68
|
-
liHoverIndex: null,
|
|
69
|
-
liOldPath: null,
|
|
70
|
-
difference: 0,
|
|
71
|
-
routeSplit: [],
|
|
72
|
-
});
|
|
73
|
-
// 传送当前子级数据到菜单中
|
|
74
|
-
const setSendChildren = (path: string) => {
|
|
75
|
-
const currentPathSplit = path.split('/');
|
|
76
|
-
let currentData: MittMenu = { children: [] };
|
|
77
|
-
state.columnsAsideList.map((v: RouteItem, k: number) => {
|
|
78
|
-
if (v.path === `/${currentPathSplit[1]}`) {
|
|
79
|
-
v['k'] = k;
|
|
80
|
-
currentData['item'] = { ...v };
|
|
81
|
-
currentData['children'] = [{ ...v }];
|
|
82
|
-
if (v.children) currentData['children'] = v.children;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
return currentData;
|
|
86
|
-
};
|
|
87
|
-
// 设置菜单高亮位置移动
|
|
88
|
-
const setColumnsAsideMove = (k: number) => {
|
|
89
|
-
if (k === undefined) return false;
|
|
90
|
-
state.liIndex = k;
|
|
91
|
-
columnsAsideActiveRef.value.style.top = `${columnsAsideOffsetTopRefs.value[k].offsetTop + state.difference}px`;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// 设置高亮动态位置
|
|
95
|
-
const onColumnsAsideDown = (k: number) => {
|
|
96
|
-
nextTick(() => {
|
|
97
|
-
setColumnsAsideMove(k);
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
// 路由过滤递归函数
|
|
102
|
-
const filterRoutesFun = <T extends RouteItem>(arr: T[]): T[] => {
|
|
103
|
-
return arr
|
|
104
|
-
.filter((item: T) => !item.meta?.isHide)
|
|
105
|
-
.map((item: T) => {
|
|
106
|
-
item = Object.assign({}, item);
|
|
107
|
-
if (item.children) item.children = filterRoutesFun(item.children);
|
|
108
|
-
return item;
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
// 菜单高亮点击事件
|
|
112
|
-
const onColumnsAsideMenuClick = (v: RouteItem) => {
|
|
113
|
-
let { path, redirect } = v;
|
|
114
|
-
if (redirect) {
|
|
115
|
-
onColumnsAsideDown(v.k);
|
|
116
|
-
if (route.path.startsWith(redirect)) mittBus.emit('setSendColumnsChildren', setSendChildren(redirect));
|
|
117
|
-
else router.push(redirect);
|
|
118
|
-
} else {
|
|
119
|
-
if (!v.children) {
|
|
120
|
-
router.push(path);
|
|
121
|
-
} else {
|
|
122
|
-
// 显示子级菜单
|
|
123
|
-
const resData: MittMenu = setSendChildren(path);
|
|
124
|
-
if (Object.keys(resData).length <= 0) return false;
|
|
125
|
-
onColumnsAsideDown(resData.item?.k);
|
|
126
|
-
mittBus.emit('setSendColumnsChildren', resData);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
// 一个路由设置自动收起菜单
|
|
130
|
-
if (!v.children) themeConfig.value.isCollapse = true;
|
|
131
|
-
else if (v.children.length > 1) themeConfig.value.isCollapse = false;
|
|
132
|
-
};
|
|
133
|
-
// 鼠标移入时,显示当前的子级菜单
|
|
134
|
-
const onColumnsAsideMenuMouseenter = (v: RouteRecordRaw, k: number) => {
|
|
135
|
-
if (!themeConfig.value.isColumnsMenuHoverPreload) return false;
|
|
136
|
-
let { path } = v;
|
|
137
|
-
state.liOldPath = path;
|
|
138
|
-
state.liOldIndex = k;
|
|
139
|
-
state.liHoverIndex = k;
|
|
140
|
-
mittBus.emit('setSendColumnsChildren', setSendChildren(path));
|
|
141
|
-
stores.setColumnsMenuHover(false);
|
|
142
|
-
stores.setColumnsNavHover(true);
|
|
143
|
-
};
|
|
144
|
-
// 鼠标移走时,显示原来的子级菜单
|
|
145
|
-
const onColumnsAsideMenuMouseleave = async () => {
|
|
146
|
-
if (!themeConfig.value.isColumnsMenuHoverPreload) return false;
|
|
147
|
-
await stores.setColumnsNavHover(false);
|
|
148
|
-
// 添加延时器,防止拿到的 store.state.routesList 值不是最新的
|
|
149
|
-
setTimeout(() => {
|
|
150
|
-
if (!isColumnsMenuHover && !isColumnsNavHover) mittBus.emit('restoreDefault');
|
|
151
|
-
}, 100);
|
|
152
|
-
};
|
|
153
|
-
// 设置只有一个路由时设置自动收起菜单
|
|
154
|
-
const setMenuAutoCollaps = (path: string) => {
|
|
155
|
-
const resData: MittMenu = setSendChildren(path);
|
|
156
|
-
resData.children.length <= 1 ? (themeConfig.value.isCollapse = true) : (themeConfig.value.isCollapse = false);
|
|
157
|
-
return resData;
|
|
158
|
-
};
|
|
159
|
-
// 设置/过滤路由(非静态路由/是否显示在菜单中)
|
|
160
|
-
const setFilterRoutes = () => {
|
|
161
|
-
state.columnsAsideList = filterRoutesFun(routesList.value);
|
|
162
|
-
const resData: MittMenu = setMenuAutoCollaps(route.path);
|
|
163
|
-
onColumnsAsideDown(resData.item?.k);
|
|
164
|
-
// 延迟 500 毫秒更新,防止 aside.vue 组件 setSendColumnsChildren 还没有注册
|
|
165
|
-
setTimeout(() => {
|
|
166
|
-
mittBus.emit('setSendColumnsChildren', resData);
|
|
167
|
-
}, 500);
|
|
168
|
-
};
|
|
169
|
-
// tagsView 点击时,根据路由查找下标 columnsAsideList,实现左侧菜单高亮
|
|
170
|
-
const setColumnsMenuHighlight = (path: string) => {
|
|
171
|
-
state.routeSplit = path.split('/');
|
|
172
|
-
state.routeSplit.shift();
|
|
173
|
-
const routeFirst = `/${state.routeSplit[0]}`;
|
|
174
|
-
const currentSplitRoute = state.columnsAsideList.find((v: RouteItem) => v.path === routeFirst);
|
|
175
|
-
if (!currentSplitRoute) return false;
|
|
176
|
-
// 延迟拿值,防止取不到
|
|
177
|
-
setTimeout(() => {
|
|
178
|
-
onColumnsAsideDown(currentSplitRoute.k);
|
|
179
|
-
}, 0);
|
|
180
|
-
};
|
|
181
|
-
// 页面加载时
|
|
182
|
-
onMounted(() => {
|
|
183
|
-
setFilterRoutes();
|
|
184
|
-
// 销毁变量,防止鼠标再次移入时,保留了上次的记录
|
|
185
|
-
mittBus.on('restoreDefault', () => {
|
|
186
|
-
state.liOldIndex = null;
|
|
187
|
-
state.liOldPath = null;
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
// 页面卸载时
|
|
191
|
-
onUnmounted(() => {
|
|
192
|
-
mittBus.off('restoreDefault');
|
|
193
|
-
});
|
|
194
|
-
// 路由更新时
|
|
195
|
-
onBeforeRouteUpdate((to) => {
|
|
196
|
-
const resData = setMenuAutoCollaps(to.path);
|
|
197
|
-
setColumnsMenuHighlight(to.path);
|
|
198
|
-
mittBus.emit('setSendColumnsChildren', resData);
|
|
199
|
-
});
|
|
200
|
-
// 监听布局配置信息的变化,动态增加菜单高亮位置移动像素
|
|
201
|
-
watch(
|
|
202
|
-
[() => themeConfig.value.columnsAsideStyle, isColumnsMenuHover, isColumnsNavHover],
|
|
203
|
-
() => {
|
|
204
|
-
themeConfig.value.columnsAsideStyle === 'columnsRound' ? (state.difference = 3) : (state.difference = 0);
|
|
205
|
-
if (!isColumnsMenuHover.value && !isColumnsNavHover.value) {
|
|
206
|
-
state.liHoverIndex = null;
|
|
207
|
-
mittBus.emit('setSendColumnsChildren', setSendChildren(route.path));
|
|
208
|
-
} else {
|
|
209
|
-
state.liHoverIndex = state.liOldIndex;
|
|
210
|
-
if (!state.liOldPath) return false;
|
|
211
|
-
mittBus.emit('setSendColumnsChildren', setSendChildren(state.liOldPath));
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
deep: true,
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
|
-
</script>
|
|
219
|
-
|
|
220
|
-
<style scoped lang="scss">
|
|
221
|
-
.layout-columns-aside {
|
|
222
|
-
width: 70px;
|
|
223
|
-
height: 100%;
|
|
224
|
-
background: var(--next-bg-columnsMenuBar);
|
|
225
|
-
ul {
|
|
226
|
-
position: relative;
|
|
227
|
-
.layout-columns-active,
|
|
228
|
-
.layout-columns-active a {
|
|
229
|
-
color: var(--next-bg-columnsMenuBarColor) !important;
|
|
230
|
-
transition: 0.3s ease-in-out;
|
|
231
|
-
}
|
|
232
|
-
.layout-columns-hover {
|
|
233
|
-
color: var(--el-color-primary);
|
|
234
|
-
a {
|
|
235
|
-
color: var(--el-color-primary);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
li {
|
|
239
|
-
color: var(--next-bg-columnsMenuBarColor);
|
|
240
|
-
width: 100%;
|
|
241
|
-
height: 50px;
|
|
242
|
-
text-align: center;
|
|
243
|
-
display: flex;
|
|
244
|
-
cursor: pointer;
|
|
245
|
-
position: relative;
|
|
246
|
-
z-index: 1;
|
|
247
|
-
&:hover {
|
|
248
|
-
@extend .layout-columns-hover;
|
|
249
|
-
}
|
|
250
|
-
.columns-vertical {
|
|
251
|
-
margin: auto;
|
|
252
|
-
.columns-vertical-title {
|
|
253
|
-
padding-top: 1px;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
.columns-horizontal {
|
|
257
|
-
display: flex;
|
|
258
|
-
height: 50px;
|
|
259
|
-
width: 100%;
|
|
260
|
-
align-items: center;
|
|
261
|
-
padding: 0 5px;
|
|
262
|
-
i {
|
|
263
|
-
margin-right: 3px;
|
|
264
|
-
}
|
|
265
|
-
a {
|
|
266
|
-
display: flex;
|
|
267
|
-
.columns-horizontal-title {
|
|
268
|
-
padding-top: 1px;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
a {
|
|
273
|
-
text-decoration: none;
|
|
274
|
-
color: var(--next-bg-columnsMenuBarColor);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
.columns-round {
|
|
278
|
-
background: var(--el-color-primary);
|
|
279
|
-
color: var(--el-color-white);
|
|
280
|
-
position: absolute;
|
|
281
|
-
left: 50%;
|
|
282
|
-
top: 2px;
|
|
283
|
-
height: 44px;
|
|
284
|
-
width: 65px;
|
|
285
|
-
transform: translateX(-50%);
|
|
286
|
-
z-index: 0;
|
|
287
|
-
transition: 0.3s ease-in-out;
|
|
288
|
-
border-radius: 5px;
|
|
289
|
-
}
|
|
290
|
-
.columns-card {
|
|
291
|
-
@extend .columns-round;
|
|
292
|
-
top: 0;
|
|
293
|
-
height: 50px;
|
|
294
|
-
width: 100%;
|
|
295
|
-
border-radius: 0;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-header class="layout-header" v-show="!isTagsViewCurrenFull">
|
|
3
|
-
<NavBarsIndex />
|
|
4
|
-
</el-header>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts" name="layoutHeader">
|
|
8
|
-
import { defineAsyncComponent } from 'vue';
|
|
9
|
-
import { storeToRefs } from 'pinia';
|
|
10
|
-
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
|
|
11
|
-
|
|
12
|
-
// 引入组件
|
|
13
|
-
const NavBarsIndex = defineAsyncComponent(() => import('/@/layout/navBars/index.vue'));
|
|
14
|
-
|
|
15
|
-
// 定义变量内容
|
|
16
|
-
const storesTagsViewRoutes = useTagsViewRoutes();
|
|
17
|
-
const { isTagsViewCurrenFull } = storeToRefs(storesTagsViewRoutes);
|
|
18
|
-
</script>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-main class="layout-main" :style="isFixedHeader ? `height: calc(100% - ${setMainHeight})` : `minHeight: calc(100% - ${setMainHeight})`">
|
|
3
|
-
<el-scrollbar
|
|
4
|
-
ref="layoutMainScrollbarRef"
|
|
5
|
-
class="layout-main-scroll layout-backtop-header-fixed"
|
|
6
|
-
wrap-class="layout-main-scroll"
|
|
7
|
-
view-class="layout-main-scroll"
|
|
8
|
-
>
|
|
9
|
-
<LayoutParentView />
|
|
10
|
-
<LayoutFooter v-if="isFooter" />
|
|
11
|
-
</el-scrollbar>
|
|
12
|
-
<el-backtop :target="setBacktopClass" />
|
|
13
|
-
</el-main>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script setup lang="ts" name="layoutMain">
|
|
17
|
-
import { defineAsyncComponent, onMounted, computed, ref } from 'vue';
|
|
18
|
-
import { useRoute } from 'vue-router';
|
|
19
|
-
import { storeToRefs } from 'pinia';
|
|
20
|
-
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
|
|
21
|
-
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
22
|
-
import { NextLoading } from '/@/utils/loading';
|
|
23
|
-
|
|
24
|
-
// 引入组件
|
|
25
|
-
const LayoutParentView = defineAsyncComponent(() => import('/@/layout/routerView/parent.vue'));
|
|
26
|
-
const LayoutFooter = defineAsyncComponent(() => import('/@/layout/footer/index.vue'));
|
|
27
|
-
|
|
28
|
-
// 定义变量内容
|
|
29
|
-
const layoutMainScrollbarRef = ref();
|
|
30
|
-
const route = useRoute();
|
|
31
|
-
const storesTagsViewRoutes = useTagsViewRoutes();
|
|
32
|
-
const storesThemeConfig = useThemeConfig();
|
|
33
|
-
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
34
|
-
const { isTagsViewCurrenFull } = storeToRefs(storesTagsViewRoutes);
|
|
35
|
-
|
|
36
|
-
// 设置 footer 显示/隐藏
|
|
37
|
-
const isFooter = computed(() => {
|
|
38
|
-
return themeConfig.value.isFooter && !route.meta.isIframe;
|
|
39
|
-
});
|
|
40
|
-
// 设置 header 固定
|
|
41
|
-
const isFixedHeader = computed(() => {
|
|
42
|
-
return themeConfig.value.isFixedHeader;
|
|
43
|
-
});
|
|
44
|
-
// 设置 Backtop 回到顶部
|
|
45
|
-
const setBacktopClass = computed(() => {
|
|
46
|
-
if (themeConfig.value.isFixedHeader) return `.layout-backtop-header-fixed .el-scrollbar__wrap`;
|
|
47
|
-
else return `.layout-backtop .el-scrollbar__wrap`;
|
|
48
|
-
});
|
|
49
|
-
// 设置主内容区的高度
|
|
50
|
-
const setMainHeight = computed(() => {
|
|
51
|
-
if (isTagsViewCurrenFull.value) return '0px';
|
|
52
|
-
const { isTagsview, layout } = themeConfig.value;
|
|
53
|
-
if (isTagsview && layout !== 'classic') return '85px';
|
|
54
|
-
else return '51px';
|
|
55
|
-
});
|
|
56
|
-
// 页面加载前
|
|
57
|
-
onMounted(() => {
|
|
58
|
-
NextLoading.done(600);
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
// 暴露变量
|
|
62
|
-
defineExpose({
|
|
63
|
-
layoutMainScrollbarRef,
|
|
64
|
-
});
|
|
65
|
-
</script>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="layout-footer pb15">
|
|
3
|
-
<div class="layout-footer-warp">
|
|
4
|
-
<div>hs-admin </div>
|
|
5
|
-
<div class="mt5">杭州市华速科技公司版权所有</div>
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts" name="layoutFooter">
|
|
11
|
-
// 此处需有内容(注释也得),否则缓存将失败
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<style scoped lang="scss">
|
|
15
|
-
.layout-footer {
|
|
16
|
-
width: 100%;
|
|
17
|
-
display: flex;
|
|
18
|
-
&-warp {
|
|
19
|
-
margin: auto;
|
|
20
|
-
color: var(--el-text-color-secondary);
|
|
21
|
-
text-align: center;
|
|
22
|
-
animation: error-num 0.3s ease;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
</style>
|
package/src/layout/index.vue
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component :is="layouts[themeConfig.layout]" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="ts" name="layout">
|
|
6
|
-
import { onBeforeMount, onUnmounted, defineAsyncComponent } from 'vue';
|
|
7
|
-
import { storeToRefs } from 'pinia';
|
|
8
|
-
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
9
|
-
import { systemStore } from '/@/utils/storage';
|
|
10
|
-
import mittBus from '/@/utils/mitt';
|
|
11
|
-
|
|
12
|
-
// 引入组件
|
|
13
|
-
const layouts: any = {
|
|
14
|
-
defaults: defineAsyncComponent(() => import('/@/layout/main/defaults.vue')),
|
|
15
|
-
classic: defineAsyncComponent(() => import('/@/layout/main/classic.vue')),
|
|
16
|
-
transverse: defineAsyncComponent(() => import('/@/layout/main/transverse.vue')),
|
|
17
|
-
columns: defineAsyncComponent(() => import('/@/layout/main/columns.vue')),
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// 定义变量内容
|
|
21
|
-
const storesThemeConfig = useThemeConfig();
|
|
22
|
-
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
23
|
-
|
|
24
|
-
// 窗口大小改变时(适配移动端)
|
|
25
|
-
const onLayoutResize = async () => {
|
|
26
|
-
const oldLayout = await systemStore.get('oldLayout');
|
|
27
|
-
if (!oldLayout) {
|
|
28
|
-
await systemStore.set('oldLayout', themeConfig.value.layout);
|
|
29
|
-
}
|
|
30
|
-
const clientWidth = document.body.clientWidth;
|
|
31
|
-
if (clientWidth < 1000) {
|
|
32
|
-
themeConfig.value.isCollapse = false;
|
|
33
|
-
mittBus.emit('layoutMobileResize', {
|
|
34
|
-
layout: 'defaults',
|
|
35
|
-
clientWidth,
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
mittBus.emit('layoutMobileResize', {
|
|
39
|
-
layout: oldLayout ? oldLayout : themeConfig.value.layout,
|
|
40
|
-
clientWidth,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
// 页面加载前
|
|
45
|
-
onBeforeMount(() => {
|
|
46
|
-
onLayoutResize();
|
|
47
|
-
window.addEventListener('resize', onLayoutResize);
|
|
48
|
-
});
|
|
49
|
-
// 页面卸载时
|
|
50
|
-
onUnmounted(() => {
|
|
51
|
-
window.removeEventListener('resize', onLayoutResize);
|
|
52
|
-
});
|
|
53
|
-
</script>
|