diff options
Diffstat (limited to 'src/components/user_search')
| -rw-r--r-- | src/components/user_search/user_search.js | 4 | ||||
| -rw-r--r-- | src/components/user_search/user_search.vue | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/components/user_search/user_search.js b/src/components/user_search/user_search.js index 55040826..f02d22ad 100644 --- a/src/components/user_search/user_search.js +++ b/src/components/user_search/user_search.js @@ -1,8 +1,10 @@ import FollowCard from '../follow_card/follow_card.vue' +import List from '../list/list.vue' import userSearchApi from '../../services/new_api/user_search.js' const userSearch = { components: { - FollowCard + FollowCard, + List }, props: [ 'query' diff --git a/src/components/user_search/user_search.vue b/src/components/user_search/user_search.vue index 1269eea6..06bfc35f 100644 --- a/src/components/user_search/user_search.vue +++ b/src/components/user_search/user_search.vue @@ -13,7 +13,11 @@ <i class="icon-spin3 animate-spin"/> </div> <div v-else class="panel-body"> - <FollowCard v-for="user in users" :key="user.id" :user="user"/> + <List :items="users"> + <template slot="item" scope="p"> + <FollowCard :user="p.item" /> + </template> + </List> </div> </div> </template> |
