2020-11-14 22:42:04 -06:00
|
|
|
<template>
|
|
|
|
<div class="voxdxuby">
|
2020-11-14 22:47:15 -06:00
|
|
|
<XNote v-if="note" v-model:note="note" :key="note.id" :detail="value.detailed"/>
|
2020-11-14 22:42:04 -06:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import XNote from '@/components/note.vue';
|
|
|
|
import * as os from '@/os';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
XNote
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
hpml: {
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
note: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
async mounted() {
|
|
|
|
this.note = await os.api('notes/show', { noteId: this.value.note });
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.voxdxuby {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
</style>
|