mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* refactor(style): Update Eslint to V9 and Prettier to V3 * fix: vscode color * fix: vscode color * chore: remove Useless dependence and old config file * chore: format * Merge branch 'dev' into eslintV9 * fix: fix * fix: ssr test * fix: ssr test * fix: use defineConfig * fix: prettier format and ignore docs dist * fix: index.mjs => index.js * fix: Vscode color * fix: prettier ignore global.d.ts * fix: format --------- Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
38 lines
955 B
Vue
38 lines
955 B
Vue
<template>
|
|
<el-button plain @click="dialogVisible = true">
|
|
Open the event Dialog
|
|
</el-button>
|
|
|
|
<el-dialog
|
|
v-model="dialogVisible"
|
|
modal-class="overide-animation"
|
|
:before-close="
|
|
(doneFn) => {
|
|
;(console.log('before-close'), doneFn())
|
|
}
|
|
"
|
|
@open="console.log('open')"
|
|
@open-auto-focus="console.log('open-auto-focus')"
|
|
@opened="console.log('opened')"
|
|
@close="console.log('close')"
|
|
@close-auto-focus="console.log('close-auto-focus')"
|
|
@closed="console.log('closed')"
|
|
>
|
|
<span>It's a event Dialog</span>
|
|
<template #footer>
|
|
<div class="dialog-footer">
|
|
<el-button @click="dialogVisible = false">Cancel</el-button>
|
|
<el-button type="primary" @click="dialogVisible = false">
|
|
Confirm
|
|
</el-button>
|
|
</div>
|
|
</template>
|
|
</el-dialog>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const dialogVisible = ref(false)
|
|
</script>
|