wangrong
2026-08-30 4c949c0dc9bcae785c281c9d8125295f09810b15
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
46
47
48
49
50
<template>
  <el-dialog
    class="market-create-dialog"
    v-model="state.dialogShow"
    width="80vw"
    height="90vh"
    :before-close="close"
    @submit.prevent
  >
    <template-market isDialog ref="templateMarketCreateRef" @close="close"></template-market>
  </el-dialog>
</template>
 
<script setup lang="ts">
import TemplateMarket from '@/views/template-market/index.vue'
import { nextTick, reactive, ref } from 'vue'
const templateMarketCreateRef = ref(null)
 
const state = reactive({
  dialogShow: false
})
const close = () => {
  state.dialogShow = false
}
const optInit = param => {
  state.dialogShow = true
  nextTick(() => {
    templateMarketCreateRef.value.optInit(param)
  })
}
 
defineExpose({
  optInit
})
</script>
 
<style lang="less">
.market-create-dialog {
  border-radius: 4px !important;
  padding: 0 !important;
 
  overflow: hidden;
  .ed-dialog__body {
    padding: 0 !important;
  }
  .ed-dialog__header {
    display: none !important;
  }
}
</style>