瀏覽代碼

增加自动换行。

杨志杰 3 年之前
父節點
當前提交
d7882bcafc
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/customer/printTemp/step2.vue

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

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