shared.js 1.2 KB

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