UNPKG

@jdlinker/linker

Version:

jdLinker 系统模块

70 lines (69 loc) 1.26 kB
import { BasicColumn } from '@jdlinker/ui'; import { FormSchema } from '@jdlinker/ui'; //列表数据 export const columns: BasicColumn[] = [ { title: '分类名称', align: 'left', dataIndex: 'name' }, { title: '标识', align: 'center', dataIndex: 'identification' }, { title: '备注', align: 'center', dataIndex: 'remark' } ]; //查询数据 export const searchFormSchema: FormSchema[] = [ { label: '分类名称', field: 'name', component: 'JInput' }, { label: '标识', field: 'identification', component: 'JInput' } ]; //表单数据 export const formSchema: FormSchema[] = [ { label: '上级菜单', field: 'pid', component: 'JTreeSelect', componentProps: { dict: 'linker_product_category,name,id', pidField: 'pid', pidValue: '0', hasChildField: 'has_child' } }, { label: '分类名称', field: 'name', component: 'Input' }, { label: '标识', field: 'identification', component: 'Input' }, { label: '备注', field: 'remark', component: 'Input' }, // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', component: 'Input', show: false } ];