VisActor / VisActor/VTable

[Feature] 表格高度保持100%, 内部的item的heightMode可以设置为标准。

Open
#3,089 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

What problem does this feature solve?

如下图是demo设置autoFillHeight: true,heightMode: 'adaptive'的效果。实际想要的效果就是表格的高度保持跟外层canvas的高度一致,但是每一条item的高度并不需要自适应拉伸撑满整个表格。 这样用户在切换数据源时,整个表格不会有跳动感。

image

想要的效果如下:
image

What does the proposed API look like?

heightMode: 'adaptive', heightMode: 'standard'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing autoFillHeight and heightMode handling, then compare the current adaptive behavior with the proposed standard mode. Verify that the table remains the canvas height while individual items keep standard heights, including when the data source changes. Done means the proposed heightMode API produces the illustrated behavior without table-height jumps.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.