Commit 553b4b74 authored by TZW's avatar TZW

1715

parent f95fa8b7
...@@ -244,7 +244,6 @@ function MyAutoComplete({ item, colProps, formRef }) { ...@@ -244,7 +244,6 @@ function MyAutoComplete({ item, colProps, formRef }) {
formRef={formRef} formRef={formRef}
allowClear={true} allowClear={true}
style={{ width: '100%' }} style={{ width: '100%' }}
fieldProps={item?.fieldProps}
disabled={item?.disabled} disabled={item?.disabled}
colProps={item.colProps ?? colProps} colProps={item.colProps ?? colProps}
onSearch={(e) => { onSearch={(e) => {
...@@ -252,6 +251,7 @@ function MyAutoComplete({ item, colProps, formRef }) { ...@@ -252,6 +251,7 @@ function MyAutoComplete({ item, colProps, formRef }) {
}} }}
options={options} options={options}
onSelect={item?.onSelect} onSelect={item?.onSelect}
{...item?.fieldProps}
/> />
</ProForm.Item> </ProForm.Item>
</Col> </Col>
......
...@@ -14,6 +14,9 @@ function getcolumns(setDrawer, ifs, formRef) { ...@@ -14,6 +14,9 @@ function getcolumns(setDrawer, ifs, formRef) {
width: 120, width: 120,
key: 'username', key: 'username',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
fieldProps: {
placeholder: '请输入用户名',
},
valueType: 'MyAutoComplete', valueType: 'MyAutoComplete',
onSelect: (value, option) => { onSelect: (value, option) => {
formRef.current.setFieldValue('telephone', option?.phone); formRef.current.setFieldValue('telephone', option?.phone);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment