diff --git a/src/components/pivot/index.vue b/src/components/pivot/index.vue
index fda4593..caaa316 100644
--- a/src/components/pivot/index.vue
+++ b/src/components/pivot/index.vue
@@ -20,7 +20,7 @@
@@ -52,7 +52,7 @@ function onMousedown() {
updateWireCurrentValue();
changeCursorLocation();
- console.log('enter');
+ console.log(MovingPivot);
// 关闭所有
for (const id of UserPivotCtxShows.keys()) {
diff --git a/src/components/pivot/user-pivot.vue b/src/components/pivot/user-pivot.vue
index 6d13269..ad4d9d2 100644
--- a/src/components/pivot/user-pivot.vue
+++ b/src/components/pivot/user-pivot.vue
@@ -5,6 +5,7 @@
@mouseleave="onLeave()"
@contextmenu.prevent="handleUserContextMenu($event)"
class="user-pivot"
+ :style="userPivotStyle"
>
{
if (props.id === currentPivotId.value) {
const rgbColor = parseColor(props.color);
- const brighterColor = increaseBrightness(rgbColor, 10);
+ const brighterColor = increaseBrightness(rgbColor, 20);
return `rgb(${brighterColor.r}, ${brighterColor.g}, ${brighterColor.b})`;
}
return props.color;
});
+const userPivotStyle = computed(() => ({
+ cursor: vline.dragEnable ? 'ew-resize': 'pointer'
+}));
+
const colorStyle = computed(() => ({
backgroundColor: currentColor.value
}));
@@ -198,8 +203,8 @@ function onVLineMouseup() {
currentPivotId.value = 0;
vline.originTime = 0;
vline.dragEnable = false;
- MovingPivot.currentTakenPivot = pivot;
- MovingPivot.show = false;
+ // MovingPivot.currentTakenPivot = pivot;
+ // MovingPivot.show = false;
}
const contextmenu = reactive({