二次封装element-ui的组件
代码
<el-table
v-bind="$attrs" v-on="$listeners"
>
<template v-for="slot in Object.keys({ ...$scopedSlots, ...$slots })" :slot="slot" slot-scope="scope">
<slot :name="slot" v-bind="scope"></slot>
</template>
</el-table>
二次封装vue3组件
https://www.jianshu.com/p/9c0b00cc84e8