2
0
mirror of https://github.com/tenrok/vue-ganttastic.git synced 2026-06-25 05:20:33 +03:00

feat: additional row style

This commit is contained in:
2021-11-23 15:30:15 +03:00
parent 07f20cad35
commit 2028756cc3
4 changed files with 16 additions and 4 deletions
+2
View File
@@ -13,6 +13,7 @@
<div <div
class="g-gantt-row-bars-container" class="g-gantt-row-bars-container"
ref="barContainer" ref="barContainer"
:style="rowStyle"
@dragover="onDragover($event)" @dragover="onDragover($event)"
@dragleave="onDragleave($event)" @dragleave="onDragleave($event)"
@drop="onDrop($event)" @drop="onDrop($event)"
@@ -50,6 +51,7 @@ export default {
props: { props: {
label: { type: String, default: 'Row' }, label: { type: String, default: 'Row' },
labelStyle: { type: Object }, labelStyle: { type: Object },
rowStyle: { type: Object },
bars: { type: Array, default: () => [] }, bars: { type: Array, default: () => [] },
highlightOnHover: { type: Boolean } highlightOnHover: { type: Boolean }
}, },
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "@tenrok/vue-ganttastic", "name": "@tenrok/vue-ganttastic",
"version": "0.10.19", "version": "0.10.22",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@tenrok/vue-ganttastic", "name": "@tenrok/vue-ganttastic",
"version": "0.10.19", "version": "0.10.22",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"vue": "^2.6.12" "vue": "^2.6.12"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@tenrok/vue-ganttastic", "name": "@tenrok/vue-ganttastic",
"version": "0.10.20", "version": "0.10.22",
"description": "A simple and customizable Gantt chart component for Vue.js", "description": "A simple and customizable Gantt chart component for Vue.js",
"keywords": [ "keywords": [
"gantt", "gantt",
+11 -1
View File
@@ -59,6 +59,7 @@
v-for="row in chart2.rows" v-for="row in chart2.rows"
:key="row.label" :key="row.label"
:label="row.label" :label="row.label"
:row-style="row.style"
:bars="row.bars" :bars="row.bars"
:highlight-on-hover="chart2.highlightOnHover" :highlight-on-hover="chart2.highlightOnHover"
> >
@@ -311,7 +312,16 @@ export default {
backgroundColor: '#408e2f' backgroundColor: '#408e2f'
} }
} }
] ],
style: {
background:
'url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjRweCIgaGVpZ2h0PSI0cHgiIHZpZXdCb3g9IjAgMCA0IDQiPjxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0FBNTUwMCIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIwIiB5MT0iMCIgeDI9IjQiIHkyPSI0Ii8+PC9zdmc+")',
backgroundRepeat: 'repeat',
backgroundPosition: '0 0',
backgroundSize: '4px 4px',
borderTop: '1px solid #aa5500',
borderBottom: '1px solid #aa5500'
}
}, },
{ {
label: label: