mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 02:25:50 +08:00
perf: perf component
This commit is contained in:
@@ -1 +1,5 @@
|
||||
export { default as Tinymce } from './src/Editor.vue';
|
||||
import Tinymce from './src/Editor.vue';
|
||||
import { withInstall } from '../util';
|
||||
|
||||
export { Tinymce };
|
||||
export default withInstall(Tinymce);
|
||||
|
@@ -8,7 +8,6 @@
|
||||
import {
|
||||
defineComponent,
|
||||
computed,
|
||||
onMounted,
|
||||
nextTick,
|
||||
ref,
|
||||
unref,
|
||||
@@ -24,6 +23,7 @@
|
||||
import { snowUuid } from '/@/utils/uuid';
|
||||
import { bindHandlers } from './helper';
|
||||
import lineHeight from './lineHeight';
|
||||
import { onMountedOrActivated } from '/@/hooks/core/onMountedOrActivated';
|
||||
|
||||
const CDN_URL = 'https://cdn.bootcdn.net/ajax/libs/tinymce/5.5.1';
|
||||
|
||||
@@ -91,8 +91,7 @@
|
||||
editor.setMode(attrs.disabled ? 'readonly' : 'design');
|
||||
}
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
onMountedOrActivated(() => {
|
||||
nextTick(() => {
|
||||
init();
|
||||
});
|
||||
|
Reference in New Issue
Block a user