<template>
  <div class="box">
    <TEditor v-model="content" @update:model-value="setContent" />
  </div>
</template>
<script setup lang="ts">
  import TEditor from '@/components/TEditor/index.vue'
  import { computed, ref } from 'vue'

  const content = ref('')
  const setContent = (value) => {
    content.value = value
  }
</script>

<style scoped lang="scss">
  .box {
    width: 600px;
  }
</style>
