Skip to content

Commit

Permalink
docs: 更新 expand-card 文档 🎛️🎛️🎛️
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Feb 21, 2023
1 parent 69d1c8c commit 26ae9df
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/components/expand-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,32 @@

:::

## 纵向排列

`vertical` 属性可以配置纵向排列

::: demo

<template #source>
<f-expand-card vertical :image-list="imageList" />
</template>

```html
<template>
<f-expand-card vertical :image-list="imageList" />
</template>

<script lang="ts" setup>
const imageList = [
'https://tianyuhao.cn/images/fighting-design/1.jpg',
'https://tianyuhao.cn/images/fighting-design/2.jpg',
'https://tianyuhao.cn/images/fighting-design/3.jpg'
]
</script>
```

:::

## Attributes

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
Expand All @@ -102,6 +128,7 @@
| `width` | 自定义宽度 | string / number | —— | —— |
| `color` | 左下角文字的颜色 | string | —— | —— |
| `expand-index` | 默认展开的索引,从 0 开始 | number | —— | 0 |
| `vertical` | 是否纵向排列 | boolean | —— | false |

## Interface

Expand Down

0 comments on commit 26ae9df

Please sign in to comment.