20260715173700

This commit is contained in:
oneao committed 2026-07-15 17:37:01 +08:00
1 parent bf7b3259bc
commit 7049584d1e
366 files changed
+157207

No files matched your search

@@ -0,0 +1,44 @@
import { createVNode, getCurrentInstance, render } from "vue";
import File from "./index.vue";
export function showfile(
moduleid,
father,
cateid = "",
searchcondition = "",
readonly = false,
categories = [],
) {
const container = document.createElement("div");
document.body.appendChild(container);
const vnode = createVNode(File, {
moduleid,
father,
cateid,
searchcondition,
readonly,
categories,
modelValue: true,
"onUpdate:modelValue": (val) => {
if (!val) close();
},
onClosed: () => {
close();
},
});
const instance = getCurrentInstance();
if (instance) {
vnode.appContext = instance.appContext;
}
function close() {
render(null, container);
container.remove();
}
render(vnode, container);
}
File diff suppressed because it is too large. Load diff