File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 328328 // 关闭控件
329329 off () {
330330 this .show = false ;
331+ this .$emit (' close' );
331332 },
332333 // 设置步骤
333334 setStep (step ) {
Original file line number Diff line number Diff line change 99 <el-button type =" primary" icon =" upload" style =" position : absolute ;bottom : 15px ;margin-left : 40px ;" @click =" imagecropperShow=true" >修改头像
1010 </el-button >
1111
12- <ImageCropper :width =" 300" :height =" 300" url =" https://httpbin.org/post" @crop-upload-success =" cropSuccess" :key =" imagecropperKey" v-show =" imagecropperShow" />
12+ <ImageCropper :width =" 300" :height =" 300" url =" https://httpbin.org/post" @close =' close' @crop-upload-success =" cropSuccess"
13+ :key =" imagecropperKey" v-show =" imagecropperShow" />
1314 </div >
1415</template >
16+
1517<script >
1618 import ImageCropper from ' components/ImageCropper' ;
1719 import PanThumb from ' components/PanThumb' ;
2931 this .imagecropperShow = false ;
3032 this .imagecropperKey = this .imagecropperKey + 1 ;
3133 this .image = resData .files .avatar ;
34+ },
35+ close () {
36+ this .imagecropperShow = false ;
3237 }
3338 }
3439 };
You can’t perform that action at this time.
0 commit comments