Commit 9aee29ad by wangzhihui

```

fix(cannibalize): 修复详情页面文本换行显示问题

- 添加 white-space: pre-wrap 和 word-break: break-word 样式属性
- 解决长文本内容无法正确换行显示的问题
- 调整 value 元素宽度为 calc(100% - 100px)

fix(purchase): 修复采购详情页面文本换行显示问题

- 添加 white-space: pre-wrap 和 word-break: break-word 样式属性
- 修复 info-item 中文本换行样式问题
- 调整 value 元素宽度并优化文本显示效果
- 修正 import 语句中的多余空格问题
```
1 parent c7e0a2c4
...@@ -174,6 +174,8 @@ export default { ...@@ -174,6 +174,8 @@ export default {
width: 223px; width: 223px;
white-space: wrap; white-space: wrap;
display: inline-block; display: inline-block;
white-space: pre-wrap;
word-break: break-word;
} }
.search-pop-input { .search-pop-input {
margin: 8px 0; margin: 8px 0;
...@@ -247,8 +249,12 @@ export default { ...@@ -247,8 +249,12 @@ export default {
margin-right: 12px; margin-right: 12px;
} }
.value { .value {
width:calc(100% - 100px);
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
white-space: wrap;
white-space: pre-wrap;
word-break: break-word;
} }
} }
} }
......
...@@ -356,6 +356,8 @@ export default { ...@@ -356,6 +356,8 @@ export default {
width: 223px; width: 223px;
white-space: wrap; white-space: wrap;
display: inline-block; display: inline-block;
white-space: pre-wrap;
word-break: break-word;
} }
.word-break { .word-break {
white-space: pre-wrap; white-space: pre-wrap;
......
...@@ -50,7 +50,7 @@ import allocateApi from '@/api/allocate' ...@@ -50,7 +50,7 @@ import allocateApi from '@/api/allocate'
export default { export default {
data() { data() {
return { return {
staffType:this.$route.query.staffType, staffType: this.$route.query.staffType,
page: { page: {
currentPage: 1, currentPage: 1,
pageSize: 10 pageSize: 10
...@@ -202,8 +202,9 @@ export default { ...@@ -202,8 +202,9 @@ export default {
.info-item :nth-child(2) { .info-item :nth-child(2) {
color: #292d33; color: #292d33;
width: 223px; width: 223px;
white-space: wrap;
display: inline-block; display: inline-block;
white-space: pre-wrap;
word-break: break-word;
} }
.search-pop-input { .search-pop-input {
margin: 8px 0; margin: 8px 0;
...@@ -277,8 +278,11 @@ export default { ...@@ -277,8 +278,11 @@ export default {
margin-right: 12px; margin-right: 12px;
} }
.value { .value {
width: calc(100% - 100px);
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
white-space: pre-wrap;
word-break: break-word;
} }
} }
} }
......
...@@ -409,6 +409,8 @@ export default { ...@@ -409,6 +409,8 @@ export default {
width: 223px; width: 223px;
white-space: wrap; white-space: wrap;
display: inline-block; display: inline-block;
white-space: pre-wrap;
word-break: break-word;
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!