perf: review tinymce code

This commit is contained in:
vben
2020-10-22 23:56:33 +08:00
parent 9c02d8ec08
commit f75425d13b
26 changed files with 350 additions and 535 deletions

View File

@@ -0,0 +1,24 @@
<template>
<div class="flex p-4">
{{ value }}
<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);
}
// setTimeout(() => {
// value.value = '1233';
// }, 5000);
return { handleChange, value };
},
});
</script>