任一存 4 лет назад
Родитель
Сommit
36313650ba
2 измененных файлов с 51 добавлено и 0 удалено
  1. 1 0
      src/assets/style/component.less
  2. 50 0
      src/views/material/popup/imagePreviewer.vue

+ 1 - 0
src/assets/style/component.less

@@ -96,6 +96,7 @@ textarea:-ms-input-placeholder {
     word-break: keep-all;
     padding: 0 8px;
     font-size: 12px;
+    border-radius: 3px;
     // tip的箭头
     &::before {
       border: 7px solid transparent;

+ 50 - 0
src/views/material/popup/imagePreviewer.vue

@@ -231,4 +231,54 @@ export default {
       z-index: 1;
     }
   }
+
+.hover-tips, .hover-tips-warn {
+  position: relative;
+  font-size: 18px;
+
+  &:hover {
+    > div {
+      display: block;
+    }
+  }
+
+  // tip的方框
+  > div {
+    background: rgba(0, 0, 0, 0.6);
+    border: none;
+    cursor: default;
+    display: none;
+    z-index: 10000;
+    position: absolute;
+    left: 50%;
+    transform: translateX(-50%);
+    top: -60px;
+    color: #fff;
+    pointer-events: none;
+    text-align: center;
+    word-break: keep-all;
+    padding: 0 8px;
+    font-size: 12px;
+    border-radius: 3px;
+    // tip的箭头
+    &::before {
+      border: 7px solid transparent;
+      border-top: 7px solid rgba(0, 0, 0, 0.6);
+      width: 0;
+      height: 0px;
+      content: "";
+      display: inline-block;
+      position: absolute;
+      bottom: -14px;
+      left: 50%;
+      transform: translateX(-50%);
+    }
+
+    // tip的文字
+    .remark {
+      line-height: 2.5;
+      color: #fff;
+    }
+  }
+}
 </style>