GamePortrait/node_modules/.cache/babel-loader/b2991b326cbc56faa4d869819aa100294900502cab5c278f9a965fc774a7f430.json

1 line
3.0 KiB
JSON

{"ast":null,"code":"import { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-323a520c\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n class: \"game-iframe\"\n};\nconst _hoisted_2 = [\"src\"];\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [false ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"back\",\n onClick: _cache[0] || (_cache[0] = (...args) => $setup.goBack && $setup.goBack(...args))\n }, \"返回\")) : _createCommentVNode(\"v-if\", true), _createElementVNode(\"iframe\", {\n class: \"iframe\",\n src: $setup.gameUrl,\n frameborder: \"0\"\n }, null, 8 /* PROPS */, _hoisted_2)]);\n}","map":{"version":3,"names":["class","_createElementBlock","_hoisted_1","onClick","_cache","args","$setup","goBack","_createElementVNode","src","gameUrl","frameborder"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/views/game.vue"],"sourcesContent":["<template>\n <div class=\"game-iframe\">\n <div v-if=\"false\" class=\"back\" @click=\"goBack\">返回</div>\n <iframe class=\"iframe\" :src=\"gameUrl\" frameborder=\"0\"></iframe>\n </div>\n</template>\n\n<script>\nimport { computed, onMounted } from \"vue\"\nimport { useStore } from \"vuex\"\nimport { useRouter } from \"vue-router\"\nexport default {\n name: \"GameIframe\",\n setup() {\n const store = useStore()\n const router = useRouter()\n const gameUrl = computed(() => store.state.app.gameUrl)\n const goBack = () => {\n router.back()\n }\n onMounted(() => {\n store.commit(\"config/setValue\", { name: \"musicVolume\", type: false })\n })\n return { gameUrl, goBack }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.game-iframe {\n width: 100%;\n height: 100%;\n background: #000;\n position: absolute;\n transform: rotateX(0deg);\n .back {\n position: absolute;\n z-index: 999;\n top: 0.34rem;\n left: 0.5rem;\n width: 1.2rem;\n height: 1.2rem;\n background: #212121;\n font-size: 0.4rem;\n text-align: center;\n line-height: 1.2rem;\n border-radius: 0.2rem;\n font-weight: bold;\n box-sizing: border-box;\n border: 1px solid #959494;\n color: #fff;\n &:active {\n opacity: 0.8;\n }\n }\n .iframe {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n}\n</style>\n"],"mappings":";;;EACOA,KAAK,EAAC;AAAa;;;uBAAxBC,mBAAA,CAGM,OAHNC,UAGM,GAFO,KAAK,I,cAAhBD,mBAAA,CAAuD;;IAArCD,KAAK,EAAC,MAAM;IAAEG,OAAK,EAAAC,MAAA,QAAAA,MAAA,UAAAC,IAAA,KAAEC,MAAA,CAAAC,MAAA,IAAAD,MAAA,CAAAC,MAAA,IAAAF,IAAA,CAAM;KAAE,IAAE,K,mCACjDG,mBAAA,CAA+D;IAAvDR,KAAK,EAAC,QAAQ;IAAES,GAAG,EAAEH,MAAA,CAAAI,OAAO;IAAEC,WAAW,EAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}