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 {
width: 223px;
white-space: wrap;
display: inline-block;
white-space: pre-wrap;
word-break: break-word;
}
.search-pop-input {
margin: 8px 0;
......@@ -247,8 +249,12 @@ export default {
margin-right: 12px;
}
.value {
width:calc(100% - 100px);
color: #333333;
font-size: 14px;
white-space: wrap;
white-space: pre-wrap;
word-break: break-word;
}
}
}
......
......@@ -356,6 +356,8 @@ export default {
width: 223px;
white-space: wrap;
display: inline-block;
white-space: pre-wrap;
word-break: break-word;
}
.word-break {
white-space: pre-wrap;
......
......@@ -46,11 +46,11 @@
<script>
import utils from '@/utils/util'
import purchaseApi from '@/api/purchase'
import allocateApi from '@/api/allocate'
import allocateApi from '@/api/allocate'
export default {
data() {
return {
staffType:this.$route.query.staffType,
staffType: this.$route.query.staffType,
page: {
currentPage: 1,
pageSize: 10
......@@ -123,7 +123,7 @@ export default {
},
methods: {
getAllocateGoodsDetail() {
purchaseApi.getAllocateGoodsDetail({ id: this.id }).then(({ code, data, message }) => {
purchaseApi.getAllocateGoodsDetail({ id: this.id }).then(({ code, data, message }) => {
if (code == 0) {
this.orderInfo = data
if (this.staffType == 3) this.getList()
......@@ -202,8 +202,9 @@ export default {
.info-item :nth-child(2) {
color: #292d33;
width: 223px;
white-space: wrap;
display: inline-block;
white-space: pre-wrap;
word-break: break-word;
}
.search-pop-input {
margin: 8px 0;
......@@ -277,8 +278,11 @@ export default {
margin-right: 12px;
}
.value {
width: calc(100% - 100px);
color: #333333;
font-size: 14px;
white-space: pre-wrap;
word-break: break-word;
}
}
}
......
......@@ -409,6 +409,8 @@ export default {
width: 223px;
white-space: wrap;
display: inline-block;
white-space: pre-wrap;
word-break: break-word;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!