<template>
  <el-dialog
    v-model="dialogVisible"
    :title="'变更记录'"
    width="80%">
   
    <el-row style="min-height: 300px;background-color: #000000;color:#FFFFFF;padding: 10px;">
      {{ errorObj.create_time }} Error | {{ errorObj.clientError }}
    </el-row>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="handlerClose">关 闭</el-button>
      </div>
    </template>
  </el-dialog>

</template>

<script setup>

import { ref, reactive } from 'vue';
const dialogVisible = ref(false);
const errorObj = ref({})


function show(obj) {
  errorObj.value = obj;
  dialogVisible.value = true;
}

function handlerClose() {
  dialogVisible.value = false;
}

// 关键：通过defineExpose暴露方法，供父组件调用
defineExpose({
  show
});
</script>

<style scoped lang="scss">
.step-content {
  min-height: 400px;
}

.version-select {
  margin-bottom: 20px;
}

.field-selection {
  display: flex;
  height: 400px;
}

.tree-container {
  width: 250px;
  height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.table-container {
  flex: 1;
  height: 100%;
  overflow-y: auto;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
}

.el-divider {
  height: 100%;
  margin: 0 10px;
}

.flex-container { 
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex1 {
  flex: 1;
}
.version-select-content {
  margin-left: 15px;
}
.pagination {
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .pagination-info {
      color: #666;
      font-size: 14px;
    }
  }
</style>