Sharkey/src/client/app/mobile/views/widgets/activity.vue

34 lines
615 B
Vue
Raw Normal View History

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