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
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
b600e1e5
Commit
b600e1e5
authored
Jun 18, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix g2 type error
parent
6ef0c23f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
DashboardAnalysis/src/components/Charts/MiniArea/index.tsx
DashboardAnalysis/src/components/Charts/MiniArea/index.tsx
+5
-2
DashboardMonitor/src/components/Charts/MiniArea/index.tsx
DashboardMonitor/src/components/Charts/MiniArea/index.tsx
+5
-2
No files found.
DashboardAnalysis/src/components/Charts/MiniArea/index.tsx
View file @
b600e1e5
...
...
@@ -28,6 +28,9 @@ export interface MiniAreaProps {
}[];
}
// g2 4.0 发布之前只能这样先修一下了
const
FixTypeAxis
:
any
=
Axis
;
const
MiniArea
:
React
.
FC
<
MiniAreaProps
>
=
props
=>
{
const
{
height
=
1
,
...
...
@@ -79,7 +82,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data
=
{
data
}
padding
=
{
padding
}
>
<
Axis
<
FixType
Axis
key
=
"axis-x"
name
=
"x"
label
=
{
undefined
}
...
...
@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid
=
{
undefined
}
{
...
xAxis
}
/>
<
Axis
<
FixType
Axis
key
=
"axis-y"
name
=
"y"
label
=
{
undefined
}
...
...
DashboardMonitor/src/components/Charts/MiniArea/index.tsx
View file @
b600e1e5
...
...
@@ -28,6 +28,9 @@ export interface MiniAreaProps {
}[];
}
// g2 4.0 发布之前只能这样先修一下了
const
FixTypeAxis
:
any
=
Axis
;
const
MiniArea
:
React
.
FC
<
MiniAreaProps
>
=
props
=>
{
const
{
height
=
1
,
...
...
@@ -79,7 +82,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data
=
{
data
}
padding
=
{
padding
}
>
<
Axis
<
FixType
Axis
key
=
"axis-x"
name
=
"x"
label
=
{
null
}
...
...
@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid
=
{
null
}
{
...
xAxis
}
/>
<
Axis
<
FixType
Axis
key
=
"axis-y"
name
=
"y"
label
=
{
null
}
...
...
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