parent
f240e85c20
commit
ad6683adec
@ -0,0 +1,31 @@ |
||||
<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> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue