Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lhlyu committed Jul 28, 2024
1 parent 972d4e8 commit f65866e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Package
on:
push:
branches:
- dev
- main

jobs:
publish:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 1.0.6

### chore

- update dependencies | 更新依赖

## 1.0.5

### fix

- virtual list bug | 虚拟列表漏洞

## 1.0.4

### feature
Expand Down
24 changes: 12 additions & 12 deletions 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": "1.0.5",
"version": "1.0.6-beta.0",
"author": "lhlyu",
"repository": {
"type": "git",
Expand Down Expand Up @@ -34,20 +34,20 @@
"package.json"
],
"dependencies": {
"@vueuse/core": "^10.9.0"
"@vueuse/core": "^10.11.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue": "^5.1.1",
"autoprefixer": "^10.4.19",
"cssnano": "^7.0.1",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"cssnano": "^7.0.4",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"prettier-plugin-rational-order": "^1.0.3",
"sass": "^1.77.1",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite-plugin-dts": "^3.9.1",
"vue": "^3.4.27",
"vue-tsc": "^2.0.17"
"sass": "^1.77.8",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite-plugin-dts": "4.0.0-beta.1",
"vue": "^3.4.34",
"vue-tsc": "^2.0.29"
}
}
4 changes: 2 additions & 2 deletions src/vue-virtual-waterfall/virtual-waterfall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const props = withDefaults(defineProps<VirtualWaterfallOption>(), {
calcItemHeight: (item: any, itemWidth: number) => 250
})
const slot = defineSlots<{
defineSlots<{
default(props: { item: any; index: number }): any
}>()
Expand Down Expand Up @@ -146,7 +146,7 @@ watchEffect(() => {
const spaces = new Array(length)
let start = 0
// 是否启用缓存:只有当新增元素时,只需要计算新增元素的信息
// 是否启用缓存:只有当新增元素时,需要计算新增元素的信息
const cache = itemSpaces.value.length && length > itemSpaces.value.length
if (cache) {
start = itemSpaces.value.length
Expand Down

0 comments on commit f65866e

Please sign in to comment.