1 line
3.4 KiB
JSON
1 line
3.4 KiB
JSON
|
{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\Screenfull\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\Screenfull\\index.vue","mtime":1718070786004},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgc2NyZWVuZnVsbCBmcm9tICdzY3JlZW5mdWxsJw0KDQpleHBvcnQgZGVmYXVsdCB7DQogIG5hbWU6ICdTY3JlZW5mdWxsJywNCiAgZGF0YSgpIHsNCiAgICByZXR1cm4gew0KICAgICAgaXNGdWxsc2NyZWVuOiBmYWxzZQ0KICAgIH0NCiAgfSwNCiAgbW91bnRlZCgpIHsNCiAgICB0aGlzLmluaXQoKQ0KICB9LA0KICBiZWZvcmVEZXN0cm95KCkgew0KICAgIHRoaXMuZGVzdHJveSgpDQogIH0sDQogIG1ldGhvZHM6IHsNCiAgICBjbGljaygpIHsNCiAgICAgIGlmICghc2NyZWVuZnVsbC5lbmFibGVkKSB7DQogICAgICAgIHRoaXMuJG1lc3NhZ2Uoew0KICAgICAgICAgIG1lc3NhZ2U6ICd5b3UgYnJvd3NlciBjYW4gbm90IHdvcmsnLA0KICAgICAgICAgIHR5cGU6ICd3YXJuaW5nJw0KICAgICAgICB9KQ0KICAgICAgICByZXR1cm4gZmFsc2UNCiAgICAgIH0NCiAgICAgIHNjcmVlbmZ1bGwudG9nZ2xlKCkNCiAgICB9LA0KICAgIGNoYW5nZSgpIHsNCiAgICAgIHRoaXMuaXNGdWxsc2NyZWVuID0gc2NyZWVuZnVsbC5pc0Z1bGxzY3JlZW4NCiAgICB9LA0KICAgIGluaXQoKSB7DQogICAgICBpZiAoc2NyZWVuZnVsbC5lbmFibGVkKSB7DQogICAgICAgIHNjcmVlbmZ1bGwub24oJ2NoYW5nZScsIHRoaXMuY2hhbmdlKQ0KICAgICAgfQ0KICAgIH0sDQogICAgZGVzdHJveSgpIHsNCiAgICAgIGlmIChzY3JlZW5mdWxsLmVuYWJsZWQpIHsNCiAgICAgICAgc2NyZWVuZnVsbC5vZmYoJ2NoYW5nZScsIHRoaXMuY2hhbmdlKQ0KICAgICAgfQ0KICAgIH0NCiAgfQ0KfQ0K"},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;AAOA;;AAEA;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;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/components/Screenfull","sourcesContent":["<template>\r\n <div>\r\n <svg-icon :icon-class=\"isFullscreen?'exit-fullscreen':'fullscreen'\" @click=\"click\" />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport screenfull from 'screenfull'\r\n\r\nexport default {\r\n name: 'Screenfull',\r\n data() {\r\n return {\r\n isFullscreen: false\r\n }\r\n },\r\n mounted() {\r\n this.init()\r\n },\r\n beforeDestroy() {\r\n this.destroy()\r\n },\r\n methods: {\r\n click() {\r\n if (!screenfull.enabled) {\r\n this.$message({\r\n message: 'you browser can not work',\r\n type: 'warning'\r\n })\r\n return false\r\n }\r\n screenfull.toggle()\r\n },\r\n change() {\r\n this.isFullscreen = screenfull.isFullscreen\r\n },\r\n init() {\r\n if (screenfull.enabled) {\r\n screenfull.on('change', this.change)\r\n }\r\n },\r\n destroy() {\r\n if (screenfull.enabled) {\r\n screenfull.off('change', this.change)\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.screenfull-svg {\r\n display: inline-block;\r\n cursor: pointer;\r\n fill: #5a5e66;;\r\n width: 20px;\r\n height: 20px;\r\n vertical-align: 10px;\r\n}\r\n</style>\r\n"]}]}
|