From 571195a019d2681294f901fcf5f8fb2cb298c789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JadeYang=28=E6=9D=A8=E7=90=BC=E7=92=9E=29?= Date: Wed, 14 Aug 2019 23:45:38 +0800 Subject: [PATCH] :sparkles: show & export for PPT #8 --- src/assets/styles/common.scss | 1 + src/config/constant.js | 3 +- src/pages/ExportPPT.vue | 99 ++++++++++++++++++++++++++++++++ src/pages/partials/HeaderNav.vue | 4 ++ src/router/routes/main.js | 7 +++ 5 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 src/pages/ExportPPT.vue 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 @@ + + + + + + + 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) } ] }