20 lines
860 B
Vue
20 lines
860 B
Vue
<!-- Ported from legacy henza_pwa/src/components/viewAll.vue.
|
|||
|
|
Legacy left `to` undeclared and relied on Vue's attribute fallthrough to
|
||
|
|
land it on the root <router-link>; declared explicitly here only because
|
||
|
|
vue-tsc's template type-checking (which legacy's own build never ran)
|
||
|
|
requires router-link's `to` to be a known prop — same runtime value ends
|
||
|
|
up bound either way, no behavior change. -->
|
||
|
|
<template>
|
||
|
|
<router-link :to="to" class="text-primary w-[280px] rounded-[10px] p-[8px] bg-light flex flex-col justify-center items-center">
|
||
|
|
<Icon icon="vuesax-linear:arrow-left-1" class="cursor-pointer" size="25" />
|
||
|
|
مشاهده همه
|
||
|
|
</router-link>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import type { RouteLocationRaw } from 'vue-router'
|
||
|
|
import Icon from './icon/Icon.vue'
|
||
|
|
|
||
|
|
defineProps<{ to: RouteLocationRaw }>()
|
||
|
|
</script>
|