mirror of
https://github.com/exane/not-gwent-online
synced 2025-11-08 09:08:40 +00:00
minor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user