UNPKG

@tarojs/components

Version:
1 lines 475 B
import{r,c as o,h as t}from"./p-f05e1558.js";let e=class{constructor(t){r(this,t),this.onLoad=o(this,"load",7),this.onError=o(this,"error",7)}render(){const{src:r,onLoad:o,onError:e}=this;return t("iframe",{class:"taro-webview",onLoad:t=>{t.stopPropagation(),o.emit({src:r})},onError:o=>{o.stopPropagation(),e.emit({src:r})},src:r})}};e.style="iframe{border:none}.taro-webview{position:fixed;top:0;bottom:0;z-index:999;width:100%;height:100%}";export{e as taro_web_view_core}