20260711173006

This commit is contained in:
oneao committed 2026-07-11 17:30:09 +08:00
1 parent d080a2a48d
commit 446758b2fe
384 files changed
+153926 -5937

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, {
father,
moduleid,
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