Переглянути джерело

更换vue拖拽缩放组件前的一次提交

liuwei 4 роки тому
батько
коміт
21f76dcf37

+ 13 - 2
src/renderer/assets/less/splitscreen.less

@@ -15,11 +15,22 @@
     border: 1px solid #000000;
     color:#fff;
     background-color: #717171;
+    position: relative;
+
+    .doubleArrow {
+      position: absolute;
+      right: 1px;
+      bottom: 1px;
+      width: 10px;
+      height: 10px;
+      cursor: nwse-resize;
+      z-index: 200001;
+    }
   }
 
-  /*分屏项(信号源)*/
+  /*分屏项*/
   .sitem2 {
-    float: left;
+    position: relative;
     color:#000;
     border: 1px solid #3b3b3b;
     background-color: #0b0b0b;

+ 4 - 3
src/renderer/components/BigShow.vue

@@ -23,6 +23,7 @@
         >
             <div v-for="(item,index) in signalPreList" :key="index" :class="item.showName ? 'sitem' : 'sitem2'" ref="signal">
                 {{item.showName ? item.showName : item}}
+                <div class="doubleArrow"></div>
             </div>
         </draggable>
     </div>
@@ -84,11 +85,11 @@
                             streamWindows
                         }
                         // 调用大屏开窗接口
-                        const res = await reqRefreshView(data)
-                        console.log(res)
+                        /*const res = await reqRefreshView(data)
+                        console.log(res)*/
                     }
                 })
-            }
+            },
         },
 
         computed: {