mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-25 04:10:33 +03:00
chore: cursor
This commit is contained in:
+10
-5
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="g-gantt-bar"
|
:class="['g-gantt-bar', { 'g-gantt-bar-immobile': barConfig.immobile }]"
|
||||||
ref="g-gantt-bar"
|
ref="g-gantt-bar"
|
||||||
:style="barStyle"
|
:style="barStyle"
|
||||||
@mouseenter.stop="onMouseenter($event)"
|
@mouseenter.stop="onMouseenter($event)"
|
||||||
@@ -97,18 +97,18 @@ export default {
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
barStartMoment: {
|
barStartMoment: {
|
||||||
get: function () {
|
get() {
|
||||||
return moment(this.bar[this.barStartKey], this.timeFormat)
|
return moment(this.bar[this.barStartKey], this.timeFormat)
|
||||||
},
|
},
|
||||||
set: function (value) {
|
set(value) {
|
||||||
this.bar[this.barStartKey] = value.format(this.timeFormat)
|
this.bar[this.barStartKey] = value.format(this.timeFormat)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
barEndMoment: {
|
barEndMoment: {
|
||||||
get: function () {
|
get() {
|
||||||
return moment(this.bar[this.barEndKey])
|
return moment(this.bar[this.barEndKey])
|
||||||
},
|
},
|
||||||
set: function (value) {
|
set(value) {
|
||||||
this.bar[this.barEndKey] = value.format(this.timeFormat)
|
this.bar[this.barEndKey] = value.format(this.timeFormat)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -581,6 +581,11 @@ export default {
|
|||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
background: #79869c;
|
background: #79869c;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
|
||||||
|
.g-gantt-bar-immobile {
|
||||||
|
cursor: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.g-gantt-bar-label {
|
.g-gantt-bar-label {
|
||||||
|
|||||||
Reference in New Issue
Block a user