两步
1.子组件在事件中$emit('update:属性',值)
2.父组件异步传入
子组件children
接受一个父组件传入的visible
<template>
<button @click='handleClick'>关闭</button>
</template>
<script>
props:['visible']
handleClick(){
this.$emit('update:visible',false)
}
</script>
父组件调用使用异步传入.sync
<template>
<children :visible.sync='visible'></children>
</template>