diff --git a/demo/demo.vue b/demo/demo.vue
index a9da39f..bab9f60 100644
--- a/demo/demo.vue
+++ b/demo/demo.vue
@@ -1,6 +1,10 @@
-
+
@@ -91,6 +95,10 @@ function onAdd() {
function onReduce() {
ganttData.splice(ganttData.length - 1, 1);
}
+
+const onClickRow = (data: any) => {
+ console.log('click row', data);
+};
diff --git a/src/components/common/GanttBody.vue b/src/components/common/GanttBody.vue
index be969d5..864d3a4 100644
--- a/src/components/common/GanttBody.vue
+++ b/src/components/common/GanttBody.vue
@@ -8,6 +8,10 @@
+
+
+
+
@@ -29,6 +33,7 @@ const { inView } = useInView();
position: relative;
.xg-gantt-row {
+ z-index: 99;
// width: 100%;
// background-color: darkkhaki;
// position: absolute;
@@ -36,5 +41,21 @@ const { inView } = useInView();
// border-bottom: 1px solid;
// box-sizing: border-box;
}
+
+ .xg-gantt-body-date-line {
+ z-index: 9;
+ height: 100%;
+ width: 20px;
+ position: absolute;
+ top: 0;
+ left: 40px;
+ background-color: aqua;
+ opacity: 0.6;
+ }
+
+ .xg-gantt-body-line-wrap {
+ width: 100%;
+ height: 100%;
+ }
}
diff --git a/src/components/common/Row.vue b/src/components/common/Row.vue
index 10b5dec..de34a46 100644
--- a/src/components/common/Row.vue
+++ b/src/components/common/Row.vue
@@ -20,6 +20,7 @@