UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

65 lines (64 loc) 2.02 kB
import { defineComponent, ref, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeStyle, createBlock, createCommentVNode, Teleport, createVNode } from "vue"; import Main from "./main.mjs"; import "./index.vue_vue_type_style_index_0_scoped_true_lang.mjs"; import _export_sfc from "../../_virtual/plugin-vue_export-helper.mjs"; const _sfc_main = defineComponent({ name: "CoNovncStd", props: { src: { type: String }, width: { type: String }, height: { type: String }, setConfig: { type: Object } }, components: { Main }, setup(props) { const showDialog = ref(false); const fullScreen = (val) => { showDialog.value = val; }; return { showDialog, fullScreen, ...toRefs(props) }; } }); const _hoisted_1 = { key: 0, class: "m-layout-dialog-wrapper" }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_Main = resolveComponent("Main"); return openBlock(), createElementBlock(Fragment, null, [ createElementVNode("div", { class: "co-novnc-std", style: normalizeStyle({ width: _ctx.width || "100%", height: _ctx.height || "100%" }) }, [ !_ctx.showDialog ? (openBlock(), createBlock(_component_Main, { key: 0, setConfig: _ctx.setConfig, onFullScreen: _ctx.fullScreen }, null, 8, ["setConfig", "onFullScreen"])) : createCommentVNode("", true) ], 4), (openBlock(), createBlock(Teleport, { to: "body" }, [ _ctx.showDialog ? (openBlock(), createElementBlock("div", _hoisted_1, [ createVNode(_component_Main, { setConfig: _ctx.setConfig, onFullScreen: _ctx.fullScreen }, null, 8, ["setConfig", "onFullScreen"]) ])) : createCommentVNode("", true) ])) ], 64); } var CoNovncStd = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3a51d497"]]); export { CoNovncStd as default };