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
bfda5fe2
Commit
bfda5fe2
authored
Jun 25, 2018
by
yoyo837
Committed by
ιεΈ
Jun 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
naming specification
parent
d1b424df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/components/Charts/Pie/index.js
src/components/Charts/Pie/index.js
+4
-4
src/routes/Forms/AdvancedForm.js
src/routes/Forms/AdvancedForm.js
+4
-4
No files found.
src/components/Charts/Pie/index.js
View file @
bfda5fe2
...
@@ -138,11 +138,11 @@ export default class Pie extends Component {
...
@@ -138,11 +138,11 @@ export default class Pie extends Component {
[
styles
.
legendBlock
]:
legendBlock
,
[
styles
.
legendBlock
]:
legendBlock
,
});
});
const
{
data
:
d
,
selected
:
s
,
tooltip
:
t
}
=
this
.
props
;
const
{
data
:
propsData
,
selected
:
propsSelected
,
tooltip
:
propsTooltip
}
=
this
.
props
;
let
data
=
d
||
[];
let
data
=
propsData
||
[];
let
selected
=
s
||
true
;
let
selected
=
propsSelected
||
true
;
let
tooltip
=
t
||
true
;
let
tooltip
=
propsTooltip
||
true
;
const
defaultColors
=
colors
;
const
defaultColors
=
colors
;
// let data = this.props.data || [];
// let data = this.props.data || [];
...
...
src/routes/Forms/AdvancedForm.js
View file @
bfda5fe2
...
@@ -73,14 +73,14 @@ class AdvancedForm extends PureComponent {
...
@@ -73,14 +73,14 @@ class AdvancedForm extends PureComponent {
resizeFooterToolbar
=
()
=>
{
resizeFooterToolbar
=
()
=>
{
const
sider
=
document
.
querySelectorAll
(
'
.ant-layout-sider
'
)[
0
];
const
sider
=
document
.
querySelectorAll
(
'
.ant-layout-sider
'
)[
0
];
const
width
=
`calc(100% -
${
sider
.
style
.
width
}
)`
;
const
width
=
`calc(100% -
${
sider
.
style
.
width
}
)`
;
const
{
width
:
w
}
=
this
.
state
;
const
{
width
:
stateWidth
}
=
this
.
state
;
if
(
w
!==
width
)
{
if
(
stateWidth
!==
width
)
{
this
.
setState
({
width
});
this
.
setState
({
width
});
}
}
};
};
render
()
{
render
()
{
const
{
width
:
w
}
=
this
.
state
;
const
{
width
:
stateWidth
}
=
this
.
state
;
const
{
form
,
dispatch
,
submitting
}
=
this
.
props
;
const
{
form
,
dispatch
,
submitting
}
=
this
.
props
;
const
{
getFieldDecorator
,
validateFieldsAndScroll
,
getFieldsError
}
=
form
;
const
{
getFieldDecorator
,
validateFieldsAndScroll
,
getFieldsError
}
=
form
;
const
validate
=
()
=>
{
const
validate
=
()
=>
{
...
@@ -289,7 +289,7 @@ class AdvancedForm extends PureComponent {
...
@@ -289,7 +289,7 @@ class AdvancedForm extends PureComponent {
initialValue
:
tableData
,
initialValue
:
tableData
,
})(
<
TableForm
/>
)}
})(
<
TableForm
/>
)}
<
/Card
>
<
/Card
>
<
FooterToolbar
style
=
{{
width
:
w
}}
>
<
FooterToolbar
style
=
{{
width
:
stateWidth
}}
>
{
getErrorInfo
()}
{
getErrorInfo
()}
<
Button
type
=
"
primary
"
onClick
=
{
validate
}
loading
=
{
submitting
}
>
<
Button
type
=
"
primary
"
onClick
=
{
validate
}
loading
=
{
submitting
}
>
ζδΊ€
ζδΊ€
...
...
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