123456789101112131415 |
- <template>
- <div>
- <editor v-model="notificationForm.content" @input="(val)=> {notificationForm.content=val}"></editor>
- //@input方法需要自己定义,不然父组件可能获取不到editor的值
- 测试文本
- </div>
- </template>
- <script setup>
- import {reactive} from 'vue'
- import Editor from '@/components/backend/TinymceEditor.vue';
- const notificationForm = reactive({
- content: '',
- })
- </script>
|