upload.js 786 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * @Author : LQ
  3. * @Description :
  4. * @version : 1.0
  5. * @Date : 2021-08-20 16:44:21
  6. * @LastAuthor : LQ
  7. * @lastTime : 2021-08-20 17:09:50
  8. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  9. */
  10. export default {
  11. // upload组件
  12. upload: {
  13. accept: 'image',
  14. capture: () => ['album', 'camera'],
  15. compressed: true,
  16. camera: 'back',
  17. maxDuration: 60,
  18. uploadIcon: 'camera-fill',
  19. uploadIconColor: '#D3D4D6',
  20. useBeforeRead: false,
  21. previewFullImage: true,
  22. maxCount: 52,
  23. disabled: false,
  24. imageMode: 'aspectFill',
  25. name: '',
  26. sizeType: () => ['original', 'compressed'],
  27. multiple: false,
  28. deletable: true,
  29. maxSize: Number.MAX_VALUE,
  30. fileList: () => [],
  31. uploadText: '',
  32. width: 80,
  33. height: 80,
  34. previewImage: true
  35. }
  36. }