1 line
4.1 KiB
JSON
1 line
4.1 KiB
JSON
{"remainingRequest":"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=style&index=0&id=0079a024&lang=css&","dependencies":[{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-resize-sensor\\src\\resize-sensor.vue","mtime":1689642396277},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\css-loader\\index.js","mtime":1689642389821},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1689642396087},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\postcss-loader\\src\\index.js","mtime":1689642393431},{"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":["\n@keyframes resizeSensorVisibility {\n\tfrom { top: 0; }\n}\n",{"version":3,"sources":["resize-sensor.vue"],"names":[],"mappings":";AACA;AACA;AACA","file":"resize-sensor.vue","sourceRoot":"node_modules/vue-resize-sensor/src","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"]}]} |