This commit is contained in:
rca 2024-07-21 17:45:23 +09:00
parent f64096b5d7
commit 121bd4e278

View File

@ -5,13 +5,13 @@
過去のお手伝い
</div>
<q-list bordered padding>
<q-item v-for="(task, index) in tasks" :key="index" clickable>
<q-item v-for="(task, index) in props.tasks" :key="index" clickable>
<q-item-section>
<q-item-label>{{ task.name }}</q-item-label>
<q-item-label caption>{{ task.date }}</q-item-label>
<!-- <q-item-label caption>{{ task.date }}</q-item-label> -->
</q-item-section>
<q-item-section side>
<q-item-label>{{ task.amount }} </q-item-label>
<q-item-label>{{ task.reward }} </q-item-label>
</q-item-section>
</q-item>
</q-list>
@ -19,16 +19,16 @@
</q-card>
</template>
<script>
export default {
name: 'HistoryComponent',
props: {
tasks: {
type: Array,
required: true
}
}
};
<script setup lang="ts">
import { TaskBaseItem } from 'src/models/task';
interface Props {
tasks: TaskBaseItem[];
}
// Props
const props = defineProps<Props>();
</script>
<style scoped>