<template>
<div class="app-container">
<div class="drawer-item">
<el-checkbox v-model="showReviewer" @change="checkChange($event)">
显示/隐藏
</el-checkbox>
<div v-show="isChkShow" style="width:200px; height:200px; background-color:#FF0000;">123</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
isChkShow: false
}
},
computed: {
showReviewer: {
get: function () {
},
set: function (newValue) {
this.isChkShow = !this.isChkShow
console.log('Ln 24 ' + newValue)
}
}
},
methods: {
checkChange: function(val) {
console.log('Ln 30 ' + val)
}
}
}
</script>
*
*
*
*
*
*
*
*
*
*
*
*
*