Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
muidea committed Oct 16, 2018
1 parent 4dbe0e1 commit 8895548
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/routes/content/article/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const Filter = ({
onDeleteItems()
}

const { name } = filter
const { filterValue } = filter

return (
<Row gutter={24}>
<Col {...ColProps} xl={{ span: 14 }} md={{ span: 14 }}>
{getFieldDecorator('filterValue', { initialValue: name })(<Search placeholder="查找文章" size="large" onSearch={handleSubmit} />)}
{getFieldDecorator('filterValue', { initialValue: filterValue })(<Search placeholder="查找文章" size="large" onSearch={handleSubmit} />)}
</Col>
<Col {...TwoColProps} xl={{ span: 10 }} md={{ span: 10 }} sm={{ span: 10 }}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/content/catalog/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const Filter = ({
onDeleteItems()
}

const { name } = filter
const { filterValue } = filter

return (
<Row gutter={24}>
<Col {...ColProps} xl={{ span: 14 }} md={{ span: 14 }}>
{getFieldDecorator('filterValue', { initialValue: name })(<Search placeholder="查找分组" size="large" onSearch={handleSubmit} />)}
{getFieldDecorator('filterValue', { initialValue: filterValue })(<Search placeholder="查找分组" size="large" onSearch={handleSubmit} />)}
</Col>
<Col {...TwoColProps} xl={{ span: 10 }} md={{ span: 10 }} sm={{ span: 10 }}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/content/link/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const Filter = ({
onDeleteItems()
}

const { name } = filter
const { filterValue } = filter

return (
<Row gutter={24}>
<Col {...ColProps} xl={{ span: 14 }} md={{ span: 14 }}>
{getFieldDecorator('filterValue', { initialValue: name })(<Search placeholder="查找链接" size="large" onSearch={handleSubmit} />)}
{getFieldDecorator('filterValue', { initialValue: filterValue })(<Search placeholder="查找链接" size="large" onSearch={handleSubmit} />)}
</Col>
<Col {...TwoColProps} xl={{ span: 10 }} md={{ span: 10 }} sm={{ span: 10 }}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/content/media/Filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const Filter = ({
onDeleteItems()
}

const { name } = filter
const { filterValue } = filter

return (
<Row gutter={24}>
<Col {...ColProps} xl={{ span: 14 }} md={{ span: 14 }}>
{getFieldDecorator('filterValue', { initialValue: name })(<Search placeholder="查找文件" size="large" onSearch={handleSubmit} />)}
{getFieldDecorator('filterValue', { initialValue: filterValue })(<Search placeholder="查找文件" size="large" onSearch={handleSubmit} />)}
</Col>
<Col {...TwoColProps} xl={{ span: 10 }} md={{ span: 10 }} sm={{ span: 10 }}>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
Expand Down

0 comments on commit 8895548

Please sign in to comment.