[adapters] 增加小游戏适配部分源码

This commit is contained in:
SmallMain
2024-10-16 17:12:08 +08:00
parent 887d4a96c9
commit 07bf3b7a96
345 changed files with 38447 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/* eslint-disable */
import * as Mixin from './util/mixin'
import HTMLImageElement from './HTMLImageElement'
export default function() {
const image = swan.createImage();
// image.__proto__.__proto__.__proto__ = new HTMLImageElement();
if (!('tagName' in image)) {
image.tagName = 'IMG'
}
Mixin.parentNode(image);
Mixin.classList(image);
return image;
};