Ver código fonte

开放共享修改

maxiaoxiao 4 meses atrás
pai
commit
7cac956706

+ 3 - 3
src/components/Combinations/LayerManage/LayerManageSplit.vue

@@ -450,15 +450,15 @@ export default {
 .headerSearch {
   display: flex;
   justify-content: space-between;
-  margin-right: 10px;
+  margin: 0 10px;
 
   .el-input {
-    width: 48%;
+    width: 45%;
   }
   /deep/ .el-input--small .el-input__inner {
     color: white !important;
     background: rgba(100, 218, 255, 0.1);
-    border-radius: 2px 10px 2px 10px;
+    // border-radius: 2px 10px 2px 10px;
     border-color: #5ecef09a;
   }
 }

+ 1 - 1
src/utils/MapHelper/help.js

@@ -245,7 +245,7 @@ function convertImageToCanvas(image, fu) {
   ctx.drawImage(image, 0, 0);
   if (typeof fu == 'function')
     fu(canvas, ctx)
-  else drawLegends(canvas, ctx, fu);
+  else if(fu) drawLegends(canvas, ctx, fu);
   return canvas;
 }
 // 绘制图例