problem description
how to dynamically display the number of h in iview $modal.confirm custom content
related codes
this.$Modal.confirm({
render: (h) => {
return h("div", [
h("Input", {
props: {
value: params.row[column.key],
autofocus: true,
placeholder: "" + column.title
},
on: {
input: (val) => {
self.modalCol[column.key] = val;
}
}
}),
h("Input", {
props: {
value: params.row[column.key],
autofocus: true,
placeholder: "" + column.title
},
on: {
input: (val) => {
self.modalCol[column.key] = val;
}
}
})
])
}
})
how does h ("Input", {.}) here add multiple h (" Input", {}) dynamically based on a dynamic input array
for example, input array has one, h ("Input", {.}) only one; input array has three, h (" Input", {.}) only three