import getRealPath from 'uni-platform/helpers/get-real-path'

export const compressImage = {
  src: {
    type: String,
    required: true,
    validator (src, params) {
      params.src = getRealPath(src)
    }
  }
}
