1 |
- {"version":3,"file":"components/image-upload.js","sources":["webpack:///./components/ImageUpload.vue?ce54","webpack:///./components/ImageUpload.vue?d656","webpack:///./components/ImageUpload.vue","webpack:///./components/ImageUpload.vue?1e96","webpack:///./components/ImageUpload.vue?a75d"],"sourcesContent":["// Exports\nmodule.exports = {\n\n};\n","export * from \"-!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-0!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageUpload.vue?vue&type=style&index=0&id=596f82bc&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"com-image-upload\"},[_c('draggable',{staticClass:\"flex start wrap\",attrs:{\"draggable\":\".image-item\"},on:{\"end\":_vm.end},model:{value:(_vm.imageList),callback:function ($$v) {_vm.imageList=$$v},expression:\"imageList\"}},[_vm._l((_vm.imageList),function(item,index){return _c('div',{key:item.uid || index,staticClass:\"image-item flex\",style:({ width: _vm.width, height: _vm.height })},[_c('img',{attrs:{\"src\":item.url,\"alt\":\"\"}}),_vm._v(\" \"),_c('div',{staticClass:\"action-area flex center\"},[(!_vm.disablePreview)?_c('span',{staticClass:\"action-icon\",on:{\"click\":function($event){return _vm.handlePictureCardPreview(item)}}},[_c('i',{staticClass:\"el-icon-zoom-in\"})]):_vm._e(),_vm._v(\" \"),_c('span',{staticClass:\"action-icon\",on:{\"click\":function($event){return _vm.handleRemove(index)}}},[_c('i',{staticClass:\"el-icon-delete\"})])])])}),_vm._v(\" \"),_c('el-progress',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"margin\":\"8px\"},attrs:{\"type\":\"circle\",\"percentage\":_vm.uploadPercent,\"width\":Number(_vm.width.slice(0, _vm.width.length - 2))}}),_vm._v(\" \"),_c('div',{staticClass:\"upload-wrap\",class:{ hide: _vm.loading || _vm.imageList.length >= _vm.max },style:({ width: _vm.width, height: _vm.height })},[_c('el-upload',{ref:\"pictureUpload\",staticClass:\"custom-upload-item\",attrs:{\"multiple\":true,\"limit\":_vm.max,\"action\":\"\",\"drag\":\"\",\"accept\":\".jpg,.png,.jpeg\",\"list-type\":\"picture-card\",\"file-list\":_vm.imageList,\"show-file-list\":false,\"auto-upload\":false,\"on-remove\":_vm.handleRemove,\"on-preview\":_vm.handlePictureCardPreview,\"on-change\":(file, fileList) => {\n _vm.handleUpload(file, fileList)\n }}},[_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})])],1)],2),_vm._ssrNode(\" \"),_c('el-dialog',{attrs:{\"visible\":_vm.imageDialogVisible},on:{\"update:visible\":function($event){_vm.imageDialogVisible=$event}}},[_c('img',{attrs:{\"width\":\"100%\",\"src\":_vm.imageUrl,\"alt\":\"\"}})])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageUpload.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImageUpload.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ImageUpload.vue?vue&type=template&id=596f82bc&scoped=true\"\nimport script from \"./ImageUpload.vue?vue&type=script&lang=js\"\nexport * from \"./ImageUpload.vue?vue&type=script&lang=js\"\nfunction injectStyles (context) {\n \n var style0 = require(\"./ImageUpload.vue?vue&type=style&index=0&id=596f82bc&prod&lang=scss&scoped=true\")\nif (style0.__inject__) style0.__inject__(context)\n\n}\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n injectStyles,\n \"596f82bc\",\n \"7f6e537e\"\n \n)\n\nexport default component.exports"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;;;;;;;;;ACHA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;;;;;;;;;AAHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvHA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}
|