You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
680 B
Vue

<template>
<view class="wd-navbar-capsule">
<wd-icon @click="handleBack" size="20px" name="chevron-left" custom-class="wd-navbar-capsule__icon" />
<wd-icon @click="handleBackHome" size="20px" name="home" custom-class="wd-navbar-capsule__icon" />
</view>
</template>
<script lang="ts">
export default {
name: 'wd-navbar-capsule',
options: {
virtualHost: true,
addGlobalClass: true,
styleIsolation: 'shared'
}
}
</script>
<script lang="ts" setup>
const emit = defineEmits(['back', 'back-home'])
function handleBack() {
emit('back')
}
function handleBackHome() {
emit('back-home')
}
</script>
<style lang="scss">
@import './index.scss';
</style>