mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-01-15 07:21:07 +00:00
19 lines
396 B
JavaScript
19 lines
396 B
JavaScript
/* 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;
|
|
};
|