
<template>
  <el-card style="margin-top: 16px">
    <el-form
      ref="elForm"
      :disabled="true"
      :model="formData"
      size="mini"
      label-width="180px"
    >
      <div class="tit">
        装房
        <span class="time">更新于:{{ update_time }}</span>
      </div>

      <el-row>
        <el-col :span="8">
          <el-form-item label="房屋面积(m²)" prop="house_area">
            <el-input
              v-model="datas.house_area"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="装修风格" prop="decoration_style">
            <el-input
              v-model="datas.decoration_style"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="装修地点" prop="decoration_site">
            <el-input
              v-model="datas.decoration_site"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="装修预算" prop="budget">
            <el-input
              v-model="datas.budget"
              clearable
              :disabled="true"
              :style="{ width: '100%' }"
            >
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="装修类型" prop="decoration_type">
            <el-radio-group v-model="datas.decoration_type" size="medium">
              <el-radio label="1">私人</el-radio>
              <el-radio label="0">公共建设</el-radio>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
</template>

<script setup lang='ts'>
const props = defineProps({
  datas: {
    type: Object,
    defualt: function () {
      return {
        house_area: "",
        decoration_style: "",
        decoration_site: "",
        budget: "",
        decoration_type: "",
      };
    },
  },
  update_time: {
    type: String,
    defualt: "",
  },
});
</script>

<style scoped lang='scss'>
.tit {
  font-size: 1.2rem;
  translate: 1vw -1vw;
  background-color: white;
  margin: 2vh 0 0 0;
  .time {
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 1vw;
    color: #999;
  }
}
</style>
