| src/components/global/MapContainer.vue | ●●●●● patch | view | raw | blame | history | |
| src/components/global/publicContent.vue | ●●●●● patch | view | raw | blame | history | |
| src/main.js | ●●●●● patch | view | raw | blame | history |
src/components/global/MapContainer.vue
@@ -2,7 +2,7 @@ * @Author: shuishen 1109946754@qq.com * @Date: 2024-10-25 15:07:51 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-11-27 15:23:52 * @LastEditTime: 2024-11-27 19:29:23 * @FilePath: \bigScreen\src\components\global\MapContainer.vue * @Description: * @@ -63,6 +63,8 @@ }) onUnmounted(() => { window.$viewer && window.$viewer.destroy() delete window.$viewer store.setLoadMap(false) }) </script> src/components/global/publicContent.vue
New file @@ -0,0 +1,31 @@ <!-- * @Author: shuishen 1109946754@qq.com * @Date: 2023-03-13 14:54:26 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-10-25 18:33:46 * @FilePath: \bigScreen\src\views\statistics\components\box\publicContent.vue * @Description: * * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. --> <script> export default { name: 'publicContent' } </script> <script setup> </script> <template> <div class="content"> <slot name="content"></slot> </div> </template> <style lang="scss" scoped> .content { padding: 20px 0; height: calc(100% - 32px); } </style> src/main.js
@@ -27,6 +27,7 @@ import MapContainer from 'components/global/MapContainer.vue' import publicBox from 'components/global/publicBox.vue' import TitleBox from 'components/global/TitleBox.vue' import publicContent from 'components/global/publicContent.vue' import { getElementLabelLine } from 'element-tree-line' import 'element-tree-line/dist/style.css' @@ -46,6 +47,7 @@ app.component('MapContainer', MapContainer) app.component('publicBox', publicBox) app.component('TitleBox', TitleBox) app.component('publicContent', publicContent) app.use(router) app.use(ElementPlus)