1 line
7.4 KiB
JSON
1 line
7.4 KiB
JSON
{"remainingRequest":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-resize-sensor\\src\\resize-sensor.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-resize-sensor\\src\\resize-sensor.vue","mtime":1689642396277},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\babel.config.js","mtime":1689642387810},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js","mtime":1689642388897},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js","mtime":1689642396086}],"contextDependencies":[],"result":["\"use strict\";\n\nexport default {\n // thanks to https://github.com/marcj/css-element-queries\n props: {\n initial: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n size: {\n width: -1,\n height: -1\n }\n };\n },\n methods: {\n reset: function reset() {\n var expand = this.$el.firstChild;\n var shrink = this.$el.lastChild;\n expand.scrollLeft = 100000;\n expand.scrollTop = 100000;\n shrink.scrollLeft = 100000;\n shrink.scrollTop = 100000;\n },\n update: function update() {\n this.size.width = this.$el.offsetWidth;\n this.size.height = this.$el.offsetHeight;\n }\n },\n watch: {\n size: {\n deep: true,\n handler: function handler(size) {\n this.reset();\n this.$emit('resize', {\n width: this.size.width,\n height: this.size.height\n });\n }\n }\n },\n render: function render(create) {\n var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';\n var styleChild = 'position: absolute; left: 0; top: 0;';\n return create('div', {\n style: style + 'animation-name: resizeSensorVisibility;',\n on: {\n '~animationstart': this.update\n }\n }, [create('div', {\n style: style,\n on: {\n scroll: this.update\n }\n }, [create('div', {\n style: styleChild + 'width: 100000px; height: 100000px;'\n })]), create('div', {\n style: style,\n on: {\n scroll: this.update\n }\n }, [create('div', {\n style: styleChild + 'width: 200%; height: 200%;'\n })])]);\n },\n beforeDestroy: function beforeDestroy() {\n this.$emit('resize', {\n width: 0,\n height: 0\n });\n this.$emit('resizeSensorBeforeDestroy');\n },\n mounted: function mounted() {\n if (this.initial === true) this.$nextTick(this.update);\n if (this.$el.offsetParent !== this.$el.parentNode) this.$el.parentNode.style.position = 'relative';\n if ('attachEvent' in this.$el && !('AnimationEvent' in window)) {\n var onresizeHandler = function () {\n this.update();\n removeOnresizeEvent();\n }.bind(this);\n var removeOnresizeEvent = function () {\n this.$el.detachEvent('onresize', onresizeHandler);\n this.$off('resizeSensorBeforeDestroy', removeOnresizeEvent);\n }.bind(this);\n this.$el.attachEvent('onresize', onresizeHandler);\n this.$on('resizeSensorBeforeDestroy', removeOnresizeEvent);\n this.reset();\n }\n }\n};",{"version":3,"mappings":"AAOA;;AAEA;EAEA;EACAA;IACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;MACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACAC;MAEA;MACA;MACAC;MACAA;MACAC;MACAA;IACA;IACAC;MAEA;MACA;IACA;EACA;EACAC;IACAR;MACAS;MACAC;QAEA;QACA;UAAAT;UAAAC;QAAA;MACA;IACA;EACA;EACAS;IAEA;IACA;IAEA;MACAC;MACAC;QACA;MACA;IACA,IACAC;MACAF;MACAC;QACAE;MACA;IACA,IACAD;MACAF;IACA,GACA,GACAE;MACAF;MACAC;QACAE;MACA;IACA,IACAD;MACAF;IACA,GACA,EACA;EACA;EACAI;IAEA;MAAAf;MAAAC;IAAA;IACA;EACA;EACAe;IAEA,2BACA;IAEA,mDACA;IAEA;MAEA;QAEA;QACAC;MACA;MAEA;QAEA;QACA;MACA;MAEA;MACA;MACA;IACA;EACA;AACA","names":["props","initial","type","default","data","size","width","height","methods","reset","expand","shrink","update","watch","deep","handler","render","style","on","create","scroll","beforeDestroy","mounted","removeOnresizeEvent"],"sourceRoot":"node_modules/vue-resize-sensor/src","sources":["resize-sensor.vue"],"sourcesContent":["<style>\n@keyframes resizeSensorVisibility {\n\tfrom { top: 0; }\n}\n</style>\n\n<script>\n\"use strict\";\n\nexport default {\n\n\t// thanks to https://github.com/marcj/css-element-queries\n\tprops: {\n\t\tinitial: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t}\n\t},\n\tdata: function() {\n\t\treturn {\n\t\t\tsize: {\n\t\t\t\twidth: -1,\n\t\t\t\theight: -1\n\t\t\t}\n\t\t}\n\t},\n\tmethods: {\n\t\treset: function() {\n\n\t\t\tvar expand = this.$el.firstChild;\n\t\t\tvar shrink = this.$el.lastChild;\n\t\t\texpand.scrollLeft = 100000;\n\t\t\texpand.scrollTop = 100000;\n\t\t\tshrink.scrollLeft = 100000;\n\t\t\tshrink.scrollTop = 100000;\n\t\t},\n\t\tupdate: function() {\n\t\t\t\n\t\t\tthis.size.width = this.$el.offsetWidth;\n\t\t\tthis.size.height = this.$el.offsetHeight;\n\t\t}\n\t},\n\twatch: {\n\t\tsize: {\n\t\t\tdeep: true,\n\t\t\thandler: function(size) {\n\t\t\t\t\n\t\t\t\tthis.reset();\n\t\t\t\tthis.$emit('resize', { width: this.size.width, height: this.size.height });\n\t\t\t}\n\t\t}\n\t},\n\trender: function(create) {\n\t\t\n\t\tvar style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';\n\t\tvar styleChild = 'position: absolute; left: 0; top: 0;';\n\n\t\treturn create('div', {\n\t\t\tstyle: style + 'animation-name: resizeSensorVisibility;',\n\t\t\ton: {\n\t\t\t\t'~animationstart': this.update\n\t\t\t}\n\t\t},[\n\t\t\tcreate('div', {\n\t\t\t\tstyle: style,\n\t\t\t\ton: {\n\t\t\t\t\tscroll: this.update\n\t\t\t\t}\n\t\t\t}, [\n\t\t\t\tcreate('div', {\n\t\t\t\t\tstyle: styleChild + 'width: 100000px; height: 100000px;'\n\t\t\t\t})\n\t\t\t]),\n\t\t\tcreate('div', {\n\t\t\t\tstyle: style,\n\t\t\t\ton: {\n\t\t\t\t\tscroll: this.update\n\t\t\t\t}\n\t\t\t}, [\n\t\t\t\tcreate('div', {\n\t\t\t\t\tstyle: styleChild + 'width: 200%; height: 200%;'\n\t\t\t\t})\n\t\t\t]),\n\t\t]);\n\t},\n\tbeforeDestroy: function() {\n\t\t\n\t\tthis.$emit('resize', { width: 0, height: 0 });\n\t\tthis.$emit('resizeSensorBeforeDestroy');\n\t},\n\tmounted: function() {\n\n\t\tif ( this.initial === true )\n\t\t\tthis.$nextTick(this.update);\n\t\t\n\t\tif ( this.$el.offsetParent !== this.$el.parentNode )\n\t\t\tthis.$el.parentNode.style.position = 'relative';\n\n\t\tif ( 'attachEvent' in this.$el && !('AnimationEvent' in window) ) {\n\n\t\t\tvar onresizeHandler = function() {\n\n\t\t\t\tthis.update();\n\t\t\t\tremoveOnresizeEvent();\n\t\t\t}.bind(this);\n\t\t\n\t\t\tvar removeOnresizeEvent = function() {\n\t\t\t\t\n\t\t\t\tthis.$el.detachEvent('onresize', onresizeHandler);\n\t\t\t\tthis.$off('resizeSensorBeforeDestroy', removeOnresizeEvent);\n\t\t\t}.bind(this);\n\t\t\t\n\t\t\tthis.$el.attachEvent('onresize', onresizeHandler);\n\t\t\tthis.$on('resizeSensorBeforeDestroy', removeOnresizeEvent);\n\t\t\tthis.reset();\n\t\t}\n\t}\n}\n\n</script>\n"]}]} |