<script name="projectRemark" setup>
import { ref } from 'vue'
const formData = ref({}),
  formRef = ref(),
  rules = {},
  // 校验
  validForm = (callback) => {
    formRef.value.validate(valid => {
      callback(valid)
    })
  },
  // 回显
  setFormData = (data) => {
    formData.value = {
      projectRemarks: data.projectRemarks
    }
  }
defineExpose({ validForm, formData, setFormData })
</script>

<template>
  <el-form
    ref="formRef"
    :model="formData"
    :rules="rules"
    label-position="right"
    label-width="180px"
    label-suffix=":"
    scroll-to-error
  >
    <el-row :gutter="40">
      <el-col :span="24">
        <el-form-item
          label="备注"
        >
          <el-input
            v-model="formData.projectRemarks"
            maxlength="2000"
            type="textarea"
            placeholder="请填写"
            show-word-limit
          />
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>
</template>

<style lang="less">
.el-upload-list{
  width: 100%;
}
</style>
