<template>
  <div class="beauty-wrapper">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'BeautyWrapper'
}
</script>

<style lang="scss" scoped>
.beauty-wrapper {
  /* 添加一些全局的样式 */
  .el-table {
    margin-bottom: 5px;
  }
  
  /* 美化表格中的操作按钮 */
  :deep(.el-button--text) {
    padding: 6px 8px;
    border-radius: 4px;
    
    &:hover {
      background-color: rgba(59, 130, 246, 0.1);
    }
    
    &:not(:last-child) {
      margin-right: 8px;
    }
  }
  
  /* 为操作列添加特殊样式 */
  :deep(.fixed-width) {
    .el-button--text {
      color: #64748b;
      
      &.el-button--primary {
        color: #3b82f6;
      }
      
      &.el-button--success {
        color: #10b981;
      }
      
      &.el-button--warning {
        color: #f59e0b;
      }
      
      &.el-button--danger {
        color: #ef4444;
      }
      
      &.el-button--info {
        color: #64748b;
      }
      
      &:hover {
        transform: translateY(-1px);
        opacity: 0.9;
      }
    }
  }
  
  /* 添加动画效果 */
  :deep(.el-table__row) {
    transition: all 0.3s;
  }
}
</style> 