Browse Source

增加拖动属性

caner 2 years ago
parent
commit
e716b4c2ac
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/login.vue

+ 3 - 2
src/components/login.vue

@@ -62,7 +62,7 @@ function login() {
   align-items: center;
   background: url(../assets/img/bg.png) center center no-repeat;
   background-size: 100% 100%;
-
+  -webkit-app-region: drag;
   &-content {
     width: 8rem;
     height: 4rem;
@@ -75,12 +75,13 @@ function login() {
       width: 5rem;
       background: url(../assets/img/login-left.png) center center no-repeat;
       background-size: 100% 100%;
+      -webkit-app-region: drag;
     }
 
     &-right {
       flex: 1;
       padding: 0 0.3rem;
-
+      -webkit-app-region: no-drag;
       &>p {
         font-size: 0.3rem;
         color: #5970C6;