v2fullscreen
Version:
7 lines • 20.7 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["v2fullscreen"]=t():e["v2fullscreen"]=t()})("undefined"!==typeof self?self:this,()=>(()=>{var e={51:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(335),s=n.n(o),i=n(184),r=n.n(i),a=r()(s());a.push([e.id,".popupWarpper[data-v-54ea8129]{position:fixed;bottom:0;right:0;width:100%;left:50%;top:50%}",""]);const l=a},184:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",o="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,o,s,i){"string"===typeof e&&(e=[[null,e,void 0]]);var r={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var h=0;h<e.length;h++){var c=[].concat(e[h]);o&&r[c[0]]||("undefined"!==typeof i&&("undefined"===typeof c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),s&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=s):c[4]="".concat(s)),t.push(c))}},t}},198:(e,t,n)=>{var o=n(695);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var s=n(434).A;s("2c1509b5",o,!0,{sourceMap:!1,shadowMode:!1})},204:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(335),s=n.n(o),i=n(184),r=n.n(i),a=r()(s());a.push([e.id,".screenWrapper[data-v-afd4ff20]{background-color:#fff;overflow:hidden}main[data-v-afd4ff20]{display:flex;justify-content:space-between;overflow:hidden}",""]);const l=a},230:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(335),s=n.n(o),i=n(184),r=n.n(i),a=r()(s());a.push([e.id,".headWarpper[data-v-71656292]{display:flex;flex-direction:row;justify-content:space-between}",""]);const l=a},241:(e,t,n)=>{"use strict";n.d(t,{A:()=>o}),e=n.hmd(e),
/*!
* screenfull
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/
function(){var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,o=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=0,s=n.length,i={};o<s;o++)if(e=n[o],e&&e[1]in t){for(o=0;o<e.length;o++)i[n[0][o]]=e[o];return i}return!1}(),s={change:o.fullscreenchange,error:o.fullscreenerror},i={request:function(e,n){return new Promise(function(s,i){var r=function(){this.off("change",r),s()}.bind(this);this.on("change",r),e=e||t.documentElement;var a=e[o.requestFullscreen]&&e[o.requestFullscreen](n);a instanceof Promise&&a.then(r).catch(i)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var s=function(){this.off("change",s),e()}.bind(this);this.on("change",s);var i=t[o.exitFullscreen]();i instanceof Promise&&i.then(s).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var o=s[e];o&&t.addEventListener(o,n,!1)},off:function(e,n){var o=s[e];o&&t.removeEventListener(o,n,!1)},raw:o};o?(Object.defineProperties(i,{isFullscreen:{get:function(){return Boolean(t[o.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[o.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[o.fullscreenEnabled])}}}),n?e.exports=i:window.screenfull=i):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}}();const o=screenfull},281:(e,t,n)=>{var o=n(204);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var s=n(434).A;s("4d1ee60b",o,!0,{sourceMap:!1,shadowMode:!1})},335:e=>{"use strict";e.exports=function(e){return e[1]}},434:(e,t,n)=>{"use strict";function o(e,t){for(var n=[],o={},s=0;s<t.length;s++){var i=t[s],r=i[0],a=i[1],l=i[2],h=i[3],c={id:e+":"+s,css:a,media:l,sourceMap:h};o[r]?o[r].parts.push(c):n.push(o[r]={id:r,parts:[c]})}return n}n.d(t,{A:()=>m});var s="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},r=s&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,h=!1,c=function(){},d=null,u="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e,t,n,s){h=n,d=s||{};var r=o(e,t);return f(r),function(t){for(var n=[],s=0;s<r.length;s++){var a=r[s],l=i[a.id];l.refs--,n.push(l)}t?(r=o(e,t),f(r)):r=[];for(s=0;s<n.length;s++){l=n[s];if(0===l.refs){for(var h=0;h<l.parts.length;h++)l.parts[h]();delete i[l.id]}}}}function f(e){for(var t=0;t<e.length;t++){var n=e[t],o=i[n.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](n.parts[s]);for(;s<n.parts.length;s++)o.parts.push(g(n.parts[s]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var r=[];for(s=0;s<n.parts.length;s++)r.push(g(n.parts[s]));i[n.id]={id:n.id,refs:1,parts:r}}}}function v(){var e=document.createElement("style");return e.type="text/css",r.appendChild(e),e}function g(e){var t,n,o=document.querySelector("style["+u+'~="'+e.id+'"]');if(o){if(h)return c;o.parentNode.removeChild(o)}if(p){var s=l++;o=a||(a=v()),t=b.bind(null,o,s,!1),n=b.bind(null,o,s,!0)}else o=v(),t=y.bind(null,o),n=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else n()}}var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,o){var s=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,s);else{var i=document.createTextNode(s),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(i,r[t]):e.appendChild(i)}}function y(e,t){var n=t.css,o=t.media,s=t.sourceMap;if(o&&e.setAttribute("media",o),d.ssrId&&e.setAttribute(u,t.id),s&&(n+="\n/*# sourceURL="+s.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},460:(e,t,n)=>{var o=n(51);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var s=n(434).A;s("be4eaaf2",o,!0,{sourceMap:!1,shadowMode:!1})},473:(e,t,n)=>{var o=n(714);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var s=n(434).A;s("402b24b2",o,!0,{sourceMap:!1,shadowMode:!1})},476:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(335),s=n.n(o),i=n(184),r=n.n(i),a=r()(s());a.push([e.id,".footWarpper[data-v-075490c8]{display:flex;flex-direction:row;justify-content:space-between}",""]);const l=a},511:(e,t,n)=>{var o=n(230);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var s=n(434).A;s("448e6e88",o,!0,{sourceMap:!1,shadowMode:!1})},695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(335),s=n.n(o),i=n(184),r=n.n(i),a=r()(s());a.push([e.id,".columnWrapper[data-v-274e3cef]{display:flex;flex-direction:column;justify-content:space-between}",""]);const l=a},714:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(335),s=n.n(o),i=n(184),r=n.n(i),a=r()(s());a.push([e.id,".rowWarpper[data-v-3cbc64fc]{display:flex;flex-direction:row;justify-content:space-between}",""]);const l=a},877:(e,t,n)=>{var o=n(476);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals);var s=n(434).A;s("29f57c00",o,!0,{sourceMap:!1,shadowMode:!1})}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o](i,i.exports,n),i.loaded=!0,i.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{n.hmd=e=>(e=Object.create(e),e.children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e)})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{n.p=""})();var o={};return(()=>{"use strict";if(n.r(o),n.d(o,{default:()=>ne,screenfull:()=>l.A,tool:()=>Z,vChart:()=>L,vCol:()=>j,vFoot:()=>S,vFullscreen:()=>p,vHead:()=>y,vPopup:()=>K,vRow:()=>A}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(n.p=t[1])}var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"screenWrapper",style:"width:"+e.pageW+"px;height:"+e.pageH+"px;",attrs:{allowfullscreen:"true"}},[n("header",{ref:"header"},[e._t("header")],2),n("main",{style:"height:"+e.mainH+"px"},[e._t("default")],2),n("footer",{ref:"footer"},[e._t("footer")],2)])},i=[];function r(e,t,n){this.$children.forEach(o=>{const s=o.$children.length;var i=o.$options._componentTag;i===e?(o.$emit.apply(o,[t].concat(n)),s&&r.call(o,e,t,n)):r.apply(o,[e,t].concat([n]))})}const a={methods:{dispatch(e,t,n){var o=this.$parent||this.$root,s=o.$options._componentTag,i=0;while(o&&(!s||s!==e))o=o.$parent,i++,o&&(s=o.$options._componentTag);o&&("object"===typeof n&&(n.level=i),o.$emit.apply(o,[t].concat(n)))},broadcast(e,t,n){r.call(this,e,t,n)}}};var l=n(241);const h={name:"v-fullscreen",mixins:[a],components:{},props:{outerSpace:{type:Number,default:15},screenW:{type:Number,default:1920},screenH:{type:Number,default:1080}},data(){return{pageW:0,pageH:0,mainH:0,component:{},componentInfo:[],rootRate:0,isFullScreen:!1}},provide(){return{root:this.component}},watch:{isFullScreen(e,t){if(this.toFullScreen(),e){const e=document.getElementsByTagName("html")[0];e.style.fontSize="100px",this.rootRate=1}else setTimeout(()=>{this.setHtmlFontSize()},400)}},computed:{},methods:{setModuleSize(){this.$nextTick(e=>{this.componentInfo.forEach(e=>{const{name:t,width:n,height:o}=e,s=t+"_width",i=t+"_height",r=this.component,a=n*this.pageW/this.width,l=o*this.pageH/this.height;Object.assign(r,{[s]:a,[i]:l})})})},setModelHeight(){this.$nextTick(()=>{const e=window.innerHeight||document.documentElement.clientHeight,t=window.innerWidth||document.documentElement.clientWidth;this.pageW=t,this.pageH=e})},setHtmlFontSize(){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.getElementsByTagName("html")[0],n=t.style.fontSize;t.style.fontSize=e/19.2+"px",this.rootRate=n.replace(/[^0-9.]/gi,"")/100},handleModel(){this.$nextTick(e=>{this.componentInfo.forEach(e=>{const t=e.name+"W",n=e.name+"H";Object.assign(this.component,{[t]:e.width*this.pageW/1920,[n]:e.height*this.pageH/1080}),!e.level&&e.name.indexOf("_v-head")>0?(this.mainH=this.pageH-this.component[n],this.broadcast("v-head","setHead",this.component)):!e.level&&e.name.indexOf("_v-foot")>0?(this.mainH=this.mainH-this.component[n],this.broadcast("v-foot","setFoot",this.component)):e.name.indexOf("_v-row")>0?this.broadcast("v-row","setRow",this.component):e.name.indexOf("_v-col")>0?this.broadcast("v-col","setCol",this.component):this.broadcast("v-chart","setChart",this.component)})})},toFullScreen(e){l.A.isEnabled?(this.isFullScreen&&!e?l.A.request():l.A.exit(),setTimeout(()=>{this.setModelHeight(),this.handleModel()},400)):console.error("unEnabled")},checkFullScreen(){var e=window.fullScreen||document.webkitIsFullScreen||document.msFullscreenEnabled;return void 0===e&&(e=!1),e},handleResize(){const e=this.checkFullScreen();e||(this.isFullScreen=e,this.toFullScreen())}},created(){this.setHtmlFontSize(),this.setModelHeight()},mounted(){const e=this;let t=null;window.addEventListener("resize",n=>{null!==t&&clearTimeout(t),t=setTimeout(()=>{e.handleResize()},400)}),this.$on("handleModule",e=>{const t=e.name+"W",n=e.name+"H";Object.assign(this.component,{[t]:e.width*this.pageW/1920,[n]:e.height*this.pageH/1080}),this.componentInfo.push(e),!e.level&&e.name.indexOf("_v-head")>0?this.mainH=this.pageH-this.component[n]:!e.level&&e.name.indexOf("_v-foot")>0&&(this.mainH=this.mainH-this.component[n])}),this.$on("handleDialog",e=>{const t=e.name+"W",n=e.name+"H";Object.assign(this.component,{[t]:e.width*this.pageW/1920,[n]:e.height*this.pageH/1080}),this.componentInfo.push(e)}),this.$on("handleScreen",e=>{const{isFullScreen:t}=this;t!==e&&(this.isFullScreen=e)})}},c=h;n(281);function d(e,t,n,o,s,i,r,a){var l,h="function"===typeof e?e.options:e;if(t&&(h.render=t,h.staticRenderFns=n,h._compiled=!0),o&&(h.functional=!0),i&&(h._scopeId="data-v-"+i),r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},h._ssrRegister=l):s&&(l=a?function(){s.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:s),l)if(h.functional){h._injectStyles=l;var c=h.render;h.render=function(e,t){return l.call(t),c(e,t)}}else{var d=h.beforeCreate;h.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:h}}var u=d(c,s,i,!1,null,"afd4ff20",null);const p=u.exports;var m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"headWarpper",style:"height:"+(e.modelH?e.modelH+"px":"100%")+";width:"+(e.modelW?e.modelW+"px":"100%"),on:{click:e.handleFullScreen}},[e._t("default",null,{chart:{height:e.modelH,width:e.modelW,zoom:e.zoom}})],2)},f=[];function v(e){if(e&&"number"==typeof Number(e)){for(var t=["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],n=[],o=Number(e),s=t.length,i=0;i<o;i++)n.push(t[Math.floor(Math.random()*s)]);return n.join("")}}const g={name:"v-head",mixins:[a],components:{},inject:["root"],data(){return{chart:null,modelH:0,modelW:0,zoom:0,isFullScreen:!1}},props:{height:{type:Number,default:0},width:{type:Number,default:0},name:{type:String,default:""}},computed:{hashName(){const e=v(5)+"_v-head";return e}},mounted(){this.$nextTick(e=>{this.dispatch("v-fullscreen","handleModule",{name:this.hashName,height:this.height,width:this.width}),this.modelH=this.root[`${this.hashName}H`],this.modelW=this.root[`${this.hashName}W`],this.$emit("popHead",{height:this.modelH,width:this.modelW})}),this.$on("setHead",e=>{this.modelH=e[`${this.hashName}H`],this.modelW=e[`${this.hashName}W`],this.$emit("popHead",{height:this.modelH,width:this.modelW})}),this.$on("setFullScreen",e=>{this.isFullScreen=e})},methods:{handleFullScreen(){this.isFullScreen=!this.isFullScreen,this.dispatch("v-fullscreen","handleScreen",this.isFullScreen)}}},w=g;n(511);var b=d(w,m,f,!1,null,"71656292",null);const y=b.exports;var x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footWarpper",style:"height:"+(e.modelH?e.modelH+"px":"100%")+";width:"+(e.modelW?e.modelW+"px":"100%")},[e._t("default",null,{chart:{height:e.modelH,width:e.modelW,zoom:e.zoom}})],2)},H=[];const _={name:"v-foot",mixins:[a],components:{},inject:["root"],data(){return{chart:null,modelH:0,modelW:0,zoom:0,isFullScreen:!1}},props:{height:{type:Number,default:0},width:{type:Number,default:0},name:{type:String,default:""}},computed:{hashName(){const e=v(5)+"_v-foot";return e}},mounted(){this.$nextTick(e=>{this.dispatch("v-fullscreen","handleModule",{name:this.hashName,height:this.height,width:this.width}),this.modelH=this.root[`${this.hashName}H`],this.modelW=this.root[`${this.hashName}W`],this.$emit("popFoot",{height:this.modelH,width:this.modelW})}),this.$on("setFoot",e=>{this.modelH=e[`${this.hashName}H`],this.modelW=e[`${this.hashName}W`],this.$emit("popFoot",{height:this.modelH,width:this.modelW})})},methods:{}},W=_;n(877);var $=d(W,x,H,!1,null,"075490c8",null);const S=$.exports;var F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"columnWrapper",style:"height:"+(e.colH?e.colH+"px":"100%")+";width:"+(e.colW?e.colW+"px":"100%")},[e._t("default")],2)},N=[];const E={name:"v-col",mixins:[a],inject:["root"],data(){return{chart:null,colH:0,colW:0}},computed:{hashName(){const e=v(5)+"_v-col";return e}},mounted(){this.$nextTick(e=>{this.dispatch("v-fullscreen","handleModule",{name:this.hashName,height:this.height,width:this.width}),this.colH=this.root[`${this.hashName}H`],this.colW=this.root[`${this.hashName}W`]}),this.$on("setCol",e=>{this.colH=this.root[`${this.hashName}H`],this.colW=this.root[`${this.hashName}W`]})},props:{height:{type:Number,default:0},width:{type:Number,default:0}},methods:{}},M=E;n(198);var C=d(M,F,N,!1,null,"274e3cef",null);const j=C.exports;var T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rowWarpper",style:"height:"+(e.rowH?e.rowH+"px":"100%")+";width:"+(e.rowW?e.rowW+"px":"100%")},[e._t("default")],2)},k=[];const z={name:"v-row",mixins:[a],inject:["root"],data(){return{chart:null,rowH:0,rowW:0}},computed:{hashName(){const e=v(5)+"_v-row";return e}},mounted(){this.$nextTick(e=>{this.dispatch("v-fullscreen","handleModule",{name:this.hashName,height:this.height,width:this.width}),this.rowH=this.root[`${this.hashName}H`],this.rowW=this.root[`${this.hashName}W`]}),this.$on("setRow",e=>{this.rowH=this.root[`${this.hashName}H`],this.rowW=this.root[`${this.hashName}W`]})},props:{height:{type:Number,default:0},width:{type:Number,default:0}},methods:{}},O=z;n(473);var R=d(O,T,k,!1,null,"3cbc64fc",null);const A=R.exports;var q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chartWrapper",style:"height:"+(e.modelH?e.modelH+"px":"100%")+";width:"+(e.modelW?e.modelW+"px":"100%")},[e._t("default",null,{chart:{height:e.modelH,width:e.modelW}})],2)},P=[];const B={name:"v-chart",mixins:[a],components:{},inject:["root"],props:{height:{type:Number,default:0},width:{type:Number,default:0},name:{type:String,default:""}},data(){return{modelH:0,modelW:0}},watch:{},computed:{hashName(){return this.name+"_"+v(5)}},methods:{handleMounted(){this.$nextTick(e=>{this.dispatch("v-fullscreen","handleModule",{name:this.hashName,height:this.height,width:this.width}),this.modelH=this.root[`${this.hashName}H`],this.modelW=this.root[`${this.hashName}W`],this.$emit("popChart",{height:this.modelH,width:this.modelW})}),this.$on("setChart",e=>{this.modelH=e[`${this.hashName}H`],this.modelW=e[`${this.hashName}W`],this.$emit("popChart",{height:this.modelH,width:this.modelW})})}},created(){},mounted(){this.handleMounted()}},I=B;var U=d(I,q,P,!1,null,"c3f1ef5e",null);const L=U.exports;var D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("chart",{staticClass:"popupWarpper",style:"margin-left: "+-e.chart.width/2+"px;margin-top: "+-e.chart.height/2+"px;",attrs:{height:e.height,width:e.width,name:e.popupName},on:{popChart:function(t){return e.chart=t}}},[e._t("default")],2)},G=[];const V={name:"v-popup",components:{chart:L},data(){return{chart:{}}},computed:{popupName(){const e=createHash(5)+"_v-popup";return e}},props:{height:{type:Number,default:0},width:{type:Number,default:0}}},X=V;n(460);var J=d(X,D,G,!1,null,"54ea8129",null);const K=J.exports,Q=[p,y,A,j,L,K,S],Y=function(e,t={}){Q.forEach(t=>{e.component(t.name,t)})},Z={screenfull:l.A},ee={vFullscreen:p,vHead:y,vPopup:K,vCol:j,vRow:A,vChart:L,vFoot:S,screenfull:l.A,tool:Z,install:Y},te=ee,ne=te})(),o})());