Commit 9a3588de8a57b47a1a5d30bde470026c406f78c1

Authored by xp.Huang
2 parents af246107 f80d5fb3

Merge branch 'perf/visual-board-form' into 'main_dev'

perf: 看板添加平台搜索字段

See merge request yunteng/thingskit-front!1149
  1 +import { PlatformType } from './panelDetail';
1 import { FormSchema } from '/@/components/Form'; 2 import { FormSchema } from '/@/components/Form';
2 import { ColEx } from '/@/components/Form/src/types'; 3 import { ColEx } from '/@/components/Form/src/types';
3 import { useGridLayout } from '/@/hooks/component/useGridLayout'; 4 import { useGridLayout } from '/@/hooks/component/useGridLayout';
@@ -13,4 +14,17 @@ export const formSchema: FormSchema[] = [ @@ -13,4 +14,17 @@ export const formSchema: FormSchema[] = [
13 placeholder: '请输入看板名称', 14 placeholder: '请输入看板名称',
14 }, 15 },
15 }, 16 },
  17 + {
  18 + field: 'platform',
  19 + label: '平台',
  20 + required: true,
  21 + component: 'Select',
  22 + colProps: useGridLayout(2, 3, 4) as unknown as ColEx,
  23 + componentProps: {
  24 + options: [
  25 + { label: 'PC端', value: PlatformType.PC },
  26 + { label: '移动端', value: PlatformType.PHONE },
  27 + ],
  28 + },
  29 + },
16 ]; 30 ];