Commit b600e1e5 authored by 陈帅's avatar 陈帅

fix g2 type error

parent 6ef0c23f
...@@ -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,7 +82,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -79,7 +82,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data={data} data={data}
padding={padding} padding={padding}
> >
<Axis <FixTypeAxis
key="axis-x" key="axis-x"
name="x" name="x"
label={undefined} label={undefined}
...@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid={undefined} grid={undefined}
{...xAxis} {...xAxis}
/> />
<Axis <FixTypeAxis
key="axis-y" key="axis-y"
name="y" name="y"
label={undefined} label={undefined}
......
...@@ -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,7 +82,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -79,7 +82,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data={data} data={data}
padding={padding} padding={padding}
> >
<Axis <FixTypeAxis
key="axis-x" key="axis-x"
name="x" name="x"
label={null} label={null}
...@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => { ...@@ -88,7 +91,7 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
grid={null} grid={null}
{...xAxis} {...xAxis}
/> />
<Axis <FixTypeAxis
key="axis-y" key="axis-y"
name="y" name="y"
label={null} 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