management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/e699b4030e540f1e5fa4f937885...

1 line
27 KiB
JSON
Raw Normal View History

2023-12-18 13:12:25 +08:00
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\public\\img-clip.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\public\\img-clip.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.typed.uint8-array\";\nimport \"core-js/modules/es6.regexp.match\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { VueCropper } from \"vue-cropper\";\nexport default {\n components: {\n VueCropper: VueCropper\n },\n props: {\n folderName: {\n type: String,\n default: \"student\"\n },\n // 裁剪区域宽度\n clipWidth: {\n type: Number,\n default: 400\n },\n // 裁剪区域高度\n clipHeight: {\n type: Number,\n default: 600\n },\n // 限制图片上传大小\n size: {\n type: Number,\n default: 0.4\n },\n // 初始化 显示图片路劲\n value: {\n type: String,\n default: \"\"\n },\n // 固定比例裁剪\n fixedNumber: {\n type: Array,\n default: function _default() {\n return [2, 3];\n }\n }\n },\n watch: {\n value: function value(val) {\n // 不为空 切不相等 更新\n if (val) {\n this.viewUrl = val;\n } else {\n this.viewUrl = \"\";\n }\n }\n },\n data: function data() {\n return {\n IEVisible: false,\n previewVisible: false,\n //预览图\n uploadLoading: false,\n //正在上传\n viewUrl: null,\n //裁剪图url\n clipVisible: false,\n //显示裁剪区域\n option: {\n img: \"\",\n //裁剪图片的地址\n outputType: \"jpg\",\n //生成的图片格式\n outputSize: 1,\n //图片质量0-1\n autoCrop: true,\n //默认生成截图框\n // autoCropWidth: 200, //默认生成截图框宽度\n // autoCropHeight: 200, //默认生成截图框高度\n fixed: true,\n //固定截图\n // fixedNumber: [1, 1], //固定截图比例\n fixedBox: true //固定截图框大小 不允许改变\n\n },\n fileName: \"\",\n uploadInfo: \"\"\n };\n },\n created: function created() {\n this.IEVersion();\n },\n methods: {\n init: function init(fiveUrl) {\n this.viewUrl = fiveUrl;\n },\n // 选择图片\n chooseImg: function chooseImg(e) {\n var _this = this;\n\n var files = e.target.files;\n var file = e.target.files[0];\n\n if (!file.name.includes(\".jpg\")) {\n this.$message.warning(\"仅支持.jpg格式的图片\");\n return false;\n } // 默认限制20MB 以内的图片\n\n\n if (file.size > 1024 * 1024 * 20) {\n this.$message.warning(\"请上传小于20MB的图片\");\n return false;\n