Pārlūkot izejas kodu

change the type property

tags/2.4.0
Caven Chen pirms 4 gadiem
vecāks
revīzija
d1dad9f5f7
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5
    2
      modules/chart/ChartLayer.js

+ 5
- 2
modules/chart/ChartLayer.js Parādīt failu

@@ -12,12 +12,15 @@ class ChartLayer extends Layer {
super(id)
this._option = option
this._delegate = DomUtil.create('div', 'dc-chart')
this._setWrapperStyle()
this._chart = undefined
this.type = Layer.getLayerType('chart')
this._setWrapperStyle()
this._state = State.INITIALIZED
}

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

get chart() {
return this._chart
}

Notiek ielāde…
Atcelt
Saglabāt