デッキまわりをCompositon API / Setup Sugarに (#8410)

* universal.widgets.vue

* column.vue, antenna-column.vue

* direct-column.vue, list-column.vue

* main-column.vue

* wip

* ✌️

* fix

* ✌️

* ✌️
This commit is contained in:
tamaina
2022-03-21 03:11:14 +09:00
committed by GitHub
parent eb9e6d230f
commit 78736c70f7
15 changed files with 639 additions and 756 deletions

View File

@ -1,5 +1,5 @@
<template>
<XColumn :column="column" :is-stacked="isStacked">
<XColumn :column="column" :is-stacked="isStacked" @parent-focus="$event => emit('parent-focus', $event)">
<template #header><i class="fas fa-at" style="margin-right: 8px;"></i>{{ column.name }}</template>
<XNotes :pagination="pagination"/>
@ -10,13 +10,17 @@
import { } from 'vue';
import XColumn from './column.vue';
import XNotes from '@/components/notes.vue';
import * as os from '@/os';
import { Column } from './deck-store';
const props = defineProps<{
column: Record<string, unknown>; // TODO
defineProps<{
column: Column;
isStacked: boolean;
}>();
const emit = defineEmits<{
(e: 'parent-focus', direction: 'up' | 'down' | 'left' | 'right'): void;
}>();
const pagination = {
endpoint: 'notes/mentions' as const,
limit: 10,