refactor: 重构layout文件命名规范,更易读 (#1110)

This commit is contained in:
xiaoming
2024-04-30 22:27:54 +08:00
committed by GitHub
parent 2f9bc7e187
commit b8159a0d73
53 changed files with 332 additions and 378 deletions

View File

@@ -0,0 +1,25 @@
const MAP = new Map();
export const useMultiFrame = () => {
function setMap(path, Comp) {
MAP.set(path, Comp);
}
function getMap(path?) {
if (path) {
return MAP.get(path);
}
return [...MAP.entries()];
}
function delMap(path) {
MAP.delete(path);
}
return {
setMap,
getMap,
delMap,
MAP
};
};