新增最近联系人功能

This commit is contained in:
eoao
2025-10-10 22:22:00 +08:00
parent 8ee140743a
commit 1b441774a4
10 changed files with 238 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ const props = defineProps({
const {locale} = useI18n()
const emit = defineEmits(['change']);
const emit = defineEmits(['change','focus']);
const editor = shallowRef(null);
const isInitialized = ref(false);
const editorRef = ref(null);
@@ -124,6 +124,9 @@ function initEditor() {
const text = ed.getContent({format: 'text'});
emit('change', content, text);
});
ed.on('focus', () => {
emit('focus', focus);
})
},
autofocus: true,
branding: false,