<template>
<div>
<MkTextarea v-model:value="v">{{ hpml.interpolate(value.text) }}</MkTextarea>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import MkTextarea from '../ui/textarea.vue';
import * as os from '@/os';
export default defineComponent({
components: {
MkTextarea
},
props: {
value: {
required: true
hpml: {
}
data() {
return {
v: this.value.default,
};
watch: {
v() {
this.hpml.updatePageVar(this.value.name, this.v);
this.hpml.eval();
});
</script>