<script setup>
defineOptions({
  name: 'xtx-more'
})

defineProps({
  path: {
    type: String,
    default: '/',
  },
})
</script>

<template>
  <router-link :to="path" class="xtx-more">
    <span>查看全部</span>
    <i class="iconfont icon-angle-right"></i>
  </router-link>
</template>

<style scoped lang="less">
.xtx-more {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  span {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
    color: #999;
  }
  i {
    position: relative;
    top: 1px;
    font-size: 14px;
    vertical-align: middle;
    color: #ccc;
  }
  &:hover {
    span,
    i {
      color: var(--xtx-color);
    }
  }
}
</style>
