Commit dbe62be1bbdcf139060893305284620c15c2310b

Authored by ww
1 parent fdaba5cc

fix: DEFECT-936 set configuration center defaul row show five item, set image fill a container

@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 56
57 const handleBeforeUpload = (file: File) => { 57 const handleBeforeUpload = (file: File) => {
58 if (file.size > props.maxSize) { 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 return false; 60 return false;
61 } 61 }
62 handleUpload(file); 62 handleUpload(file);
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 import { cloneDeep } from 'lodash'; 29 import { cloneDeep } from 'lodash';
30 import { usePermission } from '/@/hooks/web/usePermission'; 30 import { usePermission } from '/@/hooks/web/usePermission';
31 31
32 - const listColumn = ref(4); 32 + const listColumn = ref(5);
33 33
34 const { createMessage } = useMessage(); 34 const { createMessage } = useMessage();
35 35
@@ -209,7 +209,7 @@ @@ -209,7 +209,7 @@
209 <template #cover> 209 <template #cover>
210 <div class="h-full w-full !flex justify-center items-center text-center"> 210 <div class="h-full w-full !flex justify-center items-center text-center">
211 <img 211 <img
212 - class="w-36 h-36" 212 + class="w-full h-36"
213 alt="example" 213 alt="example"
214 :src="item.thumbnail || configurationSrc" 214 :src="item.thumbnail || configurationSrc"
215 @click="handlePreview(item)" 215 @click="handlePreview(item)"