From 832585bbff0de88ba4441d7ea3fe6235d706f35c Mon Sep 17 00:00:00 2001 From: yicone Date: Tue, 23 Feb 2021 19:04:40 +0800 Subject: [PATCH] fix: assign default values for barStartKey/barEndKey --- src/GGanttChart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GGanttChart.vue b/src/GGanttChart.vue index d8e2988..47f6c34 100644 --- a/src/GGanttChart.vue +++ b/src/GGanttChart.vue @@ -65,8 +65,8 @@ export default { defaultBarLength: { type: Number, default: 1 }, // ["month_days", "day_hours"] timeaxisMode: { type: String, default: 'month_days' }, - barStartKey: { type: String, required: true }, // property name of the bar objects that represents the start datetime - barEndKey: { type: String, required: true }, // property name of the bar objects that represents the end datetime, + barStartKey: { type: String, default: 'start' }, // property name of the bar objects that represents the start datetime + barEndKey: { type: String, default: 'end' }, // property name of the bar objects that represents the end datetime, }, data() {