13.4 Add a Sort Dropdown Component to the Page

This commit is contained in:
Fredrick W Warren 2021-02-11 07:14:05 -08:00
parent 32f059e9f9
commit f5c81af4c9
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,30 @@
<template>
<q-select
filled
v-model="model"
class="col q-ml-sm"
:options="options"
lable="Sort by"
stack-label
/>
</template>
<script>
export default {
name: 'Sort',
data () {
return {
model: null,
options: [
'Name', 'Due Date', 'Due Time'
]
}
}
}
</script>
<style scoped>
.q-select {
flex: 0 0 112px;
}
</style>

View File

@ -3,6 +3,7 @@
<div class="row q-mb-lg">
<search />
<sort />
</div>
<p
@ -44,6 +45,7 @@ import noTasks from 'components/Tasks/NoTasks.vue'
import tasksCompleted from 'components/Tasks/TasksCompleted.vue'
import addTask from 'components/Tasks/Modals/AddTask.vue'
import search from 'components/Tasks/Tools/Search.vue'
import sort from 'components/Tasks/Tools/Sort.vue'
export default {
name: 'PageTodo',
@ -52,7 +54,8 @@ export default {
tasksCompleted,
addTask,
noTasks,
search
search,
sort
},
data () {
return {