小说小程序前端代码仓库(小程序)
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.
 
 
 

28 lines
501 B

<template>
<uv-icon name="arrow-left" :size="44" :color="color" @click="goBack" />
</template>
<script>
export default {
name: 'BackArrow',
props: {
size: {
type: [String, Number],
default: 56
},
color: {
type: String,
default: '#333'
}
},
methods: {
goBack() {
this.$emit('back');
if (this.$listeners.back) return;
if (typeof uni !== 'undefined' && uni.navigateBack) {
uni.navigateBack();
}
}
}
}
</script>