recover border between basic-user-card using list component
This commit is contained in:
parent
f066ccd28b
commit
ca26776b4e
6 changed files with 24 additions and 6 deletions
|
@ -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'
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue