| | |
| | | <template slot="title" v-if="item.icon">
|
| | | <img :src="item.icon" :title="item.label"/>
|
| | | </template>
|
| | | <template slot="title" v-else>{{item.label}}</template>
|
| | | <template slot="title" v-else>{{ item.label }}</template>
|
| | | <base-nav-menu-item v-for="child in item.items" :key="child.title" :menuList='[child]'></base-nav-menu-item>
|
| | | </el-submenu>
|
| | | </template>
|
| | | <template v-else>
|
| | | <el-menu-item :index="item.index" :key="index">
|
| | | <!-- <el-radio></el-radio>-->
|
| | | {{ item.label }}
|
| | | </el-menu-item>
|
| | | </template>
|
| | |
| | | </script>
|
| | |
|
| | | <style lang="less" scoped>
|
| | | .el-menu--popup {
|
| | | min-width: 100px;
|
| | | }
|
| | | .base-nav-menu {
|
| | | height: 38px;
|
| | | line-height: 38px;
|
| | | display: flex;
|
| | | align-items: center;
|
| | | justify-content: space-around;
|
| | | justify-content: center;
|
| | | outline: none;
|
| | | border: none;
|
| | | //margin-left: 20px;
|
| | | padding: 0;
|
| | | .el-menu--popup {
|
| | | min-width: 100px;
|
| | | }
|
| | | }
|
| | |
|
| | | .el-submenu {
|
| | | .el-submenu__title {
|
| | | border-radius: 50%;
|
| | |
|
| | | .el-icon-arrow-down {
|
| | | display: none;
|
| | | }
|
| | |
|
| | | }
|
| | | .el-menu--horizontal {
|
| | | .el-menu--popup {
|
| | | min-width: 100px;
|
| | | }
|
| | | }
|
| | | </style>
|
| | |
| | | mode="horizontal" |
| | | :collapse="isCollapse" |
| | | unique-opened |
| | | @open="handleOpen" |
| | | @close="handleClose" |
| | | @select="handleSelect" |
| | | v-show='selectGroup' |
| | | > |
| | |
| | | }, |
| | | handleClose () { |
| | | }, |
| | | handleSelect (index, indexPath) { |
| | | |
| | | }, |
| | | gitBounced (params) { |
| | | this.bouncedText = params |
| | | }, |
| | | changeSelect () { |
| | | this.selectGroup = !this.selectGroup |
| | | }, |
| | | handleSelects (command) { |
| | | console.log(command) |
| | | switch (command) { |
| | | case '全屏': |
| | | handleSelect (index) { |
| | | console.log(index) |
| | | switch (index) { |
| | | case '4-1': |
| | | // this.map.toggleFullscreen() |
| | | var printer = this.L.easyPrint({ |
| | | sizeModes: ['Current', 'A4Landscape', 'A4Portrait'], |
| | |
| | | Measure.startMeasureArea(this.map, this.L) |
| | | break |
| | | } |
| | | }, |
| | | gitBounced (params) { |
| | | this.bouncedText = params |
| | | }, |
| | | changeSelect () { |
| | | this.selectGroup = !this.selectGroup |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less"> |
| | | |
| | | .lefttop-toolbox-panel { |
| | | position: absolute; |
| | | left: 15px; |
| | |
| | | line-height: 55px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | |
| | | .init-choose { |
| | | background: #305B62; |
| | |
| | | } |
| | | |
| | | .el-menu { |
| | | width: 80%; |
| | | width: 100%; |
| | | background: none; |
| | | z-index: 1; |
| | | border: none; |
| | | background: #305B62; |
| | | border-radius: 50px; |
| | | //margin-left: -30px; |
| | | |
| | | .el-icon-arrow-down:before { |
| | | content: " "; |
| | | } |
| | | |
| | | .el-submenu__title:focus, .el-submenu__title:hover { |
| | | background: none; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | //} |
| | | |
| | | } |
| | | .el-menu--horizontal { |
| | | .el-menu--popup { |
| | | min-width: 100px; |
| | | .el-menu-item { |
| | | min-width: 50px; |
| | | } |
| | | } |
| | | } |
| | | ul { |
| | | padding-inline-start: 0; |
| | | } |
| | | </style> |