liukangdong
2024-06-12 a11bc1bed7953b88213330582c2085f60b5a73b1
admin/src/components/common/GlobalWindow.vue
@@ -21,7 +21,8 @@
    <div v-if="withFooter" class="window__footer">
      <slot name="footer">
        <el-button @click="confirm" :loading="confirmWorking" type="primary">{{text}}</el-button>
        <el-button @click="close">返回</el-button>
        <slot name="btns" />
        <el-button @click="close">{{ backText }}</el-button>
      </slot>
    </div>
  </el-drawer>
@@ -45,6 +46,10 @@
      type: String,
      default: '确定'
    },
    backText: {
      type: String,
      default: '返回'
    },
    // 确认按钮loading状态
    confirmWorking: {
      type: Boolean,
@@ -66,6 +71,7 @@
      this.$emit('confirm')
    },
    close () {
      this.$emit('close')
      this.$emit('update:visible', false)
    }
  }
@@ -77,7 +83,7 @@
// 输入框高度
$input-height: 32px;
.global-window {
  top: 80px !important;
  top: 56px !important;
  left: 250px !important;
  // 头部标题
  ::v-deep .el-drawer__header {