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
097f1d58
Commit
097f1d58
authored
Oct 26, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix text of site
parent
dc6b13b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+11
-2
src/routes/Forms/AdvancedForm.js
src/routes/Forms/AdvancedForm.js
+1
-1
src/routes/Forms/BasicForm.js
src/routes/Forms/BasicForm.js
+1
-1
src/routes/Forms/StepForm/index.js
src/routes/Forms/StepForm/index.js
+1
-1
No files found.
src/routes/Dashboard/Analysis.js
View file @
097f1d58
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Row
,
Col
,
Icon
,
Card
,
Tabs
,
Table
,
Radio
,
DatePicker
,
Tooltip
}
from
'
antd
'
;
import
{
Row
,
Col
,
Icon
,
Card
,
Tabs
,
Table
,
Radio
,
DatePicker
,
Tooltip
,
Menu
,
Dropdown
}
from
'
antd
'
;
import
numeral
from
'
numeral
'
;
import
numeral
from
'
numeral
'
;
import
{
import
{
ChartCard
,
yuan
,
MiniArea
,
MiniBar
,
MiniProgress
,
Field
,
Bar
,
Pie
,
TimelineChart
,
ChartCard
,
yuan
,
MiniArea
,
MiniBar
,
MiniProgress
,
Field
,
Bar
,
Pie
,
TimelineChart
,
...
@@ -108,9 +108,18 @@ export default class Analysis extends Component {
...
@@ -108,9 +108,18 @@ export default class Analysis extends Component {
:
:
(
salesType
===
'
online
'
?
salesTypeDataOnline
:
salesTypeDataOffline
);
(
salesType
===
'
online
'
?
salesTypeDataOnline
:
salesTypeDataOffline
);
const
menu
=
(
<
Menu
>
<
Menu
.
Item
>
操作一
<
/Menu.Item
>
<
Menu
.
Item
>
操作二
<
/Menu.Item
>
<
/Menu
>
);
const
iconGroup
=
(
const
iconGroup
=
(
<
span
className
=
{
styles
.
iconGroup
}
>
<
span
className
=
{
styles
.
iconGroup
}
>
<
Icon
type
=
"
camera-o
"
/><
Icon
type
=
"
export
"
/><
Icon
type
=
"
ellipsis
"
/>
<
Dropdown
overlay
=
{
menu
}
placement
=
"
bottomRight
"
>
<
Icon
type
=
"
ellipsis
"
/>
<
/Dropdown
>
<
/span
>
<
/span
>
);
);
...
...
src/routes/Forms/AdvancedForm.js
View file @
097f1d58
...
@@ -96,7 +96,7 @@ function AdvancedForm({ form, dispatch, submitting }) {
...
@@ -96,7 +96,7 @@ function AdvancedForm({ form, dispatch, submitting }) {
return
(
return
(
<
PageHeaderLayout
<
PageHeaderLayout
title
=
"
高级表单
"
title
=
"
高级表单
"
content
=
"
在后台页面中,大批量的数据修改和提交是很常见的情况
。
"
content
=
"
高级表单常见于一次性输入和提交大批量数据的场景
。
"
wrapperClassName
=
{
styles
.
advancedForm
}
wrapperClassName
=
{
styles
.
advancedForm
}
>
>
<
Card
title
=
"
仓库管理
"
className
=
{
styles
.
card
}
bordered
=
{
false
}
>
<
Card
title
=
"
仓库管理
"
className
=
{
styles
.
card
}
bordered
=
{
false
}
>
...
...
src/routes/Forms/BasicForm.js
View file @
097f1d58
...
@@ -51,7 +51,7 @@ export default class BasicForms extends PureComponent {
...
@@ -51,7 +51,7 @@ export default class BasicForms extends PureComponent {
};
};
return
(
return
(
<
PageHeaderLayout
title
=
"
基础表单
"
content
=
"
表单页
是向后台提交数据的标准
场景。
"
>
<
PageHeaderLayout
title
=
"
基础表单
"
content
=
"
表单页
用于向用户收集或验证信息,基础表单常见于数据项较少的表单
场景。
"
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
Form
<
Form
onSubmit
=
{
this
.
handleSubmit
}
onSubmit
=
{
this
.
handleSubmit
}
...
...
src/routes/Forms/StepForm/index.js
View file @
097f1d58
...
@@ -42,7 +42,7 @@ class StepForm extends PureComponent {
...
@@ -42,7 +42,7 @@ class StepForm extends PureComponent {
};
};
const
CurrentComponent
=
this
.
getCurrentComponent
();
const
CurrentComponent
=
this
.
getCurrentComponent
();
return
(
return
(
<
PageHeaderLayout
title
=
"
分步表单
"
content
=
"
将
表单内容进行分步可以提高用户处理的专注度,降低页面复杂性
。
"
>
<
PageHeaderLayout
title
=
"
分步表单
"
content
=
"
将
一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成
。
"
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
div
>
<
div
>
<
Steps
current
=
{
this
.
getCurrentStep
()}
className
=
{
styles
.
steps
}
>
<
Steps
current
=
{
this
.
getCurrentStep
()}
className
=
{
styles
.
steps
}
>
...
...
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