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