Skip to content

n-data-table slot for row or component for column #5065

Description

@Satont

This function solves the problem (这个功能解决的问题)

Hi, i feel a bit frustrating with working on datatable.

My issue is i often need custom render for columns, and doing layout via h function is a bit pain.

Expected API (期望的 API)

I see two ways there:

  1. We can create new component called n-data-table-column for usage in vue <template>. In that case it should take column name from property for example called column="name".
    If we not create n-data-table-column for other columns, they use default render from :columns property of n-data-table

  2. Also this issue can be done via fully custom row customization, so we have component n-data-table-row, but in that case we should write all columns render here, which is might be overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions