From 32035217b8e04b0f178409f0f1f49d54296ce80c Mon Sep 17 00:00:00 2001 From: taehoon Date: Thu, 4 Apr 2019 00:00:21 -0400 Subject: [PATCH] clean up --- src/components/list/list.vue | 2 +- src/components/selectable_list/selectable_list.js | 11 +---------- src/components/user_profile/user_profile.vue | 4 ++-- src/components/user_settings/user_settings.vue | 8 ++++---- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/src/components/list/list.vue b/src/components/list/list.vue index 1159898d..7d62283a 100644 --- a/src/components/list/list.vue +++ b/src/components/list/list.vue @@ -18,7 +18,7 @@ export default { }, getKey: { type: Function, - default: item => item + default: item => item.id } } } diff --git a/src/components/selectable_list/selectable_list.js b/src/components/selectable_list/selectable_list.js index 1fdd5a67..7856d725 100644 --- a/src/components/selectable_list/selectable_list.js +++ b/src/components/selectable_list/selectable_list.js @@ -6,16 +6,7 @@ const SelectableList = { List, Checkbox }, - props: { - items: { - type: Array, - default: () => [] - }, - getKey: { - type: Function, - default: item => item - } - }, + props: List.props, data () { return { selected: [] diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index 39f3c381..8d78d2d2 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -16,14 +16,14 @@
diff --git a/src/components/user_settings/user_settings.vue b/src/components/user_settings/user_settings.vue index 741fbe3f..66ce6cea 100644 --- a/src/components/user_settings/user_settings.vue +++ b/src/components/user_settings/user_settings.vue @@ -200,9 +200,9 @@ - + @@ -214,9 +214,9 @@ - +