mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-24 11:00:34 +03:00
chore: small changes
This commit is contained in:
@@ -115,11 +115,9 @@ The following code showcases a simple usage example in a .vue SFC (Single File C
|
|||||||
</style>
|
</style>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Setup
|
## Props
|
||||||
|
|
||||||
### Parameters
|
| Prop | Type | Default | Description |
|
||||||
|
|
||||||
| Props(Parameter) | Type | Default | Description |
|
|
||||||
| ------------------------ | --------------- | --------- | ------------------------------------------------------------------- |
|
| ------------------------ | --------------- | --------- | ------------------------------------------------------------------- |
|
||||||
| bar-start-key | `String` | `start` | property name of the bar objects that represents the start datetime |
|
| 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 |
|
| bar-end-key | `String` | `end` | property name of the bar objects that represents the end datetime |
|
||||||
|
|||||||
@@ -107,6 +107,24 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
'chartProps.chartStart'() {
|
||||||
|
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
||||||
|
},
|
||||||
|
|
||||||
|
'chartProps.chartEnd'() {
|
||||||
|
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
||||||
|
},
|
||||||
|
|
||||||
|
'chartProps.rowLabelWidth'() {
|
||||||
|
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
||||||
|
},
|
||||||
|
|
||||||
|
'chartProps.gridSize'() {
|
||||||
|
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
||||||
window.addEventListener('resize', this.onWindowResize)
|
window.addEventListener('resize', this.onWindowResize)
|
||||||
@@ -183,16 +201,6 @@ export default {
|
|||||||
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
watch: {
|
|
||||||
'chartProps.rowLabelWidth': function () {
|
|
||||||
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
|
||||||
},
|
|
||||||
|
|
||||||
'chartProps.gridSize': function () {
|
|
||||||
this.barContainer = this.$refs.barContainer.getBoundingClientRect()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export default {
|
|||||||
childPointCount: null,
|
childPointCount: null,
|
||||||
timemarker: null,
|
timemarker: null,
|
||||||
hourFontSize: '11px',
|
hourFontSize: '11px',
|
||||||
dayFormat: 'DD MMMM',
|
dayFormat: 'ddd DD MMMM',
|
||||||
monthFormat: 'MMMM YYYY'
|
monthFormat: 'MMMM YYYY'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
.g-gantt-chart {
|
.g-gantt-chart {
|
||||||
position: relative;
|
position: relative;
|
||||||
/* display: flex; */
|
|
||||||
/* flex-direction: column; */
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
@@ -23,15 +21,11 @@
|
|||||||
.g-timeaxis-day,
|
.g-timeaxis-day,
|
||||||
.g-timeaxis-day > div {
|
.g-timeaxis-day > div {
|
||||||
display: flex;
|
display: flex;
|
||||||
/* overflow: hidden; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.g-timeaxis {
|
.g-timeaxis {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
/* width: 100%; */
|
|
||||||
/* height: 8%; */
|
|
||||||
/* min-height: 75px; */
|
|
||||||
background: white;
|
background: white;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
box-shadow: 0px 1px 3px 2px rgba(50, 50, 50, 0.5);
|
box-shadow: 0px 1px 3px 2px rgba(50, 50, 50, 0.5);
|
||||||
@@ -132,11 +126,11 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
transition: background-color 0.2s;
|
transition: background-color 0.2s;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.g-gantt-row > .g-gantt-row-label {
|
.g-gantt-row > .g-gantt-row-label {
|
||||||
display: flex;
|
display: flex;
|
||||||
/* justify-content: center; */
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: #e8e8e8;
|
background: #e8e8e8;
|
||||||
color: #424242;
|
color: #424242;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tenrok/vue-ganttastic",
|
"name": "@tenrok/vue-ganttastic",
|
||||||
"version": "0.10.14",
|
"version": "0.10.15",
|
||||||
"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",
|
||||||
|
|||||||
Reference in New Issue
Block a user