6.6.0 - 内置模块重写; 新增部分模块及方法; 修复高版本安卓系统兼容问题; 优化文件管理器及打包功能体验

This commit is contained in:
SuperMonster003
2024-12-02 15:07:37 +08:00
parent 00171e9235
commit 19fc1bcd76
1256 changed files with 89235 additions and 24130 deletions

View File

@@ -0,0 +1,33 @@
(function(){
let {setReadonlyAttribute} = require("modules/axios/browser-libs/utils.js");
let Event = function(type) {
setReadonlyAttribute(this, 'bubbles', false);
setReadonlyAttribute(this, 'eventPhase', 0);
//是否可取消
setReadonlyAttribute(this, 'cancelable', false)
this.cancelBubble = false;
setReadonlyAttribute(this, 'defaultPrevented', false)
//节点
setReadonlyAttribute(this, 'target', null)
setReadonlyAttribute(this, 'currentTarget', null)
setReadonlyAttribute(this, 'type', type)
//时间截
Object.defineProperty(this, 'timeStamp', {
get: function() {
return Date.now() - Event._loadTimeStamp;
}
})
setReadonlyAttribute(this, 'isTrusted', false)
}
Event.prototype[Symbol.toStringTag] = 'Event';
Event._loadTimeStamp = Date.now();
Event.prototype.preventDefault = function() {}
Event.prototype.stopPropagation = function() {}
Event.prototype.stopImmediatePropagation = function() {
}
module.exports = Event
})()