<template>
<d2-container>
<template slot="header">header</template>
<div id="box">
<div v-if="show">hello world</div>
<el-button size="mini" @click="showCont" >全部已读</el-button>
</div>
<template slot="footer">footer</template>
</d2-container>
</template>
<script>
export default {
name: "page4",
data(){
return{
show:true,
}
},
methods:{
showCont:function(){
this.show = !this.show;
}
}
}
</script>
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交