1 line
1.7 KiB
JavaScript
1 line
1.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c25a406a"],{"1b90":function(t,i,o){},"2ac7":function(t,i,o){"use strict";o("1b90")},"8d90":function(t,i,o){"use strict";o.r(i);var e=function(){var t=this,i=t.$createElement,o=t._self._c||i;return o("a-modal",{attrs:{visible:t.visible,title:"修改头像",maskClosable:!1,confirmLoading:t.confirmLoading,width:800}},[o("a-row",[o("a-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("vue-cropper",{ref:"cropper",attrs:{img:t.options.img,info:!0,autoCrop:t.options.autoCrop,autoCropWidth:t.options.autoCropWidth,autoCropHeight:t.options.autoCropHeight,fixedBox:t.options.fixedBox},on:{realTime:t.realTime}})],1),o("a-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[o("div",{staticClass:"avatar-upload-preview"},[o("img",{style:t.previews.img,attrs:{src:t.previews.url}})])])],1),o("template",{slot:"footer"},[o("a-button",{key:"back",on:{click:t.cancelHandel}},[t._v("取消")]),o("a-button",{key:"submit",attrs:{type:"primary",loading:t.confirmLoading},on:{click:t.okHandel}},[t._v("保存")])],1)],2)},a=[],n=o("7e79"),s={components:{VueCropper:n["VueCropper"]},data:function(){return{visible:!1,id:null,confirmLoading:!1,options:{img:"/avatar2.jpg",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},previews:{}}},methods:{edit:function(t){this.visible=!0,this.id=t},close:function(){this.id=null,this.visible=!1},cancelHandel:function(){this.close()},okHandel:function(){var t=this;t.confirmLoading=!0,setTimeout((function(){t.confirmLoading=!1,t.close(),t.$message.success("上传头像成功")}),2e3)},realTime:function(t){this.previews=t}}},r=s,c=(o("2ac7"),o("2877")),l=Object(c["a"])(r,e,a,!1,null,"0d42d2c8",null);i["default"]=l.exports}}]); |