1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-18 16:48:30 +09:00
cherrypick/src/client/app/desktop/views/components/following-window.vue

33 lines
615 B
Vue
Raw Normal View History

2018-02-16 17:43:25 +09:00
<template>
<mk-window width="400px" height="550px" @closed="destroyDom">
2018-02-16 17:43:25 +09:00
<span slot="header" :class="$style.header">
2018-07-24 23:43:14 +09:00
<img :src="user.avatarUrl" alt=""/>{{ '%i18n:@following%'.replace('{}', name) }}
2018-02-16 17:43:25 +09:00
</span>
2018-02-22 23:05:05 +09:00
<mk-following :user="user"/>
2018-02-16 17:43:25 +09:00
</mk-window>
</template>
<script lang="ts">
import Vue from 'vue';
2018-04-06 01:36:34 +09:00
2018-02-16 17:43:25 +09:00
export default Vue.extend({
2018-05-21 11:14:57 +09:00
props: ['user'],
computed: {
name(): string {
return Vue.filter('userName')(this.user);
}
}
2018-02-16 17:43:25 +09:00
});
</script>
<style lang="stylus" module>
.header
> img
display inline-block
vertical-align bottom
height calc(100% - 10px)
margin 5px
border-radius 4px
</style>