6f158396 by renchao@pashanhoo.com

1

1 parent b6cdf079
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-22 16:27:52
* @LastEditTime: 2023-08-25 09:50:48
:show-message="false"
-->
<template>
......
......@@ -232,10 +232,8 @@
})
}
let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(' ') : [];
if (lines2.length > 22) {
if (lines2.length >= 22) {
lines2.forEach((line, index) => {
const y = 170 + (index * 20); // 每行文本的垂直位置
let currentLine = '';
......@@ -243,7 +241,7 @@
for (let word of line) {
const testLine = currentLine + word;
const lineWidth = context.measureText(testLine).width;
if (lineWidth <= 360) {
if (lineWidth <= 336) {
currentLine = testLine;
} else {
arr.push(currentLine);
......@@ -263,7 +261,7 @@
for (let word of line) {
const testLine = currentLine + word;
const lineWidth = context.measureText(testLine).width;
if (lineWidth <= 360) {
if (lineWidth <= 336) {
currentLine = testLine;
} else {
arr.push(currentLine);
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-17 16:43:18
* @LastEditTime: 2023-08-25 09:53:27
-->
<template>
<div>
......@@ -35,7 +35,7 @@
},
disabled: {
type: Boolean,
default: false
default: true
}
},
data () {
......