@csnext/cs-billboard
Advanced tools
Comparing version 0.0.74 to 0.0.75
@@ -6,2 +6,11 @@ # Change Log | ||
## [0.0.75](https://github.com/TNOCS/csnext/compare/v0.0.74...v0.0.75) (2018-11-05) | ||
**Note:** Version bump only for package @csnext/cs-billboard | ||
<a name="0.0.74"></a> | ||
@@ -8,0 +17,0 @@ ## [0.0.74](https://github.com/TNOCS/csnext/compare/v0.0.73...v0.0.74) (2018-10-31) |
{ | ||
"name": "@csnext/cs-billboard", | ||
"version": "0.0.74", | ||
"version": "0.0.75", | ||
"description": "cs-billboard", | ||
@@ -20,3 +20,3 @@ "main": "./lib/csbillboard.cs.js", | ||
"dependencies": { | ||
"@csnext/cs-core": "^0.0.74", | ||
"@csnext/cs-core": "^0.0.75", | ||
"billboard.js": "^1.6.2" | ||
@@ -28,8 +28,8 @@ }, | ||
"style-loader": "^0.23.1", | ||
"ts-loader": "^5.2.2", | ||
"typescript": "^3.1.3", | ||
"webpack": "~4.22.0", | ||
"ts-loader": "^5.3.0", | ||
"typescript": "^3.1.6", | ||
"webpack": "~4.23.1", | ||
"webpack-cli": "^3.1.2" | ||
}, | ||
"gitHead": "bf788579a295939ddca14db8e1d78e370b8a6569" | ||
"gitHead": "33b087335ae1ce7acd8386a7e03bf9f4af276888" | ||
} |
@@ -27,2 +27,15 @@ import { Watch } from 'vue-property-decorator'; | ||
@Watch('widget.content', { deep: true}) | ||
contentUpdated() { | ||
if (this.chart) { | ||
this.chart.load(this.widget.content); | ||
} | ||
} | ||
private getData() : any { | ||
if (this.widget.data) return this.widget.data; | ||
if (this.widget.content) return this.widget.content; | ||
return undefined; | ||
} | ||
public mounted() { | ||
@@ -32,3 +45,3 @@ Vue.nextTick(() => { | ||
bindto: '#' + this.widget.id, | ||
data: this.widget.data | ||
data: this.getData() | ||
}); | ||
@@ -35,0 +48,0 @@ |
2379693
24761
+ Added@csnext/cs-core@0.0.75(transitive)
- Removed@csnext/cs-core@0.0.74(transitive)
Updated@csnext/cs-core@^0.0.75