diff --git a/src/assets/styles/common.scss b/src/assets/styles/common.scss index bcffd03..6ff86ef 100644 --- a/src/assets/styles/common.scss +++ b/src/assets/styles/common.scss @@ -17,6 +17,7 @@ a { html, body { font-size: 14px; + background-color: #ffffff !important; } // export page css .export-page { diff --git a/src/config/constant.js b/src/config/constant.js index 97a6d1b..db87251 100644 --- a/src/config/constant.js +++ b/src/config/constant.js @@ -5,7 +5,8 @@ export const appTitle = 'Arya - 在线 Markdown 编辑器' export const exportTextMap = { '/export/png': '导出 PNG', '/export/jpeg': '导出 JPEG', - '/export/pdf': '导出 PDF' + '/export/pdf': '导出 PDF', + '/export/ppt': '导出 PPT' } export const toolbarConf = [ diff --git a/src/pages/ExportPPT.vue b/src/pages/ExportPPT.vue new file mode 100644 index 0000000..fdc3633 --- /dev/null +++ b/src/pages/ExportPPT.vue @@ -0,0 +1,99 @@ + + + + + + + + + {{ savedMdContent }} + + + + + + + + + + diff --git a/src/pages/partials/HeaderNav.vue b/src/pages/partials/HeaderNav.vue index 0ce5077..98de910 100644 --- a/src/pages/partials/HeaderNav.vue +++ b/src/pages/partials/HeaderNav.vue @@ -47,6 +47,10 @@ {{ exportTextMap['/export/pdf'] }} + + + {{ exportTextMap['/export/ppt'] }} + 导出 HTML diff --git a/src/router/routes/main.js b/src/router/routes/main.js index bf0c78f..b115b5a 100644 --- a/src/router/routes/main.js +++ b/src/router/routes/main.js @@ -30,6 +30,13 @@ export default [ title: `导出 PDF | ${window.$appTitle}` }, component: resolve => require(['@pages/ExportPdf'], resolve) + }, + { + path: 'ppt', + meta: { + title: `导出 PPT | ${window.$appTitle}` + }, + component: resolve => require(['@pages/ExportPPT'], resolve) } ] }