Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
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
ant-design-pro
Commits
7c2ec988
Commit
7c2ec988
authored
Oct 23, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update styles
parent
0153ec13
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
67 deletions
+51
-67
src/layouts/BasicLayout.less
src/layouts/BasicLayout.less
+1
-1
src/routes/List/TableList.js
src/routes/List/TableList.js
+40
-54
src/routes/List/TableList.less
src/routes/List/TableList.less
+10
-12
No files found.
src/layouts/BasicLayout.less
View file @
7c2ec988
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
height: 64px;
height: 64px;
position: relative;
position: relative;
line-height: 64px;
line-height: 64px;
padding-left:
32
px;
padding-left:
24
px;
transition: all .3s;
transition: all .3s;
background: #002140;
background: #002140;
overflow: hidden;
overflow: hidden;
...
...
src/routes/List/TableList.js
View file @
7c2ec988
import
React
,
{
PureComponent
}
from
'
react
'
;
import
React
,
{
PureComponent
}
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Card
,
Row
,
Col
,
Form
,
Input
,
Select
,
Icon
,
Button
,
Dropdown
,
Menu
,
InputNumber
,
DatePicker
,
Modal
,
message
}
from
'
antd
'
;
import
{
Card
,
Form
,
Input
,
Select
,
Icon
,
Button
,
Dropdown
,
Menu
,
InputNumber
,
DatePicker
,
Modal
,
message
}
from
'
antd
'
;
import
StandardTable
from
'
../../components/StandardTable
'
;
import
StandardTable
from
'
../../components/StandardTable
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
...
@@ -156,11 +156,6 @@ export default class TableList extends PureComponent {
...
@@ -156,11 +156,6 @@ export default class TableList extends PureComponent {
const
{
rule
:
{
loading
:
ruleLoading
,
data
},
form
:
{
getFieldDecorator
}
}
=
this
.
props
;
const
{
rule
:
{
loading
:
ruleLoading
,
data
},
form
:
{
getFieldDecorator
}
}
=
this
.
props
;
const
{
selectedRows
,
modalVisible
,
addInputValue
}
=
this
.
state
;
const
{
selectedRows
,
modalVisible
,
addInputValue
}
=
this
.
state
;
const
formItemLayout
=
{
labelCol
:
{
xs
:
5
,
sm
:
8
,
lg
:
6
,
xl
:
6
},
wrapperCol
:
{
xs
:
18
,
sm
:
16
,
lg
:
17
,
xl
:
17
},
};
const
menu
=
(
const
menu
=
(
<
Menu
onClick
=
{
this
.
handleMenuClick
}
selectedKeys
=
{[]}
>
<
Menu
onClick
=
{
this
.
handleMenuClick
}
selectedKeys
=
{[]}
>
<
Menu
.
Item
key
=
"
remove
"
>
删除
<
/Menu.Item
>
<
Menu
.
Item
key
=
"
remove
"
>
删除
<
/Menu.Item
>
...
@@ -173,56 +168,47 @@ export default class TableList extends PureComponent {
...
@@ -173,56 +168,47 @@ export default class TableList extends PureComponent {
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
div
className
=
{
styles
.
tableList
}
>
<
div
className
=
{
styles
.
tableList
}
>
<
div
className
=
{
styles
.
tableListForm
}
>
<
div
className
=
{
styles
.
tableListForm
}
>
<
Form
onSubmit
=
{
this
.
handleSearch
}
>
<
Form
onSubmit
=
{
this
.
handleSearch
}
layout
=
"
inline
"
>
<
Row
>
<
div
style
=
{{
marginBottom
:
16
}}
>
<
Col
md
=
{
8
}
sm
=
{
12
}
xs
=
{
24
}
>
<
FormItem
label
=
"
规则编号
"
>
<
FormItem
{...
formItemLayout
}
label
=
"
规则编号
"
>
{
getFieldDecorator
(
'
no
'
)(
{
getFieldDecorator
(
'
no
'
)(
<
Input
placeholder
=
"
请输入
"
/>
<
Input
placeholder
=
"
请输入
"
style
=
{{
width
:
272
}}
/
>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
FormItem
label
=
"
使用状态
"
>
<
Col
md
=
{
8
}
sm
=
{
12
}
xs
=
{
24
}
>
<
FormItem
{...
formItemLayout
}
label
=
"
状态
"
>
{
getFieldDecorator
(
'
status
'
)(
{
getFieldDecorator
(
'
status
'
)(
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
'
100%
'
}}
>
<
Select
placeholder
=
"
请选择
"
style
=
{{
width
:
272
}}
>
<
Option
value
=
"
0
"
>
关闭
<
/Option
>
<
Option
value
=
"
0
"
>
关闭
<
/Option
>
<
Option
value
=
"
1
"
>
运行中
<
/Option
>
<
Option
value
=
"
1
"
>
运行中
<
/Option
>
<
/Select
>
<
/Select
>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
span
className
=
{
styles
.
formButton
}
>
<
Col
md
=
{
8
}
sm
=
{
12
}
xs
=
{
24
}
style
=
{{
marginBottom
:
24
}}
>
<
div
className
=
{
styles
.
formButton
}
>
<
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
,
fontSize
:
12
}}
onClick
=
{
this
.
toggleForm
}
>
<
a
style
=
{{
marginLeft
:
8
}}
onClick
=
{
this
.
toggleForm
}
>
{
this
.
state
.
expandForm
?
'
收起
'
:
'
展开
'
}
<
Icon
type
=
{
this
.
state
.
expandForm
?
'
up
'
:
'
down
'
}
/
>
{
this
.
state
.
expandForm
?
'
收起
'
:
'
展开
'
}
<
Icon
type
=
{
this
.
state
.
expandForm
?
'
up
'
:
'
down
'
}
/
>
<
/a
>
<
/a
>
<
/span
>
<
/div
>
<
/div
>
<
/Col
>
<
/Row
>
{
{
this
.
state
.
expandForm
&&
(
this
.
state
.
expandForm
&&
(
<
Row
>
<
div
style
=
{{
marginBottom
:
16
}}
>
<
Col
md
=
{
8
}
sm
=
{
12
}
xs
=
{
24
}
>
<
FormItem
label
=
"
更新时间
"
>
<
FormItem
{...
formItemLayout
}
label
=
"
更新时间
"
>
{
getFieldDecorator
(
'
updatedAt
'
)(
{
getFieldDecorator
(
'
updatedAt
'
)(
<
DatePicker
style
=
{{
width
:
'
100%
'
}}
/
>
<
DatePicker
style
=
{{
width
:
272
}}
/
>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
FormItem
label
=
"
调用次数
"
>
<
Col
md
=
{
8
}
sm
=
{
12
}
xs
=
{
24
}
>
<
FormItem
{...
formItemLayout
}
label
=
"
调用次数
"
>
{
getFieldDecorator
(
'
callNo
'
)(
{
getFieldDecorator
(
'
callNo
'
)(
<
InputNumber
<
InputNumber
prefix
=
{
<
Icon
type
=
"
right
"
/>
}
prefix
=
{
<
Icon
type
=
"
right
"
/>
}
placeholder
=
"
请输入
"
placeholder
=
"
请输入
"
style
=
{{
width
:
272
}}
/
>
/
>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/div
>
<
/Row
>
)
)
}
}
<
/Form
>
<
/Form
>
...
...
src/routes/List/TableList.less
View file @
7c2ec988
...
@@ -3,11 +3,6 @@
...
@@ -3,11 +3,6 @@
.tableList {
.tableList {
padding-bottom: 8px;
padding-bottom: 8px;
:global {
.ant-form-item {
margin-bottom: 24px;
}
}
.tableListOperator {
.tableListOperator {
margin-bottom: 16px;
margin-bottom: 16px;
button {
button {
...
@@ -16,20 +11,23 @@
...
@@ -16,20 +11,23 @@
}
}
}
}
.tableListForm :global(.ant-form-item) {
margin-right: 48px;
margin-bottom: 8px;
}
.formButton {
.formButton {
margin-left: 40px;
white-space: nowrap;
position: relative;
top: 2px;
}
}
@media screen and (max-width: @screen-lg) {
@media screen and (max-width: @screen-lg) {
.
formButton
{
.
tableListForm :global(.ant-form-item)
{
margin-
left: 20
px;
margin-
right: 24
px;
}
}
}
}
@media screen and (max-width: @screen-md) {
@media screen and (max-width: @screen-md) {
.
formButton
{
.
tableListForm :global(.ant-form-item)
{
margin-
left: 0
;
margin-
right: 8px
;
}
}
}
}
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