方法跟vue非常类似
子组件触发父组件方法
<dialog_half
id="dialogHalf"
bind:getInfoFrom="getInfoFrom"
bind:closeShowHalf='closeShowHalf'>
</dialog_half>
this.triggerEvent('getInfoFrom',o)
父组件调用子组件
<half_dialog id='halfDialog'></half_dialog>
let halfEl = this.selectComponent('#halfDialog')
cosole.log(halfEl) //打印组件所有挂在的值
halfEl.close()