Skip to content

Commit

Permalink
🔧 modify reveal init config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicejade committed Aug 14, 2019
1 parent 571195a commit 0d50a6b
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions src/pages/ExportPPT.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Reveal from 'reveal.js/js/reveal'
import 'reveal.js/css/reset.css'
import 'reveal.js/css/reveal.css'
import 'reveal.js/css/theme/beige.css'
import { debuglog } from 'util'
export default {
name: 'export-ppt',
Expand All @@ -30,12 +31,13 @@ export default {
}
},
created() {},
created() {
this.savedMdContent = localStorage.getItem('vditorvditor')
},
components: {},
mounted() {
this.savedMdContent = localStorage.getItem('vditorvditor')
this.initReveal()
},
Expand All @@ -49,6 +51,7 @@ export default {
center: true,
hash: true,
transition: 'slide',
display: 'block',
dependencies: [
{
src: `${revealSourcePath}/plugin/markdown/marked.js`,
Expand All @@ -68,18 +71,8 @@ export default {
{ src: `${revealSourcePath}/plugin/notes/notes.js`, async: true }
]
})
},
exportAndDownloadPPT(element, filename) {},
/* ---------------------Callback Event--------------------- */
onBackToMainPage() {
this.$router.push('/')
},
onExportBtnClick() {
this.isLoading = true
const element = document.getElementsByClassName('vditor-preview')[0]
const filename = this.$utils.getExportFileName()
this.exportAndDownloadPPT(element, filename)
}
/* ---------------------Callback Event--------------------- */
}
}
</script>
Expand Down

0 comments on commit 0d50a6b

Please sign in to comment.