blob: 4dcab8e3b5f9f8b24b6e4e69d42b0d4bee563279 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<template>
<div class="mkw-activity">
<mk-widget-container :show-header="!props.compact">
<template slot="header"><fa icon="chart-bar"/>{{ $t('activity') }}</template>
<div :class="$style.body">
<x-activity :user="$store.state.i"/>
</div>
</mk-widget-container>
</div>
</template>
<script lang="ts">
import define from '../../../common/define-widget';
import i18n from '../../../i18n';
export default define({
name: 'activity',
props: () => ({
compact: false
})
}).extend({
i18n: i18n(),
components: {
XActivity: () => import('../components/activity.vue').then(m => m.default)
},
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
}
}
});
</script>
<style lang="stylus" module>
.body
padding 8px
</style>
|