import type { FormRules } from 'element-plus'

export const rules = (): FormRules => {
  return {
    // 编码
    code: [{ required: true, message: '请输入编码', trigger: ['blur', 'change'] }],
    // 名称
    name: [{ required: true, message: '请输入名称', trigger: ['blur', 'change'] }],
    // 状态
    status: [{ required: true, message: '请选择状态', trigger: ['blur', 'change'] }],
  }
}
