You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
525 B
32 lines
525 B
3 years ago
|
<script>
|
||
|
export default {
|
||
|
name: "StringValue",
|
||
|
props: {
|
||
|
id: {
|
||
|
type: String,
|
||
|
default: '',
|
||
|
},
|
||
|
value: Object
|
||
|
},
|
||
|
methods: {
|
||
|
focus() {
|
||
|
this.$refs.input.focus();
|
||
|
}
|
||
|
},
|
||
|
computed: {
|
||
|
inputValue: {
|
||
|
set(value) {
|
||
|
this.value.String = value
|
||
|
},
|
||
|
get() {
|
||
|
return this.value.String;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<textarea ref="input" class="form-input" style="resize: vertical" rows="6" :id="id" v-model="inputValue"></textarea>
|
||
|
</template>
|