mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-12-14 01:48:44 +00:00
[adapters] 增加小游戏适配部分源码
This commit is contained in:
33
adapters/platforms/baidu/wrapper/builtin/HTMLElement.js
Normal file
33
adapters/platforms/baidu/wrapper/builtin/HTMLElement.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/* eslint-disable */
|
||||
import { noop } from './util/index.js'
|
||||
import * as Mixin from './util/mixin'
|
||||
import Element from './Element'
|
||||
|
||||
export default class HTMLElement extends Element {
|
||||
|
||||
constructor(tagName = '', level) {
|
||||
super()
|
||||
|
||||
this.className = ''
|
||||
this.childern = []
|
||||
|
||||
this.focus = noop
|
||||
this.blur = noop
|
||||
|
||||
this.insertBefore = noop
|
||||
this.appendChild = noop
|
||||
this.removeChild = noop
|
||||
this.remove = noop
|
||||
|
||||
this.innerHTML = ''
|
||||
|
||||
this.tagName = tagName.toUpperCase()
|
||||
|
||||
Mixin.parentNode(this, level);
|
||||
Mixin.style(this);
|
||||
Mixin.classList(this);
|
||||
Mixin.clientRegion(this);
|
||||
Mixin.offsetRegion(this);
|
||||
Mixin.scrollRegion(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user