Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lhlyu committed Jul 2, 2023
1 parent 041ffe7 commit 901ccee
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,33 @@
import { VirtualWaterfall } from '@lhlyu/vue-virtual-waterfall'
```

- 全局使用
- 全局引用

```vue
import VueVirtualWaterfall from '@lhlyu/vue-virtual-waterfall'
app.use(VueVirtualWaterfall)
```

- 使用

```vue
<template>
<VirtualWaterfall
:items="items"
:calcItemHeight="calcItemHeight"
:loading="loading"
@load-more="loadMoreData"
>
<template #default="{ item }: { item: ItemOption }">
<div class="card">
<img :src="item.img" />
</div>
</template>
</VirtualWaterfall>
</template>
```

## 文档

- 属性
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@lhlyu/vue-virtual-waterfall": "0.0.1-beta.7",
"@lhlyu/vue-virtual-waterfall": "0.0.1",
"vue": "^3.2.47"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lhlyu/vue-virtual-waterfall",
"description": "vue3 virtual waterfall component",
"version": "0.0.1-beta.8",
"version": "0.0.1",
"author": "lhlyu",
"repository": {
"type": "git",
Expand Down

0 comments on commit 901ccee

Please sign in to comment.