mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:03:31 +08:00
perf: review tinymce code
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
},
|
||||
];
|
||||
export default defineComponent({
|
||||
components: { BasicForm, CollapseContainer, Tinymce },
|
||||
components: { BasicForm, CollapseContainer },
|
||||
setup() {
|
||||
const { createMessage } = useMessage();
|
||||
|
@@ -1,19 +1,24 @@
|
||||
<template>
|
||||
<div class="flex p-4">
|
||||
<Tinymce value="Hello, World!" @change="handleChange" width="100%" />
|
||||
{{ value }}
|
||||
<Tinymce v-model="value" @change="handleChange" width="100%" />
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
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 };
|
||||
// setTimeout(() => {
|
||||
// value.value = '1233';
|
||||
// }, 5000);
|
||||
return { handleChange, value };
|
||||
},
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user