cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
2 lines (1 loc) • 1.32 kB
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e=require("vue"),t=require("./main.js");require("./index.vue_vue_type_style_index_0_scoped_true_lang.js");var o=require("../../_virtual/plugin-vue_export-helper.js");const n=e.defineComponent({name:"CoNovncStd",props:{src:{type:String},width:{type:String},height:{type:String},setConfig:{type:Object}},components:{Main:t.default},setup(t){const o=e.ref(!1);return{showDialog:o,fullScreen:e=>{o.value=e},...e.toRefs(t)}}}),l={key:0,class:"m-layout-dialog-wrapper"};var r=o.default(n,[["render",function(t,o,n,r,i,c){const a=e.resolveComponent("Main");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"co-novnc-std",style:e.normalizeStyle({width:t.width||"100%",height:t.height||"100%"})},[t.showDialog?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,setConfig:t.setConfig,onFullScreen:t.fullScreen},null,8,["setConfig","onFullScreen"]))],4),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[t.showDialog?(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(a,{setConfig:t.setConfig,onFullScreen:t.fullScreen},null,8,["setConfig","onFullScreen"])])):e.createCommentVNode("",!0)]))],64)}],["__scopeId","data-v-3a51d497"]]);exports.default=r;