<script setup>
import { computed } from 'vue'
const props = defineProps({
widths: {
type: String,
default: '100%',
}
})
// do some stuff
// access the value by
// let w = props.widths
</script>
{{ this.calcPercentage(card.w_lessons.length,card.w_lessons_count) }}
-
{{ Math.floor((card.w_lessons.length/card.w_lessons_count)*100) + "%" }}
methods: {
calcPercentage(lesson, all){
return Math.floor((lesson/all)*100) + "%";
}
},
props: {
car: Object,
},