2018-02-23 18:46:09 +01:00
|
|
|
<template>
|
|
|
|
<div class="mkw-activity">
|
2018-02-23 19:03:26 +01:00
|
|
|
<mk-widget-container :show-header="!props.compact">
|
2018-02-23 18:46:09 +01:00
|
|
|
<template slot="header">%fa:chart-bar%アクティビティ</template>
|
|
|
|
<div :class="$style.body">
|
|
|
|
<mk-activity :user="os.i"/>
|
|
|
|
</div>
|
|
|
|
</mk-widget-container>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import define from '../../../../common/define-widget';
|
|
|
|
|
|
|
|
export default define({
|
|
|
|
name: 'activity',
|
2018-02-23 19:03:26 +01:00
|
|
|
props: () => ({
|
|
|
|
compact: false
|
|
|
|
})
|
|
|
|
}).extend({
|
|
|
|
methods: {
|
|
|
|
func() {
|
|
|
|
this.props.compact = !this.props.compact;
|
|
|
|
}
|
|
|
|
}
|
2018-02-23 18:46:09 +01:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" module>
|
|
|
|
.body
|
|
|
|
padding 8px
|
|
|
|
</style>
|