6f158396 by renchao@pashanhoo.com

1

1 parent b6cdf079
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-22 16:27:52 4 * @LastEditTime: 2023-08-25 09:50:48
5 :show-message="false" 5 :show-message="false"
6 --> 6 -->
7 <template> 7 <template>
......
...@@ -232,10 +232,8 @@ ...@@ -232,10 +232,8 @@
232 }) 232 })
233 } 233 }
234 234
235
236
237 let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(' ') : []; 235 let lines2 = this.bdcqz.zl ? this.bdcqz.zl.split(' ') : [];
238 if (lines2.length > 22) { 236 if (lines2.length >= 22) {
239 lines2.forEach((line, index) => { 237 lines2.forEach((line, index) => {
240 const y = 170 + (index * 20); // 每行文本的垂直位置 238 const y = 170 + (index * 20); // 每行文本的垂直位置
241 let currentLine = ''; 239 let currentLine = '';
...@@ -243,7 +241,7 @@ ...@@ -243,7 +241,7 @@
243 for (let word of line) { 241 for (let word of line) {
244 const testLine = currentLine + word; 242 const testLine = currentLine + word;
245 const lineWidth = context.measureText(testLine).width; 243 const lineWidth = context.measureText(testLine).width;
246 if (lineWidth <= 360) { 244 if (lineWidth <= 336) {
247 currentLine = testLine; 245 currentLine = testLine;
248 } else { 246 } else {
249 arr.push(currentLine); 247 arr.push(currentLine);
...@@ -263,7 +261,7 @@ ...@@ -263,7 +261,7 @@
263 for (let word of line) { 261 for (let word of line) {
264 const testLine = currentLine + word; 262 const testLine = currentLine + word;
265 const lineWidth = context.measureText(testLine).width; 263 const lineWidth = context.measureText(testLine).width;
266 if (lineWidth <= 360) { 264 if (lineWidth <= 336) {
267 currentLine = testLine; 265 currentLine = testLine;
268 } else { 266 } else {
269 arr.push(currentLine); 267 arr.push(currentLine);
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-17 16:43:18 4 * @LastEditTime: 2023-08-25 09:53:27
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
35 }, 35 },
36 disabled: { 36 disabled: {
37 type: Boolean, 37 type: Boolean,
38 default: false 38 default: true
39 } 39 }
40 }, 40 },
41 data () { 41 data () {
......