Slide 17
Slide 17 text
Copyright (C) 2022 Toranoana Lab Inc. All Rights Reserved.
ペアプロについて
実施ケース例(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({
information: initInformation,
informations: [],
intervalId: -1,
currentIdx: 0,
viewLabelIdx: -1,
showInformationModal: false,
showInformetionAlert: false
});
// TODO: 略
}
}