currently using the table component of iview, you want to insert multiple tag components in a column. The effect is similar to the following figure
the code is as follows
render :(h, params) => {
return (
<div>
{param.row.tag.map(item => {
return <Tag key={item} name={item} closeable="true">{item}</Tag>
})}
</div>
)
}
tag is an array, similar to:
["aa","bb","cc"]
however, the compiler reported an error,
ERROR in ./node_modules/_babel-loader@7.1.2@babel-loader/lib!./node_modules/_vue-loader@13.6.2@vue-loader/lib/selector.js?type=script&index=0!./src/router/videoUpload.vue
Module build failed: TypeError: /var/www/manageplatform/src/router/videoUpload.vue: Duplicate declaration "h" (This is an error on an internal node. Probably an internal error)
I don"t know what"s wrong. I"d like to ask you to take a look at it.