<template>
  <div>
    <img-picker :server="true" url="a.php" @get-file="getBase64Img" @delete="deleteImg" @upload="uploadSucc" @fail="uploadFaile" :length="length"></img-picker>
  </div>
</template>
<script>
import ImgPicker from '../components/img-picker'
export default {
  data () {
    return {
      length: 6
    }
  },
  methods: {
    uploadSucc (obj) {
      console.log('fail', obj)
    },
    uploadFaile (obj) {
      console.log('fail', obj)
    },
    deleteImg (obj) {
      console.log('delete', obj);
    },
    getBase64Img (obj) {
      console.log('bse64', obj);
    }
  },
  components: {
    ImgPicker
  }
}
</script>