耀实惠小程序
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.
 
 
 

36 lines
770 B

<template>
<view :class="customClass" :hover-class="hoverClass" :hover-stop-propagation="hoverStopPropagation" :hover-start-time="hoverStartTime" :hover-stay-time="hoverStayTime" @click.stop="handleClick">
<slot />
</view>
</template>
<script>
export default {
name:"com-view",
props: {
hoverClass: {
type: String,
default: 'hover-class'
},
customClass: {
type: String,
},
hoverStopPropagation: {
type: String,
},
hoverStartTime: {
type: String | Number,
default: 50
},
hoverStayTime: {
type: String | Number,
default: 120
},
},
methods: {
handleClick () {
this.$emit('click')
}
}
}
</script>