An error message stating that the
Property type does not exist on type boolean
is appearing when attempting to utilize the show.value boolean value.
This issue arises while trying to set the text for an icon based on its truthiness.
<template>
<div class="d-flex cursor-pointer justify-content-between border rounded bg-white mt-4 p-2 w-100 " @click="dropdown">
<span>Purchase Requsition</span>
<span class="material-icons fs-28 text-primary">
{{show.value ? 'arrow_circle_down' : 'arrow_circle_down' }} </span>
</div>
</template>
<script setup lang="ts">
import { ref } from "vue";
const show = ref<boolean>(false)
function dropdown(){
show.value = !show.value
}
</script>
<style scoped>
</style>