Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
97092686
You need to sign in or sign up before continuing.
Commit
97092686
authored
Nov 01, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Responsive search form in Table List page
close #34
parent
993fab9e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
src/routes/List/TableList.js
src/routes/List/TableList.js
+13
-13
src/routes/List/TableList.less
src/routes/List/TableList.less
+6
-0
No files found.
src/routes/List/TableList.js
View file @
97092686
...
@@ -156,15 +156,15 @@ export default class TableList extends PureComponent {
...
@@ -156,15 +156,15 @@ export default class TableList extends PureComponent {
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
return
(
return
(
<
Form
onSubmit
=
{
this
.
handleSearch
}
layout
=
"
inline
"
>
<
Form
onSubmit
=
{
this
.
handleSearch
}
layout
=
"
inline
"
>
<
Row
gutter
=
{
48
}
>
<
Row
gutter
=
{
{
md
:
8
,
lg
:
24
,
xl
:
48
}
}
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
规则编号
"
>
<
FormItem
label
=
"
规则编号
"
>
{
getFieldDecorator
(
'
no
'
)(
{
getFieldDecorator
(
'
no
'
)(
<
Input
placeholder
=
"
请输入
"
/>
<
Input
placeholder
=
"
请输入
"
/>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
使用状态
"
>
<
FormItem
label
=
"
使用状态
"
>
{
getFieldDecorator
(
'
status
'
)(
{
getFieldDecorator
(
'
status
'
)(
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
...
@@ -174,7 +174,7 @@ export default class TableList extends PureComponent {
...
@@ -174,7 +174,7 @@ export default class TableList extends PureComponent {
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
span
className
=
{
styles
.
sumbitButtons
}
>
<
span
className
=
{
styles
.
sumbitButtons
}
>
<
Button
type
=
"
primary
"
htmlType
=
"
submit
"
>
查询
<
/Button
>
<
Button
type
=
"
primary
"
htmlType
=
"
submit
"
>
查询
<
/Button
>
<
Button
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
handleFormReset
}
>
重置
<
/Button
>
<
Button
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
handleFormReset
}
>
重置
<
/Button
>
...
@@ -192,15 +192,15 @@ export default class TableList extends PureComponent {
...
@@ -192,15 +192,15 @@ export default class TableList extends PureComponent {
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
return
(
return
(
<
Form
onSubmit
=
{
this
.
handleSearch
}
layout
=
"
inline
"
>
<
Form
onSubmit
=
{
this
.
handleSearch
}
layout
=
"
inline
"
>
<
Row
gutter
=
{
48
}
>
<
Row
gutter
=
{
{
md
:
8
,
lg
:
24
,
xl
:
18
}
}
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
规则编号
"
>
<
FormItem
label
=
"
规则编号
"
>
{
getFieldDecorator
(
'
no
'
)(
{
getFieldDecorator
(
'
no
'
)(
<
Input
placeholder
=
"
请输入
"
/>
<
Input
placeholder
=
"
请输入
"
/>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
使用状态
"
>
<
FormItem
label
=
"
使用状态
"
>
{
getFieldDecorator
(
'
status
'
)(
{
getFieldDecorator
(
'
status
'
)(
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
...
@@ -210,7 +210,7 @@ export default class TableList extends PureComponent {
...
@@ -210,7 +210,7 @@ export default class TableList extends PureComponent {
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
调用次数
"
>
<
FormItem
label
=
"
调用次数
"
>
{
getFieldDecorator
(
'
number
'
)(
{
getFieldDecorator
(
'
number
'
)(
<
InputNumber
style
=
{{
width
:
'
100%
'
}}
/
>
<
InputNumber
style
=
{{
width
:
'
100%
'
}}
/
>
...
@@ -218,15 +218,15 @@ export default class TableList extends PureComponent {
...
@@ -218,15 +218,15 @@ export default class TableList extends PureComponent {
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
Row
gutter
=
{
48
}
>
<
Row
gutter
=
{
{
md
:
8
,
lg
:
24
,
xl
:
48
}
}
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
更新日期
"
>
<
FormItem
label
=
"
更新日期
"
>
{
getFieldDecorator
(
'
date
'
)(
{
getFieldDecorator
(
'
date
'
)(
<
DatePicker
style
=
{{
width
:
'
100%
'
}}
placeholder
=
"
请输入更新日期
"
/>
<
DatePicker
style
=
{{
width
:
'
100%
'
}}
placeholder
=
"
请输入更新日期
"
/>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
使用状态
"
>
<
FormItem
label
=
"
使用状态
"
>
{
getFieldDecorator
(
'
status3
'
)(
{
getFieldDecorator
(
'
status3
'
)(
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
...
@@ -236,7 +236,7 @@ export default class TableList extends PureComponent {
...
@@ -236,7 +236,7 @@ export default class TableList extends PureComponent {
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"
使用状态
"
>
<
FormItem
label
=
"
使用状态
"
>
{
getFieldDecorator
(
'
status4
'
)(
{
getFieldDecorator
(
'
status4
'
)(
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
...
@@ -248,7 +248,7 @@ export default class TableList extends PureComponent {
...
@@ -248,7 +248,7 @@ export default class TableList extends PureComponent {
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
div
style
=
{{
overflow
:
'
hidden
'
}}
>
<
div
style
=
{{
overflow
:
'
hidden
'
}}
>
<
span
style
=
{{
float
:
'
right
'
}}
>
<
span
style
=
{{
float
:
'
right
'
,
marginBottom
:
24
}}
>
<
Button
type
=
"
primary
"
htmlType
=
"
submit
"
>
查询
<
/Button
>
<
Button
type
=
"
primary
"
htmlType
=
"
submit
"
>
查询
<
/Button
>
<
Button
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
handleFormReset
}
>
重置
<
/Button
>
<
Button
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
handleFormReset
}
>
重置
<
/Button
>
<
a
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
toggleForm
}
>
<
a
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
toggleForm
}
>
...
...
src/routes/List/TableList.less
View file @
97092686
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
margin-bottom: 24px;
margin-bottom: 24px;
margin-right: 0;
margin-right: 0;
display: flex;
display: flex;
> .ant-form-item-label {
width: auto;
line-height: 32px;
padding-right: 8px;
}
}
}
.ant-form-item-control-wrapper {
.ant-form-item-control-wrapper {
flex: 1;
flex: 1;
...
@@ -23,6 +28,7 @@
...
@@ -23,6 +28,7 @@
}
}
.sumbitButtons {
.sumbitButtons {
white-space: nowrap;
white-space: nowrap;
margin-bottom: 24px;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment