refactor(frontend): Reactivityで型を明示するように (#12791)
* refactor(frontend): Reactivityで型を明示するように * fix: プロパティの参照が誤っているのを修正 * fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
This commit is contained in:
parent
a9b42765f9
commit
75034d9240
110 changed files with 370 additions and 344 deletions
|
@ -25,6 +25,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import * as Misskey from 'misskey-js';
|
||||
import { useWidgetPropsManager, WidgetComponentEmits, WidgetComponentExpose, WidgetComponentProps } from './widget.js';
|
||||
import { GetFormResultType } from '@/scripts/form.js';
|
||||
import MkContainer from '@/components/MkContainer.vue';
|
||||
|
@ -58,8 +59,8 @@ const { widgetProps, configure, save } = useWidgetPropsManager(name,
|
|||
emit,
|
||||
);
|
||||
|
||||
const list = ref();
|
||||
const users = ref([]);
|
||||
const list = ref<Misskey.entities.UserList>();
|
||||
const users = ref<Misskey.entities.UserDetailed[]>([]);
|
||||
const fetching = ref(true);
|
||||
|
||||
async function chooseList() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue