chushihua

This commit is contained in:
li
2026-01-26 23:20:48 +08:00
commit 7b5aab0206
22521 changed files with 3300090 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import document from './document';
const win = (typeof window === 'undefined') ? {
document,
navigator: {
userAgent: '',
},
location: {},
history: {},
CustomEvent: function CustomEvent() {
return this;
},
addEventListener() {},
removeEventListener() {},
getComputedStyle() {
return {
getPropertyValue() {
return '';
},
};
},
Image() {},
Date() {},
screen: {},
setTimeout() {},
clearTimeout() {},
} : window; // eslint-disable-line
export default win;