diff --git a/src/components/container/GanttBody.vue b/src/components/container/GanttBody.vue
index 77781d1..ce2ffcd 100644
--- a/src/components/container/GanttBody.vue
+++ b/src/components/container/GanttBody.vue
@@ -6,7 +6,7 @@
>
-
+
diff --git a/src/components/container/Row.vue b/src/components/container/Row.vue
index e458397..869044f 100644
--- a/src/components/container/Row.vue
+++ b/src/components/container/Row.vue
@@ -41,12 +41,15 @@ import { Ref, computed, ref } from 'vue';
const props = defineProps({
data: RowItem,
- renderStyle: { type: Boolean, default: true }
+ renderStyle: { type: Boolean, default: true },
+ longPress: { type: Boolean, default: false }
});
const { rowHeight, $styleBox } = useStyle();
const { $param } = useParam();
+
+// #region set hover
function onEnter() {
$param.hoverItem = props.data ?? null;
}
@@ -56,7 +59,9 @@ function onLeave() {
$param.hoverItem = null;
}
+// #endregion
+// #region background color
const bgColor = computed(() => {
if (!props.renderStyle) return undefined;
@@ -73,7 +78,9 @@ const bgColor = computed(() => {
return c;
});
+// #endregion
+// #region 点击事件
const { jumpToDate } = useExport();
const { EmitRowClick, EmitRowDblClick } = useEvent();
const rowRef = ref(null) as Ref;
@@ -90,6 +97,7 @@ onUnifyClick(rowRef, {
EmitRowDblClick(props.data?.data);
}
});
+// #endregion