Skip to content

使用 extraRender 渲染额外的元素,但是虚拟列表中不展示 #290

@LuckyFBB

Description

@LuckyFBB
<List
  data={data}
  height={500}
  itemHeight={1}
  itemKey="id"
  style={{
    border: '1px solid red',
    boxSizing: 'border-box',
  }}
  extraRender={() => <div>11111</div>}
>
  {(item) => <ForwardMyItem {...item} />}
</List>

使用官方的 example,添加 extraRender={() => <div>11111</div>}

chatgpt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions