mirror of
https://github.com/exane/not-gwent-online
synced 2024-10-31 10:36:53 +00:00
minor
This commit is contained in:
parent
7d21a962bc
commit
c468147c90
@ -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>
|
@ -75,6 +75,7 @@
|
||||
text-align: center;
|
||||
color: darken(#8798ac, 30%);
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
|
||||
@include transition();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user