需求,把A子组件的值传给父组件,在通过父组件传给子组件接收
A子组件
js :数据
/** *组件属性列表*/properties : { hidebaitiao : } type : boolean,//缺省隐藏value: true }, baitiao: { //分割内容数据type 3360 data : { select index :0 },makeBaitiao () /立即打白条(/点击的具体下标letselection
父组件
! -白色条弹条--iou bind : updata select=' selectitem '/iou js 3360赋值
selectitem(e )//单击可立即显示白色条,并显示从子部件传递的值console.log ) e.detail.desc )//e传递的信息let upda selectitem=e this.setdata (baitiaoselectitem : e.detail )、