getImageInfo.ts 320 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import { ApiOptions, ApiProtocol } from '../type'

export const GetImageInfoOptions: ApiOptions = {
  formatArgs: {
    src(src, params) {
      params.src = (uni as any).getRealPath(src)
    }
  }
}

export const GetImageInfoProtocol: ApiProtocol = {
  src: {
    type: String,
    required: true
  }
}