# 单图片上传
<e-img-upload v-model="value" style="margin-bottom:15px"></e-img-upload>
### button slot
<e-img-upload v-model="value"><el-button type="primary" size="small">上传头像</el-button></e-img-upload>
### 头像裁剪
<e-img-upload v-model="value" :is-crop="true"></e-img-upload>
```html
<template>
  <div>
    <e-img-upload v-model="value" />
    ### button slot
    <e-img-upload v-model="value"><el-button type="primary" size="small">上传头像</el-button></e-img-upload>
    ### 头像裁剪
    <e-img-upload v-model="value" :is-crop="true"></e-img-upload>
  </div>
</template>
<script>
  import EImgUpload from 'e-ui/ImgUpload'
  export default {
    components: {
      EImgUpload
    },
    data () {
      return {
        value: ''
      }
    }
  }
</script>
```

### Extends
[Element Upload](http://element.eleme.io/1.4/#/zh-CN/component/upload) 
###### onSuccess & beforeUpload & onProgress & onError 被占用

### Props 
| 参数      | 说明    | 类型      | 可选值       | 默认值   |
|---------- |-------- |---------- |------------- |--------- |
| isCrop     | 是否裁剪   | boolean  |   -       |    false     |
| cropProps     | [Cropper组件props](#/cropper)    | object  |   -       |    -     |

### Events
| 事件名称 | 说明 | 回调参数 |
|---------|--------|---------|
| success | 上传成功 | 文件地址`url` |
| exception | 文件上传result非0 | -- |

### Slots
| 名称 | 说明 | 
|---------|--------|
| default | - |
