vue3+ts+elementui-plus secondary packaging pop-up frame

1. Pop-up frame component BaseDialog

<template>
      <div class='main'>
            <el-dialog v-model="visible" :title="title" :width="dialogWidth" :before-close="handleClose">
                  <!-- 内容插槽 -->
                  <slot></slot>
                  <template #footer>
                        <span class="dialog-footer">
                              <el-button v-if="showCancelButton" @click="handleClose">取消</el-button>
                              <el-button v-if="showConfirmButton" type="primary" @click="handleConfirm">
                                    确认
                              </el-button>
                        </span>
                  </template>
            </el-dialog>
      &l

Guess you like

Origin blog.csdn.net/qq_41579104/article/details/131935628