Переглянути джерело

卡片列表默认高度修改

tongshangming 2 роки тому
батько
коміт
9925e58d7d
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      src/components/ProCardList.vue
  2. 1 1
      src/views/list/CardList.vue

+ 1 - 1
src/components/ProCardList.vue

@@ -23,7 +23,7 @@ interface Props {
 const props = withDefaults(defineProps<Props>(), {
   pageSize: 12,
   showAdd: true,
-  cardHeight: '226px',
+  cardHeight: '206px',
   span: 4
 })
 

+ 1 - 1
src/views/list/CardList.vue

@@ -77,7 +77,7 @@ const handleDelete = (item: any) => {
 <template>
   <pro-card-list :crud="CRUD" :formConfig="formConfig" ref="cardList">
     <template #default="{ item }">
-      <img :src="item.image" class="block w-full h-180px" />
+      <img :src="item.image" class="block w-full h-160px" />
       <el-row class="text-center p-10px card-operate">
         <el-col :span="12">
           <el-button link icon="edit" @click="handleEdit(item)">编辑</el-button>