mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 17:09:23 +08:00
21 lines
504 B
Vue
21 lines
504 B
Vue
<template>
|
|
<div class="p-4">
|
|
<Tinymce v-model="value" @change="handleChange" width="100%" />
|
|
</div>
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent, ref } from 'vue';
|
|
import { Tinymce } from '/@/components/Tinymce/index';
|
|
|
|
export default defineComponent({
|
|
components: { Tinymce },
|
|
setup() {
|
|
const value = ref('hello world!');
|
|
function handleChange(value: string) {
|
|
console.log(value);
|
|
}
|
|
return { handleChange, value };
|
|
},
|
|
});
|
|
</script>
|