whj hai 1 ano
pai
achega
bb3d74b1d8
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/views/opc/OpcInfo.vue

+ 4 - 3
src/views/opc/OpcInfo.vue

@@ -180,9 +180,10 @@
         <VueDragResize
           v-if="item.type===5"
           :isActive="item.isActive"
-          :w="40"
-          :h="170"
+          :w="item.imgWidth"
+          :h="item.imgHeight"
           :minh="20"
+          :minw="20"
           :x="item.imgXPosition"
           :y="item.imgYPosition"
           :isDraggable="item.isActive"
@@ -194,7 +195,7 @@
               {{ item.description }} <br />
               液位: {{ item.result }}
             </template>
-            <LiquidLevel :value="item" />
+            <LiquidLevel :value="item" :width="item.imgWidth" :height="item.imgHeight"/>
           </a-tooltip>
         </VueDragResize>
       </div>