1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-12-23 21:03:14 +00:00
This commit is contained in:
devfake 2015-06-22 20:21:31 +02:00
parent 7d21a962bc
commit c468147c90
3 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,19 @@
module.exports = {
template: require('../views/chat.html')
template: require('../views/chat.html'),
data: function() {
return {
message: ''
}
},
methods: {
submitChat: function(e) {
e.preventDefault();
console.log(this.message);
}
}
};

View File

@ -11,7 +11,7 @@
blaa blaa
</div>
<textarea class="chatbox" placeholder="Type an message..." autofocus></textarea>
<textarea class="chatbox" placeholder="Type an message..." v-model="message" autofocus v-on="keydown: submitChat(this) | key 'enter'"></textarea>
</div>
</section>

View File

@ -75,6 +75,7 @@
text-align: center;
color: darken(#8798ac, 30%);
cursor: pointer;
text-transform: uppercase;
@include transition();