<template>
  <div class="height-editor-box">
    <el-form-item size="default" label="垂直对齐">
      <el-radio-group v-model="module.css.alignItems">
        <el-radio label="flex-start">上对齐</el-radio>
        <el-radio label="center">居中 </el-radio>
        <el-radio label="flex-end">下对齐 </el-radio>
      </el-radio-group>
    </el-form-item>
  </div>
</template>
<script lang="ts" setup>
  import { useModuleWithStyle } from './useModuleWithStyle';

  const props = defineProps<{
    id?: string;
    customCssProp?: string; // 有值，则代表是自定义样式属性设置
  }>();

  const { module } = useModuleWithStyle(props.id, props.customCssProp);
</script>
<style lang="scss" scoped>
  .height-editor-box {
    .el-form-item {
      display: flex;
      .el-form-item__content {
        flex: 1;
        display: flex;
      }
    }
    .unit {
      margin-left: 10px;
      color: #929292;
      letter-spacing: 2px;
    }
  }
</style>
