replace scope attributes by slot-scope
This commit is contained in:
parent
d4e43e0e26
commit
fe7766bc61
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
<div class="panel-body">
|
||||
<List :items="requests">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowRequestCard :user="p.item" />
|
||||
</template>
|
||||
</List>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<List :items="items" :getKey="getKey">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(p.item) }">
|
||||
<div class="selectable-list-checkbox-wrapper">
|
||||
<Checkbox :checked="isSelected(p.item)" @change="checked => toggle(checked, p.item)" />
|
||||
|
|
|
@ -15,14 +15,14 @@
|
|||
/>
|
||||
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
|
||||
<FriendList :userId="userId">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" />
|
||||
</template>
|
||||
</FriendList>
|
||||
</div>
|
||||
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
||||
<FollowerList :userId="userId">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" :noFollowsYou="isUs" />
|
||||
</template>
|
||||
</FollowerList>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
<div v-else class="panel-body">
|
||||
<List :items="users">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" />
|
||||
</template>
|
||||
</List>
|
||||
|
|
|
@ -201,7 +201,7 @@
|
|||
</Autosuggest>
|
||||
</div>
|
||||
<BlockList :refresh="true" :getKey="item => item">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<BlockCard :userId="p.item" />
|
||||
</template>
|
||||
<template slot="empty">{{$t('settings.no_blocks')}}</template>
|
||||
|
@ -215,7 +215,7 @@
|
|||
</Autosuggest>
|
||||
</div>
|
||||
<MuteList :refresh="true" :getKey="item => item">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<MuteCard :userId="p.item" />
|
||||
</template>
|
||||
<template slot="empty">{{$t('settings.no_mutes')}}</template>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
<div class="panel-body">
|
||||
<List :items="users">
|
||||
<template slot="item" scope="p">
|
||||
<template slot="item" slot-scope="p">
|
||||
<FollowCard :user="p.item" />
|
||||
</template>
|
||||
</List>
|
||||
|
|
Loading…
Reference in New Issue