1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| const list = [ { label: "项目1", value: 1 }, { label: "项目2", value: 2, disabled: true }, ]; const treeList = [ { label: "项目1", value: 1 }, { label: "项目2", value: 2, children: [ { label: "项目2子项1", value: 21 }, { label: "项目2子项2", value: 22, disabled: true }, ], }, ];
const formColumns: FormItemVO[] = [ { label: "名称", fileType: "input", prop: "name" }, { label: "测试参数", fileType: "number", prop: "filed1" }, { label: "测试参数2", fileType: "select", options: list, prop: "filed2" }, { label: "测试参数3", fileType: "radio", options: list, prop: "filed3" }, { label: "测试参数4", fileType: "checkbox", options: list, prop: "filed4" }, { label: "测试参数5", fileType: "textarea", prop: "filed5" }, { label: "测试参数6", fileType: "tree-select", data: treeList, prop: "filed6", }, ];
|