<template>
  <a-form ref="formRef" :model="form" :rules="rules" layout="vertical">
    <a-row :gutter="20">
      <a-col :span="24">
        <a-form-item label="流程名称:" name="modelName">
          <a-input v-model:value="form.modelName" allow-clear placeholder="请输入流程名称" />
        </a-form-item>
      </a-col>
      <!-- <a-col :span="12">
        <a-form-item label="排序:" name="fldSort">
          <a-input-number
            v-model:value="form.fldSort"
            :min="0"
            style="width: 100%"
            placeholder="请输入排序"
            allow-clear
            autocomplete="off"
          />
        </a-form-item>
      </a-col> -->
      <a-col :span="24">
        <a-form-item label="备注">
          <a-textarea v-model:value="form.remark" placeholder="请输入备注" :rows="6" />
        </a-form-item>
      </a-col>
    </a-row>
  </a-form>
</template>

<script setup name="FlowForm">
import { reactive } from 'vue';

const props = defineProps({
  // 表单数据
  form: Object,
  isUpdate: Boolean
});

// 验证规则
const rules = reactive({
  modelName: [{ required: true, message: '请输入流程名称', type: 'string', trigger: 'blur' }]
});
</script>

<style></style>
