2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
|
|
|
<footer class="footer">
|
2020-03-30 06:45:06 +00:00
|
|
|
<ChatInputWrap
|
|
|
|
:on-send-message="handleSendMessage"
|
|
|
|
:on-send-attachment="handleSendAttachment"
|
|
|
|
/>
|
2019-10-29 07:20:54 +00:00
|
|
|
</footer>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-03-30 06:45:06 +00:00
|
|
|
import { mapActions } from 'vuex';
|
2019-10-29 07:20:54 +00:00
|
|
|
import ChatInputWrap from 'widget/components/ChatInputWrap.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
ChatInputWrap,
|
|
|
|
},
|
|
|
|
props: {
|
2020-01-13 06:40:40 +00:00
|
|
|
msg: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
2020-03-30 06:45:06 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
...mapActions('conversation', ['sendMessage', 'sendAttachment']),
|
|
|
|
handleSendMessage(content) {
|
|
|
|
this.sendMessage({
|
|
|
|
content,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
handleSendAttachment(attachment) {
|
|
|
|
this.sendAttachment({ attachment });
|
2020-01-13 06:40:40 +00:00
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
|
<style scoped lang="scss">
|
|
|
|
@import '~widget/assets/scss/variables.scss';
|
2020-01-17 08:06:05 +00:00
|
|
|
@import '~widget/assets/scss/mixins.scss';
|
2019-10-29 07:20:54 +00:00
|
|
|
|
|
|
|
.footer {
|
|
|
|
background: $color-white;
|
|
|
|
box-sizing: border-box;
|
2020-01-13 06:40:40 +00:00
|
|
|
padding: $space-small $space-slab;
|
2019-10-29 07:20:54 +00:00
|
|
|
width: 100%;
|
2020-01-13 06:40:40 +00:00
|
|
|
border-radius: 7px;
|
2020-01-17 08:06:05 +00:00
|
|
|
@include shadow-big;
|
2019-10-29 07:20:54 +00:00
|
|
|
}
|
2019-11-09 11:42:31 +00:00
|
|
|
|
|
|
|
.branding {
|
|
|
|
align-items: center;
|
|
|
|
color: $color-body;
|
|
|
|
display: flex;
|
|
|
|
font-size: $font-size-default;
|
|
|
|
justify-content: center;
|
|
|
|
padding: $space-one;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
img {
|
|
|
|
margin-right: $space-small;
|
|
|
|
max-width: $space-two;
|
|
|
|
}
|
|
|
|
}
|
2019-10-29 07:20:54 +00:00
|
|
|
</style>
|