@customizer/modal-x
Version:
Modal-X = **This Vue Plugin provides a simple and flexible way to create modals for your web applications using a file-based approach. Easily define modal content in separate files, allowing for better organization and maintainability with minimal effort.
13 lines (12 loc) • 355 B
JavaScript
import Modal from '../Modal.vue'
import { createVNode, render } from 'vue'
export default {
install: (app) => {
const container = document.createElement("div")
container.style.overflow = 'auto'
document.body.appendChild(container)
const vnode = createVNode(Modal)
vnode.appContext = app._context
render(vnode, container)
}
}