Browse Source

文件大小

master
zhang_li 8 months ago
parent
commit
dc5a0fcbdb
  1. 2
      src/components/UploadFile/src/UploadFile.vue
  2. 2
      src/components/UploadFile/src/UploadImg.vue
  3. 2
      src/components/UploadFile/src/UploadImgs.vue

2
src/components/UploadFile/src/UploadFile.vue

@ -59,7 +59,7 @@ const props = defineProps({
updateUrl: propTypes.string.def(import.meta.env.VITE_UPLOAD_URL),
upData: propTypes.object.def(),
fileType: propTypes.array.def(['doc', 'xls', 'ppt', 'txt', 'pdf', 'pdf','png', 'jpg', 'jpeg']), // , ['png', 'jpg', 'jpeg']
fileSize: propTypes.number.def(20), // (MB)
fileSize: propTypes.number.def(50), // (MB)
limit: propTypes.number.def(5), //
autoUpload: propTypes.bool.def(true), //
drag: propTypes.bool.def(false), //

2
src/components/UploadFile/src/UploadImg.vue

@ -78,7 +78,7 @@ const props = defineProps({
upData: propTypes.object.def(),
drag: propTypes.bool.def(true), // ==> true
disabled: propTypes.bool.def(false), // ==> false
fileSize: propTypes.number.def(20), // ==> 5M
fileSize: propTypes.number.def(50), // ==> 5M
fileType: propTypes.array.def(['image/jpeg', 'image/png', 'image/gif']), // ==> ["image/jpeg", "image/png", "image/gif"]
height: propTypes.string.def('150px'), // ==> 150px
width: propTypes.string.def('150px'), // ==> 150px

2
src/components/UploadFile/src/UploadImgs.vue

@ -79,7 +79,7 @@ const props = defineProps({
drag: propTypes.bool.def(true), // ==> true
disabled: propTypes.bool.def(false), // ==> false
limit: propTypes.number.def(5), // ==> 5
fileSize: propTypes.number.def(20), // ==> 5M
fileSize: propTypes.number.def(50), // ==> 5M
fileType: propTypes.array.def(['image/jpeg', 'image/png', 'image/gif']), // ==> ["image/jpeg", "image/png", "image/gif"]
height: propTypes.string.def('150px'), // ==> 150px
width: propTypes.string.def('150px'), // ==> 150px

Loading…
Cancel
Save