Commit 553b4b74 authored by TZW's avatar TZW

1715

parent f95fa8b7
......@@ -244,7 +244,6 @@ function MyAutoComplete({ item, colProps, formRef }) {
formRef={formRef}
allowClear={true}
style={{ width: '100%' }}
fieldProps={item?.fieldProps}
disabled={item?.disabled}
colProps={item.colProps ?? colProps}
onSearch={(e) => {
......@@ -252,6 +251,7 @@ function MyAutoComplete({ item, colProps, formRef }) {
}}
options={options}
onSelect={item?.onSelect}
{...item?.fieldProps}
/>
</ProForm.Item>
</Col>
......
......@@ -14,6 +14,9 @@ function getcolumns(setDrawer, ifs, formRef) {
width: 120,
key: 'username',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
fieldProps: {
placeholder: '请输入用户名',
},
valueType: 'MyAutoComplete',
onSelect: (value, option) => {
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