shared.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // props for image
  2. export const imageProps = {
  3. sizeType: {
  4. type: Array,
  5. value: ['original', 'compressed'],
  6. },
  7. capture: {
  8. type: Array,
  9. value: ['album', 'camera'],
  10. },
  11. showmenu: {
  12. type: Boolean,
  13. value: true,
  14. },
  15. };
  16. // props for video
  17. export const videoProps = {
  18. capture: {
  19. type: Array,
  20. value: ['album', 'camera'],
  21. },
  22. compressed: {
  23. type: Boolean,
  24. value: true,
  25. },
  26. maxDuration: {
  27. type: Number,
  28. value: 60,
  29. },
  30. camera: {
  31. type: String,
  32. value: 'back',
  33. },
  34. };
  35. // props for media
  36. export const mediaProps = {
  37. capture: {
  38. type: Array,
  39. value: ['album', 'camera'],
  40. },
  41. mediaType: {
  42. type: Array,
  43. value: ['image', 'video', 'mix'],
  44. },
  45. maxDuration: {
  46. type: Number,
  47. value: 60,
  48. },
  49. camera: {
  50. type: String,
  51. value: 'back',
  52. },
  53. };
  54. // props for file
  55. export const messageFileProps = {
  56. extension: null,
  57. };