diff --git a/mail-vue/src/components/tiny-editor/index.vue b/mail-vue/src/components/tiny-editor/index.vue index 5c384c3..c82b33c 100644 --- a/mail-vue/src/components/tiny-editor/index.vue +++ b/mail-vue/src/components/tiny-editor/index.vue @@ -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, diff --git a/mail-vue/src/i18n/en.js b/mail-vue/src/i18n/en.js index cb465aa..d279efa 100644 --- a/mail-vue/src/i18n/en.js +++ b/mail-vue/src/i18n/en.js @@ -291,7 +291,10 @@ const en = { clear: 'Clear', include: 'Include', delAllEmailConfirm: 'Do you really want to delete it?', - s3Configuration: 'S3 Configuration' + s3Configuration: 'S3 Configuration', + confirmDeletionOfContacts: 'Confirm clearing contacts?', + recentContacts: 'Recent contacts', + selectContacts: 'Select' } export default en diff --git a/mail-vue/src/i18n/zh.js b/mail-vue/src/i18n/zh.js index 734c7d6..757b602 100644 --- a/mail-vue/src/i18n/zh.js +++ b/mail-vue/src/i18n/zh.js @@ -291,7 +291,9 @@ const zh = { clear: '清除', include: '包含', delAllEmailConfirm: '确定要删除吗?', - s3Configuration: 'S3 配置' - + s3Configuration: 'S3 配置', + confirmDeletionOfContacts: '确认清除这些联系人吗?', + recentContacts: '最近联系人', + selectContacts: '选中' } export default zh diff --git a/mail-vue/src/icons/index.js b/mail-vue/src/icons/index.js index 04486e9..1269eaa 100644 --- a/mail-vue/src/icons/index.js +++ b/mail-vue/src/icons/index.js @@ -609,4 +609,40 @@ addCollection({ } } }) - +addCollection({ + "prefix": "mage", + "lastModified": 1754899875, + "aliases": {}, + "width": 24, + "height": 24, + "icons": { + "user": { + "body": "" + } + } +}) +addCollection({ + "prefix": "fa7-solid", + "lastModified": 1759381039, + "aliases": {}, + "width": 512, + "height": 512, + "icons": { + "user-plus": { + "body": "", + "width": 640 + } + } +}) +addCollection({ + "prefix": "line-md", + "lastModified": 1754899771, + "aliases": {}, + "width": 24, + "height": 24, + "icons": { + "loading-loop": { + "body": "" + } + } +}) diff --git a/mail-vue/src/layout/write/index.vue b/mail-vue/src/layout/write/index.vue index 57aea1c..62ad88a 100644 --- a/mail-vue/src/layout/write/index.vue +++ b/mail-vue/src/layout/write/index.vue @@ -1,6 +1,6 @@ - +
@@ -54,11 +73,32 @@
+ + + + + + + + + + +
+ {{t('clear')}} + {{t('selectContacts')}} +
+