合同小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
1.8 KiB

3 months ago
  1. export default {
  2. name: {
  3. type: String
  4. },
  5. modelValue: {
  6. type: Array,
  7. default: null
  8. },
  9. value: {
  10. type: Array,
  11. default: null
  12. },
  13. /**
  14. *
  15. */
  16. disabled : {
  17. type: Boolean,
  18. default: false,
  19. },
  20. imageFit : {
  21. type: String,
  22. default: 'aspectFill'//'scaleToFill'|'aspectFit'|'aspectFill'|'widthFix'|'heightFix'|'top'|'bottom'|'center'|'left'|'right'|'top left'|'top right'|'bottom left'|'bottom right';
  23. },
  24. gutter: {
  25. type: String,
  26. default: null
  27. },
  28. column :{
  29. type: Number
  30. },
  31. max : {
  32. type: Number,
  33. default: 0
  34. },
  35. sizeLimit :{
  36. type: Number
  37. },
  38. uploadIcon : {
  39. type: String,
  40. default: 'camera'
  41. },
  42. uploadIconSize: {
  43. type: String
  44. },
  45. gridWidth: {
  46. type: String,
  47. default: null
  48. },
  49. gridHeight: {
  50. type: String,
  51. default: null
  52. },
  53. gridBgColor: {
  54. type: String,
  55. default: null
  56. },
  57. gridBorderRadius: {
  58. type: String,
  59. default: null
  60. },
  61. addBgColor: {
  62. type: String
  63. },
  64. defaultFiles: {
  65. type: Array,
  66. default: null
  67. },
  68. loadingText: {
  69. type: String,
  70. default: '上传中...'
  71. },
  72. reloadText: {
  73. type: String,
  74. default: '重新上传'
  75. },
  76. failedText: {
  77. type: String,
  78. default: '上传失败'
  79. },
  80. disablePreview: {
  81. type: Boolean,
  82. default: false,
  83. },
  84. autoUpload: {
  85. type: Boolean,
  86. default: false,
  87. },
  88. multiple: {
  89. type: Boolean,
  90. default: true,
  91. },
  92. mediaType: {
  93. type: String,
  94. default: 'image'//'image' | 'video' | 'all';
  95. },
  96. maxDuration:{
  97. type: Number,
  98. default: 10
  99. },
  100. sizeType: {
  101. type: Array,
  102. defalut: () => ['original', 'compressed']
  103. },
  104. sourceType: {
  105. type: Array,
  106. defalut: ()=> ['album', 'camera']
  107. },
  108. //上传地址 如需使用uniCloud服务,设置为uniCloud即可
  109. action: {
  110. type: String
  111. },
  112. //上传的请求头部
  113. headers: {
  114. type: Object
  115. },
  116. //HTTP 请求中其他额外的 form data
  117. formData: {
  118. type: Object
  119. },
  120. mode: {
  121. type: String
  122. }
  123. }