Skip to content

Commit d2f7dfd

Browse files
authored
fix(grid): fix user passed scrollY value is null (#3658)
1 parent 09f635f commit d2f7dfd

File tree

1 file changed

+3
-1
lines changed
  • packages/vue/src/grid/src/table/src

1 file changed

+3
-1
lines changed

packages/vue/src/grid/src/table/src/table.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,9 @@ export default defineComponent({
710710
const optimizeOpts = hooks.computed(() => extend(true, {}, GlobalConfig.optimization, props.optimization))
711711
const rowHeight = hooks.computed(
712712
() =>
713-
optimizeOpts.value?.scrollY.rHeight || GlobalConfig.rowHeight[tinyTheme.value]?.[vSize.value || 'default'] || 40
713+
optimizeOpts.value?.scrollY?.rHeight ||
714+
GlobalConfig.rowHeight[tinyTheme.value]?.[vSize.value || 'default'] ||
715+
40
714716
)
715717
const headerRowHeight = hooks.computed(
716718
() => GlobalConfig.headerRowHeight[tinyTheme.value]?.[vSize.value || 'default'] || 40

0 commit comments

Comments
 (0)