2019-04-29 09:11:57 +09:00
|
|
|
<template>
|
|
|
|
<div>
|
2020-04-20 21:35:27 +09:00
|
|
|
<mk-textarea v-model="v">{{ hpml.interpolate(value.text) }}</mk-textarea>
|
2019-04-29 09:11:57 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2020-01-30 04:37:25 +09:00
|
|
|
import MkTextarea from '../ui/textarea.vue';
|
2019-04-29 09:11:57 +09:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2020-01-30 04:37:25 +09:00
|
|
|
components: {
|
|
|
|
MkTextarea
|
|
|
|
},
|
2019-04-29 09:11:57 +09:00
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
2020-04-20 21:35:27 +09:00
|
|
|
hpml: {
|
2019-04-29 09:11:57 +09:00
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
v: this.value.default,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
v() {
|
2020-04-20 21:35:27 +09:00
|
|
|
this.hpml.updatePageVar(this.value.name, this.v);
|
|
|
|
this.hpml.eval();
|
2019-04-29 09:11:57 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|