ca196e6.js.map 7.0 KB

1
  1. {"version":3,"sources":["webpack:///./components/Tinymce/components/EditorImage.vue?c3e3","webpack:///./components/Tinymce/components/EditorImage.vue?c569","webpack:///./components/Tinymce/components/EditorImage.vue","webpack:///./components/Tinymce/components/EditorImage.vue?76c3","webpack:///./components/Tinymce/components/EditorImage.vue?4763"],"names":["module","exports","name","props","color","type","String","default","data","dialogVisible","listObj","fileList","methods","checkAllSuccess","_this","Object","keys","this","every","item","hasSuccess","handleSubmit","_this2","arr","map","v","$emit","$message","handleSuccess","response","file","uid","objKeyArr","i","len","length","url","files","handleRemove","beforeUpload","_self","_URL","window","URL","webkitURL","fileName","Promise","resolve","reject","img","Image","src","createObjectURL","onload","width","height","component","_vm","_c","staticClass","style","background","borderColor","attrs","on","$event","_v"],"mappings":"8EACAA,EAAOC,QAAU,CAAC,C,mCCDlB,M,6FCAA,ICA0Q,EDE3P,CACbC,KAAM,oBACNC,MAAO,CACLC,MAAO,CACLC,KAAMC,OACNC,QAAS,YAGbC,KAAI,WACF,MAAO,CACLC,eAAe,EACfC,QAAS,CAAC,EACVC,SAAU,GAEd,EACAC,QAAS,CACPC,gBAAe,WAAG,IAAAC,EAAA,KAChB,OAAOC,OAAOC,KAAKC,KAAKP,SAASQ,OAAM,SAAAC,GAAI,OAAIL,EAAKJ,QAAQS,GAAMC,UAAU,GAC9E,EACAC,aAAY,WAAG,IAAAC,EAAA,KACPC,EAAMR,OAAOC,KAAKC,KAAKP,SAASc,KAAI,SAAAC,GAAC,OAAIH,EAAKZ,QAAQe,EAAE,IACzDR,KAAKJ,mBAIVI,KAAKS,MAAM,aAAcH,GACzBN,KAAKP,QAAU,CAAC,EAChBO,KAAKN,SAAW,GAChBM,KAAKR,eAAgB,GANnBQ,KAAKU,SAAS,mIAOlB,EACAC,cAAa,SAACC,EAAUC,GAGtB,IAFA,IAAMC,EAAMD,EAAKC,IACXC,EAAYjB,OAAOC,KAAKC,KAAKP,SAC1BuB,EAAI,EAAGC,EAAMF,E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AACK,MAAM,CAAC,eAAc,EAAM,QAAUN,EAAIhD,eAAeuD,GAAG,CAAC,iBAAiB,SAASC,GAAQR,EAAIhD,cAAcwD,CAAM,IAAI,CAACP,EAAG,YAAY,CAACC,YAAY,sBAAsBI,MAAM,CAAC,UAAW,EAAK,YAAYN,EAAI9C,SAAS,kBAAiB,EAAK,YAAY8C,EAAInB,aAAa,aAAamB,EAAI7B,cAAc,gBAAgB6B,EAAIlB,aAAa,OAAS,2BAA2B,YAAY,iBAAiB,CAACmB,EAAG,YAAY,CAACK,MAAM,CAAC,KAAO,QAAQ,KAAO,YAAY,CAACN,EAAIS,GAAG,qCAAqC,GAAGT,EAAIS,GAAG,KAAKR,EAAG,YAAY,CAACM,GAAG,CAAC,MAAQ,SAASC,GAAQR,EAAIhD,eAAgB,CAAK,IAAI,CAACgD,EAAIS,GAAG,0BAA0BT,EAAIS,GAAG,KAAKR,EAAG,YAAY,CAACK,MAAM,CAAC,KAAO,WAAWC,GAAG,CAAC,MAAQP,EAAIpC,eAAe,CAACoC,EAAIS,GAAG,4BAA4B,IAAI,EACllC,GACsB,IEUpB,EACA,KACA,WACA,MAIa,UAAAV,U","file":"ca196e6.js","sourcesContent":["// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","export * from \"-!../../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./EditorImage.vue?vue&type=style&index=0&id=481a2804&prod&lang=scss&scoped=true\"","\n\nexport default {\n name: 'EditorSlideUpload',\n props: {\n color: {\n type: String,\n default: '#1890ff'\n }\n },\n data() {\n return {\n dialogVisible: false,\n listObj: {},\n fileList: []\n }\n },\n methods: {\n checkAllSuccess() {\n return Object.keys(this.listObj).every(item => this.listObj[item].hasSuccess)\n },\n handleSubmit() {\n const arr = Object.keys(this.listObj).map(v => this.listObj[v])\n if (!this.checkAllSuccess()) {\n this.$message('Please wait for all images to be uploaded successfully. If there is a network problem, please refresh the page and upload again!')\n return\n }\n this.$emit('successCBK', arr)\n this.listObj = {}\n this.fileList = []\n this.dialogVisible = false\n },\n handleSuccess(response, file) {\n const uid = file.uid\n const objKeyArr = Object.keys(this.listObj)\n for (let i = 0, len = objKeyArr.length; i < len; i++) {\n if (this.listObj[objKeyArr[i]].uid === uid) {\n this.listObj[objKeyArr[i]].url = response.files.file\n this.listObj[objKeyArr[i]].hasSuccess = true\n return\n }\n }\n },\n handleRemove(file) {\n const uid = file.uid\n const objKeyArr = Object.keys(this.listObj)\n for (let i = 0, len = objKeyArr.length; i < len; i++) {\n if (this.listObj[objKeyArr[i]].uid === uid) {\n delete this.listObj[objKeyArr[i]]\n return\n }\n }\n },\n beforeUpload(file) {\n const _self = this\n const _URL = window.URL || window.webkitURL\n const fileName = file.uid\n this.listObj[fileName] = {}\n return new Promise((resolve, reject) => {\n const img = new Image()\n img.src = _URL.createObjectURL(file)\n img.onload = function() {\n _self.listObj[fileName] = { hasSuccess: false, uid: file.uid, width: this.width, height: this.height }\n }\n resolve(true)\n })\n }\n }\n}\n","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!./EditorImage.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!./EditorImage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./EditorImage.vue?vue&type=template&id=481a2804&scoped=true\"\nimport script from \"./EditorImage.vue?vue&type=script&lang=js\"\nexport * from \"./EditorImage.vue?vue&type=script&lang=js\"\nimport style0 from \"./EditorImage.vue?vue&type=style&index=0&id=481a2804&prod&lang=scss&scoped=true\"\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 null,\n \"481a2804\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}