How can I copy the text by click the div
in the render function?
in the bellow you can see the div
, I want to click it, then the clipboard can copy the text of it.
my code of render function is bellow:
h(
'div',
{slot:"content"},
[
h(
'ul',
params.row.ipv4s.map((item, index) => {
return h('li', [h('span', {}, index + 1 + '. ' + item.ip)])
})
)
]
)
how can I realize my requirement?