Is it possible to utilize a similar structure in a vue.js template?
<template>
<vxe-table>
<vxe-column
v-for="options in someConsts"
...options
width="160">
</vxe-column>
</vxe-table>
</template>
Similar to how it's done in React.js, where options
might look like
{title: 'ColName', width: 160, formatter: ...}
.
I attempted this approach, but encountered the following error:
Failed to execute 'setAttribute' on 'Element': '...options' is not a valid attribute name.