import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '分类名称',
    align:"center",
    dataIndex: 'title'
   },
   {
    title: '图标',
    align:"center",
    dataIndex: 'icon',
    customRender:render.renderAvatar,
   },
   {
    title: '是否首页展示',
    align:"center",
    dataIndex: 'isShow_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '分类名称',
    field: 'title',
    component: 'Input',
  },
  {
    label: '图标',
    field: 'icon',
     component: 'JImageUpload',
     componentProps:{
      },
  },
  {
    label: '是否首页展示',
    field: 'isShow',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"is_true"
     },
  },
  {
    label: '父级节点',
    field: 'pid',
    component: 'Input',
  },
];
