bill 2 달 전
부모
커밋
643ee05aaa
3개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/core/components/icon/icon.ts
  2. 2 0
      src/core/components/serial/serial-group.vue
  3. 2 2
      src/example/fuse/views/overview/header.vue

+ 1 - 1
src/core/components/icon/icon.ts

@@ -56,7 +56,7 @@ export const getIconStyle = async (
 ) => {
   const svgContent = parseSvgContent(await getSvgContent(url));
   if (!fixed) {
-    if (width / height < svgContent.width / svgContent.height) {
+    if (width / height > svgContent.width / svgContent.height) {
       width = (svgContent.width / svgContent.height) * height;
     } else {
       height = (svgContent.height / svgContent.width) * width;

+ 2 - 0
src/core/components/serial/serial-group.vue

@@ -153,6 +153,8 @@ const syncTable = (table: TableData) => {
       }
       table.content.push(cols);
     }
+    
+
     isUpdate = true;
   }
   return isUpdate;

+ 2 - 2
src/example/fuse/views/overview/header.vue

@@ -129,8 +129,8 @@ const setViewToTableCover = async () => {
   draw.config.showCompass = false;
 
   draw.config.labelLineConfig.type = "auto";
-  draw.config.labelLineConfig.strokeWidth = 2;
-  draw.config.labelLineConfig.fontSize = width / 70;
+  draw.config.labelLineConfig.fontSize = width / 60;
+  draw.config.labelLineConfig.strokeWidth = draw.config.labelLineConfig.fontSize / 10;
 
   await nextTick();
   draw.config.labelLineConfig.showOffset = padding - 5;