-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new features #6
base: master
Are you sure you want to change the base?
Conversation
todolist-app-5-v2/src/store/index.js
Outdated
|
||
state.tasks[idx].status = 'completed'; | ||
changeComplete(state, id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Больше похоже на toggleCompleteStatus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
переименовал
todolist-app-5-v2/src/views/List.vue
Outdated
<input | ||
type="checkbox" | ||
class="filled-in" | ||
:checked="task.status == 'completed'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Напрашивается компонент task, и в нём computed на статус, либо в самом объекте task сделать поле isCompleted, тогда не будет такой логики в шаблоне
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сделал через поле isCompleted
todolist-app-5-v2/src/views/List.vue
Outdated
<span></span> | ||
</label> | ||
</td> | ||
<td>{{ task.title }}</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Большой шаблон кандидат на декомпозицию
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вынес шаблон и скрипт отображения тасков в компонент Tasks
План новых фич: > 1. Списки задач. +2. Сортировки по полям. +3. Поиск/фильтрация. +4. Вид списков: карточки. +5. Markdown notes. 6. Порядок списков через drag&drop