searchForm.ts
804 Bytes
import { PlatformType } from './panelDetail';
import { FormSchema } from '/@/components/Form';
import { ColEx } from '/@/components/Form/src/types';
import { useGridLayout } from '/@/hooks/component/useGridLayout';
export const formSchema: FormSchema[] = [
{
field: 'name',
label: '看板名称',
component: 'Input',
// colProps: { span: 10 },
colProps: useGridLayout(2, 3, 4) as unknown as ColEx,
componentProps: {
placeholder: '请输入看板名称',
},
},
{
field: 'platform',
label: '平台',
component: 'Select',
colProps: useGridLayout(2, 3, 4) as unknown as ColEx,
componentProps: {
options: [
{ label: 'PC端', value: PlatformType.PC },
{ label: '移动端', value: PlatformType.PHONE },
],
},
},
];