diff --git a/README.md b/README.md index b26dd86..18d626b 100644 --- a/README.md +++ b/README.md @@ -124,33 +124,34 @@ The following code showcases a simple usage example in a .vue SFC (Single File C ## Props -| Prop | Type | Default | Description | -| ------------------------ | --------------- | ---------------- | ------------------------------------------------------------------- | -| allow-add | `Boolean` | `true` | allow to add new bar on double click | -| bar-config-key | `String` | `ganttBarConfig` | | -| bar-start-key | `String` | `start` | property name of the bar objects that represents the start datetime | -| bar-end-key | `String` | `end` | property name of the bar objects that represents the end datetime | -| chart-start (_required_) | `String` | - | format `YYYY-MM-DD HH:mm` | -| chart-end (_required_) | `String` | - | format `YYYY-MM-DD HH:mm` | -| day-format | `String` | `ddd DD MMMM` | | -| grid | `Boolean` | `false` | hide/show grid | -| grid-size | `Number` | `30` | horizontal cell width in pixels | -| default-bar-length | `Number` | `1` | | -| height | `String` | - | the total height of the entire Vue-Ganttastic component | -| hide-timeaxis | `Boolean` | `false` | hide timeaxis | -| highlighted-days | `Array` | `[]` | format of day `YYYY-MM-DD` | -| highlighted-hours | `Array` | `[]` | | -| is-magnetic | `Boolean` | - | magnetic effect | -| locale | `String` | `en` | localization | -| min-gap-between-bars | `Number` | `0` | | -| month-format | `String` | `MMMM YYYY` | | -| precision | `String` | `month` | day, month | -| push-on-overlap | `Boolean` | - | | -| row-height | `Number` | `40` | | -| row-label-width | `Number` | `200` | label width in pixels | -| snap-back-on-overlap | `Boolean` | - | | -| theme | `String` | `default` | | -| width | `String` | `100%` | the total width of the entire Vue-Ganttastic component | +| Prop | Type | Default | Description | +| ------------------------ | --------------- | ------------------------------------- | ------------------------------------------------------------------- | +| allow-add | `Boolean` | `true` | allow to add new bar on double click | +| bar-config-key | `String` | `ganttBarConfig` | | +| bar-start-key | `String` | `start` | property name of the bar objects that represents the start datetime | +| bar-end-key | `String` | `end` | property name of the bar objects that represents the end datetime | +| chart-start (_required_) | `String` | - | format `YYYY-MM-DD HH:mm` | +| chart-end (_required_) | `String` | - | format `YYYY-MM-DD HH:mm` | +| day-format | `String` | `ddd DD MMMM` | | +| grid | `Boolean` | `false` | hide/show grid | +| grid-size | `Number` | `30` | horizontal cell width in pixels | +| default-bar-length | `Number` | `1` | | +| height | `String` | - | the total height of the entire Vue-Ganttastic component | +| hide-timeaxis | `Boolean` | `false` | hide timeaxis | +| highlighted-days | `Array` | `[]` | format of day `YYYY-MM-DD` | +| highlighted-hours | `Array` | `[]` | | +| is-magnetic | `Boolean` | - | magnetic effect | +| locale | `String` | `en` | localization | +| min-gap-between-bars | `Number` | `0` | | +| month-format | `String` | `MMMM YYYY` | | +| precision | `String` | `month` | day, month | +| push-on-overlap | `Boolean` | - | | +| row-height | `Number` | `40` | | +| row-label-width | `Number` | `200` | label width in pixels | +| snap-back-on-overlap | `Boolean` | - | | +| theme | `String` | `default` | | +| tooltip-format | `String` | `{start} - {end} duration {duration}` | | +| width | `String` | `100%` | the total width of the entire Vue-Ganttastic component | ## Contributing diff --git a/lib/components/GGanttBar.vue b/lib/components/GGanttBar.vue index 9479709..183ef42 100644 --- a/lib/components/GGanttBar.vue +++ b/lib/components/GGanttBar.vue @@ -17,7 +17,7 @@ >
- {{ barConfig.label || '' }} + {{ barConfig.label }}