element-plus/website/play/index.vue
jeremywu ef92b6c11c
### feat: add dialog (#197)
* Add overlay component; Dialog component almost done

* feat(dialog): add use-lockscreen

* feat(dialog): coding completed awaiting tests

* feat(dialog): finish writing test cases

* fix test failures

* Address PR comments

* fallback some changes
2020-09-09 21:18:08 +08:00

27 lines
537 B
Vue

<template>
<div>
<el-button @click="visible = true">{{ value1 }}</el-button>
<el-dialog v-model="visible" :destroy-on-close="false">
dialog content
<el-button @click="innerVisible = true">
inner button
</el-button>
<el-dialog v-model="innerVisible" destroy-on-close>
I am inner dialog
</el-dialog>
</el-dialog>
</div>
</template>
<script>
export default {
data() {
return {
value1: 'TEST',
visible: false,
innerVisible: false,
}
},
}
</script>