misskey/src/client/components/deck/mentions-column.vue

55 lines
904 B
Vue
Raw Normal View History

<template>
<x-column :column="column" :is-stacked="isStacked" :menu="menu">
<template #header><fa :icon="faAt" style="margin-right: 8px;"/>{{ column.name }}</template>
2020-07-23 13:07:27 +09:00
<x-notes :pagination="pagination" @before="before()" @after="after()"/>
</x-column>
</template>
<script lang="ts">
import Vue from 'vue';
import { faAt } from '@fortawesome/free-solid-svg-icons';
2020-07-23 13:07:27 +09:00
import Progress from '../../scripts/loading';
import XColumn from './column.vue';
2020-07-23 13:07:27 +09:00
import XNotes from '../notes.vue';
export default Vue.extend({
components: {
XColumn,
2020-07-23 13:07:27 +09:00
XNotes
},
props: {
column: {
type: Object,
required: true
},
isStacked: {
type: Boolean,
required: true
}
},
data() {
return {
menu: null,
2020-07-23 13:07:27 +09:00
pagination: {
endpoint: 'notes/mentions',
limit: 10,
},
faAt
}
},
2020-07-23 13:07:27 +09:00
methods: {
before() {
Progress.start();
},
after() {
Progress.done();
}
}
});
</script>