Browse Source

增加自动换行。

杨志杰 3 years ago
parent
commit
d7882bcafc
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/customer/printTemp/step2.vue

+ 5 - 2
src/customer/printTemp/step2.vue

@@ -352,9 +352,12 @@ const setStencil = () => {
         fontSize: 12,
         fontSize: 12,
         text: '动态文本:',
         text: '动态文本:',
         refX: 0,
         refX: 0,
-        // refY: 5,
+        refY: 0,
         textAnchor: 'start',
         textAnchor: 'start',
-        textVerticalAnchor: 'middle',
+        textVerticalAnchor: 'top',
+        textWrap: {
+          ellipsis: true,
+        },
       },
       },
       rect: {
       rect: {
         stroke: '#FFFFFF',
         stroke: '#FFFFFF',