提交 39930b23 authored 作者: chscls@163.com's avatar chscls@163.com

修改bug

上级 6ec74475
...@@ -898,7 +898,14 @@ class FormList extends React.Component { ...@@ -898,7 +898,14 @@ class FormList extends React.Component {
initialValue: formData == null ? '' : formData[item.name], initialValue: formData == null ? '' : formData[item.name],
rules: [{ required: !item.isNull }], rules: [{ required: !item.isNull }],
})( })(
<Select disabled={isView} style={{ width: '70%' }} placeholder="请选择" allowClear> <Select disabled={isView} style={{ width: '70%' }}
optionFilterProp="children"
showSearch
filterOption={(input, option) =>
option
? option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
: false
} placeholder="请选择" allowClear>
{ops.map(r => ( {ops.map(r => (
<Option value={r[item.referenceCodeName]} key={r[item.referenceCodeName]}> <Option value={r[item.referenceCodeName]} key={r[item.referenceCodeName]}>
{r[item.referenceNameName]} {r[item.referenceNameName]}
...@@ -952,7 +959,15 @@ class FormList extends React.Component { ...@@ -952,7 +959,15 @@ class FormList extends React.Component {
initialValue: formData == null ? '' : formData[item.name], initialValue: formData == null ? '' : formData[item.name],
rules: [{ required: !item.isNull }], rules: [{ required: !item.isNull }],
})( })(
<Select disabled={isView} style={{ width: 200 }} placeholder="请选择" allowClear> <Select disabled={isView} style={{ width: 200 }} placeholder="请选择"
optionFilterProp="children"
showSearch
filterOption={(input, option) =>
option
? option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
: false
}
allowClear>
{ops.map(r => ( {ops.map(r => (
<Option value={r.value} key={r.value}> <Option value={r.value} key={r.value}>
{r.value} {r.value}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论