[update] 文档拆分详情页布局

This commit is contained in:
lideqin
2023-08-18 18:03:53 +08:00
parent 6b1a7feaed
commit e331340e55
5 changed files with 293 additions and 523 deletions
+17 -1
View File
@@ -21,7 +21,8 @@
<span v-else-if="ol.text === $t('cancelSubscribe')" v-has="ol.has" class="text">
{{ !record.subscribeFlag || record.subscribeFlag === 0 ? $t('subscribe') :$t('cancelSubscribe') }}
</span>
<span v-else v-has="ol.has" class="text">
<!-- v-has="ol.has"-->
<span v-else class="text">
{{ ol.text }}
</span>
</a>
@@ -200,6 +201,21 @@ export default {
// scopedSlots: { customRender: 'operation' }
// }
]
let width = 0
if (this.operationList.length > 0) {
for (let i = 0; i < this.operationList.length; i++) {
width += this.getTextWith(this.operationList[i].text)
}
}
if (this.showAction) {
this.columns.push({
title: this.$t('operation'),
align: 'center',
fixed: 'right',
width: width,
scopedSlots: { customRender: 'operation' }
})
}
this.dataSource = [
{
collectFlag: '0',