From f65866e0178c8bb43a00710b23967fe1de38f1c2 Mon Sep 17 00:00:00 2001 From: lhlyu Date: Sun, 28 Jul 2024 21:42:06 +0800 Subject: [PATCH] chore: update dependencies --- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 12 ++++++++++ package.json | 24 +++++++++---------- .../virtual-waterfall.vue | 4 ++-- 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 865f35a..c0525f8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish Package on: push: branches: - - dev + - main jobs: publish: diff --git a/CHANGELOG.md b/CHANGELOG.md index eb80d9c..cd7a390 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 1.0.6 + +### chore + +- update dependencies | 更新依赖 + +## 1.0.5 + +### fix + +- virtual list bug | 虚拟列表漏洞 + ## 1.0.4 ### feature diff --git a/package.json b/package.json index 920799e..8cfdd87 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/src/vue-virtual-waterfall/virtual-waterfall.vue b/src/vue-virtual-waterfall/virtual-waterfall.vue index ba3e327..9d4ee29 100644 --- a/src/vue-virtual-waterfall/virtual-waterfall.vue +++ b/src/vue-virtual-waterfall/virtual-waterfall.vue @@ -72,7 +72,7 @@ const props = withDefaults(defineProps(), { calcItemHeight: (item: any, itemWidth: number) => 250 }) -const slot = defineSlots<{ +defineSlots<{ default(props: { item: any; index: number }): any }>() @@ -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