migrate to v-slot
This commit is contained in:
parent
8b96ea9377
commit
61dcdbf992
20 changed files with 238 additions and 279 deletions
|
@ -4,40 +4,39 @@
|
|||
placement="top"
|
||||
:offset="{ y: 5 }"
|
||||
>
|
||||
<template slot="trigger">
|
||||
<template v-slot:trigger>
|
||||
<slot />
|
||||
</template>
|
||||
<div
|
||||
slot="content"
|
||||
class="user-list-popover"
|
||||
>
|
||||
<div v-if="users.length">
|
||||
<div
|
||||
v-for="(user) in usersCapped"
|
||||
:key="user.id"
|
||||
class="user-list-row"
|
||||
>
|
||||
<UserAvatar
|
||||
:user="user"
|
||||
class="avatar-small"
|
||||
:compact="true"
|
||||
/>
|
||||
<div class="user-list-names">
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<span v-html="user.name_html" />
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
<span class="user-list-screen-name">{{ user.screen_name_ui }}</span>
|
||||
<template v-slot:content>
|
||||
<div class="user-list-popover">
|
||||
<template v-if="users.length">
|
||||
<div
|
||||
v-for="(user) in usersCapped"
|
||||
:key="user.id"
|
||||
class="user-list-row"
|
||||
>
|
||||
<UserAvatar
|
||||
:user="user"
|
||||
class="avatar-small"
|
||||
:compact="true"
|
||||
/>
|
||||
<div class="user-list-names">
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<span v-html="user.name_html" />
|
||||
<!-- eslint-enable vue/no-v-html -->
|
||||
<span class="user-list-screen-name">{{ user.screen_name_ui }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<FAIcon
|
||||
icon="circle-notch"
|
||||
spin
|
||||
size="3x"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
<div v-else>
|
||||
<FAIcon
|
||||
icon="circle-notch"
|
||||
spin
|
||||
size="3x"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</Popover>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue