Commit b600e1e5 authored by 陈帅's avatar 陈帅

fix g2 type error

parent 6ef0c23f
......@@ -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
<FixTypeAxis
key="axis-x"
name="x"
label={undefined}
......@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid={undefined}
{...xAxis}
/>
<Axis
<FixTypeAxis
key="axis-y"
name="y"
label={undefined}
......
......@@ -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
<FixTypeAxis
key="axis-x"
name="x"
label={null}
......@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid={null}
{...xAxis}
/>
<Axis
<FixTypeAxis
key="axis-y"
name="y"
label={null}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment