Skip to content

Commit

Permalink
fix typo(#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreydos authored and PanJiaChen committed Aug 15, 2018
1 parent 312a2ca commit 1df59cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/Upload/singleImage.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="upload-container">
<el-upload class="image-uploader" :data="dataObj" drag :multiple="false" :show-file-list="false" action="https://httpbin.org/post"
:on-success="handleImageScucess">
:on-success="handleImageSuccess">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
</el-upload>
Expand Down Expand Up @@ -43,7 +43,7 @@ export default {
emitInput(val) {
this.$emit('input', val)
},
handleImageScucess() {
handleImageSuccess() {
this.emitInput(this.tempUrl)
},
beforeUpload() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Upload/singleImage2.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="singleImageUpload2 upload-container">
<el-upload class="image-uploader" :data="dataObj" drag :multiple="false" :show-file-list="false" action="https://httpbin.org/post"
:on-success="handleImageScucess">
:on-success="handleImageSuccess">
<i class="el-icon-upload"></i>
<div class="el-upload__text">Drag或<em>点击上传</em></div>
</el-upload>
Expand Down Expand Up @@ -42,7 +42,7 @@ export default {
emitInput(val) {
this.$emit('input', val)
},
handleImageScucess() {
handleImageSuccess() {
this.emitInput(this.tempUrl)
},
beforeUpload() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Upload/singleImage3.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="upload-container">
<el-upload class="image-uploader" :data="dataObj" drag :multiple="false" :show-file-list="false" action="https://httpbin.org/post"
:on-success="handleImageScucess">
:on-success="handleImageSuccess">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
</el-upload>
Expand Down Expand Up @@ -50,7 +50,7 @@ export default {
emitInput(val) {
this.$emit('input', val)
},
handleImageScucess(file) {
handleImageSuccess(file) {
this.emitInput(file.files.file)
},
beforeUpload() {
Expand Down

0 comments on commit 1df59cc

Please sign in to comment.