diff --git a/.husky/commit-msg b/.husky/commit-msg old mode 100755 new mode 100644 diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 diff --git a/packages/cdk/platform/src/platform.ts b/packages/cdk/platform/src/platform.ts old mode 100755 new mode 100644 diff --git a/packages/cdk/scroll/__tests__/__snapshots__/virtualScroll.spec.ts.snap b/packages/cdk/scroll/__tests__/__snapshots__/virtualScroll.spec.ts.snap index 8457cc1f8..625c358d1 100644 --- a/packages/cdk/scroll/__tests__/__snapshots__/virtualScroll.spec.ts.snap +++ b/packages/cdk/scroll/__tests__/__snapshots__/virtualScroll.spec.ts.snap @@ -1,21 +1,21 @@ // Vitest Snapshot v1 -exports[`VirtualScroll > basic work > itemRender work 1`] = ` +exports[`VirtualScroll > basic work > render work 1`] = ` "
-
-
-
key-0 - 0key-1 - 1key-2 - 2key-3 - 3key-4 - 4key-5 - 5key-6 - 6key-7 - 7key-8 - 8key-9 - 9key-10 - 10key-11 - 11
-
+
+ +
+
key-0 - 0key-1 - 1key-2 - 2key-3 - 3key-4 - 4key-5 - 5key-6 - 6key-7 - 7key-8 - 8key-9 - 9key-10 - 10
" `; -exports[`VirtualScroll > basic work > render work 1`] = ` +exports[`VirtualScroll > basic work > rowRender work 1`] = ` "
-
-
-
key-0 - 0key-1 - 1key-2 - 2key-3 - 3key-4 - 4key-5 - 5key-6 - 6key-7 - 7key-8 - 8key-9 - 9key-10 - 10key-11 - 11
-
+
+ +
+
key-0 - 0key-1 - 1key-2 - 2key-3 - 3key-4 - 4key-5 - 5key-6 - 6key-7 - 7key-8 - 8key-9 - 9key-10 - 10
" `; diff --git a/packages/cdk/scroll/__tests__/virtualScroll.spec.ts b/packages/cdk/scroll/__tests__/virtualScroll.spec.ts index 9434158dc..81d3570dc 100644 --- a/packages/cdk/scroll/__tests__/virtualScroll.spec.ts +++ b/packages/cdk/scroll/__tests__/virtualScroll.spec.ts @@ -2,7 +2,7 @@ import { MountingOptions, VueWrapper, flushPromises, mount } from '@vue/test-uti import { h } from 'vue' import VirtualScroll from '../src/virtual/VirtualScroll' -import { VirtualItemRenderFn, VirtualScrollInstance, VirtualScrollProps } from '../src/virtual/types' +import { VirtualRowRenderFn, VirtualScrollInstance, VirtualScrollProps } from '../src/virtual/types' const getData = (length: number, key = 'key') => { const data: { key: string }[] = [] @@ -14,12 +14,12 @@ const getData = (length: number, key = 'key') => { const defaultProps = { height: 200, - itemHeight: 20, + rowHeight: 20, getKey: 'key', } as const const defaultItemSlot = ` -