You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
627 B
37 lines
627 B
![]()
2 weeks ago
|
<template>
|
||
|
<img :src="isHover ? hover : normal" class="detail_icon"
|
||
|
@mouseover="isHover = true"
|
||
|
@mouseleave="isHover = false"
|
||
|
v-on="$listeners"
|
||
|
/>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'HoverImage',
|
||
|
props: {
|
||
|
normal: {
|
||
|
type: String,
|
||
|
required: true
|
||
|
},
|
||
|
hover: {
|
||
|
type: String,
|
||
|
required: true
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
isHover: false
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
.detail_icon {
|
||
|
vertical-align: text-top;
|
||
|
padding-left: 5px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
</style>
|