element-plus/website/play/index.vue

27 lines
537 B
Vue
Raw Normal View History

<template>
2020-08-25 09:58:26 +08:00
<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 {
2020-08-25 09:58:26 +08:00
value1: 'TEST',
visible: false,
innerVisible: false,
}
},
}
</script>