How to write the Vue subcomponent JSX to receive the passed $attrs?

now the situation is like this. My component is written in JSX as a child component. The props, sub-components that are not collected by the parent component should be picked up by this.$attrs, and they have indeed been received, but how can they be written into jsx now?

as shown in the picture, it has no effect. I have tried several methods.
clipboard.png

which great god will give you an answer, thank you very much!

Feb.28,2021

it's useful for me to write like this

<el-table
    { ...{
        props: this.$attrs,
        on: this.$listeners,
    } }
    ...

has found a method. It's my own SB. Actually, I used this method to solve another parameter pass before, but I didn't try it myself.


how to solve this problem, thank you!
ask how to bind $listeners!

Menu