|
|
@ -1,10 +1,10 @@ |
|
|
|
<template> |
|
|
|
<div class="HomeVector"> |
|
|
|
<el-tooltip effect="light" content="桩号显隐" placement="left"> |
|
|
|
<Button :class="['btn', { 'btn-active': activeIcon }]" @click.native="handleClick('Vector')"> |
|
|
|
<img src="@screen/images/home-Vector/Vector.svg" /> |
|
|
|
</Button> |
|
|
|
</el-tooltip> |
|
|
|
<el-tooltip effect="light" content="桩号显隐" placement="left"> |
|
|
|
<Button :class="['btn', { 'btn-active': activeIcon }]" @click.native="handleClick('Vector')"> |
|
|
|
<img src="@screen/images/home-Vector/Vector.svg" /> |
|
|
|
</Button> |
|
|
|
</el-tooltip> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -25,6 +25,9 @@ export default { |
|
|
|
activeIcon: null, |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.activeIcon = window.showStakeText ? 'Vector' : null; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleClick(type) { |
|
|
|
this.activeIcon = this.activeIcon === type ? null : type; |
|
|
|