Add column to main view

This commit is contained in:
kPherox 2019-05-11 17:29:59 +09:00
parent a8bfb2920b
commit 542084e35a
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -1,18 +1,43 @@
<template>
<div id="main">
<!-- 仮置き -->
<p>Main View</p>
<!-- idを渡してそのIDのTL情報をとってきてもらうつもり -->
<Column v-for="id in timelines" :key="id" :id="id"/>
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import { Component, Prop, Vue } from 'vue-property-decorator'
// import Column from '@/components/Timeline/Column.vue'
interface TimelineDoc {
_id: string
name: string
type: string
}
@Component({
components: {
//Column,
}
})
export default class Main extends Vue {
@Prop() public initTimeline?: TimelineDoc
public timelines: string[] = []
beforeDestroy() {
// this.timelines LocalStorage
}
created() {
if (this.initTimeline === undefined) {
// LocalStorage this.timelines
return
}
this.timelines.push(this.initTimeline._id)
}
}
</script>