実施ケース例(Vue2→Vue3) @Component({ components: { InformationModal, Bell, }, }) export default class Information extends Vue { public information: InformationInterface = initInformation; public informations: InformationInterface[] = []; private intervalId: number; private currentIdx: number = 0; private viewLabelIdx: number = 0; public showInformationModal = false; public showInformetionAlert = false; @Prop() public linearToRow: () => void; async mounted() { // 略 } } export default defineComponent({ components: { InformationModal, Bell }, props: { linearToRow: { type: Function as PropType<() => void>, require: true, }, }, setup(props) { const state = reactive<State>({ information: initInformation, informations: [], intervalId: -1, currentIdx: 0, viewLabelIdx: -1, showInformationModal: false, showInformetionAlert: false }); // TODO: 略 } }