2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
2020-01-13 06:40:40 +00:00
|
|
|
<resizable-textarea>
|
|
|
|
<textarea
|
|
|
|
class="form-input user-message-input"
|
|
|
|
:placeholder="placeholder"
|
|
|
|
:value="value"
|
|
|
|
@input="$emit('input', $event.target.value)"
|
|
|
|
/>
|
|
|
|
</resizable-textarea>
|
2019-10-29 07:20:54 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-01-13 06:40:40 +00:00
|
|
|
import ResizableTextarea from 'widget/components/ResizableTextarea.vue';
|
|
|
|
|
2019-10-29 07:20:54 +00:00
|
|
|
export default {
|
2020-01-13 06:40:40 +00:00
|
|
|
components: {
|
|
|
|
ResizableTextarea,
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
props: {
|
|
|
|
placeholder: String,
|
|
|
|
value: String,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
|
|
<style scoped lang="scss">
|
|
|
|
@import '~widget/assets/scss/variables.scss';
|
|
|
|
|
|
|
|
.user-message-input {
|
2019-11-09 11:42:31 +00:00
|
|
|
border: 0;
|
2019-11-12 04:16:30 +00:00
|
|
|
height: $space-large;
|
2019-10-29 07:20:54 +00:00
|
|
|
resize: none;
|
2020-01-13 06:40:40 +00:00
|
|
|
padding-top: $space-small;
|
2019-10-29 07:20:54 +00:00
|
|
|
}
|
|
|
|
</style>
|