I've use Antdv as my data table.
Using this sample code,
View
<a-table
:columns="MyHeaders"
:data-source="MyData"
bordered
>
</a-table>
Script
data: () => ({
MyHeaders:[
{title:'Name', dataIndex:'Name'},
{title:'Age', dataIndex:'Age'},
{title:'Address', dataIndex:'Address'}
],
MyData:[
{Name:'John Doe', Age: '25'},
{Name:'Melissa Cruz', Age: '32'},
{Name:'Danny Von', Age: '23'}
]
})
I have a working table.
Now, I just trying an editable table with antdv like this one or this one.
Is there a way to do it without using or importing some reacts &| lodash component and use only it's standard component like in vuetify (using v-edit-dialog ?)
I have seen this sample documentation without using or importing other property but the output is not quite good or acheive my expectation.
I've try the vuetify edit, but sadly it didn't work. Here's how I attempt.
<a-table
:columns="MyHeaders"
:data-source="MyData"
bordered
>
<template v-slot:item.result="{item, header}">
<v-edit-dialog
:key="header.dataIndex"
:return-value.sync="item[header.dataIndex]"
>
{{ item[header.dataIndex] }}
<template v-slot:input>
<v-text-field
v-model="item[header.dataIndex]"
label="Edit"
single-line
></v-text-field>
</template>
</v-edit-dialog>
</template>
</a-table>
Can someone help me to this one? Or have any idea on how can I do it?