利用renderFormItem自定义了一个下拉框,在proTable功能区显示时,下拉框的label和input出现重叠 #3233
Unanswered
yumaorourou
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
// 自定义模板 const Myselect: React.FC<{ value?: string; onChange?: (value: string) => void; }> = (props) => { return <Select showSearch options={taskTypeList} value={props.value} onChange={props.onChange} allowClear /> }
const columns: ProColumns<TableListItem>[] = [ { title: '所属战术分类', key: 'code', valueType:"select", dataIndex: 'typeName', renderFormItem: (item, { type, defaultRender, ...res }, form) => { return <Myselect {...res} /> }, } ]
Beta Was this translation helpful? Give feedback.
All reactions