replace scope attributes by slot-scope

This commit is contained in:
taehoon 2019-04-04 12:12:27 -04:00
parent d4e43e0e26
commit fe7766bc61
6 changed files with 8 additions and 8 deletions
src/components
follow_requests
selectable_list
user_profile
user_search
user_settings
who_to_follow

View file

@ -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>

View file

@ -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)" />

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>