瀏覽代碼

:art: https://github.com/siyuan-note/siyuan/issues/8127

Vanessa 2 年之前
父節點
當前提交
01dff7eb5d
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12 1
      app/src/menus/commonMenuItem.ts

+ 12 - 1
app/src/menus/commonMenuItem.ts

@@ -526,7 +526,7 @@ export const exportMd = (id: string) => {
                 dialog.bindInput(inputElement, () => {
                     (btnsElement[1] as HTMLButtonElement).click();
                 });
-                let name =  replaceFileName(result.data);
+                let name = replaceFileName(result.data);
                 const maxNameLen = 32;
                 if (name.length > maxNameLen) {
                     name = name.substring(0, maxNameLen);
@@ -630,6 +630,17 @@ export const exportMd = (id: string) => {
                 click: () => {
                     saveExport({type: "word", id});
                 }
+            }, {
+                label: window.siyuan.languages.more,
+                icon: "iconMore",
+                type: "submenu",
+                submenu: [{
+                    label: "Word .docx",
+                    icon: "iconExact",
+                    click: () => {
+                        saveExport({type: "word", id});
+                    }
+                }]
             }
             /// #endif
         ]