mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-25 10:00:33 +03:00
chore: change README.md
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# vue-ganttastic
|
# vue-ganttastic
|
||||||
|
|
||||||
<img src="https://user-images.githubusercontent.com/28678851/77186503-45358300-6ad3-11ea-9392-7f670eb1ca8c.png" width="600"/>
|

|
||||||
|
|
||||||
A simple and easy-to-use Gantt chart component for Vue.js
|
A simple and easy-to-use Gantt chart component for Vue.js
|
||||||
|
|
||||||
@@ -42,6 +42,7 @@ The following code showcases a simple usage example in a .vue SFC (Single File C
|
|||||||
<g-gantt-chart
|
<g-gantt-chart
|
||||||
:chart-start="myChartStart"
|
:chart-start="myChartStart"
|
||||||
:chart-end="myChartEnd"
|
:chart-end="myChartEnd"
|
||||||
|
day-format="dddd, DD. MMMM"
|
||||||
precision="day"
|
precision="day"
|
||||||
:is-magnetic="true"
|
:is-magnetic="true"
|
||||||
locale="en"
|
locale="en"
|
||||||
@@ -116,7 +117,7 @@ The following code showcases a simple usage example in a .vue SFC (Single File C
|
|||||||
|
|
||||||
/* Custom */
|
/* Custom */
|
||||||
.g-grid-line-highlighted {
|
.g-grid-line-highlighted {
|
||||||
background: #ffb0b0;
|
background: #ffb0b0 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
```
|
```
|
||||||
|
|||||||
+9
-6
@@ -7,12 +7,14 @@
|
|||||||
:chart-end="chart1.chartEnd"
|
:chart-end="chart1.chartEnd"
|
||||||
:grid="chart1.grid"
|
:grid="chart1.grid"
|
||||||
:grid-size="chart1.gridSize"
|
:grid-size="chart1.gridSize"
|
||||||
|
day-format="dddd, DD. MMMM"
|
||||||
:hide-timeaxis="chart1.hideTimeaxis"
|
:hide-timeaxis="chart1.hideTimeaxis"
|
||||||
:push-on-overlap="chart1.pushOnOverlap"
|
:push-on-overlap="chart1.pushOnOverlap"
|
||||||
snap-back-on-overlap
|
snap-back-on-overlap
|
||||||
:precision="chart1.precision"
|
:precision="chart1.precision"
|
||||||
:is-magnetic="chart1.isMagnetic"
|
:is-magnetic="chart1.isMagnetic"
|
||||||
:highlighted-hours="chart1.highlightedHours"
|
:highlighted-hours="chart1.highlightedHours"
|
||||||
|
:highlighted-days="chart1.highlightedDays"
|
||||||
:row-label-width="chart1.rowLabelWidth"
|
:row-label-width="chart1.rowLabelWidth"
|
||||||
:row-height="chart1.rowHeight"
|
:row-height="chart1.rowHeight"
|
||||||
:theme="chart1.theme"
|
:theme="chart1.theme"
|
||||||
@@ -26,6 +28,7 @@
|
|||||||
:key="row.label"
|
:key="row.label"
|
||||||
:label="row.label"
|
:label="row.label"
|
||||||
:label-style="row.labelStyle"
|
:label-style="row.labelStyle"
|
||||||
|
:row-style="row.style"
|
||||||
:bars="row.bars"
|
:bars="row.bars"
|
||||||
:highlight-on-hover="chart1.highlightOnHover"
|
:highlight-on-hover="chart1.highlightOnHover"
|
||||||
>
|
>
|
||||||
@@ -86,6 +89,7 @@ export default {
|
|||||||
rowLabelWidth: 200,
|
rowLabelWidth: 200,
|
||||||
hideTimeaxis: false,
|
hideTimeaxis: false,
|
||||||
highlightOnHover: true,
|
highlightOnHover: true,
|
||||||
|
highlightedDays: ['2020-03-08'],
|
||||||
highlightedHours: [10, 12],
|
highlightedHours: [10, 12],
|
||||||
theme: 'default', // 'default', 'vue', 'dark', 'material-blue', 'creamy', 'slumber', 'sky', 'crimson', 'grove', 'fuchsia', 'flare'
|
theme: 'default', // 'default', 'vue', 'dark', 'material-blue', 'creamy', 'slumber', 'sky', 'crimson', 'grove', 'fuchsia', 'flare'
|
||||||
rows: [
|
rows: [
|
||||||
@@ -122,6 +126,9 @@ export default {
|
|||||||
labelStyle: {
|
labelStyle: {
|
||||||
justifyContent: 'end'
|
justifyContent: 'end'
|
||||||
},
|
},
|
||||||
|
style: {
|
||||||
|
background: '#ffb0b07f'
|
||||||
|
},
|
||||||
bars: [
|
bars: [
|
||||||
{
|
{
|
||||||
myStart: '2020-03-02 09:00',
|
myStart: '2020-03-02 09:00',
|
||||||
@@ -315,12 +322,8 @@ export default {
|
|||||||
],
|
],
|
||||||
style: {
|
style: {
|
||||||
background:
|
background:
|
||||||
'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjRweCIgaGVpZ2h0PSI0cHgiIHZpZXdCb3g9IjAgMCA0IDQiPjxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0FBNTUwMCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIwIiB5MT0iMCIgeDI9IjQiIHkyPSI0Ii8+PC9zdmc+")',
|
'linear-gradient(-45deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 52%)',
|
||||||
backgroundRepeat: 'repeat',
|
backgroundSize: '1em 1em'
|
||||||
backgroundPosition: '0 0',
|
|
||||||
backgroundSize: '4px 4px',
|
|
||||||
borderTop: '1px solid #aa5500',
|
|
||||||
borderBottom: '1px solid #aa5500'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user