Does vue have a method or implementation similar to React.cloneElement?

<input type="text" @click="cli" />


use the jsx syntax
to get input, in An and use this.$slots.default, but
I need to rewrite click, in component An and add some attributes. And make sure that the previous attributes are all in
so that you can implement

.

clipboard.png
but this is stupid.
whether there is an implementation similar to cloneElement.

Mar.01,2021

if you add attributes, you can use the Object.assign () method in ES6

Menu