Explorar o código

fix: 商品海报标题文字溢出问题

ldh %!s(int64=2) %!d(string=hai) anos
pai
achega
aaef380558

+ 1 - 1
sheep/components/s-share-modal/canvas-poster/index.vue

@@ -48,7 +48,7 @@
 </template>
 
 <script setup>
-  import { computed, reactive, getCurrentInstance } from 'vue';
+  import { reactive, getCurrentInstance } from 'vue';
   import sheep from '@/sheep';
   import useCanvas from './useCanvas';
 

+ 2 - 1
sheep/components/s-share-modal/canvas-poster/poster/goods.js

@@ -47,7 +47,8 @@ const goods = (poster) => {
         val: poster.shareInfo.poster.title,
         x: width * 0.04,
         y: width * 1.18,
-        maxWidth: width * 0.92,
+        line: 2,
+        maxWidth: width * 0.91,
         lineHeight: 5,
         paintbrushProps: {
           fillStyle: '#333',

+ 2 - 1
sheep/components/s-share-modal/canvas-poster/poster/groupon.js

@@ -47,7 +47,8 @@ const groupon = (poster) => {
         val: poster.shareInfo.poster.title,
         x: width * 0.04,
         y: width * 1.18,
-        maxWidth: width * 0.92,
+        maxWidth: width * 0.91,
+        line: 2,
         lineHeight: 5,
         paintbrushProps: {
           fillStyle: '#333',