mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-04 11:49:02 +08:00
19 lines
482 B
TypeScript
19 lines
482 B
TypeScript
import { createApp } from 'vue'
|
|
import 'iframe-resizer/js/iframeResizer.contentWindow'
|
|
import { debug, splitName } from './helper'
|
|
import './style.scss'
|
|
|
|
export default function init(name: string, source: any) {
|
|
// @ts-ignore
|
|
window.source = source
|
|
document.title = name
|
|
|
|
const [demoCategory, demoName] = splitName(name)
|
|
|
|
import(`../src/${demoCategory}/${demoName}/Vue/index.vue`)
|
|
.then(module => {
|
|
createApp(module.default).mount('#app')
|
|
debug()
|
|
})
|
|
}
|