问题描述见标题
比如:
component.vue
<template>
<el-table :name="name"></el-table>
<template>
<script>
export default {
props:{
name:{
type:String
}
}
}
</script>
我的组件是基于el-table定义的、我现在声明了name属性、可是el-table有很多的属性、这些属性、如何通过我自己的component来透传呢?
你如果没有声明props说明你就是不需要这些属性么, 如果是的话 在你自己的组件内部, 默认这些声明好了