import{_ as m}from"./index-M_JNBppB.js";/* empty css                   */import{v as d}from"./element-3_pOinej.js";import{r as a,c as p,w as u,j as f,G as _,B as g,z as v,D as h,H as y}from"./vue-BJk78QHK.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const C={"element-loading-text":"组件加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.2)",style:{height:"100%"}},b=["srcdoc"],w=Object.assign({name:"CustomChart"},{__name:"CustomChart",props:{element:{type:Object,default:()=>({})},propValue:{type:Object,default:()=>({})},editorpage:{type:Boolean,default:!1}},emits:["update:propValue"],setup(o,{emit:k}){const l=o,r=a(!0),t=a(null),n=a(""),s=p(()=>l.propValue.script||"<div>默认内容</div>");function i(e){n.value=e}return u(s,e=>{i(e)},{immediate:!0}),f(()=>{t.value&&(t.value.onload=()=>{r.value=!1},i(s.value))}),(e,B)=>{const c=d;return _((v(),g("div",C,[h("iframe",{ref_key:"iframe",ref:t,scrolling:"no",class:y(["iframe",{myFrame:o.editorpage}]),width:"100%",allowtransparency:"true",style:{"border-width":"0","background-color":"transparent"},height:"100%",title:"myFrame",srcdoc:n.value},null,10,b)])),[[c,r.value]])}}}),I=m(w,[["__scopeId","data-v-a6a427e5"]]);export{I as default};
