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:
-
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
-
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.
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
hfunction is a bit pain.Expected API (期望的 API)
I see two ways there:
We can create new component called
n-data-table-columnfor usage in vue<template>. In that case it should take column name from property for example calledcolumn="name".If we not create
n-data-table-columnfor other columns, they use default render from:columnsproperty ofn-data-tableAlso 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.