File tree 32 files changed +109
-31
lines changed
32 files changed +109
-31
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { Area , AreaOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type AreaChartProps = Writeable <
7
8
Omit < BaseChartProps < AreaOptions > , 'chart' > & AreaOptions
@@ -10,7 +11,7 @@ export type AreaChartProps = Writeable<
10
11
const AreaChart = defineComponent < AreaChartProps > ( {
11
12
name : 'AreaChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Area } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Area } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { Bar , BarOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type BarChartProps = Writeable <
7
8
Omit < BaseChartProps < BarOptions > , 'chart' > & BarOptions
@@ -10,7 +11,7 @@ export type BarChartProps = Writeable<
10
11
const BarChart = defineComponent < BarChartProps > ( {
11
12
name : 'BarChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Bar } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Bar } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { BidirectionalBar , BidirectionalBarOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type BidirectionalBarChartProps = Writeable <
7
8
Omit < BaseChartProps < BidirectionalBarOptions > , 'chart' > &
@@ -12,7 +13,7 @@ const BidirectionalBarChart = defineComponent<BidirectionalBarChartProps>({
12
13
name : 'BidirectionalBarChart' ,
13
14
setup : ( props , ctx ) => {
14
15
return ( ) => (
15
- < BaseChart chart = { BidirectionalBar } { ...ctx . attrs } { ... props } />
16
+ < BaseChart chart = { BidirectionalBar } { ...mergeAttrs ( props , ctx . attrs ) } />
16
17
)
17
18
} ,
18
19
} )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { Box , BoxOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type BoxChartProps = Writeable <
7
8
Omit < BaseChartProps < BoxOptions > , 'chart' > & BoxOptions
@@ -10,7 +11,7 @@ export type BoxChartProps = Writeable<
10
11
const BoxChart = defineComponent < BoxChartProps > ( {
11
12
name : 'BoxChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Box } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Box } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { Bullet , BulletOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type BulletChartProps = Writeable <
7
8
Omit < BaseChartProps < BulletOptions > , 'chart' > & BulletOptions
@@ -10,7 +11,7 @@ export type BulletChartProps = Writeable<
10
11
const BulletChart = defineComponent < BulletChartProps > ( {
11
12
name : 'BulletChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Bullet } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Bullet } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { Chord , ChordOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type ChordChartProps = Writeable <
7
8
Omit < BaseChartProps < ChordOptions > , 'chart' > & ChordOptions
@@ -10,7 +11,7 @@ export type ChordChartProps = Writeable<
10
11
const ChordChart = defineComponent < ChordChartProps > ( {
11
12
name : 'ChordChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Chord } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Chord } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Column , ColumnOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type ColumnChartProps = Writeable <
7
8
Omit < BaseChartProps < ColumnOptions > , 'chart' > & ColumnOptions
@@ -10,7 +11,7 @@ export type ColumnChartProps = Writeable<
10
11
const ColumnChart = defineComponent < ColumnChartProps > ( {
11
12
name : 'ColumnChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Column } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Column } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { DualAxes , DualAxesOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type DualAxesChartProps = Writeable <
7
8
Omit < BaseChartProps < DualAxesOptions > , 'chart' > & DualAxesOptions
@@ -10,7 +11,9 @@ export type DualAxesChartProps = Writeable<
10
11
const DualAxesChart = defineComponent < DualAxesChartProps > ( {
11
12
name : 'DualAxesChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { DualAxes } { ...ctx . attrs } { ...props } />
14
+ return ( ) => (
15
+ < BaseChart chart = { DualAxes } { ...mergeAttrs ( props , ctx . attrs ) } />
16
+ )
14
17
} ,
15
18
} )
16
19
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Funnel , FunnelOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type FunnelChartProps = Writeable <
7
8
Omit < BaseChartProps < FunnelOptions > , 'chart' > & FunnelOptions
@@ -10,7 +11,7 @@ export type FunnelChartProps = Writeable<
10
11
const FunnelChart = defineComponent < FunnelChartProps > ( {
11
12
name : 'FunnelChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Funnel } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Funnel } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Gauge , GaugeOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type GaugeChartProps = Writeable <
7
8
Omit < BaseChartProps < GaugeOptions > , 'chart' > & GaugeOptions
@@ -10,7 +11,7 @@ export type GaugeChartProps = Writeable<
10
11
const GaugeChart = defineComponent < GaugeChartProps > ( {
11
12
name : 'GaugeChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Gauge } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Gauge } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Heatmap , HeatmapOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type HeatmapChartProps = Writeable <
7
8
Omit < BaseChartProps < HeatmapOptions > , 'chart' > & HeatmapOptions
@@ -10,7 +11,7 @@ export type HeatmapChartProps = Writeable<
10
11
const HeatmapChart = defineComponent < HeatmapChartProps > ( {
11
12
name : 'HeatmapChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Heatmap } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Heatmap } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Histogram , HistogramOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type HistogramChartProps = Writeable <
7
8
Omit < BaseChartProps < HistogramOptions > , 'chart' > & HistogramOptions
@@ -10,7 +11,9 @@ export type HistogramChartProps = Writeable<
10
11
const HistogramChart = defineComponent < HistogramChartProps > ( {
11
12
name : 'HistogramChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Histogram } { ...ctx . attrs } { ...props } />
14
+ return ( ) => (
15
+ < BaseChart chart = { Histogram } { ...mergeAttrs ( props , ctx . attrs ) } />
16
+ )
14
17
} ,
15
18
} )
16
19
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Line , LineOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type LineChartProps = Writeable <
7
8
Omit < BaseChartProps < LineOptions > , 'chart' > & LineOptions
@@ -10,7 +11,7 @@ export type LineChartProps = Writeable<
10
11
const LineChart = defineComponent < LineChartProps > ( {
11
12
name : 'LineChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Line } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Line } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Liquid , LiquidOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type LiquidChartProps = Writeable <
7
8
Omit < BaseChartProps < LiquidOptions > , 'chart' > & LiquidOptions
@@ -10,7 +11,7 @@ export type LiquidChartProps = Writeable<
10
11
const LiquidChart = defineComponent < LiquidChartProps > ( {
11
12
name : 'LiquidChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Liquid } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Liquid } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { MultiView , MultiViewOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type MultiViewChartProps = Writeable <
7
8
Omit < BaseChartProps < MultiViewOptions > , 'chart' > & MultiViewOptions
@@ -10,7 +11,9 @@ export type MultiViewChartProps = Writeable<
10
11
const MultiViewChart = defineComponent < MultiViewChartProps > ( {
11
12
name : 'MultiViewChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { MultiView } { ...ctx . attrs } { ...props } />
14
+ return ( ) => (
15
+ < BaseChart chart = { MultiView } { ...mergeAttrs ( props , ctx . attrs ) } />
16
+ )
14
17
} ,
15
18
} )
16
19
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Pie , PieOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type PieChartProps = Writeable <
7
8
Omit < BaseChartProps < PieOptions > , 'chart' > & PieOptions
@@ -10,7 +11,7 @@ export type PieChartProps = Writeable<
10
11
const PieChart = defineComponent < PieChartProps > ( {
11
12
name : 'PieChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Pie } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Pie } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Progress , ProgressOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type ProgressChartProps = Writeable <
7
8
Omit < BaseChartProps < ProgressOptions > , 'chart' > & ProgressOptions
@@ -10,7 +11,9 @@ export type ProgressChartProps = Writeable<
10
11
const ProgressChart = defineComponent < ProgressChartProps > ( {
11
12
name : 'ProgressChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Progress } { ...ctx . attrs } { ...props } />
14
+ return ( ) => (
15
+ < BaseChart chart = { Progress } { ...mergeAttrs ( props , ctx . attrs ) } />
16
+ )
14
17
} ,
15
18
} )
16
19
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Radar , RadarOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type RadarChartProps = Writeable <
7
8
Omit < BaseChartProps < RadarOptions > , 'chart' > & RadarOptions
@@ -10,7 +11,7 @@ export type RadarChartProps = Writeable<
10
11
const RadarChart = defineComponent < RadarChartProps > ( {
11
12
name : 'RadarChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Radar } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Radar } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { RadialBar , RadialBarOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type RadialBarChartProps = Writeable <
7
8
Omit < BaseChartProps < RadialBarOptions > , 'chart' > & RadialBarOptions
@@ -10,7 +11,9 @@ export type RadialBarChartProps = Writeable<
10
11
const RadialBarChart = defineComponent < RadialBarChartProps > ( {
11
12
name : 'RadialBarChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { RadialBar } { ...ctx . attrs } { ...props } />
14
+ return ( ) => (
15
+ < BaseChart chart = { RadialBar } { ...mergeAttrs ( props , ctx . attrs ) } />
16
+ )
14
17
} ,
15
18
} )
16
19
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { RingProgress , RingProgressOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type RingProgressChartProps = Writeable <
7
8
Omit < BaseChartProps < RingProgressOptions > , 'chart' > & RingProgressOptions
@@ -10,7 +11,9 @@ export type RingProgressChartProps = Writeable<
10
11
const RingProgressChart = defineComponent < RingProgressChartProps > ( {
11
12
name : 'RingProgressChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { RingProgress } { ...ctx . attrs } { ...props } />
14
+ return ( ) => (
15
+ < BaseChart chart = { RingProgress } { ...mergeAttrs ( props , ctx . attrs ) } />
16
+ )
14
17
} ,
15
18
} )
16
19
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { defineComponent, App } from 'vue-demi'
2
2
import { Rose , RoseOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type RoseChartProps = Writeable <
7
8
Omit < BaseChartProps < RoseOptions > , 'chart' > & RoseOptions
@@ -10,7 +11,7 @@ export type RoseChartProps = Writeable<
10
11
const RoseChart = defineComponent < RoseChartProps > ( {
11
12
name : 'RoseChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Rose } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Rose } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { App, defineComponent } from 'vue-demi'
2
2
import { Sankey , SankeyOptions } from '@antv/g2plot'
3
3
import BaseChart , { BaseChartProps } from '../../components/base'
4
4
import { Writeable } from '../../types'
5
+ import { mergeAttrs } from '../../utils'
5
6
6
7
export type SankeyChartProps = Writeable <
7
8
Omit < BaseChartProps < SankeyOptions > , 'chart' > & SankeyOptions
@@ -10,7 +11,7 @@ export type SankeyChartProps = Writeable<
10
11
const SankeyChart = defineComponent < SankeyChartProps > ( {
11
12
name : 'SankeyChart' ,
12
13
setup : ( props , ctx ) => {
13
- return ( ) => < BaseChart chart = { Sankey } { ...ctx . attrs } { ... props } />
14
+ return ( ) => < BaseChart chart = { Sankey } { ...mergeAttrs ( props , ctx . attrs ) } />
14
15
} ,
15
16
} )
16
17
You can’t perform that action at this time.
0 commit comments