//isShow:父组件要传得值
//type:传的数据类型(booleanBoolean,String, Object, Array ,Function)
//default:传的数据默认值(true/false, '' ,{} ,[], ()=>{})
props: {
isShow: {
// type: booleanBoolean String Object Array Function
type: Boolean,
// default:true/false '' {} [] ()=>{}
default: false,
},
},
父组件子组件传值之props的用法
最新推荐文章于 2024-07-19 10:30:06 发布