import { reactive } from 'vue';
export const columns = [
  {
    title: '分类名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '排序',
    dataIndex: 'sort',
    key: 'sort',
  },
  {
    title: '层级',
    dataIndex: 'level',
    key: 'level',
  },
  {
    title: '状态',
    dataIndex: 'status',
    key: 'status',
  },
  {
    title: '操作',
    key: 'action',
    width: '350px',
  },
];

export const fieldNames = {
  children: 'children',
  label: 'name',
  key: 'id',
  value: 'id',
};

export const rulesRef = reactive({
  lineThirdId: [
    {
      required: true,
      message: '请选择产品线',
    },
  ],
  name: [
    {
      required: true,
      message: '请输入分类名称',
    },
  ],
});
