forked from liweijie/education
1 line
3.4 KiB
JSON
1 line
3.4 KiB
JSON
{"remainingRequest":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\Admin\\Desktop\\education\\frontend\\src\\layout\\components\\InnerLink\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\src\\layout\\components\\InnerLink\\index.vue","mtime":1787567871540},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\babel-loader\\lib\\index.js","mtime":1787309793142},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js","mtime":1787309793790}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQpleHBvcnQgZGVmYXVsdCB7DQogIHByb3BzOiB7DQogICAgc3JjOiB7DQogICAgICB0eXBlOiBTdHJpbmcsDQogICAgICBkZWZhdWx0OiAiLyINCiAgICB9LA0KICAgIGlmcmFtZUlkOiB7DQogICAgICB0eXBlOiBTdHJpbmcNCiAgICB9DQogIH0sDQogIGRhdGEoKSB7DQogICAgcmV0dXJuIHsNCiAgICAgIGxvYWRpbmc6IGZhbHNlLA0KICAgICAgaGVpZ2h0OiBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuY2xpZW50SGVpZ2h0IC0gOTQuNSArICJweDsiDQogICAgfQ0KICB9LA0KICBtb3VudGVkKCkgew0KICAgIHZhciBfdGhpcyA9IHRoaXMNCiAgICBjb25zdCBpZnJhbWVJZCA9ICgiIyIgKyB0aGlzLmlmcmFtZUlkKS5yZXBsYWNlKC9cLy9nLCAiXFwvIikNCiAgICBjb25zdCBpZnJhbWUgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKGlmcmFtZUlkKQ0KICAgIC8vIGlmcmFtZemhtemdomxvYWRpbmfmjqfliLYNCiAgICBpZiAoaWZyYW1lLmF0dGFjaEV2ZW50KSB7DQogICAgICB0aGlzLmxvYWRpbmcgPSB0cnVlDQogICAgICBpZnJhbWUuYXR0YWNoRXZlbnQoIm9ubG9hZCIsIGZ1bmN0aW9uICgpIHsNCiAgICAgICAgX3RoaXMubG9hZGluZyA9IGZhbHNlDQogICAgICB9KQ0KICAgIH0gZWxzZSB7DQogICAgICB0aGlzLmxvYWRpbmcgPSB0cnVlDQogICAgICBpZnJhbWUub25sb2FkID0gZnVuY3Rpb24gKCkgew0KICAgICAgICBfdGhpcy5sb2FkaW5nID0gZmFsc2UNCiAgICAgIH0NCiAgICB9DQogIH0NCn0NCg=="},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/layout/components/InnerLink","sourcesContent":["<template>\r\n <div :style=\"'height:' + height\" v-loading=\"loading\" element-loading-text=\"正在加载页面,请稍候!\">\r\n <iframe\r\n :id=\"iframeId\"\r\n style=\"width: 100%; height: 100%\"\r\n :src=\"src\"\r\n frameborder=\"no\"\r\n ></iframe>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n props: {\r\n src: {\r\n type: String,\r\n default: \"/\"\r\n },\r\n iframeId: {\r\n type: String\r\n }\r\n },\r\n data() {\r\n return {\r\n loading: false,\r\n height: document.documentElement.clientHeight - 94.5 + \"px;\"\r\n }\r\n },\r\n mounted() {\r\n var _this = this\r\n const iframeId = (\"#\" + this.iframeId).replace(/\\//g, \"\\\\/\")\r\n const iframe = document.querySelector(iframeId)\r\n // iframe页面loading控制\r\n if (iframe.attachEvent) {\r\n this.loading = true\r\n iframe.attachEvent(\"onload\", function () {\r\n _this.loading = false\r\n })\r\n } else {\r\n this.loading = true\r\n iframe.onload = function () {\r\n _this.loading = false\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n"]}]} |