54 lines
958 B
Vue
54 lines
958 B
Vue
<template>
|
|
<div class="btn-with-switch-icon">
|
|
<i @click="handleClick('left')">
|
|
<img src="@/assets/images/spectrum/left-arrow.png" />
|
|
</i>
|
|
<span @click="handleBtnClick">
|
|
Peak Information
|
|
</span>
|
|
<i @click="handleClick('right')">
|
|
<img src="@/assets/images/spectrum/right-arrow.png" />
|
|
</i>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
methods: {
|
|
handleClick(direction) {
|
|
this.$emit('change', direction)
|
|
},
|
|
handleBtnClick() {
|
|
this.$emit('click')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.btn-with-switch-icon {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border: 1px solid #0a544e;
|
|
padding: 0 4px;
|
|
height: 100%;
|
|
letter-spacing: 1px;
|
|
color: #ade6ee;
|
|
user-select: none;
|
|
|
|
i {
|
|
cursor: pointer;
|
|
width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
span {
|
|
flex: 1;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
</style>
|