This commit is contained in:
syuilo
2018-04-25 23:08:40 +09:00
parent 80cfa0f95d
commit 0616d29fd5
4 changed files with 21 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<span slot="header">%fa:list% リスト</span>
<button class="ui" @click="add">リストを作成</button>
<router-link v-for="list in lists" :key="list.id" :to="`/i/lists/${list.id}`">{{ list.title }}</router-link>
<a v-for="list in lists" :key="list.id" @click="choice(list)">{{ list.title }}</a>
</mk-window>
</template>
@ -31,9 +31,12 @@ export default Vue.extend({
title
});
this.$router.push(`i/lists/${ list.id }`);
this.$emit('choosen', list);
});
},
choice(list) {
this.$emit('choosen', list);
},
close() {
(this as any).$refs.window.close();
}