We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0828e commit d23aeb3Copy full SHA for d23aeb3
src/components/Timeline.vue
@@ -156,9 +156,15 @@ export default {
156
},
157
mounted() {
158
const container = this.$refs.visualization;
159
+
160
this.visData.items = mountVisData(this, 'items');
- this.visData.groups = mountVisData(this, 'groups');
161
- this.timeline = new Timeline(container, this.visData.items, this.visData.groups, this.options);
162
+ if (this.groups && this.groups.length > 0) {
163
+ this.visData.groups = mountVisData(this, 'groups');
164
+ this.timeline = new Timeline(container, this.visData.items, this.visData.groups, this.options);
165
+ } else {
166
+ this.timeline = new Timeline(container, this.visData.items, this.options);
167
+ }
168
169
this.events.forEach(eventName =>
170
this.timeline.on(eventName, props => this.$emit(translateEvent(eventName), props))
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments