problem description
how do I loop an array object and output it with render in the Table component?
related codes
<script>
new Vue({
el: "-sharpvue",
data: {
columns: [
{
title: "key1",
key: "val1"
},
{
title: "",
key: "action",
render: (h, params) => {
return h("Button", {
props: {
type: "primary",
size: "small"
},
on: {
click: () => {
...
****
...
}
}
})
}
},
]
}
})
</script>