mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
14 lines
439 B
JavaScript
14 lines
439 B
JavaScript
import { createApp } from 'vue'
|
|
import QrCode from "../views/gratefulteacher/QrCode.vue";
|
|
import Antd from "ant-design-vue";
|
|
|
|
function mountContent (option = {}) {
|
|
const dom = document.createElement('div')
|
|
document.body.appendChild(dom)
|
|
const app = createApp(QrCode, {
|
|
close: () => { app.unmount(dom); document.body.removeChild(dom) },
|
|
...option
|
|
})
|
|
app.use(Antd).mount(dom)
|
|
}
|
|
export default mountContent |