11.5 Adjustable Header Color
This commit is contained in:
parent
193c0bada6
commit
d16c79dd1e
@ -2,14 +2,18 @@
|
|||||||
<q-banner
|
<q-banner
|
||||||
dense
|
dense
|
||||||
inline-actions
|
inline-actions
|
||||||
class="list-header text-white bg-orange-4 text-center">
|
class="list-header text-white"
|
||||||
|
:class="bgColor">
|
||||||
<span class="text-bold text-subtitle1"><slot /></span>
|
<span class="text-bold text-subtitle1"><slot /></span>
|
||||||
</q-banner>
|
</q-banner>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'ListHeader'
|
name: 'ListHeader',
|
||||||
|
props: [
|
||||||
|
'bgColor'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="q-mt-lg">
|
||||||
<list-header>Completed</list-header>
|
<list-header bgColor="bg-green-4">Completed</list-header>
|
||||||
<q-list
|
<q-list
|
||||||
v-if="Object.keys(tasksCompleted).length"
|
v-if="Object.keys(tasksCompleted).length"
|
||||||
separator
|
separator
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<list-header>Todo</list-header>
|
<list-header bgColor="bg-orange-4">Todo</list-header>
|
||||||
<q-list
|
<q-list
|
||||||
v-if="Object.keys(tasksTodo).length"
|
v-if="Object.keys(tasksTodo).length"
|
||||||
separator
|
separator
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
<tasks-todo
|
<tasks-todo
|
||||||
:tasksTodo="tasksTodo" />
|
:tasksTodo="tasksTodo" />
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<tasks-completed
|
<tasks-completed
|
||||||
:tasksCompleted="tasksCompleted" />
|
:tasksCompleted="tasksCompleted" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user