jack 4 недель назад
Родитель
Сommit
74017451e8

+ 1 - 1
src/hooks/useImport.ts

@@ -2051,7 +2051,7 @@ export default () => {
                 : undefined
 
               const pattern: string | undefined = el.fill?.type === 'image' ? el.fill.value.picBase64 : undefined
-              const fill = el.fill?.type === 'color' ? el.fill.value : 'none'
+              const fill = el.fill?.type === 'color' ? el.fill.value : el.fill || 'none'
               //const style = getStyle(convertFontSizePtToPx(el.content, ratio, el.autoFit)) + (el.pathBBox?.pWidth ? ';width:' + (el.pathBBox?.pWidth * ratio) + 'px;height:' + (el.pathBBox?.pHeight * ratio) + 'px;' : '') // 设置字体的样式等,这里由于不支持的样式在里面会过滤
               const baseStyle = getStyle(convertFontSizePtToPx(el.content, ratio, el.autoFit));
               const isVertical =

+ 1 - 1
src/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.vue

@@ -10,7 +10,7 @@
       vector-effect="non-scaling-stroke" 
       stroke-linecap="butt" 
       stroke-miterlimit="8"
-      fill="transparent"
+      fill="#FFFFFF"
       :cx="width / 2" 
       :cy="height / 2"
       :rx="width / 2" 

+ 1 - 1
src/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.vue

@@ -10,7 +10,7 @@
       vector-effect="non-scaling-stroke" 
       stroke-linecap="butt" 
       stroke-miterlimit="8"
-      fill="transparent"
+      fill="#FFFFFF"
       :d="createPath(width, height)"
       :stroke="outlineColor"
       :stroke-width="outlineWidth" 

+ 1 - 1
src/views/components/element/ImageElement/ImageOutline/ImageRectOutline.vue

@@ -10,7 +10,7 @@
       vector-effect="non-scaling-stroke" 
       stroke-linecap="butt" 
       stroke-miterlimit="8"
-      fill="transparent"
+      fill="#FFFFFF"
       :rx="radius" 
       :ry="radius"
       :width="width"