1 |
- {"version":3,"sources":["webpack:///src/components/demo.vue","webpack:///./src/components/demo.vue?5a47","webpack:///./src/components/demo.vue"],"names":["demo","data","checked","height","rowHeight","columns","from_default","length","_","idx","prop","id","label","width","mounted","methods","doPrint","window","print","location","reload","components_demo","render","_h","this","$createElement","_c","_self","staticStyle","padding-top","attrs","type","size","on","click","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"8HAOAA,GACAC,KADA,WAEA,OACAC,SAAA,EACAC,OAAA,IACAC,UAAA,GACAC,QAAAC,KAAAC,OAAA,cAAAC,EAAAC,GAAA,OACAC,KAAA,UAAAC,GAAAF,EAAAG,MAAA,KAAAH,EAAAI,MAAA,SAIAC,QAXA,aAcAC,SACAC,QADA,WAeAC,OAAAC,QACAD,OAAAE,SAAAC,YClCeC,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAA0BC,EAAvCF,KAAuCG,MAAAD,IAAAH,EAAwB,OAAAG,EAAA,OAAiBE,aAAaC,cAAA,OAAAhB,MAAA,WAAsCa,EAAA,aAAkBI,OAAOC,KAAA,UAAAC,KAAA,SAAArB,GAAA,YAAiDsB,IAAKC,MAAlNV,KAAkNR,WAAlNQ,KAAuOW,GAAA,aAEhPC,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEvC,EACAqB,GATF,EAVA,SAAAmB,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/3.210224b572430e3afbb5.js","sourcesContent":["<template>\r\n <div style=\"padding-top: 15px;width:100px;\">\r\n <el-button type=\"primary\" size=\"medium\" @click=\"doPrint\" id=\"printBtn\">打印</el-button>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data () {\r\n return {\r\n checked: true,\r\n height: 400,\r\n rowHeight: 50,\r\n columns: Array.from({ length: 100 }, (_, idx) => ({\r\n prop: 'address', id: idx, label: '地址' + idx, width: 200\r\n }))\r\n }\r\n },\r\n mounted () {\r\n\r\n },\r\n methods: {\r\n doPrint () {\r\n // let menu_bar = document.getElementsByClassName('menu-bar-container')[0];\r\n // let headbar = document.getElementsByClassName('headbar')[0];\r\n // let tab_container = document.getElementsByClassName('tab-container')[0];\r\n // let printBtn = document.getElementById(\"printBtn\");\r\n // let printDiv = document.getElementById(\"printDiv\")\r\n // // 给对应DOM添加class\r\n // console.log(menu_bar)\r\n // menu_bar.classList.add(\"noprint\")\r\n // headbar.classList.add(\"noprint\")\r\n // tab_container.classList.add(\"noprint\")\r\n // printBtn.classList.add(\"noprint\")\r\n // printDiv.classList.add(\"toTopwilePrint\")\r\n\r\n window.print(); //调起 打印\r\n window.location.reload();\r\n },\r\n }\r\n\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n/* @page{\r\n margin-top: 1mm;\r\n margin-bottom: 1mm;\r\n } */\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/components/demo.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"padding-top\":\"15px\",\"width\":\"100px\"}},[_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\",\"id\":\"printBtn\"},on:{\"click\":_vm.doPrint}},[_vm._v(\"打印\")])],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-06bedfc4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/demo.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-06bedfc4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./demo.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./demo.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./demo.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-06bedfc4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./demo.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-06bedfc4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/demo.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|