no message
Former-commit-id: 60bb419d4b550ef5d0f73216d6dea32f4717e395 Former-commit-id: 1fa1522281c5c9141726f2261766b82da71d5d05 Former-commit-id: 75bb03735bc8bc8fb8d861036274e7aa3fb8eb91
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// 所有 G2 图表组件都引用此 mixin
|
||||
|
||||
import G2 from '@antv/g2'
|
||||
import * as DataSet from '@antv/data-set'
|
||||
|
||||
@@ -24,6 +23,12 @@ export default {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 在组件 mounted 后立即初始化图表 (非G2自带)
|
||||
autoInit: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data () {
|
||||
@@ -33,9 +38,7 @@ export default {
|
||||
// 数据处理模块
|
||||
DataSet,
|
||||
// 图表实例
|
||||
chart: null,
|
||||
// 在组件 mounted 后立即初始化图表
|
||||
autoInit: true
|
||||
chart: null
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
|
||||
Reference in New Issue
Block a user