wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
  <div class="ticket-dialog-container">
    <el-dialog
      v-model="dialogVisible"
      :title="t('user.change_password')"
      width="600"
      class="is-ticket-dialog hidden-footer"
      :append-to-body="true"
      :before-close="handleClose"
    >
      <slot />
    </el-dialog>
  </div>
</template>
 
<script setup lang="ts">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
 
const { t } = useI18n()
const dialogVisible = ref(false)
 
const handleClose = done => {
  done()
}
const open = () => {
  dialogVisible.value = true
}
const close = () => {
  dialogVisible.value = false
}
defineExpose({
  open,
  close
})
</script>
<style lang="less" scoped>
.ticket-dialog-container {
  :deep(.is-ticket-dialog) {
    .ed-dialog__header {
      display: none;
    }
  }
}
</style>