My goal is to develop a checksheet application using Vue, where the tasks are specified in an excel file.
=====
To start, task A needs to be completed.
Followed by task B.
and so on...
=====
I am considering creating a CheckItem.vue
component for each task. It will have the following structure:
<template>
<div :class="[isChecked ? 'task-styling' : 'task-styling-checked']">
<div class="task-text">Perform task A.</div>
<img class="task-image" alt="Task 1" src="../assets/img001.png" />
<div class="check-button">
<button
@click="changeColor"
type="submit"
class="check-buttom"
>
Check
</button>
</div>
</div>
</template>
My objective is to utilize the same "CheckItem.vue" component for all tasks listed, but customizing the "task-text" and "task-image" with relevant data.
Currently, I am open to manually hard code these fields (with plans to optimize this process later). I simply need guidance on how to dynamically insert different data into the same component.