Skip to content

卡片列表 ProCardList

栅格式卡片列表

作为普通列表使用

1
title
description
2
title
description
3
title
description
4
title
description
5
title
description
6
title
description
7
title
description
8
title
description
9
title
description
10
title
description
11
title
description
12
title
description
13
title
description
14
title
description
15
title
description
16
title
description
17
title
description
18
title
description
19
title
description
20
title
description
vue
<script lang="ts" setup>
import {
  ProCardList,
  ProCardMeta,
  SearchLayout,
  SearchLayoutContent,
} from '@vrx-arco/pro-components'
import { Avatar, Button, Card } from '@arco-design/web-vue'
import { IconEdit, IconEye, IconMore, IconUser } from '@vrx-arco/icons-vue'
</script>

<template>
  <Card>
    <div style="height: 700px;background-color: var(--color-fill-2);padding: 20px">
      <SearchLayout>
        <SearchLayoutContent>
          <ProCardList
            :data="
              Array(20)
                .fill(1)
                .map((item, index) => index + 1)
            "
            :column="2"
          >
            <template #item="{ item }">
              <ProCardMeta title="title" description="description">
                <template #avatar>
                  <Avatar>{{ item }}</Avatar>
                </template>
              </ProCardMeta>
            </template>
          </ProCardList>
        </SearchLayoutContent>
      </SearchLayout>
    </div>
  </Card>
</template>

使用分页组件

1
title
description
2
title
description
3
title
description
4
title
description
5
title
description
6
title
description
7
title
description
8
title
description
9
title
description
10
title
description
共 20 条
  • 1
  • 2
10 条/页前往
vue
<script lang="ts" setup>
import {
  ProCardList,
  ProCardMeta,
  SearchLayout,
  SearchLayoutContent,
} from '@vrx-arco/pro-components'
import { Avatar, Button, Card } from '@arco-design/web-vue'
import { IconEdit, IconEye, IconMore, IconUser } from '@vrx-arco/icons-vue'
</script>

<template>
  <Card>
    <div style="height: 700px;background-color: var(--color-fill-2);padding: 20px">
      <SearchLayout>
        <SearchLayoutContent>
          <ProCardList
            pagination
            :data="
              Array(20)
                .fill(1)
                .map((item, index) => index + 1)
            "
            :column="2"
          >
            <template #item="{ item }">
              <ProCardMeta title="title" description="description">
                <template #avatar>
                  <Avatar>{{ item }}</Avatar>
                </template>
              </ProCardMeta>
            </template>
          </ProCardList>
        </SearchLayoutContent>
      </SearchLayout>
    </div>
  </Card>
</template>

栅格布局

1
title
description
2
title
description
3
title
description
4
title
description
5
title
description
6
title
description
7
title
description
8
title
description
9
title
description
10
title
description
11
title
description
12
title
description
13
title
description
14
title
description
15
title
description
16
title
description
17
title
description
18
title
description
19
title
description
20
title
description
vue
<script lang="ts" setup>
import {
  ProCardList,
  ProCardMeta,
  SearchLayout,
  SearchLayoutContent,
} from '@vrx-arco/pro-components'
import { Avatar, Button, Card } from '@arco-design/web-vue'
import { IconEdit, IconEye, IconMore, IconUser } from '@vrx-arco/icons-vue'
</script>

<template>
  <Card>
    <div style="height: 700px;background-color: var(--color-fill-2);padding: 20px">
      <SearchLayout>
        <SearchLayoutContent>
          <ProCardList
            :data="
              Array(20)
                .fill(1)
                .map((item, index) => index + 1)
            "
            :column="{
              xs: 1,
              sm: 1,
              md: 1,
              lg: 1,
              xl: 1,
              xxl: 2,
            }"
          >
            <template #item="{ item }">
              <ProCardMeta title="title" description="description">
                <template #avatar>
                  <Avatar>{{ item }}</Avatar>
                </template>
              </ProCardMeta>
            </template>
          </ProCardList>
        </SearchLayoutContent>
      </SearchLayout>
    </div>
  </Card>
</template>

API

<pro-card-list> Props

暂无数据

<pro-card-list> Events

暂无数据

<pro-card-list> Slots

暂无数据

Released under the MIT License.