shineout
Version:
Shein 前端组件库
17 lines (15 loc) • 428 B
JavaScript
/**
* 最外层容器
*/
import ready from './ready';
var Container = null;
var getContainer = function getContainer() {
if (Container) return Container;
Container = document.createElement('div');
Container.setAttribute('style', 'position: absolute; top: 0; left: 0; width: 100%; contain: size');
ready(function () {
document.body.appendChild(Container);
});
return Container;
};
export default getContainer;