discord-client/webpack/vue/dialog.vue

40 lines
625 B
Vue
Raw Normal View History

2018-03-21 17:44:27 +00:00
<template>
<div class='dialog'>
<div class='header'>
<div class='title'>{{ 'blabla' }}</div>
2018-03-21 17:44:27 +00:00
</div>
<div class='body'>
<div v-for='(rooms, type) in gs.room'>
<div class='toggle'
:data-toggle='rooms.visible?1:0'
@click='rooms.visible=!rooms.visible'>{{ type }} rooms</div>
<ul>
<li v-for='r in rooms.list'
:class='rooms.current==r.id?`active`:``'
:data-type='r.type'
2018-03-22 13:57:03 +00:00
@click='gs.room.nav(r.type, r.id)'>{{ r.name }}</li>
</ul>
</div>
</div>
2018-03-21 17:44:27 +00:00
</div>
</template><script>
export default {
name: 'dialog-',
data(){ return { gs: gs.get }; }
2018-03-21 17:44:27 +00:00
}
</script>