Commit ae20a768 authored by 陈帅's avatar 陈帅

fix g2 type error

parent 23854283
......@@ -28,6 +28,9 @@ export interface MiniAreaProps {
}[];
}
// g2 4.0 发布之前只能这样先修一下了
const FixTypeAxis: any = Axis;
const MiniArea: React.FC<MiniAreaProps> = props => {
const {
height = 1,
......@@ -79,22 +82,22 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data={data}
padding={padding}
>
<Axis
<FixTypeAxis
key="axis-x"
name="x"
label={undefined}
line={undefined}
tickLine={undefined}
grid={undefined}
label={false}
line={false}
tickLine={false}
grid={false}
{...xAxis}
/>
<Axis
<FixTypeAxis
key="axis-y"
name="y"
label={undefined}
line={undefined}
tickLine={undefined}
grid={undefined}
label={false}
line={false}
tickLine={false}
grid={false}
{...yAxis}
/>
<Tooltip showTitle={false} crosshairs={false} />
......
......@@ -27,6 +27,8 @@ export interface MiniAreaProps {
y: number;
}[];
}
// g2 4.0 发布之前只能这样先修一下了
const FixTypeAxis: any = Axis;
const MiniArea: React.FC<MiniAreaProps> = props => {
const {
......@@ -79,22 +81,22 @@ const MiniArea: React.FC<MiniAreaProps> = props => {
data={data}
padding={padding}
>
<Axis
<FixTypeAxis
key="axis-x"
name="x"
label={null}
line={null}
tickLine={null}
grid={null}
label={false}
line={false}
tickLine={false}
grid={false}
{...xAxis}
/>
<Axis
<FixTypeAxis
key="axis-y"
name="y"
label={null}
line={null}
tickLine={null}
grid={null}
label={false}
line={false}
tickLine={false}
grid={false}
{...yAxis}
/>
<Tooltip showTitle={false} crosshairs={false} />
......
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