Closed bombkiml closed 1 year ago
Hello, thanks for the question.
Yes, it is quite easy:
<template>
<data-table v-bind="tableProps"/>
</template>
<script>
let mydata = [
{ name: "joe" },
{ name: "any" },
/* */
]
mydata.forEach((item, i) => item.index = i+1);
export default {
/* ... some code */
data() {
return {
tableProps: {
columnns: [
{ key: 'index', title: '#' },
{ key: 'name'}
],
data: mydata,
}
}
}
}
</script>
sorry for the late reply ive been busy
Great, Thank you so much @AndreSouzaAbreu
I want to add Line number of # column Please help. It's possible ?