惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
V
V2EX
B
Blog RSS Feed
有赞技术团队
有赞技术团队
博客园 - Franky
美团技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
云风的 BLOG
云风的 BLOG
L
LangChain Blog
GbyAI
GbyAI
The Cloudflare Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
博客园 - 【当耐特】
The Register - Security
The Register - Security
大猫的无限游戏
大猫的无限游戏
D
Docker
Vercel News
Vercel News
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
博客园_首页
A
About on SuperTechFans
J
Java Code Geeks
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Recent Announcements
Recent Announcements
G
Google Developers Blog
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
F
Full Disclosure
Jina AI
Jina AI
H
Help Net Security

博客园 - abcByme

边框渐变、字体渐变 列表进度处理 路由保存参数还在当前页 菜单右侧竖条 登录记住密码浏览器默认样式修改 头像图片上传和裁切 a-table 子级异步加载 动态效果 是否第一次打开 vue3 拖动弹窗 vue3 表格下拉刷新 vue3 下拉刷新 js 数据平均分配 喊话器功能 获取完整的文件路径地址 vue3 词云 树形多选 多表单验证 复选框单选
平均分布从左到右 从上到下
abcByme · 2024-12-18 · via 博客园 - abcByme

<script setup lang="ts">
import { ref } from 'vue';

const list = ref([{}]);
const queryParams = ref({
  currentPage: 1,
  pageSize: 15,
  totalPage: 100,
});
function onChangePage(page: number, pageSize: number) {
  queryParams.value.currentPage = page;
  queryParams.value.pageSize = pageSize;
  // getTaskList();
}
</script>

<template>
  <!-- 图片墙 -->
  <div>
    <div v-if="list && list.length" class="make_img_box grid justify-between  w-full grid-cols-5">
      <div v-for="item, index in 12" :key="index" class="prcItem">
        <a-image src="https://img2.baidu.com/it/u=3565369971,2082314928&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=800" />
      </div>
    </div>
    <div v-else class="no-data">
      <a-empty />
    </div>
    <div class="pagination-box">
      <a-pagination v-model:current="queryParams.currentPage" v-model:page-size="queryParams.pageSize"
        :show-size-changer="true" :total="queryParams.totalPage" :show-quick-jumper="true"
        :show-total="(total) => `共${total}条`" @change="onChangePage" />
    </div>
  </div>
</template>

<style lang="less" scoped>
.no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.make_img_box {
  // width: calc(100% + 32px);
  // display: grid;
  // grid-template-columns: repeat(auto-fit, minmax(277px, 1fr));
  min-height: 500px;
  margin-top: 16px;

  .prcItem {
    // width: 300px;
    height: 156px;
    margin: 0 10px 20px 10px;
    overflow: hidden;
  }
}

.pagination-box {
  margin-top: 10px;
  margin-right: 32px;
  text-align: right;
}

:deep(.ant-image) {
  width: 100%;
  height: 100%;

  img {
    width: 100%;
    height: 100%;
  }
}
</style>