浏览代码

change the type property

tags/2.4.0
Caven Chen 4 年前
父节点
当前提交
d1dad9f5f7
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      modules/chart/ChartLayer.js

+ 5
- 2
modules/chart/ChartLayer.js 查看文件

super(id) super(id)
this._option = option this._option = option
this._delegate = DomUtil.create('div', 'dc-chart') this._delegate = DomUtil.create('div', 'dc-chart')
this._setWrapperStyle()
this._chart = undefined this._chart = undefined
this.type = Layer.getLayerType('chart')
this._setWrapperStyle()
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


get type() {
return Layer.getLayerType('chart')
}

get chart() { get chart() {
return this._chart return this._chart
} }

正在加载...
取消
保存