浏览代码

改放大svg组件

mw_666 3 年之前
父节点
当前提交
8375577429

+ 1 - 0
src/views/WindSite/components/boosterstation/nss.vue

@@ -5,6 +5,7 @@
         <previewPicture>
           <template v-slot:svg>
             <svg
+			  class="svg"
               xmlns="http://www.w3.org/2000/svg"
               xmlns:xlink="http://www.w3.org/1999/xlink"
               version="1.1"

+ 5 - 5
src/views/WindSite/components/boosterstation/previewPicture.vue

@@ -95,8 +95,8 @@ export default {
       imgIndex: 0,
       isChange: true,
       // 图片显示默认大小
-      width: "1400px",
-      height: "800px",
+      width: "1600px",
+      height: "1000px",
       // 可缩小倍数,为空则可无限缩小
       minification: 3,
       // 可放大倍数 为空则可无限放大
@@ -365,7 +365,7 @@ export default {
           let height = e.path[2].offsetHeight;
           // 这里判断第一次获取不到style 样式 默认为 居中50%
           if (oDragObj.style.top == "") {
-            nTY = parseInt((50 * height) / 100 + 0);
+            nTY = 0;
             nTX = parseInt((50 * width) / 100 + 0);
           } else {
             nTY = parseInt(oDragObj.style.top + 0);
@@ -642,7 +642,7 @@ export default {
 <style lang="less" scoped>
 .pop-up-main {
   width: 100%;
-  height: calc(100vh - 32vh);
+  height: calc(100vh - 12vh);
   overflow-y: hidden;
 
   .paln-box {
@@ -654,7 +654,7 @@ export default {
       position: absolute;
       // top: 75%;
       left: 50%;
-      transform: translate(-50%, -10%);
+      transform: translate(-50%, 0%);
 
       img,
       .svg {