mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-08 18:26:36 +08:00
21 lines
427 B
TypeScript
21 lines
427 B
TypeScript
import { createApp, h } from 'vue';
|
|
import ProductPackage from '@/components/ProductPackage/index.vue';
|
|
|
|
export function showProductPackage() {
|
|
const div = document.createElement('div');
|
|
document.body.appendChild(div);
|
|
|
|
const app = createApp({
|
|
render() {
|
|
return h(ProductPackage, {
|
|
onClose: () => {
|
|
app.unmount();
|
|
div.remove();
|
|
},
|
|
});
|
|
},
|
|
});
|
|
|
|
app.mount(div);
|
|
}
|