shared.js 501 B

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