feat: 将 tocoModals 重命名为 tocoOverlays 以支持更多浮层类型
This commit is contained in:
@@ -33,6 +33,6 @@ module.exports = {
|
||||
],
|
||||
globals: {
|
||||
tocoRefs: true,
|
||||
tocoModals: true,
|
||||
tocoOverlays: true,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
navigate:页面跳转方法,用法:navigate('/path')
|
||||
tocoServices:页面的请求
|
||||
tocoRefs:页面上所有带 id 组件的 refs
|
||||
tocoModals:页面上所有带 id 弹窗的 refs
|
||||
tocoOverlays:页面上所有带 id 弹窗/抽屉等浮层的 refs
|
||||
```
|
||||
|
||||
## 目录结构
|
||||
|
||||
2
src/global.d.ts
vendored
2
src/global.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
|
||||
declare global {
|
||||
var tocoRefs: Record<string, any>;
|
||||
var tocoModals: Record<string, any>;
|
||||
var tocoOverlays: Record<string, any>;
|
||||
}
|
||||
|
||||
export {};
|
||||
|
||||
@@ -22,4 +22,4 @@ reportWebVitals();
|
||||
|
||||
// global variables
|
||||
globalThis.tocoRefs = tocoGlobal.getRefs();
|
||||
globalThis.tocoModals = tocoGlobal.getModals();
|
||||
globalThis.tocoOverlays = tocoGlobal.getOverlays();
|
||||
|
||||
Reference in New Issue
Block a user