父組件調用子組件 <base_picker v-show="show2" :sendList="show2" @sendMessage="message"></base_picker>
子組件 用 props 獲取父組件傳遞的值 使用 $emit 將修改的值傳遞給父組件 props:['sendList','lable_list'], methods:{ sendMsg() { this.$emit('sendMessage', false) }, ok_http(){ } }
進行事件更新展示 methods:{ message(val){ this.show2=val }, }