Commit dbe62be1bbdcf139060893305284620c15c2310b
1 parent
fdaba5cc
fix: DEFECT-936 set configuration center defaul row show five item, set image fill a container
Showing
2 changed files
with
3 additions
and
3 deletions
| ... | ... | @@ -56,7 +56,7 @@ | 
| 56 | 56 | |
| 57 | 57 | const handleBeforeUpload = (file: File) => { | 
| 58 | 58 | if (file.size > props.maxSize) { | 
| 59 | - createMessage.warning(`文件大小超过${Math.floor(props.maxSize / 1024)}mb`); | |
| 59 | + createMessage.warning(`文件大小超过${Math.floor(props.maxSize / 1024 / 1024)}mb`); | |
| 60 | 60 | return false; | 
| 61 | 61 | } | 
| 62 | 62 | handleUpload(file); | ... | ... | 
| ... | ... | @@ -29,7 +29,7 @@ | 
| 29 | 29 | import { cloneDeep } from 'lodash'; | 
| 30 | 30 | import { usePermission } from '/@/hooks/web/usePermission'; | 
| 31 | 31 | |
| 32 | - const listColumn = ref(4); | |
| 32 | + const listColumn = ref(5); | |
| 33 | 33 | |
| 34 | 34 | const { createMessage } = useMessage(); | 
| 35 | 35 | |
| ... | ... | @@ -209,7 +209,7 @@ | 
| 209 | 209 | <template #cover> | 
| 210 | 210 | <div class="h-full w-full !flex justify-center items-center text-center"> | 
| 211 | 211 | <img | 
| 212 | - class="w-36 h-36" | |
| 212 | + class="w-full h-36" | |
| 213 | 213 | alt="example" | 
| 214 | 214 | :src="item.thumbnail || configurationSrc" | 
| 215 | 215 | @click="handlePreview(item)" | ... | ... |