<template>
  <a-form ref="formRef" :model="form" :rules="rules" layout="vertical">
    <a-row :gutter="20">
      <a-col :span="24">
        <a-form-item name="categoryName">
          <template #label>
            <span>
              分类名称
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.categoryName" allow-clear placeholder="请输入分类名称" />
        </a-form-item>
      </a-col>
      <a-col :span="24">
        <a-form-item name="categoryCode">
          <template #label>
            <span>
              分类编码
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input v-model:value="form.categoryCode" allow-clear placeholder="请输入分类编码" />
        </a-form-item>
      </a-col>
      <a-col :span="24">
        <a-form-item name="fldSort">
          <template #label>
            <span>
              排序
              <a-tooltip v-if="false">
                <template #title></template>
                <QuestionCircleOutlined />
              </a-tooltip>
              <span>：</span>
            </span>
          </template>
          <a-input-number v-model:value="form.fldSort" style="width: 100%" placeholder="请输入排序" allow-clear autocomplete="off" />
        </a-form-item>
      </a-col>
    </a-row>
  </a-form>
</template>

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

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

// 验证规则
const rules = reactive({});

defineExpose({});
</script>

<style></style>
