shared.js 501 Bytes
Newer Older
程默 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
// props for choose image
export const chooseImageProps = {
  sizeType: {
    type: Array,
    value: ['original', 'compressed'],
  },
  capture: {
    type: Array,
    value: ['album', 'camera'],
  },
};
// props for choose video
export const chooseVideoProps = {
  capture: {
    type: Array,
    value: ['album', 'camera'],
  },
  compressed: {
    type: Boolean,
    value: true,
  },
  maxDuration: {
    type: Number,
    value: 60,
  },
  camera: {
    type: String,
    value: 'back',
  },
};