shared.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. referrerPolicy: {
  35. type: String,
  36. value: 'no-referrer',
  37. },
  38. };
  39. // props for media
  40. export const mediaProps = {
  41. capture: {
  42. type: Array,
  43. value: ['album', 'camera'],
  44. },
  45. mediaType: {
  46. type: Array,
  47. value: ['image', 'video', 'mix'],
  48. },
  49. maxDuration: {
  50. type: Number,
  51. value: 60,
  52. },
  53. camera: {
  54. type: String,
  55. value: 'back',
  56. },
  57. };
  58. // props for file
  59. export const messageFileProps = {
  60. extension: null,
  61. };