feat: 将 tocoModals 重命名为 tocoOverlays 以支持更多浮层类型

This commit is contained in:
dayjoy
2025-05-09 16:27:16 +08:00
parent 58406d2d54
commit 10d37978dd
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -33,6 +33,6 @@ module.exports = {
],
globals: {
tocoRefs: true,
tocoModals: true,
tocoOverlays: true,
},
};
+1 -1
View File
@@ -55,7 +55,7 @@
navigate:页面跳转方法,用法:navigate('/path')
tocoServices:页面的请求
tocoRefs:页面上所有带 id 组件的 refs
tocoModals:页面上所有带 id 弹窗的 refs
tocoOverlays:页面上所有带 id 弹窗/抽屉等浮层的 refs
```
## 目录结构
+1 -1
View File
@@ -3,7 +3,7 @@
declare global {
var tocoRefs: Record<string, any>;
var tocoModals: Record<string, any>;
var tocoOverlays: Record<string, any>;
}
export {};
+1 -1
View File
@@ -22,4 +22,4 @@ reportWebVitals();
// global variables
globalThis.tocoRefs = tocoGlobal.getRefs();
globalThis.tocoModals = tocoGlobal.getModals();
globalThis.tocoOverlays = tocoGlobal.getOverlays();