浏览代码

chore: 修改拖拽锚点样式

奔跑的面条 3 年之前
父节点
当前提交
3c6f6e70ef
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/views/chart/ContentEdit/components/EditShapeBox/index.vue

+ 8 - 2
src/views/chart/ContentEdit/components/EditShapeBox/index.vue

@@ -65,8 +65,8 @@ const select = computed(() => {
   .shape-point {
     z-index: 1;
     position: absolute;
-    width: 10px;
-    height: 10px;
+    width: 7px;
+    height: 7px;
     border: 3px solid v-bind('themeColor');
     border-radius: 5px;
     background-color: #fff;
@@ -79,6 +79,12 @@ const select = computed(() => {
     &.r {
       height: 30px;
     }
+    &.r, 
+    &.rt, 
+    &.rb
+    {
+      transform: translate(-30%, -30%);
+    }
   }
   /* 选中 */
   .shape-modal {