mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
ef92b6c11c
* 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
27 lines
537 B
Vue
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>
|