Open qinfeng0214 opened 7 months ago
考虑到会有自定义的需求,希望能开放这样的api
<template #headerCell="{ column }">
<template v-if="column.key === 'name'">
<span>
<smile-outlined />
Name
</span>
</template>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'name'">
<a>
{{ record.name }}
</a>
</template>
</template>
这样就能彻底通过columns这个api管理列名 @Javey
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 当我编写vue组件的时候,每遇到一个table组件,都需要通过TableColumn一个一个去编辑,当table有很多列的时候,后期维护也不是一件容易的事情。希望可以提供一个表格列的配置描述api Describe the solution you'd like A clear and concise description of what you want to happen. 这是我想要的实现方式:
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.